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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa,baa,caa,fa,daa,eaa,ha,ia,la,ma,oa,iaa,jaa,xa,ya,kaa,laa,maa,Ba,Ca,Da,Ea,La,Na,oaa,paa,Ya,Za,bb,qaa,cb,raa,vaa,eb,waa,gb,jb,lb,ub,vb,wb,xb,zb,Ab,Eaa,Bb,Fb,Cb,Faa,Gaa,Haa,Gb,Ib,Iaa,Jb,Lb,Ob,Jaa,Kaa,Laa,Rb,Naa,Oaa,ec,Paa,lc,Qaa,Raa,jc,Saa,Taa,Uaa,vc,wc,Vaa,Waa,bba,Ec,aba,Zaa,Ic,Jc,Nc,Oc,Sc,Uc,Tc,Xc,eba,Yc,fba,Zc,$c,ad,gba,dd,hba,ed,fd,iba,gd,jba,kba,hd,jd,lba,mba,kd,nba,pba,oba,ld,nd,pd,rd,sba,rba,sd,ud,tba,vd,wd,yd,Bd,vba,Cd,F,Dd,Ed,Fd,Jd,Kd,Md,Pd,Rd,$d,wba,ae,xba,be,yba,ce,Aba,
zba,ge,Dba,Fba,te,Hba,Iba,ue,Kba,Lba,Nba,ze,Oba,Ae,Pba,Qba,Fe,Rba,Sba,Tba,Uba,Ie,Xba,Yba,$ba,aca,bca,cca,dca,Vba,Wba,fca,gca,hca,ica,Oe,jca,kca,lca,mca,Ke,Zba,eca,pca,qca,rca,We,Xe,sca,Ye,Ze,$e,uca,tca,vca,wca,lf,mf,zca,nf,qf,Aca,Bca,tf,Bf,Cca,Fca,Jf,Lf,Gca,Hca,Mf,Mca,Rf,Jca,Lca,Pf,Of,Vf,Wf,Nca,Xf,Oca,$f,ag,Pca,cg,dg,eg,gg,Tca,hg,Vca,Yca,kg,bda,og,pg,dda,eda,cda,jda,kda,vg,lda,nda,oda,xg,pda,Ag,Bg,tda,Fg,Hg,Sg,Ug,Xg,Yg,uda,vda,wda,xda,ah,zda,fh,Bda,Dda,Cda,gh,lh,Eda,hh,Fda,$g,uh,Hda,wh,vh,Zg,yh,Ida,
Jda,zh,Ah,Kda,Mda,Oda,Gh,Ih,Jh,Sda,Lh,Tda,Kh,Xda,Eh,Qda,Zda,Wda,Uda,Vda,$da,Yda,Mh,Qh,bea,cea,dea,eea,fea,gea,kea,mea,nea,pea,oea,qea,Yh,Zh,$h,sea,tea,ai,bi,vea,ei,wea,zea,gi,hi,Aea,li,mi,Cea,Dea,ri,Eea,Fea,si,ti,Gea,vi,xi,Hea,yi,zi,Kea,Lea,Nea,Oea,Qea,Pea,Rea,Bi,Sea,Ei,Ii,Ji,Ki,Li,Yea,$ea,afa,Ni,cfa,dfa,efa,gfa,ffa,hfa,bfa,Mi,jfa,Oi,kfa,lfa,Pi,mfa,Qi,Ri,Si,Ti,Ui,nfa,ofa,pfa,qfa,Vi,rfa,sfa,Wi,Yi,tfa,ufa,Zi,xfa,yfa,Afa,$i,dj,Cfa,Dfa,fj,Efa,Gfa,Ffa,Hfa,Ifa,Jfa,gj,hj,ij,Kfa,Lfa,Nfa,Ofa,kj,lj,mj,nj,Pfa,
oj,pj,qj,rj,sj,Ufa,Rfa,vj,Tfa,wj,Sfa,uj,tj,yj,Vfa,Aj,zj,Wfa,Xfa,Gj,Hj,Jj,$fa,Ij,Oj,aga,Pj,Yfa,ega,fga,gga,Tj,Uj,Vj,hga,Wj,Xj,Yj,Zj,iga,ak,bk,ck,jga,kga,dk,lga,jj,oga,pga,qga,rga,mga,ek,gk,sga,fk,uga,vga,ik,jk,wga,lk,mk,nk,kk,ok,hk,yga,zga,xga,Aga,Bga,Cga,pk,qk,rk,sk,tk,uk,vk,Dga,Ega,wk,xk,yk,Fga,Hga,Iga,Ak,Ck,Bk,Ek,Fk,Gk,Kga,Lga,Hk,Ik,Jk,Nga,Oga,Rga,Pga,Sga,Wga,Kk,Vga,Tga,Lk,Mk,Xga,Nk,Yga,Ok,$ga,Zga,aha,bha,Rk,Sk,cha,dha,eha,Tk,Vk,fha,Wk,gha,hha,lha,Yk,mha,nha,oha,pha,qha,$k,rha,sha,tha,gl,fl,el,
uha,vha,wha,hl,il,jl,yha,ol,pl,ql,rl,sl,tl,Aha,Bha,Cha,ul,wl,xl,Bl,Cl,Fl,Eha,Gha,Fha,Hha,Iha,Ll,Jha,Kha,Ml,Lha,Mha,Nha,Oha,Ql,Ol,Rl,Sl,Tl,Pha,Qha,Rha,Ul,Vl,Wl,Sha,Tha,Uha,Xl,Vha,Yl,Zl,Wha,Xha,Yha,Zha,$ha,aia,bia,am,bm,cm,em,eia,fm,gm,fia,dia,dm,gia,hm,im,jm,lm,km,hia,iia,jia,mm,lia,nm,nia,oia,pia,qia,ria,sia,tia,uia,qm,rm,vm,wia,via,xm,xia,ym,yia,zm,zia,Aia,Am,Bm,Cm,Bia,Dm,Em,Fm,Gm,Hm,Im,Jm,Km,Lm,Cia,Dia,Eia,Fia,Mm,Gia,Iia,Hia,Om,Pm,Kia,Jia,Pia,Oia,Qm,Qia,Ria,Sia,Uia,Tia,Via,Rm,Wia,Xia,Tm,Yia,Zia,
$ia,aja,Um,bja,Vm,cja,Wm,Xm,eja,Ym,fja,Zm,$m,gja,hja,an,cn,jja,dn,ija,kja,lja,nja,pja,en,qja,hn,jn,sja,tja,wja,xja,kn,yja,ln,mn,nn,on,pn,qn,rn,sn,tn,un,vn,wn,xn,Cja,Bja,Dja,Fja,Eja,Hja,Aja,Gja,zja,yn,zn,Jja,Kja,Lja,Gn,Hn,In,An,Nja,Jn,Ija,Pja,Qja,Rja,Oja,Kn,Ln,Mn,Nn,Sja,Mja,Tja,On,Uja,Vja,Wja,Xja,Yja,aka,Qn,bka,Rn,cka,fka,Un,ika,hka,Tn,Wn,jka,kka,lka,co,mka,nka,eo,oka,oo,lo,mo,no,pka,ro,qo,qka,to,rka,tka,uo,uka,vka,Aka,wka,zo,Fka,Ao,Bo,Hka,Eo,Ika,Jka,Fo,Lka,Ho,Io,Jo,Mka,Lo,Mo,No,Oo,Qo,Ro,Oka,So,To,
Pka,Qka,Uo,Rka,Ska,Wo,Xo,Wka,Zo,$o,ap,bp,cp,dp,ep,fp,gp,hp,ip,jp,kp,lp,mp,np,op,pp,rp,sp,tp,up,vp,wp,xp,yp,zp,Ap,Bp,Cp,Dp,Ep,Fp,Gp,Hp,Ip,Jp,Kp,Lp,Mp,Np,Op,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Xp,Yp,Zp,$p,aq,bq,cq,fla,eq,fq,gq,hq,iq,jq,kq,lq,mq,nq,oq,pq,qq,rq,sq,tq,uq,vq,wq,xq,yq,zq,Aq,Bq,Cq,Dq,Eq,Fq,Gq,Hq,Iq,Jq,Kq,Lq,Mq,Nq,Oq,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,cr,dr,er,fr,gr,hr,ir,jr,kr,lr,mr,nr,or,pr,qr,rr,sr,tr,ur,vr,wr,xr,yr,zr,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,
Yr,Zr,$r,as,bs,cs,ds,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,at,bt,ct,dt,et,ft,gt,ht,jt,kt,Hla,lt,mt,nt,Jla,ot,Kla,pt,Mla,qt,rt,tt,ut,vt,wt,xt,zt,Bt,At,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,Wla,Xla,au,bu,du,Yla,eu,Zla,hu,iu,ju,ku,lu,mu,ou,pu,cma,qu,ru,tu,$la,uu,fma,ima,vu,kma,mma,Au,nma,oma,pma,tma,rma,sma,Bu,Eu,Du,uma,Gu,Hu,Iu,vma,wma,xma,Pu,yma,Ru,Su,zma,Tu,Uu,Vu,Xu,
Zu,$u,Ou,bv,Bma,cv,dv,ev,fv,gv,hv,iv,jv,Dma,kv,mv,lv,Fma,Ima,Gma,Hma,Jma,Kma,Lma,pv,uv,vv,wv,Mma,Nma,Pma,Rma,Sma,Xma,Tma,Uma,Vma,Wma,ana,zv,Av,bna,Dv,Bv,Gv,Iv,cna,Pv,Qv,Uv,Vv,Xv,Yv,$v,hna,ina,bw,jna,kna,dw,lna,mna,fw,nna,gw,ona,jw,rna,sna,hw,tna,una,xna,wna,mw,qna,zna,Ana,pw,Bna,Cna,rw,Dna,tw,Ena,Fna,xw,Gna,Hna,Ina,Jna,Bw,Kna,Lna,Mna,Nna,Ona,Pna,Qna,Rna,Ew,Sna,Fw,Vna,Una,Tna,Gw,Dw,Wna,Hw,Iw,Kw,Yna,Ow,Nw,Jw,Pw,Zna,$na,Sw,Tw,boa,coa,Uw,Vw,doa,eoa,aoa,goa,hoa,ioa,joa,koa,Yw,Zw,dx,moa,ex,noa,ooa,gx,hx,
roa,qoa,poa,soa,toa,ox,px,uoa,mx,voa,jx,nx,lx,kx,woa,xoa,xx,yx,zoa,Aoa,Doa,Dx,Ex,Fx,Eoa,Jx,Kx,Nx,Mx,Lx,Px,Hoa,Goa,Xx,Joa,Ioa,Koa,Zx,Loa,Moa,cy,Ooa,Poa,ay,Yx,Noa,iy,jy,Toa,Uoa,Soa,Xoa,Yoa,Roa,Woa,Voa,$x,py,qy,$oa,ry,sy,uy,bpa,cpa,dpa,epa,fpa,gpa,hpa,Lpa,opa,vy,Npa,tpa,upa,wpa,By,Xpa,aqa,bqa,cqa,pqa,My,Cqa,Ky,Ny,Lqa,Pqa,sra,Uy,wra,yra,zra,xra,Vy,Yy,Zy,Bra,Xy,$y,az,ez,hz,iz,fz,Dra,jz,kz,Era,Fra,Gra,mz,Hra,Jra,nz,Kra,oz,pz,Lv,Rra,Tra,tz,cua,wz,yz,zz,eua,nua,oua,Cz,qua,Dz,uua,vua,wua,xua,Ez,yua,Mz,zua,
Cua,Fua,Dua,Wz,Vz,Gua,Uz,Xz,Yz,Jua,Lua,aA,bA,dA,cA,Nua,eA,fA,gA,hA,iA,jA,kA,Oua,lA,mA,nA,oA,Tua,Vua,Xua,Yua,qA,$ua,ava,wA,xA,bva,cva,yA,BA,dva,CA,eva,fva,gva,hva,GA,FA,HA,IA,JA,DA,KA,LA,jva,kva,MA,iva,nva,ova,pva,NA,OA,PA,qva,QA,wva,RA,SA,UA,VA,ZA,YA,kB,XA,zva,Ava,lB,mB,nB,WA,Cva,Dva,Eva,Bva,qB,rB,tB,wB,yB,Fva,zB,Iva,CB,Mva,HB,EB,Nva,Rva,BB,Hva,Gva,JB,Sva,Tva,Uva,NB,OB,Vva,PB,QB,MB,Zva,Wva,Xva,$va,RB,SB,awa,TB,bwa,UB,VB,WB,XB,cwa,dwa,YB,ewa,aC,fwa,bC,cC,eC,iC,gwa,jC,kC,lC,mC,nC,oC,pC,hwa,qC,sC,jwa,
kwa,rC,tC,nwa,owa,uC,pwa,xC,qwa,yC,AC,rwa,zC,BC,swa,DC,vwa,FC,GC,LC,xwa,IC,MC,OC,ywa,QC,KC,NC,zwa,RC,Awa,SC,Bwa,HC,JC,wwa,PC,TC,Cwa,Dwa,UC,Ewa,Fwa,VC,Gwa,WC,Hwa,YC,Iwa,XC,Jwa,ZC,$C,aD,bD,cD,Kwa,dD,Lwa,hD,Mwa,iD,jD,kD,Nwa,lD,Owa,nD,mD,Pwa,Qwa,Rwa,Swa,oD,pD,qD,rD,sD,Uwa,Vwa,Wwa,Xwa,uD,Ywa,vD,wD,Zwa,$wa,xD,axa,bxa,fxa,gxa,cxa,dxa,exa,yD,AD,zD,BD,CD,hxa,ixa,DD,ED,FD,GD,jxa,kxa,lxa,mxa,oxa,nxa,ID,pxa,qxa,rxa,sxa,JD,KD,LD,txa,ND,MD,RD,DB,SD,TD,Kva,Jva,UD,uxa,VD,PD,WD,vxa,ZD,$D,wxa,aE,cE,dE,eE,fE,gE,hE,
iE,xxa,jE,kE,yxa,lE,mE,nE,oE,pE,qE,Axa,Bxa,rE,sE,tE,Cxa,Dxa,uE,vE,Pva,IB,Hxa,Ixa,Jxa,Kxa,Lxa,Mxa,AB,Nxa,wE,xE,Pxa,Qxa,yE,Uxa,Rxa,Sxa,Wxa,Xxa,AE,Vxa,Yxa,BE,CE,DE,Zxa,$xa,aya,EE,bya,zE,cya,FE,Oxa,eya,fya,HE,gya,hya,iya,JE,IE,jya,kya,lya,mya,oya,Qva,Ova,KE,ME,OE,PE,QE,RE,NE,UE,qya,WE,sya,XE,uya,tya,rya,vya,wya,xya,zya,YE,Lva,ZE,Aya,Cya,FB,Dya,Eya,Fya,Gya,aF,Iya,Hya,bF,cF,iF,Kya,Lya,lF,oF,Mya,Oya,Nya,Pya,Qya,Rya,Sya,Tya,Uya,rF,Vya,Wya,Xya,sF,tF,uF,vF,Yya,Zya,wF,$ya,xF,yF,aza,zF,bza,BF,cza,CF,DF,EF,FF,
dza,eza,gza,GF,hza,fza,eG,$F,fG,iG,jG,RF,aG,rza,HF,oza,bG,dG,mG,qG,sza,OF,tG,NF,uG,xG,ZF,yG,zG,AG,BG,CG,DG,uza,vza,EG,wza,xza,yza,zza,FG,Aza,Fza,Eza,Bza,Dza,Cza,GG,Gza,HG,Hza,Iza,Mza,MG,NG,Pza,Rza,OG,PG,Sza,Uza,Xza,Yza,Zza,cAa,RG,dAa,eAa,WG,YG,ZG,$G,aH,gAa,bH,cH,hAa,dH,iAa,eH,fH,gH,hH,iH,jH,jAa,kAa,kH,lH,oH,nAa,oAa,qAa,pH,rAa,xH,AAa,vAa,wAa,CAa,DAa,yH,EAa,GAa,FAa,HAa,AH,DH,IAa,zH,EH,FH,JAa,NAa,KAa,MAa,PH,UH,XH,nBa,ZAa,MH,YH,OH,oBa,pBa,aI,XAa,rBa,qBa,JH,NH,WH,xBa,tBa,uBa,vBa,wBa,yBa,bI,zBa,ABa,dI,
eI,gI,IH,$H,hBa,LAa,$Aa,kBa,jI,hI,sBa,qI,rI,sI,tI,NBa,VH,OBa,vI,PBa,YAa,FBa,ZH,QBa,QAa,LH,PAa,Tza,zI,BI,SBa,CI,DI,EI,GI,FI,HI,TBa,UBa,II,KI,VBa,WBa,LI,MI,NI,OI,PI,XBa,QI,YBa,RI,SI,TI,UI,VI,WI,ZBa,XI,$Ba,YI,$I,cCa,ZI,dCa,aCa,bCa,eCa,fCa,gCa,aJ,bJ,cJ,iCa,dJ,eJ,kCa,jJ,hJ,nCa,mCa,oCa,mJ,lCa,nJ,iJ,oJ,lJ,kJ,gJ,fJ,qJ,rJ,tJ,vJ,rCa,sCa,qCa,wJ,xJ,yJ,zJ,AJ,tCa,BJ,CJ,uCa,DJ,EJ,FJ,xCa,vCa,IJ,yCa,zCa,JJ,ACa,MJ,NJ,BCa,GCa,OJ,HCa,PJ,QJ,ICa,RJ,JCa,KCa,LCa,MCa,NCa,SJ,TJ,PCa,OCa,RCa,QCa,UJ,VJ,WJ,UCa,VCa,WCa,XJ,XCa,
YJ,ZCa,ZJ,aK,bK,cK,dK,gK,iK,jK,$Ca,aDa,kK,bDa,cDa,lK,dDa,nK,eDa,fDa,gDa,oK,pK,kDa,lDa,mDa,qK,iDa,jDa,rK,oDa,tK,sK,vK,wK,yK,pDa,qDa,rDa,sDa,tDa,zK,BK,xDa,ADa,uDa,CK,JDa,DK,EK,LDa,KDa,NDa,ODa,QDa,PDa,RDa,SDa,TDa,UDa,FK,GK,VDa,WDa,XDa,YDa,ZDa,$Da,NK,bEa,cEa,LK,MK,aEa,fEa,gEa,OK,jEa,hEa,lEa,kEa,mEa,PK,pCa,nEa,jCa,oEa,pEa,qEa,QK,wEa,sEa,tEa,uEa,xEa,RK,AEa,yEa,BEa,CEa,zEa,vEa,DEa,mK,FEa,GEa,EEa,SK,TK,HEa,IEa,JEa,UK,WK,LEa,XK,$K,aL,MEa,NEa,OEa,bL,QEa,REa,SEa,TEa,UEa,VEa,WEa,gL,XEa,hL,YEa,ZEa,$Ea,jL,aFa,
cFa,dFa,mL,nL,oL,eFa,pL,fFa,rL,hFa,gFa,sL,tL,uL,vL,iFa,wL,xL,jFa,yL,zL,nFa,kFa,mFa,lFa,oFa,BL,CL,pFa,qFa,rFa,DL,sFa,uFa,tFa,EL,FL,GL,HL,IL,KL,LL,ML,NL,OL,PL,QL,wFa,vFa,RL,xFa,SL,TL,UL,VL,WL,ZL,$L,aM,bM,cM,dM,eM,fM,zFa,BFa,AFa,gM,DFa,GFa,HFa,kM,lM,JFa,nM,KFa,oM,MFa,qM,rM,sM,OFa,uM,TFa,RFa,QFa,PFa,VFa,vM,wM,xM,yM,zM,AM,BM,FM,YFa,$Fa,aGa,TM,bGa,Kv,dGa,cGa,UM,fGa,eGa,gGa,hGa,WM,YM,iGa,jGa,kGa,mGa,nGa,rGa,qGa,yGa,AGa,BGa,CGa,fN,gN,hN,EGa,iN,GGa,jN,HGa,IGa,lN,mN,kN,rEa,KGa,LGa,MGa,NGa,JGa,rN,OGa,sN,RGa,
UGa,VGa,DN,EN,HN,IN,JN,KN,LN,MN,NN,WGa,ON,YGa,ZGa,XGa,PN,$Ga,QN,aHa,bHa,cHa,dHa,RN,SN,TN,eHa,UN,fHa,gHa,VN,WN,hHa,iHa,YN,ZN,lHa,jHa,mHa,nHa,oHa,pHa,rHa,iO,vHa,lO,xHa,mO,uHa,yHa,zHa,kO,wHa,nO,oO,pO,wN,pN,rO,tO,CHa,AHa,BHa,uO,xO,EHa,wO,FHa,GHa,CO,DO,EO,IO,IHa,JHa,JO,KO,KHa,LHa,MHa,NHa,LO,PHa,OHa,QHa,MO,NO,RHa,QO,THa,SO,OO,UHa,VHa,SHa,TO,UO,XO,WHa,XHa,WO,ZO,YO,aP,cP,YHa,fP,ZHa,bIa,$Ha,cIa,gP,dIa,eIa,jP,kP,lP,mP,oP,fIa,gIa,qP,iIa,hIa,jIa,kIa,lIa,mIa,wP,xP,nIa,yP,zP,oIa,pIa,qIa,rIa,AP,DP,tIa,sIa,EP,FP,
GP,uIa,HP,IP,JP,KP,vIa,NP,OP,MP,yIa,LP,PP,AIa,zIa,UP,SP,TP,BIa,CIa,DIa,VP,WP,XP,YP,ZP,EIa,FIa,GIa,bQ,cQ,HIa,eQ,fQ,gQ,iQ,IIa,jQ,kQ,lQ,mQ,JIa,MIa,nQ,KIa,LIa,QIa,RIa,pQ,SIa,TIa,UIa,VIa,rQ,tQ,uQ,XIa,vQ,ZIa,YIa,WIa,wQ,$Ia,bJa,aJa,xQ,yQ,zQ,AQ,cJa,BQ,dJa,EQ,eJa,HQ,gJa,FQ,fJa,hJa,KQ,iJa,kJa,PQ,lJa,mJa,MQ,JQ,RQ,LQ,SQ,pJa,TQ,OQ,IQ,oJa,QQ,jJa,nJa,qJa,CQ,VQ,rJa,sJa,NQ,WQ,XQ,YQ,ZQ,$Q,aR,bR,cR,dR,eR,fR,uJa,iR,jR,kR,lR,mR,wJa,xJa,vJa,nR,oR,pR,qR,sR,rR,tR,uR,yJa,vR,zJa,BJa,AJa,wR,xR,CJa,yR,zR,DJa,AR,EJa,BR,FJa,CR,
ER,HR,GR,KR,JR,GJa,IR,MR,IJa,JJa,NR,OR,PR,QR,SR,KJa,dP,HJa,OJa,uP,LJa,UR,NJa,vP,MJa,PJa,RJa,QJa,SJa,TJa,YR,UJa,ZR,VJa,aS,WJa,XJa,bS,YJa,cS,$Ja,dS,ZJa,fS,bKa,aKa,eS,gS,hS,cKa,dKa,eKa,fKa,gKa,kS,lKa,oKa,mKa,iKa,mS,hKa,nKa,pS,qKa,pKa,qS,sKa,uKa,vKa,tKa,vS,wKa,xKa,yKa,CKa,DS,DKa,ES,HS,IS,JS,EKa,wS,KS,MS,GKa,FKa,IKa,NS,JKa,OS,PS,KKa,QS,BS,AS,LKa,MKa,NKa,OKa,PKa,xS,AKa,CS,yS,RS,UKa,TS,VKa,WKa,SKa,VS,XKa,WS,QKa,YS,TKa,YKa,XS,US,ZKa,ZS,$Ka,SS,bLa,bT,dT,$S,cT,aT,dLa,cLa,fT,fLa,gT,hT,gLa,iT,jT,kT,lT,hLa,mT,
oT,kLa,lLa,mLa,rT,qT,pT,nLa,oLa,pLa,qLa,uT,vT,wT,xT,rLa,zT,sLa,yT,AT,BT,tLa,vLa,zLa,wLa,xLa,yLa,ALa,BLa,GT,HT,CLa,DLa,FLa,GLa,IT,JT,KT,HLa,MLa,NLa,PT,QT,OLa,LLa,PLa,LT,ILa,QLa,MT,NT,JLa,KLa,OT,RLa,SLa,TLa,uAa,zAa,ST,TT,WLa,ULa,VLa,UT,XLa,VT,WT,XT,ZT,YLa,ZLa,$La,$T,bMa,cMa,bU,dMa,cU,dU,eMa,gU,fMa,hU,jMa,kU,fU,lMa,mU,hMa,iMa,gMa,lU,jU,iU,kMa,pMa,nMa,mMa,oU,qMa,pU,rMa,qU,rU,sMa,CT,tU,uU,vU,wU,xU,vMa,wMa,ET,FT,zMa,AU,BU,ELa,EU,zU,AMa,yU,xMa,yMa,FU,BMa,CMa,DU,DT,CU,DMa,EMa,FMa,GMa,HMa,IMa,GU,KMa,JMa,HU,
OMa,IU,QMa,PMa,KU,JU,SMa,MU,LU,TMa,MMa,OU,RMa,NMa,NU,PU,UMa,VMa,QU,RU,XMa,YMa,WMa,$Ma,ZMa,cNa,aNa,bNa,eNa,dNa,fNa,gNa,hNa,VU,iNa,SU,lNa,UU,mNa,WU,kNa,jNa,XU,nNa,YU,bV,oNa,pNa,cV,aV,eV,sNa,dV,tNa,uNa,vNa,yNa,xNa,wNa,fV,zNa,DNa,hV,iV,FNa,GNa,jV,kV,HNa,qNa,rNa,nV,ENa,INa,JNa,LNa,oMa,oV,pV,KNa,eU,ZU,MNa,NNa,ONa,PNa,ANa,QNa,qV,sV,tV,RNa,SNa,TNa,UNa,VNa,WNa,YNa,XNa,$Na,vV,dOa,aOa,cOa,eOa,wV,iOa,gOa,hOa,kOa,xV,lOa,yV,uV,mOa,fOa,nOa,zV,oOa,bOa,pOa,AV,rOa,sOa,BV,qOa,CV,DV,tOa,EV,FV,GV,vOa,yOa,xOa,wOa,IV,zOa,
HV,AOa,KV,MV,BOa,EOa,COa,DOa,FOa,HOa,GOa,IOa,JOa,NV,OV,LOa,PV,MOa,KOa,NOa,POa,ROa,SOa,OOa,TOa,UOa,WOa,VOa,XOa,QOa,QV,RV,YOa,SV,TV,UV,XV,ZV,YV,cPa,$V,dPa,fPa,ePa,cW,aW,aPa,hPa,gPa,iPa,eW,kPa,jPa,lPa,fW,gW,mPa,hW,pPa,iW,qPa,jW,sPa,lW,oW,nW,kW,tPa,pW,rPa,qW,uPa,mW,vPa,rW,wPa,bPa,dW,yPa,zPa,APa,BPa,CPa,DPa,EPa,GPa,HPa,IPa,FPa,JPa,KPa,tW,LPa,MPa,uW,vW,NPa,OPa,PPa,xW,RPa,zW,SPa,TPa,yW,wW,QPa,CW,BW,UPa,DW,AW,VPa,FW,ZPa,IW,$Pa,XPa,GW,aQa,JW,YPa,bQa,KW,dQa,EW,eQa,cQa,HW,fQa,WPa,LW,MW,gQa,hQa,iQa,NW,sU,BNa,
uMa,PW,jQa,CNa,tMa,kQa,OW,lQa,QW,SW,nQa,rQa,qQa,ZW,aX,$W,uQa,wQa,zQa,EQa,BQa,DQa,IQa,cX,JQa,KQa,NQa,PQa,QQa,OQa,RQa,SQa,eX,RW,TQa,UQa,mQa,dX,WQa,XQa,cRa,$Qa,dRa,aRa,YQa,eRa,ZQa,gRa,fX,hRa,jRa,kRa,nRa,lRa,pJ,mX,oRa,zKa,pRa,nX,LV,qRa,vX,pX,tS,kX,wX,yX,lV,mV,zX,VQa,mRa,tX,uX,hX,tRa,uRa,wRa,vRa,sX,qX,AX,yRa,nS,zRa,JV,rKa,CX,LS,oX,ARa,BRa,DX,kKa,CRa,ERa,sRa,gX,FRa,EX,rX,iX,GRa,FX,oS,HRa,GX,GS,IRa,JRa,KRa,jKa,BX,xRa,WRa,RRa,QRa,YRa,ZRa,LX,uS,bSa,$Ra,OX,PX,QX,dSa,IX,VRa,WX,eSa,VX,KX,fSa,gSa,SRa,$X,hSa,HX,
SX,TX,RX,mSa,NX,YX,cY,dY,nSa,UX,cSa,bY,iSa,eY,oSa,pSa,qSa,nN,rSa,XX,fY,tSa,MX,gY,hY,aSa,uSa,vSa,URa,aY,ZX,wSa,TRa,xSa,iY,jY,jLa,ySa,zSa,kY,$z,lY,mY,BSa,oY,DSa,nY,ESa,rY,pY,FSa,sY,qY,GSa,tY,uY,vY,HSa,wY,xY,yY,zY,AY,BY,JSa,ISa,CY,DY,EY,FY,GY,HY,IY,JY,KY,LY,MY,NY,OY,PY,QY,RY,SY,TY,UY,VY,WY,XY,YY,ZY,$Y,aZ,bZ,cZ,dZ,eZ,fZ,gZ,hZ,iZ,jZ,kZ,lZ,mZ,nZ,oZ,pZ,qZ,rZ,sZ,tZ,uZ,vZ,wZ,xZ,yZ,zZ,AZ,BZ,CZ,DZ,EZ,FZ,KSa,GZ,DCa,ECa,FCa,wCa,IZ,NSa,QZ,RZ,LJ,SZ,GJ,PZ,TZ,QSa,RSa,SSa,TSa,LSa,USa,HZ,VSa,WSa,VZ,MZ,$Z,WZ,KZ,XSa,
JZ,UZ,XZ,a_,NZ,OZ,ZZ,YZ,ZSa,b_,c_,$Sa,d_,Y,e_,AL,f_,g_,h_,aTa,bTa,dTa,eTa,iTa,i_,jTa,fTa,kTa,k_,mTa,nTa,lTa,l_,m_,pTa,sTa,qTa,vTa,DTa,CTa,wTa,ETa,yTa,zTa,xTa,HTa,JTa,LTa,OTa,PTa,RTa,STa,VTa,UTa,ZTa,WTa,z_,$Ta,cUa,bUa,hUa,eUa,dUa,jUa,kUa,lUa,mUa,C_,Kua,oUa,nUa,G_,Zz,I_,J_,Hua,K_,qUa,L_,B_,x_,o_,r_,M_,N_,t_,s_,rUa,uTa,O_,P_,Q_,p_,q_,w_,sUa,tUa,R_,uUa,S_,vUa,E_,F_,v_,u_,n_,MTa,QTa,y_,aUa,FTa,ATa,T_,U_,V_,wUa,W_,X_,Y_,Z_,$_,a0,b0,c0,d0,e0,cTa,yUa,xUa,oTa,NTa,zUa,iUa,AUa,BUa,TTa,KTa,tTa,rTa,j_,gTa,GTa,
hTa,BTa,fUa,XTa,YTa,A_,gUa,ITa,DUa,CUa,f0,g0,h0,KJ,LZ,OSa,H_,EUa,FUa,j0,k0,l0,m0,HUa,GUa,IUa,n0,o0,i0,p0,JUa,D_,MSa,KUa,q0,LUa,r0,t0,u0,v0,w0,z0,A0,B0,C0,y0,x0,MUa,NUa,OUa,D0,RUa,QUa,E0,SUa,F0,s0,TUa,UUa,VUa,G0,H0,WUa,I0,J0,XUa,YUa,ZUa,$Ua,K0,aVa,L0,M0,N0,O0,P0,Q0,bVa,R0,S0,T0,U0,V0,W0,Y0,Z0,cVa,X0,dVa,eVa,$0,fVa,a1,b1,c1,d1,gVa,e1,hVa,f1,iVa,g1,jVa,h1,i1,j1,k1,lVa,l1,n1,kVa,mVa,m1,p1,q1,nVa,oVa,pVa,s1,r1,u1,t1,v1,w1,qVa,rVa,x1,y1,sVa,z1,uVa,tVa,A1,B1,pUa,vVa,C1,wVa,D1,yVa,zVa,xVa,AVa,E1,BVa,CVa,
DVa,F1,G1,H1,EVa,I1,J1,K1,FVa,L1,M1,N1,GVa,O1,o1,P1,Q1,R1,CCa,S1,HVa,T1,IVa,U1,V1,KVa,JVa,W1,X1,Y1,LVa,MVa,NVa,Z1,OVa,$1,a2,QVa,PVa,RVa,SVa,TVa,b2,c2,d2,UVa,VVa,WVa,XVa,YVa,ZVa,$Va,aWa,bWa,cWa,e2,f2,dWa,eWa,g2,h2,i2,j2,fWa,k2,gWa,l2,hWa,iWa,m2,jWa,kWa,n2,lWa,mWa,o2,p2,nWa,oWa,q2,r2,pWa,qWa,t2,rWa,u2,sWa,v2,tWa,w2,uWa,vWa,wWa,xWa,x2,yWa,zWa,AWa,BWa,CWa,DWa,z2,EWa,FWa,GWa,HWa,IWa,KWa,A2,JWa,B2,LWa,MWa,NWa,OWa,SWa,PWa,QWa,RWa,VWa,XWa,YWa,ZWa,WWa,C2,$Wa,aXa,bXa,cXa,dXa,E2,eXa,F2,G2,H2,fXa,gXa,hXa,iXa,
jXa,lXa,kXa,mXa,I2,J2,K2,nXa,oXa,L2,pXa,qXa,rXa,sXa,tXa,uXa,vXa,Iua,wXa,xXa,aaa,ea,Ci,Qa,naa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ba=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=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");};
fa=function(a,b){if(b)a:{var c=g.da;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&&ea(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
eaa=function(a){return a.raw=a};
g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:baa(a)}};
ha=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.t=function(a){return a instanceof Array?a:ha(g.r(a))};
ia=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.u=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ka)ka(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.Le=b.prototype};
la=function(){this.J=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.I=0;this.V=this.B=null};
ma=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
oa=function(a,b){a.B={CO:b,NP:!0};a.j=a.I||a.D};
g.x=function(a,b,c){a.j=c;return{value:b}};
g.pa=function(a){a.j=0};
g.ra=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
g.ua=function(a,b){a.j=b;a.I=0};
g.va=function(a){a.I=0;var b=a.B.CO;a.B=null;return b};
g.gaa=function(a){a.V=[a.B];a.I=0;a.D=0};
g.haa=function(a,b){var c=a.V.splice(0)[0];(c=a.B=a.B||c)?c.NP?a.j=a.I||a.D:void 0!=c.Ma&&a.D<c.Ma?(a.j=c.Ma,a.B=null):a.j=a.D:a.j=b};
iaa=function(a){this.j=new la;this.u=a};
jaa=function(a,b){ma(a.j);var c=a.j.C;if(c)return xa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return ya(a)};
xa=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.J=!1,e;var f=e.value}catch(h){return a.j.C=null,oa(a.j,h),ya(a)}a.j.C=null;d.call(a.j,f);return ya(a)};
ya=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.J=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,oa(a.j,c)}a.j.J=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.NP)throw b.CO;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
kaa=function(a){this.next=function(b){ma(a.j);a.j.C?b=xa(a,a.j.C.next,b,a.j.N):(a.j.N(b),b=ya(a));return b};
this.throw=function(b){ma(a.j);a.j.C?b=xa(a,a.j.C["throw"],b,a.j.N):(oa(a.j,b),b=ya(a));return b};
this.return=function(b){return jaa(a,b)};
this[Symbol.iterator]=function(){return this}};
laa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.z=function(a){return laa(new kaa(new iaa(a)))};
g.za=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
maa=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{AP:e,vT:f}}return{AP:-1,vT:void 0}};
Ba=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};
Ca=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Da=function(a){return a?a:Array.prototype.fill};
Ea=function(a){return a?a:Array.prototype.copyWithin};
g.Fa=function(a,b,c){a=a.split(".");c=c||g.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.Ha=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};
La=function(a){a.Pf=void 0;a.getInstance=function(){return a.Pf?a.Pf:a.Pf=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.Ra=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++naa)};
oaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
paa=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=oaa:g.Ta=paa;return g.Ta.apply(null,arguments)};
g.Va=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.Wa=function(){return Date.now()};
g.Xa=function(a,b){function c(){}
c.prototype=b.prototype;a.Le=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.xi=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Ya=function(a){return a};
Za=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Za);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
bb=function(a,b){var c=Za.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(Za,this,d+a[e])};
qaa=function(){};
cb=function(){throw Error("Invalid UTF8");};
raa=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.uaa=function(a){var b=!1;b=void 0===b?!1:b;if(saa){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(taa||(taa=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 h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-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=c===d.length?d:d.subarray(0,c)}return a};
vaa=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.db=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};
eb=function(a,b){return 0==a.lastIndexOf(b,0)};
waa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.fb=function(a){return/^[\s\xa0]*$/.test(a)};
gb=function(a){if(!xaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(yaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(zaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Aaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Baa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Caa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Daa,"&#0;"));return a};
g.ib=function(a,b){return-1!=a.indexOf(b)};
jb=function(a,b){return g.ib(a.toLowerCase(),b.toLowerCase())};
g.qb=function(a,b){var c=0;a=kb(String(a)).split(".");b=kb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=lb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||lb(0==f[2].length,0==h[2].length)||lb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
lb=function(a,b){return a<b?-1:a>b?1:0};
g.rb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
ub=function(a){var b=sb;return b?b.brands.some(function(c){return(c=c.brand)&&g.ib(c,a)}):!1};
vb=function(a){return g.ib(g.rb(),a)};
wb=function(){var a=sb;return!!a&&0<a.brands.length};
xb=function(){return wb()?!1:vb("Opera")};
zb=function(){return wb()?!1:vb("Trident")||vb("MSIE")};
Ab=function(){return wb()?!1:vb("Edge")};
Eaa=function(){return wb()?ub("Microsoft Edge"):vb("Edg/")};
Bb=function(){return vb("Firefox")||vb("FxiOS")};
Fb=function(){return vb("Safari")&&!(Cb()||(wb()?0:vb("Coast"))||xb()||Ab()||Eaa()||(wb()?ub("Opera"):vb("OPR"))||Bb()||vb("Silk")||vb("Android"))};
Cb=function(){return wb()?ub("Chromium"):(vb("Chrome")||vb("CriOS"))&&!Ab()||vb("Silk")};
Faa=function(){return vb("Android")&&!(Cb()||Bb()||xb()||vb("Silk"))};
Gaa=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})]||""}};
Haa=function(a){var b=g.rb();if("Internet Explorer"===a){if(zb())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=Gaa(c);switch(a){case "Opera":if(xb())return b(["Version","Opera"]);if(wb()?ub("Opera"):vb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Ab())return b(["Edge"]);if(Eaa())return b(["Edg"]);break;case "Chromium":if(Cb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Bb()||"Safari"===a&&Fb()||"Android Browser"===a&&Faa()||"Silk"===a&&vb("Silk")?(b=c[2])&&b[1]||"":""};
Gb=function(a){if(wb()&&"Silk"!==a){var b=sb.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Haa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Ib=function(){var a=sb;return!!a&&!!a.platform};
Iaa=function(){return Ib()?"Android"===sb.platform:vb("Android")};
Jb=function(){return vb("iPhone")&&!vb("iPod")&&!vb("iPad")};
Lb=function(){return Jb()||vb("iPad")||vb("iPod")};
Ob=function(){return Ib()?"macOS"===sb.platform:vb("Macintosh")};
Jaa=function(){return Ib()?"Windows"===sb.platform:vb("Windows")};
Kaa=function(){var a=g.rb(),b="";if(Jaa())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Lb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Ob())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(jb(g.rb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Iaa())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Ib()?"Chrome OS"===sb.platform:vb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Qb=function(a){return a[a.length-1]};
Laa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.Ub=function(a,b,c){b=Rb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Rb=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.Vb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.Wb=function(a,b){return 0<=Maa(a,b)};
g.Xb=function(a){return 0==a.length};
Naa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Zb=function(a,b){b=Maa(a,b);var c;(c=0<=b)&&g.Yb(a,b);return c};
g.Yb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.$b=function(a,b){b=Rb(a,b);0<=b&&g.Yb(a,b)};
Oaa=function(a,b){var c=0;Laa(a,function(d,e){b.call(void 0,d,e,a)&&g.Yb(a,e)&&c++})};
g.ac=function(a){return Array.prototype.concat.apply([],arguments)};
g.cc=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.dc=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 h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.ic=function(a,b,c,d){Array.prototype.splice.apply(a,ec(arguments,1))};
ec=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.Ra(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.kc=function(a,b,c){return Qaa(a,c||jc,!1,b)};
lc=function(a,b){return Qaa(a,b,!0)};
Qaa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.mc=function(a,b){a.sort(b||jc)};
Raa=function(a,b){var c=jc;g.mc(a,function(d,e){return c(b(d),b(e))})};
g.qc=function(a,b){if(!g.Oa(a)||!g.Oa(b)||a.length!=b.length)return!1;for(var c=a.length,d=Saa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
jc=function(a,b){return a>b?1:a<b?-1:0};
Saa=function(a,b){return a===b};
g.sc=function(a,b,c){c=g.kc(a,b,c);0>c&&g.ic(a,-(c+1),0,b)};
g.uc=function(a,b,c){var d={};(0,g.tc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Taa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Uaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
vc=function(a){vc[" "](a);return a};
wc=function(a,b){try{return vc(a[b]),!0}catch(c){}return!1};
Vaa=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Waa=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.yc=function(a){return Vaa(Xaa,a,function(){return 0<=g.qb(xc,a)})};
g.Ac=function(a){return Number(Yaa)>=a};
g.Bc=function(a,b){void 0===b&&(b=0);Zaa();b=$aa[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.Cc=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.Bc(b,3)};
bba=function(a){var b=[];aba(a,function(c){b.push(c)});
return b};
Ec=function(a){!g.Dc||g.yc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ib("=.",a[b-1])&&(c=g.ib("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;aba(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
aba=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Gc[n];if(null!=p)return p;if(!g.fb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Zaa();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
Zaa=function(){if(!Gc){Gc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));$aa[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Gc[f]&&(Gc[f]=e)}}}};
Ic=function(a){return Hc&&null!=a&&a instanceof Uint8Array};
Jc=function(){return cba||(cba=new Uint8Array(0))};
Nc=function(a){if(a!==Kc)throw Error("illegal external caller");};
Oc=function(a,b){Nc(b);this.qd=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Sc=function(){return dba||(dba=new Oc(null,Kc))};
Uc=function(a){return(a=Tc(a))?new Uint8Array(a):Jc()};
Tc=function(a){Nc(Kc);var b=a.qd;b=null==b||Ic(b)?b:"string"===typeof b?Ec(b):null;return null==b?b:a.qd=b};
Xc=function(a,b){Object.isFrozen(a)||(Wc?a[Wc]|=b:void 0!==a.Sm?a.Sm|=b:Object.defineProperties(a,{Sm:{value:b,configurable:!0,writable:!0,enumerable:!1}}))};
eba=function(a,b){Object.isExtensible(a)&&(Wc?a[Wc]&&(a[Wc]&=~b):void 0!==a.Sm&&(a.Sm&=~b))};
Yc=function(a){var b;Wc?b=a[Wc]:b=a.Sm;return null==b?0:b};
fba=function(a,b){Wc?a[Wc]=b:void 0!==a.Sm?a.Sm=b:Object.defineProperties(a,{Sm:{value:b,configurable:!0,writable:!0,enumerable:!1}})};
Zc=function(a){Xc(a,1);return a};
$c=function(a){return a?!!(Yc(a)&2):!1};
ad=function(a){Xc(a,16);return a};
gba=function(a){if(!Array.isArray(a))throw Error("cannot mark non-array as shared mutably");eba(a,16)};
dd=function(a,b){b?Xc(a,8):eba(a,8)};
hba=function(a,b){fba(b,(Yc(a)|0)&-51)};
ed=function(a){return $c(a.pd)};
fd=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
iba=function(a){return null==a?a:a.constructor===Oc?a:"string"===typeof a?a?new Oc(a,Kc):Sc():Ic(a)?a.length?new Oc(new Uint8Array(a),Kc):Sc():null};
gd=function(a){if(ed(a))throw Error("Cannot mutate an immutable Message");};
jba=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};
kba=function(a){return a.displayName||a.name||"unknown type name"};
hd=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+kba(b)+" but got "+(a&&kba(a.constructor)));return a};
jd=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;if(Array.isArray(a))return new b(d?ad(a):a);if(c)return new b};
lba=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Ic(a))return g.Bc(a);if(a instanceof Oc){var b=a.qd;b=null==b||"string"===typeof b?b:Hc&&b instanceof Uint8Array?g.Bc(b):null;return null==b?"":a.qd=b}}}return a};
mba=function(a,b,c){if(null!=a){if(Array.isArray(a))a=kd(a,b,c);else if(fd(a)){var d={},e;for(e in a)d[e]=mba(a[e],b,c);a=d}else a=b(a);return a}};
kd=function(a,b,c){var d=Array.prototype.slice.call(a);c(a,d);for(a=0;a<d.length;a++)d[a]=mba(d[a],b,c);return d};
nba=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=lba(a);return Array.isArray(a)?kd(a,nba,oba):a};
pba=function(a){if("object"===typeof a){if(Ic(a))return new Uint8Array(a);if(Array.isArray(a.pd)&&a.constructor!==Object)return a.clone()}return a};
oba=function(){};
ld=function(a){return a.u||(a.u=a.pd[a.D+a.B]={})};
g.md=function(a,b,c){return-1===b?null:b>=a.D?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.pd[b+a.B]};
g.D=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||gd(a);a.J&&(a.J=void 0);if(b>=a.D||d)return ld(a)[b]=c,a;void 0!==a.u&&a.D>=a.pd.length?(d=a.pd.length-1,e=b+a.B,e>=d?(a.pd[d]=void 0,a.pd[e]=c,a.pd.push(a.u)):a.pd[e]=c):a.pd[b+a.B]=c;void 0!==a.u&&b in a.u&&delete a.u[b];return a};
nd=function(a,b){return Array.isArray(g.md(a,b))};
pd=function(a,b,c,d){var e=g.md(a,b,d);Array.isArray(e)?e&&Yc(e)&1||Zc(e):e=od;if(ed(a))c&1||(Xc(e,2),Object.freeze(e));else if(e===od||$c(e))e=Zc(Array.prototype.slice.call(e)),g.D(a,b,e,d);return e};
g.qd=function(a,b,c){return pd(a,b,0,void 0===c?!1:c)};
g.qba=function(a,b){a=g.md(a,b);return null==a?a:!!a};
rd=function(a,b){var c=g.md(a,b);if(null==c)return null;if(c instanceof Oc)return c;(c=iba(c))&&g.D(a,b,c,void 0,!0);return c};
sba=function(a,b){var c=rba,d=pd(a,b,1);if(d.length&&!(Yc(d)&4)){Object.isFrozen(d)&&(d=Zc(d.slice()),g.D(a,b,d,void 0,!0));for(b=0;b<d.length;b++)d[b]=c(d[b]);Xc(d,5)}ed(a)&&!Object.isFrozen(d)&&(Xc(d,2),Object.freeze(d));return d};
rba=function(a){return iba(a)||Sc()};
sd=function(a,b,c){a=g.md(a,b);return null==a?c:a};
ud=function(a,b){var c=void 0===c?"":c;a=rd(a,b);return null==a?c?new Oc(c,Kc):Sc():a};
tba=function(a,b,c){null==c?c=od:Zc(c);return g.D(a,b,c)};
vd=function(a,b,c){return g.D(a,b,void 0,!1,c)};
wd=function(a,b,c,d){gd(a);c!==d?g.D(a,b,c):vd(a,b);return a};
g.xd=function(a,b,c,d,e){gd(a);a=pd(a,b,2,!1);e&&Yc(a)&4&&(c=rba(c));void 0!=d?a.splice(d,0,c):a.push(c)};
g.zd=function(a,b,c,d){gd(a);(c=yd(a,c))&&c!==b&&null!=d&&(a.j&&c in a.j&&(a.j[c]=void 0),g.D(a,c));return g.D(a,b,d)};
yd=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.md(a,e)&&(0!==c&&vd(a,c,!0),c=e)}return c};
g.uba=function(a,b,c){gd(a);a.j||(a.j={});var d=a.j[c];if(d)return b=d.GA(),b!==d&&(g.D(a,c,b.pd),a.j[c]=b),b;d=g.md(a,c);b=jd(d,b,!0).GA();d!==b.pd&&g.D(a,c,b.pd);return a.j[c]=b};
Bd=function(a,b,c,d){d=void 0===d?!1:d;var e=d;a.j||(a.j={});var f=a.j[c];if(f)b=f;else if(b=jd(g.md(a,c,e),b))a.j[c]=b,Xc(b.pd,Yc(a.pd)&-33);if(null==b)return b;ed(b)&&!ed(a)&&(b=b.GA(),g.D(a,c,b.pd,d),a.j[c]=b);return b};
vba=function(a,b,c,d,e){e=void 0===e?!0:e;a.j||(a.j={});var f=a.j[c];d=pd(a,c,2,d);var h=!!(Yc(a.pd)&16),l=$c(d);l=ed(a)||l;if(!f){f=[];for(var m=l,n=0;n<d.length;n++){var p=d[n];m=m||$c(p);p=jd(p,b,!1,h);void 0!==p&&(f.push(p),l&&Xc(p.pd,2))}a.j[c]=f;dd(d,!m)}b=l||e;e=$c(f);b&&!e&&(Object.isFrozen(f)&&(a.j[c]=f=f.slice()),Xc(f,2),Object.freeze(f));!b&&e&&(a.j[c]=f=f.slice());return f};
Cd=function(a,b,c,d){d=void 0===d?!1:d;var e=ed(a);b=vba(a,b,c,d,e);a=g.qd(a,c,d);if(!(c=e)&&(c=a)){if(!a)throw Error("cannot check mutability state of non-array");c=!(Yc(a)&8)}if(c){for(c=0;c<b.length;c++)(d=b[c])&&ed(d)&&!e&&(b[c]=b[c].GA(),a[c]=b[c].pd);dd(a,!0)}return b};
F=function(a,b,c,d){gd(a);a.j||(a.j={});null==d?b=d=void 0:b=hd(d,b).pd;a.j[c]=d;return g.D(a,c,b)};
Dd=function(a,b,c,d,e){gd(a);a.j||(a.j={});null!=e?b=hd(e,b).pd:b=e=void 0;a.j[c]=e;return g.zd(a,c,d,b)};
Ed=function(a,b,c,d){gd(a);if(null!=d){var e=Zc([]);for(var f=!1,h=0;h<d.length;h++)e[h]=hd(d[h],b).pd,f=f||$c(e[h]);a.j||(a.j={});a.j[c]=d;dd(e,!f)}else a.j&&(a.j[c]=void 0),e=od;return g.D(a,c,e)};
Fd=function(a,b,c){null!=c&&c instanceof Oc&&Nc(Kc);g.D(a,b,c)};
Jd=function(a,b,c,d,e){gd(a);var f=vba(a,c,b,void 0,!1);c=null!=d?hd(d,c):new c;a=pd(a,b,2);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.pd)):(f.push(c),a.push(c.pd));c.Xp()&&dd(a,!1);return c};
Kd=function(a,b,c){return sd(a,b,void 0===c?0:c)};
Md=function(a,b){return sd(a,b,"")};
Pd=function(a,b,c){a||(a=Nd);Nd=null;var d=this.constructor.u||0,e=0<d,f=this.constructor.j;a?Yc(a)&16&&Xc(a,32):(a=f?[f]:[],Xc(a,48));e&&0<a.length&&fd(a[a.length-1])&&"g"in a[a.length-1]&&(d=0);this.B=(f?0:-1)-d;this.j=void 0;this.pd=a;a:{f=this.pd.length;d=f-1;if(f&&(f=this.pd[d],fd(f))){this.u=f;b=Object.keys(f);0<b.length&&g.Od(b,isNaN)?this.D=Number.MAX_VALUE:this.D=d-this.B;break a}void 0!==b&&-1<b?(this.D=Math.max(b,d+1-this.B),this.u=void 0):this.D=Number.MAX_VALUE}if(!e&&this.u&&"g"in this.u)throw Error('Unexpected "g" flag in sparse object of message that is not a group type.');
if(c)for(e=0;e<c.length;e++)b=c[e],b<this.D?(b+=this.B,(d=this.pd[b])?Array.isArray(d)&&Zc(d):this.pd[b]=od):(d=ld(this),(f=d[b])?Array.isArray(f)&&Zc(f):d[b]=od)};
Rd=function(a){Qd=!0;try{return JSON.stringify(a.toJSON(),wba)}finally{Qd=!1}};
$d=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);Nd=b;ad(b);a=new a(b);Nd=null;return a};
wba=function(a,b){return lba(b)};
ae=function(a,b){b.C&&(a.C=b.C.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]),h=+d;if(Array.isArray(e)){if(e.length)for(f=Cd(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)ae(f[h],e[h])}else(f=Bd(a,e.constructor,h,f))&&ae(f,e)}}}};
xba=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
be=function(){return Error("Failed to read varint, encoding is invalid.")};
yba=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
ce=function(a){if("string"===typeof a)return{buffer:Ec(a),Xp:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Xp:!1};if(a.constructor===Uint8Array)return{buffer:a,Xp:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Xp:!1};if(a.constructor===Oc)return{buffer:Tc(a)||Jc(),Xp:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Xp:!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");
};
Aba=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.r(zba(c,a)),b=c.next().value,a=c.next().value,c=b);g.de=c>>>0;g.ee=a>>>0};
g.Cba=function(a){if(16>a.length)Aba(Number(a));else if(Bba)a=BigInt(a),g.de=Number(a&BigInt(4294967295))>>>0,g.ee=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);g.ee=g.de=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.ee*=1E6,g.de=1E6*g.de+d,4294967296<=g.de&&(g.ee+=g.de/4294967296|0,g.de%=4294967296);b&&(b=g.r(zba(g.de,g.ee)),a=b.next().value,b=b.next().value,g.de=a,g.ee=b)}};
zba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
g.fe=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.he=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;ge(a,f);if(128>h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw be();};
ge=function(a,b){a.j=b;if(b>a.B)throw yba(a.B,b);};
g.me=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw be();ge(a,c);return e};
g.ne=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
g.oe=function(a){var b=g.ne(a),c=g.ne(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
g.se=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return ge(a,c),!!(b&127)}throw be();};
Dba=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw yba(b,a.B-c);a.j=d;return c};
Fba=function(a,b){if(0==b)return Sc();var c=Dba(a,b);a.xB&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?Jc():Eba?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Sc():new Oc(c,Kc)};
te=function(a){if(Gba.length){var b=Gba.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.fe(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;Hba(this)};
Hba=function(a){var b={};a.kH=void 0===b.kH?!1:b.kH};
Iba=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.me(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw xba(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
ue=function(a){switch(a.u){case 0:0!=a.u?ue(a):g.se(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)ue(a);else{var b=g.me(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!Iba(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}ue(a)}while(1);break;default:throw xba(a.u,a.B);}};
g.ve=function(a,b,c){var d=a.j.B,e=g.me(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d};
g.ye=function(a){var b=g.me(a.j)>>>0;a=a.j;var c=Dba(a,b);a=a.u;if(Jba){var d=a,e;(e=we)||(e=we=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===xe){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),xe=!0}catch(p){xe=!1}}!xe&&(we=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?cb():(m=a[f++],194>l||128!==(m&192)?(f--,cb()):c.push((l&31)<<6|m&
63)):240>l?f>=b-1?cb():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,cb()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?cb():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,cb()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):cb(),8192<=c.length&&(h=raa(h,c),c.length=0);f=raa(h,c)}return f};
Kba=function(a){var b=g.me(a.j)>>>0;return Fba(a.j,b)};
Lba=function(a,b){this.u=a>>>0;this.j=b>>>0};
Nba=function(a){if(!a)return Mba||(Mba=new Lba(0,0));if(!/^-?\d+$/.test(a))return null;g.Cba(a);return new Lba(g.de,g.ee)};
ze=function(){this.j=[]};
Oba=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)};
Ae=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Pba=function(a,b){if(0<=b)Ae(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.Be=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)};
Qba=function(){this.B=[];this.u=0;this.j=new ze};
Fe=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Rba=function(a,b){g.Ge(a,b,2);b=a.j.end();Fe(a,b);b.push(a.u);return b};
Sba=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++};
Tba=function(a,b){if(b=b.C){Fe(a,a.j.end());for(var c=0;c<b.length;c++)Fe(a,Tc(b[c])||Jc())}};
g.Ge=function(a,b,c){Ae(a.j,8*b+c)};
g.He=function(a,b,c){g.Ge(a,b,2);Ae(a.j,c.length);Fe(a,a.j.end());Fe(a,c)};
Uba=function(a,b,c,d,e,f){(a=a.j&&a.j[c])?Array.isArray(a)?(e=f.WG?Zc(a.slice()):a,Ed(b,0<e.length?e[0].constructor:void 0,c,e)):F(b,a.constructor,c,a):(Hc&&d instanceof Uint8Array?e=d.length?new Oc(new Uint8Array(d),Kc):Sc():(Array.isArray(d)&&(e?Xc(d,2):d&&Yc(d)&1&&f.WG?(e=Array.prototype.slice.call(d),fba(e,(Yc(d)|0)&-51),d=e):gba(d)),e=d),g.D(b,c,e))};
Ie=function(){Pd.apply(this,arguments)};
Xba=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],h=f.X5;h||(d.ix=f.Z2a||f.v3.NE,f.MN?(d.ZE=Vba(f.MN),h=function(l){return function(m,n,p){return l.ix(m,n,p,l.ZE)}}(d)):f.oQ?(d.YE=Wba(f.xH.Nr,f.oQ),h=function(l){return function(m,n,p){return l.ix(m,n,p,l.YE)}}(d)):h=d.ix,f.X5=h);
h(b,a,f.xH);d={ix:d.ix,ZE:d.ZE,YE:d.YE}}}Tba(b,a)};
Yba=function(a,b,c){return a[Je]||(a[Je]=function(d,e){return b(d,e,c)})};
$ba=function(a){var b=a[Je];if(!b){var c=Ke(a);b=function(d,e){return Zba(d,e,c)};
a[Je]=b}return b};
aca=function(a){var b=a.MN;if(b)return $ba(b);if(b=a.Y2a)return Yba(a.xH.Nr,b,a.oQ)};
bca=function(a){var b=aca(a),c=a.xH,d=a.v3.fn;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
cca=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(Le in c||Me in c||0<c.length&&"function"==typeof c[0])?c:void 0};
dca=function(a,b,c,d,e,f){b.Nr=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;h<a.length;){c=a[h++];for(var m=h+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[h++];m-=h;switch(m){case 0:d(b,c,l);break;case 1:(m=cca(a,h))?(h++,e(b,c,l,m)):d(b,c,l,a[h++]);break;case 2:m=h++;m=cca(a,m);e(b,c,l,m,a[h++]);break;case 3:f(b,c,l,a[h++],a[h++],a[h++]);break;case 4:f(b,c,l,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("unexpected number of binary field arguments: "+m);
}}return b};
Vba=function(a){var b=a[Ne];if(!b){var c=Oe(a);b=function(d,e){return eca(d,e,c)};
a[Ne]=b}return b};
Wba=function(a,b){var c=a[Ne];c||(c=function(d,e){return Xba(d,e,b)},a[Ne]=c);
return c};
fca=function(a,b){a.push(b)};
gca=function(a,b,c){a.push(b,c.NE)};
hca=function(a,b,c,d){var e=Vba(d),f=Oe(d).Nr,h=c.NE;a.push(b,function(l,m,n){return h(l,m,n,f,e)})};
ica=function(a,b,c,d,e,f){var h=Wba(d,f),l=c.NE;a.push(b,function(m,n,p){return l(m,n,p,d,h)})};
Oe=function(a){var b=a[Me];if(b)return b;b=dca(a,a[Me]=[],fca,gca,hca,ica);Le in a&&Me in a&&(a.length=0);return b};
jca=function(a,b){a[0]=b};
kca=function(a,b,c,d){var e=c.fn;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
lca=function(a,b,c,d,e){var f=c.fn,h=$ba(d),l=Ke(d).Nr;a[b]=function(m,n,p){return f(m,n,p,l,h,e)}};
mca=function(a,b,c,d,e,f,h){var l=c.fn,m=Yba(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,h)}};
Ke=function(a){var b=a[Le];if(b)return b;b=dca(a,a[Le]={},jca,kca,lca,mca);Le in a&&Me in a&&(a.length=0);return b};
Zba=function(a,b,c){for(;Iba(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=bca(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,ue(f),!f.kH){var h=f.j.j-d;f.j.j=d;d=Fba(f.j,h);(f=e.C)?f.push(d):e.C=[d]}}return a};
eca=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]);Xba(a,b,e?c[0]:void 0)};
g.Re=function(a,b){var c=new Qba;eca(a,c,Oe(b));Fe(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 h=b[f];a.set(h,e);e+=h.length}c.B=[a];return a};
g.Se=function(a,b){return{fn:a,NE:b}};
g.Te=function(a,b,c){b=g.md(b,c);b=null==b?b:+b;if(null!=b){g.Ge(a,c,1);a=a.j;var d=+b;if(0===d)g.ee=0<1/d?0:2147483648,g.de=0;else if(isNaN(d))g.ee=2147483647,g.de=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.ee=(c|2146435072)>>>0,g.de=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.ee=(c|b/4294967296)>>>0,g.de=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.ee=(c|b+1023<<20|1048576*d&1048575)>>>
0;g.de=4503599627370496*d>>>0}g.Be(a,g.de);g.Be(a,g.ee)}};
g.Ue=function(a,b,c){b=g.md(b,c);null!=b&&("string"===typeof b&&Nba(b),null!=b&&(g.Ge(a,c,0),"number"===typeof b?(a=a.j,Aba(b),Oba(a,g.de,g.ee)):(c=Nba(b),Oba(a.j,c.u,c.j))))};
g.Ve=function(a,b,c){b=g.md(b,c);null!=b&&null!=b&&(g.Ge(a,c,0),Pba(a.j,b))};
g.nca=function(a,b,c){b=g.md(b,c);null!=b&&g.He(a,c,g.uaa(b))};
g.oca=function(a,b,c,d,e){b=Bd(b,d,c);null!=b&&(c=Rba(a,c),e(b,a),Sba(a,c))};
pca=function(a){var b=this.Nr,c=this.j;return this.isRepeated?Cd(a,b,c,!0):Bd(a,b,c,!0)};
g.J=function(){Ie.apply(this,arguments)};
qca=function(a){g.J.call(this,a)};
rca=function(a){g.J.call(this,a)};
We=function(a){g.J.call(this,a)};
Xe=function(a){g.J.call(this,a)};
sca=function(a){this.YN=a};
Ye=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Zu=new Map};
Ze=function(a,b){Ye.call(this,a,3,b)};
$e=function(a,b){Ye.call(this,a,2,b)};
g.af=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.bf=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Oa(d)?g.bf.apply(null,d):g.af(d)}};
g.K=function(){this.jm=this.jm;this.Eh=this.Eh};
g.M=function(a,b){g.cf(a,g.Va(g.af,b))};
g.cf=function(a,b){a.jm?b():(a.Eh||(a.Eh=[]),a.Eh.push(b))};
g.df=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
uca=function(a){var b=g.Ha("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(h){e="Not available",c=!0}b=tca(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,jf[c])c=jf[c];else{c=String(c);if(!jf[c]){var f=/function\s+([^\(]+)/m.exec(c);jf[c]=f?f[1]:"[Anonymous]"}c=jf[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}};
tca=function(a,b){b||(b={});b[vca(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[vca(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=tca(a,b));return c};
vca=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
wca=function(a){return g.kf?"webkit"+a:a.toLowerCase()};
lf=function(a,b){g.df.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)};
mf=function(a){return!(!a||!a[xca])};
zca=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Sc=e;this.key=++yca;this.hA=this.EB=!1};
nf=function(a){a.hA=!0;a.listener=null;a.proxy=null;a.src=null;a.Sc=null};
g.of=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.pf=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
qf=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.rf=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Aca=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.sf=function(a){for(var b in a)return b};
Bca=function(a){for(var b in a)return a[b]};
tf=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.uf=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.Af=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Bf=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
Cca=function(a,b){return(b=Bf(a,b))&&a[b]};
g.Cf=function(a){for(var b in a)return!1;return!0};
g.Dca=function(a){for(var b in a)delete a[b]};
g.Df=function(a,b){b in a&&delete a[b]};
g.Ef=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Ff=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.Gf=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Hf=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.Hf(a[c]);return b};
g.If=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<Eca.length;f++)c=Eca[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Fca=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Jf=function(a){this.src=a;this.listeners={};this.j=0};
g.Kf=function(a,b){var c=b.type;c in a.listeners&&g.Zb(a.listeners[c],b)&&(nf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
Lf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.hA&&f.listener==b&&f.capture==!!c&&f.Sc==d)return e}return-1};
g.Nf=function(a,b,c,d,e){if(d&&d.once)return Mf(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.Nf(a,b[f],c,d,e);return null}c=Of(c);return mf(a)?a.Na(b,c,g.Pa(d)?!!d.capture:!!d,e):Gca(a,b,c,!1,d,e)};
Gca=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Pa(e)?!!e.capture:!!e,l=Pf(a);l||(a[Qf]=l=new Jf(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Hca();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Ica||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Jca(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Kca++;return c};
Hca=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Lca;return a};
Mf=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Mf(a,b[f],c,d,e);return null}c=Of(c);return mf(a)?a.dD(b,c,g.Pa(d)?!!d.capture:!!d,e):Gca(a,b,c,!0,d,e)};
Mca=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Mca(a,b[f],c,d,e);else d=g.Pa(d)?!!d.capture:!!d,c=Of(c),mf(a)?a.uc(b,c,d,e):a&&(a=Pf(a))&&(b=a.Ly(b,c,d,e))&&Rf(b)};
Rf=function(a){if("number"!==typeof a&&a&&!a.hA){var b=a.src;if(mf(b))g.Kf(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Jca(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Kca--;(c=Pf(b))?(g.Kf(c,a),0==c.j&&(c.src=null,b[Qf]=null)):nf(a)}}};
Jca=function(a){return a in Sf?Sf[a]:Sf[a]="on"+a};
Lca=function(a,b){if(a.hA)a=!0;else{b=new lf(b,this);var c=a.listener,d=a.Sc||a.src;a.EB&&Rf(a);a=c.call(d,b)}return a};
Pf=function(a){a=a[Qf];return a instanceof Jf?a:null};
Of=function(a){if("function"===typeof a)return a;a[Tf]||(a[Tf]=function(b){return a.handleEvent(b)});
return a[Tf]};
g.Uf=function(){g.K.call(this);this.B=new Jf(this);this.Cb=this;this.Ha=null};
Vf=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.hA&&h.capture==c){var l=h.listener,m=h.Sc||h.src;h.EB&&g.Kf(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Wf=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
Nca=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
Xf=function(a){return function(){return a}};
g.Yf=function(){};
Oca=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
$f=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
ag=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Pca=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)}};
cg=function(){if(void 0===bg){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ya,createScript:Ya,createScriptURL:Ya})}catch(c){g.C.console&&g.C.console.error(c.message)}bg=a}else bg=a}return bg};
dg=function(a,b){this.j=a===Qca&&b||"";this.u=Rca};
eg=function(a){return a instanceof dg&&a.constructor===dg&&a.u===Rca?a.j:"type_error:Const"};
g.fg=function(a){return new dg(Qca,a)};
gg=function(a,b){this.j=b===Sca?a:"";this.Qm=!0};
Tca=function(a){var b=cg();a=b?b.createScript(a):a;return new gg(a,Sca)};
hg=function(a,b){this.j=b===Uca?a:""};
Vca=function(a){return a instanceof hg&&a.constructor===hg?a.j:"type_error:TrustedResourceUrl"};
Yca=function(a,b){var c=eg(a);if(!Wca.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Xca,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 dg?eg(d):encodeURIComponent(String(d))});
return g.ig(a)};
g.ig=function(a){var b=cg();a=b?b.createScriptURL(a):a;return new hg(a,Uca)};
kg=function(a,b){this.j=b===jg?a:""};
g.lg=function(a){return a instanceof kg&&a.constructor===kg?a.j:"type_error:SafeUrl"};
g.mg=function(a){a instanceof kg||(a="object"==typeof a&&a.Qm?a.Qj():String(a),Zca.test(a)?a=new kg(a,jg):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match($ca)?new kg(a,jg):null));return a||ada};
bda=function(a){if(a instanceof kg)return a;a="object"==typeof a&&a.Qm?a.Qj():String(a);Zca.test(a)||(a="about:invalid#zClosurez");return new kg(a,jg)};
og=function(a,b){this.j=b===ng?a:"";this.Qm=!0};
pg=function(a){return a instanceof og&&a.constructor===og?a.j:"type_error:SafeStyle"};
dda=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(cda).join(" "):cda(d),b+=c+":"+d+";")}return b?new og(b,ng):qg};
eda=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=pg(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new og(c,ng):qg};
cda=function(a){if(a instanceof kg)return'url("'+g.lg(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof dg)a=eg(a);else{a=String(a);var b=a.replace(fda,"$1").replace(fda,"$1").replace(gda,"url");if(hda.test(b)){if(b=!ida.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&jda(a)}a=b?kda(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new bb("Value does not allow [{;}], got: %s.",[a]);return a};
jda=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};
kda=function(a){return a.replace(gda,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.mg(d).Qj();return c+f+b+f+e})};
vg=function(a,b){this.j=b===ug?a:"";this.Qm=!0};
g.wg=function(a){return a instanceof vg&&a.constructor===vg?a.j:"type_error:SafeHtml"};
lda=function(a){return a instanceof vg?a:xg(gb("object"==typeof a&&a.Qm?a.Qj():String(a)))};
nda=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=lda(e),d.push(g.wg(e).toString()))}
var c=lda(mda),d=[];a.forEach(b);return xg(d.join(g.wg(c).toString()))};
oda=function(a){return nda(Array.prototype.slice.call(arguments))};
xg=function(a){var b=cg();a=b?b.createHTML(a):a;return new vg(a,ug)};
g.yg=function(a,b){return xg(b)};
pda=function(a,b){return new og(b,ng)};
g.rda=function(a,b){if(qda())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.wg(b)};
g.zg=function(a,b){b=b instanceof kg?b:bda(b);a.href=g.lg(b)};
Ag=function(a,b,c,d){a=a instanceof kg?a:bda(a);b=b||g.C;c=c instanceof dg?eg(c):c||"";return void 0!==d?b.open(g.lg(a),c,d):b.open(g.lg(a),c)};
Bg=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&sda.test(a))break a;a=""}return a};
tda=function(a,b){return a+Math.random()*(b-a)};
g.Cg=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Dg=function(a,b){a%=b;return 0>a*b?a+b:a};
g.Eg=function(a,b,c){return a+c*(b-a)};
Fg=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Gg=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Hg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Qg=function(a,b){this.width=a;this.height=b};
g.Rg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Sg=function(a){return a.width*a.height};
g.Tg=function(a){return encodeURIComponent(String(a))};
Ug=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Vg=function(a){return a=gb(a)};
g.Wg=function(a){return null==a?"":String(a)};
Xg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Yg=function(a){var b=Number(a);return 0==b&&g.fb(a)?NaN:b};
uda=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
vda=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
wda=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
xda=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};
ah=function(a){return a?new Zg($g(a)):yda||(yda=new Zg)};
zda=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.bh=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.dh=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ch(document,"*",a,b)};
g.eh=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.ch(c,"*",a,b)[0]||null}return a||null};
g.ch=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.Wb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
fh=function(a,b){g.of(b,function(c,d){c&&"object"==typeof c&&c.Qm&&(c=c.Qj());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Ada.hasOwnProperty(d)?a.setAttribute(Ada[d],c):eb(d,"aria-")||eb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Bda=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Qg(a.clientWidth,a.clientHeight)};
Dda=function(a){var b=Cda(a);a=a.parentWindow||a.defaultView;return g.Dc&&g.yc("10")&&a.pageYOffset!=b.scrollTop?new g.Gg(b.scrollLeft,b.scrollTop):new g.Gg(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Cda=function(a){return a.scrollingElement?a.scrollingElement:g.kf||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
gh=function(a){return a?a.parentWindow||a.defaultView:window};
lh=function(a,b,c){var d=arguments,e=document,f=d[1],h=hh(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):fh(h,f));2<d.length&&Eda(e,h,d,2);return h};
Eda=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 h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.tc(h?g.cc(f):f,e)}}};
g.mh=function(a){return hh(document,a)};
hh=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.nh=function(a){return document.createTextNode(String(a))};
g.oh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.ph=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.qh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Fda=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.rh=function(a){var b;if(Gda&&!(g.Dc&&g.yc("9")&&!g.yc("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.sh=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};
$g=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.th=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.oh(a),a.appendChild($g(a).createTextNode(String(b)))};
uh=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")||Hda(a)):a.hasAttribute("tabindex")&&Hda(a))&&g.Dc){var c;"function"!==typeof a.getBoundingClientRect||g.Dc&&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};
Hda=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
wh=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return vh(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Wb(e.className.split(/\s+/),c))},!0)};
vh=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Zg=function(a){this.j=a||g.C.document||document};
yh=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Ab()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(xh||(xh=Ida()),xh(a)):g.C.setImmediate(a)};
Ida=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!vb("Presto")&&(a=function(){var e=g.mh("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ta)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!zb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.VN;c.VN=null;e()}};
return function(e){d.next={VN:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
Jda=function(a){g.C.setTimeout(function(){throw a;},0)};
zh=function(){this.u=this.j=null};
Ah=function(){this.next=this.scope=this.j=null};
g.Dh=function(a,b){Bh||Kda();Ch||(Bh(),Ch=!0);Lda.add(a,b)};
Kda=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);Bh=function(){a.then(Mda)}}else Bh=function(){yh(Mda)}};
Mda=function(){for(var a;a=Lda.remove();){try{a.j.call(a.scope)}catch(b){Jda(b)}Nca(Nda,a)}Ch=!1};
g.Fh=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Yf)try{var b=this;a.call(void 0,function(c){Eh(b,2,c)},function(c){Eh(b,3,c)})}catch(c){Eh(this,3,c)}};
Oda=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
Gh=function(a,b,c){var d=Pda.get();d.u=a;d.onRejected=b;d.context=c;return d};
Ih=function(a){if(a instanceof g.Fh)return a;var b=new g.Fh(g.Yf);Eh(b,2,a);return b};
Jh=function(a){return new g.Fh(function(b,c){c(a)})};
g.Rda=function(a,b,c){Qda(a,b,c,null)||g.Dh(g.Va(b,a))};
Sda=function(a){return new g.Fh(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Rda(e,b,c)})};
Lh=function(a,b){b=Gh(b,b);b.B=!0;Kh(a,b);return a};
Tda=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,h=c.u;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?Tda(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Uda(c),Vda(c,e,3,b)))}a.B=null}else Eh(a,3,b)};
Kh=function(a,b){a.u||2!=a.j&&3!=a.j||Wda(a);a.C?a.C.next=b:a.u=b;a.C=b};
Xda=function(a,b,c,d){var e=Gh(null,null,null);e.j=new g.Fh(function(f,h){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Mh?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;Kh(a,e);return e.j};
Eh=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Qda(c,a.u5,a.v5,a)||(a.J=c,a.j=b,a.B=null,Wda(a),3!=b||c instanceof Mh||Yda(a,c)))};
Qda=function(a,b,c,d){if(a instanceof g.Fh)return Kh(a,Gh(b||g.Yf,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Pa(a))try{var f=a.then;if("function"===typeof f)return Zda(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
Zda=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
Wda=function(a){a.I||(a.I=!0,g.Dh(a.iY,a))};
Uda=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Vda=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,$da(b,c,d);else try{b.B?b.u.call(b.context):$da(b,c,d)}catch(e){aea.call(null,e)}Nca(Pda,b)};
$da=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
Yda=function(a,b){a.D=!0;g.Dh(function(){a.D&&aea.call(null,b)})};
Mh=function(a){Za.call(this,a)};
g.Oh=function(a,b){g.Uf.call(this);this.ph=a||1;this.FA=b||g.C;this.NN=(0,g.Ta)(this.Y4,this);this.YP=g.Wa()};
g.Ph=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)};
Qh=function(a,b){var c=null;return(new g.Fh(function(d,e){c=g.Ph(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Wi(function(d){g.C.clearTimeout(c);
throw d;})};
g.Rh=function(a){this.J=a;this.j=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Oh(this.flushInterval);this.u.Na("tick",this.zF,!1,this);this.D=!1};
bea=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.zF()};
cea=function(a,b){return a.I.has(b)?void 0:a.j.get(b)};
dea=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
eea=function(a){this.j=a;this.j.wB("/client_streamz/po/w/rl",{Mh:3,Lh:"mn"},{Mh:2,Lh:"ac"},{Mh:2,Lh:"sc"},{Mh:3,Lh:"rk"})};
fea=function(a){this.j=a;this.j.wB("/client_streamz/po/w/el",{Mh:3,Lh:"en"},{Mh:3,Lh:"rk"})};
gea=function(a){this.j=a;this.j.ip("/client_streamz/po/w/cec",{Mh:2,Lh:"ec"},{Mh:3,Lh:"rk"})};
g.Sh=function(a){g.J.call(this,a,-1,hea)};
g.Th=function(a){g.J.call(this,a,-1,iea)};
g.Uh=function(a){g.J.call(this,a)};
g.Vh=function(a){g.J.call(this,a)};
kea=function(a){g.J.call(this,a,-1,jea)};
g.lea=function(a){var b=new g.Sh;b=g.D(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Lh);b=tba(b,3,c);c=[];d=[];for(var e=g.r(a.Zu.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 h=a.C;for(var l=a.HH(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.YN;var q=new g.Vh;switch(h){case 3:g.zd(q,1,g.Wh,Number(p));break;case 2:g.zd(q,2,g.Wh,Number(p))}m.push(q)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new g.Th;m=F(n,g.Vh,2,m);n=f;p=[];q=a;for(var v=
[],w=0;w<q.j.length;w++)v.push(q.j[w].Mh);q=v;for(v=0;v<q.length;v++){w=q[v];var y=n[v],A=new g.Uh;switch(w){case 3:g.zd(A,1,g.Xh,String(y));break;case 2:g.zd(A,2,g.Xh,Number(y));break;case 1:g.zd(A,3,g.Xh,"true"==y)}p.push(A)}Ed(m,g.Uh,1,p);c.push(m)}}Ed(b,g.Th,4,c);return b};
mea=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};
nea=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 v=h,w=0;64>w;w+=4)v[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=v[w-3]^v[w-8]^v[w-14]^v[w-16],v[w]=(q<<1|q>>>31)&4294967295;q=e[0];var y=e[1],A=e[2],B=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=B^y&(A^B);var H=1518500249}else G=y^A^B,H=1859775393;else 60>w?(G=y&A|B&(y|A),H=2400959708):(G=y^A^B,H=3395469782);G=((q<<5|q>>>27)&4294967295)+G+E+H+v[w]&4294967295;E=B;B=A;A=(y<<30|y>>>2)&4294967295;y=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+y&4294967295;e[2]=
e[2]+A&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+E&4294967295}
function c(q,v){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],y=0,A=q.length;y<A;++y)w.push(q.charCodeAt(y));q=w}v||(v=q.length);w=0;if(0==n)for(;w+64<v;)b(q.slice(w,w+64)),w+=64,p+=64;for(;w<v;)if(f[n++]=q[w++],p++,64==n)for(n=0,b(f);w+64<v;)b(q.slice(w,w+64)),w+=64,p+=64}
function d(){var q=[],v=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=v&255,v>>>=8;b(f);for(w=v=0;5>w;w++)for(var y=24;0<=y;y-=8)q[v++]=e[w]>>y&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,OX:function(){for(var q=d(),v="",w=0;w<q.length;w++)v+="0123456789ABCDEF".charAt(Math.floor(q[w]/16))+"0123456789ABCDEF".charAt(q[w]%16);return v}}};
pea=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,oea(mea(d),a,c||null)].join(" "):null};
oea=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.tc(d,function(l){e.push(l)}),qea(e.join(" "));
var f=[],h=[];g.tc(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Xb(f)?[c,b,a]:[f.join(":"),c,b,a];g.tc(d,function(l){e.push(l)});
a=qea(e.join(" "));a=[c,a];g.Xb(h)||a.push(h.join(""));return a.join("_")};
qea=function(a){var b=nea();b.update(a);return b.OX().toLowerCase()};
Yh=function(a){this.j=a||{cookie:""}};
Zh=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=kb(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}};
$h=function(a){return!!rea.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
sea=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;$h(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new Yh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");$h(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
tea=function(a,b,c,d){(a=g.C[a])||(a=(new Yh(document)).get(b));return a?pea(a,c,d):null};
ai=function(a,b){b=void 0===b?!1:b;var c=mea(String(g.C.location.href)),d=[];if(sea(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 Yh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?pea(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&$h(b)&&((b=tea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=tea("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
bi=function(a){g.J.call(this,a,-1,uea)};
g.ci=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.I=c||0;this.J=d||2};
g.di=function(a){a.j=Math.min(a.D,a.j*a.J);a.B=Math.min(a.D,a.j+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.j):0));a.u++};
g.fi=function(a){var b=[];ei(new vea,a,b);return b.join("")};
vea=function(){};
ei=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),ei(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),wea(d,c),c.push(":"),ei(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":wea(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);}}};
wea=function(a,b){b.push('"',a.replace(xea,function(c){var d=yea[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),yea[c]=d);return d}),'"')};
zea=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"}};
gi=function(){};
hi=function(){};
Aea=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
li=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
mi=function(a){return a?decodeURI(a):a};
g.pi=function(a,b){return b.match(oi)[a]||null};
g.qi=function(a){return mi(g.pi(3,a))};
g.Bea=function(a){a=a.match(oi);return li(a[1],a[2],a[3],a[4])};
Cea=function(a){a=a.match(oi);return li(a[1],null,a[3],a[4])};
Dea=function(a){a=a.match(oi);return li(null,null,null,null,a[5],a[6],a[7])};
ri=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?Ug(e):"")}}};
Eea=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.slice(0,c),d,a.slice(b)]};
Fea=function(a,b){return b?a?a+"&"+b:b:a};
si=function(a,b){if(!b)return a;a=Eea(a);a[1]=Fea(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
ti=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)ti(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Tg(b)))};
Gea=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)ti(a[b],a[b+1],c);return c.join("&")};
g.ui=function(a){var b=[],c;for(c in a)ti(c,a[c],b);return b.join("&")};
vi=function(a,b){var c=2==arguments.length?Gea(arguments[1],0):Gea(arguments,1);return si(a,c)};
g.wi=function(a,b){b=g.ui(b);return si(a,b)};
xi=function(a,b,c){c=null!=c?"="+g.Tg(c):"";return si(a,b+c)};
Hea=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
yi=function(a,b){var c=a.search(Iea),d=Hea(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 Ug(a.slice(d,-1!==e?e:0))};
zi=function(a,b){for(var c=a.search(Iea),d=0,e,f=[];0<=(e=Hea(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Jea,"$1")};
Kea=function(a,b,c){return xi(zi(a,b),b,c)};
Lea=function(a,b){a=Eea(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.slice(0,f):e)||d.push(e)});
a[1]=Fea(d.join("&"),g.ui(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Ai=function(a){g.Uf.call(this);this.headers=new Map;this.V=a||null;this.C=!1;this.qa=this.j=null;this.Y="";this.u=0;this.D="";this.I=this.Ea=this.W=this.va=!1;this.N=0;this.ra=null;this.La="";this.Ra=this.J=!1};
Nea=function(a,b,c,d,e,f,h){var l=new g.Ai;Mea.push(l);b&&l.Na("complete",b);l.dD("ready",l.sX);f&&(l.N=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)};
Oea=function(a){return g.Dc&&g.yc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Qea=function(a,b){a.C=!1;a.j&&(a.I=!0,a.j.abort(),a.I=!1);a.D=b;a.u=5;Pea(a);Bi(a)};
Pea=function(a){a.va||(a.va=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Rea=function(a){if(a.C&&"undefined"!=typeof Ci)if(a.qa[1]&&4==g.Di(a)&&2==a.getStatus())a.getStatus();else if(a.W&&4==g.Di(a))g.Ph(a.lR,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Ei(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Di(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Pea(a)}}finally{Bi(a)}}};
Bi=function(a,b){if(a.j){Sea(a);var c=a.j,d=a.qa[0]?function(){}:null;
a.j=null;a.qa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Sea=function(a){a.j&&a.Ra&&(a.j.ontimeout=null);a.ra&&(g.C.clearTimeout(a.ra),a.ra=null)};
Ei=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.pi(1,String(a.Y)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol.slice(0,-1)),b=!Tea.test(a?a.toLowerCase():"");c=b}return c};
g.Di=function(a){return a.j?a.j.readyState:0};
g.Fi=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Gi=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.La){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
g.Uea=function(a){var b={};a=(a.j&&2<=g.Di(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.fb(a[c])){var d=xda(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 qf(b,function(h){return h.join(", ")})};
g.Hi=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Ii=function(a){g.J.call(this,a)};
Ji=function(a){g.J.call(this,a,-1,Vea)};
Ki=function(a){g.J.call(this,a)};
Li=function(a){g.J.call(this,a,31,Wea)};
Yea=function(a){g.J.call(this,a,17,Xea)};
$ea=function(a){g.J.call(this,a,6,Zea)};
afa=function(a){g.J.call(this,a)};
Ni=function(a,b,c,d,e,f,h,l,m,n,p){g.Uf.call(this);var q=this;this.W="";this.u=[];this.eb="";this.gb=this.Ea=-1;this.Ua=!1;this.N=this.C=null;this.J=0;this.Eb=1;this.timeoutMillis=0;this.va=!1;g.Uf.call(this);this.Ya=b||function(){};
this.I=new bfa(a,f);this.ub=d;this.Ra=p;this.Kb=g.Va(tda,0,1);this.ra=e||null;this.V=c||null;this.qa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.La=f||!1;!this.La&&(65<=Gb("Chromium")||45<=Gb("Firefox")||12<=Gb("Safari")||Lb()&&g.qb(Kaa(),12));a=g.D(new Ki,1,1);Mi(this.I,a);this.D=new g.ci(1E4,3E5,.1);this.j=new g.Oh(this.D.getValue());g.M(this,this.j);n=cfa(this,n);g.Nf(this.j,"tick",n,!1,this);this.Y=new g.Oh(6E5);g.M(this,this.Y);g.Nf(this.Y,"tick",n,!1,this);this.qa||
this.Y.start();this.La||(g.Nf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.yH()}),g.Nf(document,"pagehide",this.yH,!1,this))};
cfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
dfa=function(a){a.ra||(a.ra=.01>a.Kb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ra};
efa=function(a,b){a.D=new g.ci(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
gfa=function(a){ffa(a,function(b,c){b=xi(b,"format","json");b=gh().navigator.sendBeacon(b,Rd(c));a.va&&!b&&(a.va=!1);return b})};
ffa=function(a,b){if(0!==a.u.length){var c=zi(dfa(a),"format");c=vi(c,"auth",a.Ya(),"authuser",a.V||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.I.Se(e,a.J);if(!b(c,f))break;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
hfa=function(){g.df.call(this,"event-logged",void 0)};
bfa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Yea;g.D(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Mi(this,new Ki)};
Mi=function(a,b){F(a.j,Ki,1,b);g.md(b,1)||g.D(b,1,1);a.B||(b=Oi(a),g.md(b,5)||g.D(b,5,a.locale));a.u&&(b=Oi(a),Bd(b,Ji,9)||F(b,Ji,9,a.u))};
jfa=function(a,b){var c=void 0===c?ifa:c;b(gh(),c).then(function(d){a.u=d;d=Oi(a);F(d,Ji,9,a.u);return!0}).catch(function(){return!1})};
Oi=function(a){a=Bd(a.j,Ki,1);var b=Bd(a,Ii,11);b||(b=new Ii,F(a,Ii,11,b));return b};
kfa=function(a,b,c){Nea(a.url,function(d){d=d.target;Ei(d)?b(g.Fi(d)):c(d.getStatus())},a.requestType,a.body,a.Bt,a.timeoutMillis,a.withCredentials)};
lfa=function(a){this.I=a;this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=kfa;this.j=""};
Pi=function(a,b,c,d,e){c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;a=new lfa(void 0===a?-1:a);a.j=void 0===b?"":b;""!=c&&(a.B=c);d&&(a.C=!0);e&&(a.u=e);this.j=a.Se()};
mfa=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}};
Qi=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};
Ri=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()};
Si=function(a,b){this.logger=a;this.j=b;this.startMillis=Ri()};
Ti=function(){};
Ui=function(a){this.fh=a;this.u=new Pi(1654,"","",!1,"5");this.j=new g.Rh(this.u);this.clientError=new gea(this.j);this.B=new fea(this.j);this.C=new eea(this.j)};
nfa=function(a){this.j=a;this.j.wB("/client_streamz/bg/fil",{Mh:3,Lh:"rk"})};
ofa=function(a){this.j=a;this.j.ip("/client_streamz/bg/fsc",{Mh:3,Lh:"rk"})};
pfa=function(a){this.j=a;this.j.wB("/client_streamz/bg/fsl",{Mh:3,Lh:"rk"})};
qfa=function(){this.I=Vi();this.C=new Pi(1828);this.j=new g.Rh(this.C);this.D=new nfa(this.j);this.u=new ofa(this.j);this.B=new pfa(this.j);this.fh=window.document.location.hostname};
Vi=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()};
rfa=function(a){g.J.call(this,a)};
sfa=function(a){g.J.call(this,a)};
Wi=function(a){g.J.call(this,a)};
g.Xi=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Yi=function(a){var b=this;this.WB=!1;if(a.p3a){var c;this.Hr=null!=(c=a.Hr)?c:new qfa}a.challenge instanceof Wi?(c=Md(a.challenge,4),a=Md(a.challenge,5)):(c=a.program,a=a.globalName);var d=new g.Xi;this.j=d.promise;this.S4=g.r((0,g.C[a].a)(c,function(e,f){Promise.resolve().then(function(){var h;null!=(h=b.Hr)&&h.D.dh(Vi()-h.I,h.fh);d.resolve({aX:e,o4:f})})},!0)).next().value;
this.h4=d.promise.then(function(){})};
tfa=function(a){g.fg("From proto message. b/12014412");return g.ig(g.md(a,4)||"")};
ufa=function(){};
Zi=function(a){this.j=a};
xfa=function(a,b){var c=[new Zi(vfa[0].toLowerCase(),wfa)];if(0===c.length)throw Error("No prefixes are provided");if(c.map(function(d){if(d instanceof Zi)d=d.j;else throw Error("");return d}).every(function(d){return 0!=="attributionsrc".indexOf(d)}))throw Error('Attribute "attributionsrc" does not match any of the allowed prefixes.');
a.setAttribute("attributionsrc",b)};
yfa=function(a,b){return a.parseFromString(g.wg(b),"text/xml")};
Afa=function(a){a:if(zfa){try{var b=new URL(a)}catch(c){b="https:";break a}b=b.protocol}else b:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break b}b=-1!==[":",""].indexOf(b.protocol)?"https:":b.protocol}return"javascript:"===b?"about:invalid":a};
$i=function(a){this.isValid=a};
dj=function(a){return new $i(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Cfa=function(a,b){b=void 0===b?Bfa:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof $i&&d.isValid(a))return new kg(a,jg)}};
Dfa=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.ej=function(a,b){a.src=Vca(b);Dfa(a)};
fj=function(){this.j={};this.u=null};
Efa=function(){fj.j||(fj.j=new fj);return fj.j};
Gfa=function(a){var b=Efa();return Ffa(b,Bd(a,rfa,1),Bd(a,sfa,2),Md(a,3))};
Ffa=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Hfa(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,h){Hfa(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
Hfa=function(a,b){return b?Ifa(b):a?Jfa(a):Promise.resolve()};
Ifa=function(a){return new Promise(function(b,c){var d=g.mh("SCRIPT"),e=tfa(a);g.ej(d,e);d.onload=function(){g.qh(d);b()};
d.onerror=function(){g.qh(d);c(Error("EWLS"))};
(g.bh("HEAD")[0]||document.documentElement).appendChild(d)})};
Jfa=function(a){return new Promise(function(b){var c=g.mh("SCRIPT");if(a){var d=g.md(a,6);d=null===d||void 0===d?null:Tca(d)}else d=null;c.textContent=d instanceof gg&&d.constructor===gg?d.j:"type_error:SafeScript";Dfa(c);(g.bh("HEAD")[0]||document.documentElement).appendChild(c);g.qh(c);b()})};
gj=function(a){g.J.call(this,a)};
hj=function(a){g.J.call(this,a)};
ij=function(a){g.J.call(this,a)};
Kfa=function(a,b,c){this.client=a;this.fh=b;this.j=c};
Lfa=function(a){var b=Efa().u,c,d,e,f,h;return g.z(function(l){if(1==l.j)return c=new gj,wd(c,1,a.fh,""),b&&wd(c,2,b,""),d=a.j(),g.x(l,a.client.create(c,d),2);e=l.u;f=Uc(ud(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=$d(Wi,n);return m.call(l,n)}h=Bd(e,Wi,1);if(!h)throw Error("Missing field");return l.return(h)})};
Nfa=function(a,b){var c,d;return g.z(function(e){c=a.j();var f=new hj;f=wd(f,1,a.fh,"");d=wd(f,2,b,"");f=e.return;var h=a.client;h=jj(h.j,h.u+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Mfa);return f.call(e,h)})};
Ofa=function(a){this.j=a};
kj=function(a){g.J.call(this,a)};
lj=function(a,b,c){this.j=a;this.B=b;this.u=c};
mj=function(a,b,c){c=void 0===c?{}:c;this.J3=a;this.j=c;this.u=b};
nj=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
Pfa=function(a,b,c){c=void 0===c?{}:c;return new lj(b,a,c)};
oj=function(a){g.J.call(this,a)};
pj=function(a){g.J.call(this,a)};
qj=function(a){g.J.call(this,a)};
rj=function(a){g.J.call(this,a,-1,Qfa)};
sj=function(a,b){this.J=a.r_;this.N=b;this.j=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.J&&Rfa(this)};
Ufa=function(a,b){g.Nf(a.j,"complete",function(){if(Ei(a.j)){var c=g.Fi(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){tj(a,new Qi(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=mfa(a.j.getStatus());uj(a,vj(a));0==c?Sfa(a,d):tj(a,new Qi(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Fi(a.j);var e={};d?(e=Tfa(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());uj(a,vj(a));tj(a,new Qi(d,c,e))}})};
Rfa=function(a){a.J.Do("data",function(b){if("1"in b){var c=b["1"];try{var d=a.N(c)}catch(e){tj(a,new Qi(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Sfa(a,d)}if("2"in b)for(b=Tfa(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.Do("end",function(){uj(a,vj(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.J.Do("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||Ei(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=mfa(c);break;default:d=14}uj(a,vj(a));b=zea(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);tj(a,new Qi(d,b))}})};
vj=function(a){var b={},c=g.Uea(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Tfa=function(a,b){var c=2,d={};try{var e=$d(rj,b);c=Kd(e,1);var f=e.getMessage();Cd(e,qj,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.Y)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
wj=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Sfa=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
uj=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
tj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.xj=function(a){this.I=a.W5||null;this.D=a.ES||!1;this.u=void 0};
yj=function(a,b){g.Uf.call(this);this.ra=a;this.J=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.V=new Headers;this.u=null;this.Y="GET";this.W="";this.j=!1;this.N=this.C=this.D=null};
Vfa=function(a){a.C.read().then(a.IY.bind(a)).catch(a.GC.bind(a))};
Aj=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;zj(a)};
zj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Wfa=function(a){if(a.Rj&&"function"==typeof a.Rj)return a.Rj();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 tf(a)};
Xfa=function(a){if(a.Tn&&"function"==typeof a.Tn)return a.Tn();if(!a.Rj||"function"!=typeof a.Rj){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.uf(a)}}};
g.Bj=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=Xfa(a),e=Wfa(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.Cj=function(a){this.j=this.N=this.C="";this.B=null;this.D=this.J="";this.I=!1;var b;a instanceof g.Cj?(this.I=a.I,g.Dj(this,a.C),this.N=a.N,g.Ej(this,a.j),g.Fj(this,a.B),this.J=a.getPath(),Gj(this,a.u.clone()),this.D=a.D):a&&(b=String(a).match(oi))?(this.I=!1,g.Dj(this,b[1]||"",!0),this.N=Hj(b[2]||""),g.Ej(this,b[3]||"",!0),g.Fj(this,b[4]),this.J=Hj(b[5]||"",!0),Gj(this,b[6]||"",!0),this.D=Hj(b[7]||"")):(this.I=!1,this.u=new Ij(null,this.I))};
g.Dj=function(a,b,c){a.C=c?Hj(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.Ej=function(a,b,c){a.j=c?Hj(b,!0):b};
g.Fj=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null};
Gj=function(a,b,c){b instanceof Ij?(a.u=b,Yfa(a.u,a.I)):(c||(b=Jj(b,Zfa)),a.u=new Ij(b,a.I))};
g.Mj=function(a,b,c){a.u.set(b,c)};
g.Nj=function(a){return a instanceof g.Cj?a.clone():new g.Cj(a)};
Hj=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Jj=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,$fa),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
$fa=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Ij=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Oj=function(a){a.j||(a.j=new Map,a.u=0,a.B&&ri(a.B,function(b,c){a.add(Ug(b),c)}))};
aga=function(a,b){Oj(a);b=Pj(a,b);return a.j.has(b)};
g.cga=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Pj(a,b),g.cc(c)),a.u=a.u+c.length)};
Pj=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Yfa=function(a,b){b&&!a.C&&(Oj(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.cga(this,e,c))},a));
a.C=b};
g.dga=function(a){var b="";g.of(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Qj=function(a,b,c){if(g.Cf(c))return a;c=g.dga(c);if("string"===typeof a)return xi(a,g.Tg(b),c);g.Mj(a,b,c);return a};
g.Rj=function(a){g.K.call(this);this.u=a;this.j={}};
ega=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)ega(a,b,c[h],d,e,f);else{b=Mf(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
g.Sj=function(a){g.of(a.j,function(b,c){this.j.hasOwnProperty(c)&&Rf(b)},a);
a.j={}};
fga=function(){this.B=!0;this.u=0;this.j=""};
gga=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Tj=function(){this.I=null;this.J=[];this.C=this.u=this.B=this.j=this.V=0;this.D=null;this.N=0};
Uj=function(a,b,c,d){a.j=3;a.I="The stream is broken @"+a.V+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
Vj=function(){this.j=null;this.u=0;this.B=new fga;this.C=new Tj};
hga=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Wj=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Xj=function(a){this.V=null;this.I=[];this.C="";this.Y=[];this.B=this.u=0;this.J=!1;this.N=0;this.ra=/[\\"]/g;this.j=this.D=0;this.W=!(!a||!a.KX)};
Yj=function(a,b,c){a.D=3;a.V="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.V);};
Zj=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.I=!1};
iga=function(a){var b=g.Hi(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Zj:new Xj:b.startsWith("application/x-protobuf")?(a=g.Hi(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Vj:null:new Tj:null};
ak=function(a){this.j=a;this.u=null;this.C=this.B=0;this.V=!1;this.D=this.J=this.I=null;this.N=new g.Rj(this);this.N.Na(this.j,"readystatechange",this.W)};
bk=function(a,b){a.C!=b&&(a.C=b,a.J&&a.J())};
ck=function(a){g.Sj(a.N);if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
jga=function(a){this.B=a;a=(0,g.Ta)(this.v0,this);this.B.D=a;a=(0,g.Ta)(this.q2,this);this.B.J=a;this.u={};this.j={}};
kga=function(a,b){for(var c={},d=0;d<a.length;c={TE:c.TE},d++)c.TE=a[d],b.forEach(function(e){return function(f){try{f(e.TE)}catch(h){}}}(c))};
dk=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]=[]};
lga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.D3a||g.Ha("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ha("withCredentials",a)||!1;this.C=a.C3a||[];this.I=a.F3a||[];this.j=a.I3a;this.B=a.G3a||!1};
jj=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return mga(function(h){return new nga(function(l,m){var n={},p=oga(a,h,f);p.Do("error",function(q){return m(q)});
p.Do("metadata",function(q){n=q});
p.Do("data",function(q){var v=n;v=void 0===v?{}:v;l(new mj(q,h.vC(),v))})})},a.I).call(a,Pfa(e,c,d)).then(function(h){return h.J3})};
oga=function(a,b,c){var d=b.vC(),e=b.getMetadata(),f=pga(a,!0);a=qga(a,e,f,c+d.getName());c=rga(f,d.u,!1);Ufa(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
pga=function(a,b){b=a.B&&!b;return a.j||b?new g.Ai(new g.xj({W5:a.j,ES:b})):new g.Ai};
qga=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.J=!0;if(a.D)d=g.Qj(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
rga=function(a,b,c){if(c)if(a.isActive(),!g.Dc||g.Ac(10)){c=new ak(a);var d=new jga(c)}else d=null;return new sj({xhr:a,r_:d},b)};
mga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
ek=function(){this.j=new lga;this.u="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
gk=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=sga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=fk(a,l),d+=fk(a,l+4),e+=fk(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return tga.toString(e)};
sga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
fk=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
uga=function(a){var b=new ek,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Kfa(b,a,function(){return c})};
vga=function(a){var b=uga(a.fh);return new hk(Object.assign({},{eC:b},a))};
ik=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,ik.prototype)};
jk=function(){g.K.apply(this,arguments);this.B=new g.Xi};
wga=function(a,b){kk(b).then(function(){a.B.resolve()})};
lk=function(a,b,c,d,e){jk.call(this);this.logger=a;this.C=c;this.I=d;this.u="m";this.D=0;g.M(this,b);wga(this,e);this.j=new Xe};
mk=function(a,b){jk.call(this);this.j=a;this.u="f";wga(this,b)};
nk=function(a){jk.call(this);this.u="e";if(a instanceof ik){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+gk(a.message)+":_"+gk(a.stack)}else b=a.message+":"+a.stack,a="_"+gk(a.message)+":_"+gk(a.stack||"");this.j=new Uint8Array(g.db(("WE:"+b).substring(0,2048)));this.C=new Uint8Array(g.db(("WE:"+a).substring(0,2048)))};
kk=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
ok=function(a,b){return Promise.race([a,kk(12E4).then(b)])};
hk=function(a){this.j=void 0;this.u=new g.Xi;this.eC=a.eC;this.WQ=a.WQ;this.onError=a.onError;this.logger=a.q3a?new Ti:new Ui(a.fh);var b=new Si(this.logger,"r");this.ready().finally(function(){return void b.done()});
xga(this)};
yga=function(a,b,c){var d=window.webpocb;if(!d)throw new ik(4,Error("PMD:Undefined"));d=d(Uc(ud(b,1)));return new lk(a.logger,c,d,sd(b,3,0),1E3*sd(b,2,0))};
zga=function(a){var b,c,d,e,f,h,l,m,n,p,q,v,w,y,A,B;return g.z(function(E){switch(E.j){case 1:b=void 0,c=a.j?6E4:1E3,d=new g.ci(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){E.Ma(4);break}g.ra(E,5);return g.x(E,ok(a.logger.RI("c",e,Lfa(a.eC)),function(){return Promise.reject(new ik(10,"JVZ:Timeout"))}),7);
case 7:return f=E.u,h=new Si(a.logger,"b"),g.x(E,Gfa(f),8);case 8:return l=new Yi({challenge:f}),g.x(E,ok(l.snapshot({}),function(){return Promise.reject(new ik(15,"MDA:Timeout"))}),9);
case 9:return m=E.u,h.done(),g.x(E,ok(a.logger.RI("g",e,Nfa(a.eC,m)),function(){return Promise.reject(new ik(10,"BWB:Timeout"))}),10);
case 10:n=E.u;p=new Si(a.logger,"i");if(sd(n,3,0))var G=yga(a,n,l);else l.dispose(),G=new mk(Uc(ud(n,1)),1E3*sd(n,2,0));q=G;p.done();w=v=void 0;null==(w=(v=a).WQ)||w.call(v,Uc(ud(n,1)));return E.return(q);case 5:y=g.va(E);b=y instanceof ik?y:y instanceof Qi?new ik(11,y):new ik(12,y);a.logger.sz(b.code);B=A=void 0;null==(B=(A=a).onError)||B.call(A,b);a:{if(y instanceof Qi)switch(y.code){case 2:case 13:case 14:case 4:break;default:G=!1;break a}G=!0}if(!G)throw b;return g.x(E,kk(d.getValue()),11);case 11:g.di(d);
case 3:e++;E.Ma(2);break;case 4:throw b;}})};
xga=function(a){var b,c,d,e;g.z(function(f){switch(f.j){case 1:return b=void 0,g.ra(f,4),g.x(f,zga(a),6);case 6:b=f.u;g.ua(f,5);break;case 4:if(c=g.va(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.sz(13);f.Ma(0);break}else a.logger.sz(14),b=new nk(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.x(f,a.j.B.promise,1)}})};
Aga=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}};
Bga=function(a,b,c,d){var e=window,f=c?"//pagead2.googlesyndication.com/bg/"+g.Vg(c)+".js":"";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=ah(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Yca(g.fg("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Vg(a)+".js"});g.ej(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
Cga=function(a){var b={};g.tc(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]})};
pk=function(){this.Id=0;this.j=!1;this.u=-1;this.Bs=!1;this.Ui=0};
qk=function(){this.qd=null;this.j=!1};
rk=function(a){qk.call(this);this.u=a};
sk=function(){qk.call(this)};
tk=function(){qk.call(this)};
uk=function(){this.j={};this.u=!0;this.B={}};
vk=function(a,b,c){a.j[b]||(a.j[b]=new rk(c));return a.j[b]};
Dga=function(a){a.j.queryid||(a.j.queryid=new tk)};
Ega=function(a,b){a.j[b]||(a.j[b]=new sk);return a.j[b]};
wk=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
xk=function(a,b){if(g.yf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
yk=function(a){var b={},c=g.pf(a.j,function(d){return d.j});
g.of(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.qd?String(d.qd):"";0<d.length&&(b[e]=d)},a);
return b};
Fga=function(a){a=yk(a);var b=[];g.of(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Hga=function(a){vk(a,"od",Gga);vk(a,"opac",zk).j=!0;vk(a,"sbeos",zk).j=!0;vk(a,"prf",zk).j=!0;vk(a,"mwt",zk).j=!0;vk(a,"iogeo",zk)};
Iga=function(){this.j=this.bq=null};
Ak=function(){};
Ck=function(){if(!Bk())throw Error();};
Bk=function(){return!(!Dk||!Dk.performance)};
Ek=function(a){return a?a.passive&&Jga()?a:a.capture||!1:!1};
Fk=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Ek(d)),!0):!1};
Gk=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Kga=function(){};
Lga=function(){return sb?sb.mobile:!Hk()&&(vb("iPod")||vb("iPhone")||vb("Android")||vb("IEMobile"))};
Hk=function(){return sb?!sb.mobile&&(vb("iPad")||vb("Android")||vb("Silk")):vb("iPad")||vb("Android")&&!vb("Mobile")||vb("Silk")};
Ik=function(a){try{return!!a&&null!=a.location.href&&wc(a,"foo")}catch(b){return!1}};
Jk=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Nga=function(){var a=[];Jk(Mga,function(b){a.push(b)});
return a};
Oga=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
Rga=function(){var a=Pga("IFRAME"),b={};g.tc(Qga(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Pga=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Sga=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Ik(a)&&(b=a);return b};
Wga=function(a){a=a||Kk();for(var b=new Tga(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Uga.test(f.url)&&(c=f);if(f.url&&!f.zI){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Vga(b,e,c)};
Kk=function(){var a=g.C,b=[],c=null;do{var d=a;if(Ik(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Tga(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.zI=!0);return b};
Vga=function(a,b,c){this.j=a;this.u=b;this.B=c};
Tga=function(a,b){this.url=a;this.zI=!!b;this.depth=null};
Lk=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Mk=function(a,b){var c={};c[a]=b;return[c]};
Xga=function(a,b,c,d,e){var f=[];Jk(a,function(h,l){(h=Nk(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Nk=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Nk(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Xga(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Yga=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};
Ok=function(a,b){this.j=a;this.depth=b};
$ga=function(){function a(l,m){return null==l?m:l}
var b=Kk(),c=Math.max(b.length-1,0),d=Wga(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new Ok([f.url,f.zI?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Ok([e.url,2],0));b.url&&b!=f&&h.push(new Ok([b.url,0],a(b.depth,c)));d=g.Pk(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Oga(b.url))&&d.push([new Ok([e,1],a(b.depth,c))]);d.push([]);return g.Pk(d,function(l){return Zga(c,l)})};
Zga=function(a,b){g.Od(b,function(e){return 0<=e.depth});
var c=Qk(b,function(e,f){return Math.max(e,f.depth)},-1),d=Taa(c+2);
d[0]=a;g.tc(b,function(e){return d[e.depth+1]=e.j});
return d};
aha=function(){var a=void 0===a?$ga():a;return a.map(function(b){return Nk(b)})};
bha=function(a){Dk.google_image_requests||(Dk.google_image_requests=[]);var b=Pga("IMG",Dk.document);b.src=a;Dk.google_image_requests.push(b)};
Rk=function(a){var b="Pf";if(a.Pf&&a.hasOwnProperty(b))return a.Pf;var c=new a;a.Pf=c;a.hasOwnProperty(b);return c};
Sk=function(){this.u=new Kga;this.j=Bk()?new Ck:new Ak};
cha=function(){Tk();var a=Dk.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Dk.setInterval&&"function"===typeof Dk.clearInterval&&"function"===typeof Dk.setTimeout&&"function"===typeof Dk.clearTimeout)};
dha=function(){Tk();return aha()};
eha=function(){};
Tk=function(){return Rk(eha).getContext()};
Vk=function(a){g.J.call(this,a)};
fha=function(a){this.B=a;this.j=-1;this.u=this.C=0};
Wk=function(a,b){return function(){var c=g.za.apply(0,arguments);if(-1<a.j)return b.apply(null,g.t(c));try{return a.j=a.B.j.now(),b.apply(null,g.t(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
gha=function(a,b){this.u=a;this.B=b;this.j=new fha(a)};
hha=function(){};
lha=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.featureSet=new uk;vk(this.featureSet,"mv",iha).j=!0;vk(this.featureSet,"omid",zk);vk(this.featureSet,"epoh",zk).j=!0;vk(this.featureSet,"epph",zk).j=!0;vk(this.featureSet,"umt",zk).j=!0;vk(this.featureSet,"phel",zk).j=!0;vk(this.featureSet,"phell",zk).j=!0;vk(this.featureSet,"oseid",jha).j=!0;Ega(this.featureSet,"sloi").j=!0;Ega(this.featureSet,"ima_tt").j=!0;vk(this.featureSet,"mm",Xk);vk(this.featureSet,"ovms",kha).j=!0;vk(this.featureSet,
"xdi",zk).j=!0;vk(this.featureSet,"amp",zk).j=!0;vk(this.featureSet,"prf",zk).j=!0;vk(this.featureSet,"gtx",zk).j=!0;vk(this.featureSet,"mvp_lv",zk).j=!0;vk(this.featureSet,"ssmol",zk).j=!0;this.j=new gha(Tk(),this.featureSet);this.C=!1;this.flags=new hha};
Yk=function(){return Rk(lha)};
mha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Lk)var e=c;else e=new Lk,Jk(c,function(h,l){var m=e,n=m.C++;h=Mk(l,h);m.j.push(n);m.u[n]=h});
var f=e.pe(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Tk(),bha(f))}catch(h){}};
nha=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};
oha=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.Wa()};
pha=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
qha=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.taskId=this.slotId=void 0};
$k=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=Zk()||(null!=b?b:1>Math.random())};
rha=function(a){a&&al&&Zk()&&(al.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),al.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
sha=function(){var a=bl;this.j=cl;this.BO="jserror";this.NK=!0;this.rG=null;this.u=this.TI;this.qc=void 0===a?null:a};
tha=function(a,b,c){var d=dl;return Wk(Yk().j.j,function(){try{if(d.qc&&d.qc.j){var e=d.qc.start(a.toString(),3);var f=b();d.qc.end(e)}else f=b()}catch(l){var h=d.NK;try{rha(e),h=d.u(a,new el(fl(l)),void 0,c)}catch(m){d.TI(217,m)}if(!h)throw l;}return f})()};
gl=function(a,b,c,d){return Wk(Yk().j.j,function(){var e=g.za.apply(0,arguments);return tha(a,function(){return b.apply(c,e)},d)})};
fl=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};
el=function(a){nha.call(this,Error(a),{message:a})};
uha=function(){Dk&&"undefined"!=typeof Dk.google_measure_js_timing&&(Dk.google_measure_js_timing||bl.disable())};
vha=function(a){dl.rG=function(b){g.tc(a,function(c){c(b)})}};
wha=function(a,b){return tha(a,b)};
hl=function(a,b){return gl(a,b)};
il=function(a,b,c,d){dl.TI(a,b,c,d)};
jl=function(){return Date.now()-xha};
yha=function(){var a=Yk().B,b=0<=kl?jl()-kl:-1,c=ll?jl()-ml:-1,d=0<=nl?jl()-nl:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];il(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
ol=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
pl=function(a){return a.right-a.left};
ql=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
rl=function(a,b,c){b instanceof g.Gg?(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};
sl=function(a,b,c){var d=new ol(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
tl=function(a,b,c,d,e,f,h,l){this.C=a;this.N=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.J=l};
Aha=function(a){var b=a!==a.top,c=a.top===Sga(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),Aca(zha,function(h){return"function"===typeof f[h]})||(e=1));
return{ql:f,compatibility:e,s4:d}};
Bha=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
Cha=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Qg(b.innerWidth,b.innerHeight)).round():Bda(b||window).round()}catch(d){return new g.Qg(-12245933,-12245933)}};
ul=function(a,b,c){try{a&&(b=b.top);var d=Cha(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new ol(f,f,f,f);var h=Dda(ah(b.document).j),l=h.x,m=h.y;return new ol(m,l+f,m+e,l)}catch(n){return new ol(-12245933,-12245933,-12245933,-12245933)}};
g.vl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
wl=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.yl=function(a,b,c){if("string"===typeof b)(b=xl(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=xl(c,d);f&&(c.style[f]=e)}};
xl=function(a,b){var c=Dha[b];if(!c){var d=uda(b);c=d;void 0===a.style[d]&&(d=(g.kf?"Webkit":zl?"Moz":g.Dc?"ms":null)+wda(d),void 0!==a.style[d]&&(c=d));Dha[b]=c}return c};
g.Al=function(a,b){var c=a.style[uda(b)];return"undefined"!==typeof c?c:a.style[xl(a,b)]||""};
Bl=function(a,b){var c=$g(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Cl=function(a,b){return Bl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.El=function(a,b,c){if(b instanceof g.Gg){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Dl(d,!1);a.style.top=g.Dl(b,!1)};
Fl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Eha=function(a){if(g.Dc&&!g.Ac(8))return a.offsetParent;var b=$g(a),c=Cl(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=Cl(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.Gl=function(a){var b=$g(a),c=new g.Gg(0,0);var d=b?$g(b):document;d=!g.Dc||g.Ac(9)||"CSS1Compat"==ah(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Fl(a);b=Dda(ah(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Gha=function(a,b){var c=new g.Gg(0,0),d=gh($g(a));if(!wc(d,"parent"))return c;do{var e=d==b?g.Gl(a):Fha(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.Hl=function(a,b){a=Hha(a);b=Hha(b);return new g.Gg(a.x-b.x,a.y-b.y)};
Fha=function(a){a=Fl(a);return new g.Gg(a.left,a.top)};
Hha=function(a){if(1==a.nodeType)return Fha(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Gg(a.clientX,a.clientY)};
g.Il=function(a,b,c){if(b instanceof g.Qg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Dl(b,!0);a.style.height=g.Dl(c,!0)};
g.Dl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Jl=function(a){var b=Iha;if("none"!=Cl(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};
Iha=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.kf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Fl(a),new g.Qg(a.right-a.left,a.bottom-a.top)):new g.Qg(b,c)};
g.Kl=function(a,b){a.style.display=b?"":"none"};
Ll=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Jha=function(a){return new ol(a.top,a.right,a.bottom,a.left)};
Kha=function(a){var b=a.top||0,c=a.left||0;return new ol(b,c+(a.width||0),b+(a.height||0),c)};
Ml=function(a){return null!=a&&0<=a&&1>=a};
Lha=function(){var a=g.rb();return a?Nl("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return jb(a,b)})||jb(a,"OMI/")&&!jb(a,"XiaoMi/")?!0:jb(a,"Presto")&&jb(a,"Linux")&&!jb(a,"X11")&&!jb(a,"Android")&&!jb(a,"Mobi"):!1};
Mha=function(){this.B=!Ik(Dk.top);this.isMobileDevice=Hk()||Lga();var a=Kk();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.qi(a[a.length-1].url)||"":"";this.j=new ol(0,0,0,0);this.C=new g.Qg(0,0);this.D=new g.Qg(0,0);this.J=new ol(0,0,0,0);this.I=0;this.N=!1;this.u=!(!Dk||!Aha(Dk).ql);this.update(Dk)};
Nha=function(a,b){b&&b.screen&&(a.C=new g.Qg(b.screen.width,b.screen.height))};
Oha=function(a,b){var c=a.j?new g.Qg(pl(a.j),a.j.getHeight()):new g.Qg(0,0);b=void 0===b?Dk:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.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 v=new g.Qg(e,d)}catch(w){v=new g.Qg(-12245933,-12245933)}a.D=v};
Ql=function(){var a=Ol();if(0<a.I||a.N)return!0;a=Tk().u.isVisible();var b=0===Gk(Pl);return a||b};
Ol=function(){return Rk(Mha)};
Rl=function(a){this.B=a;this.u=0;this.j=null};
Sl=function(a,b,c){this.B=a;this.La=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new sl(-1,!0,this);this.j=this;this.N=b;this.W=this.V=!1;this.va="uk";this.qa=!1;this.I=!0};
Tl=function(a,b){g.Wb(a.D,b)||(a.D.push(b),b.Ov(a.j),b.Rp(a.C),b.jn()&&(a.V=!0))};
Pha=function(a){a=a.j;a.EM();a.DM();var b=Ol();b.J=ul(!1,a.B,b.isMobileDevice);Oha(Ol(),a.B);a.C.j=a.bP()};
Qha=function(a){a.V=a.D.length?Nl(a.D,function(b){return b.jn()}):!1};
Rha=function(a){var b=g.cc(a.D);g.tc(b,function(c){c.Rp(a.C)})};
Ul=function(a){var b=g.cc(a.D);g.tc(b,function(c){c.Ov(a.j)});
a.j!=a||Rha(a)};
Vl=function(a,b,c,d){this.element=a;this.j=new ol(0,0,0,0);this.C=new ol(0,0,0,0);this.u=b;this.featureSet=c;this.Y=d;this.W=!1;this.timestamp=-1;this.J=new tl(b.C,this.element,this.j,new ol(0,0,0,0),0,0,jl(),0)};
Wl=function(a){this.D=!1;this.j=a;this.C=function(){}};
Sha=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.qd=null==b?"":b};
Tha=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}};
Uha=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.qd<typeof b.qd?!0:typeof a.qd>typeof b.qd?!1:a.qd<b.qd};
Xl=function(){this.B=0;this.j=[];this.u=!1};
Vha=function(a,b){(0,g.tc)(b.j,function(c){a.add(c.j,c.qd,Tha(c))})};
Yl=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Jk(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Zl=function(a){var b=Wha;a.u&&(g.mc(a.j,function(c,d){return Uha(d,c)?1:Uha(c,d)?-1:0}),a.u=!1);
return Qk(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Wha=function(a){var b=a.j;a=a.qd;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Wb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Xha=function(a){var b=void 0===b?!0:b;this.j=new Xl;void 0!==a&&Vha(this.j,a);b&&this.j.add("v",$l,-16)};
Yha=function(a){var b=[],c=[];g.of(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)};
Zha=function(){if($l&&"unreleased"!==$l)return $l};
$ha=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Zha();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);Tk();bha(b)};
aia=function(){this.j=0};
bia=function(a,b,c){(0,g.tc)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new Xl;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=Rk(aia);h.add("i",d.j++);h.add("adk",e);Yl(h,f);e=new Xha(h);$ha(e)}})};
am=function(){this.u=this.B=this.C=this.j=0};
bm=function(a){this.u=a=void 0===a?cia:a;this.j=g.Pk(this.u,function(){return new am})};
cm=function(a,b){return dia(a,function(c){return c.j},void 0===b?!0:b)};
em=function(a,b){return dm(a,b,function(c){return c.j})};
eia=function(a,b){return dia(a,function(c){return c.B},void 0===b?!0:b)};
fm=function(a,b){return dm(a,b,function(c){return c.B})};
gm=function(a,b){return dm(a,b,function(c){return c.u})};
fia=function(a){g.tc(a.j,function(b){b.u=0})};
dia=function(a,b,c){a=g.Pk(a.j,function(d){return b(d)});
return c?a:gia(a)};
dm=function(a,b,c){var d=g.Vb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
gia=function(a){return g.Pk(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
hm=function(){this.u=new bm;this.La=new am;this.Y=this.J=-1;this.Ya=1E3;this.eb=new bm([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.va=this.ra=-1};
im=function(a,b){return eia(a.u,void 0===b?!0:b)};
jm=function(a,b,c,d){var e=void 0===e?!1:e;c=gl(d,c);Fk(a,b,c,{capture:e})};
lm=function(a,b){b=km(b);return 0===b?0:km(a)/b};
km=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
hia=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.rh(a)||a){var d=$g(a),e=d&&gh(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
iia=function(a,b,c){if(!a||!b)return!1;b=rl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Ik(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Bha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=$g(c))&&b.defaultView&&b.defaultView.frameElement)&&hia(b,a);var d=a===c;a=!d&&a&&vh(a,function(e){return e===c});
return!(b||d||a)};
jia=function(a,b,c,d){return Ol().B?!1:0>=pl(a)||0>=a.getHeight()?!0:c&&d?wha(208,function(){return iia(a,b,c)}):!1};
mm=function(a,b,c){g.K.call(this);this.position=kia.clone();this.kD=this.yC();this.QI=-2;this.Z4=Date.now();this.QS=-1;this.lastUpdateTime=b;this.cD=null;this.sy=!1;this.sD=null;this.opacity=-1;this.requestSource=c;this.VI=function(){};
this.gT=function(){};
this.Bi=new Iga;this.Bi.bq=a;this.Bi.j=a;this.Wp=!1;this.Lr={fJ:null,dJ:null};this.yS=!0;this.xA=null;this.Qv=this.BZ=!1;Yk().I++;this.Eg=this.PH();this.NS=-1;this.Ce=null;this.hasCompleted=this.yZ=!1;this.featureSet=new uk;Hga(this.featureSet);lia(this);1==this.requestSource?wk(this.featureSet,"od",1):wk(this.featureSet,"od",0)};
lia=function(a){a=a.Bi.bq;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:mia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+vda()):!!a.getAttribute("data-"+vda());b&&(Ol().u=!0)};
nm=function(a,b){b!=a.Qv&&(a.Qv=b,a=Ol(),b?a.I++:0<a.I&&a.I--)};
nia=function(a,b){if(a.Ce){if(b.getName()===a.Ce.getName())return;a.Ce.dispose();a.Ce=null}b=b.create(a.Bi.j,a.featureSet,a.jn());if(b=null!=b&&b.AF()?b:null)a.Ce=b};
oia=function(a,b,c){if(!a.cD||-1==a.lastUpdateTime||-1===b.u||-1===a.cD.u)return 0;a=b.u-a.cD.u;return a>c?0:a};
pia=function(a,b,c){if(a.Ce){a.Ce.qp();var d=a.Ce.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.sD=new g.Gg(h.left-f.left,h.top-f.top)}f=a.sE()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.WO(d);a.cD=d;a.Fa(f,b,c,!1,h,e,d.J)}};
qia=function(a){if(a.sy&&a.xA){var b=1==xk(a.featureSet,"od"),c=Ol().j,d=a.xA,e=a.Ce?a.Ce.getName():"ns",f=new g.Qg(pl(c),c.getHeight());c=a.sE();a={E4:e,sD:a.sD,S5:f,sE:c,Id:a.Eg.Id,G5:b};if(b=d.u){b.qp();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.Gg(h.left-f.left,h.top-f.top),l=new g.Qg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={E4:b.getName(),sD:h,S5:l,sE:c,G5:!1,Id:e}}else c=null;c&&bia(d,a,c)}};
ria=function(a,b,c){b&&(a.VI=b);c&&(a.gT=c)};
g.om=function(){};
g.pm=function(a){return{value:a,done:!1}};
sia=function(){this.C=this.j=this.B=this.u=this.D=0};
tia=function(a){var b={};var c=g.Wa()-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};
uia=function(){pk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
qm=function(a){return Ml(a.volume)&&0<a.volume};
rm=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 via(f,b,c)}};
vm=function(a,b){return function(c){return b(c)?c[a]:void 0}};
wia=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}};
via=function(a,b,c){return void 0===c||c?g.wm(a,function(d,e){return g.Wb(b,e)}):g.Pk(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
xm=function(){this.u=this.j=""};
xia=function(){};
ym=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.If(c,a);return Zl(Yl(new Xl,c))};
yia=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};
zm=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)};
zia=function(a){var b=g.uf(a.u),c=0,d;for(d in a.j)g.Wb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
Aia=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};
Am=function(){this.j=this.u=0};
Bm=function(){hm.call(this);this.B=new am;this.Ha=this.V=this.qa=0;this.N=-1;this.gb=new am;this.D=new am;this.j=new bm;this.I=this.C=-1;this.W=new am;this.Ya=2E3;this.Ea=new Am;this.Ua=new Am;this.Ra=new Am};
Cm=function(a,b,c){var d=a.Ha;ll||c||-1==a.N||(d+=b-a.N);return d};
Bia=function(){this.u=!1};
Dm=function(a,b){this.u=!1;this.B=a;this.V=b;this.C=0};
Em=function(a,b){Dm.call(this,a,b);this.J=[]};
Fm=function(a,b,c,d){Vl.call(this,a,b,c,d)};
Gm=function(a,b,c){Vl.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
Hm=function(a){return[a.top,a.left,a.bottom,a.right]};
Im=function(a,b,c,d,e,f,h){f=void 0===f?null:f;h=void 0===h?[]:h;mm.call(this,b,c,d);this.TJ=e;this.gH=0;this.Hg={};this.wg=new yia;this.wT={};this.ah="";this.Ua=null;this.Cb=!1;this.j=[];this.Ps=f;this.I=h;this.C=null;this.B=-1;this.Ha=this.V=void 0;this.Y=this.W=0;this.va=-1;this.eb=this.Ya=!1;this.qa=this.N=this.u=this.ax=this.ub=0;new bm;this.Ea=this.La=0;this.Ra=-1;this.uh=0;this.J=g.Yf;this.ra=[this.yC()];this.Eb=2;this.Pt={};this.Pt.pause="p";this.Pt.resume="r";this.Pt.skip="s";this.Pt.mute=
"m";this.Pt.unmute="um";this.Pt.exitfullscreen="ef";this.D=null;this.gb=!1};
Jm=function(a){a.hasCompleted=!0;0!=a.uh&&(a.uh=3)};
Km=function(a){return void 0===a?a:Number(a)?Ll(a,3):0};
Lm=function(a,b){return a.ra[null!=b&&b<a.ra.length?b:a.ra.length-1]};
Cia=function(a){var b=!!xk(Yk().featureSet,"umt");return a.V||!b&&!a.Ha?0:1};
Dia=function(a,b){a.po()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.W;var d=c-a.W,e=0;0<=d?(a.Y+=b,a.Ea+=Math.max(b-d,0),e=Math.min(d,a.Y)):a.La+=Math.abs(d);0!=d&&(a.Y=0);-1==a.Ra&&0<d&&(a.Ra=0<=nl?jl()-nl:-1);a.W=c;return e};
Eia=function(a,b){Nl(a.I,function(c){return c.B==b.B})||a.I.push(b)};
Fia=function(a){var b=em(a.Oh().j,1);return Mm(a,b)};
Mm=function(a,b,c){return 15E3<=b?!0:a.Ya?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.va?b>=a.va:!1:!1};
Gia=function(a){var b=Ll(a.Eg.Id,2),c=a.wg.B,d=a.Eg,e=Lm(a),f=Km(e.C),h=Km(e.I),l=Km(d.volume),m=Ll(e.J,2),n=Ll(e.Y,2),p=Ll(d.Id,2),q=Ll(e.ra,2),v=Ll(e.va,2);d=Ll(d.Ui,2);a=a.Np().clone();a.round();e=im(e,!1);return{R5:b,fz:c,lD:f,hD:h,Rx:l,mD:m,iD:n,Id:p,nD:q,jD:v,Ui:d,position:a,qD:e}};
Iia=function(a,b){Hia(a.j,b,function(){return{R5:0,fz:void 0,lD:-1,hD:-1,Rx:-1,mD:-1,iD:-1,Id:-1,nD:-1,jD:-1,Ui:-1,position:void 0,qD:[]}});
a.j[b]=Gia(a)};
Hia=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Om=function(a,b,c){var d=a.wT[b];if(null!=d)return d;d=Jia(a,b);var e=Bf(Nm,function(f){return f==b});
a=Kia(a,d,d,c,Lia[Nm[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Pm=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Kia=function(a,b,c,d,e){if(a.Wp)return{"if":0,vs:0};var f=a.Np().clone();f.round();var h=Ol(),l=Yk(),m=a.Oh(),n=a.Ce?a.Ce.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.Z4;p.p=[f.top,f.left,f.bottom,f.right];p.tos=cm(m.u,!1);p.mtos=im(m);p.mcvt=m.La.B;p.ps=void 0;f=Cm(m,jl(),a.po());p.vht=f;p.mut=m.gb.B;p.a=Km(a.Eg.volume);p.mv=Km(m.I);p.fs=a.Qv?1:0;p.ft=m.W.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=cm(m.j);p.ssb=cm(m.eb,!1);p.amtos=eia(m.j,!1);p.uac=a.ub;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Mm(a,m.B.j,!0)?1:0;p.efpf=a.Eb;if("gsv"==n||"nis"==n)n=a.Ce,0<n.D&&(p.nnut=n.D);p.tcm=Cia(a);p.nmt=a.La;p.bt=a.Ea;p.pst=a.Ra;p.vpaid=a.V;p.dur=a.B;p.vmtime=a.W;p.is=a.wg.B;1<=a.j.length&&(p.i0=a.j[0].fz,p.a0=[a.j[0].Rx],p.c0=[a.j[0].Id],p.ss0=[a.j[0].Ui],n=a.j[0].position,p.p0=n?Hm(n):void 0);2<=a.j.length&&(p.i1=a.j[1].fz,p.a1=Pm(a.j[1].lD,a.j[1].Rx,a.j[1].hD),p.c1=Pm(a.j[1].mD,a.j[1].Id,a.j[1].iD),p.ss1=Pm(a.j[1].nD,a.j[1].Ui,a.j[1].jD),n=a.j[1].position,p.p1=n?Hm(n):
void 0,p.mtos1=a.j[1].qD);3<=a.j.length&&(p.i2=a.j[2].fz,p.a2=Pm(a.j[2].lD,a.j[2].Rx,a.j[2].hD),p.c2=Pm(a.j[2].mD,a.j[2].Id,a.j[2].iD),p.ss2=Pm(a.j[2].nD,a.j[2].Ui,a.j[2].jD),n=a.j[2].position,p.p2=n?Hm(n):void 0,p.mtos2=a.j[2].qD);4<=a.j.length&&(p.i3=a.j[3].fz,p.a3=Pm(a.j[3].lD,a.j[3].Rx,a.j[3].hD),p.c3=Pm(a.j[3].mD,a.j[3].Id,a.j[3].iD),p.ss3=Pm(a.j[3].nD,a.j[3].Ui,a.j[3].jD),n=a.j[3].position,p.p3=n?Hm(n):void 0,p.mtos3=a.j[3].qD);p.cs=Aia(a.wg);b&&(p.ic=zia(a.wg),p.dvpt=m.B.u,p.dvs=gm(m.u,.5),
p.dfvs=gm(m.u,1),p.davs=gm(m.j,.5),p.dafvs=gm(m.j,1),c&&(m.B.u=0,fia(m.u),fia(m.j)),a.qo()&&(p.dtos=m.qa,p.dav=m.V,p.dtoss=a.gH+1,c&&(m.qa=0,m.V=0,a.gH++)),p.dat=m.D.u,p.dft=m.W.u,c&&(m.D.u=0,m.W.u=0));p.ps=[h.D.width,h.D.height];p.bs=[pl(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.ax&&(p.vds=a.ax);if(0<a.I.length||a.Ps)b=g.cc(a.I),a.Ps&&b.push(a.Ps),p.pings=g.Pk(b,function(q){return q.toString()});
b=g.Pk(g.wm(a.I,function(q){return q.I()}),function(q){return q.getId()});
Paa(b);p.ces=b;a.u&&(p.vmer=a.u);a.N&&(p.vmmk=a.N);a.qa&&(p.vmiec=a.qa);p.avms=a.Ce?a.Ce.getName():"ns";a.Ce&&g.If(p,a.Ce.Lp());d?(p.c=Ll(a.Eg.Id,2),p.ss=Ll(a.Eg.Ui,2)):p.tth=jl()-Mia;p.mc=Ll(m.Y,2);p.nc=Ll(m.J,2);p.mv=Km(m.I);p.nv=Km(m.C);p.lte=Ll(a.QI,2);d=Lm(a,e);im(m);p.qmtos=im(d);p.qnc=Ll(d.J,2);p.qmv=Km(d.I);p.qnv=Km(d.C);p.qas=0<d.C?1:0;p.qi=a.ah;p.avms||(p.avms="geo");p.psm=m.Ea.j;p.psv=m.Ea.getValue();p.psfv=m.Ua.getValue();p.psa=m.Ra.getValue();l=Fga(l.featureSet);l.length&&(p.veid=l);
a.D&&g.If(p,tia(a.D));p.avas=a.pC();p.vs=a.dP();return p};
Jia=function(a,b){if(g.Wb(Nia,b))return!0;var c=a.Hg[b];return void 0!==c?(a.Hg[b]=!0,!c):!1};
Pia=function(){this.j={};var a=gh();Qm(this,a,document);var b=Oia();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Qm(this,c,c.document);Qm(this,a.top,a.top.document)}}catch(d){}};
Oia=function(){var a=document.documentElement;try{if(!Ik(gh().top))return"2";var b=[],c=gh(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"}};
Qm=function(a,b,c){jm(c,"mousedown",function(){return Qia(a)},301);
jm(b,"scroll",function(){return Ria(a)},302);
jm(c,"touchmove",function(){return Sia(a)},303);
jm(c,"mousemove",function(){return Tia(a)},304);
jm(c,"keydown",function(){return Uia(a)},305)};
Qia=function(a){g.of(a.j,function(b){1E5<b.B||++b.B})};
Ria=function(a){g.of(a.j,function(b){1E5<b.j||++b.j})};
Sia=function(a){g.of(a.j,function(b){1E5<b.j||++b.j})};
Uia=function(a){g.of(a.j,function(b){1E5<b.u||++b.u})};
Tia=function(a){g.of(a.j,function(b){1E5<b.C||++b.C})};
Via=function(){this.j=[];this.u=[]};
Rm=function(a,b){return g.Ub(a.j,function(c){return c.ah==b})};
Wia=function(a,b){return b?g.Ub(a.j,function(c){return c.Bi.bq==b}):null};
Xia=function(a,b){return g.Ub(a.u,function(c){return 2==c.Fm()&&c.ah==b})};
Tm=function(){var a=Sm;return 0==a.j.length?a.u:0==a.u.length?a.j:g.ac(a.u,a.j)};
Yia=function(a,b){a=1==b.Fm()?a.j:a.u;var c=Rb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Ce&&b.Ce.zx(),b.dispose(),!0):!1};
Zia=function(a){var b=Sm;if(Yia(b,a)){switch(a.Fm()){case 0:var c=function(){return null};
case 2:c=function(){return Xia(b,a.ah)};
break;case 1:c=function(){return Rm(b,a.ah)}}for(var d=c();d;d=c())Yia(b,d)}};
$ia=function(a,b){var c=Sm;a=g.wm(a,(void 0===b?0:b)?function(d){return!Rm(c,d.ah)}:function(d){return!Wia(c,d.Bi.bq)});
c.j.push.apply(c.j,g.t(a))};
aja=function(a){var b=[];g.tc(a,function(c){Nl(Sm.j,function(d){return d.Bi.bq===c.Bi.bq&&d.ah===c.ah})||(Sm.j.push(c),b.push(c))})};
Um=function(){this.j=this.u=null};
bja=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.Ub(a.u,function(d){return null!=d&&d.FM()});
a.j&&(a.j.init(c)?Pha(a.j.j):b(a.j.j.Dv(),a.j));return null!=a.j};
Vm=function(a){a=cja(a);Wl.call(this,a.length?a[a.length-1]:new Sl(Dk,0));this.B=a;this.u=null};
cja=function(a){if(!a.length)return[];a=(0,g.wm)(a,function(c){return null!=c&&c.yx()});
for(var b=1;b<a.length;b++)Tl(a[b-1],a[b]);return a};
Wm=function(a,b,c,d){Vl.call(this,a,b,c,d);this.V=this.N=this.D=this.I=this.B=null};
Xm=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
eja=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=Yk().j.j;a.B=new c.IntersectionObserver(Wk(d,function(e){return Ym(a,e)}),dja);
d=Wk(d,function(){a.B.unobserve(b);a.B.observe(b);Ym(a,Xm(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.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);Ym(a,Xm(a));return!0};
Ym=function(a,b){try{if(b.length){a.N||(a.N=jl());var c=fja(b),d=Gha(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new ol(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Jha(c.intersectionRect);a.C=rl(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.zx(),il(299,l)}};
fja=function(a){return Qk(a,function(b,c){return b.time>c.time?b:c},a[0])};
Zm=function(a){a=void 0===a?Dk:a;Wl.call(this,new Sl(a,2))};
$m=function(){var a=gja();Sl.call(this,Dk.top,a,"geo")};
gja=function(){Yk();var a=Ol();return a.B||a.u?0:2};
hja=function(){};
an=function(){this.done=!1;this.j={IW:0,AN:0,s3a:0,wO:0,pI:-1,DX:0,CX:0,EX:0,B4:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new Rl(this)};
cn=function(){var a=bn;a.I||(a.I=!0,ija(a,function(){return a.C.apply(a,g.t(g.za.apply(0,arguments)))}),a.C())};
jja=function(){Rk(hja);var a=Rk(Um);null!=a.j&&a.j.j?Pha(a.j.j):Ol().update(Dk)};
dn=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{jja();var d=jl();Yk().D=d;if(null!=Rk(Um).j)for(var e=0;e<b.length;e++)pia(b[e],d,c);for(d=0;d<b.length;d++)qia(b[d]);++a.j.wO}finally{c?g.tc(b,function(f){f.Eg.Id=0}):a.u.schedule()}}};
ija=function(a,b){if(!a.D){b=gl(142,b);Tk();var c;Pl.visibilityState?c="visibilitychange":Pl.mozVisibilityState?c="mozvisibilitychange":Pl.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Fk(Pl,c,b,{capture:!1})&&(a.D=b)}};
kja=function(){var a=Rk(Um);if(null!=a.j){var b=a.j;g.tc(Tm(),function(c){return nia(c,b)})}};
lja=function(a,b){a=a.J;ll&&(a+=b-ml);return a};
nja=function(a){a=void 0===a?function(){return{}}:a;
dl.BO="av-js";cl.j=.01;vha([function(b){var c=Yk(),d={};d=(d.bin=c.u,d.type="error",d);c=yk(c.featureSet);if(!bn.B){var e=bn,f=Dk.document,h=0<=kl?jl()-kl:-1,l=jl();-1==e.j.pI&&(h=l);var m=Ol(),n=Yk(),p=yk(n.featureSet),q=Tm();try{if(0<q.length){var v=m.j;v&&(p.bs=[pl(v),v.getHeight()]);var w=m.D;w&&(p.ps=[w.width,w.height]);Dk.screen&&(p.scs=[Dk.screen.width,Dk.screen.height])}else p.url=encodeURIComponent(Dk.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=kl;p.bin=n.u;void 0!==Dk.google_osd_load_pub_page_exp&&(p.olpp=Dk.google_osd_load_pub_page_exp);p.deb=[1,e.j.IW,e.j.AN,e.j.wO,e.j.pI,0,e.u.u,e.j.DX,e.j.CX,e.j.EX,e.j.B4,-1].join(";");p.tvt=lja(e,l);m.u&&(p.inapp=1);if(null!==Dk&&Dk!=Dk.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Dk.location.href.substring(0,512)));var y=m.J;p.is=[pl(y),y.getHeight()]}}catch(A){p.error=1}bn.B=p}v=g.Gf(bn.B);w=Yk().j;1==xk(w.B,"prf")?(y=new Vk,e=w.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),y=wd(y,1,
e.C+f,0),e=w.j,y=wd(y,5,-1<e.j?e.u+1:e.u,0),y=wd(y,2,w.u.j.B(),0),y=wd(y,3,w.u.j.u(),0),w=wd(y,4,w.u.j.j(),0),y={},w=(y.pf=g.Bc(g.Re(w,mja)),y)):w={};g.If(v,w);g.If(b,d,c,v,a());if(d=Zha())c={},g.If(b,(c.v=encodeURIComponent(d),c))}])};
pja=function(){var a=oja||Dk;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("&")};
en=function(){var a="youtube.player.web_20220814_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20220814_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20220814_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20220814_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_20220814_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};
qja=function(){return"av.default_js".includes("ima_html5_sdk")?{tm:"ima",xm:null}:"av.default_js".includes("ima_native_sdk")?{tm:"nima",xm:null}:"av.default_js".includes("admob-native-video-javascript")?{tm:"an",xm:null}:"youtube.player.web_20220814_00_RC00".includes("cast_js_sdk")?{tm:"cast",xm:en()}:"youtube.player.web_20220814_00_RC00".includes("youtube.player.web")?{tm:"yw",xm:en()}:"youtube.player.web_20220814_00_RC00".includes("outstream_web_client")?{tm:"out",xm:en()}:"youtube.player.web_20220814_00_RC00".includes("drx_rewarded_web")?
{tm:"r",xm:en()}:"youtube.player.web_20220814_00_RC00".includes("gam_native_web_video")?{tm:"n",xm:en()}:"youtube.player.web_20220814_00_RC00".includes("admob_interstitial_video")?{tm:"int",xm:en()}:{tm:"j",xm:null}};
hn=function(a,b){var c={sv:"933"};null!==fn&&(c.v=fn);c.cb=rja;c.nas=Sm.j.length;c.msg=a;void 0!==b&&(a=sja(b))&&(c.e=gn[a]);return c};
jn=function(a){return eb(a,"custom_metric_viewable")};
sja=function(a){var b=jn(a)?"custom_metric_viewable":a.toLowerCase();return Bf(Nm,function(c){return c==b})};
tja=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
wja=function(a){try{var b=a.split(",");return b.length>g.uf(uja).length?null:Qk(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===vja[d[0]]||!vja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
xja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?fm(b.j,a.j):fm(b.u,a.j);case "tos":return a.u?em(b.j,a.j):em(b.u,a.j)}return 0};
kn=function(a,b,c,d){Dm.call(this,b,d);this.J=a;this.N=c};
yja=function(){};
ln=function(){};
mn=function(){};
nn=function(a){Dm.call(this,"fully_viewable_audible_half_duration_impression",a)};
on=function(a){this.j=a};
pn=function(a,b){Dm.call(this,a,b)};
qn=function(a){Em.call(this,"measurable_impression",a)};
rn=function(){on.apply(this,arguments)};
sn=function(a,b,c){Gm.call(this,a,b,c)};
tn=function(a){a=void 0===a?Dk:a;Wl.call(this,new Sl(a,2))};
un=function(a,b,c){Gm.call(this,a,b,c)};
vn=function(a){a=void 0===a?Dk:a;Wl.call(this,new Sl(a,2))};
wn=function(){Sl.call(this,Dk,2,"mraid");this.Ea=0;this.Y=this.ra=!1;this.J=null;this.u=Aha(this.B);this.C.j=new ol(0,0,0,0);this.Ha=!1};
xn=function(a,b,c){a.Bq("addEventListener",b,c)};
Cja=function(a){Yk().C=!!a.Bq("isViewable");xn(a,"viewableChange",zja);"loading"===a.Bq("getState")?xn(a,"ready",Aja):Bja(a)};
Bja=function(a){"string"===typeof a.u.ql.AFMA_LIDAR?(a.ra=!0,Dja(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
Dja=function(a){a.Y=!1;var b=1==xk(Yk().featureSet,"rmmt"),c=!!a.Bq("isViewable");(b?!c:1)&&Tk().setTimeout(hl(524,function(){a.Y||(Eja(a),il(540,Error()),a.J="mt",a.fail("w"))}),500);
Fja(a);xn(a,a.u.ql.AFMA_LIDAR,Gja)};
Fja=function(a){var b=1==xk(Yk().featureSet,"sneio"),c=void 0!==a.u.ql.AFMA_LIDAR_EXP_1,d=void 0!==a.u.ql.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.ql.AFMA_LIDAR_EXP_2=!0);c&&(a.u.ql.AFMA_LIDAR_EXP_1=!b)};
Eja=function(a){a.Bq("removeEventListener",a.u.ql.AFMA_LIDAR,Gja);a.ra=!1};
Hja=function(a,b){if("loading"===a.Bq("getState"))return new g.Qg(-1,-1);b=a.Bq(b);if(!b)return new g.Qg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Qg(-1,-1):new g.Qg(a,b)};
Aja=function(){try{var a=Rk(wn);a.Bq("removeEventListener","ready",Aja);Bja(a)}catch(b){il(541,b)}};
Gja=function(a,b){try{var c=Rk(wn);c.Y=!0;var d=a?new ol(a.y,a.x+a.width,a.y+a.height,a.x):new ol(0,0,0,0);var e=jl(),f=Ql();var h=new sl(e,f,c);h.j=d;h.volume=b;c.Rp(h)}catch(l){il(542,l)}};
zja=function(a){var b=Yk(),c=Rk(wn);a&&!b.C&&(b.C=!0,c.Ha=!0,c.J&&c.fail("w",!0))};
yn=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.eZ,a.firstquartile=this.ZY,a.midpoint=this.bZ,a.thirdquartile=this.fZ,a.complete=this.WY,a.error=this.XY,a.pause=this.SJ,a.resume=this.iS,a.skip=this.dZ,a.viewable_impression=this.Gm,a.mute=this.Vw,a.unmute=this.Vw,a.fullscreen=this.aZ,a.exitfullscreen=this.YY,a.fully_viewable_audible_half_duration_impression=this.Gm,a.measurable_impression=this.Gm,a.abandon=this.SJ,a.engagedview=this.Gm,a.impression=this.Gm,a.creativeview=
this.Gm,a.progress=this.Vw,a.custom_metric_viewable=this.Gm,a.bufferstart=this.SJ,a.bufferfinish=this.iS,a.audio_measurable=this.Gm,a.audio_audible=this.Gm,a);a={};this.N=(a.overlay_resize=this.cZ,a.abandon=this.hI,a.close=this.hI,a.collapse=this.hI,a.overlay_unmeasurable_impression=function(b){return Om(b,"overlay_unmeasurable_impression",Ql())},a.overlay_viewable_immediate_impression=function(b){return Om(b,"overlay_viewable_immediate_impression",Ql())},a.overlay_unviewable_impression=function(b){return Om(b,
"overlay_unviewable_impression",Ql())},a.overlay_viewable_end_of_session_impression=function(b){return Om(b,"overlay_viewable_end_of_session_impression",Ql())},a);
Yk().u=3;Ija(this);this.B=!1};
zn=function(a,b,c,d){b=a.gA(null,d,!0,b);b.C=c;$ia([b],a.B);return b};
Jja=function(a,b,c){Cga(b);var d=a.j;g.tc(b,function(e){var f=g.Pk(e.criteria,function(h){var l=wja(h);if(null==l)h=null;else if(h=new tja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=waa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Nl(f,function(h){return null==h})||Eia(c,new kn(e.id,e.event,f,d))})};
Kja=function(){var a=[],b=Yk();a.push(Rk($m));xk(b.featureSet,"mvp_lv")&&a.push(Rk(wn));b=[new tn,new vn];b.push(new Vm(a));b.push(new Zm(Dk));return b};
Lja=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=jl(),c=Yk(),d=Ol();kl=b;c.B=79463069;"o"!==a.u&&(oja=Sga(Dk));if(cha()){bn.j.AN=0;bn.j.pI=jl()-b;var e=Kja(),f=Rk(Um);f.u=e;bja(f,function(){An()})?bn.done||(kja(),Tl(f.j.j,a),cn()):d.B?An():cn()}else Bn=!0}catch(h){throw Sm.reset(),h;
}}};
Gn=function(a){bn.u.cancel();Fn=a;bn.done=!0};
Hn=function(a){if(a.u)return a.u;var b=Rk(Um).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};
In=function(a,b,c){if(null==a.j)return b.ax|=4,!1;a=Mja(a.j,c,b);b.ax|=a;return 0==a};
An=function(){var a=[new Zm(Dk)],b=Rk(Um);b.u=a;bja(b,function(){Gn("i")})?bn.done||(kja(),cn()):Gn("i")};
Nja=function(a,b){if(!a.Cb){var c=Om(a,"start",Ql());c=a.TJ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="933";null!==fn&&(d.v=fn);ri(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=pja();ri(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+Zl(Yl(new Xl,d));$ha(b);a.Cb=!0}};
Jn=function(a,b,c){dn(bn,[a],!Ql());Iia(a,c);4!=c&&Hia(a.ra,c,a.yC);return Om(a,b,Ql())};
Ija=function(a){nja(function(){var b=Oja();null!=a.u&&(b.sdk=a.u);var c=Rk(Um);null!=c.j&&(b.avms=c.j.getName());return b})};
Pja=function(a,b,c,d){if(a.B)var e=Rm(Sm,b);else e=Wia(Sm,c),null!==e&&e.ah!==b&&(a.ly(e),e=null);e||(b=a.gA(c,jl(),!1,b),0==Sm.u.length&&(Yk().B=79463069),aja([b]),e=b,e.C=Hn(a),d&&(e.Ua=d));return e};
Qja=function(a){g.tc(Sm.j,function(b){3==b.uh&&a.ly(b)})};
Rja=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Oja=function(){var a=Ol(),b={},c={},d={};return Object.assign({},(b.sv="933",b),null!==fn&&(c.v=fn,c),(d["if"]=a.B?"1":"0",d.nas=String(Sm.j.length),d))};
Kn=function(a){Dm.call(this,"audio_audible",a)};
Ln=function(a){Em.call(this,"audio_measurable",a)};
Mn=function(){on.apply(this,arguments)};
Nn=function(){};
Sja=function(a){this.j=a};
Mja=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==fn&&(d.v=fn,d),(e.sv="933",e.cb=rja,e.e=Tja(b),e));e=Om(c,b,Ql());g.If(d,e);c.wT[b]=e;d=2==c.Fm()?Yha(d).join("&"):c.TJ.j(d).j;try{return a(c.ah,d,b),0}catch(f){return 2}}else return 1};
Tja=function(a){var b=jn(a)?"custom_metric_viewable":a;a=Bf(Nm,function(c){return c==b});
return gn[a]};
On=function(){yn.call(this);this.I=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Uja=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Jja(a,c,b)};
Vja=function(a,b,c){var d=Rm(Sm,b);d||(d=c.opt_nativeTime||-1,d=zn(a,b,Hn(a),d),c.opt_osdId&&(d.Ua=c.opt_osdId));return d};
Wja=function(a,b,c){var d=Rm(Sm,b);d||(d=zn(a,b,"n",c.opt_nativeTime||-1));return d};
Xja=function(a,b){var c=Rm(Sm,b);c||(c=zn(a,b,"h",-1));return c};
Yja=function(a){Yk();switch(Hn(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};
aka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.If(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.DC(b,c);c=f?f.TJ:a.ZG();if(e.opt_bounds)return c.j(hn("ol",d));if(void 0!==d)if(void 0!==sja(d))if(Bn)b=hn("ue",d);else if(Lja(a),"i"==Fn)b=hn("i",d),b["if"]=0;else if(b=a.DC(b,e))if(a.B&&3==b.uh)b="stopped";else{b:{"i"==Fn&&(b.Wp=!0,a.AK());f=e.opt_fullscreen;void 0!==f&&nm(b,!!f);var h;if(f=!Ol().u)(f=jb(g.rb(),"CrKey")||jb(g.rb(),"PlayStation")||jb(g.rb(),"Roku")||Lha()||jb(g.rb(),"Xbox"))||
(f=g.rb(),f=jb(f,"AppleTV")||jb(f,"Apple TV")||jb(f,"CFNetwork")||jb(f,"tvOS")),f||(f=g.rb(),f=jb(f,"sdk_google_atv_x86")||jb(f,"Android TV")),f=!f;f&&(Tk(),f=0===Gk(Pl));if(h=f){switch(b.Fm()){case 1:Nja(b,"pv");break;case 2:a.kK(b)}Gn("pv")}f=d.toLowerCase();if(h=!h)h=xk(Yk().featureSet,"ssmol")&&"loaded"===f?!1:g.Wb(Zja,f);if(h&&0==b.uh){"i"!=Fn&&(bn.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;nl=h="number"===typeof h?h:jl();b.sy=!0;var l=Ql();b.uh=1;b.Hg={};b.Hg.start=!1;b.Hg.firstquartile=
!1;b.Hg.midpoint=!1;b.Hg.thirdquartile=!1;b.Hg.complete=!1;b.Hg.resume=!1;b.Hg.pause=!1;b.Hg.skip=!1;b.Hg.mute=!1;b.Hg.unmute=!1;b.Hg.viewable_impression=!1;b.Hg.measurable_impression=!1;b.Hg.fully_viewable_audible_half_duration_impression=!1;b.Hg.fullscreen=!1;b.Hg.exitfullscreen=!1;b.gH=0;l||(b.Oh().N=h);dn(bn,[b],!l)}(h=b.Pt[f])&&zm(b.wg,h);g.Wb($ja,f)&&b.Ps&&b.Ps.D(b,null);switch(b.Fm()){case 1:var m=jn(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,b,e,d),void 0!==
d)){e=hn(void 0,f);g.If(e,d);d=e;break b}d=void 0}3==b.uh&&(a.B?b.Ce&&b.Ce.zx():a.ly(b));b=d}else b=hn("nf",d);else b=void 0;else Bn?b=hn("ue"):f?(b=hn(),g.If(b,Kia(f,!0,!1,!1))):b=hn("nf");return"string"===typeof b?a.B&&"stopped"===b?Pn:c.j():c.j(b)};
Qn=function(a,b){b&&(a.C=b)};
bka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
Rn=function(a,b,c){c=void 0===c?{}:c;a=aka(Rk(On),b,c,a);return bka(a)};
cka=function(a,b){b=void 0===b?!1:b;var c=Rk(On).DC(a,{});c?Jm(c):b&&(a=Rk(On).gA(null,jl(),!1,a),a.uh=3,aja([a]))};
fka=function(a){if(g.fb(g.Wg(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Cj(a)}catch(c){return null!=g.Ub(dka,function(d){return 0<a.search(d)})}return b.D.match(eka)?!0:null!=g.Ub(dka,function(c){return null!=a.match(c)})};
g.Sn=function(a,b){return a.replace(gka,function(c,d){try{var e=g.Ef(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.fb(g.Wg(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Un=function(a){g.Uf.call(this);var b=this;this.I=this.u=0;this.ll=null!=a?a:{Fh:function(e,f){return setTimeout(e,f)},
Tk:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.z(function(e){return g.x(e,Tn(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.I||hka(this)};
ika=function(){var a=g.Vn;Un.j||(Un.j=new Un(a));return Un.j};
hka=function(a){a.I=a.ll.Fh(function(){var b;return g.z(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ma(3):g.x(c,Tn(a),3):g.x(c,Tn(a),3);hka(a);g.pa(c)})},3E4)};
Tn=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.z(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.ra(l,2,3),d&&(a.u=a.ll.Fh(function(){d.abort()},b||2E4)),g.x(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.gaa(l);a.D=void 0;a.u&&(a.ll.Tk(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.haa(l,0);break;case 2:g.va(l),h=!1,l.Ma(3)}})})};
Wn=function(){this.data_=[];this.j=-1};
jka=function(a){-1===a.j&&(a.j=Qk(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.Xn=function(a,b,c){g.K.call(this);this.j=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.Ta)(this.gV,this)};
g.Yn=function(a){a.isActive()||a.start()};
kka=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
lka=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Zn=function(a,b,c){g.K.call(this);this.j=a;this.ph=b||0;this.u=c;this.B=(0,g.Ta)(this.HM,this)};
g.$n=function(a,b){a.isActive()||a.start(b)};
g.ao=function(a){a.stop();a.HM()};
g.bo=function(a){a.isActive()&&g.ao(a)};
co=function(a,b){this.j=a[g.C.Symbol.iterator]();this.u=b};
mka=function(a,b){return new co(a,b)};
nka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
eo=function(a){return a.classList?a.classList:nka(a).match(/\S+/g)||[]};
g.fo=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.go=function(a,b){return a.classList?a.classList.contains(b):g.Wb(eo(a),b)};
g.ho=function(a,b){if(a.classList)a.classList.add(b);else if(!g.go(a,b)){var c=nka(a);g.fo(a,c+(0<c.length?" "+b:b))}};
g.io=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.ho(a,e)});
else{var c={};Array.prototype.forEach.call(eo(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.fo(a,b)}};
g.jo=function(a,b){a.classList?a.classList.remove(b):g.go(a,b)&&g.fo(a,Array.prototype.filter.call(eo(a),function(c){return c!=b}).join(" "))};
g.ko=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.jo(a,c)}):g.fo(a,Array.prototype.filter.call(eo(a),function(c){return!g.Wb(b,c)}).join(" "))};
g.N=function(a,b,c){c?g.ho(a,b):g.jo(a,b)};
oka=function(a,b){var c=!g.go(a,b);g.N(a,b,c)};
oo=function(a){if(a instanceof lo||a instanceof mo||a instanceof no)return a;if("function"==typeof a.next)return new lo(function(){return a});
if("function"==typeof a[Symbol.iterator])return new lo(function(){return a[Symbol.iterator]()});
if("function"==typeof a.bj)return new lo(function(){return a.bj()});
throw Error("Not an iterator or iterable.");};
lo=function(a){this.u=a};
mo=function(a){this.u=a};
no=function(a){lo.call(this,function(){return a});
this.B=a};
g.po=function(a,b){this.u={};this.j=[];this.Kq=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.po)for(c=a.Tn(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
pka=function(a,b){return a===b};
ro=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];qo(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],qo(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
qo=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.so=function(){g.Uf.call(this);this.j=0;this.endTime=this.startTime=null};
qka=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.yl(a,"transition",b.join(","))};
to=function(a,b,c,d,e){g.so.call(this);this.u=a;this.I=b;this.J=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
rka=function(a,b,c,d){return new to(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
tka=function(a){a=kb(a);if(""==a)return null;var b=String(a.slice(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 ska))return null}return a};
uo=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
uka=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
vka=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Dc&&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)};
Aka=function(a){if(!a)return qg;var b=document.createElement("div").style;wka(a).forEach(function(c){var d=g.kf&&c in xka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");eb(d,"--")||eb(d,"var")||(c=vka(yka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=tka(c),null!=c&&vka(zka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return pda(g.fg("Output of CSS sanitizer"),b.cssText||"")};
wka=function(a){g.Oa(a)?a=g.cc(a):(a=g.uf(a),g.Zb(a,"cssText"));return a};
g.wo=function(a){var b,c=b=0,d=!1;a=a.split(Bka);for(var e=0;e<a.length;e++){var f=a[e];g.vo.test(f)?(b++,c++):Cka.test(f)?d=!0:Dka.test(f)?c++:Eka.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.xo=function(a,b,c,d,e,f,h,l){this.j=a;this.J=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.N=l};
g.yo=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=g.Eg(a.j,a.B,b),d=g.Eg(a.B,a.C,b);a=g.Eg(a.C,a.u,b);c=g.Eg(c,d,b);d=g.Eg(d,a,b);return g.Eg(c,d,b)};
zo=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Fka=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")};
Ao=function(a){return(a=a.exec(g.rb()))?a[1]:""};
Bo=function(a){return 0<=g.qb(Gka,a)};
g.Co=function(a){g.K.call(this);this.I=1;this.B=[];this.C=0;this.j=[];this.u={};this.J=!!a};
Hka=function(a,b,c){g.Dh(function(){a.apply(b,c)})};
g.Do=function(a){this.j=a};
Eo=function(a){this.j=a};
Ika=function(a){this.data=a};
Jka=function(a){return void 0===a||a instanceof Ika?a:new Ika(a)};
Fo=function(a){this.j=a};
g.Kka=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Wa()||!!b&&b>g.Wa()};
g.Go=function(a){this.j=a};
Lka=function(){};
Ho=function(){};
Io=function(a){this.j=a};
Jo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
Mka=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
Lo=function(a,b){this.u=a;this.j=null;if(g.Dc&&!g.Ac(9)){Ko||(Ko=new g.po);this.j=Ko.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)),Ko.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
Mo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Nka[b]})};
No=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Oo=function(a,b){this.u=a;this.j=b+"::"};
g.Po=function(a){var b=new Jo;return b.isAvailable()?a?new Oo(b,a):b:null};
Qo=function(a,b){this.j=a;this.qd=b};
Ro=function(a){this.j=[];if(a)a:{if(a instanceof Ro){var b=a.Tn();a=a.Rj();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Qo(b[d],a[d]));break a}}else b=g.uf(a),a=tf(a);for(c=0;c<b.length;c++)Oka(this,b[c],a[c])}};
Oka=function(a,b,c){var d=a.j;d.push(new Qo(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};
So=function(){Ro.apply(this,arguments)};
To=function(){};
Pka=function(){var a=g.za.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.t(g.za.apply(0,arguments))))}})};
Qka=function(){var a=g.za.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.t(g.za.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Pka.apply(null,g.t(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Uo=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Rka=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Vo}))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"+Uo()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(Vo+' 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.'));})};
Ska=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(w){if("function"!==typeof w)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 y=!0;p===n&&(p=n.slice());p.push(w);return function(){if(y){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.");
y=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}}
function h(w){if("object"!==typeof w||null===w)var y=!1;else{for(y=w;null!==Object.getPrototypeOf(y);)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(w)===y}if(!y)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.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,w)}finally{q=!1}y=n=p;for(var A=0;A<y.length;A++)(0,y[A])();
return w}
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(Ska)(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;h({type:Vo});a={};var v=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(w){if("function"!==typeof w)throw Error("Expected the nextReducer to be a function.");l=w;h({type:Tka});return v},a[Uka]=function(){var w={};
return w.subscribe=function(y){function A(){y.next&&y.next(e())}
if("object"!==typeof y||null===y)throw new TypeError("Expected the observer to be an object.");A();return{unsubscribe:f(A)}},w[Uka]=function(){return this},w},a);
return v};
Wo=function(a){g.J.call(this,a,-1,Vka)};
Xo=function(a){g.J.call(this,a)};
Wka=function(a){var b=a.split(""),c=[function(d,e){d.splice(d.length,0,e)},
-1127575586,224470306,476707734,"finally",2,b,-2049270066,"1DuO",190619545,1857466593,776575631,2113750697,322669277,8,3,1619359880,"D3QS",1357871181,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
function(d,e,f,h,l){return e(f,h,l)},
function(d,e){d.push(e)},
-1407425345,"OGwP",function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(f){e.unshift(f)})},
1788873563,6,1047770985,function(d,e){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f},
-872617314,-1192918918,null,450575462,function(d,e,f){var h=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},e.split(""))},
1588487176,5,710076278,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
633347248,"hoST2",function(d,e,f,h,l,m){return e(h,l,m)},
1448090235,1181789795,null,917378083,-48416531,b,-1917179856,7,-17454371,-1791575374,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
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},
1784266790,null,-469814988,-487816222,-17454371,1788873563,"a1hcK2",function(d){d.reverse()},
"omYM",b,-1138461379,"VdiPo",-333765704,"4O34r",-1825290930,0,9,1008056954,200291917,405313352,959424274,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
1,-321114279,-2108203932,1401702898,1626775056,-976417472,1332878122,"}','\\",1596517155,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},
"Rs1enEH","6rTNuKn",-1494086320,"D3QS",-1325164894,-921948790,-1325164894,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1593905347,800749942,985302855,-1344993574,function(d,e,f,h,l,m,n,p,q,v){return e(l,m,n,p,q,v)},
function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
"jKR5-K",-1457559818,4,"gR8sNLH",200291917,"WXBv"];c[31]=c;c[43]=c;c[54]=c;try{try{c[102]>new Date("01 January 1970 00:00:04 GMT")/1E3&&((0,c[20])((0,c[20])((0,c[99])(c[54],c[18]),c[37],c[54],c[94]),c[33],c[62],c[23],(0,c[93])()),1)||((0,c[20])((0,c[24])(c[49],c[43]),c[64],c[75]),c[64])(c[59]),5<c[27]&&(0,c[33])((0,c[197-160%Math.pow(6,5)])(c[60],c[75])===(0,c[34])(c[420%Math.pow(7,5)-376],c[92]),c[64],c[19])}catch(d){(0,c[33])((0,c[105])(c[56],c[23]),c[50],c[75],c[14])}finally{9>=c[9]&&(4<c[18]||
(0,c[33])((0,c[50])(c[59],c[2]),c[73],c[19])&&80352-62*Math.pow(6,4))&&((0,c[6])(c[59],c[94]),c[37])(c[86],c[19]),1<c[9]&&((0,c[105])(c[44],c[54]),1)||(0,c[50])(c[75],c[91]),(3>=c[39]||(0,c[0])(c[19])&&-6720+Math.pow(1,2)- -6719)&&(0,c[46])(c[59],c[30],(0,c[64])()),2<c[39]&&(0,c[33])((0,c[105])(c[56],c[58]),c[0],c[19],c[78]),2<c[48]?(0,c[37])(c[51],c[75]):(0,c[50])(c[44],c[102])}try{2>=c[88]&&((0,c[53])((0,c[105])(c[19],c[63]),c[37],(0,c[33])((0,c[20421-163*Math.pow(5,3)])(c[75],c[17],(0,c[97])()),
c[50],c[19],c[90]),c[47],c[44]),1)||((0,c[95])(c[61],c[18]),c[91])((0,c[91])((0,c[104])(c[77],c[65],(0,c[48])()),c[56],c[102],c[19]),c[64],c[102])}catch(d){(0,c[104])(c[77],c[23],(0,c[15])())}finally{(c[32]<=Math.pow(2,4)+-38280- -38268||((0,c[104])(c[75+102%Math.pow(5,2)],c[28],(0,c[16])()),0))&&(0,c[1])(c[26],c[62])}try{c[97]>Math.pow(7,1)+24990+-24993&&(4<c[32]||((((0,c[56])(c[7],c[47]),c[71])(c[7],c[73]),c[91])((0,c[95])(c[87],c[77]),c[95],c[78],c[18]),(0,c[76])(c[44],c[102]),0))&&((((0,c[19])(c[12],
c[8]),c[76])(c[25],c[24]),c[76])(c[95],c[84]),(0,c[14])(c[44],c[new Date("Wednesday 31 December 1969 19:01:37 CDT")/1E3],(0,c[56])()),(0,c[19])(c[28],c[69])),6>=c[104]?(0,c[22])((0,c[1])((0,c[5])(c[13],c[44]),c[76],c[12],c[75]),c[2],(0,c[0])(((0,c[82])(c[12]),(0,c[98])(c[72],c[12])),c[106],(0,c[31])(c[63],c[35])>(0,c[102])(c[-120*Math.pow(7,2)+5969],c[82]),c[12],c[10]),c[29],c[21]):(0,c[81])((0,c[40])(c[10],c[11],(0,c[20])()),c[53],(0,c[new Date("31 December 1969 13:15:53 -1045")/1E3])((0,c[53])((0,c[12])(c[26]),
c[35],c[10],c[275%Math.pow(new Date("1969-12-31T17:00:02.000-07:00")/1E3,5)+9]),c[40],c[67],c[74],(0,c[21])()),(0,c[53])((0,c[35])(c[42],c[104]),c[35],c[67],c[48]),(0,c[86])(c[Math.pow(5,5)+17176+-20291],c[51]),c[49],c[64],c[42]),6>=c[58]&&(c[24]<=new Date("12/31/1969 16:00:04 PST")/1E3?(0,c[53])((0,c[53])((0,c[35])(c[10],c[43]),c[86],c[42],c[5]),c[86],c[18],c[44]):(0,c[53])((0,c[53])((0,c[86])(c[18],c[100]),c[104],c[11],c[85]),c[108],c[new Date("12/31/1969 17:00:20 PDT")/1E3],c[77]))}catch(d){(0,c[39])(c[9],
c[75],(0,c[105])()),(0,c[44])(c[8],c[28]),(0,c[39])(c[15+Math.pow(7,3)-292],c[93],(0,c[19])())}finally{1>=c[2]&&((((0,c[11])(c[17]),c[52])((0,c[39])(c[9],c[94],(0,c[107])()),c[39],c[9],c[5],(0,c[95])()),c[34])(c[9],c[15]),[])||(0,c[52])((((0,c[85])(c[28],c[108]),c[57])(c[13],c[30]),c[100])(c[30],c[14]),c[64],c[30],c[101])}try{9>=c[198-Math.pow(5,4)- -443]&&(0,c[44])((0,c[92])(c[54]),c[9],(0,c[48])(c[26],c[55]),c[71],c[51])}catch(d){(0,c[73])(c[46],c[7864400-240*Math.pow(8,5)],(0,c[Math.pow(6,1)%195-
-11])())}}catch(d){return"enhanced_except_k5YB7On-_w8_"+a}return b.join("")};
g.Yo=function(a){this.name=a};
Zo=function(a){g.J.call(this,a)};
$o=function(a){g.J.call(this,a)};
ap=function(a){g.J.call(this,a)};
bp=function(a){g.J.call(this,a)};
cp=function(a){g.J.call(this,a,-1,Xka)};
dp=function(a){g.J.call(this,a,-1,Yka)};
ep=function(a){g.J.call(this,a)};
fp=function(a){g.J.call(this,a)};
gp=function(a){g.J.call(this,a)};
hp=function(a){g.J.call(this,a)};
ip=function(a){g.J.call(this,a)};
jp=function(a){g.J.call(this,a)};
kp=function(a){g.J.call(this,a)};
lp=function(a){g.J.call(this,a)};
mp=function(a){g.J.call(this,a,-1,Zka)};
np=function(a){g.J.call(this,a,-1,$ka)};
op=function(a){g.J.call(this,a)};
pp=function(a){g.J.call(this,a)};
rp=function(a){g.J.call(this,a)};
sp=function(a){g.J.call(this,a)};
tp=function(a){g.J.call(this,a)};
up=function(a){g.J.call(this,a)};
vp=function(a){g.J.call(this,a,-1,ala)};
wp=function(a){g.J.call(this,a)};
xp=function(a){g.J.call(this,a)};
yp=function(a){g.J.call(this,a)};
zp=function(a){g.J.call(this,a)};
Ap=function(a){g.J.call(this,a)};
Bp=function(a){g.J.call(this,a)};
Cp=function(a){g.J.call(this,a)};
Dp=function(a){g.J.call(this,a)};
Ep=function(a){g.J.call(this,a)};
Fp=function(a){g.J.call(this,a)};
Gp=function(a){g.J.call(this,a)};
Hp=function(a){g.J.call(this,a)};
Ip=function(a){g.J.call(this,a)};
Jp=function(a){g.J.call(this,a,-1,bla)};
Kp=function(a){g.J.call(this,a)};
Lp=function(a){g.J.call(this,a)};
Mp=function(a){g.J.call(this,a)};
Np=function(a){g.J.call(this,a)};
Op=function(a){g.J.call(this,a,-1,dla)};
Pp=function(a){g.J.call(this,a)};
Qp=function(a){g.J.call(this,a)};
Rp=function(a){g.J.call(this,a)};
Sp=function(a){g.J.call(this,a)};
Tp=function(a){g.J.call(this,a)};
Up=function(a){g.J.call(this,a)};
Vp=function(a){g.J.call(this,a)};
Wp=function(a){g.J.call(this,a)};
Xp=function(a){g.J.call(this,a)};
Yp=function(a){g.J.call(this,a)};
Zp=function(a){g.J.call(this,a)};
$p=function(a){g.J.call(this,a)};
aq=function(a){g.J.call(this,a)};
bq=function(a){g.J.call(this,a)};
cq=function(a){g.J.call(this,a)};
fla=function(a){g.J.call(this,a,-1,ela)};
g.dq=function(a){g.J.call(this,a,-1,gla)};
eq=function(a){g.J.call(this,a,-1,hla)};
fq=function(a){g.J.call(this,a)};
gq=function(a){g.J.call(this,a,-1,ila)};
hq=function(a){g.J.call(this,a,-1,jla)};
iq=function(a){g.J.call(this,a)};
jq=function(a){g.J.call(this,a)};
kq=function(a){g.J.call(this,a)};
lq=function(a){g.J.call(this,a)};
mq=function(a){g.J.call(this,a)};
nq=function(a){g.J.call(this,a)};
oq=function(a){g.J.call(this,a)};
pq=function(a){g.J.call(this,a)};
qq=function(a){g.J.call(this,a)};
rq=function(a){g.J.call(this,a)};
sq=function(a){g.J.call(this,a,-1,kla)};
tq=function(a){g.J.call(this,a,-1,lla)};
uq=function(a){g.J.call(this,a)};
vq=function(a){g.J.call(this,a,-1,mla)};
wq=function(a){g.J.call(this,a)};
xq=function(a){g.J.call(this,a,-1,nla)};
yq=function(a){g.J.call(this,a,-1,ola)};
zq=function(a){g.J.call(this,a,-1,pla)};
Aq=function(a){g.J.call(this,a)};
Bq=function(a){g.J.call(this,a,-1,qla)};
Cq=function(a){g.J.call(this,a)};
Dq=function(a){g.J.call(this,a)};
Eq=function(a){g.J.call(this,a)};
Fq=function(a){g.J.call(this,a)};
Gq=function(a){g.J.call(this,a)};
Hq=function(a){g.J.call(this,a)};
Iq=function(a){g.J.call(this,a)};
Jq=function(a){g.J.call(this,a)};
Kq=function(a){g.J.call(this,a)};
Lq=function(a){g.J.call(this,a)};
Mq=function(a){g.J.call(this,a)};
Nq=function(a){g.J.call(this,a)};
Oq=function(a){g.J.call(this,a)};
Pq=function(a){g.J.call(this,a)};
Qq=function(a){g.J.call(this,a)};
Rq=function(a){g.J.call(this,a)};
Sq=function(a){g.J.call(this,a)};
Tq=function(a){g.J.call(this,a)};
Uq=function(a){g.J.call(this,a)};
Vq=function(a){g.J.call(this,a)};
Wq=function(a){g.J.call(this,a)};
Xq=function(a){g.J.call(this,a)};
Yq=function(a){g.J.call(this,a)};
Zq=function(a){g.J.call(this,a,-1,rla)};
$q=function(a){g.J.call(this,a,-1,sla)};
ar=function(a){g.J.call(this,a,-1,tla)};
br=function(a){g.J.call(this,a)};
cr=function(a){g.J.call(this,a)};
dr=function(a){g.J.call(this,a)};
er=function(a){g.J.call(this,a)};
fr=function(a){g.J.call(this,a)};
gr=function(a){g.J.call(this,a)};
hr=function(a){g.J.call(this,a)};
ir=function(a){g.J.call(this,a,-1,ula)};
jr=function(a){g.J.call(this,a,-1,vla)};
kr=function(a){g.J.call(this,a)};
lr=function(a){g.J.call(this,a)};
mr=function(a){g.J.call(this,a)};
nr=function(a){g.J.call(this,a)};
or=function(a){g.J.call(this,a)};
pr=function(a){g.J.call(this,a)};
qr=function(a){g.J.call(this,a)};
rr=function(a){g.J.call(this,a)};
sr=function(a){g.J.call(this,a)};
tr=function(a){g.J.call(this,a,-1,wla)};
ur=function(a){g.J.call(this,a,-1,xla)};
vr=function(a){g.J.call(this,a)};
wr=function(a){g.J.call(this,a)};
xr=function(a){g.J.call(this,a,-1,yla)};
yr=function(a){g.J.call(this,a)};
zr=function(a){g.J.call(this,a,-1,zla)};
Ar=function(a){g.J.call(this,a)};
Br=function(a){g.J.call(this,a)};
Cr=function(a){g.J.call(this,a)};
Dr=function(a){g.J.call(this,a)};
Er=function(a){g.J.call(this,a,-1,Ala)};
Fr=function(a){g.J.call(this,a,-1,Bla)};
Gr=function(a){g.J.call(this,a)};
Hr=function(a){g.J.call(this,a)};
Ir=function(a){g.J.call(this,a)};
Jr=function(a){g.J.call(this,a)};
Kr=function(a){g.J.call(this,a)};
Lr=function(a){g.J.call(this,a)};
Mr=function(a){g.J.call(this,a)};
Nr=function(a){g.J.call(this,a)};
Or=function(a){g.J.call(this,a)};
Pr=function(a){g.J.call(this,a)};
Qr=function(a){g.J.call(this,a,-1,Cla)};
Rr=function(a){g.J.call(this,a)};
Sr=function(a){g.J.call(this,a)};
Tr=function(a){g.J.call(this,a)};
Ur=function(a){g.J.call(this,a,-1,Dla)};
Vr=function(a){g.J.call(this,a)};
Wr=function(a){g.J.call(this,a)};
Xr=function(a){g.J.call(this,a)};
Yr=function(a){g.J.call(this,a)};
Zr=function(a){g.J.call(this,a)};
$r=function(a){g.J.call(this,a)};
as=function(a){g.J.call(this,a)};
bs=function(a){g.J.call(this,a)};
cs=function(a){g.J.call(this,a)};
ds=function(a){g.J.call(this,a)};
fs=function(a){g.J.call(this,a)};
gs=function(a){g.J.call(this,a)};
hs=function(a){g.J.call(this,a)};
is=function(a){g.J.call(this,a)};
js=function(a){g.J.call(this,a)};
ks=function(a){g.J.call(this,a)};
ls=function(a){g.J.call(this,a)};
ms=function(a){g.J.call(this,a)};
ns=function(a){g.J.call(this,a)};
os=function(a){g.J.call(this,a)};
ps=function(a){g.J.call(this,a)};
qs=function(a){g.J.call(this,a)};
rs=function(a){g.J.call(this,a)};
ts=function(a){g.J.call(this,a)};
us=function(a){g.J.call(this,a)};
vs=function(a){g.J.call(this,a)};
ws=function(a){g.J.call(this,a,-1,Ela)};
xs=function(a){g.J.call(this,a,-1,Fla)};
ys=function(a){g.J.call(this,a)};
zs=function(a){g.J.call(this,a)};
As=function(a){g.J.call(this,a)};
Bs=function(a){g.J.call(this,a)};
Cs=function(a){g.J.call(this,a)};
Ds=function(a){g.J.call(this,a)};
Es=function(a){g.J.call(this,a)};
Fs=function(a){g.J.call(this,a)};
Gs=function(a){g.J.call(this,a)};
Hs=function(a){g.J.call(this,a)};
Is=function(a){g.J.call(this,a)};
Js=function(a){g.J.call(this,a)};
Ks=function(a){g.J.call(this,a,-1,Gla)};
Ls=function(a){g.J.call(this,a)};
Ms=function(a){g.J.call(this,a)};
Ns=function(a){g.J.call(this,a)};
Os=function(a){g.J.call(this,a)};
Ps=function(a){g.J.call(this,a)};
Qs=function(a){g.J.call(this,a)};
Rs=function(a){g.J.call(this,a)};
Ss=function(a){g.J.call(this,a)};
Ts=function(a){g.J.call(this,a)};
Us=function(a){g.J.call(this,a)};
Vs=function(a){g.J.call(this,a)};
Ws=function(a){g.J.call(this,a)};
Xs=function(a){g.J.call(this,a)};
Ys=function(a){g.J.call(this,a)};
Zs=function(a){g.J.call(this,a)};
at=function(a){g.J.call(this,a)};
bt=function(a){g.J.call(this,a)};
ct=function(a){g.J.call(this,a)};
dt=function(a){g.J.call(this,a)};
et=function(a){g.J.call(this,a)};
ft=function(a){g.J.call(this,a)};
gt=function(a){g.J.call(this,a)};
ht=function(a){g.J.call(this,a)};
jt=function(a){g.J.call(this,a)};
kt=function(a){g.J.call(this,a)};
Hla=function(a){g.J.call(this,a)};
lt=function(a){g.J.call(this,a)};
mt=function(a){g.J.call(this,a,-1,Ila)};
nt=function(a){g.J.call(this,a)};
Jla=function(a,b){F(a,as,1,b)};
ot=function(a){g.J.call(this,a)};
Kla=function(a,b){F(a,as,1,b)};
pt=function(a){g.J.call(this,a,-1,Lla)};
Mla=function(a,b){F(a,as,2,b)};
qt=function(a){g.J.call(this,a)};
rt=function(a){g.J.call(this,a)};
tt=function(a){g.J.call(this,a)};
ut=function(a){g.J.call(this,a)};
vt=function(a){g.J.call(this,a)};
wt=function(a){g.J.call(this,a,-1,Nla)};
xt=function(a){g.J.call(this,a)};
zt=function(a){g.J.call(this,a,-1,Ola)};
Bt=function(a,b){Jd(a,68,At,b)};
At=function(a){g.J.call(this,a)};
Ct=function(a){g.J.call(this,a)};
Dt=function(a){g.J.call(this,a,-1,Pla)};
Et=function(a){g.J.call(this,a,-1,Qla)};
Ft=function(a){g.J.call(this,a)};
Gt=function(a){g.J.call(this,a)};
Ht=function(a){g.J.call(this,a)};
It=function(a){g.J.call(this,a,-1,Rla)};
Jt=function(a){g.J.call(this,a)};
Kt=function(a){g.J.call(this,a,-1,Sla)};
Lt=function(a){g.J.call(this,a)};
Mt=function(a){g.J.call(this,a)};
Nt=function(a){g.J.call(this,a)};
Ot=function(a){g.J.call(this,a,-1,Tla)};
Pt=function(a){g.J.call(this,a)};
Qt=function(a){g.J.call(this,a)};
Rt=function(a){g.J.call(this,a,-1,Ula)};
St=function(a){g.J.call(this,a)};
Tt=function(a){g.J.call(this,a)};
Ut=function(a){g.J.call(this,a)};
Vt=function(a){g.J.call(this,a)};
Wt=function(a){g.J.call(this,a,442)};
Xt=function(a){g.J.call(this,a)};
Yt=function(a){g.J.call(this,a)};
Zt=function(a){g.J.call(this,a,-1,Vla)};
Wla=function(){return g.Ha("yt.ads.biscotti.lastId_")||""};
Xla=function(a){g.Fa("yt.ads.biscotti.lastId_",a)};
au=function(){var a=arguments;1<a.length?$t[a[0]]=a[1]:1===a.length&&Object.assign($t,a[0])};
g.Q=function(a,b){return a in $t?$t[a]:b};
bu=function(a){var b=$t.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.T=function(a){a=Yla(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.cu=function(a,b){a=Yla(a);return void 0===a&&void 0!==b?b:Number(a||0)};
du=function(){return g.Q("EXPERIMENTS_TOKEN","")};
Yla=function(a){var b=g.Q("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.Q("EXPERIMENT_FLAGS",{})[a]};
eu=function(){var a=[],b=g.Q("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.Q("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Zla=function(a){fu.forEach(function(b){return b(a)})};
hu=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.gu(b)}}:a};
g.gu=function(a,b,c,d){var e=g.Ha("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.Q("ERRORS",[]),e.push([a,"ERROR",b,c,d]),au("ERRORS",e));Zla(a)};
iu=function(a,b,c,d){var e=g.Ha("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.Q("ERRORS",[]),e.push([a,"WARNING",b,c,d]),au("ERRORS",e))};
ju=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=$la(f[0]||""),l=$la(f[1]||"");h in c?Array.isArray(c[h])?g.dc(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(ju);m.args=[{key:n,value:f[1],query:a,method:ama==p?"unchanged":p}];bma.hasOwnProperty(n)||iu(m)}}return c};
ku=function(a){var b=[];g.of(a,function(c,d){var e=g.Tg(d),f;Array.isArray(c)?f=c:f=[c];g.tc(f,function(h){""==h?b.push(e):b.push(e+"="+g.Tg(h))})});
return b.join("&")};
lu=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return ju(a,"&")};
mu=function(a){a=a.split(",");return a=a.map(function(b){return lu(b)})};
g.nu=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),lu(1<a.length?a[1]:a[0])):{}};
ou=function(a,b){return cma(a,b||{},!0)};
pu=function(a,b){return cma(a,b||{},!1)};
cma=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=lu(e[1]||"");for(var f in b)if(c||!g.yf(e,f))e[f]=b[f];return g.wi(a,e)+d};
qu=function(a){if(!b)var b=window.location.href;var c=g.pi(1,a),d=g.qi(a);c&&d?(a=a.match(oi),b=b.match(oi),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.qi(b)==d&&(Number(g.pi(4,b))||null)==(Number(g.pi(4,a))||null):!0;return a};
ru=function(a){a||(a=document.location.href);a=g.pi(1,a);return null!==a&&"https"==a};
tu=function(a){a=g.qi(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
$la=function(a){return a&&a.match(dma)?a:Ug(a)};
uu=function(a){var b=ema;a=void 0===a?Wla():a;var c=Object,d=c.assign,e=fma(b);var f=b.j;try{var h=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 v=f.screenLeft;var w=f.screenTop}catch(E){}try{p=f.innerWidth,q=f.innerHeight}catch(E){}try{var y=f.screen.availWidth;var A=f.screen.availTop}catch(E){}f=[v,w,h,l,y,A,m,n,p,q];h=Cha(!1,b.j.top);l={};var B=void 0===B?g.C:B;m=new Wn;B.SVGElement&&B.document.createElementNS&&
m.set(0);n=Rga();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);B.crypto&&B.crypto.subtle&&m.set(3);B.TextDecoder&&B.TextEncoder&&m.set(4);B=jka(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Gk(b.u),l.wgl=!!Dk.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
fma=function(a){var b={};b.dt=gma;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?Dk:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Dk.screen)?void 0:f.height;var h;b.u_w=null==(h=Dk.screen)?void 0:h.width;var l;b.u_ah=null==(l=Dk.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Dk.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Dk.screen)?void 0:
n.colorDepth}catch(p){}return b};
ima=function(){if(!hma)return null;var a=hma();return"open"in a?a:null};
g.wu=function(a){switch(vu(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
vu=function(a){return a&&"status"in a?a.status:-1};
g.xu=function(a,b){"function"===typeof a&&(a=hu(a));return window.setTimeout(a,b)};
g.yu=function(a,b){"function"===typeof a&&(a=hu(a));return window.setInterval(a,b)};
g.zu=function(a){window.clearTimeout(a)};
kma=function(a,b){b=void 0===b?{}:b;var c=qu(a),d=g.T("web_ajax_ignore_global_headers_if_set"),e;for(e in jma){var f=g.Q(jma[e]);"X-Goog-Visitor-Id"!==e||f||(f=g.Q("VISITOR_DATA"));!f||!c&&!Au(a,e)||d&&void 0!==b[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||Au(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Au(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&
(b["X-YouTube-Time-Zone"]=h)}if(c||Au(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=ku(uu());return b};
mma=function(a,b){var c=g.qi(a);g.T("debug_handle_relative_url_for_query_forward_killswitch")||c||!qu(a)||(c=document.location.hostname);var d=mi(g.pi(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=lu(b),f={};g.tc(lma,function(h){e[h]&&(f[h]=e[h])});
return pu(a,f)};
Au=function(a){return g.qi(a)?!1:!0};
g.Cu=function(a,b){var c=b.format||"JSON";a=nma(a,b);var d=oma(a,b),e=!1,f=Bu(a,function(m){if(!e){e=!0;l&&g.zu(l);var n=g.wu(m),p=null,q=400<=m.status&&500>m.status,v=500<=m.status&&600>m.status;if(n||q||v)p=pma(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);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.xu(function(){e||(e=!0,f.abort(),g.zu(l),h.call(b.context||g.C,f))},d)}return f};
nma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Q("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=ou(a,b);return a};
oma=function(a,b){var c=g.Q("XSRF_FIELD_NAME"),d=g.Q("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.Q("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.qi(a)&&!b.withCredentials&&g.qi(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.T("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=lu(e),g.If(e,f),e=b.postBodyFormat&&"JSON"==
b.postBodyFormat?JSON.stringify(e):g.ui(e));f=e||f&&!g.Cf(f);!qma&&f&&"POST"!=b.method&&(qma=!0,g.gu(Error("AJAX request with postData should use POST")));return e};
pma=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,iu(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?rma(a):null)e={},g.tc(a.getElementsByTagName("*"),function(h){e[h.tagName]=sma(h)})}d&&tma(e);
return e};
tma=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||waa(b,"_html")?a[b]=g.yg(g.fg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):tma(a[b])};
rma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
sma=function(a){var b="";g.tc(a.childNodes,function(c){b+=c.nodeValue});
return b};
Bu=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&hu(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=ima();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.T("debug_forward_web_query_parameters")&&(a=mma(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=kma(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};
Eu=function(a,b){var c=g.Gf(b),d;return(new g.Fh(function(e,f){c.onSuccess=function(h){g.wu(h)?e(new uma(h)):f(new Du("Request failed, status="+vu(h),"net.badstatus",h))};
c.onError=function(h){f(new Du("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Du("Request timed out","net.timeout",h))};
d=g.Cu(a,c)})).Wi(function(e){e instanceof Mh&&d.abort();
return Jh(e)})};
g.Fu=function(a,b,c,d){function e(l,m,n){return l.Wi(function(p){if(0>=m||403===vu(p.xhr))return Jh(new Du("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Eu(a,b),m-1,q)})})}
function f(l){return new g.Fh(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Eu(a,b),c-1,d)};
Du=function(a,b,c){Za.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
uma=function(a){this.xhr=a};
Gu=function(){this.j=0;this.qd=null};
Hu=function(a){var b=new Gu;a=void 0===a?null:a;b.j=2;b.qd=void 0===a?null:a;return b};
Iu=function(a){var b=new Gu;a=void 0===a?null:a;b.j=1;b.qd=void 0===a?null:a;return b};
g.Lu=function(a,b,c,d,e){Ju||Ku.set(""+a,b,{gD:c,path:"/",domain:void 0===d?"youtube.com":d,X3:void 0===e?!1:e})};
g.Mu=function(a,b){if(!Ju)return Ku.get(""+a,b)};
g.Nu=function(a,b,c){Ju||Ku.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
vma=function(){if(!Ku.isEnabled())return!1;if(!Ku.isEmpty())return!0;Ku.set("TESTCOOKIESENABLED","1",{gD:60});if("1"!==Ku.get("TESTCOOKIESENABLED"))return!1;Ku.remove("TESTCOOKIESENABLED");return!0};
wma=function(){var a=/Chrome\/(\d+)/.exec(g.rb());return a?parseFloat(a[1]):NaN};
xma=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.rb());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("."))};
Pu=function(){return Ou("android")&&Ou("chrome")&&!(Ou("trident/")||Ou("edge/"))&&!Ou("cobalt")};
yma=function(){return Ou("armv7")||Ou("aarch64")||Ou("android")};
g.Qu=function(){return Ou("cobalt")};
Ru=function(){return Ou("cobalt")&&Ou("appletv")};
Su=function(){return Ou("(ps3; leanback shell)")||Ou("ps3")&&g.Qu()};
zma=function(){return Ou("(ps4; leanback shell)")||Ou("ps4")&&g.Qu()};
g.Ama=function(){return g.Qu()&&(Ou("ps4 vr")||Ou("ps4 pro vr"))};
Tu=function(){var a=/WebKit\/([0-9]+)/.exec(g.rb());return!!(a&&600<=parseInt(a[1],10))};
Uu=function(){var a=/WebKit\/([0-9]+)/.exec(g.rb());return!!(a&&602<=parseInt(a[1],10))};
Vu=function(){return Ou("iemobile")||Ou("windows phone")&&Ou("edge")};
Xu=function(){return Wu&&Ou("applewebkit")&&!Ou("version")&&(!Ou("safari")||Ou("gsa/"))};
Zu=function(){return g.Yu&&Ou("version/")};
$u=function(){return Ou("smart-tv")&&Ou("samsung")};
Ou=function(a){var b=g.rb();return b?0<=b.toLowerCase().indexOf(a):!1};
g.av=function(a,b){if(a)return a[b.name]};
bv=function(a){var b=g.Q("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Dea(a)));return a};
Bma=function(a,b){var c={};g.Q("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.Q("INNERTUBE_API_KEY"));g.T("json_condensed_response")&&(c.prettyPrint="false");return a=pu(a,c)};
cv=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:qu(a)?"same-origin":"cors",credentials:qu(a)?"same-origin":"include"};b={};for(var d=g.r(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
dv=function(){return sea()||Xu()||Zu()?!0:g.Q("EOM_VISITOR_DATA")?!1:!0};
ev=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
fv=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
gv=function(a,b){return void 0===b||null===b?a:Number(b)};
hv=function(a,b){return void 0===b||null===b?a:b.toString()};
iv=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Cma))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
jv=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.T("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
Dma=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===kv(a,!1)};
kv=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?fv(b,c.embeddedPlayerMode,Ema):b};
mv=function(a){Za.call(this,a.message||a.description||a.name);this.isMissing=a instanceof lv;this.isTimeout=a instanceof Du&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Mh};
lv=function(){Za.call(this,"Biscotti ID is missing from server")};
Fma=function(){if(g.T("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!dv())return Error("User has not consented - not fetching biscotti id.");var a=g.Q("PLAYER_VARS",{});if("1"==g.Ef(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(Dma(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Ima=function(){var a=Fma();if(void 0!==a)return Jh(a);nv||(nv=Eu("//googleads.g.doubleclick.net/pagead/id",ov).then(Gma).Wi(function(b){return Hma(2,b)}));
return nv};
Gma=function(a){a=a.xhr.responseText;if(!eb(a,")]}'"))throw new lv;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new lv;a=a.id;Xla(a);nv=Iu(a);Jma(18E5,2);return a};
Hma=function(a,b){b=new mv(b);Xla("");nv=Hu(b);0<a&&Jma(12E4,a-1);throw b;};
Jma=function(a,b){g.xu(function(){Eu("//googleads.g.doubleclick.net/pagead/id",ov).then(Gma,function(c){return Hma(b,c)}).Wi(g.Yf)},a)};
Kma=function(){try{var a=g.Ha("yt.ads.biscotti.getId_");return a?a():Ima()}catch(b){return Jh(b)}};
Lma=function(a){var b=this;this.u=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
pv=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"}};
g.rv=function(){this.j=g.Q("ALT_PREF_COOKIE_NAME","PREF");this.u=g.Q("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Mu(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])&&(qv[d]=c.toString())}}};
g.tv=function(a,b){return!!((Mma("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
uv=function(a,b,c){a="f"+(Math.floor(b/31)+1);b=1<<b%31;var d=Mma(a)||0;d=c?d|b:d&~b;0==d?delete qv[a]:(c=d.toString(16),qv[a]=c.toString())};
vv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
wv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Mma=function(a){a=void 0!==qv[a]?qv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Nma=function(){var a=g.C.navigator;return a?a.connection:void 0};
Pma=function(){var a=Nma();if(a){var b=Oma[a.type||"unknown"]||"CONN_UNKNOWN";a=Oma[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}};
Rma=function(){var a=Nma();if(null!=a&&a.effectiveType)return Qma.hasOwnProperty(a.effectiveType)?Qma[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Sma=function(){return"INNERTUBE_API_KEY"in $t&&"INNERTUBE_API_VERSION"in $t};
g.xv=function(){return{innertubeApiKey:g.Q("INNERTUBE_API_KEY"),innertubeApiVersion:g.Q("INNERTUBE_API_VERSION"),NC:g.Q("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),rI:g.Q("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),EP:g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.Q("INNERTUBE_CONTEXT_CLIENT_VERSION"),tI:g.Q("INNERTUBE_CONTEXT_HL"),sI:g.Q("INNERTUBE_CONTEXT_GL"),FP:g.Q("INNERTUBE_HOST_OVERRIDE")||"",GP:!!g.Q("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),uI:!!g.Q("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.Q("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.yv=function(a){var b={client:{hl:a.tI,gl:a.sI,clientName:a.rI,clientVersion:a.innertubeContextClientVersion,configInfo:a.NC}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=du();""!==c&&(b.client.experimentsToken=c);c=eu();0<c.length&&(b.request={internalExperimentFlags:c});Tma(a,void 0,b);Uma(void 0,b);Vma(a,void 0,b);Wma(void 0,b);g.Q("DELEGATED_SESSION_ID")&&!g.T("pageid_as_header_web")&&(b.user=
{onBehalfOfUser:g.Q("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.r(Object.entries(lu(g.Q("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return b};
Xma=function(a){var b=new hq,c=new g.dq;g.D(c,1,a.tI);g.D(c,2,a.sI);g.D(c,16,a.EP);g.D(c,17,a.innertubeContextClientVersion);if(a.NC){var d=a.NC,e=new Zp;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);F(c,Zp,62,e)}(d=g.C.devicePixelRatio)&&1!=d&&g.D(c,65,d);d=du();""!==d&&g.D(c,54,d);d=eu();if(0<d.length){e=new eq;for(var f=0;f<d.length;f++){var h=new Yp;g.D(h,1,d[f].key);h.setValue(d[f].value);
Jd(e,15,Yp,h)}F(b,eq,5,e)}Tma(a,c);Uma(c);Vma(a,c);Wma(c);g.Q("DELEGATED_SESSION_ID")&&!g.T("pageid_as_header_web")&&(a=new gq,g.D(a,3,g.Q("DELEGATED_SESSION_ID")));a=g.r(Object.entries(lu(g.Q("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);b.I(c);return b};
Tma=function(a,b,c){a=a.rI;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=Bd(b,cq,96)||new cq;var d=pv();d=Object.keys(Yma).indexOf(d);d=-1===d?null:d;null!==d&&g.D(c,3,d);F(b,cq,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=pv())};
Uma=function(a,b){var c;if(g.T("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)}};
Vma=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=Bd(b,Zp,62))?d:new Zp;g.D(c,6,a.appInstallData);F(b,Zp,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Wma=function(a,b){var c=Pma();c&&(a?g.D(a,61,Zma[c]):b&&(b.client.connectionType=c));g.T("web_log_effective_connection_type")&&(c=Rma())&&(a?g.D(a,94,$ma[c]):b&&(b.client.effectiveConnectionType=c))};
ana=function(a,b,c){c=void 0===c?{}:c;var d={};g.Q("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.Q("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.Q("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.GN||g.Q("AUTHORIZATION"))||(a?b="Bearer "+g.Ha("gapi.auth.getToken")().access_token:b=ai([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.Q("SESSION_INDEX",0),g.T("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.Q("DELEGATED_SESSION_ID")));return d};
zv=function(a){var b;(b=g.Po(a))||(a=new Lo(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Fo(a):null;this.u=document.domain||window.location.hostname};
Av=function(){};
g.Cv=function(a,b,c){return Bv(b,0,c)};
bna=function(a,b){Bv(a,2,b)};
Dv=function(){Av.apply(this,arguments)};
g.Ev=function(){Dv.j||(Dv.j=new Dv);return Dv.j};
g.Fv=function(){return!!g.Ha("yt.scheduler.instance")};
Bv=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ha("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.xu(a,c||0)};
Gv=function(a){var b=g.Ha("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
Iv=function(){var a;return null==(a=Hv())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
cna=function(){var a={};for(Jv=new Kv(void 0===a.handleError?Lv:a.handleError,void 0===a.logEvent?g.Mv:a.logEvent);0<Nv.length;)switch(a=Nv.shift(),a.type){case "ERROR":Jv.vz(a.payload);break;case "EVENT":Jv.logEvent(a.eventType,a.payload)}};
Pv=function(a){Ov||(Jv?Jv.vz(a):(Nv.push({type:"ERROR",payload:a}),10<Nv.length&&Nv.shift()))};
Qv=function(a,b){Ov||(Jv?Jv.logEvent(a,b):(Nv.push({type:"EVENT",eventType:a,payload:b}),10<Nv.length&&Nv.shift()))};
g.Rv=function(a){var b=g.za.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.t(b))};
g.Tv=function(){try{return g.Sv(),!0}catch(a){return!1}};
g.Sv=function(a){if(void 0!==g.Q("DATASYNC_ID"))return g.Q("DATASYNC_ID");throw new g.Rv("Datasync ID not set",void 0===a?"unknown":a);};
Uv=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Vv=function(a){return a.substr(0,a.indexOf(":"))||a};
g.Wv=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?dna[a]:c;d=void 0===d?ena[a]:d;e=void 0===e?fna[a]:e;g.Rv.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.Wv.prototype)};
Xv=function(a,b){g.Wv.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},dna.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Xv.prototype)};
Yv=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,Yv.prototype)};
$v=function(a,b,c,d){b=Vv(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Wv)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.Wv("QUOTA_EXCEEDED",a);if(g.Zv&&"UnknownError"===e.name)return new g.Wv("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Yv)return new g.Wv("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&gna.some(function(f){return e.message.includes(f)}))return new g.Wv("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.Wv("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",DD:e.name})];e.level="WARNING";return e};
g.aw=function(a,b,c){var d=Iv();return new g.Wv("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
hna=function(a){if(!a)throw Error();throw a;};
ina=function(a){return a};
bw=function(a){this.j=a};
g.cw=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)}};
jna=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.cw?dw(a,b,f,d,e):d(f)}catch(h){e(h)}};
kna=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.cw?dw(a,b,f,d,e):d(f)}catch(h){e(h)}};
dw=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.cw?dw(a,b,f,d,e):d(f)},function(f){e(f)})};
lna=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
mna=function(a){return new Promise(function(b,c){lna(a,b,c)})};
g.ew=function(a){return new g.cw(new bw(function(b,c){lna(a,b,c)}))};
fw=function(a,b){return new g.cw(new bw(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
nna=function(a,b){this.request=a;this.cursor=b};
gw=function(a){return g.ew(a).then(function(b){return b?new nna(a,b):null})};
ona=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.U)());this.u=!1};
g.iw=function(a,b,c){a=a.j.createObjectStore(b,c);return new hw(a)};
jw=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.pna=function(a,b,c){return g.kw(a,[b],{mode:"readwrite",Ub:!0},function(d){return g.lw(d.objectStore(b),c)})};
g.kw=function(a,b,c,d){var e,f,h,l,m,n,p,q,v,w,y,A;return g.z(function(B){switch(B.j){case 1:var E={mode:"readonly",Ub:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?E.mode=c:Object.assign(E,c);e=E;a.transactionCount++;f=e.Ub?3:1;h=0;case 2:if(l){B.Ma(3);break}h++;m=Math.round((0,g.U)());g.ra(B,4);n=a.j.transaction(b,e.mode);E=new mw(n);E=qna(E,d);return g.x(B,E,6);case 6:return p=B.u,q=Math.round((0,g.U)()),rna(a,m,q,h,void 0,b.join(),e),B.return(p);case 4:v=g.va(B);w=Math.round((0,g.U)());
y=$v(v,a.j.name,b.join(),a.j.version);if((A=y instanceof g.Wv&&!y.j)||h>=f)rna(a,m,w,h,y,b.join(),e),l=y;B.Ma(2);break;case 3:return B.return(Promise.reject(l))}})};
rna=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Wv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Qv("QUOTA_EXCEEDED",{dbName:Vv(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Wv&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Qv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),sna(a,!1,d,f,b,h.tag),Pv(e)):sna(a,!0,d,
f,b,h.tag)};
sna=function(a,b,c,d,e,f){Qv("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
hw=function(a){this.j=a};
g.nw=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
tna=function(a,b){return g.ow(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
g.vna=function(a,b){return"getAll"in IDBObjectStore.prototype?g.ew(a.j.getAll(b,void 0)):una(a,b)};
una=function(a,b){var c=[];return g.ow(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
xna=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.ew(a.j.getAllKeys(void 0,void 0)):wna(a)};
wna=function(a){var b=[];return g.yna(a,{query:void 0},function(c){b.push(c.BC());return c.continue()}).then(function(){return b})};
g.lw=function(a,b,c){return g.ew(a.j.put(b,c))};
g.ow=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return pw(a).then(function(d){return fw(d,c)})};
g.yna=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 gw(a).then(function(e){return fw(e,c)})};
mw=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.Wv;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
qna=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})};
zna=function(a){this.j=a};
g.qw=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return pw(a).then(function(d){return fw(d,c)})};
Ana=function(a,b){this.request=a;this.cursor=b};
pw=function(a){return g.ew(a).then(function(b){return b?new Ana(a,b):null})};
Bna=function(a,b,c){return new Promise(function(d,e){function f(){v||(v=new ona(h.result,{closed:q}));return v}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.U4,p=c.upgrade,q=c.closed,v;h.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&Qv("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:Vv(a)});var y=f(),A=new mw(h.transaction);
p&&p(y,function(B){return w.oldVersion<B&&w.newVersion>=B},A);
A.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var w=h.result;m&&w.addEventListener("versionchange",function(){m(f())});
w.addEventListener("close",function(){Qv("IDB_UNEXPECTEDLY_CLOSED",{dbName:Vv(a),dbVersion:w.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Cna=function(a,b,c){c=void 0===c?{}:c;return Bna(a,b,c)};
rw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.z(function(h){if(1==h.j)return g.ra(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.x(h,mna(c),4);
if(2!=h.j)return g.ua(h,0);f=g.va(h);throw $v(f,a,"",-1);})};
Dna=function(a){return new Promise(function(b){bna(function(){b()},a)})};
tw=function(a,b){this.name=a;this.options=b;this.C=!0;this.I=this.D=0;this.u=500};
Ena=function(a,b){return new g.Wv("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.vw=function(a,b){if(!b)throw g.aw("openWithToken",Vv(a.name));return a.open()};
Fna=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,g.vw(ww,b),2);c=d.u;return d.return(g.kw(c,["databases"],{Ub:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.lw(f,a).then(function(){})})}))})};
xw=function(a,b){var c;return g.z(function(d){if(1==d.j)return a?g.x(d,g.vw(ww,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
Gna=function(a,b){var c,d;return g.z(function(e){return 1==e.j?(c=[],g.x(e,g.vw(ww,b),2)):3!=e.j?(d=e.u,g.x(e,g.kw(d,["databases"],{Ub:!0,mode:"readonly"},function(f){c.length=0;return g.ow(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Hna=function(a){return Gna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
Ina=function(){var a,b,c,d;return g.z(function(e){switch(e.j){case 1:a=Iv();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(Wu&&Tu()&&!Uu()||g.yw)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.ra(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.x(e,Fna(d,zw),4);case 4:return g.x(e,xw("yt-idb-test-do-not-use",zw),5);case 5:return e.return(!0);case 2:return g.va(e),e.return(!1)}})};
Jna=function(){if(void 0!==Aw)return Aw;Ov=!0;return Aw=Ina().then(function(a){Ov=!1;var b;if(null!=(b=Hv())&&b.j){var c;b={hasSucceededOnce:(null==(c=Iv())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Hv())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
Bw=function(){return g.Ha("ytglobal.idbToken_")||void 0};
g.Cw=function(){var a=Bw();return a?Promise.resolve(a):Jna().then(function(b){(b=b?zw:void 0)&&g.Fa("ytglobal.idbToken_",b);return b})};
Kna=function(a){if(!g.Tv())throw a=new g.Wv("AUTH_INVALID",{dbName:a}),Pv(a),a;var b=g.Sv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Lna=function(a,b,c,d){var e,f,h,l,m,n;return g.z(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.x(p,g.Cw(),2);case 2:h=p.u;if(!h)throw l=g.aw("openDbImpl",a,b),g.T("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Pv(l),l;Uv(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Kna(a);g.ra(p,3);return g.x(p,Fna(m,h),5);case 5:return g.x(p,Cna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.va(p),g.ra(p,7),g.x(p,xw(m.actualName,
h),9);case 9:g.ua(p,8);break;case 7:g.va(p);case 8:throw n;}})};
Mna=function(a,b,c){c=void 0===c?{}:c;return Lna(a,b,!1,c)};
Nna=function(a,b,c){c=void 0===c?{}:c;return Lna(a,b,!0,c)};
Ona=function(a,b){b=void 0===b?{}:b;var c,d;return g.z(function(e){if(1==e.j)return g.x(e,g.Cw(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Uv(a);d=Kna(a);return g.x(e,rw(d.actualName,b),3)}return g.x(e,xw(d.actualName,c),0)})};
Pna=function(a,b,c){a=a.map(function(d){return g.z(function(e){return 1==e.j?g.x(e,rw(d.actualName,b),2):g.x(e,xw(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Qna=function(){var a=void 0===a?{}:a;var b,c;return g.z(function(d){if(1==d.j)return g.x(d,g.Cw(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Uv("LogsDatabaseV2");return g.x(d,Hna(b),3)}c=d.u;return g.x(d,Pna(c,a,b),0)})};
Rna=function(a,b){b=void 0===b?{}:b;var c;return g.z(function(d){if(1==d.j)return g.x(d,g.Cw(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Uv(a);return g.x(d,rw(a,b),3)}return g.x(d,xw(a,c),0)})};
Ew=function(a){this.AB=this.Ue=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Pv=function(){};
this.now=Date.now;this.oy=!1;var b;this.MS=null!=(b=a.MS)?b:100;var c;this.lS=null!=(c=a.lS)?c:1;var d;this.eS=null!=(d=a.eS)?d:2592E6;var e;this.WR=null!=(e=a.WR)?e:12E4;var f;this.kS=null!=(f=a.kS)?f:5E3;var h;this.Te=null!=(h=a.Te)?h:void 0;this.YB=!!a.YB;var l;this.KB=null!=(l=a.KB)?l:.1;var m;this.PD=null!=(m=a.PD)?m:10;a.handleError&&(this.handleError=a.handleError);a.Pv&&(this.Pv=a.Pv);a.oy&&(this.oy=a.oy);a.AB&&(this.AB=a.AB);this.fb=a.fb;this.ll=a.ll;this.dg=a.dg;this.Uf=a.Uf;this.No=a.No;
this.OJ=a.OJ;this.jJ=a.jJ;Dw(this)&&(!this.fb||this.fb("networkless_logging"))&&Sna(this)};
Sna=function(a){Dw(a)&&!a.oy&&(a.Ue=!0,a.YB&&Math.random()<=a.KB&&a.dg.rX(a.Te),Tna(a),a.Uf.mf()&&a.CA(),a.Uf.Na(a.OJ,a.CA.bind(a)),a.Uf.Na(a.jJ,a.TN.bind(a)))};
Fw=function(a,b){var c,d;return g.z(function(e){switch(e.j){case 1:if(!Dw(a))throw c=g.aw("immediateSend"),c;if(void 0===b.id){e.Ma(2);break}return g.x(e,a.dg.RZ(b.id,a.Te),3);case 3:(d=e.u)?b=d:a.Pv(Error("The request cannot be found in the database."));case 2:if(Una(a,b,a.eS)){e.Ma(4);break}a.Pv(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ma(5);break}return g.x(e,a.dg.vv(b.id,a.Te),5);case 5:return e.return();case 4:b.skipRetry||(b=Vna(a,b));if(!b){e.Ma(0);
break}if(!b.skipRetry||void 0===b.id){e.Ma(8);break}return g.x(e,a.dg.vv(b.id,a.Te),8);case 8:a.No(b.url,b.options,!!b.skipRetry),g.pa(e)}})};
Vna=function(a,b){if(!Dw(a))throw g.aw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m;return g.z(function(n){switch(n.j){case 1:h=Wna(f);if(!(a.fb&&a.fb("nwl_consider_error_code")&&h||a.fb&&!a.fb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.PD)){n.Ma(2);break}if(!a.Uf.nA){n.Ma(3);break}return g.x(n,a.Uf.nA(),3);case 3:if(a.Uf.mf()){n.Ma(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ma(6);break}return g.x(n,a.dg.oK(b.id,a.Te,!1),6);case 6:return n.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&
!h&&a.potentialEsfErrorCounter>a.PD)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ma(8);break}return b.sendCount<a.lS?g.x(n,a.dg.oK(b.id,a.Te),12):g.x(n,a.dg.vv(b.id,a.Te),8);case 12:a.ll.Fh(function(){a.Uf.mf()&&a.CA()},a.kS);
case 8:c(e,f),g.pa(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.z(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ma(2):g.x(l,a.dg.vv(b.id,a.Te),2);a.Uf.Co&&a.fb&&a.fb("vss_network_hint")&&a.Uf.Co(!0);d(e,f);g.pa(l)})};
return b};
Una=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
Tna=function(a){if(!Dw(a))throw g.aw("retryQueuedRequests");a.dg.XO("QUEUED",a.Te).then(function(b){b&&!Una(a,b,a.WR)?a.ll.Fh(function(){return g.z(function(c){if(1==c.j)return void 0===b.id?c.Ma(2):g.x(c,a.dg.oK(b.id,a.Te),2);Tna(a);g.pa(c)})}):a.Uf.mf()&&a.CA()})};
Gw=function(a,b){a.yT&&!a.Uf.mf()?a.yT(b):a.handleError(b)};
Dw=function(a){return!!a.Te||a.AB};
Wna=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Hw=function(a,b){this.version=a;this.args=b};
Iw=function(a,b){this.topic=a;this.j=b};
Kw=function(a,b){var c=Jw();c&&c.publish.call(c,a.toString(),a,b)};
Yna=function(a,b,c){var d=Jw();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ha("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Lw[e])try{if(h&&a instanceof Iw&&a!=f)try{var m=a.j,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Kq){var p=new m;m.Kq=p.version}var q=m.Kq}catch(v){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.cc(n.args))}catch(v){throw v.message="yt.pubsub2.Data.deserialize(): "+v.message,v;}}catch(v){throw v.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+v.message,v;}b.call(c||window,h)}catch(v){g.gu(v)}},Xna[a.toString()]?g.Fv()?g.Vn.Fh(l):g.xu(l,0):l())});
Lw[e]=!0;Mw[a.toString()]||(Mw[a.toString()]=[]);Mw[a.toString()].push(e);return e};
Ow=function(a,b,c){var d=Yna(a,function(e){b.apply(c,arguments);Nw(d)},c);
return d};
Nw=function(a){var b=Jw();b&&("number"===typeof a&&(a=[a]),g.tc(a,function(c){b.unsubscribeByKey(c);delete Lw[c]}))};
Jw=function(){return g.Ha("ytPubsub2Pubsub2Instance")};
Pw=function(a,b){tw.call(this,a,b);this.options=b;Uv(a)};
Zna=function(a,b){var c;return function(){c||(c=new Pw(a,b));return c}};
g.Qw=function(a,b){return Zna(a,b)};
$na=function(){if(Rw)return Rw();var a={};Rw=g.Qw("LogsDatabaseV2",{iq:(a.LogsRequestsStore={Jn:2},a),Mw:!1,upgrade:function(b,c,d){c(2)&&g.iw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.nw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&jw(b,"sapisid");c(9)&&jw(b,"SWHealthLog")},
version:9});return Rw()};
Sw=function(a){return g.vw($na(),a)};
Tw=function(a,b){var c,d,e,f;return g.z(function(h){if(1==h.j)return c={startTime:(0,g.U)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.x(h,Sw(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(h,g.pna(d,"LogsRequestsStore",e),3);f=h.u;c.g5=(0,g.U)();aoa(c);return h.return(f)})};
boa=function(a,b){var c,d,e,f,h,l,m;return g.z(function(n){if(1==n.j)return c={startTime:(0,g.U)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.x(n,Sw(b),2);if(3!=n.j)return d=n.u,e=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.U)()],l=IDBKeyRange.bound(f,h),m=void 0,g.x(n,g.kw(d,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(p){return g.qw(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.g5=(0,g.U)();aoa(c);return n.return(m)})};
coa=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,Sw(b),2);c=d.u;return d.return(g.kw(c,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.lw(f,h).then(function(){return h})})}))})};
Uw=function(a,b,c){c=void 0===c?!0:c;var d;return g.z(function(e){if(1==e.j)return g.x(e,Sw(b),2);d=e.u;return e.return(g.kw(d,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.lw(h,l).then(function(){return l})):g.cw.resolve(void 0)})}))})};
Vw=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,Sw(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
doa=function(a){var b,c;return g.z(function(d){if(1==d.j)return g.x(d,Sw(a),2);b=d.u;c=(0,g.U)()-2592E6;return g.x(d,g.kw(b,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){return g.ow(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
eoa=function(){g.z(function(a){return g.x(a,Qna(),0)})};
aoa=function(a){g.T("nwl_csi_killswitch")||.01>=Math.random()&&Kw("nwl_transaction_latency_payload",a)};
goa=function(a){return g.vw(foa(),a)};
hoa=function(a){var b,c;g.z(function(d){if(1==d.j)return g.x(d,goa(a),2);b=d.u;c=(0,g.U)()-2592E6;return g.x(d,g.kw(b,["SWHealthLog"],{mode:"readwrite",Ub:!0},function(e){return g.ow(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
ioa=function(a){var b;return g.z(function(c){if(1==c.j)return g.x(c,goa(a),2);b=c.u;return g.x(c,b.clear("SWHealthLog"),0)})};
g.Ww=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.Qu()){if(a){a=g.lg(g.mg(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");h.m3a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));h.l3a&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));h.n3a&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));h=xg(a);a=g.Tg(g.fi(g.wg(h).toString()))}g.fb(a)||
(h=lh("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),$g(h).body.appendChild(h))}}else if(e)Bu(a,b,"POST",e,d);else if(g.Q("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Bu(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Aga({url:a});if(l.B&&l.u||l.C){var m=mi(g.pi(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==yi(a,"ri"));break b}}catch(p){}n=!1}n?joa(a)?(b&&b(),h=!0):h=!1:h=!1;h||koa(a,b)}};
joa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
koa=function(a,b){var c=new Image,d=""+loa++;Xw[d]=c;c.onload=c.onerror=function(){b&&Xw[d]&&b();delete Xw[d]};
c.src=a};
Yw=function(){this.j=new Map;this.u=!1};
Zw=function(){if(!Yw.j){var a=g.Ha("yt.networkRequestMonitor.instance")||new Yw;g.Fa("yt.networkRequestMonitor.instance",a);Yw.j=a}return Yw.j};
dx=function(){cx||(cx=new zv("yt.offline"));return cx};
moa=function(a){if(g.T("offline_error_handling")){var b=dx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);dx().set("errors",b,2592E3,!0)}};
ex=function(){g.Uf.call(this);var a=this;this.u=!1;this.j=ika();this.j.Na("networkstatus-online",function(){if(a.u&&g.T("offline_error_handling")){var b=dx().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Rv(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.gu(d)}dx().set("errors",{},2592E3,!0)}}})};
noa=function(){if(!ex.j){var a=g.Ha("yt.networkStatusManager.instance")||new ex;g.Fa("yt.networkStatusManager.instance",a);ex.j=a}return ex.j};
g.fx=function(a){a=void 0===a?{}:a;g.Uf.call(this);var b=this;this.j=this.D=0;this.u=noa();var c=g.Ha("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.VD?(this.VD=a.VD,c("networkstatus-online",function(){ooa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ooa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
ooa=function(a,b){a.VD?a.j?(g.Vn.Tk(a.D),a.D=g.Vn.Fh(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.U)())},a.VD-((0,g.U)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.U)()):a.dispatchEvent(b)};
gx=function(){Ew.call(this,{dg:{rX:doa,vv:Vw,XO:boa,RZ:coa,oK:Uw,set:Tw},Uf:poa(),handleError:g.gu,Pv:iu,No:qoa,now:g.U,yT:moa,ll:g.Ev(),OJ:"publicytnetworkstatus-online",jJ:"publicytnetworkstatus-offline",YB:!0,KB:.1,PD:g.cu("potential_esf_error_limit",10),fb:g.T,oy:!(g.Tv()&&"www.youtube-nocookie.com"!==g.qi(document.location.toString()))});this.u=new g.Xi;g.T("networkless_immediately_drop_all_requests")&&eoa();Rna("LogsDatabaseV2")};
hx=function(){var a=g.Ha("yt.networklessRequestController.instance");a||(a=new gx,g.Fa("yt.networklessRequestController.instance",a),g.T("networkless_logging")&&g.Cw().then(function(b){a.Te=b;Sna(a);a.u.resolve();a.YB&&Math.random()<=a.KB&&a.Te&&hoa(a.Te);g.T("networkless_immediately_drop_sw_health_store")&&roa(a)}));
return a};
roa=function(a){var b;g.z(function(c){if(!a.Te)throw b=g.aw("clearSWHealthLogsDb"),b;return c.return(ioa(a.Te).catch(function(d){a.handleError(d)}))})};
qoa=function(a,b,c){g.T("use_cfr_monitor")&&soa(a,b);if(g.T("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.U)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.U)())}c&&0===Object.keys(b).length?g.Ww(a):g.Cu(a,b)};
poa=function(){ix||(ix=new g.fx({MZ:!0,XX:!0}));return ix};
soa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Zw().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Zw().requestComplete(a,!0);d(e,f)}};
toa=function(a,b){function c(d){var e=jx().mf();if(!kx()||!d||e&&g.T("vss_networkless_bypass_write"))lx(a,b);else{var f={url:a,options:b,timestamp:(0,g.U)(),status:"NEW",sendCount:0};Tw(f,d).then(function(h){f.id=h;jx().mf()&&mx(f)}).catch(function(h){mx(f);
nx(h)})}}
b=void 0===b?{}:b;g.T("skip_is_supported_killswitch")?g.Cw().then(function(d){c(d)}):c(Bw())};
ox=function(a,b,c){function d(e){if(kx()&&e){var f={url:a,options:b,timestamp:(0,g.U)(),status:"NEW",sendCount:0};g.T("nwl_skip_retry")&&(f.skipRetry=c);if(jx().mf()||g.T("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var h=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.z(function(n){if(1==n.j)return g.x(n,Tw(f,e).catch(function(p){nx(p)}),2);
h(l,m);g.pa(n)})}}lx(a,b,f.skipRetry)}else Tw(f,e).catch(function(l){lx(a,b,g.T("nwl_skip_retry")&&c);
nx(l)})}else lx(a,b,g.T("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.T("skip_is_supported_killswitch")?g.Cw().then(function(e){d(e)}):d(Bw())};
px=function(a,b){function c(d){if(kx()&&d){var e={url:a,options:b,timestamp:(0,g.U)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(m,n){g.T("use_cfr_monitor")&&Zw().requestComplete(e.url,!0);void 0!==e.id?Vw(e.id,d):f=!0;g.T("vss_network_hint")&&jx().Co(!0);h(m,n)};
if(g.T("use_cfr_monitor")){var l=b.onError?b.onError:function(){};
e.options.onError=function(m,n){Zw().requestComplete(e.url,!1);l(m,n)}}lx(e.url,e.options);
Tw(e,d).then(function(m){e.id=m;f&&Vw(e.id,d)}).catch(function(m){nx(m)})}else lx(a,b)}
b=void 0===b?{}:b;g.T("skip_is_supported_killswitch")?g.Cw().then(function(d){c(d)}):c(Bw())};
uoa=function(){var a=Bw();if(!a)throw g.aw("throttleSend");qx||(qx=g.Vn.Fh(function(){var b;return g.z(function(c){if(1==c.j)return g.x(c,boa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.x(c,mx(b),3):(g.Vn.Tk(qx),qx=0,c.return());qx&&(qx=0,uoa());g.pa(c)})},100))};
mx=function(a){var b,c,d;return g.z(function(e){switch(e.j){case 1:b=Bw();if(!b)throw c=g.aw("immediateSend"),c;if(void 0===a.id){e.Ma(2);break}return g.x(e,coa(a.id,b),3);case 3:(d=e.u)?a=d:iu(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.U)()-f)){e.Ma(4);break}iu(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ma(5);break}return g.x(e,Vw(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=voa(a));
f=a;if(g.T("use_request_time_ms_header")){var h;if(null==f?0:null==(h=f.options)?0:h.headers)f.options.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.U)()))}else{var l,m;if(null==f?0:null==(l=f.options)?0:null==(m=l.postParams)?0:m.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.U)())}a=f;if(!a){e.Ma(0);break}if(!a.skipRetry||void 0===a.id){e.Ma(8);break}return g.x(e,Vw(a.id,b),8);case 8:lx(a.url,a.options,!!a.skipRetry),g.pa(e)}})};
voa=function(a){var b=Bw();if(!b)throw g.aw("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var h,l,m;return g.z(function(n){switch(n.j){case 1:g.T("use_cfr_monitor")&&Zw().requestComplete(a.url,!1);h=Wna(f);if(!(g.T("nwl_consider_error_code")&&h||!g.T("nwl_consider_error_code")&&woa()<=g.cu("potential_esf_error_limit",10))){n.Ma(2);break}if(g.T("skip_checking_network_on_cfr_failure")&&(!g.T("skip_checking_network_on_cfr_failure")||Zw().isEndpointCFR(a.url))){n.Ma(3);break}return g.x(n,jx().nA(),3);case 3:if(jx().mf()){n.Ma(2);break}c(e,f);if(!g.T("nwl_consider_error_code")||
void 0===(null==(l=a)?void 0:l.id)){n.Ma(6);break}return g.x(n,Uw(a.id,b,!1),6);case 6:return n.return();case 2:if(g.T("nwl_consider_error_code")&&!h&&woa()>g.cu("potential_esf_error_limit",10))return n.return();g.Ha("ytNetworklessLoggingInitializationOptions")&&rx.potentialEsfErrorCounter++;sx++;if(void 0===(null==(m=a)?void 0:m.id)){n.Ma(8);break}return 1>a.sendCount?g.x(n,Uw(a.id,b),12):g.x(n,Vw(a.id,b),8);case 12:g.Vn.Fh(function(){jx().mf()&&uoa()},5E3);
case 8:c(e,f),g.pa(n)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){var h;return g.z(function(l){if(1==l.j)return g.T("use_cfr_monitor")&&Zw().requestComplete(a.url,!0),void 0===(null==(h=a)?void 0:h.id)?l.Ma(2):g.x(l,Vw(a.id,b),2);g.T("vss_network_hint")&&jx().Co(!0);d(e,f);g.pa(l)})};
return a};
jx=function(){if(g.T("use_new_nwl"))return poa();tx||(tx=new g.fx({MZ:!0,XX:!0}));return tx};
nx=function(a){jx().mf()?g.gu(a):moa(a)};
lx=function(a,b,c){c&&0===Object.keys(b).length?g.Ww(a):g.Cu(a,b)};
kx=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?rx.isNwlInitialized:!1};
woa=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?rx.potentialEsfErrorCounter:sx};
g.ux=function(a){this.config_=null;a?this.config_=a:Sma()&&(this.config_=g.xv())};
g.vx=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.yQ.bypassNetworkless?(f.method="POST",d.yQ.writeThenSend?g.T("use_new_nwl_wts")?hx().writeThenSend(n,f):toa(n,f):g.T("use_new_nwl_saw")?hx().sendAndWrite(n,f):px(n,f)):g.T("web_all_payloads_via_jspb")?g.Cu(n,f):(f.method="POST",f.postParams||(f.postParams={}),g.Cu(n,f))}catch(q){if("InvalidAccessError"==q.name)iu(Error("An extension is blocking network request."));else throw q;}}
!g.Q("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&iu(new g.Rv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Rv("innertube xhrclient not ready",b,c,d),g.gu(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 h=a.config_.FP;h&&(c=h);h=ana(a.config_.GP||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.uI&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=ou(""+c+b,l);g.T("use_new_nwl")&&hx().Ue||!g.T("use_new_nwl")&&
kx()?Jna().then(function(p){e(p)}):e(!1)};
xoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=wx+"VisibilityState";if(b in a)return a[b]};
xx=function(a,b){var c;Nl(a,function(d){c=b[d];return!!c});
return c};
yx=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 yoa||(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){}};
zoa=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}};
Aoa=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 Bf(zx,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Pa(e[4])&&g.Pa(d)&&g.Ff(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Ax=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Aoa(a,b,c,d);if(e)return e;e=++Boa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new yx(l);if(!vh(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new yx(l);
l.currentTarget=a;return c.call(a,l)};
h=hu(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Coa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);zx[e]=[a,b,c,h,d];return e};
Doa=function(a,b){var c=document.body||document;return g.Ax(c,"click",function(d){var e=vh(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Bx=function(a){a&&("string"==typeof a&&(a=[a]),g.tc(a,function(b){if(b in zx){var c=zx[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Coa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete zx[b]}}))};
g.Cx=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Dx=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.Cx(a)};
Ex=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};
Fx=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.Gg(b,c)};
g.Gx=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Hx=function(a){a=a||window.event;return!1===a.returnValue||a.LP&&a.LP()};
g.Ix=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Eoa=function(a){return Doa(a,function(b){return g.go(b,"ytp-ad-has-logging-urls")})};
g.Foa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ax(a,b,function(){g.Bx(e);c.apply(a,arguments)},d)};
Jx=function(a){for(var b in zx)zx[b][0]==a&&g.Bx(b)};
Kx=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.Y=g.Ax(window,"mousemove",(0,g.Ta)(this.V,this));this.N=g.yu((0,g.Ta)(this.W,this),25)};
Nx=function(){var a={},b=void 0===a.n3?!1:a.n3;a=void 0===a.YX?!0:a.YX;if(null==g.Ha("_lact",window)){var c=parseInt(g.Q("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Lx();g.Ax(document,"keydown",Lx);g.Ax(document,"keyup",Lx);g.Ax(document,"mousedown",Lx);g.Ax(document,"mouseup",Lx);b?g.Ax(window,"touchmove",function(){Mx("touchmove",200)},{passive:!0}):(g.Ax(window,"resize",function(){Mx("resize",200)}),a&&g.Ax(window,"scroll",function(){Mx("scroll",
200)}));
new Kx(function(){Mx("mouse",100)});
g.Ax(document,"touchstart",Lx,{passive:!0});g.Ax(document,"touchend",Lx,{passive:!0})}};
Mx=function(a,b){Ox[a]||(Ox[a]=!0,g.Vn.Fh(function(){Lx();Ox[a]=!1},b))};
Lx=function(){null==g.Ha("_lact",window)&&(Nx(),g.Ha("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ha("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ha("ytglobal.ytUtilActivityCallback_"))&&a()};
Px=function(){var a=g.Ha("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
g.Ux=function(a,b,c){var d=g.Qx();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Rx[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Sx[a]?h():g.xu(h,0)}catch(l){g.gu(l)}},c);
Rx[e]=!0;Tx[a]||(Tx[a]=[]);Tx[a].push(e);return e}return 0};
g.Vx=function(a){var b=g.Qx();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.tc(a,function(c){b.unsubscribeByKey(c);delete Rx[c]}))};
g.Wx=function(a,b){var c=g.Qx();return c?c.publish.apply(c,arguments):!1};
Hoa=function(a){var b=g.Qx();if(b)if(b.clear(a),a)Goa(a);else for(var c in Tx)Goa(c)};
g.Qx=function(){return g.C.ytPubsubPubsubInstance};
Goa=function(a){Tx[a]&&(a=Tx[a],g.tc(a,function(b){Rx[b]&&delete Rx[b]}),a.length=0)};
Xx=function(a){this.policy=a;this.store=[];this.j={}};
Joa=function(a,b){var c=Object.keys(b),d="THIS_KEY_FIELD_NOT_FILLED",e="THIS_KEY_FIELD_NOT_FILLED",f="THIS_KEY_FIELD_NOT_FILLED";c=g.r(c);for(var h=c.next();!h.done;h=c.next())h=h.value,"auth"===h?d=Ioa(b.auth):"isJspb"===h?e=JSON.stringify(b.isJspb):"cttAuthInfo"===h&&(f=Ioa(b.cttAuthInfo));b=[];d=[d,e,f];a=g.r(Object.keys(a.j));for(e=a.next();!e.done;e=a.next()){e=e.value;f=e.split("/");c=!0;for(h=0;h<d.length;h++)if("THIS_KEY_FIELD_NOT_FILLED"!==d[h]&&d[h]!==f[h]){c=!1;break}c&&b.push(e)}return b};
Ioa=function(a){return void 0===a?"undefined":a};
Koa=function(){this.B=this.j=this.u=0};
Zx=function(){var a=g.Ha("yt.logging.ims");a||(a=new Xx({maxBatchSize:g.cu("tvhtml5_logging_max_batch")||g.cu("web_logging_max_batch")||100,onBatchSizeExceeded:function(b){Yx({writeThenSend:!0},void 0,b.isJspb)}}),g.Fa("yt.logging.ims",a));
return a};
Loa=function(a,b){g.T("web_all_payloads_via_jspb")&&iu(new g.Rv("transport.log called for JSON in JSPB only experiment"));if("log_event"===a.endpoint){$x(a);var c=ay(a);if(g.T("use_new_in_memory_storage")){by[c]=!0;var d={cttAuthInfo:c,isJspb:!1};Zx().storePayload(d,a.payload);cy(b,[],c,!1,d)}else d=dy.get(c)||[],dy.set(c,d),d.push(a.payload),cy(b,d,c)}};
Moa=function(a,b){if("log_event"===a.endpoint){$x(void 0,a);var c=ay(a,!0);if(g.T("use_new_in_memory_storage")){by[c]=!0;var d={cttAuthInfo:c,isJspb:!0};Zx().storePayload(d,a.payload.toJSON());cy(b,[],c,!0,d)}else d=ey.get(c)||[],ey.set(c,d),a=a.payload.toJSON(),d.push(a),cy(b,d,c,!0)}};
cy=function(a,b,c,d,e){d=void 0===d?!1:d;a&&(fy=new a);a=g.cu("tvhtml5_logging_max_batch")||g.cu("web_logging_max_batch")||100;var f=(0,g.U)(),h=d?gy.B:hy.B;b=b.length;e&&(b=Zx().getSequenceCount(e));b>=a?Yx({writeThenSend:!0},g.T("flush_only_full_queue")?c:void 0,d):10<=f-h&&(Noa(d),d?gy.B=f:hy.B=f)};
Ooa=function(a,b){g.T("web_all_payloads_via_jspb")&&iu(new g.Rv("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){$x(a);var c=ay(a),d=new Map;d.set(c,[a.payload]);b&&(fy=new b);return new g.Fh(function(e,f){fy&&fy.isReady()?iy(d,fy,e,f,{bypassNetworkless:!0},!0):e()})}};
Poa=function(a,b){if("log_event"===a.endpoint){$x(void 0,a);var c=ay(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(fy=new b);return new g.Fh(function(e){fy&&fy.isReady()?jy(d,fy,e,{bypassNetworkless:!0},!0):e()})}};
ay=function(a,b){var c="";if(a.jy)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Yt;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.zd(d,2,ky,c.playlistId);ly[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),my[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Yx=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&g.T("web_all_payloads_via_jspb")&&iu(new g.Rv("transport.flushLogs called for JSON in JSPB only experiment"));new g.Fh(function(d,e){c?(g.zu(gy.u),g.zu(gy.j),gy.j=0):(g.zu(hy.u),g.zu(hy.j),hy.j=0);if(fy&&fy.isReady())if(g.T("use_new_in_memory_storage")){var f=a,h=c,l=fy;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=Zx().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),jy(m,l,d,f)):(m=Zx().extractMatchingEntries({isJspb:h,
cttAuthInfo:b}),n.set(b,m),iy(n,l,d,e,f));else if(h){e=g.r(Object.keys(by));for(h=e.next();!h.done;h=e.next())n=h.value,h=Zx().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<h.length&&m.set(n,h),delete by[n];jy(m,l,d,f)}else{m=g.r(Object.keys(by));for(h=m.next();!h.done;h=m.next()){h=h.value;var p=Zx().extractMatchingEntries({isJspb:!1,cttAuthInfo:h});0<p.length&&n.set(h,p);delete by[h]}iy(n,l,d,e,f)}}else f=a,m=c,l=fy,f=void 0===f?{}:f,m=void 0===m?!1:m,void 0!==b?m?(e=new Map,m=ey.get(b)||
[],e.set(b,m),jy(e,l,d,f),ey.delete(b)):(m=new Map,n=dy.get(b)||[],m.set(b,n),iy(m,l,d,e,f),dy.delete(b)):m?(jy(ey,l,d,f),ey.clear()):(iy(dy,l,d,e,f),dy.clear());else Noa(c),d()})};
Noa=function(a){a=void 0===a?!1:a;if(g.T("web_gel_timeout_cap")&&(!a&&!hy.j||a&&!gy.j)){var b=g.xu(function(){Yx({writeThenSend:!0},void 0,a)},6E4);
a?gy.j=b:hy.j=b}g.zu(a?gy.u:hy.u);b=g.Q("LOGGING_BATCH_TIMEOUT",g.cu("web_gel_debounce_ms",1E4));g.T("shorten_initial_gel_batch_timeout")&&ny&&(b=Qoa);b=g.xu(function(){Yx({writeThenSend:!0},void 0,a)},b);
a?gy.u=b:hy.u=b};
iy=function(a,b,c,d,e,f){e=void 0===e?{}:e;var h=Math.round((0,g.U)()),l=a.size;a=g.r(a);for(var m=a.next();!m.done;m=a.next()){var n=g.r(m.value);m=n.next().value;var p=n.next().value;n=m;m=g.Hf({context:g.yv(b.config_||g.xv())});if(!g.Oa(p)&&!g.T("throw_err_when_logevent_malformed_killswitch")){d();break}m.events=p;(p=my[n])&&Roa(m,n,p);delete my[n];n="visitorOnlyApprovedKey"===n;Soa(m,h,n);Toa(e);p=function(){l--;l||c()};
var q=function(){l--;l||c()};
try{g.vx(b,"log_event",m,Uoa(e,n,p,q,f)),ny=!1}catch(v){g.gu(v),d()}}};
jy=function(a,b,c,d,e){d=void 0===d?{}:d;var f=Math.round((0,g.U)()),h=a.size,l=new Map([].concat(g.t(a)));l=g.r(l);for(var m=l.next();!m.done;m=l.next()){var n=g.r(m.value).next().value,p=a.get(n);m=new Zt;var q=Xma(b.config_||g.xv());F(m,hq,1,q);p=p?Voa(p):[];p=g.r(p);for(q=p.next();!q.done;q=p.next())Jd(m,3,Wt,q.value);(p=ly[n])&&Woa(m,n,p);delete ly[n];n="visitorOnlyApprovedKey"===n;Xoa(m,f,n);Toa(d);m=Rd(m);n=Uoa(d,n,function(){h--;h||c()},function(){h--;
h||c()},e);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=m;g.vx(b,"log_event","",n);ny=!1}};
Toa=function(a){g.T("always_send_and_write")&&(a.writeThenSend=!1)};
Uoa=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,yQ:a,jy:b,o2a:!!e,headers:{},postBodyFormat:"",postBody:""};g.T("use_request_time_ms_header")&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.U)())));return a};
Soa=function(a,b,c){g.T("use_request_time_ms_header")||(a.requestTimeMs=String(b));g.T("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.Q("EVENT_ID"))&&(c=Yoa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Xoa=function(a,b,c){g.T("use_request_time_ms_header")||g.D(a,2,b);if(!c&&(b=g.Q("EVENT_ID"))){c=Yoa();var d=new Xt;g.D(d,1,b);g.D(d,2,c);F(a,Xt,5,d)}};
Yoa=function(){var a=g.Q("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Zoa/2));a++;a>Zoa&&(a=1);au("BATCH_CLIENT_COUNTER",a);return a};
Roa=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}]};
Woa=function(a,b,c){if(c.Nf())var d=1;else if(c.getPlaylistId())d=2;else return;F(a,Yt,4,c);a=a.getContext()||new hq;c=Bd(a,gq,3)||new gq;var e=new fq;e.setToken(b);g.D(e,1,d);Jd(c,12,fq,e);F(a,gq,3,c)};
Voa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new Wt(a[c]))}catch(d){g.gu(new g.Rv("Transport failed to deserialize "+String(a[c])))}return b};
$x=function(a,b){if(g.Ha("yt.logging.transport.enableScrapingForTest")){var c=g.Ha("yt.logging.transport.scrapedPayloadsForTesting"),d=g.Ha("yt.logging.transport.payloadToScrape","");b&&(b=b.payload,(b=g.Ha("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));a&&a.payload[d]&&c.push((null==a?void 0:a.payload)[d]);g.Fa("yt.logging.transport.scrapedPayloadsForTesting",c)}};
py=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.U)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;g.T("enable_unknown_lact_fix_on_html5")&&Nx();a=Px();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.T("log_sequence_info_on_gel_web")&&d.vk&&(a=e.context,b=d.vk,b={index:$oa(b),groupKey:b},a.sequence=b,d.yO&&delete oy[d.vk]);(d.zK?Ooa:Loa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,jy:d.jy},c)};
qy=function(a){Yx(void 0,void 0,void 0===a?!1:a)};
$oa=function(a){oy[a]=a in oy?oy[a]+1:0;return oy[a]};
ry=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.U)());g.D(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=Px();d=new Vt;g.D(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.T("log_sequence_info_on_gel_web")&&c.vk){e=c.vk;var f=$oa(e),h=new Ut;g.D(h,2,f);g.D(h,1,e);F(d,Ut,3,h);c.yO&&delete apa[c.vk]}F(a,Vt,33,d);(c.zK?Poa:Moa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,jy:c.jy},b)};
sy=function(a,b){b=void 0===b?{}:b;var c=!1;g.Q("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);ry(a,c?null:g.ux,b)};
uy=function(a,b){var c=new Wt;Dd(c,tt,72,ty,a);sy(c,b)};
bpa=function(a,b,c){var d=new Wt;Dd(d,rt,73,ty,a);c?ry(d,c,b):sy(d,b)};
cpa=function(a,b,c){var d=new Wt;Dd(d,qt,78,ty,a);c?ry(d,c,b):sy(d,b)};
dpa=function(a,b,c){var d=new Wt;Dd(d,ut,208,ty,a);c?ry(d,c,b):sy(d,b)};
epa=function(a,b,c){var d=new Wt;Dd(d,nt,156,ty,a);c?ry(d,c,b):sy(d,b)};
fpa=function(a,b,c){var d=new Wt;Dd(d,jt,202,ty,a);c?ry(d,c,b):sy(d,b)};
gpa=function(a,b,c){var d=new Wt;Dd(d,pt,215,ty,a);c?ry(d,c,b):sy(d,b)};
hpa=function(a,b,c){var d=new Wt;Dd(d,at,111,ty,a);c?ry(d,c,b):sy(d,b)};
Lpa=function(a){var b=new xs;try{a.encryptedVideoId&&g.D(b,1,a.encryptedVideoId);a.cotn&&g.D(b,20,a.cotn);a.cpn&&g.D(b,30,a.cpn);a.l5&&g.D(b,38,ipa[a.l5]);a.z4&&g.D(b,2,jpa[a.z4]);a.Vr&&g.D(b,3,kpa[a.Vr]);a.k5&&g.D(b,41,lpa[a.k5]);a.failureExceptionType&&g.D(b,37,a.failureExceptionType);a.totalFetchedKbytes&&g.D(b,4,a.totalFetchedKbytes);a.diskAvailableKbytes&&g.D(b,5,a.diskAvailableKbytes);a.totalContentKbytes&&g.D(b,21,a.totalContentKbytes);a.alreadyDownloadedKbytes&&g.D(b,22,a.alreadyDownloadedKbytes);
a.fetchedFromCacheKbytes&&g.D(b,23,a.fetchedFromCacheKbytes);if(a.systemHealth){a:{var c=a.systemHealth,d=new Fr;try{c.tag&&g.D(d,1,mpa[c.tag]);if(c.staticContext){b:{var e=c.staticContext,f=new Ar;try{e.displayDensityDpi&&g.D(f,1,e.displayDensityDpi);e.heightPixels&&g.D(f,2,e.heightPixels);e.widthPixels&&g.D(f,3,e.widthPixels);e.memoryTotalKbytes&&g.D(f,4,e.memoryTotalKbytes);e.osSdkVersion&&g.D(f,5,e.osSdkVersion);e.osIncrementalVersion&&g.D(f,6,e.osIncrementalVersion);e.hardwareArchitecture&&g.D(f,
7,e.hardwareArchitecture);e.appVersionCode&&g.D(f,8,e.appVersionCode);e.devicePixelRatio&&g.D(f,9,e.devicePixelRatio);e.buildFingerprint&&g.D(f,10,e.buildFingerprint);e.socManufacturer&&g.D(f,11,e.socManufacturer);e.socModel&&g.D(f,12,e.socModel);e.availableProcessors&&g.D(f,13,e.availableProcessors);e.cpuCores&&g.D(f,14,e.cpuCores);var h=f;break b}catch(Db){}h=void 0}F(d,Ar,2,h)}if(c.dynamicContext){b:{var l=c.dynamicContext,m=new ur;try{l.screenOn&&g.D(m,1,l.screenOn);l.deviceRotation&&g.D(m,2,
l.deviceRotation);l.networkType&&g.D(m,3,l.networkType);l.networkCoarseState&&g.D(m,4,l.networkCoarseState);l.nX&&g.D(m,5,npa[l.nX]);l.isInForeground&&g.D(m,6,l.isInForeground);l.viewportHeightPixels&&g.D(m,7,l.viewportHeightPixels);l.viewportWidthPixels&&g.D(m,8,l.viewportWidthPixels);l.hasCoarsePointer&&g.D(m,9,l.hasCoarsePointer);l.hasFinePointer&&g.D(m,10,l.hasFinePointer);l.hasHoverSupport&&g.D(m,11,l.hasHoverSupport);l.deviceFreeStorageMbytes&&g.D(m,12,l.deviceFreeStorageMbytes);l.deviceStorageQuotaMbytes&&
g.D(m,13,l.deviceStorageQuotaMbytes);l.deviceStorageUsageMbytes&&g.D(m,14,l.deviceStorageUsageMbytes);l.processUptimeMs&&g.D(m,15,l.processUptimeMs);l.hasAppShell&&g.D(m,16,l.hasAppShell);l.glVersion&&g.D(m,17,l.glVersion);l.glRenderer&&g.D(m,18,l.glRenderer);if(l.srsDatapushBuildIds){c:{var n=l.srsDatapushBuildIds,p=new bq;try{if(n.datapushBuild){var q=opa(n.datapushBuild);F(p,$p,1,q)}var v=p;break c}catch(Db){}v=void 0}Jd(m,19,bq,v)}if(l.playerDatapushBuildIds){c:{var w=l.playerDatapushBuildIds,
y=new aq;try{if(w.datapushBuild){var A=opa(w.datapushBuild);F(y,$p,1,A)}var B=y;break c}catch(Db){}B=void 0}Jd(m,20,aq,B)}var E=m;break b}catch(Db){}E=void 0}F(d,ur,3,E)}c.serializedPrimesMetric&&Fd(d,4,c.serializedPrimesMetric);c.serializedIosPrimesMetric&&Fd(d,6,c.serializedIosPrimesMetric);if(c.webMetric){b:{var G=c.webMetric,H=new Cr;try{G.currentHeapKbytes&&g.D(H,1,G.currentHeapKbytes);G.navigationCount&&g.D(H,2,G.navigationCount);var I=H;break b}catch(Db){}I=void 0}F(d,Cr,7,I)}if(c.crashData){b:{var O=
c.crashData,L=new rr;try{O.stackTrace&&g.D(L,1,O.stackTrace);O.screenVeType&&g.D(L,2,O.screenVeType);if(O.compactStackTrace){var P=vy(O.compactStackTrace);F(L,ar,3,P)}O.crashTimeMs&&g.D(L,4,O.crashTimeMs);if(O.clientError){c:{var S=O.clientError,ca=new qr;try{if(S.errorMetadata){d:{var R=S.errorMetadata,na=new jr;try{R.hY&&g.D(na,1,ppa[R.hY]);if(R.serviceTrackingData){e:{var sa=R.serviceTrackingData,Aa=new hr;try{sa.innertubeBuildChangelist&&g.D(Aa,1,sa.innertubeBuildChangelist);sa.innertubeBuildExperimentsSourceVersion&&
g.D(Aa,2,sa.innertubeBuildExperimentsSourceVersion);sa.innertubeBuildLabel&&g.D(Aa,3,sa.innertubeBuildLabel);sa.innertubeBuildTimestampSec&&g.D(Aa,4,sa.innertubeBuildTimestampSec);sa.innertubeBuildVariantsChecksum&&g.D(Aa,5,sa.innertubeBuildVariantsChecksum);sa.innertubeJobName&&g.D(Aa,6,sa.innertubeJobName);var wa=Aa;break e}catch(Db){}wa=void 0}F(na,hr,2,wa)}R.pageUrl&&g.D(na,3,R.pageUrl);if(R.kvPairs){e:{var ta=R.kvPairs,Ma=new kr;try{ta.key&&g.D(Ma,1,ta.key);ta.value&&Ma.setValue(ta.value);var Ka=
Ma;break e}catch(Db){}Ka=void 0}Jd(na,4,kr,Ka)}R.experimentIds&&g.xd(na,5,R.experimentIds);if(R.playerMetadata){e:{var qa=R.playerMetadata,nb=new ir;try{qa.error&&g.xd(nb,1,qpa[qa.error]);qa.stackTrace&&g.D(nb,2,qa.stackTrace);var Sb=nb;break e}catch(Db){}Sb=void 0}F(na,ir,6,Sb)}var Ua=na;break d}catch(Db){}Ua=void 0}F(ca,jr,1,Ua)}if(S.stackTrace){d:{var $a=S.stackTrace,bc=new or;try{$a.isObfuscated&&g.D(bc,1,$a.isObfuscated);if($a.androidStackInfo){e:{var Sa=$a.androidStackInfo,ab=new lr;try{Sa.serializedThrowable&&
Fd(ab,1,Sa.serializedThrowable);var tb=ab;break e}catch(Db){}tb=void 0}Dd(bc,lr,2,wy,tb)}if($a.browserStackInfo){e:{var fc=$a.browserStackInfo,Tb=new mr;try{fc.stackTrace&&g.D(Tb,1,fc.stackTrace);fc.lineNumber&&g.D(Tb,2,fc.lineNumber);fc.columnNumber&&g.D(Tb,3,fc.columnNumber);fc.filename&&g.D(Tb,4,fc.filename);var Lc=Tb;break e}catch(Db){}Lc=void 0}Dd(bc,mr,3,wy,Lc)}if($a.iosStackInfo){e:{var nc=$a.iosStackInfo,bd=new nr;try{nc.stackTrace&&g.D(bd,1,nc.stackTrace);var cd=bd;break e}catch(Db){}cd=
void 0}Dd(bc,nr,4,wy,cd)}var ob=bc;break d}catch(Db){}ob=void 0}F(ca,or,2,ob)}if(S.logMessage){d:{var Pb=S.logMessage,Hb=new pr;try{Pb.message&&g.D(Hb,1,Pb.message);Pb.level&&g.D(Hb,2,rpa[Pb.level]);Pb.errorClassName&&g.D(Hb,3,Pb.errorClassName);Pb.sourceMethodName&&g.D(Hb,4,Pb.sourceMethodName);Pb.sampleWeight&&g.D(Hb,6,Pb.sampleWeight);var gc=Hb;break d}catch(Db){}gc=void 0}F(ca,pr,3,gc)}var Kb=ca;break c}catch(Db){}Kb=void 0}F(L,qr,5,Kb)}var hc=L;break b}catch(Db){}hc=void 0}F(d,rr,9,hc)}if(c.delayedEventMetrics){b:{var Ga=
c.delayedEventMetrics,Ia=new br;try{Ga.Ur&&g.D(Ia,1,spa[Ga.Ur]);Ga.storedEventsCount&&g.D(Ia,2,Ga.storedEventsCount);Ga.expiredEventsCount&&g.D(Ia,3,Ga.expiredEventsCount);Ga.averageTimeBetweenDispatchesMs&&g.D(Ia,4,Ga.averageTimeBetweenDispatchesMs);Ga.oldestStoredEventAgeMs&&g.D(Ia,5,Ga.oldestStoredEventAgeMs);Ga.metricIntervalMs&&g.D(Ia,6,Ga.metricIntervalMs);Ga.dispatchedEventCount&&g.D(Ia,7,Ga.dispatchedEventCount);Ga.dispatchAttemptCount&&g.D(Ia,8,Ga.dispatchAttemptCount);Ga.withDiskSpaceMs&&
g.D(Ia,9,Ga.withDiskSpaceMs);Ga.withNetworkMs&&g.D(Ia,10,Ga.withNetworkMs);Ga.foregroundMs&&g.D(Ia,11,Ga.foregroundMs);Ga.activeMs&&g.D(Ia,12,Ga.activeMs);Ga.condensedPageBcSlackCount&&g.D(Ia,13,Ga.condensedPageBcSlackCount);Ga.persistedDeleteUsedCount&&g.D(Ia,14,Ga.persistedDeleteUsedCount);Ga.persistedDeleteCount&&g.D(Ia,15,Ga.persistedDeleteCount);Ga.eventDisabledCount&&g.D(Ia,16,Ga.eventDisabledCount);Ga.identityResolutionErrorCount&&g.D(Ia,17,Ga.identityResolutionErrorCount);Ga.exceededMaxRetryCount&&
g.D(Ia,18,Ga.exceededMaxRetryCount);Ga.condensedPageBcPersistFailCount&&g.D(Ia,19,Ga.condensedPageBcPersistFailCount);Ga.couldNotUnloadPageCount&&g.D(Ia,20,Ga.couldNotUnloadPageCount);Ga.pageWasCorruptedCount&&g.D(Ia,24,Ga.pageWasCorruptedCount);Ga.badEventIndexCount&&g.D(Ia,27,Ga.badEventIndexCount);Ga.serializeErrorCount&&g.D(Ia,25,Ga.serializeErrorCount);Ga.payloadInfoNotSetCount&&g.D(Ia,21,Ga.payloadInfoNotSetCount);Ga.requestEmptyErrorCount&&g.D(Ia,22,Ga.requestEmptyErrorCount);Ga.clientEventNotSetCount&&
g.D(Ia,23,Ga.clientEventNotSetCount);Ga.differentIdCount&&g.D(Ia,26,Ga.differentIdCount);var Sd=Ia;break b}catch(Db){}Sd=void 0}Jd(d,10,br,Sd)}if(c.iosBatteryMetric){b:{var Ja=c.iosBatteryMetric,Mc=new dr;try{Ja.sampleDurationMs&&g.D(Mc,1,Ja.sampleDurationMs);if(Ja.startSample){var vf=tpa(Ja.startSample);F(Mc,cr,2,vf)}if(Ja.endSample){var ie=tpa(Ja.endSample);F(Mc,cr,3,ie)}var je=Mc;break b}catch(Db){}je=void 0}F(d,dr,11,je)}if(c.androidBatteryMetric){b:{var ke=c.androidBatteryMetric,Td=new Uq;try{ke.sampleDurationMs&&
g.D(Td,1,ke.sampleDurationMs);if(ke.startSample){var Ce=upa(ke.startSample);F(Td,Tq,2,Ce)}if(ke.endSample){var pe=upa(ke.endSample);F(Td,Tq,3,pe)}var td=Td;break b}catch(Db){}td=void 0}F(d,Uq,12,td)}if(c.webApiSupport){b:{var yb=c.webApiSupport,pb=new Br;try{yb.intersectionObserverPresent&&g.D(pb,1,yb.intersectionObserverPresent);yb.indexedDbPresent&&g.D(pb,2,yb.indexedDbPresent);yb.serviceWorkerPresent&&g.D(pb,3,yb.serviceWorkerPresent);yb.webSharePresent&&g.D(pb,4,yb.webSharePresent);yb.fullScreenApiPresent&&
g.D(pb,5,yb.fullScreenApiPresent);yb.cacheStoragePresent&&g.D(pb,6,yb.cacheStoragePresent);yb.storageEstimatePresent&&g.D(pb,7,yb.storageEstimatePresent);yb.storagePersistPresent&&g.D(pb,8,yb.storagePersistPresent);yb.webkitTemporaryStoragePresent&&g.D(pb,9,yb.webkitTemporaryStoragePresent);yb.idb2Present&&g.D(pb,10,yb.idb2Present);yb.promiseRejectionEventPresent&&g.D(pb,11,yb.promiseRejectionEventPresent);yb.subtleCryptoPresent&&g.D(pb,12,yb.subtleCryptoPresent);yb.broadcastChannelPresent&&g.D(pb,
13,yb.broadcastChannelPresent);yb.webLocksApiPresent&&g.D(pb,14,yb.webLocksApiPresent);var rc=pb;break b}catch(Db){}rc=void 0}F(d,Br,13,rc)}if(c.cpuProfiling){b:{var id=c.cpuProfiling,le=new gr;try{if(id.profilingSamples){var Pe=vy(id.profilingSamples);F(le,ar,1,Pe)}if(id.config){var Fc=le.setConfig;c:{var Ud=id.config,Ad=new fr;try{Ud.profilingIntervalSec&&g.D(Ad,1,Ud.profilingIntervalSec);Ud.profilingDurationSec&&g.D(Ad,2,Ud.profilingDurationSec);Ud.b5&&g.D(Ad,3,vpa[Ud.b5]);Ud.profilingStartTimeSec&&
g.D(Ad,4,Ud.profilingStartTimeSec);Ud.fractionOfRunsToSample&&g.D(Ad,5,Ud.fractionOfRunsToSample);var Vd=Ad;break c}catch(Db){}Vd=void 0}Fc.call(le,Vd)}var rg=le;break b}catch(Db){}rg=void 0}F(d,gr,14,rg)}if(c.stallStackTrace){var Wd=vy(c.stallStackTrace);F(d,ar,15,Wd)}if(c.memoryUsage){b:{var Pc=c.memoryUsage,qe=new xr;try{Pc.totalMemoryUsageBytes&&g.D(qe,1,Pc.totalMemoryUsageBytes);if(Pc.classMemoryUsage){var Qc=wpa(Pc.classMemoryUsage);Jd(qe,2,vr,Qc)}if(Pc.config){var De=qe.setConfig;c:{var Xd=
Pc.config,ef=new wr;try{Xd.maxStartTimeSec&&g.D(ef,1,Xd.maxStartTimeSec);Xd.durationTimeSec&&g.D(ef,2,Xd.durationTimeSec);Xd.intervalSec&&g.D(ef,3,Xd.intervalSec);Xd.maxLogCount&&g.D(ef,4,Xd.maxLogCount);Xd.fractionOfRunsToSample&&g.D(ef,5,Xd.fractionOfRunsToSample);var ih=ef;break c}catch(Db){}ih=void 0}De.call(qe,ih)}Pc.processUptimeMs&&g.D(qe,4,Pc.processUptimeMs);if(Pc.viewAllocation){var Ig=wpa(Pc.viewAllocation);Jd(qe,5,vr,Ig)}Pc.entityStoreCount&&g.D(qe,6,Pc.entityStoreCount);Pc.entityStoreBytes&&
g.D(qe,7,Pc.entityStoreBytes);var ff=qe;break b}catch(Db){}ff=void 0}F(d,xr,16,ff)}if(c.networkEvents){b:{var oc=c.networkEvents,Yd=new zr;try{oc.index&&g.D(Yd,1,oc.index);oc.p_&&g.D(Yd,2,xpa[oc.p_]);oc.path&&g.D(Yd,3,oc.path);oc.Vr&&g.D(Yd,4,ypa[oc.Vr]);oc.startTimeMs&&g.D(Yd,5,oc.startTimeMs);oc.totalDurationMs&&g.D(Yd,6,oc.totalDurationMs);oc.requestSize&&g.D(Yd,7,oc.requestSize);oc.responseSize&&g.D(Yd,8,oc.responseSize);if(oc.networkRequestAttempt){c:{var Gd=oc.networkRequestAttempt,Zd=new yr;
try{Gd.Vr&&g.D(Zd,1,ypa[Gd.Vr]);Gd.startTimeMs&&g.D(Zd,5,Gd.startTimeMs);Gd.durationMs&&g.D(Zd,2,Gd.durationMs);Gd.m_&&g.D(Zd,3,zpa[Gd.m_]);var Jg=Zd;break c}catch(Db){}Jg=void 0}Jd(Yd,9,yr,Jg)}oc.mZ&&g.D(Yd,10,Apa[oc.mZ]);var pc=Yd;break b}catch(Db){}pc=void 0}Jd(d,17,zr,pc)}if(c.threadUtilization){b:{var zc=c.threadUtilization,Rc=new Er;try{zc.userJourney&&g.D(Rc,1,zc.userJourney);zc.type&&g.D(Rc,2,Bpa[zc.type]);if(zc.threadPoolStats){c:{var Mb=zc.threadPoolStats,Hd=new Dr;try{Mb.threadPoolName&&
g.D(Hd,1,Mb.threadPoolName);Mb.threadCount&&g.D(Hd,2,Mb.threadCount);Mb.startedTaskCount&&g.D(Hd,3,Mb.startedTaskCount);Mb.finishedTaskCount&&g.D(Hd,4,Mb.finishedTaskCount);Mb.runningTimeMs&&g.D(Hd,5,Mb.runningTimeMs);Mb.waitingTimeMs&&g.D(Hd,6,Mb.waitingTimeMs);Mb.runCount&&g.D(Hd,7,Mb.runCount);Mb.runningPercent&&g.D(Hd,8,Mb.runningPercent);var Kg=Hd;break c}catch(Db){}Kg=void 0}Jd(Rc,3,Dr,Kg)}zc.totalThreadCount&&g.D(Rc,4,zc.totalThreadCount);zc.statsGenerateDurationMs&&g.D(Rc,5,zc.statsGenerateDurationMs);
var gf=Rc;break b}catch(Db){}gf=void 0}F(d,Er,18,gf)}if(c.androidBackgroundTask){b:{var re=c.androidBackgroundTask,Lg=new er;try{re.tag&&g.D(Lg,1,re.tag);re.isKnownTask&&g.D(Lg,2,re.isKnownTask);re.result&&g.D(Lg,3,Cpa[re.result]);var ii=Lg;break b}catch(Db){}ii=void 0}F(d,er,19,ii)}if(c.distributiveProfilingSpan){b:{var Qe=c.distributiveProfilingSpan,Zf=new tr;try{Qe.w4&&g.D(Zf,1,Dpa[Qe.w4]);Qe.sampleRate&&g.D(Zf,2,Qe.sampleRate);Qe.spanDurationMs&&g.D(Zf,3,Qe.spanDurationMs);Qe.sampleFailureCount&&
g.D(Zf,4,Qe.sampleFailureCount);if(Qe.sample){var Hh=Zf.lh;c:{var Ee=Qe.sample,sg=new sr;try{Ee.curveTimestampMs&&g.D(sg,1,Ee.curveTimestampMs);Ee.curveWeight&&g.D(sg,2,Ee.curveWeight);Ee.realTimestampMs&&g.D(sg,3,Ee.realTimestampMs);Ee.sampleCostUsec&&g.D(sg,4,Ee.sampleCostUsec);if(Ee.compactStackTraceSample){var Mg=vy(Ee.compactStackTraceSample);F(sg,ar,5,Mg)}var Ng=sg;break c}catch(Db){}Ng=void 0}Hh.call(Zf,Ng)}var aj=Zf;break b}catch(Db){}aj=void 0}F(d,tr,20,aj)}var jh=d;break a}catch(Db){}jh=
void 0}F(b,Fr,6,jh)}a.hH&&g.D(b,7,yy[a.hH]);a.isAd&&g.D(b,8,a.isAd);a.w_&&g.D(b,9,Epa[a.w_]);a.C4&&g.D(b,24,Fpa[a.C4]);a.offlineSourceVeType&&g.D(b,32,a.offlineSourceVeType);a.listId&&g.D(b,10,a.listId);a.A_&&g.D(b,11,zy[a.A_]);a.v_&&g.D(b,29,Gpa[a.v_]);a.softErrorCount&&g.D(b,12,a.softErrorCount);a.pendingStateFlags&&g.D(b,13,a.pendingStateFlags);a.tL&&g.D(b,14,Hpa[a.tL]);a.isRefresh&&g.D(b,15,a.isRefresh);a.isNewPlayerResponse&&g.D(b,16,a.isNewPlayerResponse);a.isOfflineShareable&&g.D(b,17,a.isOfflineShareable);
a.hasContentVerificationSignature&&g.D(b,18,a.hasContentVerificationSignature);a.isOfflineInterleaving&&g.D(b,19,a.isOfflineInterleaving);a.blockSizeBytes&&g.D(b,25,a.blockSizeBytes);a.VK&&g.D(b,26,Ay[a.VK]);if(a.streamVerificationFailedBlocks){a:{var hf=a.streamVerificationFailedBlocks,Vc=new ys;try{hf.itag&&g.D(Vc,1,hf.itag);hf.startingByte&&g.D(Vc,2,hf.startingByte);var wf=Vc;break a}catch(Db){}wf=void 0}Jd(b,27,ys,wf)}if(a.spacecastInfo){a:{var xf=a.spacecastInfo,Og=new zs;try{xf.applianceId&&
g.D(Og,1,xf.applianceId);xf.n5&&g.D(Og,2,Ipa[xf.n5]);var tg=Og;break a}catch(Db){}tg=void 0}F(b,zs,28,tg)}a.m5&&g.D(b,33,Jpa[a.m5]);a.onlyDownloadOnWifi&&g.D(b,34,a.onlyDownloadOnWifi);a.YW&&g.D(b,35,Kpa[a.YW]);a.isDefaultDownloadToSdCard&&g.D(b,36,a.isDefaultDownloadToSdCard);a.serializedLoggingParams&&Fd(b,39,a.serializedLoggingParams);a.transferServiceStartedFromBackground&&g.D(b,40,a.transferServiceStartedFromBackground);a.transferFirstStarted&&g.D(b,42,a.transferFirstStarted);return b}catch(Db){}};
opa=function(a){var b=new $p;try{return a.buildId&&g.D(b,1,a.buildId),a.clientExperimentId&&g.D(b,2,a.clientExperimentId),a.BW&&g.D(b,3,Mpa[a.BW]),b}catch(c){}};
vy=function(a){var b=new ar;try{if(a.stackTraces){a:{var c=a.stackTraces,d=new $q;try{if(c.mainThread){var e=Npa(c.mainThread);F(d,Zq,1,e)}if(c.backgroundThreads){var f=Npa(c.backgroundThreads);Jd(d,2,Zq,f)}if(c.metaData){b:{var h=c.metaData,l=new Wq;try{h.clientTimestampMs&&g.D(l,1,h.clientTimestampMs);h.sampleTimeCostMs&&g.D(l,2,h.sampleTimeCostMs);h.numberOfBustedFrames&&g.D(l,3,h.numberOfBustedFrames);h.droppedFrameDurationMs&&g.D(l,4,h.droppedFrameDurationMs);h.LX&&g.D(l,5,Opa[h.LX]);h.processUptimeMs&&
g.D(l,6,h.processUptimeMs);h.memoryUsageKbytes&&g.D(l,7,h.memoryUsageKbytes);h.batteryPercentage&&g.D(l,8,h.batteryPercentage);h.exceptionName&&g.D(l,9,h.exceptionName);h.exceptionReason&&g.D(l,10,h.exceptionReason);h.signalNumber&&g.D(l,11,h.signalNumber);h.signalCode&&g.D(l,12,h.signalCode);var m=l;break b}catch(w){}m=void 0}Jd(d,3,Wq,m)}var n=d;break a}catch(w){}n=void 0}Jd(b,1,$q,n)}if(a.allModules){a:{var p=a.allModules,q=new Vq;try{p.moduleUuid&&Fd(q,1,p.moduleUuid);p.moduleName&&g.D(q,2,p.moduleName);
p.loadAddress&&g.D(q,3,p.loadAddress);var v=q;break a}catch(w){}v=void 0}Jd(b,2,Vq,v)}a.appVersionCode&&g.D(b,3,a.appVersionCode);return b}catch(w){}};
Npa=function(a){var b=new Zq;try{if(a.stackFrames){a:{var c=a.stackFrames,d=new Yq;try{c.instructionOffset&&g.D(d,1,c.instructionOffset);c.moduleIndex&&g.D(d,2,c.moduleIndex);var e=d;break a}catch(m){}e=void 0}Jd(b,1,Yq,e)}a.androidStack&&g.D(b,6,a.androidStack);a.threadName&&g.D(b,2,a.threadName);a.cpuUsage&&g.D(b,3,a.cpuUsage);a.cpuTimeSec&&g.D(b,4,a.cpuTimeSec);if(a.iosThreadInfo){a:{var f=a.iosThreadInfo,h=new Xq;try{f.state&&h.Qc(Ppa[f.state]);f.flag&&g.D(h,2,Qpa[f.flag]);f.currentPriority&&
g.D(h,3,f.currentPriority);f.priority&&g.D(h,4,f.priority);f.maxPriority&&g.D(h,5,f.maxPriority);f.isCrashedThread&&g.D(h,6,f.isCrashedThread);var l=h;break a}catch(m){}l=void 0}F(b,Xq,5,l)}return b}catch(m){}};
tpa=function(a){var b=new cr;try{return a.batteryLevelMicros&&g.D(b,1,a.batteryLevelMicros),a.hJ&&g.D(b,2,yy[a.hJ]),a.screenBrightness&&g.D(b,3,a.screenBrightness),a.isLowPowerMode&&g.D(b,4,a.isLowPowerMode),a.isBackground&&g.D(b,5,a.isBackground),a.isStateTransition&&g.D(b,6,a.isStateTransition),a.observedBackgroundFetchMethodCallback&&g.D(b,7,a.observedBackgroundFetchMethodCallback),a.observedBackgroundTaskDidExpire&&g.D(b,8,a.observedBackgroundTaskDidExpire),b}catch(c){}};
upa=function(a){var b=new Tq;try{return a.batteryLevelMicros&&g.D(b,1,a.batteryLevelMicros),a.hJ&&g.D(b,2,yy[a.hJ]),a.screenBrightness&&g.D(b,3,a.screenBrightness),a.U3&&g.D(b,4,Rpa[a.U3]),a.QZ&&g.D(b,5,Spa[a.QZ]),a.fX&&g.D(b,6,Tpa[a.fX]),b}catch(c){}};
wpa=function(a){var b=new vr;try{return a.className&&g.D(b,1,a.className),a.instanceNum&&g.D(b,2,a.instanceNum),a.instanceSizeBytes&&g.D(b,3,a.instanceSizeBytes),a.allocationNum&&g.D(b,4,a.allocationNum),a.deallocationNum&&g.D(b,5,a.deallocationNum),b}catch(c){}};
By=function(a){var b=new as;try{a.trackingParams&&b.xk(a.trackingParams);a.veType&&g.D(b,2,a.veType);a.elementIndex&&g.D(b,3,a.elementIndex);a.veCounter&&g.D(b,6,a.veCounter);if(a.dataElement){var c=By(a.dataElement);F(b,as,7,c)}a.isCounterfactual&&g.D(b,5,a.isCounterfactual);if(a.youtubeData){a:{var d=a.youtubeData,e=new Xp;try{if(d.channelData){b:{var f=d.channelData,h=new xp;try{f.externalId&&Fd(h,1,f.externalId);var l=h;break b}catch(Nb){}l=void 0}F(e,xp,2,l)}if(d.channelItem){b:{var m=d.channelItem,
n=new yp;try{m.externalId&&Fd(n,1,m.externalId);var p=n;break b}catch(Nb){}p=void 0}F(e,yp,5,p)}if(d.playlistItem){b:{var q=d.playlistItem,v=new zp;try{q.externalPlaylistId&&Fd(v,5,q.externalPlaylistId);var w=v;break b}catch(Nb){}w=void 0}F(e,zp,6,w)}if(d.analyticsData){b:{var y=d.analyticsData,A=new Ap;try{if(y.analysisVariant){c:{var B=y.analysisVariant,E=new kp;try{if(B.analysisSummary){d:{var G=B.analysisSummary,H=new Zo;try{G.type&&g.D(H,1,Upa[G.type]);G.eligibility&&g.D(H,2,Vpa[G.eligibility]);
G.sentiment&&g.D(H,3,Wpa[G.sentiment]);var I=H;break d}catch(Nb){}I=void 0}F(E,Zo,1,I)}if(B.videoPerformanceVariant){var O=Xpa(B.videoPerformanceVariant);Dd(E,ip,2,Cy,O)}if(B.videoOverviewVariant){d:{var L=B.videoOverviewVariant,P=new jp;try{L.EA&&g.D(P,1,Dy[L.EA]);if(L.videoPerformanceVariant){var S=Xpa(L.videoPerformanceVariant);F(P,ip,2,S)}L.UX&&g.D(P,3,Ypa[L.UX]);var ca=P;break d}catch(Nb){}ca=void 0}Dd(E,jp,3,Cy,ca)}if(B.channelFluctuationVariant){d:{var R=B.channelFluctuationVariant,na=new ap;
try{R.views&&g.D(na,1,Ey[R.views]);R.driver&&g.D(na,2,Zpa[R.driver]);R.ctr&&g.D(na,3,Ey[R.ctr]);R.impressions&&g.D(na,4,Ey[R.impressions]);R.T5&&g.D(na,5,Ey[R.T5]);var sa=na;break d}catch(Nb){}sa=void 0}Dd(E,ap,4,Cy,sa)}if(B.artistOverviewVariant){d:{var Aa=B.artistOverviewVariant,wa=new $o;try{Aa.EA&&g.D(wa,1,Dy[Aa.EA]);Aa.K5&&g.D(wa,2,$pa[Aa.K5]);var ta=wa;break d}catch(Nb){}ta=void 0}Dd(E,$o,5,Cy,ta)}if(B.monthlySubsVariant){var Ma=aqa(B.monthlySubsVariant);Dd(E,ep,6,Cy,Ma)}if(B.monthlyRevenueVariant){var Ka=
bqa(B.monthlyRevenueVariant);Dd(E,dp,7,Cy,Ka)}if(B.holisticMonthlyOverviewVariant){d:{var qa=B.holisticMonthlyOverviewVariant,nb=new fp;try{if(qa.viewsPerformance){var Sb=cqa(qa.viewsPerformance);F(nb,cp,1,Sb)}if(qa.subsPerformance){var Ua=aqa(qa.subsPerformance);F(nb,ep,2,Ua)}if(qa.revenuePerformance){var $a=bqa(qa.revenuePerformance);F(nb,dp,3,$a)}var bc=nb;break d}catch(Nb){}bc=void 0}Dd(E,fp,8,Cy,bc)}if(B.personalizedChannelOverviewVariant){d:{var Sa=B.personalizedChannelOverviewVariant,ab=new hp;
try{Sa.EA&&g.D(ab,1,Dy[Sa.EA]);if(Sa.viewsPerformance){var tb=cqa(Sa.viewsPerformance);F(ab,cp,2,tb)}var fc=ab;break d}catch(Nb){}fc=void 0}Dd(E,hp,9,Cy,fc)}if(B.channelNewReturningVariant){d:{var Tb=B.channelNewReturningVariant,Lc=new bp;try{Tb.w5&&g.D(Lc,1,Ey[Tb.w5]);Tb.q_&&g.D(Lc,2,Ey[Tb.q_]);Tb.L3&&g.D(Lc,3,Ey[Tb.L3]);var nc=Lc;break d}catch(Nb){}nc=void 0}Dd(E,bp,10,Cy,nc)}if(B.lowReturningViewersDataStoryVariant){d:{var bd=B.lowReturningViewersDataStoryVariant,cd=new gp;try{bd.O5&&g.D(cd,1,
dqa[bd.O5]);var ob=cd;break d}catch(Nb){}ob=void 0}Dd(E,gp,11,Cy,ob)}var Pb=E;break c}catch(Nb){}Pb=void 0}F(A,kp,12,Pb)}if(y.cardConfig){c:{var Hb=y.cardConfig,gc=new op;try{Hb.lX&&g.D(gc,3,eqa[Hb.lX]);Hb.IZ&&g.D(gc,5,fqa[Hb.IZ]);Hb.qH&&g.D(gc,4,gqa[Hb.qH]);if(Hb.tableCardConfig){d:{var Kb=Hb.tableCardConfig,hc=new np;try{Kb.dimension&&g.D(hc,1,Fy[Kb.dimension]);Kb.metrics&&g.xd(hc,2,Fy[Kb.metrics]);var Ga=hc;break d}catch(Nb){}Ga=void 0}Dd(gc,np,1,hqa,Ga)}if(Hb.keyMetricCardConfig){d:{var Ia=Hb.keyMetricCardConfig,
Sd=new mp;try{if(Ia.metricTabConfigs){e:{var Ja=Ia.metricTabConfigs,Mc=new lp;try{Ja.metric&&g.D(Mc,1,Fy[Ja.metric]);Ja.zX&&g.D(Mc,2,Fy[Ja.zX]);Ja.includeCumulative&&g.D(Mc,3,Ja.includeCumulative);var vf=Mc;break e}catch(Nb){}vf=void 0}Jd(Sd,1,lp,vf)}var ie=Sd;break d}catch(Nb){}ie=void 0}Dd(gc,mp,2,hqa,ie)}var je=gc;break c}catch(Nb){}je=void 0}F(A,op,13,je)}y.externalVideoId&&g.D(A,15,y.externalVideoId);y.videoSid&&g.D(A,16,y.videoSid);var ke=A;break b}catch(Nb){}ke=void 0}F(e,Ap,20,ke)}if(d.promotionData){b:{var Td=
d.promotionData,Ce=new Fp;try{Td.promotionId&&g.D(Ce,1,Td.promotionId);Td.f3&&g.D(Ce,9,iqa[Td.f3]);var pe=Ce;break b}catch(Nb){}pe=void 0}F(e,Fp,21,pe)}if(d.backstageItem){b:{var td=d.backstageItem,yb=new Cp;try{td.stanzaId&&g.D(yb,1,td.stanzaId);td.likeCount&&g.D(yb,7,td.likeCount);td.backstageId&&g.D(yb,9,td.backstageId);td.wasPostScheduled&&g.D(yb,14,td.wasPostScheduled);var pb=yb;break b}catch(Nb){}pb=void 0}F(e,Cp,32,pb)}if(d.adminSelfieData){b:{var rc=d.adminSelfieData,id=new Bp;try{rc.componentId&&
g.D(id,1,rc.componentId);rc.componentType&&g.D(id,2,rc.componentType);if(rc.payload){c:{var le=rc.payload,Pe=new up;try{if(le.include){d:{var Fc=le.include,Ud=new rp;try{Fc.fragmentName&&g.D(Ud,1,Fc.fragmentName);var Ad=Ud;break d}catch(Nb){}Ad=void 0}Dd(Pe,rp,1,Gy,Ad)}if(le.toolboxPage){d:{var Vd=le.toolboxPage,rg=new tp;try{Vd.fragmentName&&g.D(rg,1,Vd.fragmentName);var Wd=rg;break d}catch(Nb){}Wd=void 0}Dd(Pe,tp,2,Gy,Wd)}if(le.reviewQueuePage){d:{var Pc=le.reviewQueuePage,qe=new sp;try{Pc.queueId&&
g.D(qe,1,Pc.queueId);var Qc=qe;break d}catch(Nb){}Qc=void 0}Dd(Pe,sp,3,Gy,Qc)}var De=Pe;break c}catch(Nb){}De=void 0}F(id,up,3,De)}var Xd=id;break b}catch(Nb){}Xd=void 0}F(e,Bp,41,Xd)}if(d.notificationState){b:{var ef=d.notificationState,ih=new Np;try{if(ef.inboxInteractionData){c:{var Ig=ef.inboxInteractionData,ff=new vp;try{if(Ig.notifications){d:{var oc=Ig.notifications,Yd=new wp;try{oc.attributionTag&&g.D(Yd,2,oc.attributionTag);var Gd=Yd;break d}catch(Nb){}Gd=void 0}Jd(ff,1,wp,Gd)}var Zd=ff;
break c}catch(Nb){}Zd=void 0}F(ih,vp,9,Zd)}var Jg=ih;break b}catch(Nb){}Jg=void 0}F(e,Np,59,Jg)}if(d.delegationContext){b:{var pc=d.delegationContext,zc=new Dp;try{pc.externalChannelId&&g.D(zc,1,pc.externalChannelId);pc.externalOwnerId&&g.D(zc,3,pc.externalOwnerId);pc.artistId&&g.D(zc,4,pc.artistId);if(pc.roleType){c:{var Rc=pc.roleType,Mb=new pp;try{Rc.mX&&g.zd(Mb,1,Hy,jqa[Rc.mX]);Rc.ZW&&g.zd(Mb,2,Hy,kqa[Rc.ZW]);Rc.BX&&g.zd(Mb,3,Hy,lqa[Rc.BX]);var Hd=Mb;break c}catch(Nb){}Hd=void 0}F(zc,pp,5,Hd)}pc.oacChannelId&&
g.D(zc,6,pc.oacChannelId);pc.isInternalUser&&g.D(zc,8,pc.isInternalUser);pc.delegationContextSerialized&&Fd(zc,9,pc.delegationContextSerialized);var Kg=zc;break b}catch(Nb){}Kg=void 0}F(e,Dp,63,Kg)}if(d.campaignData){b:{var gf=d.campaignData,re=new Ep;try{gf.campaignName&&g.D(re,1,gf.campaignName);gf.campaignVersion&&g.D(re,2,gf.campaignVersion);var Lg=re;break b}catch(Nb){}Lg=void 0}F(e,Ep,64,Lg)}if(d.scoringEventInfo){b:{var ii=d.scoringEventInfo,Qe=new Gp;try{ii.scoringTrackingParams&&Fd(Qe,1,
ii.scoringTrackingParams);var Zf=Qe;break b}catch(Nb){}Zf=void 0}F(e,Gp,77,Zf)}if(d.servletData){b:{var Hh=d.servletData,Ee=new Hp;try{Hh.serializedServletEventId&&g.D(Ee,1,Hh.serializedServletEventId);var sg=Ee;break b}catch(Nb){}sg=void 0}F(e,Hp,83,sg)}if(d.yoodleData){b:{var Mg=d.yoodleData,Ng=new Ip;try{Mg.promoId&&g.D(Ng,1,Mg.promoId);var aj=Ng;break b}catch(Nb){}aj=void 0}F(e,Ip,85,aj)}if(d.videoRestrictionData){b:{var jh=d.videoRestrictionData,hf=new Jp;try{if(jh.restrictions){c:{var Vc=jh.restrictions,
wf=new Kp;try{if(Vc.limitedAds){d:{var xf=Vc.limitedAds,Og=new Lp;try{xf.imposer&&g.D(Og,1,mqa[xf.imposer]);var tg=Og;break d}catch(Nb){}tg=void 0}Dd(wf,Lp,1,nqa,tg)}if(Vc.copyright){d:{var Db=Vc.copyright,bj=new Mp;try{Db.m3&&g.D(bj,1,oqa[Db.m3]);var ji=bj;break d}catch(Nb){}ji=void 0}Dd(wf,Mp,2,nqa,ji)}var Uk=wf;break c}catch(Nb){}Uk=void 0}Jd(hf,1,Kp,Uk)}jh.prechecksPending&&g.D(hf,2,jh.prechecksPending);var Kj=hf;break b}catch(Nb){}Kj=void 0}F(e,Jp,92,Kj)}if(d.creatorMusicData){b:{var kh=d.creatorMusicData,
zf=new Op;try{if(kh.entity){var cj=pqa(kh.entity);F(zf,Pp,1,cj)}if(kh.entities){var Cn=pqa(kh.entities);Jd(zf,2,Pp,Cn)}var Lj=zf;break b}catch(Nb){}Lj=void 0}F(e,Op,96,Lj)}if(d.creatorData){b:{var Id=d.creatorData,Pg=new Tp;try{Id.p5&&g.zd(Pg,1,qqa,rqa[Id.p5]);Id.q5&&g.zd(Pg,2,qqa,sqa[Id.q5]);if(Id.simpleWizardDetails){var es=new Up;Dd(Pg,Up,3,Iy,es)}if(Id.advancedWizardDetails){c:{var ki=Id.advancedWizardDetails,Dn=new Vp;try{ki.isDoubleHop&&g.D(Dn,1,ki.isDoubleHop);var qp=Dn;break c}catch(Nb){}qp=
void 0}Dd(Pg,Vp,4,Iy,qp)}if(Id.blockedWizardDetails){c:{var En=Id.blockedWizardDetails,Eb=new Wp;try{En.OZ&&g.D(Eb,1,tqa[En.OZ]);var ZB=Eb;break c}catch(Nb){}ZB=void 0}Dd(Pg,Wp,5,Iy,ZB)}var uw=Pg;break b}catch(Nb){}uw=void 0}F(e,Tp,98,uw)}var $B=e;break a}catch(Nb){}$B=void 0}F(b,Xp,8,$B)}return b}catch(Nb){}};
Xpa=function(a){var b=new ip;try{return a.views&&g.D(b,1,Ey[a.views]),a.driver&&g.D(b,2,uqa[a.driver]),a.ctr&&g.D(b,3,Ey[a.ctr]),a.avd&&g.D(b,4,Ey[a.avd]),a.impressions&&g.D(b,5,Ey[a.impressions]),a.N5&&g.D(b,6,Ey[a.N5]),b}catch(c){}};
aqa=function(a){var b=new ep;try{return a.I4&&g.D(b,1,Ey[a.I4]),a.s_&&g.D(b,2,Ey[a.s_]),a.H4&&g.D(b,3,Ey[a.H4]),a.HW&&g.D(b,4,Ey[a.HW]),a.J4&&g.D(b,5,Ey[a.J4]),a.Q5&&g.D(b,6,Ey[a.Q5]),b}catch(c){}};
bqa=function(a){var b=new dp;try{return a.revenue&&g.D(b,1,Ey[a.revenue]),a.P3&&g.D(b,2,vqa[a.P3]),a.O3&&g.xd(b,3,wqa[a.O3]),a.N3&&g.D(b,4,xqa[a.N3]),a.M3&&g.D(b,5,yqa[a.M3]),a.driverCountryCode&&g.D(b,6,a.driverCountryCode),b}catch(c){}};
cqa=function(a){var b=new cp;try{return a.views&&g.D(b,1,Ey[a.views]),a.drivers&&g.xd(b,2,zqa[a.drivers]),b}catch(c){}};
pqa=function(a){var b=new Pp;try{if(a.featuredCollection){a:{var c=a.featuredCollection,d=new Qp;try{c.id&&g.D(d,1,c.id);var e=d;break a}catch(q){}e=void 0}Dd(b,Qp,1,Jy,e)}if(a.mood){a:{var f=a.mood,h=new Rp;try{f.type&&g.D(h,1,Aqa[f.type]);var l=h;break a}catch(q){}l=void 0}Dd(b,Rp,2,Jy,l)}if(a.genre){a:{var m=a.genre,n=new Sp;try{m.type&&g.D(n,1,Bqa[m.type]);var p=n;break a}catch(q){}p=void 0}Dd(b,Sp,3,Jy,p)}return b}catch(q){}};
My=function(a){var b=new Aq;try{if(a.opportunityData){a:{var c=a.opportunityData,d=new wq;try{if(c.debugData){b:{var e=c.debugData,f=new xq;try{if(e.slots){var h=Cqa(e.slots);Jd(f,1,uq,h)}e.associatedSlotId&&g.D(f,2,e.associatedSlotId);var l=f;break b}catch(Sa){}l=void 0}F(d,xq,2,l)}c.U2&&g.D(d,3,Dqa[c.U2]);var m=d;break a}catch(Sa){}m=void 0}F(b,wq,1,m)}if(a.slotData){var n=Cqa(a.slotData);F(b,uq,2,n)}if(a.layoutData){a:{var p=a.layoutData,q=new sq;try{p.type&&g.D(q,2,Eqa[p.type]);if(p.debugData){b:{var v=
p.debugData,w=new tq;try{v.layoutId&&g.D(w,1,v.layoutId);if(v.exitNormalTriggerData){var y=Ky(v.exitNormalTriggerData);Jd(w,2,rq,y)}if(v.exitSkipTriggerData){var A=Ky(v.exitSkipTriggerData);Jd(w,3,rq,A)}if(v.exitMuteTriggerData){var B=Ky(v.exitMuteTriggerData);Jd(w,4,rq,B)}if(v.exitUserInputSubmittedTriggerData){var E=Ky(v.exitUserInputSubmittedTriggerData);Jd(w,5,rq,E)}if(v.exitUserCancelledTriggerData){var G=Ky(v.exitUserCancelledTriggerData);Jd(w,6,rq,G)}var H=w;break b}catch(Sa){}H=void 0}F(q,
tq,3,H)}p.TG&&g.D(q,4,Fqa[p.TG]);p.e3&&g.xd(q,5,Ly[p.e3]);var I=q;break a}catch(Sa){}I=void 0}F(b,sq,3,I)}if(a.triggerData){var O=Ky(a.triggerData);F(b,rq,4,O)}if(a.pingData){a:{var L=a.pingData,P=new yq;try{L.v4&&g.D(P,1,Ly[L.v4]);if(L.debugData){b:{var S=L.debugData,ca=new zq;try{S.macros&&g.xd(ca,1,Gqa[S.macros]);S.success&&g.D(ca,2,S.success);var R=ca;break b}catch(Sa){}R=void 0}Jd(P,2,zq,R)}L.pingCount&&g.D(P,3,L.pingCount);var na=P;break a}catch(Sa){}na=void 0}F(b,yq,6,na)}if(a.externalContext){a:{var sa=
a.externalContext,Aa=new oq;try{if(sa.organicPlaybackContext){b:{var wa=sa.organicPlaybackContext,ta=new nq;try{wa.contentCpn&&g.D(ta,1,wa.contentCpn);wa.isLivePlayback&&g.D(ta,2,wa.isLivePlayback);wa.isOfflinePlayback&&g.D(ta,3,wa.isOfflinePlayback);wa.isMdxPlayback&&g.D(ta,4,wa.isMdxPlayback);wa.isDaiContent&&g.D(ta,5,wa.isDaiContent);var Ma=ta;break b}catch(Sa){}Ma=void 0}F(Aa,nq,1,Ma)}if(sa.html5ExperimentContext){b:{var Ka=sa.html5ExperimentContext,qa=new mq;try{Ka.ytExperimentId&&g.D(qa,1,Ka.ytExperimentId);
var nb=qa;break b}catch(Sa){}nb=void 0}F(Aa,mq,2,nb)}if(sa.adVideoPlaybackContext){b:{var Sb=sa.adVideoPlaybackContext,Ua=new lq;try{Sb.adVideoCpn&&g.D(Ua,1,Sb.adVideoCpn);var $a=Ua;break b}catch(Sa){}$a=void 0}F(Aa,lq,3,$a)}var bc=Aa;break a}catch(Sa){}bc=void 0}F(b,oq,5,bc)}return b}catch(Sa){}};
Cqa=function(a){var b=new uq;try{a.type&&g.D(b,2,Hqa[a.type]);a.dY&&g.D(b,6,Ly[a.dY]);a.slotPhysicalPosition&&g.D(b,8,a.slotPhysicalPosition);if(a.debugData){a:{var c=a.debugData,d=new vq;try{c.slotId&&g.D(d,1,c.slotId);c.eY&&g.xd(d,2,Ly[c.eY]);c.unscheduledDueToError&&g.D(d,3,c.unscheduledDueToError);if(c.entryTriggerData){var e=Ky(c.entryTriggerData);Jd(d,4,rq,e)}if(c.slotEntryTriggerData){var f=Ky(c.slotEntryTriggerData);F(d,rq,7,f)}if(c.fulfillmentTriggerData){var h=Ky(c.fulfillmentTriggerData);
Jd(d,5,rq,h)}if(c.expirationTriggerData){var l=Ky(c.expirationTriggerData);Jd(d,6,rq,l)}var m=d;break a}catch(n){}m=void 0}F(b,vq,3,m)}a.externallyManaged&&g.D(b,4,a.externallyManaged);a.TG&&g.D(b,5,Fqa[a.TG]);return b}catch(n){}};
Ky=function(a){var b=new rq;try{a.type&&g.D(b,1,Ly[a.type]);a.category&&g.D(b,2,Iqa[a.category]);if(a.layoutIdEnteredTriggerData){a:{var c=a.layoutIdEnteredTriggerData,d=new pq;try{c.enteredLayoutId&&g.D(d,1,c.enteredLayoutId);var e=d;break a}catch(m){}e=void 0}Dd(b,pq,3,Jqa,e)}if(a.triggerSourceData){a:{var f=a.triggerSourceData,h=new qq;try{f.associatedSlotId&&g.zd(h,1,Kqa,f.associatedSlotId);f.associatedLayoutId&&g.zd(h,2,Kqa,f.associatedLayoutId);var l=h;break a}catch(m){}l=void 0}Dd(b,qq,4,Jqa,
l)}a.shouldOnlyTriggerOnce&&g.D(b,5,a.shouldOnlyTriggerOnce);return b}catch(m){}};
Ny=function(a){var b=new Oq;try{return a.startMs&&g.D(b,1,a.startMs),a.endMs&&g.D(b,2,a.endMs),b}catch(c){}};
Lqa=function(a){var b=new vs;try{return a.orchestrationActionId&&g.D(b,1,a.orchestrationActionId),b}catch(c){}};
Pqa=function(a){var b=new Ts;try{if(a.itemId){a:{var c=a.itemId,d=new iq;try{c.type&&g.D(d,1,Oy[c.type]);c.externalId&&g.D(d,2,c.externalId);var e=d;break a}catch(m){}e=void 0}F(b,iq,1,e)}a.ot&&g.D(b,2,Py[a.ot]);if(a.alcLoggingParams){a:{var f=a.alcLoggingParams,h=new Ss;try{f.t3&&g.D(h,1,Mqa[f.t3]);f.u3&&g.D(h,2,Nqa[f.u3]);var l=h;break a}catch(m){}l=void 0}Dd(b,Ss,3,Oqa,l)}return b}catch(m){}};
sra=function(a){var b=new Qr;try{if(a.dimensions){a:{var c=a.dimensions,d=new Rr;try{c.csn&&d.Xf(c.csn);c.userExperienceId&&g.D(d,2,c.userExperienceId);if(c.studio){b:{var e=c.studio,f=new Nr;try{e.route&&g.D(f,1,e.route);e.feature&&g.D(f,2,Qqa[e.feature]);e.d5&&g.D(f,3,Rqa[e.d5]);e.availability&&g.D(f,4,Sqa[e.availability]);e.isChannelDelegation&&g.D(f,5,e.isChannelDelegation);e.isArtistDelegation&&g.D(f,6,e.isArtistDelegation);e.environment&&g.D(f,7,Tqa[e.environment]);e.n_&&g.D(f,8,Uqa[e.n_]);
var h=f;break b}catch(Ma){}h=void 0}F(d,Nr,3,h)}if(c.mweb){b:{var l=c.mweb,m=new Mr;try{l.QJ&&g.D(m,1,Vqa[l.QJ]);l.gJ&&g.D(m,2,Wqa[l.gJ]);var n=m;break b}catch(Ma){}n=void 0}F(d,Mr,4,n)}if(c.mainAppWeb){b:{var p=c.mainAppWeb,q=new Lr;try{p.QJ&&g.D(q,1,Xqa[p.QJ]);p.H3&&g.D(q,2,Yqa[p.H3]);p.isShellLoad&&g.D(q,3,p.isShellLoad);var v=q;break b}catch(Ma){}v=void 0}F(d,Lr,5,v)}if(c.survivalSli){b:{var w=c.survivalSli,y=new Jr;try{w.partitionMinute&&g.D(y,1,w.partitionMinute);w.R4&&g.D(y,2,Zqa[w.R4]);w.Q4&&
g.D(y,3,$qa[w.Q4]);var A=y;break b}catch(Ma){}A=void 0}F(d,Jr,6,A)}if(c.tvhtml5){b:{var B=c.tvhtml5,E=new Or;try{B.dX&&g.D(E,1,ara[B.dX]);B.o_&&g.D(E,2,bra[B.o_]);B.networkErrorResponseCode&&g.D(E,3,B.networkErrorResponseCode);B.sessionSurvivalLengthMin&&g.D(E,4,B.sessionSurvivalLengthMin);B.EW&&g.D(E,5,cra[B.EW]);B.DW&&g.D(E,6,dra[B.DW]);B.cpn&&g.D(E,7,B.cpn);B.sessionSurvivalDidUserAgentChange&&g.D(E,8,B.sessionSurvivalDidUserAgentChange);B.PW&&g.D(E,9,era[B.PW]);B.oZ&&g.D(E,10,fra[B.oZ]);B.nZ&&
g.D(E,11,gra[B.nZ]);B.hX&&g.D(E,12,hra[B.hX]);B.GW&&g.D(E,13,ira[B.GW]);B.p4&&g.D(E,14,jra[B.p4]);B.FW&&g.D(E,15,kra[B.FW]);B.hadRemoteDeviceConnected&&g.D(E,16,B.hadRemoteDeviceConnected);B.hadVoiceInitiatedPlayback&&g.D(E,17,B.hadVoiceInitiatedPlayback);B.restartLengthMin&&g.D(E,18,B.restartLengthMin);var G=E;break b}catch(Ma){}G=void 0}F(d,Or,7,G)}if(c.unpluggedWeb){b:{var H=c.unpluggedWeb,I=new Pr;try{H.y5&&g.D(I,1,lra[H.y5]);H.z5&&g.D(I,2,mra[H.z5]);var O=I;break b}catch(Ma){}O=void 0}F(d,Pr,
8,O)}c.logEventStatus&&g.D(d,9,c.logEventStatus);if(c.kids){b:{var L=c.kids,P=new Kr;try{L.H5&&g.D(P,1,nra[L.H5]);var S=P;break b}catch(Ma){}S=void 0}F(d,Kr,10,S)}c.screen&&g.D(d,11,c.screen);if(c.navigation){b:{var ca=c.navigation,R=new Ir;try{ca.destinationScreen&&g.D(R,1,ca.destinationScreen);ca.gJ&&g.D(R,2,ora[ca.gJ]);var na=R;break b}catch(Ma){}na=void 0}F(d,Ir,12,na)}var sa=d;break a}catch(Ma){}sa=void 0}F(b,Rr,1,sa)}if(a.records){a:{var Aa=a.records,wa=new Sr;try{Aa.name&&g.D(wa,1,pra[Aa.name]);
Aa.status&&g.D(wa,2,qra[Aa.status]);Aa.state&&wa.Qc(rra[Aa.state]);Aa.sliId&&g.D(wa,4,Aa.sliId);var ta=wa;break a}catch(Ma){}ta=void 0}Jd(b,2,Sr,ta)}return b}catch(Ma){}};
g.Mv=function(a,b,c){c=void 0===c?{}:c;if(g.T("migrate_events_to_ts")){c=void 0===c?{}:c;var d=tra;g.Q("ytLoggingEventsDefaultDisabled",!1)&&tra===g.ux&&(d=null);if(g.T("web_all_payloads_via_jspb")&&Qy&&Ry)if(c=Qy[a])if((b=c(b))&&Ry[a])Ry[a](b);else iu(new g.Rv("Unable to call logFn for payload",a));else iu(new g.Rv("Unable to translate payload to JSPB",a));else g.T("web_all_payloads_via_jspb")&&iu(new g.Rv("Logs should be translated to JSPB but are sent as JSON instead",a)),py(a,b,d,c)}else if(d=
ura,g.Q("ytLoggingEventsDefaultDisabled",!1)&&ura==g.ux&&(d=null),g.T("web_all_payloads_via_jspb")&&Sy&&Ty)if(c=Sy[a])if((b=c(b))&&Ty[a])Ty[a](b);else iu(new g.Rv("Unable to call logFn for payload",a));else iu(new g.Rv("Unable to translate payload to JSPB",a));else py(a,b,d,c)};
Uy=function(){if(g.T("migrate_events_to_ts"))a:{if(g.T("web_fp_via_jspb")&&(qy(!0),!g.T("web_fp_via_jspb_and_json")))break a;qy()}else{if(g.T("web_fp_via_jspb")&&(qy(!0),!g.T("web_fp_via_jspb_and_json")))return;qy()}};
wra=function(){var a=void 0===a?window.location.href:a;if(g.T("kevlar_disable_theme_param"))return null;mi(g.pi(5,a));try{var b=g.nu(a).theme;return vra.get(b)||null}catch(c){}return null};
yra=function(a,b,c){a&&(a.dataset?a.dataset[xra(b)]=String(c):a.setAttribute("data-"+b,c))};
zra=function(a){return a?a.dataset?a.dataset[xra("loaded")]:a.getAttribute("data-loaded"):null};
xra=function(a){return Ara[a]||(Ara[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Vy=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()};
Yy=function(a){var b;g.Wy()?Xy()==a&&(b=document):b=a;return b&&(a=xx(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Zy=function(a){return g.Ub(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Bra=function(){var a=document;return g.Ub(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.Wy=function(){return!!xx(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Xy=function(a){a=void 0===a?!1:a;var b=xx(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
$y=function(a){g.K.call(this);this.I=[];this.Ya=a||this};
az=function(a,b,c,d){for(var e=0;e<c.length;e++)a.P(b,c[e],d)};
g.bz=function(a,b){for(;a.I.length;){var c=a.I.pop(),d=void 0;b&&Cra()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.cz=function(a){a=void 0===a?!1:a;g.K.call(this);this.pg=new g.Co(a);g.M(this,this.pg)};
g.dz=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
ez=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.gz=function(a,b,c,d){g.cz.call(this);this.j=!!b;this.I=a;this.V=c||a;this.N=!!d;this.C=new $y(this);g.M(this,this.C);this.D=this.J=null;this.B=this.u=!1;b&&(g.kf&&a.setAttribute("draggable","true"),a.style.touchAction="none");fz(this)};
hz=function(a,b,c){a.C.P(a.V,b,c,void 0,!a.j)};
iz=function(a){g.bz(a.C,!a.j)};
fz=function(a){a.D=null;a.J=null;hz(a,jz("over"),a.vQ);hz(a,"touchstart",a.kL);a.j&&hz(a,jz("down"),a.f_)};
Dra=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.J)return d}return null};
jz=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
kz=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Gf(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Gf(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||{}};
Era=function(a){a instanceof kz||(a=new kz(a));return a};
Fra=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Gra=function(){this.rp=[];this.Bo=[]};
mz=function(){if(!lz){var a=lz=new Gra;a.Bo.length=0;a.rp.length=0;Hra(a,Ira)}return lz};
Hra=function(a,b){b.Bo&&a.Bo.push.apply(a.Bo,b.Bo);b.rp&&a.rp.push.apply(a.rp,b.rp)};
Jra=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=nz(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=nz(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=nz(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)};
nz=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};
Kra=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=oz(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Jra(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?oz(e+".ve",f,h,l):0;d+=h;d+=oz(e,a[e],b,c);if(500<d)break}}else c[b]=pz(a),d+=c[b].length;else c[b]=pz(a),d+=c[b].length;return d};
oz=function(a,b,c,d){c+="."+a;a=pz(b);d[c]=a;return c.length+a.length};
pz=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+")"}};
Lv=function(a){g.qz(a)};
g.rz=function(a){g.qz(a,"WARNING")};
g.qz=function(a,b){var c=void 0===c?{}:c;c.name=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Q("INNERTUBE_CONTEXT_CLIENT_VERSION");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.T("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<=Lra)){var h=Mra,l=uca(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 v=l.lineNumber||"Not available",w=l.fileName||"Not available",y=p,A=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var B=0;B<a.args.length&&!(A=Kra(a.args[B],"params."+B,d,A),500<=A);B++);else if(a.hasOwnProperty("params")&&
a.params){var E=a.params;if("object"===typeof a.params)for(var G in E){if(E[G]){var H="params."+G,I=pz(E[G]);d[H]=I;A+=H.length+I.length;if(500<A)break}}else d.params=pz(E)}if(h.length)for(var O=0;O<h.length&&!(A=Kra(h[O],"params.context."+O,d,A),500<=A);O++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var L={message:m,name:n,lineNumber:v,fileName:w,stack:y,params:d,sampleWeight:1},P=Number(a.columnNumber);isNaN(P)||(L.lineNumber=L.lineNumber+":"+P);if("IGNORED"===
a.level)var S=0;else a:{for(var ca=mz(),R=g.r(ca.Bo),na=R.next();!na.done;na=R.next()){var sa=na.value;if(L.message&&L.message.match(sa.zz)){S=sa.weight;break a}}for(var Aa=g.r(ca.rp),wa=Aa.next();!wa.done;wa=Aa.next()){var ta=wa.value;if(ta.callback(L)){S=ta.weight;break a}}S=1}L.sampleWeight=S;for(var Ma=g.r(Nra),Ka=Ma.next();!Ka.done;Ka=Ma.next()){var qa=Ka.value;if(qa.ID[L.name])for(var nb=g.r(qa.ID[L.name]),Sb=nb.next();!Sb.done;Sb=nb.next()){var Ua=Sb.value,$a=L.message.match(Ua.Vh);if($a){L.params["params.error.original"]=
$a[0];for(var bc=Ua.groups,Sa={},ab=0;ab<bc.length;ab++)Sa[bc[ab]]=$a[ab+1],L.params["params.error."+bc[ab]]=$a[ab+1];L.message=qa.ZI(Sa);break}}}L.params||(L.params={});var tb=mz();L.params["params.errorServiceSignature"]="msg="+tb.Bo.length+"&cb="+tb.rp.length;L.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(L.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.fg("sample").constructor!==dg&&(L.params["params.fconst"]=
"true");window.yterr&&"function"===typeof window.yterr&&window.yterr(L);if(0!==L.sampleWeight&&!Ora.has(L.message)){if("ERROR"===e){sz.X("handleError",L);if(g.T("record_app_crashed_web")&&0===Pra&&1===L.sampleWeight)if(Pra++,g.T("errors_via_jspb")){var fc=new Gr;g.D(fc,1,1);if(!g.T("report_client_error_with_app_crash_ks")){var Tb=new pr;g.D(Tb,1,L.message);var Lc=new qr;F(Lc,pr,3,Tb);var nc=new rr;F(nc,qr,5,Lc);var bd=new Fr;F(bd,rr,9,nc);F(fc,Fr,4,bd)}var cd=new Wt;Dd(cd,Gr,20,ty,fc);sy(cd)}else{var ob=
{appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.T("report_client_error_with_app_crash_ks")||(ob.systemHealth={crashData:{clientError:{logMessage:{message:L.message}}}});g.Mv("appCrashed",ob)}Qra++}else"WARNING"===e&&sz.X("handleWarning",L);if(g.T("kevlar_gel_error_routing"))a:{var Pb=e;if(g.T("errors_via_jspb")){if(Rra())var Hb=void 0;else{var gc=new mr;g.D(gc,1,L.stack);L.fileName&&g.D(gc,4,L.fileName);var Kb=L.lineNumber&&L.lineNumber.split?L.lineNumber.split(":"):[];0!==Kb.length&&(1!==Kb.length||isNaN(Number(Kb[0]))?
2!==Kb.length||isNaN(Number(Kb[0]))||isNaN(Number(Kb[1]))||(g.D(gc,2,Number(Kb[0])),g.D(gc,3,Number(Kb[1]))):g.D(gc,2,Number(Kb[0])));var hc=new pr;g.D(hc,1,L.message);g.D(hc,3,L.name);g.D(hc,6,L.sampleWeight);"ERROR"===Pb?g.D(hc,2,2):"WARNING"===Pb?g.D(hc,2,1):g.D(hc,2,0);var Ga=new or;g.D(Ga,1,!0);Dd(Ga,mr,3,wy,gc);var Ia=new jr;g.D(Ia,3,window.location.href);for(var Sd=g.Q("FEXP_EXPERIMENTS",[]),Ja=0;Ja<Sd.length;Ja++)g.xd(Ia,5,Sd[Ja]);var Mc=g.Q("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!bu("web_disable_gel_stp_ecatcher_killswitch")&&
Mc)for(var vf=g.r(Object.keys(Mc)),ie=vf.next();!ie.done;ie=vf.next()){var je=ie.value,ke=new kr;g.D(ke,1,je);ke.setValue(String(Mc[je]));Jd(Ia,4,kr,ke)}var Td=L.params;if(Td){var Ce=g.r(Object.keys(Td));for(ie=Ce.next();!ie.done;ie=Ce.next()){var pe=ie.value,td=new kr;g.D(td,1,"client."+pe);td.setValue(String(Td[pe]));Jd(Ia,4,kr,td)}}var yb=g.Q("SERVER_NAME"),pb=g.Q("SERVER_VERSION");if(yb&&pb){var rc=new kr;g.D(rc,1,"server.name");rc.setValue(yb);Jd(Ia,4,kr,rc);var id=new kr;g.D(id,1,"server.version");
id.setValue(pb);Jd(Ia,4,kr,id)}var le=new qr;F(le,jr,1,Ia);F(le,or,2,Ga);F(le,pr,3,hc);Hb=le}var Pe=Hb;if(!Pe)break a;var Fc=new Wt;Dd(Fc,qr,163,ty,Pe);sy(Fc)}else{if(Rra())var Ud=void 0;else{var Ad={stackTrace:L.stack};L.fileName&&(Ad.filename=L.fileName);var Vd=L.lineNumber&&L.lineNumber.split?L.lineNumber.split(":"):[];0!==Vd.length&&(1!==Vd.length||isNaN(Number(Vd[0]))?2!==Vd.length||isNaN(Number(Vd[0]))||isNaN(Number(Vd[1]))||(Ad.lineNumber=Number(Vd[0]),Ad.columnNumber=Number(Vd[1])):Ad.lineNumber=
Number(Vd[0]));var rg={level:"ERROR_LEVEL_UNKNOWN",message:L.message,errorClassName:L.name,sampleWeight:L.sampleWeight};"ERROR"===Pb?rg.level="ERROR_LEVEL_ERROR":"WARNING"===Pb&&(rg.level="ERROR_LEVEL_WARNNING");var Wd={isObfuscated:!0,browserStackInfo:Ad},Pc={pageUrl:window.location.href,kvPairs:[]};g.Q("FEXP_EXPERIMENTS")&&(Pc.experimentIds=g.Q("FEXP_EXPERIMENTS"));var qe=g.Q("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!bu("web_disable_gel_stp_ecatcher_killswitch")&&qe)for(var Qc=g.r(Object.keys(qe)),
De=Qc.next();!De.done;De=Qc.next()){var Xd=De.value;Pc.kvPairs.push({key:Xd,value:String(qe[Xd])})}var ef=L.params;if(ef){var ih=g.r(Object.keys(ef));for(De=ih.next();!De.done;De=ih.next()){var Ig=De.value;Pc.kvPairs.push({key:"client."+Ig,value:String(ef[Ig])})}}var ff=g.Q("SERVER_NAME"),oc=g.Q("SERVER_VERSION");ff&&oc&&(Pc.kvPairs.push({key:"server.name",value:ff}),Pc.kvPairs.push({key:"server.version",value:oc}));Ud={errorMetadata:Pc,stackTrace:Wd,logMessage:rg}}var Yd=Ud;if(!Yd)break a;g.Mv("clientError",
Yd)}("ERROR"===Pb||g.T("errors_flush_gel_always_killswitch"))&&Uy()}if(!g.T("suppress_error_204_logging")){var Gd=L.params||{},Zd={urlParams:{a:"logerror",t:"jserror",type:L.name,msg:L.message.substr(0,250),line:L.lineNumber,level:e,"client.name":Gd.name},postParams:{url:g.Q("PAGE_NAME",window.location.href),file:L.fileName},method:"POST"};Gd.version&&(Zd["client.version"]=Gd.version);if(Zd.postParams){L.stack&&(Zd.postParams.stack=L.stack);for(var Jg=g.r(Object.keys(Gd)),pc=Jg.next();!pc.done;pc=
Jg.next()){var zc=pc.value;Zd.postParams["client."+zc]=Gd[zc]}var Rc=g.Q("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(Rc)for(var Mb=g.r(Object.keys(Rc)),Hd=Mb.next();!Hd.done;Hd=Mb.next()){var Kg=Hd.value;Zd.postParams[Kg]=Rc[Kg]}var gf=g.Q("SERVER_NAME"),re=g.Q("SERVER_VERSION");gf&&re&&(Zd.postParams["server.name"]=gf,Zd.postParams["server.version"]=re)}g.Cu(g.Q("ECATCHER_REPORT_HOST","")+"/error_204",Zd)}try{Ora.add(L.message)}catch(Lg){}Lra++}}}};
Rra=function(){for(var a=g.r(Sra),b=a.next();!b.done;b=a.next())if(Ou(b.value.toLowerCase()))return!0;return!1};
Tra=function(a){var b=g.za.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.t(b))};
tz=function(a){this.j=a};
g.uz=function(a){return new tz({trackingParams:a})};
cua=function(a){var b=Ura++;return new tz({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
wz=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(vz)for(c=1,d=0;d<vz.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^vz.charCodeAt(d),c++;return b};
g.xz=function(a){a=wz(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.dua=function(){return g.Pk(wz(16),function(a){return(a&15).toString(16)}).join("")};
yz=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
zz=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
eua=function(a){return g.Q(zz(void 0===a?0:a))};
g.Az=function(a){return(a=eua(void 0===a?0:a))?new tz({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
nua=function(){var a=g.Q("csn-to-ctt-auth-info");a||(a={},au("csn-to-ctt-auth-info",a));return a};
g.Bz=function(a){a=g.Q(yz(void 0===a?0:a));if(!a&&!g.Q("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
oua=function(a,b,c){var d=nua();(c=g.Bz(c))&&delete d[c];b&&(d[a]=b)};
Cz=function(a){return nua()[a]};
qua=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.Q(yz(c))||b!==g.Q(zz(c)))if(oua(a,d,c),au(yz(c),a),au(zz(c),b),b=function(){setTimeout(function(){if(a)if(g.T("web_time_via_jspb")){var e=new at;g.D(e,1,pua);g.D(e,2,a);g.T("use_default_heartbeat_client")?hpa(e):hpa(e,void 0,g.ux)}else e={clientDocumentNonce:pua,clientScreenNonce:a},g.T("use_default_heartbeat_client")?g.Mv("foregroundHeartbeatScreenAssociated",e):py("foregroundHeartbeatScreenAssociated",e,g.ux)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
Dz=function(a){Hw.call(this,1,arguments);this.csn=a};
uua=function(a,b,c,d,e,f,h){function l(){g.rz(new g.Rv("newScreen() parent element does not have a VE - rootVe",b))}
var m=rua();f=new tz({veType:b,youtubeData:f,jspbYoutubeData:void 0});e={cttAuthInfo:e,vk:m};if(g.T("il_via_jspb")){var n=new nt;n.Xf(m);Jla(n,f.getAsJspb());c&&c.visualElement?(f=new ot,c.clientScreenNonce&&g.D(f,2,c.clientScreenNonce),Kla(f,c.visualElement.getAsJspb()),h&&g.D(f,4,sua[h]),F(n,ot,5,f)):c&&l();d&&g.D(n,3,d);epa(n,e,a)}else f={csn:m,pageVe:f.getAsJson()},c&&c.visualElement?(f.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(f.implicitGesture.gestureType=
h)):c&&l(),d&&(f.cloneCsn=d),a?py("screenCreated",f,a,e):g.Mv("screenCreated",f,e);Kw(tua,new Dz(m));return m};
g.Fz=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:Cz(b),
vk:b};d=g.r(d);for(var h=d.next();!h.done;h=d.next())h=h.value.getAsJson(),(g.Cf(h)||!h.trackingParams&&!h.veType)&&g.rz(Error("Child VE logged with no data"));if(g.T("il_via_jspb")){var l=new pt;l.Xf(b);Mla(l,c.getAsJspb());g.Pk(e,function(m){m=m.getAsJspb();Jd(l,3,as,m)});
"UNDEFINED_CSN"==b?Ez("visualElementAttached",l,f):gpa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Pk(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"==b?Ez("visualElementAttached",c,f):a?py("visualElementAttached",c,a,f):g.Mv("visualElementAttached",c,f)};
g.Gz=function(a,b,c){var d={cttAuthInfo:Cz(a),vk:a};if(g.T("il_via_jspb")){var e=new tt;e.Xf(a);b=b.getAsJspb();F(e,as,2,b);g.D(e,4,1);c&&F(e,mt,3);"UNDEFINED_CSN"==a?Ez("visualElementShown",e,d):uy(e,d)}else e={csn:a,ve:b.getAsJson(),eventType:1},c&&(e.clientData=c),"UNDEFINED_CSN"==a?Ez("visualElementShown",e,d):g.Mv("visualElementShown",e,d)};
vua=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:Cz(b),vk:b,yO:d};g.T("il_via_jspb")?(e=new rt,e.Xf(b),c=c.getAsJspb(),F(e,as,2,c),g.D(e,4,d?16:8),"UNDEFINED_CSN"==b?Ez("visualElementHidden",e,f):bpa(e,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"==b?Ez("visualElementHidden",d,f):a?py("visualElementHidden",d,a,f):g.Mv("visualElementHidden",d,f))};
wua=function(a,b,c,d){var e={cttAuthInfo:Cz(b),vk:b};if(g.T("il_via_jspb")){var f=new qt;f.Xf(b);c=c.getAsJspb();F(f,as,2,c);g.D(f,4,sua.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK);d&&F(f,mt,3);"UNDEFINED_CSN"==b?Ez("visualElementGestured",f,e):cpa(f,e,a)}else f={csn:b,ve:c.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d&&(f.clientData=d),"UNDEFINED_CSN"==b?Ez("visualElementGestured",f,e):a?py("visualElementGestured",f,a,e):g.Mv("visualElementGestured",f,e)};
xua=function(){return g.Cc(Math.random()+"")};
Ez=function(a,b,c){Hz.push({payloadName:a,payload:b,options:c});Iz||(Iz=Ow(tua,yua))};
yua=function(a){if(Hz){for(var b=g.r(Hz),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(g.T("il_via_jspb"))switch(c.payload.Xf(a.csn),c.payloadName){case "screenCreated":epa(c.payload,c.options);break;case "visualElementAttached":gpa(c.payload,c.options);break;case "visualElementShown":uy(c.payload,c.options);break;case "visualElementHidden":bpa(c.payload,c.options);break;case "visualElementGestured":cpa(c.payload,c.options);break;case "visualElementStateChanged":dpa(c.payload,c.options);
break;default:g.rz(new g.Rv("flushQueue unable to map payloadName to JSPB setter"))}else c.payload.csn=a.csn,py(c.payloadName,c.payload,null,c.options);Hz.length=0}Iz=0};
g.Jz=function(a,b){g.tc(b,function(c){var d={cttAuthInfo:Cz(a),vk:a};if(g.T("il_via_jspb")){var e=new tt;e.Xf(a);c=c.getAsJspb();F(e,as,2,c);g.D(e,4,4);"UNDEFINED_CSN"==a?Ez("visualElementShown",e,d):uy(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"==a?Ez("visualElementShown",e,d):g.Mv("visualElementShown",e,d)})};
g.Kz=function(a,b){g.tc(b,function(c){vua(void 0,a,c)})};
g.Lz=function(a,b,c){wua(void 0,a,b,c)};
Mz=function(){this.u=new Set;this.j=new Set;this.B=new Map};
g.Pz=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Nz)():Oz())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Qz=function(a){var b=Oz(),c=(0,g.Nz)();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};
zua=function(){var a=(0,g.Nz)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.Rz=function(a){try{var b=Oz(),c=(0,g.Nz)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Sz=function(){return g.Qz("yt-remote-session-screen-id")};
g.Tz=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(Aua,""),c=c.replace(Bua,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Cua(a,b,c)};
Cua=function(a,b,c){c=void 0===c?null:c;var d=Dua(a),e=document.getElementById(d),f=e&&zra(e),h=e&&!f;f?b&&b():(b&&(f=g.Ux(d,b),b=""+g.Ra(b),Eua[b]=f),h||(e=Fua(a,d,function(){zra(e)||(yra(e,"loaded","true"),g.Wx(d),g.xu(g.Va(Hoa,d),0))},c)))};
Fua=function(a,b,c,d){d=void 0===d?null:d;var e=g.mh("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.ej(e,g.ig(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Dua=function(a){var b=document.createElement("a");g.zg(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xg(a)};
Wz=function(a){var b=g.za.apply(1,arguments);if(!Uz(a)||b.some(function(d){return!Uz(d)}))throw Error("Only objects may be merged.");
b=g.r(b);for(var c=b.next();!c.done;c=b.next())Vz(a,c.value);return a};
Vz=function(a,b){for(var c in b)if(Uz(b[c])){if(c in a&&!Uz(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Vz(a[c],b[c])}else if(Xz(b[c])){if(c in a&&!Xz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Gua(a[c],b[c])}else a[c]=b[c];return a};
Gua=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Uz(c)?a.push(Vz({},c)):Xz(c)?a.push(Gua([],c)):a.push(c);return a};
Uz=function(a){return"object"===typeof a&&!Array.isArray(a)};
Xz=function(a){return"object"===typeof a&&Array.isArray(a)};
Yz=function(a,b,c,d,e,f){g.K.call(this);this.Qb=a;this.Ab=b;this.Hd=c;this.Qa=d;this.u=e;this.j=f};
Jua=function(a,b,c){c.Rw?(Zz(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Hua(a.u,b)):Iua(a.j,c.In,b.slotId,c.ssdaiAdsConfig)};
Lua=function(a,b,c,d,e){var f=a.Qa.get().Gf(1);Zz(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Kua(a.Hd.get(),c,d,f.clientPlaybackNonce,f.iO,f.daiEnabled,f,e)},b)};
aA=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(!$z(a.Aa,c.value))return!1;return!0};
bA=function(a,b){this.Uo=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
dA=function(a){(void 0!==Fma()?Jh(Error("Biscotti id is disabled")):Eu("//googleads.g.doubleclick.net/pagead/id",ov)).then(function(){cA(!1,a)},function(b){"Biscotti id is disabled"===b.message?cA(!1,a.concat(" known failure")):(g.rz("Failed fetching bid when "+a),cA(!0,a))})};
cA=function(a,b){g.Mv("biscottiBasedDetection",{detected:a,source:b})};
Nua=function(a){Mua=void 0===a?!1:a};
eA=function(a,b,c,d,e){d=void 0===d?{}:d;Mua&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Rv(a);if(a.args)for(var f=g.r(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,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.rz(a)}};
fA=function(a,b,c,d,e,f,h){g.K.call(this);this.Qb=a;this.Hd=b;this.mG=c;this.Da=d;this.j=e;this.Qa=f;this.Ba=h};
gA=function(){this.u=new Map;this.j=new Map;this.B=new Map};
hA=function(a,b){if(g.Q("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.xz(16)};
iA=function(a,b,c){if(g.Q("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.xz(16)};
jA=function(a,b){if(g.Q("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.xz(16)};
kA=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
Oua=function(a,b,c,d){this.B=a;this.jf=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
lA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.rz(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
mA=function(a,b){return b&&b.test(a)?!0:!1};
nA=function(a){return(a=Pua&&Pua.exec(a))?a[0]:""};
oA=function(a){var b=void 0===b?!1:b;return lA(mA(a,Qua),a,b,"Trusted Stream URL")};
g.pA=function(a){var b=void 0===b?!1:b;return lA(mA(a,Rua),a,b,"Trusted Image URL")};
Tua=function(a){var b=void 0===b?!1:b;return lA(mA(a,Sua),a,b,"Trusted Promoted Video Domain URL")};
Vua=function(a){var b=void 0===b?!1:b;return lA(mA(a,Uua),a,b,"Drm Licensor URL")};
Xua=function(a,b){b=void 0===b?!1:b;return lA(mA(a,Wua),a,b,"Captions URL")};
Yua=function(a){a=new g.Cj(a);g.Dj(a,document.location.protocol);g.Ej(a,document.location.hostname);document.location.port&&g.Fj(a,document.location.port);return a.toString()};
qA=function(a){a=new g.Cj(a);g.Dj(a,document.location.protocol);return a.toString()};
g.sA=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Zua++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||rA.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.Od(d.thumbnails,function(e){return g.pA(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
$ua=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
ava=function(a,b){switch(a.style){case rA.CHAPTER_MARKER:return b?8:5;case rA.AD_MARKER:return 6;case rA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.tA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.uA=function(a){return"crn_"+a};
g.vA=function(a){return"crx_"+a};
wA=function(a,b,c,d,e){g.sA.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};
xA=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
bva=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
cva=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new zo(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new zo(Math.max(0,b.B-b.j),0x7ffffffffffff):new zo(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 zo(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.jf;a=1E3*d.startSecs;if(c){if(a<b.u)return new zo(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new zo(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new zo(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
yA=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.zA=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.AA=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=lh("B",null,h||l));d.italics&&(h=lh("I",null,h||l));d.strikethrough&&(h=lh("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=lh("A",null,h||l),g.zg(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||lh("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:lh("SPAN",null,b)};
BA=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.yr=c;this.args=[];b&&this.args.push(b)};
dva=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={dn:new zo(-0x8000000000000,-0x8000000000000),UD:d},null!=c&&(d.yv=new zo(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={dn:new zo(0x7ffffffffffff,0x8000000000000),UD:d},null!=c&&(d.yv=new zo(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||eA("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||eA("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 BA("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={dn:new zo(a,e),UD:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.yv=new zo(a,e)}return d;default:return new BA("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
CA=function(a,b){Hw.call(this,1,arguments);this.timer=b};
eva=function(a,b){Hw.call(this,1,arguments);this.j=a;this.timer=b};
fva=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
gva=function(a){var b=DA(a);if(b.aft)return b.aft;a=g.Q((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};
hva=function(){var a;if(g.T("csi_use_performance_navigation_timing")||g.T("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==EA?void 0:null==(a=EA.getEntriesByType)?void 0:null==(b=a.call(EA,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=FA(e.requestStart),e.responseEnd=FA(e.responseEnd),e.redirectStart=FA(e.redirectStart),e.redirectEnd=FA(e.redirectEnd),e.domainLookupEnd=FA(e.domainLookupEnd),e.connectStart=FA(e.connectStart),e.connectEnd=
FA(e.connectEnd),e.responseStart=FA(e.responseStart),e.secureConnectionStart=FA(e.secureConnectionStart),e.domainLookupStart=FA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=EA.timing}else a=EA.timing;return a};
GA=function(){return(g.T("csi_use_time_origin")||g.T("csi_use_time_origin_tvhtml5"))&&EA.timeOrigin?Math.floor(EA.timeOrigin):EA.timing.navigationStart};
FA=function(a){return Math.round(GA()+a)};
HA=function(a,b){g.Fa("ytglobal.timing"+(b||"")+"ready_",a)};
IA=function(a){return g.Ha("ytcsi."+(a||"")+"data_")||iva(a)};
JA=function(a){a=IA(a);a.info||(a.info={});return a.info};
DA=function(a){a=IA(a);a.tick||(a.tick={});return a.tick};
KA=function(a){a=IA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
LA=function(a){a=KA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
jva=function(a){a=KA(a);a.jspbInfos||(a.jspbInfos=[]);return a.jspbInfos};
kva=function(a){a=jva(a);for(var b=[],c=0;c<a.length;c++)b.push($d(zt,a[c]));return b};
MA=function(a){var b=IA(a).nonce;b||(b=g.xz(16),IA(a).nonce=b);return b};
iva=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b);return b};
nva=function(a){var b=DA(a||""),c=gva(a);c&&!lva&&(Kw(mva,new CA(Math.round(c-b._start),a)),lva=!0)};
ova=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]&&!ova(a[d],b[d]))return!1;return!0};
pva=function(){if(EA.getEntriesByType){var a=EA.getEntriesByType("paint");if(a=g.Ub(a,function(b){return"first-paint"===b.name}))return FA(a.startTime)}a=EA.timing;
return a.k_?Math.max(0,a.k_):0};
NA=function(){var a=g.Ha("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a),g.Fa("ytcsi.reference",{}));return a};
OA=function(a){a=a||"";var b=qva();if(b[a])return b[a];var c=NA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
PA=function(a){a=a||"";var b=qva();b[a]&&delete b[a];var c=NA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
qva=function(){var a=g.Ha("ytcsi.reference");if(a)return a;NA();return g.Ha("ytcsi.reference")};
QA=function(a){return rva[a]||"LATENCY_ACTION_UNKNOWN"};
wva=function(a,b,c){c=KA(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 sva){c=sva[a];g.Wb(tva,c)&&(b=!!b);a in uva&&"string"===typeof b&&(b=uva[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return Wz({},d)}g.Wb(vva,a)||g.rz(new g.Rv("Unknown label logged with GEL CSI",a))};
RA=function(){this.j=0};
SA=function(){RA.j||(RA.j=new RA);return RA.j};
UA=function(a,b){TA[b]=TA[b]||{count:0};var c=TA[b];c.count++;c.time=(0,g.U)();a.j||(a.j=g.Cv(0,function(){var d=(0,g.U)(),e;for(e in TA)TA[e]&&6E4<d-TA[e].time&&delete TA[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Rv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.rz(c)),!0):!1};
VA=function(a){iva(a);xva();a||(g.Q("TIMING_ACTION")&&au("PREVIOUS_ACTION",g.Q("TIMING_ACTION")),au("TIMING_ACTION",""))};
ZA=function(a,b){b=void 0===b?{}:b;WA(a);PA(a);VA(a);IA(a).useGel=!0;OA(a||"").info.actionType=a;b.cttAuthInfo&&(IA(a).cttAuthInfo=b.cttAuthInfo);au(a+"TIMING_ACTION",a);XA("_start",b.startTime,a);b={actionType:QA(a)};var c=g.Bz();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);YA(b,a);HA(!0,a)};
g.$A=function(a,b,c,d){null!==b&&(JA(c)[a]=b,(a=wva(a,b,c))&&YA(a,c,d))};
YA=function(a,b,c){if(!g.T("web_csi_via_jspb")||(void 0===c?0:c))c=OA(b||""),Wz(c.info,a),Wz(LA(b),a),c=MA(b),b=IA(b).cttAuthInfo,SA().info(a,c,b);else{c=new zt;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,V[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,aB[a[e]]);break;case "connectionType":g.D(c,26,bB[a[e]]);break;case "detailedConnectionType":g.D(c,27,cB[a[e]]);break;case "isVisible":g.D(c,6,a[e]);break;case "playerType":g.D(c,7,dB[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,V[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,eB[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,fB[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 "videoOutputFrames":g.D(c,93,a[e]);break;case "isResume":g.D(c,104,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,gB[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,hB[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,iB[a[e]]);break;case "playerRotationType":g.D(c,101,jB[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:yva.includes(f)&&g.gu(new g.Rv("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.gu(Error("Codegen laipb translator failed to set "+f))}}kB(c,b)}};
kB=function(a,b){jva(b).push(Rd(a));OA(b||"").jspbInfo.push(a);var c=MA(b);b=IA(b).cttAuthInfo;SA().jspbInfo(a,c,b)};
XA=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;EA.mark&&(eb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),EA.mark(d))}d=OA(c||"");d.tick[a]=b||(0,g.U)();if(d.callback&&d.callback[a]){d=g.r(d.callback[a]);for(var e=d.next();!e.done;e=d.next())e=e.value,e()}d=KA(c);d.gelTicks&&(d.gelTicks[a]=!0);d=DA(c);e=b||(0,g.U)();d[a]=e;e=MA(c);var f=IA(c).cttAuthInfo;if("_start"===a){var h=SA();UA(h,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.T("web_csi_via_jspb")?(f=new vt,g.D(f,1,e),e=new Wt,Dd(e,vt,6,ty,
f),sy(e,b)):g.Mv("latencyActionBaselined",{clientActionNonce:e},b))}else SA().tick(a,e,b,f);nva(c);return d[a]};
zva=function(a){var b="above_the_fold";EA&&EA.measure&&(eb(b,"measure_")||(b="measure_"+b),a?EA.measure(b,a):EA.measure(b))};
Ava=function(a){var b=JA(a),c=LA(a);a=kva(a);for(var d=0;d<a.length;d++);return!!("ad_at"in b||"ad_at"in c)};
lB=function(a,b){b=DA(b);return a in b};
mB=function(a,b,c){lB("_start",c)&&!lB(a,c)&&XA(a,b,c)};
nB=function(){switch(xoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
WA=function(a){lB("_start",a)&&XA("aa",void 0,a)};
Cva=function(a){var b=hva(),c=GA(),d=g.Q("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.T("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(XA("srt",b.responseStart),1!==a.prerender&&XA("_start",c,void 0));a=pva();0<a&&XA("fpt",a);a=hva();a.isPerformanceNavigationTiming&&YA({performanceNavigationTiming:!0});XA("nreqs",a.requestStart,void 0);XA("nress",a.responseStart,void 0);XA("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(XA("nrs",a.redirectStart,void 0),XA("nre",a.redirectEnd,
void 0));0<a.domainLookupEnd-a.domainLookupStart&&(XA("ndnss",a.domainLookupStart,void 0),XA("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(XA("ntcps",a.connectStart,void 0),XA("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=GA()&&0<a.connectEnd-a.secureConnectionStart&&(XA("nstcps",a.secureConnectionStart,void 0),XA("ntcpe",a.connectEnd,void 0));EA&&"getEntriesByType"in EA&&Bva()};
Dva=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);Bg()&&a.setAttribute("nonce",Bg());return c?(a=EA.getEntriesByName(c))&&a[0]&&(a=a[0],c=GA(),XA("rsf_"+b,c+Math.round(a.fetchStart)),XA("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Eva=function(){var a=[];if(document.querySelector&&EA&&EA.getEntriesByName)for(var b in oB)if(oB.hasOwnProperty(b)){var c=oB[b];Dva(b,c)&&a.push(c)}return a};
Bva=function(){var a=window.location.protocol,b=EA.getEntriesByType("resource");b=g.wm(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=Qk(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(XA("wffs",FA(b.startTime)),XA("wffe",FA(b.responseEnd)))};
qB=function(){return g.yw||g.pB||g.Qu()&&19>xma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
rB=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.sB=function(a,b){this.id=a;this.Ic=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
tB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.vB=function(a,b,c,d){return new tB(g.uB[a]||0,g.uB[b]||0,c,d)};
wB=function(a){var b=g.uB.auto;return a.u===b&&a.j===b};
yB=function(a){return xB[a.j||a.u]||"auto"};
Fva=function(a,b){b=g.uB[b];return a.u<=b&&(!a.j||a.j>=b)};
zB=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.Ic&&!a.has(c.Ic.id)){var d=new g.sB(c.id,c.Ic);a.add(c.Ic.id);this.audioTracks.push(d)}}};
Iva=function(a,b,c,d,e){var f={},h=new Set,l={};if(AB(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(d=c.j[m],l[d.info.j]=[d.info]);return l}if(a.V){var n={};for(q in c.j)if(c.j.hasOwnProperty(q)){var p=c.j[q].info;m=p.j;n[m]=n[m]||[];n[m].push(p)}var q=g.r(Object.keys(n));for(m=q.next();!m.done;m=q.next())BB(a,n[m.value],[]);q={};p=g.r(Object.keys(n));for(m=p.next();!m.done;m=p.next()){m=m.value;for(var v=g.r(n[m]),w=v.next();!w.done;w=v.next()){w=w.value;var y=w.itag,A=void 0,B=m+"_"+((null==(A=w.video)?
void 0:A.fps)||0);q.hasOwnProperty(B)?!0===q[B]?l[m].push(w):f[y]=q[B]:(A=CB(a,w,b,c.isLive,!1,h),!0!==A?(f[y]=A,"disablevp9hfr"===A&&(q[B]="disablevp9hfr")):(l[m]=l[m]||[],l[m].push(w),q[B]=!0))}}}else{q=!1;if(a.Yb)for(p in c.j)if(c.j.hasOwnProperty(p)&&(m=c.j[p].info,DB(m)&&m.Td&&m.video&&1440<=m.video.j&&32<m.video.fps)){q=!0;d({fmtflt:"disablevp9Hfr"});break}for(n in c.j)c.j.hasOwnProperty(n)&&(p=c.j[n],m=p.info.itag,v=CB(a,p.info,b,c.isLive,q,h),!0!==v?f[m]=v:(l[p.info.j]=l[p.info.j]||[],l[p.info.j].push(p.info)))}e&&
d({bfflt:EB(l)});for(var E in l)l.hasOwnProperty(E)&&(c=E,l[c]&&l[c][0].isVideo()&&(l[c]=l[c],l[c]=Gva(a,l[c],f),l[c]=Hva(l[c],f)));e&&d(f);a=g.r(h.values());for(c=a.next();!c.done;c=a.next())(c=b.u.get(c.value))&&--c.jS;b=g.pf(l,function(G){return!!G.length});
e&&d({aftflt:EB(l)});return b};
CB=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?new Set:f;if(""===b.j)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.gb)return"blk2khfr";if(a.J&&b.video&&b.video.j>a.J)return"max"+a.J;if(a.N&&b.video&&b.video.j<a.N)return"min"+a.N;if(a.Cb&&"h"===b.j&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.j&&!c.D)return"enchdr";if((void 0===d?0:d)&&Jva(b)&&!a.Ra)return"blk51live";if(Kva(b)&&!a.La)return"blk51ugc";if((d=c.u.get(b.j))&&0<d.jS)return f.add(b.j),"byerr";var h;if(null==(h=
b.video)?0:32<h.fps){if(!c.N||!c.Y&&!FB(c,GB.FRAMERATE))return"capHfr";if(a.ub&&4320<=b.video.j)return"blk8khfr";if(DB(b)&&(e||a.V&&a.Yb&&b.Td&&1440<=b.video.j))return"disablevp9hfr"}a=Lva(c,b);return!0!==a?a:!0};
Mva=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.I&&!(!a.meac3&&!a.MEAC3);return b.ra&&!(!a.m&&!a.M)||c||d};
HB=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
EB=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(HB(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
Nva=function(a,b,c,d,e){var f={},h={};g.of(b,function(l,m){l=l.filter(function(n){var p=n.itag;if(!n.Td)return h[p]="noenc",!1;if("("===n.j||"(h"===n.j){if(a.B&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";(q=!!n.Td[c.flavor]&&!!c.j[q])||(h[p]=n.Td[c.flavor]?"unspt":"noflv");return q}if(!FB(a,GB.CRYPTOBLOCKFORMAT)&&!a.ra||a.W)return h[p]=a.W?"disvp":"vpsub",!1}return c&&n.Td[c.flavor]&&c.j[n.mimeType]?!0:(h[p]=c?n.Td[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(h).length&&e(h);return f};
Rva=function(a,b,c,d,e){function f(w){return!!l[w]}
var h=a.B||!!d,l=Iva(a,b,c,e,h);IB(c)&&(l=Nva(b,l,d,h,e),h&&e({enflt:EB(l)}));a.Eb=Mva(l,a);if(AB(c))return e=g.Ub(Object.values(l),function(w){return!!w.length&&!!w[0].audio}),a=g.Ub(Object.values(l),function(w){return!!w.length&&!!w[0].video}),e&&a||Hu(),Iu(new zB(a,e));
b=Ova(a);h&&e({audioPrefOrder:b.join("_")});b=g.Ub(b,f);if(!b)return h&&e({noaudio:1}),Hu();b=l[b];l["9"]&&l.h&&c.nf&&!a.Ua&&(h&&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=[],v=[];if(a.va&&!a.j)for(v=Pva(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],h&&e({newhybpref:v.join(".")}),n=g.r(v),p=n.next();!p.done;p=n.next())q=
q.concat(l[p.value]).filter(function(w){return w});
else 0<a.W&&p&&n&&(v=[m,d],q=n.concat(p).filter(function(w){return w}));
if(q.length&&!a.j){BB(a,q,b,v);if(h){a=[];h=g.r(q);for(c=h.next();!c.done;c=h.next())a.push(c.value.itag);e({hbdfmt:a.join(".")})}return Iu(new zB(q,b))}q=Qva(a);q=g.Ub(q,f);if(!q){if(l[m])return e=l[m],BB(a,e,b),Iu(new zB(e,b));h&&e({novideo:1});return Hu()}a.zc&&("1"===q||"1h"===q)&&l[d]&&(m=JB(l[q]),JB(l[d])>m&&(q=d));"9"===q&&l.h&&(d=JB(l["9"]),JB(l.h)>1.5*d&&(q="h"));a.Kb&&c.isLive&&"("===q&&l.H&&1440>JB(l["("])&&(q="H");h&&e({vfmly:HB(q)});c=l[q];if(!c.length)return h&&e({novfmly:HB(q)}),Hu();
BB(a,c,b);return Iu(new zB(c,b))};
BB=function(a,b,c,d){d=void 0===d?[]:d;g.mc(b,function(e,f){var h=f.Pb-e.Pb;if(a.V&&!e.isVideo())return h;var l=f.video.height*f.video.width-e.video.height*e.video.width;!l&&d&&0<d.length&&(e=d.indexOf(e.j)+1,f=d.indexOf(f.j)+1,l=0===e||0===f?f||-1:e-f);l||(l=h);return l});
a.V||g.mc(c,function(e,f){return f.Pb-e.Pb})};
Hva=function(a,b){var c=Qk(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
Su()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
Gva=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Lc)return!0;c[d.itag]="maxquality";return!1})};
JB=function(a){return Qk(a,function(b,c){return Math.max(b,c.video.j)},0)};
Sva=function(a){a=void 0===a?{}:a;var b=void 0===a.Mm?!1:a.Mm,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.WK?!1:a.WK;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&qB()?3:2:c&&d?-1:1};
Tva=function(a){return Sva({hasSubfragmentedFmp4:a.C.Xi,Mm:a.C.Xi,defraggedFromSubfragments:a.On,isManifestless:!0,WK:a.ra})};
Uva=function(a){a=a.split("");KB.RL(a,23);KB.dy(a,60);KB.Nt(a,2);KB.RL(a,63);KB.Nt(a,1);KB.RL(a,37);KB.RL(a,6);KB.dy(a,77);return a.join("")};
g.LB=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
NB=function(a){MB(a);return a.C};
OB=function(a){return a.u?eb(a.u,"local"):"local"===a.B};
Vva=function(a){MB(a);return g.rf(a.j,function(b){return null!==b})};
PB=function(a){MB(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
QB=function(a,b){b=void 0===b?!1:b;MB(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.pe();c=new g.Cj(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.Ej(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.LB(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.Ej(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Ej(c,"www.youtube.com"),d=c.toString()):d=Yua(d);c=new g.LB(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
MB=function(a){if(a.u){if(!oA(a.u)&&!a.u.startsWith("local"))throw new g.Rv("Untrusted URL",a.u);var b=g.Nj(a.u);a.B=b.C;a.C=b.j+(null!=b.B?":"+b.B:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=Wva(c);
Object.assign(a.j,Xva(b.u.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=Yva[0](b),a.set("n",b),Yva.length||Wka(""))}};
Zva=function(a){MB(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Vva(a)){var c=[];g.of(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Wva=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&$va(c,a[b],a[b+1]);return c};
Xva=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?$va(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
$va=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};
RB=function(a,b,c,d,e,f,h,l,m){this.Ia=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.jf=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.jf=m||null};
SB=function(){this.segments=[];this.j=null;this.u=!0};
awa=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Rb(a.segments,function(d){return d.Ia>=b},a);
0<c&&a.segments.splice(0,c)}};
TB=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)})};
bwa=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};
UB=function(a,b){b=g.r(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
VB=function(a,b,c){return a.split(b).So.split(c).IC};
WB=function(a){a.C=void 0;a.u=0;a.B=0};
XB=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
cwa=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
dwa=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(!XB(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,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);WB(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
YB=function(a,b,c){a=dwa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
ewa=function(a){a=YB(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};
aC=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
fwa=function(a,b){a.focus(b);return XB(a,b,4)?cwa(a).getUint32(b-a.B):256*(256*(256*aC(a,b)+aC(a,b+1))+aC(a,b+2))+aC(a,b+3)};
bC=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
cC=function(a){return String.fromCharCode.apply(null,a)};
eC=function(a){return dC?dC.decode(a):cC(a)};
g.gC=function(a){if(!a.length)return"";try{if(dC)return dC.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}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)fC[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;fC[e++]=55296|f>>10;f=56320|f&1023}fC[e++]=f}}f=String.fromCharCode.apply(String,fC);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
iC=function(a,b){var c;if(null==(c=hC)?0:c.encodeInto)return b=hC.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};
gwa=function(a){if(hC)return hC.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=iC(a,b);b.length<c&&(b=new Uint8Array(c),c=iC(a,b));b.length>c&&(b=b.subarray(0,c));return b};
jC=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};
kC=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
lC=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
mC=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
nC=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
oC=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};
pC=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 eC(b)};
hwa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
qC=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};
sC=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.j=rC(this,"Sequence-Number");this.I=rC(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=rC(this,"Ingestion-Walltime-Us")/1E6;this.u=(rC(this,"First-Frame-Time-Us")+rC(this,"First-Frame-Uncertainty-Us"))/1E6;this.zk=rC(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=rC(this,"Crypto-Period-Index");
this.B=rC(this,"Crypto-Period-Seconds")};
jwa=function(a){return a.data["Cuepoint-Type"]?new kA(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",iwa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
kwa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
rC=function(a,b){return Number(a.data[b])||0};
tC=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.lwa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.mwa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
nwa=function(a,b){this.j=a;this.duration=b};
owa=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)};
uC=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};
pwa=function(a,b){var c=g.vC(a,0,1952868452);a=g.vC(a,0,1953658222);if(c&&a){c.skip(1);var d=kC(c)<<16|lC(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=nC(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=kC(a)<<16|lC(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=nC(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=nC(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
xC=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.vC(a,0,1836476516))?g.wC(a):NaN};
qwa=function(a){var b=g.vC(a,0,1937011556);if(!b)return null;b=yC(a,b.dataOffset+8,1635148593)||yC(a,b.dataOffset+8,1635135537);if(!b)return null;var c=yC(a,b.dataOffset+78,1936995172),d=yC(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),kC(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=yC(a,d.dataOffset,1886547818)){var h=yC(a,d.dataOffset,1886546020),l=yC(a,d.dataOffset,2037673328);if(!l&&(l=yC(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=mC(h)/65536,f=mC(h)/65536,e=mC(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new owa(b,c,f,e,a)}return null};
yC=function(a,b,c){for(;zC(a,b);){var d=AC(a,b);if(d.type===c)return d;b+=d.size}return null};
g.vC=function(a,b,c){for(;zC(a,b);){var d=AC(a,b);if(d.type===c)return d;b=BC(d.type)?b+8:b+d.size}return null};
g.CC=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
AC=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new jC(a,b,c,d)};
g.wC=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
rwa=function(a){a=new jC(a.data,a.offset,a.size,a.type,a.u);var b=kC(a);a.skip(7);var c=nC(a);if(0===b){b=nC(a);var d=nC(a)}else b=oC(a),d=oC(a);a.skip(2);for(var e=lC(a),f=[],h=[],l=0;l<e;l++){var m=nC(a);f.push(m);h.push(nC(a));a.skip(4)}return{cL:c,VX:b,pY:d,w3:f,XK:h}};
zC=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||1635135537===c||1635135811===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
BC=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
swa=function(a){a.skip(4);return{T3:pC(a,0),value:pC(a,0),cL:nC(a),k3a:nC(a),A2a:nC(a),id:nC(a),pQ:pC(a),offset:a.offset}};
g.twa=function(a){var b=yC(a,0,1701671783);if(!b)return null;var c=swa(b),d=c.T3;c=uC(c.pQ);if(a=yC(a,b.offset+b.size,1701671783))if(a=swa(a),a=uC(a.pQ),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 sC(c,d):null};
DC=function(a,b){for(var c=yC(a,0,b);c;)c.markAsSkip(),c=yC(a,c.offset+c.size,b)};
g.EC=function(a,b){for(var c=0,d=[];zC(a,c);){var e=AC(a,c);e.type===b&&d.push(e);c=BC(e.type)?c+8:c+e.size}return d};
vwa=function(a,b){var c=g.vC(a,0,1937011556),d=g.vC(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.vC(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 hwa(a.byteLength+b);qC(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;qC(d,a,c.offset+16,c.size-16);qC(d,e,e.byteOffset+f.dataOffset+8,b);qC(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.vC(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(uwa)return d.data;a=g.vC(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
FC=function(a,b){this.j=a;this.pos=0;this.start=b||0};
GC=function(a){return a.pos>=a.j.byteLength};
LC=function(a,b,c){var d=new FC(c);if(!HC(d,a))return!1;d=IC(d);if(!JC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=KC(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?wwa(d-9,8):wwa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
xwa=function(a){var b=new FC(a);b.Uv();if(HC(b,[408125543,374648427,174,224]))b=IC(b);else return null;for(var c=a=null;!GC(b);){var d=KC(b,!1);if(21432===d)switch(MC(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=IC(b):NC(b)}if(!c)return null;for(var e,f=d=b=null;!GC(c);)switch(KC(c,!1)){case 30321:if(3!==MC(c))return null;break;case 30324:b=OC(c);break;case 30323:f=OC(c);break;case 30325:d=OC(c);break;case 30322:e=KC(c,!0);e=PC(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:NC(c)}return e?new owa(a,b,f,d,e):null};
IC=function(a){var b=KC(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new FC(c,a.start+a.pos);a.pos+=b;return c};
MC=function(a){for(var b=KC(a,!0),c=QC(a),d=1;d<b;d++)c=256*c+QC(a);return c};
OC=function(a){var b=KC(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
ywa=function(a){var b=KC(a,!0);return eC(PC(a,b))};
QC=function(a){return a.j.getUint8(a.pos++)};
KC=function(a,b){var c=QC(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+QC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+QC(a),d*=128;return b?c-d:c};
NC=function(a){var b=KC(a,!0);a.pos+=b};
zwa=function(a){if(!JC(a,440786851,!0))return null;var b=a.pos;KC(a,!1);var c=KC(a,!0)+a.pos-b;a.pos=b+c;if(!JC(a,408125543,!1))return null;KC(a,!0);if(!JC(a,357149030,!0))return null;var d=a.pos;KC(a,!1);var e=KC(a,!0)+a.pos-d;a.pos=d+e;if(!JC(a,374648427,!0))return null;var f=a.pos;KC(a,!1);var h=KC(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
RC=function(a){var b=a.pos;a.pos=0;var c=1E6;HC(a,[408125543,357149030,2807729])&&(c=MC(a));a.pos=b;return c};
Awa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!SC(a)||!JC(a,160))return a.pos=c,NaN;KC(a,!0);var d=a.pos;if(!JC(a,161))return a.pos=c,NaN;KC(a,!0);QC(a);var e=QC(a)<<8|QC(a);a.pos=d;if(!JC(a,155))return a.pos=c,NaN;d=MC(a);a.pos=c;return(e+d)*b/1E9};
SC=function(a){if(!Bwa(a)||!JC(a,524531317))return!1;KC(a,!0);return!0};
Bwa=function(a){if(a.Uv()){if(!JC(a,408125543))return!1;KC(a,!0)}return!0};
HC=function(a,b){for(var c=0;c<b.length;c++){if(!JC(a,b[c]))return!1;c!==b.length-1&&KC(a,!0)}return!0};
JC=function(a,b,c){c=void 0===c?!1:c;if(GC(a))return!1;for(var d=a.pos;KC(a,!1)!==b;)if(NC(a),d=a.pos,GC(a))return!1;c&&(a.pos=d);return!0};
wwa=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};
PC=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
TC=function(a){this.xi=a;this.j={};this.url=""};
Cwa=function(a,b){var c=b.indexOf("?");if(0<c){var d=Xva(b.substr(c+1));g.of(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Wva(b);g.of(b,function(e,f){this.set(f,e)},a)};
Dwa=function(a){var b=a.xi.pe(),c=[];g.of(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Vva(a.xi)?"&":"?";return b+a+d};
UC=function(a,b){var c=new g.LB(b);(b=c.get("req_id"))&&a.set("req_id",b);g.of(a.j,function(d,e){c.set(e,null)});
return c};
Ewa=function(){this.u=this.j=this.timedOut=this.started=this.C=this.B=0};
Fwa=function(a){a.B=(0,g.U)();a.started+=1};
VC=function(a){a.C=(0,g.U)();a.started=0;a.timedOut=0;a.j=0};
Gwa=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.Gi,d)};
WC=function(a,b){a[b]||(a[b]=new Ewa);return a[b]};
Hwa=function(a){this.J=this.I=this.D=this.u=0;this.j=a;this.C=a.clone()};
YC=function(a,b,c){if(OB(a.j))return!1;var d=WC(c,NB(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=XC(a,b);c=WC(c,NB(a));return c.timedOut+c.j+ +(b.Vl&&!c.C)<d};
Iwa=function(a,b,c){a=b?XC(a,c):a.j;return new TC(a)};
XC=function(a,b){b=b?b.Hk:!1;a.B||(a.B=QB(a.C,b));return a.B};
Jwa=function(a,b){var c=a.D+b.xs*(a.u-a.D)+.25*a.I;b=c>b.jm?1E3*Math.pow(b.Gi,c-b.jm):0;return 0===b?!0:a.J+b<(0,g.U)()};
ZC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.D=!1;this.J=0;this.C=this.B=null;this.info=b;this.u=new Hwa(a)};
$C=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)};
aD=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
bD=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new aD(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
cD=function(a,b){return new aD(a,a+b-1)};
Kwa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
dD=function(a,b,c,d,e,f,h,l,m,n){this.type=a;this.j=b;this.range=c;this.J=[];this.D="";this.Ia=-1;this.D=void 0===d?"":d;this.Ia=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Gb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.Ae=this.range?this.Gb+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.C=this.startTime+this.duration*this.Gb/this.range.length,this.I=this.duration*this.u/this.range.length,this.B=this.C+this.I):Lwa(this)};
Lwa=function(a){a.C=a.startTime;a.I=a.duration;a.B=a.C+a.I};
hD=function(a){return a.Ae&&a.j.index.AI(a.Ia)};
Mwa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Ia!==a.Ia);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Gb+b.u===a.Gb+a.u:d};
iD=function(a){return 1===a.type||2===a.type};
jD=function(a){return 3===a.type||6===a.type};
kD=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Gb+a.u===b.range.start+b.Gb:a.Ia===b.Ia?a.Gb+a.u===b.Gb:a.Ia+1===b.Ia&&0===b.Gb&&a.Ae:!1};
Nwa=function(a,b){return kD(a,b)||Fg(a.B,b.C)||a.Ia+1===b.Ia&&0===b.Gb&&a.Ae?!0:!1};
lD=function(a){return a.Ia+(a.Ae?1:0)};
Owa=function(a){1===a.length||g.Od(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new aD(a[0].range.start+a[0].Gb,b.range.start+b.Gb+b.u-1)};
nD=function(a){a=mD(a);var b="";g.of(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
mD=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.seg=String(a.Ia);a.range&&(b.range=""+(a.range.start+a.Gb)+"-"+(a.range.start+a.Gb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.I).toFixed(1);b.off=String(a.Gb);b.len=String(a.u);a.Ae&&(b.end="1");hD(a)&&(b.eos="1");return b};
Pwa=function(a){return new dD(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Ia,a.startTime,0,a.Gb,0)};
Qwa=function(a){return new dD(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Ia,a.startTime+a.duration,0,a.Gb+a.u,0)};
Rwa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Gb>=b.range.start+b.Gb&&a.range.start+a.Gb+a.u<=b.range.start+b.Gb+b.u:a.Ia===b.Ia&&a.Gb>=b.Gb&&(a.Gb+a.u<=b.Gb+b.u||b.Ae)};
Swa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Sf()?(a=a.j.Dw(a),Nl(a,function(c){return Swa(c,b)})):a.Ia===b.Ia&&!!b.u&&b.Gb+b.u>a.Gb&&b.Gb+b.u<=a.Gb+a.u};
oD=function(a,b){var c=b.Ia;a.D="updateWithSegmentInfo";a.Ia=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Lwa(a)};
pD=function(a,b){this.j=a;this.N=this.B=null;this.D=this.Of=NaN;this.I=this.requestId=null;this.u=a[0].j.u;this.C=b||"";if(this.j[0].range&&0<this.j[0].u){a:{for(b=1;b<a.length;b++)if(!kD(a[b-1],a[b])){b=!1;break a}b=!0}if(b)this.range=Owa(a),this.J=this.range.length;else{this.range=this.j[this.j.length-1].range;b=0;a=g.r(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;this.J=b}}};
qD=function(a){var b;return Twa?a.J:null==(b=a.range)?void 0:b.length};
rD=function(a){return!iD(a.j[a.j.length-1])};
sD=function(a){return 4===a.j[a.j.length-1].type};
g.tD=function(a,b,c){c=null===a.I?YC(a.u,b,c):a.I;if(a.B){b=c?QB(a.B,b.Hk):a.B;var d=new TC(b);d.get("alr")||d.set("alr","yes");a.C&&Cwa(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new TC(new g.LB(a.C)):(d=Iwa(a.u,c,b),a.C&&Cwa(d,a.C));(b=a.range)?d.set("range",b.toString()):a.j[0].j.Cs()&&1===a.j.length&&a.j[0].Gb&&d.set("range",a.j[0].Gb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Of)||d.set("headm",a.Of.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.of(a.urlParams,function(e,
f){d.set(f,e)});
return d};
Uwa=function(a){if(a.range)return qD(a);a=a.j[0];return Math.round(a.I*a.j.info.Pb)};
Vwa=function(a,b){return Math.max(0,a.j[0].C-b)};
Wwa=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,d.push(new dD(3,a.j[0].j,cD(e.ON,c),"extendWithMediaSegments",e.nE-1,e.startTimeMs/1E3,e.durationMs/1E3));return new pD(a.j.concat(d))}};
Xwa=function(a,b){a=g.r(a.j);for(var c=a.next();!c.done;c=a.next())if(c=c.value,3===c.type&&b>=c.C&&b<=c.B)return!0;return!1};
uD=function(a,b,c,d,e,f){f=void 0===f?0:f;ZC.call(this,a,b,d,void 0);this.I=c;this.zk=f;this.index=e||new SB};
Ywa=function(a,b,c,d,e){this.Ia=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
vD=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""};
wD=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
Zwa=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};
$wa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
xD=function(){this.j=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.J="";this.C=-1};
axa=function(a){var b=a.B;a.B=[];return b};
bxa=function(){this.C=[];this.j=null;this.u={};this.B={}};
fxa=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,h=null;"Period"===f.nodeName?h=cxa(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=dxa(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=exa(a,f));if(null==h)return;h.update(e,c);g.dc(d,axa(h))}g.dc(a.C,d);Raa(a.C,function(l){return 1E3*l.startSecs+l.j})};
gxa=function(a){a.j&&(a.j.j=[]);g.of(a.u,function(b){b.j=[]});
g.of(a.B,function(b){b.j=[]})};
cxa=function(a){a.j||(a.j=new xD);return a.j};
dxa=function(a,b){a.u[b]||(a.u[b]=new xD);return a.u[b]};
exa=function(a,b){a.B[b]||(a.B[b]=new xD);return a.B[b]};
yD=function(a){var b=void 0===a?{}:a;a=void 0===b.zk?0:b.zk;var c=void 0===b.mm?!1:b.mm,d=void 0===b.Pn?0:b.Pn,e=void 0===b.Xe?0:b.Xe,f=void 0===b.Rh?Infinity:b.Rh,h=void 0===b.xz?0:b.xz;b=void 0===b.xf?!1:b.xf;SB.call(this);this.Zn=this.Om=-1;this.B=null;this.Zh=a;this.Pn=d;this.mm=c;this.Xe=e;this.Rh=f;this.xz=h;this.xf=b};
AD=function(a,b,c){b=zD(a,b);return 0<=b&&(c||!a.segments[b].pending)};
zD=function(a,b){return lc(a.segments,function(c){return b-c.Ia})};
BD=function(a,b,c){c=void 0===c?{}:c;uD.call(this,a,b,"",void 0,void 0,c.zk||0);this.index=new yD(c)};
CD=function(a,b,c){ZC.call(this,a,b);this.I=c;this.index=new SB;this.index.u=!1};
hxa=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.Pb*f;return new pD([new dD(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
ixa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new RB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
DD=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
ED=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
FD=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.I=!1;this.D=this.info.j.Yv()&&!this.info.Gb};
GD=function(a){return dwa(a.j)};
jxa=function(a,b){if(1!==a.info.j.info.containerType||a.info.Gb||!a.info.Ae)return!0;a=GD(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
kxa=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new FD(new dD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ia,a.info.startTime,a.info.duration,a.info.Gb,b,!1),c.IC,a.B),new FD(new dD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ia,a.info.startTime,a.info.duration,a.info.Gb+b,a.info.u-b,a.info.Ae),c.So)]};
lxa=function(a,b,c){var d;if(!(d=!kD(a.info,b.info)||a.info.Ae)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?bwa(a.j,c.j[0]):1);d=c}if(d)return null;c=new dD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ia,a.info.startTime,a.info.duration,a.info.Gb,a.info.u,a.info.Ae);d=b.info;c.u+=d.u;c.range&&(c.I+=d.I);c.B=d.B;c.Ae=d.Ae;d=new TB;UB(d,a.j);UB(d,b.j);c=new FD(c,d,a.B);c.u=b.u||a.u;return c};
mxa=function(a){g.HD(a.info.j.info)||a.info.j.info.We();if(-1!==a.C)return a.C;if(a.u&&kwa(a.u))return a.C=kwa(a.u),a.C;if(g.HD(a.info.j.info)){var b=GD(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;zC(b,f);){var h=AC(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.wC(h):1952867444===h.type&&isNaN(d)&&(d=g.CC(h));f=BC(h.type)?f+8:f+h.size}!e&&c&&(e=xC(c));b=d/e}else b=new FC(GD(a)),c=a.D?b:new FC(new DataView(a.info.j.j.buffer)),d=RC(c),c=b.pos,b.pos=0,SC(b)?JC(b,231)?
(d=MC(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C};
oxa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=mxa(a)+b;nxa(a,c);a.timestampOffset=b};
nxa=function(a,b){g.HD(a.info.j.info)||a.info.j.info.We();a.C=b;if(g.HD(a.info.j.info)){var c=GD(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;zC(c,f);){var h=AC(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.wC(h)));if(1952867444===h.type){!d&&a&&(d=xC(a));var l=g.CC(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=BC(h.type)?f+8:f+h.size}return!0}c=new FC(GD(a));a=a.D?c:new FC(new DataView(a.info.j.j.buffer));d=RC(a);a=c.pos;c.pos=0;if(SC(c)&&JC(c,231))if(e=KC(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.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
ID=function(a,b){b=void 0===b?!1:b;var c=pxa(a);a=b?0:a.info.I;return c||a};
pxa=function(a){g.HD(a.info.j.info)||a.info.j.info.We();if(a.u&&6===a.info.type)return a.u.zk;if(g.HD(a.info.j.info)){var b=GD(a);var c=0;b=g.EC(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=rwa(d.value),c+=d.XK[0]/d.cL;c=c||NaN;if(!(0<=c))a:{c=GD(a);b=a.info.j.j;for(var e=d=0,f=0;zC(c,d);){var h=AC(c,d);if(1836476516===h.type)e=g.wC(h);else if(1836019558===h.type){!e&&b&&(e=xC(b));if(!e){c=NaN;break a}var l=yC(h.data,h.dataOffset,1953653094),m=e,n=yC(l.data,l.dataOffset,1952868452);
l=yC(l.data,l.dataOffset,1953658222);var p=mC(n);mC(n);p&2&&mC(n);n=p&8?mC(n):0;var q=mC(l),v=q&1;p=q&4;var w=q&256,y=q&512,A=q&1024;q&=2048;var B=nC(l);v&&mC(l);p&&mC(l);for(var E=v=0;E<B;E++){var G=w?mC(l):n;y&&mC(l);p&&0===E||!A||mC(l);q&&mC(l);v+=G}f+=v/m}d=BC(h.type)?d+8:d+h.size}c=f||NaN}c||g.rz(new g.Rv("Missing duration while parsing bmff",nD(a.info)))}else c=new FC(GD(a)),a=a.D?c:new FC(new DataView(a.info.j.j.buffer)),c=Awa(c,RC(a));return c};
qxa=function(a){var b=GD(a);var c=(c=g.vC(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.vC(b,0,1836476516))?g.wC(b):a?xC(a):NaN);return c};
rxa=function(a){if(!a.u){g.HD(a.info.j.info)||a.info.j.info.We();if(g.HD(a.info.j.info))var b=g.twa(GD(a));else{b=new FC(GD(a));var c=b.pos;b.pos=0;var d=null,e=null;if(HC(b,[408125543,307544935]))for(var f=b.pos+KC(b,!0);b.pos<f;)if(29555!==KC(b,!1))NC(b);else for(var h=b.pos+KC(b,!0);b.pos<h;)if(26568!==KC(b,!1))NC(b);else for(var l=b.pos+KC(b,!0);b.pos<l;){var m=KC(b,!1);if(17543===m){if(m=ywa(b),m=uC(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=ywa(b),d||(d=m)):NC(b)}b.pos=c;b=e?new sC(e,d):null}a.u=b}};
sxa=function(a){if(!a.I){if(g.HD(a.info.j.info)){var b=GD(a);var c=yC(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=zwa(new FC(GD(a)));b&&(a.info.j.j=b,a.I=!0)}};
JD=function(a,b,c,d,e){ZC.call(this,a,b,c,d);this.I=null;this.index=e?new e.NativeSegmentIndex:new DD};
KD=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=cD(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n);e.push(new dD(3,a,h,"getRequestInfoForRange",f,l,m,n,p));if(h.start+n+p>=c+d)break}e.length||g.qz(new g.Rv("b189619593",""+b,""+c,""+d));return new pD(e)};
LD=function(a,b,c,d){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d};
txa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
ND=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||MD(a,b);this.j=g.uB[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.uB[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
MD=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=OD[0];for(var d=0;d<OD.length;d++){var e=OD[d],f=g.uB[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
RD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Pb||(c.Pb=16E3);Object.assign(this,c);a=g.r(this.id.split(";"));this.itag=a.next().value;this.B=a.next().value;this.containerType=PD(b);this.j=QD[this.itag]||""};
DB=function(a){return"9"===a.j||"("===a.j||"9h"===a.j||"(h"===a.j};
SD=function(a){return"9h"===a.j||"(h"===a.j};
TD=function(a){return"1"===a.j||"1h"===a.j};
Kva=function(a){return"mac3"===a.j||"meac3"===a.j||"m"===a.j};
Jva=function(a){return"MAC3"===a.j||"MEAC3"===a.j||"M"===a.j};
g.HD=function(a){return 1===a.containerType};
UD=function(a){return"application/x-mpegURL"===a.mimeType};
uxa=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.Pb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Pb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
VD=function(a){return a.includes("vtt")||a.includes("text/mp4")};
PD=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};
WD=function(a,b,c,d,e,f){var h=new LD;b in g.uB||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.uB[b],d=Math.round(16*e/9));f=new ND(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new RD(c,a,{audio:h,video:f})};
vxa=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Wu)?void 0:c.toFixed(0))+", "+(null==(d=a.Pb)?void 0:d.toFixed(0))+")"};
g.XD=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.YD=function(){$y.apply(this,arguments)};
ZD=function(){var a=g.Ha("yt.player.utils.videoElement_");a||(a=g.mh("VIDEO"),g.Fa("yt.player.utils.videoElement_",a));return a};
$D=function(a){var b=ZD();return!!(b&&b.canPlayType&&b.canPlayType(a))};
wxa=function(a){try{var b=aE('video/mp4; codecs="avc1.42001E"')||aE('video/webm; codecs="vp9"');return(aE('audio/mp4; codecs="mp4a.40.2"')||aE('audio/webm; codecs="opus"'))&&(b||!a)||$D('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
aE=function(a){if(/opus/.test(a)&&g.bE&&!Bo("38")&&!g.Qu())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!zma())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!$D(a)};
cE=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
dE=function(){var a=ZD();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
eE=function(){var a=ZD();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
fE=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
gE=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)};
hE=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};
iE=function(a,b){return 0<=hE(a,b)};
xxa=function(a,b){if(!a)return NaN;b=hE(a,b);return 0<=b?a.start(b):NaN};
jE=function(a,b){if(!a)return NaN;b=hE(a,b);return 0<=b?a.end(b):NaN};
kE=function(a){return a&&a.length?a.end(a.length-1):NaN};
yxa=function(a,b){a=jE(a,b);return 0<=a?a-b:0};
lE=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 fE(d,e)};
mE=function(a,b,c,d){g.cz.call(this);var e=this;this.Wd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.qP={error:function(){!e.isDisposed()&&e.isActive&&e.X("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.X("updateend",e)}};
g.dz(this.Wd,this.qP);this.PA=this.isActive};
nE=function(a,b,c,d,e){g.cz.call(this);var f=this;this.kc=a;this.Jf=b;this.id=c;this.containerType=d;this.isVideo=e;this.TP=this.bD=this.Je=null;this.appendWindowStart=this.timestampOffset=0;this.PN=fE([],[]);this.CB=!1;this.kA=zxa?[]:void 0;this.Sc=function(l){return f.X(l.type,f)};
var h;if(null==(h=this.kc)?0:h.addEventListener)this.kc.addEventListener("updateend",this.Sc),this.kc.addEventListener("error",this.Sc)};
oE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
pE=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
qE=function(a,b,c){c=void 0===c?!1:c;g.K.call(this);this.mediaSource=a;this.Jf=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.YD(this);g.M(this,this.events);this.yz=new pE(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Jf.webkitMediaSourceURL,!0);a=this.mediaSource||this.Jf;az(this.events,a,["sourceopen","webkitsourceopen"],this.n2);az(this.events,a,["sourceclose","webkitsourceclose"],this.m2)};
Axa=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Bxa=function(a,b){rE(a)?g.Dh(function(){b(a)}):a.callback=b};
rE=function(a){try{return"open"===sE(a)}catch(b){return!1}};
sE=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Jf.webkitSourceState){case a.Jf.SOURCE_OPEN:return"open";case a.Jf.SOURCE_ENDED:return"ended";default:return"closed"}};
tE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Cxa=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Wd:a.j,f=a.u.isView()?a.u.Wd:a.u,h=new qE(a.mediaSource,a.Jf,!0);h.yz=a.yz;e=new mE(e,b,c,d);b=new mE(f,b,c,d);h.j=e;h.u=b;g.M(h,e);g.M(h,b);rE(a)||a.j.pE(a.j.wd());return h};
Dxa=function(a,b){return uE(function(c,d){return g.Fu(c,d,4,1E3)},a,b)};
g.Exa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=eC(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
uE=function(a,b,c){b.match(Fxa);return a(b,c).then(function(d){var e=g.Exa(d.xhr);return e?uE(a,e,c):d.xhr})};
vE=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.cz.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.qa=this.duration=0;this.isPremiere=this.xf=this.C=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.Rh=this.Xe=0;this.isOtf=this.nf=!1;this.W=(0,g.U)();this.I=Infinity;this.j={};this.state=this.Fg=0;this.timeline=null;this.isManifestless=!1;this.J=[];this.B=null;this.N=0;this.va="";this.V=NaN;this.Nc=this.Kb=this.yc=this.timestampOffset=this.D=0;this.ra=!1;this.Ha=
!!b&&b.fb("html5_live_nonzero_first_segment_start_time");this.La=!!b&&b.fb("html5_live_self_init_segments");this.withCredentials=!b||!b.fb("html5_manifest_without_credentials");this.Y=!!b&&b.fb("disable_html5_manifest_namespace_redux");this.Ea=b&&b.fb("disable_html5_duration_caching")?Infinity:10;this.Ra=!!b&&b.fb("html5_live_head_playable");Gxa=!!b&&b.fb("html5_modern_vp9_mime_type")};
Pva=function(a){return g.rf(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
IB=function(a){return g.rf(a.j,function(b){return!!b.info.Td})};
Hxa=function(a){return g.rf(a.j,function(b){return VD(b.info.mimeType)})};
Ixa=function(a){return g.rf(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
Jxa=function(a){return g.rf(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
Kxa=function(a){return g.rf(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
Lxa=function(a){return g.rf(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Mxa=function(a){return Aca(a.j,function(b){return b.info.video?b.VJ():!0})};
AB=function(a){return g.rf(a.j,function(b){return OB(b.u.j)})};
Nxa=function(a){return g.rf(a.j,function(b){return!(b.index instanceof DD)})};
wE=function(a,b){a.j[b.info.id]=b};
xE=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var h=(a.size||"640x360").split("x");h=new ND(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=Oxa(d,h)}var l;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var m=new LD(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.XD(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 txa(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 v={};for(var w=g.r(a.drm_families.split(",")),y=w.next();!y.done;y=w.next())y=y.value,v[y]=b[y]}return new RD(e,d,{audio:m,video:h,Ic:l,Td:v,Pb:f,Wu:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type})};
Pxa=function(a){return Nl(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Qxa=function(a,b){return a.timeline?ec(a.timeline.C,b):a.J.length?ec(a.J,b):[]};
yE=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.LB(a,!0);a.set("alr","yes");c&&(c=Uva(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Uxa=function(a,b){var c=vD(b,"id");c=c.replace(":",";");var d=vD(b,"mimeType"),e=vD(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(vD(b,"bandwidth"))/8;var f=Number(wD(b,"BaseURL").getAttribute(zE(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(vD(b,"width"));var m=Number(vD(b,"height")),n=Number(vD(b,"frameRate")),p=Rxa(vD(b,zE(a,"projectionType")));a:switch(vD(b,zE(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
2;break a;default:q=0}l=new ND(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var v=Number(vD(b,"audioSamplingRate"));var w=Number(vD(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Sxa(vD(b,zE(a,"spatialAudioType")));v=new LD(v,w,m);a:{w=vD(b,"lang")||"und";if(m=wD(b,"Role"))if(p=vD(m,"value")||"",g.yf(Txa,p)){m=w+"."+Txa[p];n="main"===p;a=vD(b,zE(a,"langName"))||w+" - "+p;w=new g.XD(a,m,n);break a}w=void 0}}if(b=wD(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var y={};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&&(y[a]=m.trim()))}else y=void 0;return new RD(c,d,{audio:v,video:l,Ic:w,Td:y,Pb:e,Wu:h,contentLength:f})};
Rxa=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
Sxa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
Wxa=function(a,b){b=void 0===b?"":b;a.state=1;a.W=(0,g.U)();return Dxa(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.Fg=c.status;c=c.responseText;var d=new DOMParser;c=yfa(d,xg(c)).getElementsByTagName("MPD")[0];a.I=1E3*Zwa(vD(c,"minimumUpdatePeriod"))||Infinity;if(!a.Y){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.va=d}a.isLive=Infinity>a.I&&a.isLivePlayback;a.qa=Number(vD(c,zE(a,"earliestMediaSequence")))||0;if(d=Date.parse($wa(vD(c,zE(a,"mpdResponseTime")))))a.N=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Od(c.getElementsByTagName("Period"),a.X2,a);a.state=2;a.X("loaded");Vxa(a)}return a}).Wi(function(c){if(c instanceof Du){var d=c.xhr;
a.Fg=d.status}a.state=3;a.X("loaderror");return Jh(d)})};
Xxa=function(a,b,c){return Wxa(new vE(a,b,c),a)};
AE=function(a){return a.isLive&&(0,g.U)()-a.W>=a.I};
Vxa=function(a){var b=a.I;isFinite(b)&&(AE(a)?a.refresh():(b=Math.max(0,a.W+b-(0,g.U)()),a.B||(a.B=new g.Zn(a.refresh,b,a),g.M(a,a.B)),a.B.start(b)))};
Yxa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
BE=function(a){return a.yc?a.yc-(a.D||a.timestampOffset):0};
CE=function(a){return a.Kb?a.Kb-(a.D||a.timestampOffset):0};
DE=function(a){if(!isNaN(a.V))return a.V;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.Ea&&(a.V=b);return b}if(a.isLive&&(d=b[c],d.zk))return d.zk}return NaN};
Zxa=function(a,b){a=Cca(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};
$xa=function(a,b){g.of(a.j,function(c){g.of(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)})})};
aya=function(a,b){if(!a.j["0"]){var c=new RD("0","fakesb",{video:new ND(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new uD(new g.LB("http://www.youtube.com/videoplayback"),c,"fake"):new JD(new g.LB("http://www.youtube.com/videoplayback"),c,new aD(0,0),new aD(0,0))}};
EE=function(a,b,c){for(var d in a.j){var e=VD(a.j[d].info.mimeType)||a.j[d].info.isVideo();if(c===e){e=a.j[d].index;var f=zD(e,b);0<=f&&e.segments.splice(f,1)}}};
bya=function(a){for(var b in a.j)awa(a.j[b].index,Infinity)};
zE=function(a,b){return a.Y?"yt:"+b:a.va+":"+b};
cya=function(a){a.Kb=0;a.yc=0;a.Nc=0};
FE=function(a){return a.Ra?a.isLiveHeadPlayable:a.isLive};
Oxa=function(a,b){null===GE&&(GE=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(Gxa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return!GE&&0<a.indexOf("vp09.00")?a='video/webm; codecs="vp9"':!GE&&0<a.indexOf("vp09.02")&&(a='video/webm; codecs="vp9.2"'),a;if(!GE&&!dya||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;var c="00",d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=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,h,"00"].join(".")+'"'};
eya=function(){var a=g.Qz("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Cg(Math.floor(b),0,100),muted:!!a.muted}};
fya=function(a){g.Pz("yt-player-bandwidth",a,2592E3)};
HE=function(a){a=void 0===a?2592E3:a;if(0<a&&!(zua()>(0,g.U)()-1E3*a))return 0;a=g.Qz("yt-player-quality");if("string"===typeof a){if(a=g.uB[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
gya=function(){var a=g.Qz("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};
hya=function(){var a={values:{},Wn:{}};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};
iya=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
JE=function(a,b){return+IE()[iya(a,b)]||8192};
IE=function(){return g.Qz("yt-player-performance-cap")||{}};
jya=function(a){g.Pz("yt-player-watch-later-pending",a)};
kya=function(){return!!g.Qz("yt-player-headers-readable")};
lya=function(a){g.Pz("yt-player-playback-on-reload",a)};
mya=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.nya=function(){var a=g.Qz("yt-player-caption-language-preferences");return a?a:[]};
oya=function(a){this.Oa=a;this.yc=this.j=this.Ha=this.I=this.D=this.ra=this.Ea=this.eb=this.Ya=!1;this.N=this.J=0;this.Cb=!1;this.gb=!0;this.ub=!1;this.W=0;this.qa=!1;this.Lc=Infinity;this.sG=!1;this.zc=!0;this.Ua=this.La=this.Ra=!1;this.u={};this.Kb=this.B=this.va=!1;this.Yb=this.Oa.K("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.V=this.Oa.K("html5_reduce_istypesupported_calls");this.qg=0;this.Eb=!1};
Qva=function(a){if(a.eb)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.qa&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.Y&&(b=(pya[a.Y]||[a.Y]).concat(b));return b};
Ova=function(a){var b=["o","a","A"];1===a.qg&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.I&&(b=["meac3","MEAC3"].concat(b)));a.Ya&&(b=["so","sa"].concat(b));!a.yc||a.Ha||a.C||b.unshift("a");a.Ea&&b.unshift("ah");a.C&&(b=(pya[a.C]||[a.C]).concat(b));return b};
KE=function(a,b,c){b=void 0===b?{}:b;if(a.K("html5_disable_av1"))return b.disabled=1,0;if(FB(a.j,GB.AV1_CODECS)&&FB(a.j,GB.HEIGHT)&&FB(a.j,GB.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=mya();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;yma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return TD(h)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(JE("1",c.fps),JE("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=JE("1",30),b.perfCap30=c,a=Math.min(a,c),c=JE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
ME=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Ya=this.keySystemAccess=null;this.Tt=this.Ut=-1;this.Hk=null;this.B="";this.C=!!d&&d.fb("edge_nonprefixed_eme");this.B=d?g.LE(d,"html5_hdcp_probing_stream_url"):""};
OE=function(a){return a.C?!1:!a.keySystemAccess&&!!NE()&&"com.microsoft.playready"===a.keySystem};
PE=function(a){return"com.microsoft.playready"===a.keySystem};
QE=function(a){return!a.keySystemAccess&&!!NE()&&"com.apple.fps.1_0"===a.keySystem};
RE=function(a){return"com.youtube.fairplay"===a.keySystem};
g.SE=function(a){return"fairplay"===a.flavor};
NE=function(){var a=window,b=a.MSMediaKeys;Tu()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
UE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.bE&&!g.Qu())return Bo("45");if(g.yw||g.Dc)return a.fb("edge_nonprefixed_eme");if(g.pB)return Bo("47");if(g.Zv){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.TE(a,"html5_safari_desktop_eme_min_version"))return Bo(a)}return!0};
qya=function(a,b,c,d){var e=Ru(),f=(c=e||c&&Tu())?["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.t(f),g.t(VE.playready)):[].concat(g.t(VE.playready),g.t(f))};
WE=function(a,b,c,d,e){d=void 0===d?!1:d;g.K.call(this);this.experiments=b;this.useCobaltWidevine=d;this.ma=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c)};
sya=function(a,b){a.callback=b;a.B=[];UE(a.experiments)?XE(a):rya(a)};
XE=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=tya(a,c);navigator.requestMediaKeySystemAccess(b,d).then(hu(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(PE(c)){e=ZD();for(var f=g.r(Object.keys(a.C[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.j[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())uya(a,c,h.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())uya(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),XE(a)):a.callback(a.B)}}),hu(function(){a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;
a.D||a.j.shift();XE(a)}))}};
uya=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
tya=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};PE(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/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.bE&&Ou("windows nt")&&!a.K("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.K("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.K("html5_query_sw_secure_crypto_for_android")&&(Zu()||Pu())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
rya=function(a){if(NE()&&g.Zv)a.B.push(new ME("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=vya(),c=g.Ub(a.j,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.B.push(a.u[c]);a.j=[]}a.callback(a.B)};
vya=function(){var a=NE();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=ZD();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
wya=function(){this.j=0};
xya=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=ju(b||"","&");a={};b=g.r(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.TE=function(a,b){return Number(a.flags[b])||0};
g.LE=function(a,b){return(a=a.flags[b])?a.toString():""};
zya=function(a){return yya.then(a)};
YE=function(a,b,c){this.experiments=a;this.Y=b;this.ra=void 0===c?!1:c;this.J=!!g.Ha("cast.receiver.platform.canDisplayType");this.I={};this.V=!1;this.u=new Map;this.N=!0;this.D=!this.experiments.fb("html5_disable_protected_hdr");this.j=this.B=!1;this.W=this.experiments.fb("html5_disable_vp9_encrypted");a=g.Ha("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
Lva=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.We()&&Ru()&&a.experiments.fb("html5_appletv_disable_vp9"))return"dwebm";if(TD(b)&&a.V)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(FB(a,GB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.bE?Bo(53):g.pB&&Bo(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[GB.WIDTH.name]=b.video.width),b.video.height&&(c[GB.HEIGHT.name]=b.video.height),b.video.fps&&(c[GB.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[GB.EOTF.name]=b.video.u),b.Pb&&(c[GB.BITRATE.name]=8*b.Pb*f),"("===b.j&&(c[GB.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[GB.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[GB.CHANNELS.name]=b.audio.numChannels);a.B&&DB(b)&&(c[GB.EXPERIMENTAL.name]="allowed");f=g.r(Object.keys(GB));for(var h=f.next();!h.done;h=f.next())if(h=GB[h.value],c[h.name]&&!(h===GB.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.fb("html5_ignore_h264_framerate_cap")&&h===GB.FRAMERATE&&("H"===b.j||"h"===b.j)||h===GB.DECODETOTEXTURE&&!a.experiments.fb("html5_decode_to_texture_cap")))if(FB(a,h))if(a.C){if(a.C[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];
else if(SD(b)&&h===GB.EOTF)return"dvp92";!a.experiments.fb("disable_html5_cast_hdcp_filter2")&&a.J&&b.video&&1080<b.video.j&&b.Td&&(e+="; hdcp=2.2");return"227"!==d||a.experiments.fb("html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.fb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
ZE=function(a){var b=Pu()&&!Bo(29),c=Ou("google tv")&&Ou("chrome")&&!Bo(30);a=Ru()&&a.experiments.fb("apple_tv_cobalt_default_mse_killswitch");return b||c||a?!1:Axa()};
Aya=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===Lva(a,e,c)&&(d=f)}return d};
g.$E=function(a,b){b=void 0===b?!1:b;return ZE(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(ZD(),"application/x-mpegURL")?!0:!1};
Cya=function(a){Bya(function(){for(var b=g.r(Object.keys(GB)),c=b.next();!c.done;c=b.next())FB(a,GB[c.value])})};
FB=function(a,b){b.name in a.I||(a.I[b.name]=Dya(a,b));return a.I[b.name]};
Dya=function(a,b){if(a.C)return!!a.C[b.name];if(b===GB.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===GB.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)};
Eya=function(a){a.N=!1;a.j=!0};
Fya=function(a){a.B||(a.B=!0,a.j=!0)};
Gya=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).nY);a.u.set(b,{nY:c+1,jS:Math.pow(2,c+1)});a.j=!0};
aF=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;Hya(a)}};
Iya=function(a){a.j||(Bya(function(){Hya(a)}),a.j=!0)};
Hya=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.U)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Fu(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.U)();5<a.queue.length&&Iya(a)}};
bF=function(){g.cz.call(this);this.items={}};
cF=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
iF=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!Jya){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);dF=new Uint8Array(256);eF=cF(256);fF=cF(256);gF=cF(256);hF=cF(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;dF[f]=e;b=e<<1^(e>>7&&283);var h=b^e;eF[f]=b<<24|e<<16|e<<8|h;fF[f]=h<<24|eF[f]>>>8;gF[f]=e<<24|fF[f]>>>8;hF[f]=e<<24|gF[f]>>>8}Jya=!0}e=cF(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=(dF[a>>16&255]^d)<<24|dF[a>>8&255]<<16|dF[a&255]<<8|dF[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
Kya=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};
Lya=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=eF[c>>>24]^fF[d>>16&255]^gF[e>>8&255]^hF[f&255]^b[n++],l=eF[d>>>24]^fF[e>>16&255]^gF[f>>8&255]^hF[c&255]^b[n++],m=eF[e>>>24]^fF[f>>16&255]^gF[c>>8&255]^hF[d&255]^b[n++],f=eF[f>>>24]^fF[c>>16&255]^gF[d>>8&255]^hF[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=dF[c>>>24]^h>>>24;a[1]=dF[d>>16&255]^h>>16&255;a[2]=dF[e>>8&255]^
h>>8&255;a[3]=dF[f&255]^h&255;h=b[41];a[4]=dF[d>>>24]^h>>>24;a[5]=dF[e>>16&255]^h>>16&255;a[6]=dF[f>>8&255]^h>>8&255;a[7]=dF[c&255]^h&255;h=b[42];a[8]=dF[e>>>24]^h>>>24;a[9]=dF[f>>16&255]^h>>16&255;a[10]=dF[c>>8&255]^h>>8&255;a[11]=dF[d&255]^h&255;h=b[43];a[12]=dF[f>>>24]^h>>>24;a[13]=dF[c>>16&255]^h>>16&255;a[14]=dF[d>>8&255]^h>>8&255;a[15]=dF[e&255]^h&255};
lF=function(){if(!jF&&!g.yw){if(kF)return kF;var a;kF=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=kF)?0:b.importKey)&&(null==(c=kF)?0:c.sign)&&(null==(d=kF)?0:d.encrypt))return kF;kF=void 0}};
g.mF=function(a){this.C=a};
g.nF=function(a){this.u=a};
oF=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
Mya=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],v,w,y,A=0;64>A;)16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=q+pF[A]+y+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=v+w,l+=v,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=
d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=p+pF[A]+y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=v+w,h+=v,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=n+pF[A]+y+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=v+w,f+=v,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=m+pF[A]+y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),y=q,q=l,l=y,y=p,p=h,h=y,y=n,n=f,f=y,m=e+v,e=v+w,A++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+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};
Oya=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.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;Nya(a);return b};
Nya=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
Pya=function(a){this.j=a};
Qya=function(a,b,c){a=new oF(a.j);a.update(b);a.update(c);b=Oya(a);a.update(a.D);a.update(b);b=Oya(a);a.reset();return b};
Rya=function(a){this.u=a};
Sya=function(a,b,c,d){var e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(a.j){m.Ma(2);break}e=a;return g.x(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.x(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
Tya=function(a,b,c){a.B||(a.B=new Pya(a.u));return Qya(a.B,b,c)};
Uya=function(a,b,c){var d,e;return g.z(function(f){if(1==f.j){d=lF();if(!d)return f.return(Tya(a,b,c));g.ra(f,3);return g.x(f,Sya(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.va(f);g.rz(e);jF=!0;return f.return(Tya(a,b,c))})};
rF=function(){this.B=this.j=0;this.u=Array.from({length:qF.length}).fill(0)};
Vya=function(){};
Wya=function(a){this.name=a;this.startTimeMs=(0,g.U)();this.j=!1};
Xya=function(){this.profiles=new Vya};
sF=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new rF),a.profiles[b].dh(c,d))};
tF=function(){};
uF=function(){g.mF.apply(this,arguments)};
vF=function(){g.nF.apply(this,arguments)};
Yya=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
Zya=function(a){a.u||(a.u=new uF(a.j));return a.u};
wF=function(a){try{return Ec(a)}catch(b){return null}};
$ya=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?wF(b.clientKey):null;var c=b.encryptedClientKey?wF(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.U)():null;a&&c&&d&&(this.j=new Yya(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=wF(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
xF=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
yF=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.D=aza(this);this.B=c;this.I=d};
aza=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
zF=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.mc(a.D,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.D[Math.round(b*((a.u?a.j:a.valueIndex)-1))]]||0};
bza=function(a){var b=new wya;this.policy=a;this.ra=b;this.V=this.Y=0;this.D=-1;this.N=!1;this.W=this.C=AF();this.J=new yF(4,1,.6,.4);this.j=new yF(10,1,.5,.4);this.B=a.j?new xF(a.u):new yF(a.u,20,.5,.4);this.I=new yF(5,1,.25);this.u=new yF(30,1,.5);a=g.Qz("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.N=!0);this.B.lh(this.policy.D,b);0<a.delay&&this.J.lh(1,Math.min(a.delay,2));0<a.stall&&this.j.lh(1,a.stall);0<a.init&&(this.W=Math.min(a.init,this.W));this.D=AF()};
BF=function(a){a=a.J.Nh();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
cza=function(a,b,c){isNaN(c)||(a.V+=c);isNaN(b)||(a.Y+=b)};
CF=function(a){a=a.B.Nh();return 0<a?a:1};
DF=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=CF(a);d=1/((a.j.Nh()||0)+1/d);var e=a.I.Nh();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+BF(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((zF(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
EF=function(a){return{delay:BF(a),stall:a.j.Nh()||0,byterate:CF(a),init:a.W}};
FF=function(a){-1<a.D&&3E4<AF()-a.D&&(fya(EF(a)),a.D=AF(),a.N=!0)};
dza=function(a){return 4E3<=AF()-a.C};
eza=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.j=!1};
gza=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.K.call(this);var c=this;this.values=a;this.Wn=b;this.u={};this.B=this.j=0;this.C=new g.Zn(function(){fza(c)},1E4);
g.M(this,this.C)};
GF=function(a,b){hza(a,b);return a.values[b]&&a.Wn[b]?a.values[b]/Math.pow(2,a.j/a.Wn[b]):0};
hza=function(a,b){a.values[b]||(b=hya(),a.values=b.values||{},a.Wn=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
fza=function(a){var b=hya();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]=GF(a,e);a.u=c}b=a.Wn;c={};c.values=a.u;c.halfLives=b;g.Pz("yt-player-memory",c,2592E3)};
eG=function(a,b,c){g.K.call(this);this.webPlayerContextConfig=b;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.vg=this.Cd=this.Ra=this.qg=this.userDisplayName=this.userDisplayImage=this.Li="";this.deviceParams={};this.controlsType="0";this.Lc=NaN;this.Bd=!1;this.Ne=(0,g.U)();this.ub=0;this.rk=this.Il=!1;this.Mk=!0;this.pk=this.Kd=!1;this.Qk=null;this.B=!1;this.og=this.Vj=this.V=0;a=a?g.Gf(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=
b.csiServiceName);this.experiments=new xya(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:hv("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)&&!this.K("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:hv("",a.csp_nonce);this.K("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(B){d=""}this.Dd=d;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):
[];this.u=ev(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=b.device,d.brand&&(this.deviceParams.cbrand=d.brand),d.browser&&(this.deviceParams.cbr=d.browser),d.browserVersion&&(this.deviceParams.cbrver=d.browserVersion),this.deviceParams.c=d.interfaceName||"WEB",this.deviceParams.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.deviceParams.ctheme=d.interfaceTheme),this.deviceParams.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.deviceParams.cmodel=d.model),d.network&&(this.deviceParams.cnetwork=
d.network),d.os&&(this.deviceParams.cos=d.os),d.osVersion&&(this.deviceParams.cosver=d.osVersion),d.platform&&(this.deviceParams.cplatform=d.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.K("wpcc_loader_url_killswitch")?this.loaderUrl=this.u||HF(this)&&b.loaderUrl?b.loaderUrl||"":this.Dd:this.loaderUrl=this.u||HF(this)&&a.loaderUrl?hv("",a.loaderUrl):this.Dd;this.K("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=
hv("",a.embedsTokenValue));this.C=mA(this.loaderUrl,iza);d=this.loaderUrl;var e=void 0===e?!1:e;this.Wl=lA(mA(d,jza),d,e,"Trusted Ad Domain URL");this.Ya=ev(!1,a.privembed);this.protocol=0===this.Dd.indexOf("http:")?"http":"https";this.qa=nA((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||nA(this.Dd)||this.protocol+"://www.youtube.com/";e=b?b.eventLabel:a.el;d="detailpage";"adunit"===e?d=this.u?"embedded":"detailpage":"embedded"===e||this.C?d=fv(d,e,kza):e&&(d="embedded");this.La=d;Nx();e=null;d=b?
b.playerStyle:a.ps;var f=g.Wb(lza,d);!d||f&&!this.C||(e=d);this.playerStyle=e;this.N=(this.D=g.Wb(lza,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Vl=!this.N;this.Ea=ev(!1,a.disableplaybackui);this.disablePaidContentOverlay=ev(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=ev(!1,null==b?void 0:b.disableSeek);this.Ed=this.K("variable_playback_rate")?!0:ZD().defaultPlaybackRate?IF||g.Yu||JF?g.pB&&Bo("20")||g.bE&&Bo("4")||g.KF&&Bo("11")||Uu():!(g.KF&&
!Ou("chrome")||IF||Ou("android")||Ou("silk")):!1;this.Rl=ev(!1,a.enable_faster_speeds);this.isMobile=ev("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Ak=Xu()||Zu();this.isMobile?e=!this.D:(e=Number(Date.now()/1E3),d=g.rv.getInstance(),e=this.K("block_desktop_background_playback_with_mobile_cookie")&&d&&e>Number(d.get("dhmu",e.toString())));this.Ul=e;this.va=eE();this.fm=g.LF;this.Bk=ev(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.jh=!(!b||!b.embedsEnablePfpImaIntegration||
this.K("embeds_pfp_ima_integration_killswitch"));this.ra=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.pfpChazalUi=this.jh||ev(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.K("embeds_pfp_chazal_ui_killswitch"));var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.Jk=g.MF(this)&&!this.Bk||ev(!NF(this)&&!OF(this)&&!this.D,h);this.Fk=b?!!b.mobileIphoneSupportsInlinePlayback:ev(!1,a.playsinline);h=this.isMobile&&PF&&null!=QF&&0<QF&&2.3>=QF;e=b?b.useNativeControls:
a.use_native_controls;this.I=g.MF(this)&&this.isMobile;d=this.isMobile&&!this.I;e=RF(this)||!h&&ev(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.cf=this.isMobile;this.color=fv("red",b?b.progressBarColor:a.color,mza);this.Zl="3"===this.controlsType||ev(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Yb=!this.u;this.Kk=(e=!this.Yb&&!OF(this)&&!this.N&&!this.D&&!NF(this))&&!this.Zl&&"1"===this.controlsType;this.Nc=g.SF(this)&&e&&"0"===
this.controlsType&&!this.Kk;this.im=this.cm=h;this.yc=("3"===this.controlsType||this.isMobile||ev(!1,a.use_media_volume))&&!this.I;this.Nk=TF&&!g.yc(601)?!1:!0;this.Tl=this.u||!1;this.He=OF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=hv("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.C||ev(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.Eb=this.K("enable_cast_for_web_unplugged")&&g.UF(this)&&h||this.K("enable_cast_on_music_web")&&
g.VF(this)&&h||l&&h&&"1"===this.controlsType&&!this.isMobile&&(OF(this)||g.SF(this)||g.WF(this))&&!g.XF(this);this.hm=cE()||dE();l=b?!!b.supportsAutoplayOverride:ev(!1,a.autoplayoverride);this.Ki=!this.isMobile&&!Ou("nintendo wiiu")&&!Ou("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:ev(!1,a.mutedautoplay);h=this.K("embeds_enable_muted_autoplay")&&g.MF(this);this.bf=l&&h&&this.va&&!RF(this);l=(OF(this)||NF(this))&&"blazer"===this.playerStyle;this.oi=b?!!b.disableFullscreen:!ev(!0,a.fs);this.gb=!this.oi&&
(l||g.Wy());this.nk=this.K("uniplayer_block_pip")&&(Pu()&&Bo(58)&&!Zu()||Wu);l=g.MF(this)&&!this.Bk;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Mc=l||ev(!this.D,m);this.Ik=ev(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=Zu()&&0<QF&&4.4>=QF?"_top":"_blank";this.Pe=g.WF(this);this.Gi=ev("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m="ga";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.Ha=m;this.authUser=hv("",b?b.authorizedUserIndex:a.authuser);this.Ld=g.MF(this)&&(this.Ya||!vma()||this.Ak);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.Jl=((m=!this.Ld)||!!this.authUser&&
m)&&ev(!this.N,this.C?n:void 0);this.Ng=b?b.isMobileDevice||!!b.disableKeyboardControls:ev(!1,a.disablekb);this.loop=ev(!1,a.loop);this.pageId=hv("",!this.K("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.gm=ev(!0,a.canplaylive);this.Cb=ev(!1,a.livemonitor);this.disableSharing=ev(this.D,b?b.disableSharing:a.ss);(n=b&&this.K("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),
m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.Qg(n,m))):n=null;this.Ok=n;this.mute=b?!!b.startMuted:ev(!1,a.mute);this.storeUserVolume=!this.mute&&ev("0"!==this.controlsType,b&&!this.K("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:fv(void 0,n,YF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":hv("",a.cc_lang_pref);n=fv(2,b?b.captionsLanguageLoadPolicy:
a.cc_load_policy,YF);"3"===this.controlsType&&2===n&&(n=3);this.eb=n;this.pg=b?b.hl||"en_US":hv("en_US",a.hl);this.region=b?b.contentRegion||"US":hv("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":hv("en",a.host_language);this.Kl=!this.Ya&&Math.random()<g.TE(this.experiments,"web_player_api_logging_fraction");this.Ua=!this.Ya;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Lc=gv(this.Lc,a.ismb);this.Vl?(n=a.vss_host||"s.youtube.com","s.youtube.com"===
n&&(n=ZF(this.qa)||"www.youtube.com")):n="video.google.com";this.Pk=n;$F(this,a,!0);this.Y=new bF;g.M(this,this.Y);m=b?b.innertubeApiKey:hv("",a.innertube_api_key);l=b?b.innertubeApiVersion:hv("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:hv("",a.innertube_context_client_version);m=g.Q("INNERTUBE_API_KEY")||m;l=g.Q("INNERTUBE_API_VERSION")||l;h=g.Q("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");e=aG(this);d="number"===typeof this.deviceParams.c?Number(this.deviceParams.c):Object.keys(nza).indexOf(this.deviceParams.c);
this.zi={innertubeApiKey:m,innertubeApiVersion:l,NC:h,rI:e,EP:d,innertubeContextClientVersion:g.Q("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,tI:this.hostLanguage,sI:this.region,FP:g.Q("INNERTUBE_HOST_OVERRIDE")||"",GP:!!g.Q("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),uI:!!g.Q("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Hk=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.j=new YE(this.experiments,this.K("html5_force_hfr_support")?!0:bG(this)||Su()||zma()||oza(this),g.bE&&g.yc(56)||g.pB&&
g.yc(54)||oza(this));n=this.Lc;m=this.experiments;l=new eza;g.cG(this)&&(l.j=!0,l.D=.1);m.fb("html5_pctile_bandwidth_estimator")&&(l.j=!1);n&&(l.B=n/8);l.C=480<=HE();this.schedule=new bza(l);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:ev(!1,a.enable_safety_mode);p=this.Ea?!1:OF(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.rd=ev(p,!this.N&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:ev(!1,
a.send_visitor_id_header);var v;"docs"===this.playerStyle&&(b?v=b.disableNativeContextMenu:v=a.disable_native_context_menu);this.disableNativeContextMenu=ev(!1,v);this.Sl=bG(this)&&this.K("enable_skip_intro_button");this.embedConfig=hv("",b?b.serializedEmbedConfig:a.embed_config);this.W=kv(a,g.MF(this));this.B="EMBEDDED_PLAYER_MODE_PFL"===this.W;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.Kb=ev(!1,a.full_window);this.zc=!g.UF(this)&&!dG(this)&&!g.XF(this)&&!0;var w;this.livingRoomAppMode=
fv("LIVING_ROOM_APP_MODE_UNSPECIFIED",(null==b?void 0:null==(w=b.device)?void 0:w.livingRoomAppMode)||a.living_room_app_mode,pza);var y;q=gv(NaN,null==b?void 0:null==(y=b.device)?void 0:y.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:ev(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:ev(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:ev(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=
b?!!b.showMiniplayerUiWhenMinimized:ev(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=ev(!1,a.showbackbutton);var A;this.Mk=null!=(A=a.show_loop_video_toggle)?A:!0;this.Yl=1E-4>Math.random();this.Di=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new $ya(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.K("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.Fd=
new gza;g.M(this,this.Fd);this.pk=ev(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.Q("DATASYNC_ID");this.Xl=g.Q("LOGGED_IN",!1);this.rg=(null==b?void 0:b.allowWoffleManagement)||!1;this.bk=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.K("html5_high_res_logging")?this.V=2:1>4096*Math.random()&&(this.V=1);this.K("html5_ping_queue")&&(this.Ei=new aF);this.og=g.TE(this.experiments,"html5_defer_ad_module_ms");this.Vj=g.TE(this.experiments,"html5_defer_modules_delay_time_millis")};
$F=function(a,b,c){c=void 0===c?!1:c;a.Cd=hv(a.Cd,b.video_id);a.Ra=hv(a.Ra,b.eventid);a.Ra&&(vz=a.Ra);for(var d=[],e=g.r(Object.keys(qza)),f=e.next();!f.done;f=e.next()){f=qza[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.Yl&&(d.sort(),g.rz(new g.Rv("Player client parameters changed after startup",d)));a.userAge=gv(a.userAge,b.user_age);a.Li=hv(a.Li,b.user_display_email);a.userDisplayImage=hv(a.userDisplayImage,b.user_display_image);g.pA(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=hv(a.userDisplayName,b.user_display_name);a.qg=hv(a.qg,b.user_gender);a.csiPageType=hv(a.csiPageType,b.csi_page_type);a.csiServiceName=hv(a.csiServiceName,b.csi_service_name);a.Gi=ev(a.Gi,b.enablecsi);a.pageId=hv(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Oe=b.living_room_session_po_token.toString())};
fG=function(a,b){return!a.D&&Pu()&&Bo(55)&&"3"===a.controlsType&&!b};
g.gG=function(a){a=ZF(a.qa);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.hG=function(a){return g.XF(a)?"music.youtube.com":g.gG(a)};
iG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
jG=function(a){return OF(a)&&!g.UF(a)};
RF=function(a){return TF&&!a.Fk||Ou("nintendo wiiu")||Ou("nintendo 3ds")?!0:!1};
g.XF=function(a){return"music-embed"===a.playerStyle};
aG=function(a){return a.deviceParams.c};
g.cG=function(a){return/^TVHTML5/.test(aG(a))?!0:"TV"===a.deviceParams.cplatform};
rza=function(a){return"TVHTML5"===aG(a)&&a.deviceParams.cver.startsWith("7")};
HF=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===aG(a)};
oza=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.kG=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
bG=function(a){return/web/i.test(aG(a))};
g.lG=function(a){return"WEB"===aG(a).toUpperCase()};
dG=function(a){return"WEB_KIDS"===aG(a)};
g.UF=function(a){return"WEB_UNPLUGGED"===aG(a)};
mG=function(a){return"TVHTML5_UNPLUGGED"===aG(a)};
g.nG=function(a){return g.UF(a)||"TV_UNPLUGGED_CAST"===aG(a)||mG(a)};
g.VF=function(a){return"WEB_REMIX"===aG(a)};
g.oG=function(a){return"WEB_EMBEDDED_PLAYER"===aG(a)};
g.pG=function(a){return!a.K("web_player_i_see_captions_killswitch")&&g.lG(a)};
qG=function(a){return a.K("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.lG(a)};
g.sG=function(a){return(a.deviceIsAudioOnly||!g.bE||Wu||"3"===a.controlsType?!1:g.Yu?a.u&&g.yc(51):!0)||(a.deviceIsAudioOnly||!g.pB||Wu||"3"===a.controlsType?!1:g.Yu?a.u&&g.yc(48):g.yc(38))||(a.deviceIsAudioOnly||!g.KF||Wu||"3"===a.controlsType?!1:g.Yu?a.u&&g.yc(37):g.yc(27))||!a.deviceIsAudioOnly&&g.rG&&!Vu()&&g.yc(11)||!a.deviceIsAudioOnly&&g.Zv&&g.yc("604.4")};
sza=function(a){if(g.SF(a)&&PF)return!1;if(g.pB){if(!g.yc(47)||!g.yc(52)&&g.yc(51))return!1}else if(g.Zv)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
OF=function(a){return"detailpage"===a.La};
g.SF=function(a){return"embedded"===a.La};
tG=function(a){return"leanback"===a.La};
NF=function(a){return"adunit"===a.La||"gvn"===a.playerStyle};
g.WF=function(a){return"profilepage"===a.La};
g.MF=function(a){return a.u&&g.SF(a)&&!NF(a)&&!a.D};
uG=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.rz(new g.Rv("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.vG=function(a){var b=g.hG(a);!a.K("yt_embeds_disable_new_error_lozenge_url")&&tza.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.wG=function(a){return Iu(a||"")};
xG=function(a){return 1<=a.V};
ZF=function(a){var b=g.qi(a);return(a=Number(g.pi(4,a))||null)?b+":"+a:b};
yG=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(";")};
zG=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
AG=function(a){return 1===a||2===a};
BG=function(a,b){b=void 0===b?0:b;if(a instanceof zG)return a;a=a&&a instanceof Error?a:Error(""+a);AG(b)?g.qz(a):g.rz(a);return new zG(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
CG=function(a){this.j=a};
DG=function(a,b,c){if(c)return Hu();c={};var d=ZD();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.zg().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].zg().We())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.r(OD);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?Iu(a):Hu()};
uza=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.j=""};
vza=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Ic)?void 0:d.getId())===b});
a.j=b};
EG=function(a,b,c){a.cpn&&(b=g.wi(b,{cpn:a.cpn}));c&&(b=g.wi(b,{e3a:c}));return b};
wza=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
xza=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,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
yza=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.gx=a.gx;this.Td=a.Td||"";this.Ic=a.Ic;this.audioChannels=a.audioChannels;this.j=""};
zza=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 h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.XD(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new yza({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,gx:n?l[n]:void 0,Td:f.drm_families,Ic:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
FG=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
Aza=function(a,b){if(!(Wu||Tu()||Ru()))return null;a=zza(b,a.K("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 h=f.value;h.Ic&&(f=h.Ic.getId(),c[f]||(h=new g.sB(f,h.Ic),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
Fza=function(a,b,c,d,e,f,h){if(!(Wu||Tu()||Ru()))return Hu();var l={},m=Bza(c),n=zza(c,a.K("html5_filter_fmp4_in_hls"),a.j.D,l);if(!n)return h({noplst:1}),Hu();Cza(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var v=[],w=[],y=null,A="";d=d&&d.match(/hls_timedtext_playlist/)?new yza({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ic:new g.XD("English","en",!1)}):null;for(var B=g.r(Object.keys(n)),E=B.next();!E.done;E=B.next())if(E=E.value,!a.K("html5_disable_drm_hfr_1080")||
"383"!==E&&"373"!==E){E=g.r(n[E]);for(var G=E.next();!G.done;G=E.next())if(G=G.value,G.width){for(var H=g.r(G.u),I=H.next();!I.done;I=H.next())if(I=I.value,n[I]){G.j=I;break}G.j||(G.j=Dza(n,G));if(H=n[G.j])if(c.push(G),"fairplay"===G.Td&&(q=p),I="","PQ"===G.gx?I="smpte2084":"HLG"===G.gx&&(I="arib-std-b67"),I&&(A=I),w.push(Eza(H,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,I)),!y||G.width*G.height*G.fps>y.width*y.height*y.fps)y=G}else v.push(G)}else l[E]="disdrmhfr";w.reduce(function(O,
L){return L.zg().isEncrypted()&&O},!0)&&(q=p);
e=Math.max(e,0);p=y||{};n=void 0===p.fps?0:p.fps;y=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.K("html5_native_audio_track_switching");w.push(Eza(v,c,d,f,"93",y,p,n,m,"auto",e,q,A,B));Object.entries(l).length&&h(l);return DG(a.j,w,fG(a,b))};
Eza=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w){for(var y=0,A="",B=g.r(a),E=B.next();!E.done;E=B.next())E=E.value,A||(A=E.itag),E.audioChannels&&E.audioChannels>y&&(y=E.audioChannels,A=E.itag);e=new RD(e,"application/x-mpegURL",{audio:new LD(0,y),video:new ND(f,h,l,null,void 0,n,void 0,v),Td:q,xQ:A});a=new uza(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new FG(e,a,m)};
Bza=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};
Dza=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.Td===b.Td&&!e.audioChannels)return d}return""};
Cza=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]};
GG=function(a,b){this.j=a;this.u=b};
Gza=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.LB(h.url,!0);if(h.s){var l=h.sp,m=Uva(decodeURIComponent(h.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]);h=WD(h.type,h.quality,h.itag,h.width,h.height);e.push(new GG(h,f))}}return DG(a.j,e,fG(a,b))};
HG=function(a,b){this.j=a;this.u=b};
Hza=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=WD(e.type,"medium","0");d.push(new HG(f,e.url))}return DG(a.j,d,fG(a,b))};
Iza=function(a){return["OK","LIVE_STREAM_OFFLINE"].includes(a.status)};
g.IG=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.KG=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.JG(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.LG=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.JG=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("")};
Mza=function(a,b,c,d){a||(a=b&&Jza.hasOwnProperty(b)&&Kza.hasOwnProperty(b)?Kza[b]+"_"+Jza[b]:void 0);b=a;if(!b)return null;a=b.match(Lza);if(!a||5!==a.length)return null;if(a=b.match(Lza)){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};
MG=function(a,b){for(var c={},d=g.r(Object.keys(Nza)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.pA(f)&&(c[Nza[e]]=f)}return c};
NG=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(Oza)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Oza[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Pza(h.url);g.pA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Pza(a.url),g.pA(a)&&(b["maxresdefault.jpg"]=a));return b};
Pza=function(a){return a.startsWith("//")?"https:"+a:a};
Rza=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Qza[a];return null};
OG=function(a){return a&&a.baseUrl||""};
PG=function(a){a=g.nu(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};
Sza=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.cj=b)};
Uza=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=Tza(d.baseUrl);if(!e)return;d=new g.IG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.zA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.GG=b.audioTracks||[];a.UN=b.defaultAudioTrackIndex||0;a.HG=b.translationLanguages?g.Pk(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.zA(f.languageName)}}):
[];
a.IB=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Xza=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(h){var l=g.av(h,Vza);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.av(h,Wza))return Object.assign({is_yto_interstitial:!0},lu(h))});
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,Fl:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Fl: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,
Fl:0===f?5:7})}}};
Yza=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
Zza=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)};
cAa=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=g.av(a,$za)||a.signatureCipher)?
(c=lu(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=c);(c=a.projectionType)&&(b.projection_type=c);(c=a.stereoLayout)&&(b.stereo_layout=aAa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=c);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(QG[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=Rza(a))&&(b.eotf=c);(c=a.colorInfo)&&(c=c.primaries)&&(c=bAa[c])&&(b.primaries=c);a.isDrc&&(b.drc="1");return g.ui(b)};
RG=function(a,b){this.type=a||"";this.id=b||""};
g.SG=function(a){return new RG(a.substr(0,2),a.substr(2))};
g.TG=function(a,b){this.Oa=a;this.author="";this.vy=null;this.playlistLength=0;this.zE=this.sessionData=null;this.Zf={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=ju(a,"&");var c;this.zE=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Zf=MG(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new RG("UU","PLAYER_"+c)).toString();break;
default:if(a=b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.SG(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.UG=function(a,b){this.Oa=a;this.kp=this.author="";this.vy=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Ls=this.lengthText="";this.sessionData=null;this.Zf={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.kp=b.kp||"";if(a=b.endscreen_autoplay_session_data)this.vy=ju(a,"&");this.wy=b.wy;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.Ls=b.Ls||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=ju(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Zf=MG(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
dAa=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,h,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(h=f.sets)?void 0:null==(l=h[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=g.av(m,g.VG))&&(a.JN=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.vy=d};
eAa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
WG=function(){var a=fAa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Pka.apply(null,[Qka.apply(null,g.t(b))].concat(g.t(c)));this.store=Ska(a,void 0,b)};
g.XG=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 h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.t(h),g.t(l)):l;else if(!Array.isArray(l)&&g.Pa(l)&&!Array.isArray(h)&&g.Pa(h))d[f]=g.XG(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Rv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,d3a:h,Ja:l}),g.qz(b),a}return d};
YG=function(a){this.j=a;this.pos=0;this.u=-1};
ZG=function(a){var b=aC(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=aC(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
$G=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=ZG(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:ZG(a);break;case 1:a.pos+=8;break;case 2:d=ZG(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
aH=function(a,b){if($G(a,b))return ZG(a)};
gAa=function(a,b){if($G(a,b))return!!ZG(a)};
bH=function(a,b){if($G(a,b)){b=ZG(a);var c=YB(a.j,a.pos,b);a.pos+=b;return c}};
cH=function(a,b){if(a=bH(a,b))return g.gC(a)};
hAa=function(a,b,c){if(a=bH(a,b))return c(new YG(new TB([a])))};
dH=function(a,b){a=a instanceof Uint8Array?new TB([a]):a;return b(new YG(a))};
iAa=function(){this.pos=0;this.u=[];this.j=new Uint8Array(4096);this.view=new DataView(this.j.buffer)};
eH=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.j.subarray(0,a.pos));a.j=b;a.view=new DataView(a.j.buffer)}};
fH=function(a,b){if(268435455<b){eH(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(eH(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
gH=function(a,b,c){void 0!==c&&(fH(a,b<<3|0),fH(a,c))};
hH=function(a,b,c){void 0!==c&&gH(a,b,c?1:0)};
iH=function(a,b,c){void 0!==c&&(fH(a,b<<3|2),b=c.length,fH(a,b),eH(a,b),a.j.set(c,a.pos),a.pos+=b)};
jH=function(a,b,c){void 0!==c&&(jAa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),eH(a,1.2*c.length),b=iC(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(eH(a,b),b=iC(c,a.j.subarray(a.pos))),a.pos+=b,kAa(a))};
jAa=function(a,b,c){c=void 0===c?2:c;fH(a,b<<3|2);a.u.push(a.pos);a.u.push(c);a.pos+=c};
kAa=function(a){for(var b=a.u.pop(),c=a.u.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
kH=function(a,b,c,d,e){c&&(jAa(a,b,void 0===e?3:e),d(a,c),kAa(a))};
lH=function(a,b){var c=new iAa;b(c,a);return new Uint8Array(c.j.buffer,0,c.pos)};
g.mH=function(a){var b=new YG(new TB([Ec(decodeURIComponent(a))]));a=cH(b,2);b=aH(b,4);var c=lAa[b];if("undefined"===typeof c)throw a=new g.Rv("Failed to recognize field number",{name:"EntityKeyHelperError",I2a:b}),g.qz(a),a;return{cY:b,entityType:c,entityId:a}};
g.nH=function(a,b){var c=new iAa;iH(c,2,gwa(a));a=mAa[b];if("undefined"===typeof a)throw b=new g.Rv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.qz(b),b;gH(c,4,a);gH(c,5,1);b=new Uint8Array(c.j.buffer,0,c.pos);return encodeURIComponent(g.Bc(b))};
oH=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))};
nAa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.XG(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))};
oAa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.qz(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.qz(new g.Rv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.sf(e.payload);
return oH(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.mH(e).entityType;l=oH(d,m,e)}catch(q){if(q instanceof Error)g.qz(new g.Rv("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.qz(new g.Rv("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.sf(e.payload);var n,p;return nAa(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 oH(a,c.entityType,c.key,c.bY);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return oH(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,nAa(a,c.entityType,c.key,c.bY,c.X2a);default:return a}};
qAa=function(a,b){var c=g.Ha("ytDebugData.callbacks");c||(c={},g.Fa("ytDebugData.callbacks",c));if(g.T("web_dd_iu")||pAa.includes(a))c[a]=b};
pH=function(a){this.j=new Fo(a)};
rAa=function(){if(void 0===qH){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Po(g.Sv()+"::yt-player"))){qH=new pH(a);break a}qH=void 0}}return qH};
g.rH=function(){var a=rAa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.sAa=function(a){var b=rAa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.sH=function(a){return g.rH()[a]||0};
g.tH=function(a,b){var c=g.rH();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.sAa(c))};
g.uH=function(a){return g.z(function(b){return b.return(g.vw(tAa(),a))})};
xH=function(a,b,c,d,e,f,h,l,m){var n,p,q,v,w,y;return g.z(function(A){switch(A.j){case 1:return n=g.sH(a),4===n?A.return(4):g.x(A,g.Cw(),2);case 2:p=A.u;if(!p)throw g.aw("wiac");if(!m||void 0===l){A.Ma(3);break}return g.x(A,uAa(m,l),4);case 4:l=A.u;case 3:return q=c.lastModified||"0",g.x(A,g.uH(p),5);case 5:return v=A.u,g.ra(A,6),vH++,g.x(A,g.kw(v,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ub:!0},function(B){if(void 0!==h&&void 0!==l){var E=""+a+"|"+b.id+"|"+q+"|"+String(h).padStart(10,
"0");E=g.lw(B.objectStore("media"),l,E)}else E=g.cw.resolve(void 0);var G=vAa(a,b.isVideo()),H=vAa(a,!b.isVideo()),I={fmts:wAa(d),format:c||{}};G=g.lw(B.objectStore("index"),I,G);var O=-1===d.downloadedEndTime;I=O?B.objectStore("index").get(H):g.cw.resolve(void 0);var L={fmts:"music",format:{}};B=O&&e&&!b.isVideo()?g.lw(B.objectStore("index"),L,H):g.cw.resolve(void 0);return f?g.cw.all([B,I,E,G]).then(function(P){P=g.r(P);P.next();P=P.next().value;vH--;var S=g.sH(a);if(4!==S&&O&&e||void 0!==P&&g.wH(P.fmts))S=
1,g.tH(a,S);return S}):g.cw.all([I,
E,G]).then(function(P){P=g.r(P).next().value;vH--;var S=g.sH(a);4!==S&&O&&void 0!==P&&g.wH(P.fmts)&&(S=1,g.tH(a,S));return S})}),8);
case 8:return A.return(A.u);case 6:w=g.va(A);vH--;y=g.sH(a);if(4===y)return A.return(y);g.tH(a,4);throw w;}})};
g.xAa=function(a){var b,c;return g.z(function(d){if(1==d.j)return g.x(d,g.Cw(),2);if(3!=d.j){b=d.u;if(!b)throw g.aw("ri");return g.x(d,g.uH(b),3)}c=d.u;return d.return(g.kw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.vna(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
AAa=function(a,b,c,d,e){var f,h,l;return g.z(function(m){if(1==m.j)return g.x(m,g.Cw(),2);if(3!=m.j){f=m.u;if(!f)throw g.aw("rc");return g.x(m,g.uH(f),3)}h=m.u;l=g.kw(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Ub:yAa},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){if(void 0===n)throw Error("No data from indexDb");return zAa(e,n)}).catch(function(n){throw new g.Rv("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.wH=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
vAa=function(a,b){return""+a+"|"+(b?"v":"a")};
wAa=function(a){var b={};return ku((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
CAa=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.BAa)?(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(h){return h.start+"-"+h.end}).join(",");
return c};
DAa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.QA=wF(a.ustreamerConfig)||void 0)};
yH=function(a){g.cz.call(this);this.j=null;this.B=new So;this.j=null;this.J=new Set;this.D=a||""};
EAa=function(a,b,c){for(c=zH(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(AH(d,b))&&(d=g.BH(d,b)))return d;c--}return g.BH(a.levels[0],b)};
GAa=function(a,b,c){c=zH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=AH(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),d.B.enqueue(f,{bQ:f,rQ:e}))}FAa(a)};
FAa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=HAa(a,b)}};
HAa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.bQ].pe(b.rQ);c.onload=function(){var d=b.bQ,e=b.rQ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);FAa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.jB()-1);e=[e,d];a.X("l",e[0],e[1])};
return c};
g.CH=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};
AH=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.BH=function(a,b){b>=a.DF()&&a.Cu();var c=AH(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Cu()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.pe(c),column:b,columns:h,row:e,rows:d,Az:a.width*h,Rs:a.height*d}};
DH=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;yH.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)};
IAa=function(a,b,c){return(a=a.levels[b])?a.kB(c):-1};
zH=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};
EH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.CH.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
FH=function(a,b,c,d){DH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].KM(c)};
JAa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.wi(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.HH=function(a,b){g.cz.call(this);this.Oa=a;this.adModule=!1;this.adaptiveFormats="";this.EQ=this.Ok=this.adQueryId=this.Gs=null;this.wH={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.Td=null;this.dK=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ra="";this.GI=this.Hs=!1;this.YM=null;this.vg=this.Ng=this.Ik=this.gF=!1;this.D=null;this.yR=this.Ei=!1;this.Ld=NaN;this.nk=!1;this.Lx=0;this.cQ=!1;this.fu={};this.fG=this.cycToken=
null;this.author="";this.Jx=0;this.Qk=!1;this.Ix=null;this.iG=[];this.Dr=this.UJ=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Cd=this.rd="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.ub=0;this.Hk=this.Ya=this.u=null;this.FL="";this.qa=!1;this.Lc=this.Mk=0;this.DI=this.pipable=this.Dt=this.Vm=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Cb=this.isShortsEligible=this.isPrivate=
this.isListed=this.bF=this.UR=this.mutedAutoplay=this.cn=!1;this.iF="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.dF=this.Li=this.xf=!1;this.latencyClass="UNKNOWN";this.PL=this.QL=this.enablePreroll=this.enableServerStitchedDai=this.ze=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Yb=0;this.reloadReason="";this.eF=this.TL=this.jh=!1;this.keywords={};this.Eb="";this.Sl=0;this.Ju=!1;this.liveChunkReadahead=
NaN;this.Vj=null;this.ir=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.BT=this.paygated=!1;this.Wj=[];this.W=[];this.racyCheckOk=!1;this.kN={};this.lA=0;this.B=null;this.autonavState=1;this.JN=null;this.shortDescription="";this.La=this.cG=!1;this.Hu=this.Fd=this.startSeconds=0;this.Lu=this.ZS=this.Fk=GH;this.Pk=this.suggestions=null;this.jr=this.Rr=void 0;this.Ak=null;this.eG=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.wt=this.suggestedAction=
this.multiMarkersPlayerBarRenderer=this.iJ=void 0;this.Dd=[];this.oi=[];this.hlsFormats=this.Bk="";this.Qq=this.Gu=this.Di=this.zc=this.eb=this.Vl=this.Oq=null;this.Ej="vvt";this.Ne=!1;this.FI=null;this.mS="";this.hm=NaN;this.im=this.Pu=this.fm=this.Ou=this.Nu=this.Jk=this.cm=this.Ru=this.gm=this.Qu="";this.Kk=null;this.RP=!1;this.J={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.HL=this.GL=NaN;this.cf=this.Rl=this.Pe=this.KL=this.IL=!1;this.Xl=!0;this.Zf={};this.captionTracks=
[];this.GG=[];this.UN=0;this.HG=[];this.IB=!1;this.Il=new g.sB("und",new g.XD("Default","und",!0));this.hF=0;this.N=null;this.ju=[];this.CL=!1;this.Oe=[];this.Mu=this.Mc="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.NF=this.playerResponse=this.AT=this.bk=this.Kl=this.Jh=this.sL=this.kI=this.BG=null;this.Mt=!1;this.V=null;this.isInlinePlaybackNoAd=this.Gi=this.useCobaltWidevine=this.SP=this.Ds=!1;this.YK=!0;this.Kd=this.bf=NaN;this.defraggedFromSubfragments=this.Mm=this.hasSubfragmentedFmp4=
!1;this.liveExperimentalContentId=NaN;this.Kx=this.CH=this.rg=!1;this.interstitials=[];this.C=this.cF=!1;this.Ua="";this.allowImaMonetization=!1;this.Dc=this.Tl=this.cN="";this.Ea=this.JL=!1;this.qg=0;this.bN=this.Zl="";this.RF=this.PF=this.aF=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Yl=!1;this.rk=this.zi=!0;this.errorDetail=this.userGenderAge="";this.gG=this.hG=this.getSharePanelCommand=this.removeFromWatchLaterCommand=
this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Vk=this.errorReason=this.errorCode=null;this.gt=this.Js="";this.Jl=!1;this.gr=[];this.Nc=this.Kb=this.yc=this.Rh=this.Xe=0;this.fetchType=null;this.lN=!0;this.transitionEndpointAtEndOfStream=void 0;this.UI=this.TR=-1;this.pk=this.He=!1;this.Ed=null;this.va="";this.Ki=!1;this.watchUrl=null;this.Pq=[];this.visibleOnLoadKeys=[];this.kQ=[];this.inlineMetricEnabled=this.Sq=!1;this.embedsRctn=this.embedsRct=
"";this.K("web_player_ux_module_wait")&&this.Oa.zc&&this.W.push("ux");this.He=this.K("web_new_autonav_countdown");this.pk=this.K("web_new_big_thumbnail_endscreen");KAa(this,b)};
g.KH=function(a,b,c){b&&b.cpn&&g.rz(new g.Rv("CPN provided in VideoData update",{a3a:b.cpn,nh:a.clientPlaybackNonce,gZ:c}));c?(jv(b),KAa(a,b),IH(a)&&JH(a)):(b=b||{},LAa(a,b),MAa(a,b),NAa(a,b),a.X("dataupdated"))};
NAa=function(a,b){a.fflags=hv(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ra=qA(c));a.Hs=ev(a.Hs,b.iv_ads_only);a.GI=ev(a.GI,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.i4=c;a.isPharma=ev(a.isPharma,b.is_pharma);a.author=hv(a.author,b.author);a.rd=Tza(b.ttsurl)||a.rd;a.Qk=ev(a.Qk,b.cc_asr);a.Cd=hv(a.Cd,b.channel_path);a.channelBanner=hv(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=hv(a.profilePicture,c);a.videoCountText=hv(a.videoCountText,b.video_count_text);
a.autonavState=fv(a.autonavState,b.autonav_state,OAa);a.clientPlaybackNonce=hv(a.clientPlaybackNonce,b.cpn);a.subscribed=ev(a.subscribed,b.subscribed);a.rawViewCount=gv(a.rawViewCount,b.view_count);a.shortViewCount=hv(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=hv(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=hv(a.lengthText||"",b.lengthText);a.Ls=hv(a.Ls||"",b.Ls);a.kp=hv(a.kp||"",b.kp);a.title=hv(a.title,b.title);a.subtitle=hv(a.subtitle,b.subtitle);a.expandedTitle=
hv(a.expandedTitle,b.expanded_title);a.expandedSubtitle=hv(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=hv(a.ariaLabel,b.aria_label);a.ypcPreview=hv(a.ypcPreview,b.ypc_preview);a.HI=hv(a.HI,b.ypc_origin);a.Ne=ev(a.Ne,b.ypc_is_premiere_trailer);a.Zl=hv(a.Zl,b.ypc_clickwrap_message);a.paygated=ev(a.paygated,b.paygated);a.RP=ev(a.RP,b.requires_purchase);a.showShareButton=!ev(!a.showShareButton,b.ss);a.zi=ev(a.zi,b.showwatchlater);a.rk=ev(a.rk,b.shownotifybutton);a.Yl=ev(a.Yl,b.copy_share);if(c=
b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=PAa(c.split(","));if(c=b.rvs)a.suggestions=mu(c).map(function(d){return d.playlist||d.list||d.api?new g.TG(a.Oa,d):new g.UG(a.Oa,d)}),a.K("web_player_decouple_autonav")||(a.Pk=a.suggestions[0]);
a.contentCheckOk=ev(a.contentCheckOk,b.cco);a.racyCheckOk=ev(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=ev(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=hv(a.oauthToken,b.oauth_token);a.Eb=hv(a.Eb,b.kpt);a.visitorData=hv(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=ju(c,"&");a.St=hv(a.St,b.endscreen_ad_tracking_data);a.CQ=ev(a.CQ,b.wait_for_vast_info_cards_xml);a.dG=ev(a.dG,b.suppress_creator_endscreen);a.SL=ev(a.SL,b.is_trueview_action);a.qQ=hv(a.qQ,b.tracking_list);
a.Js=hv(a.Js,b.clip);a.gt=hv(a.gt,b.clipt);QAa(a,b)};
KAa=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.Vk=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.xz(16));a.Cb=ev(a.Oa.Cb,b.livemonitor);LAa(a,b);var h=b.raw_player_response;if(h)a.NF=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;
if(m)for(var n=g.r(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.Hs=!0);q.allowInPlaceSwitch&&(a.GI=!0);var v=q.loadPolicy;v&&(a.annotationsLoadPolicy=RAa[v]);var w=q.invideoUrl;w&&(a.Ra=qA(w));a.gF=!0;break}}var y=a.playerResponse.attestation;y&&Sza(a,y);var A=a.playerResponse.cotn;A&&(a.cotn=A);var B=a.playerResponse.heartbeatParams;if(B){var E=B.heartbeatToken;E&&(a.drmSessionId=B.drmSessionId||"",a.heartbeatToken=E,a.GL=Number(B.intervalMilliseconds),
a.HL=Number(B.maxRetries),a.IL=!!B.softFailOnError,a.KL=!!B.useInnertubeHeartbeatsForDrm,a.Ik=!0);a.heartbeatServerData=B.heartbeatServerData;a.K("heartbeat_iff_heartbeat_params_filled")&&(a.Ik=!0);var G;a.nk=!(null==(G=B.heartbeatAttestationConfig)||!G.requiresAttestation)}var H=a.playerResponse.messages;H&&Yza(a,H);var I=a.playerResponse.multicamera;if(I){var O=I.playerLegacyMulticameraRenderer;if(O){var L=O.metadataList;L&&(a.bN=L,a.Oe=mu(L))}}var P=a.playerResponse.overlay;if(P){var S=P.playerControlsOverlayRenderer;
if(S){var ca=S.controlBgHtml;null!=ca?(a.Ua=ca,a.C=!0):(a.Ua="",a.C=!1);if(S.mutedAutoplay){var R=g.av(S.mutedAutoplay,SAa);if(R&&R.endScreen){var na=g.av(R.endScreen,TAa);na&&na.text&&(a.cN=g.zA(na.text))}}else a.mutedAutoplay=!1}}if(g.MF(a.Oa)&&a.Oa.K("embeds_web_enable_epm_dni_parity_fix")){var sa=a.R(),Aa;void 0!==(null==P?void 0:null==(Aa=P.playerControlsOverlayRenderer)?void 0:Aa.controlBgHtml)?sa.W="EMBEDDED_PLAYER_MODE_PFP":"EMBEDDED_PLAYER_MODE_PFP"===sa.W&&(sa.W="EMBEDDED_PLAYER_MODE_DEFAULT")}var wa=
a.playerResponse.playabilityStatus;if(wa){var ta=wa.backgroundability;ta&&ta.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Ma,Ka;if(null==(Ma=wa.offlineability)?0:null==(Ka=Ma.offlineabilityRenderer)?0:Ka.offlineable)a.offlineable=!0;var qa=wa.contextParams;qa&&(a.contextParams=qa);var nb=wa.pictureInPicture;nb&&nb.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);wa.playableInEmbed&&(a.allowEmbed=!0);var Sb=wa.ypcClickwrap;if(Sb){var Ua=Sb.playerLegacyDesktopYpcClickwrapRenderer,
$a=Sb.ypcRentalActivationRenderer;if(Ua)a.Zl=Ua.durationMessage||"",a.vg=!0;else if($a){var bc=$a.durationMessage;a.Zl=bc?g.zA(bc):"";a.vg=!0}}var Sa=wa.errorScreen;if(Sa){if(Sa.playerLegacyDesktopYpcTrailerRenderer){var ab=Sa.playerLegacyDesktopYpcTrailerRenderer;a.im=ab.trailerVideoId||"";var tb=Sa.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var fc=tb&&tb.ypcTrailerRenderer}else if(Sa.playerLegacyDesktopYpcOfferRenderer)ab=Sa.playerLegacyDesktopYpcOfferRenderer;else if(Sa.ypcTrailerRenderer){fc=
Sa.ypcTrailerRenderer;var Tb=fc.fullVideoMessage;a.cm=Tb?g.zA(Tb):"";var Lc,nc;a.im=(null==(Lc=g.av(fc,UAa))?void 0:null==(nc=Lc.videoDetails)?void 0:nc.videoId)||""}ab&&(a.fm=ab.itemTitle||"",ab.itemUrl&&(a.Pu=ab.itemUrl),ab.itemBuyUrl&&(a.Nu=ab.itemBuyUrl),a.Ou=ab.itemThumbnail||"",a.Ru=ab.offerHeadline||"",a.gm=ab.offerDescription||"",a.Jk=ab.offerId||"",a.Qu=ab.offerButtonText||"",a.FI=ab.offerButtonFormattedText||null,a.hm=ab.overlayDurationMsec||NaN,a.cm=ab.fullVideoMessage||"",a.Ng=!0);if(fc){var bd=
g.av(fc,UAa);if(bd)a.Kk={raw_player_response:bd};else{var cd=g.av(fc,VAa);a.Kk=cd?lu(cd):null}a.Ng=!0}}}var ob=a.playerResponse.playbackTracking;if(ob){var Pb=b,Hb=OG(ob.googleRemarketingUrl);Hb&&(a.googleRemarketingUrl=Hb);var gc=OG(ob.youtubeRemarketingUrl);gc&&(a.youtubeRemarketingUrl=gc);var Kb=OG(ob.ptrackingUrl);if(Kb){var hc=PG(Kb),Ga=hc.oid;Ga&&(a.iN=Ga);var Ia=hc.pltype;Ia&&(a.jN=Ia);var Sd=hc.ptchn;Sd&&(a.hN=Sd);var Ja=hc.ptk;Ja&&(a.Rq=encodeURIComponent(Ja));var Mc=hc.m;Mc&&(a.Ot=Mc)}var vf=
OG(ob.ppvRemarketingUrl);vf&&(a.ppvRemarketingUrl=vf);var ie=OG(ob.qoeUrl);if(ie){for(var je=g.nu(ie),ke=g.r(Object.keys(je)),Td=ke.next();!Td.done;Td=ke.next()){var Ce=Td.value,pe=je[Ce];je[Ce]=Array.isArray(pe)?pe.join(","):pe}a.aS=je;var td=je.cat;td&&(a.Tl=td);var yb=je.live;yb&&(a.iF=yb);var pb=je.drm_product;pb&&(a.dK=pb)}var rc=OG(ob.remarketingUrl);if(rc){a.remarketingUrl=rc;var id=PG(rc);id.foc_id&&(a.J.focEnabled=!0);var le=id.data;le&&(a.J.rmktEnabled=!0,le.engaged&&(a.J.engaged="1"));
a.J.baseUrl=Cea(rc)+mi(g.pi(5,rc))}var Pe=OG(ob.videostatsPlaybackUrl);if(Pe){var Fc=PG(Pe);a.Bd=Fc;var Ud=Fc.adformat;if(Ud&&(Pb.adformat=Ud,!a.K("process_video_data_ad_format_in_player_tracking_killswitch"))){var Ad=a.R(),Vd=Mza(Ud,a.Mu,Ad.u,Ad.C);Vd&&(a.adFormat=Vd)}var rg=Fc.aqi;rg&&(Pb.ad_query_id=rg);var Wd=Fc.autoplay;Wd&&(a.cn="1"==Wd,a.Dt="1"==Wd);var Pc=Fc.autonav;Pc&&(a.Vm="1"==Pc);var qe=Fc.delay;qe&&(a.ub=Yg(qe));var Qc=Fc.ei;Qc&&(a.eventId=Qc);"adunit"===Fc.el&&(a.cn=!0);var De=Fc.feature;
De&&(a.Ul=De);var Xd=Fc.list;Xd&&(a.playlistId=Xd);var ef=Fc.of;ef&&(a.QF=ef);var ih=Fc.osid;ih&&(a.osid=ih);var Ig=Fc.referrer;Ig&&(a.referrer=Ig);var ff=Fc.sdetail;ff&&(a.Fu=ff);var oc=Fc.sourceid;oc&&(a.Gda=oc);var Yd=Fc.ssrt;Yd&&(a.Wl="1"==Yd);var Gd=Fc.subscribed;Gd&&(a.subscribed="1"==Gd,a.J.subscribed=Gd);var Zd=Fc.uga;Zd&&(a.userGenderAge=Zd);var Jg=Fc.upt;Jg&&(a.Iu=Jg);var pc=Fc.vm;pc&&(a.videoMetadata=pc)}var zc=OG(ob.videostatsWatchtimeUrl);if(zc){var Rc=PG(zc).ald;Rc&&(a.xs=Rc)}if(ob.promotedPlaybackTracking){var Mb=
ob.promotedPlaybackTracking;Mb.startUrls&&(a.mu=Mb.startUrls);Mb.firstQuartileUrls&&(a.WF=Mb.firstQuartileUrls);Mb.secondQuartileUrls&&(a.XF=Mb.secondQuartileUrls);Mb.thirdQuartileUrls&&(a.YF=Mb.thirdQuartileUrls);Mb.completeUrls&&(a.VF=Mb.completeUrls);Mb.engagedViewUrls&&(1<Mb.engagedViewUrls.length&&g.rz(new g.Rv("There are more than one engaged_view_urls.")),a.og=Mb.engagedViewUrls[0])}}var Hd=a.playerResponse.playerCueRanges;Hd&&0<Hd.length&&(a.cueRanges=Hd);a:{var Kg=a.playerResponse.adPlacements;
if(Kg)for(var gf=g.r(Kg),re=gf.next();!re.done;re=gf.next()){var Lg=void 0,ii=void 0,Qe=null==(Lg=re.value.adPlacementRenderer)?void 0:null==(ii=Lg.renderer)?void 0:ii.videoAdTrackingRenderer;if(Qe){var Zf=Qe;break a}}Zf=null}var Hh=Zf;ob&&ob.promotedPlaybackTracking&&Hh&&g.rz(new g.Rv("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Hh&&(a.BT=!0);var Ee=a.playerResponse.playerAds;if(Ee)for(var sg=b,Mg=g.r(Ee),Ng=Mg.next();!Ng.done;Ng=Mg.next()){var aj=Ng.value;if(aj){var jh=
aj.playerLegacyDesktopWatchAdsRenderer;if(jh){var hf=jh.playerAdParams;if(hf){"1"==hf.autoplay&&(a.cn=!0,a.Dt=!0);a.Ok=hf.encodedAdSafetyReason||null;void 0!==hf.showContentThumbnail&&(a.Xl=!!hf.showContentThumbnail);sg.enabled_engage_types=hf.enabledEngageTypes;break}}}}var Vc=a.playerResponse.playerConfig;if(Vc){var wf=Vc.manifestlessWindowedLiveConfig;if(wf){var xf=Number(wf.minDvrSequence),Og=Number(wf.maxDvrSequence),tg=Number(wf.minDvrMediaTimeMs),Db=Number(wf.maxDvrMediaTimeMs),bj=Number(wf.startWalltimeMs);
xf&&(a.Xe=xf);tg&&(a.Kb=tg/1E3);Og&&(a.Rh=Og);Db&&(a.yc=Db/1E3);bj&&(a.Nc=bj/1E3)}var ji=Vc.daiConfig;if(ji){if(ji.enableDai){a.ze=!0;var Uk=ji.enableServerStitchedDai;Uk&&(a.enableServerStitchedDai=Uk);var Kj=ji.enablePreroll;Kj&&(a.enablePreroll=Kj)}"DAI_TYPE_SS_DISABLED"===ji.daiType&&(a.QL=!0)}var kh=Vc.audioConfig;if(kh){var zf=kh.loudnessDb;null!=zf&&(a.Ld=zf);kh.audioMuted&&(a.Ei=!0);kh.muteOnStart&&(a.yR=!0)}var cj=Vc.playbackEndConfig;if(cj){var Cn=cj.endSeconds;Cn&&a.mutedAutoplay&&(a.endSeconds=
Cn)}var Lj=Vc.fairPlayConfig;if(Lj){var Id=Lj.certificate;Id&&(a.Ya=wF(Id));var Pg=Number(Lj.keyRotationPeriodMs);0<Pg&&(a.Ut=Pg);var es=Number(Lj.keyPrefetchMarginMs);0<es&&(a.Tt=es)}var ki=Vc.playbackStartConfig;if(ki){a.RF=Number(ki.startSeconds);var Dn=ki.liveUtcStartSeconds,qp=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;Dn&&!qp&&(a.liveUtcStartSeconds=Number(Dn));var En=ki.startPosition;if(En){var Eb=En.utcTimeMillis;Eb&&!qp&&(a.liveUtcStartSeconds=.001*Number(Eb));var ZB=En.streamTimeMillis;
ZB&&(a.Hu=.001*Number(ZB))}a.progressBarStartPosition=ki.progressBarStartPosition;a.progressBarEndPosition=ki.progressBarEndPosition}else{var uw=Vc.skippableSegmentsConfig;if(uw){var $B=uw.introSkipDurationMs;$B&&(a.aF=Number($B)/1E3);var Nb=uw.outroSkipDurationMs;Nb&&(a.PF=Number(Nb)/1E3)}}var $2=Vc.skippableIntroConfig;if($2){var Vra=Number($2.startMs),Wra=Number($2.endMs);isNaN(Vra)||isNaN(Wra)||(a.bf=Vra,a.Kd=Wra)}var Xra=Vc.streamSelectionConfig;Xra&&(a.Lc=Number(Xra.maxBitrate));var Yra=Vc.vrConfig;
Yra&&(a.Ds="1"==Yra.partialSpherical);var eD=Vc.webDrmConfig;if(eD){eD.skipWidevine&&(a.SP=!0);var Zra=eD.widevineServiceCert;Zra&&(a.Hk=wF(Zra));eD.useCobaltWidevine&&(a.useCobaltWidevine=!0);eD.startWithNoQualityConstraint&&(a.Gi=!0)}var $ra=Vc.mediaCommonConfig;if($ra){var GM=$ra.dynamicReadaheadConfig;GM&&(a.maxReadAheadMediaTimeMs=GM.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=GM.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=GM.readAheadGrowthRateMs||NaN)}var asa=Vc.inlinePlaybackConfig;
asa&&(a.YK=!!asa.showAudioControls);var a3=Vc.embeddedPlayerConfig;if(a3&&a3.embeddedPlayerMode&&a.K("embeds_web_enable_player_response_embeds_mode")){var bsa=a.R(),csa=a3.embeddedPlayerMode;bsa.W=csa;bsa.B="EMBEDDED_PLAYER_MODE_PFL"===csa}}var sm=a.playerResponse.streamingData;if(sm){var b3=sm.adaptiveFormats;if(b3){var dsa=sm.streamingUrlTemplate;if(a.K("enable_streaming_url_template")&&dsa)for(var esa=g.r(b3),Nh=esa.next();!Nh.done;Nh=esa.next()){var HM=Nh.value;!HM.url&&HM.distinctParams&&(HM.url=
dsa+"&"+HM.distinctParams)}var fsa=[],gsa=g.r(b3);for(Nh=gsa.next();!Nh.done;Nh=gsa.next()){var IM=Nh.value;fsa.push(cAa(IM));var hsa=IM.loudnessDb;IM.itag&&null!=hsa&&(a.fu[IM.itag.toString()]=hsa)}a.adaptiveFormats=fsa.join(",")}var c3=sm.formats;if(c3){var fD=[],isa=g.r(c3);for(Nh=isa.next();!Nh.done;Nh=isa.next()){var d3=Nh.value;fD.push(d3.itag+"/"+d3.width+"x"+d3.height)}a.FL=fD.join(",");fD=[];var jsa=g.r(c3);for(Nh=jsa.next();!Nh.done;Nh=jsa.next()){var $w=Nh.value,gD={itag:$w.itag,type:$w.mimeType,
quality:$w.quality},ksa=$w.url;ksa&&(gD.url=ksa);var lsa=g.av($w,$za)||$w.signatureCipher;if(lsa){var e3=lu(lsa);gD.sp=e3.sp;gD.s=e3.s;gD.url=e3.url}fD.push(g.ui(gD))}a.Bk=fD.join(",")}var f3=sm.hlsFormats;if(f3){var msa=Vc||null,JM={};if(msa){var g3=msa.audioPairingConfig;if(g3&&g3.pairs)for(var nsa=g.r(g3.pairs),h3=nsa.next();!h3.done;h3=nsa.next()){var osa=h3.value,i3=osa.videoItag;JM[i3]||(JM[i3]=[]);JM[i3].push(osa.audioItag)}}for(var psa={},qsa=g.r(f3),$s=qsa.next();!$s.done;$s=qsa.next()){var rsa=
$s.value;psa[rsa.itag]=rsa.bitrate}var ssa=[],tsa=g.r(f3);for($s=tsa.next();!$s.done;$s=tsa.next()){var ni=$s.value,tm={itag:ni.itag,type:ni.mimeType,url:ni.url,bitrate:ni.bitrate,width:ni.width,height:ni.height,fps:ni.fps},KM=ni.audioTrack;if(KM){var usa=KM.displayName;usa&&(tm.name=usa,tm.audio_track_id=KM.id,KM.audioIsDefault&&(tm.is_default="1"))}if(ni.drmFamilies){for(var vsa=[],wsa=g.r(ni.drmFamilies),j3=wsa.next();!j3.done;j3=wsa.next())vsa.push(QG[j3.value]);tm.drm_families=vsa.join(",")}var LM=
JM[ni.itag];if(LM&&LM.length){tm.audio_itag=LM.join(",");var xsa=psa[LM[0]];xsa&&(tm.bitrate+=xsa)}var ysa=Rza(ni);ysa&&(tm.eotf=ysa);ni.audioChannels&&(tm.audio_channels=ni.audioChannels);ssa.push(g.ui(tm))}a.hlsFormats=ssa.join(",")}var k3=sm.licenseInfos;if(k3&&0<k3.length){for(var zsa={},Asa=g.r(k3),l3=Asa.next();!l3.done;l3=Asa.next()){var Bsa=l3.value,Csa=Bsa.drmFamily,Dsa=Bsa.url;Csa&&Dsa&&(zsa[QG[Csa]]=Dsa)}a.Td=zsa}var Esa=sm.drmParams;Esa&&(a.drmParams=Esa);var Fsa=sm.dashManifestUrl;Fsa&&
(a.gb=g.wi(Fsa,{cpn:a.clientPlaybackNonce}));var Gsa=sm.hlsManifestUrl;Gsa&&(a.hlsvp=Gsa);var Hsa=sm.probeUrl;Hsa&&(a.probeUrl=qA(g.wi(Hsa,{cpn:a.clientPlaybackNonce})))}var Isa=a.playerResponse.trackingParams;Isa&&(a.ra=Isa);var Ld=a.playerResponse.videoDetails;if(Ld){var um=b,m3=Ld.videoId;m3&&(a.videoId=m3,um.video_id||(um.video_id=m3));var Jsa=Ld.channelId;Jsa&&(a.J.uid=Jsa.substr(2));var n3=Ld.title;n3&&(a.title=n3,um.title||(um.title=n3));var o3=Ld.lengthSeconds;o3&&(a.lengthSeconds=Number(o3),
um.length_seconds||(um.length_seconds=o3));var Ksa=Ld.keywords;Ksa&&(a.keywords=PAa(Ksa));var p3=Ld.channelId;p3&&(a.Ek=p3,um.ucid||(um.ucid=p3));var Lsa=Ld.viewCount;Lsa&&(a.rawViewCount=Number(Lsa));var q3=Ld.author;q3&&(a.author=q3,um.author||(um.author=q3));var Msa=Ld.shortDescription;Msa&&(a.shortDescription=Msa);var Nsa=Ld.isCrawlable;Nsa&&(a.isListed=Nsa);var Osa=Ld.musicVideoType;Osa&&(a.musicVideoType=Osa);var r3=Ld.isLive;null!=r3&&(a.isLivePlayback=r3);if(r3||Ld.isUpcoming)a.isPremiere=
!Ld.isLiveContent;var Psa=Ld.thumbnail;Psa&&(a.Zf=NG(Psa));var Qsa=Vc||null,s3=b;Ld.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Ld.isUpcoming&&(a.isUpcoming=!0);if(Ld.isPostLiveDvr)a.xf=!0;else{var t3=!1;if(a.Cb)a.allowLiveDvr=LH(a,!0),a.isLivePlayback=!0;else if(Ld.isLive){s3.livestream="1";a.allowLiveDvr=LH(a,!!Ld.isLiveDvrEnabled);a.Y=27;Ld.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Rsa=Ld.latencyClass;Rsa&&(a.latencyClass=WAa[Rsa]||"UNKNOWN");var Ssa=Ld.liveChunkReadahead;
Ssa&&(a.liveChunkReadahead=Ssa);var ax=Qsa&&Qsa.livePlayerConfig;if(ax){ax.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);ax.hasSubfragmentedWebm&&(a.Mm=!0);ax.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Tsa=ax.liveExperimentalContentId;Tsa&&(a.liveExperimentalContentId=Number(Tsa));var Usa=ax.isLiveHeadPlayable;a.K("html5_live_head_playable")&&null!=Usa&&(a.isLiveHeadPlayable=Usa)}t3=!0}else Ld.isUpcoming&&(t3=!0);t3&&(a.isLivePlayback=!0,s3.adformat&&"8"!==s3.adformat.split("_")[1]||
a.W.push("heartbeat"),a.K("heartbeat_iff_heartbeat_params_filled")||(a.Ik=!0))}var Vsa=Ld.isPrivate;void 0!==Vsa&&(a.isPrivate=ev(a.isPrivate,Vsa))}if(wa){var Wsa=Ld||null,Xsa=!1,bx=wa.errorScreen;Xsa=bx&&(bx.playerLegacyDesktopYpcOfferRenderer||bx.playerLegacyDesktopYpcTrailerRenderer||bx.ypcTrailerRenderer)?!0:Wsa&&Wsa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(wa.status);if(!Xsa){a.errorCode="150";var MM=bx&&bx.playerErrorMessageRenderer;if(MM){a.playerErrorMessageRenderer=
MM;var Ysa=MM.reason;Ysa&&(a.errorReason=g.zA(Ysa));var v3=MM.subreason;v3&&(a.Vk=g.zA(v3),a.Vt=v3)}else a.errorReason=wa.reason||null;var w3=wa.status;if("LOGIN_REQUIRED"===w3)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===w3)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===w3){var Zsa=wa.errorScreen,$sa=Zsa&&Zsa.playerKavRenderer;a.errorDetail=$sa&&$sa.kavUrl?"4":"3"}else a.errorDetail=wa.isBlockedInRestrictedMode?"5":"0"}}var ata=a.playerResponse.interstitialPods;ata&&Xza(a,ata);a.Ra&&a.eventId&&
(a.Ra=pu(a.Ra,{ei:a.eventId}));var x3=a.playerResponse.captions;x3&&x3.playerCaptionsTracklistRenderer&&Uza(a,x3.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.RF=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Zza(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}MAa(a,
b);b.queue_info&&(a.queueInfo=b.queue_info);var bta=b.hlsdvr;null!=bta&&(a.allowLiveDvr=LH(a,"1"==bta));a.adQueryId=b.ad_query_id||null;a.Ok||(a.Ok=b.encoded_ad_safety_reason||null);a.EQ=b.agcid||null;a.BG=b.ad_id||null;a.kI=b.ad_sys||null;a.sL=b.encoded_ad_playback_context||null;a.Ei=ev(a.Ei,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=ev(a.mutedAutoplay,b&&b.playmuted)&&a.K("embeds_enable_muted_autoplay");a.endSeconds=gv(a.endSeconds,a.PF||b.end||b.endSeconds);
a.limitedPlaybackDurationInSeconds=gv(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.ra=hv(a.ra,b.itct);a.bF=ev(a.bF,b.noiba);a.dF=ev(a.dF,b.is_live_destination);a.isLivePlayback=ev(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=ev(a.isUpcoming,b.isUpcoming));a.xf=ev(a.xf,b.post_live_playback);a.isMdxPlayback=ev(a.isMdxPlayback,b.mdx);var NM=b.mdx_control_mode;NM&&(a.mdxControlMode="number"===
typeof NM?NM:Yg(NM));a.isInlinePlaybackNoAd=ev(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Yb=gv(a.Yb,b.reload_count);a.reloadReason=hv(a.reloadReason,b.reload_reason);a.Xl=ev(a.Xl,b.show_content_thumbnail);a.eF=ev(a.eF,b.utpsa);a.eG=ev(a.eG,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.fG=b.tkn||null;var cta=MG(b);0<Object.keys(cta).length&&(a.Zf=cta);a.Ha=hv(a.Ha,b.vvt);a.mdxEnvironment=hv(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=
b.source_container_playlist_id);a.L5=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=hv(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?gv(0,b.index):gv(a.playlistIndex,b.index));a.tN=b.pyv_view_beacon_url;a.LN=b.pyv_quartile25_beacon_url;a.aO=b.pyv_quartile50_beacon_url;a.tO=b.pyv_quartile75_beacon_url;a.vN=b.pyv_quartile100_beacon_url;var dta=b.remarketing_url;dta&&(a.remarketingUrl=dta);var eta=b.ppv_remarketing_url;eta&&(a.ppvRemarketingUrl=
eta);var fta=b.session_data;!a.eP&&fta&&(a.eP=ju(fta,"&").feature);a.isFling=1==gv(a.isFling?1:0,b.is_fling);a.vnd=gv(a.vnd,b.vnd);a.forceAdsUrl=hv(a.forceAdsUrl,b.force_ads_url);a.Ah=hv(a.Ah,b.ctrl);a.Wh=hv(a.Wh,b.ytr);a.Kn=b.ytrcc;a.xP=b.ytrexp;a.aG=b.ytrext;a.Mc=hv(a.Mc,b.adformat);a.Mu=hv(a.Mu,b.attrib);a.slotPosition=gv(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Wl=ev(a.Wl,b.ssrt);a.videoId=jv(b)||a.videoId;a.I=hv(a.I,b.vss_credentials_token);a.Ej=hv(a.Ej,b.vss_credentials_token_type);
a.rg=ev(a.rg,b.audio_only);a.CH=ev(a.CH,b.aac_high);a.Kx=ev(a.Kx,b.prefer_low_quality_audio);a.Tl=hv(a.Tl,b.qoe_cat);a.Jl=ev(a.Jl,b.download_media);a.Ea=ev(a.Ea,b.prefer_gapless);a:{var y3=a.playerResponse;if(y3&&y3.adPlacements)for(var gta=g.r(y3.adPlacements),z3=gta.next();!z3.done;z3=gta.next()){var OM=z3.value.adPlacementRenderer;if(null!=OM&&"AD_PLACEMENT_KIND_START"==(OM.config&&OM.config.adPlacementConfig&&OM.config.adPlacementConfig.kind)){var hta=!0;break a}}hta=!1}hta&&(a.adModule=!0,a.W.push("ad"));
var ita=b.adaptive_fmts;ita&&(a.adaptiveFormats=ita);var jta=b.allow_embed;jta&&(a.allowEmbed="1"==jta);var kta=b.backgroundable;kta&&(a.backgroundable="1"==kta);var lta=b.autonav;lta&&(a.Vm="1"==lta);var A3=b.autoplay;A3&&(a.Dt="1"==A3,a.cn="1"==A3);var mta=b.iv_load_policy;mta&&(a.annotationsLoadPolicy=fv(a.annotationsLoadPolicy,mta,YF));var nta=b.cc_lang_pref;nta&&(a.captionsLanguagePreference=hv(nta,a.captionsLanguagePreference));var ota=b.cc_load_policy;ota&&(a.Ix=fv(a.Ix,ota,YF));var pta;a.deviceCaptionsOn=
null!=(pta=b.device_captions_on)?pta:void 0;var qta;a.zT=null!=(qta=b.device_captions_lang_pref)?qta:"";var rta;a.iG=null!=(rta=b.viewer_selected_caption_langs)?rta:[];var sta=b.cached_load;sta&&(a.Dr=ev(a.Dr,sta));"0"==b.dash&&(a.UJ=!0);var tta=b.dashmpd;tta&&(a.gb=g.wi(tta,{cpn:a.clientPlaybackNonce}));var uta=b.delay;uta&&(a.ub=Yg(uta));var vta=a.PF||b.end;void 0!=vta&&(a.clipEnd=gv(a.clipEnd,vta));var wta=b.fmt_list;wta&&(a.FL=wta);b.heartbeat_preroll&&a.W.push("heartbeat");a.Mk=-Math.floor(10*
Math.random());a.ir=-Math.floor(40*Math.random());var xta=b.is_listed;xta&&(a.isListed=ev(a.isListed,xta));var yta=b.is_private;yta&&(a.isPrivate=ev(a.isPrivate,yta));var zta=b.is_dni;zta&&(a.C=ev(a.C,zta));var Ata=b.dni_color;Ata&&(a.Ua=hv(a.Ua,Ata));var Bta=b.pipable;Bta&&(a.pipable=ev(a.pipable,Bta));a.DI=a.pipable&&a.Oa.hm;a.cG=a.DI&&(!a.Oa.showMiniplayerButton||a.K("web_player_pip"));var Cta=b.paid_content_overlay_duration_ms;Cta&&(a.paidContentOverlayDurationMs=Yg(Cta));var Dta=b.paid_content_overlay_text;
Dta&&(a.paidContentOverlayText=Dta);var Eta=b.url_encoded_fmt_stream_map;Eta&&(a.Bk=Eta);var Fta=b.hls_formats;Fta&&(a.hlsFormats=Fta);var Gta=b.hlsvp;Gta&&(a.hlsvp=Gta);var PM=b.length_seconds;PM&&(a.lengthSeconds="string"===typeof PM?Yg(PM):PM);var QM=b.live_start_walltime;QM&&(a.jF="number"===typeof QM?QM:Yg(QM));var RM=b.live_manifest_duration;RM&&(a.Vj="number"===typeof RM?RM:Yg(RM));var Hta=b.player_params;Hta&&(a.playerParams=Hta);var Ita=b.partnerid;Ita&&(a.Y=gv(a.Y,Ita));var Jta=b.probe_url;
Jta&&(a.probeUrl=qA(g.wi(Jta,{cpn:a.clientPlaybackNonce})));var B3=b.pyv_billable_url;B3&&Tua(B3)&&(a.og=B3);var C3=b.pyv_conv_url;C3&&Tua(C3)&&(a.uN=C3);QAa(a,b);0<a.startSeconds||(a.startSeconds=gv(a.startSeconds,a.RF||a.aF||b.start||b.startSeconds),a.Fd=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Kta=b.live_utc_start;if(null!=Kta)a.liveUtcStartSeconds=Number(Kta);else{var D3=a.startSeconds;D3&&isFinite(D3)&&1E9<D3&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds)){var Lta=b.utc_start_millis;Lta&&(a.liveUtcStartSeconds=.001*Number(Lta))}var Mta=b.stream_time_start_millis;Mta&&(a.Hu=.001*Number(Mta));var Nta=a.aF||b.start;void 0==Nta||"1"==b.resume||a.isLivePlayback||(a.clipStart=gv(a.clipStart,Nta));var Ota=b.url_encoded_third_party_media;Ota&&(a.Ak=mu(Ota));var E3=b.ypc_offer_button_formatted_text;if(E3){var Pta=JSON.parse(E3);a.FI=null!=Pta?Pta:null;a.mS=E3}var Qta=b.ypc_offer_button_text;Qta&&(a.Qu=Qta);var Rta=b.ypc_offer_description;
Rta&&(a.gm=Rta);var Sta=b.ypc_offer_headline;Sta&&(a.Ru=Sta);var Tta=b.ypc_full_video_message;Tta&&(a.cm=Tta);var Uta=b.ypc_offer_id;Uta&&(a.Jk=Uta);var Vta=b.ypc_buy_url;Vta&&(a.Nu=Vta);var Wta=b.ypc_item_thumbnail;Wta&&(a.Ou=Wta);var Xta=b.ypc_item_title;Xta&&(a.fm=Xta);var Yta=b.ypc_item_url;Yta&&(a.Pu=Yta);var Zta=b.ypc_vid;Zta&&(a.im=Zta);b.ypc_overlay_timeout&&(a.hm=Number(b.ypc_overlay_timeout));var $ta=b.ypc_trailer_player_vars;$ta&&(a.Kk=lu($ta));var aua=b.ypc_original_itct;aua&&(a.b6=aua);
a.Ek=hv(a.Ek,b.ucid);b.baseUrl&&(a.J.baseUrl=b.baseUrl);b.uid&&(a.J.uid=b.uid);b.oeid&&(a.J.oeid=b.oeid);b.ieid&&(a.J.ieid=b.ieid);b.ppe&&(a.J.ppe=b.ppe);b.engaged&&(a.J.engaged=b.engaged);b.subscribed&&(a.J.subscribed=b.subscribed);a.J.focEnabled=ev(a.J.focEnabled,b.focEnabled);a.J.rmktEnabled=ev(a.J.rmktEnabled,b.rmktEnabled);a.Gu=b.storyboard_spec||null;a.Qq=b.live_storyboard_spec||null;a.YM=b.iv_endscreen_url||null;a.gF=ev(a.gF,b.iv3_module);a.Ik=ev(a.Ik,b.ypc_license_checker_module);a.Ng=ev(a.Ng,
b.ypc_module);a.vg=ev(a.vg,b.ypc_clickwrap_module);a.Ng&&a.W.push("ypc");a.vg&&a.W.push("ypc_clickwrap");a.kN={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};NAa(a,b);var bua=b.cotn;bua&&(a.cotn=bua);if(XAa(a))MH(a)&&(a.isLivePlayback&&a.gb&&(a.Pe=!0),a.Ya&&(a.Rl=!0));else if(YAa(a))a.Pe=!0;else{var fua=ZAa(a,a.adaptiveFormats);if(fua){NH(a,fua);var gua=!0}else gua=!1;gua?a.enableServerStitchedDai=a.enableServerStitchedDai&&OH(a):a.gb&&(a.Pe=!0)}var G3=b.adpings;G3&&(a.Gs=G3?lu(G3):null);var hua=b.feature;hua&&(a.Ul=hua);var iua=b.referrer;iua&&(a.referrer=iua);a.clientScreenNonce=hv(a.clientScreenNonce,
b.csn);a.lA=gv(a.lA,b.root_ve_type);a.Sl=gv(a.Sl,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Ju=ev(a.Ju,b.upg_content_filter_mode);var jua=b.unplugged_location_info;jua&&(a.V=jua);var kua=b.unplugged_partner_opt_out;kua&&(a.Mx=hv("",kua));a.Mt=ev(a.Mt,b.disable_watch_next);a.Ll=hv(a.Ll,b.internal_ip_override);a.cF=!!b.is_yto_interstitial;(a.interstitials.length||a.cF)&&a.W.push("yto");var lua=b.Wj;lua&&(a.Wj=lua);b.uE&&(a.uE=b.uE);var mua;a.va=null!=(mua=b.csi_timer)?
mua:"";a.Ki=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.K("html5_attach_watch_endpoint_ustreamer_config")&&b.watch_endpoint&&$Aa(a,b.watch_endpoint);!a.K("embeds_rct_killswitch")&&g.MF(a.Oa)&&(a.embedsRct=hv(a.embedsRct,b.rct),a.embedsRctn=hv(a.embedsRctn,b.rctn));a.Sq=a.Sq||!!b.pause_at_start};
MAa=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 h=gv(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.UG(a.R()),p=null,q;if(l){for(var v=g.r(l),w=v.next();!w.done;w=v.next()){var y=w.value.autoplayVideoRenderer;if(y&&y.compactVideoRenderer){p=y.compactVideoRenderer;
break}}if(q=l[0].autoplayVideo){var A=q.clickTrackingParams;A&&(m.itct=A);m.autonav="1";m.playnext=String(h)}}else m.feature="related-auto";var B=g.av(q,g.VG);if(p){n.videoId=p.videoId;var E=p.shortBylineText;E&&(n.author=g.zA(E));var G=p.title;G&&(n.title=g.zA(G))}else null!=B&&B.videoId&&(n.videoId=B.videoId);n.vy=m;a.K("web_player_decouple_autonav")?a.suggestions=[]:a.suggestions=[n];a.Pk=n}}var H=e.twoColumnWatchNextResults}var I,O;a.t5=!!(null==(I=H)?0:null==(O=I.autoplay)?0:O.autoplay);var L=
a.watchNextResponse.playerOverlays;if(L){var P=L.playerOverlayRenderer;if(P){var S=P.autonavToggle;S&&(a.autoplaySwitchButtonRenderer=g.av(S,aBa),a.K("web_player_autonav_use_server_provided_state")&&PH(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var ca=P.endScreen;if(ca){var R=ca.watchNextEndScreenRenderer;if(R)var na=R.results}var sa=P.videoDetails;if(sa){var Aa=sa.embeddedPlayerOverlayVideoDetailsRenderer;var wa=sa.musicEmbeddedPlayerOverlayVideoDetailsRenderer;wa&&(a.EL=wa.title,
a.DL=wa.byline);var ta=sa.playerOverlayVideoDetailsRenderer;ta&&(ta.title&&(b.title=g.zA(ta.title)),ta.subtitle&&(b.subtitle=g.zA(ta.subtitle)))}var Ma=P.actions;if(Ma)for(var Ka=g.r(Ma),qa=Ka.next();!qa.done;qa=Ka.next()){var nb=qa.value;nb.likeButtonRenderer&&(a.likeButtonRenderer=nb.likeButtonRenderer)}var Sb,Ua=null==(Sb=g.av(P.suggestedActionsRenderer,bBa))?void 0:Sb.suggestedActions;if(Ua)for(var $a=g.r(Ua),bc=$a.next();!bc.done;bc=$a.next()){var Sa=g.av(bc.value,cBa),ab=void 0;g.av(null==(ab=
Sa)?void 0:ab.trigger,dBa)&&(a.suggestedAction=Sa)}var tb=g.av(P.decoratedPlayerBarRenderer,eBa);if(tb){a.multiMarkersPlayerBarRenderer=g.av(tb.playerBar,fBa);var fc;a.iJ=null==(fc=g.av(tb.playerBar,gBa))?void 0:fc.chapters;a.V5=g.av(tb.playerBarActionButton,QH)}g.SF(a.Oa)&&(a.zi=!!P.addToMenu);hBa(a,P.shareButton);var Tb=P.productsInVideoOverlayRenderer;Tb&&(a.shoppingOverlayRenderer=g.av(Tb,iBa));var Lc=P.autoplay;if(Lc)var nc=Lc.playerOverlayAutoplayRenderer;a.progressBarStartPosition=P.startPosition;
a.progressBarEndPosition=P.endPosition}}if(!na&&H){var bd=H.endScreen&&H.endScreen.endScreen;bd&&(na=bd.results)}if(H){var cd=H.desktopOverlay&&g.av(H.desktopOverlay,jBa);cd&&(cd.suppressShareButton&&(a.showShareButton=!1),cd.suppressWatchLaterButton&&(a.zi=!1))}Aa&&kBa(a,b,Aa);var ob=gv(0,b.autoplay_count);if(na){for(var Pb=H||null,Hb=nc||null,gc=[],Kb=!0,hc=g.r(na),Ga=hc.next();!Ga.done;Ga=hc.next()){var Ia=Ga.value,Sd=void 0,Ja=null;if(Ia.endScreenVideoRenderer){var Mc=Ia.endScreenVideoRenderer,
vf=Mc.title;Ja=new g.UG(a.R());Ja.videoId=Mc.videoId;Ja.lengthSeconds=Mc.lengthInSeconds||0;var ie=Mc.publishedTimeText;ie&&(Ja.publishedTimeText=g.zA(ie));var je=Mc.shortBylineText;je&&(Ja.author=g.zA(je));var ke=Mc.shortViewCountText;ke&&(Ja.shortViewCount=g.zA(ke));if(vf){Ja.title=g.zA(vf);var Td=vf.accessibility;if(Td){var Ce=Td.accessibilityData;Ce&&Ce.label&&(Ja.ariaLabel=Ce.label)}}var pe=Mc.navigationEndpoint;if(pe){Sd=pe.clickTrackingParams;var td=g.av(pe,g.VG),yb=g.av(pe,g.RH);td?Ja.wy=
td:null!=yb&&(Ja.watchUrl=yb.url)}var pb=Mc.thumbnailOverlays;if(pb)for(var rc=g.r(pb),id=rc.next();!id.done;id=rc.next()){var le=id.value.thumbnailOverlayTimeStatusRenderer;if(le)if("LIVE"===le.style){Ja.isLivePlayback=!0;break}else if("UPCOMING"===le.style){Ja.isUpcoming=!0;break}}Ja.Zf=NG(Mc.thumbnail)}else if(Ia.endScreenPlaylistRenderer){var Pe=Ia.endScreenPlaylistRenderer,Fc=Pe.navigationEndpoint;if(!Fc)continue;var Ud=g.av(Fc,g.VG);if(!Ud)continue;var Ad=Ud.videoId;Ja=new g.TG(a.R());Ja.playlistId=
Pe.playlistId;Ja.playlistLength=Number(Pe.videoCount)||0;Ja.zE=Ad||null;Ja.videoId=Ad;var Vd=Pe.title;Vd&&(Ja.title=g.zA(Vd));var rg=Pe.shortBylineText;rg&&(Ja.author=g.zA(rg));Sd=Fc.clickTrackingParams;Ja.Zf=NG(Pe.thumbnail)}Ja&&(Sd&&(Ja.sessionData={itct:Sd}),Kb?(a.K("web_player_decouple_autonav")?gc.push(Ja):(dAa(Ja,Pb,Hb,ob),gc.splice(0,0,Ja)),Kb=!1):gc.push(Ja))}a.suggestions=gc}if(nc){a.lN=!!nc.preferImmediateRedirect;a.He=a.He||!!nc.webShowNewAutonavCountdown;a.pk=a.pk||!!nc.webShowBigThumbnailEndscreen;
if(a.He||a.pk){var Wd=nc,Pc=na||null,qe=H||null,Qc=new g.UG(a.R());Qc.videoId=Wd.videoId;var De,Xd,ef=null==Pc?void 0:null==(De=Pc[0])?void 0:null==(Xd=De.endScreenVideoRenderer)?void 0:Xd.navigationEndpoint;if(ef){var ih=ef.clickTrackingParams;ih&&(Qc.sessionData={itct:ih})}var Ig=Wd.videoTitle;if(Ig){Qc.title=g.zA(Ig);var ff=Ig.accessibility;if(ff){var oc=ff.accessibilityData;oc&&oc.label&&(Qc.ariaLabel=oc.label)}}var Yd=Wd.byline;Yd&&(Qc.author=g.zA(Yd));var Gd=Wd.publishedTimeText;Gd&&(Qc.publishedTimeText=
g.zA(Gd));var Zd=Wd.shortViewCountText;Zd&&(Qc.shortViewCount=g.zA(Zd));var Jg=Wd.thumbnailOverlays;if(Jg)for(var pc=g.r(Jg),zc=pc.next();!zc.done;zc=pc.next()){var Rc=zc.value.thumbnailOverlayTimeStatusRenderer;if(Rc)if("LIVE"===Rc.style){Qc.isLivePlayback=!0;break}else if("UPCOMING"===Rc.style){Qc.isUpcoming=!0;break}else if("DEFAULT"===Rc.style&&Rc.text){Qc.lengthText=g.zA(Rc.text);var Mb=Rc.text.accessibility;if(Mb){var Hd=Mb.accessibilityData;Hd&&Hd.label&&(Qc.Ls=Hd.label||"")}break}}Qc.Zf=NG(Wd.background);
var Kg=Wd.nextButton;if(Kg){var gf=Kg.buttonRenderer;if(gf){var re=gf.navigationEndpoint;if(re){var Lg=g.av(re,g.VG);Lg&&(Qc.wy=Lg)}}}if(Wd.topBadges){var ii=Wd.topBadges[0];if(ii){var Qe=g.av(ii,lBa);Qe&&"BADGE_STYLE_TYPE_PREMIUM"===Qe.style&&(Qc.uE=!0)}}var Zf=Wd.alternativeTitle;Zf&&(Qc.kp=g.zA(Zf));dAa(Qc,qe,Wd,ob);a.suggestions||(a.suggestions=[]);if(.01>Math.random()){for(var Hh=!1,Ee=g.r(a.suggestions),sg=Ee.next();!sg.done;sg=Ee.next())if(sg.value.videoId===Qc.videoId){Hh=!0;break}Hh||g.rz(new g.Rv("Autonav video not in endscreen",
{empty:!a.suggestions.length}))}a.Pk=Qc;a.K("web_player_decouple_autonav")||(a.suggestions[0]=Qc)}null!=nc.countDownSecs&&(a.TR=1E3*nc.countDownSecs);null!=nc.countDownSecsForFullscreen&&(a.UI=0<=nc.countDownSecsForFullscreen?1E3*nc.countDownSecsForFullscreen:-1);var Mg;a.X4=null==(Mg=nc.cancelButton)?void 0:Mg.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Zf=NG(a.watchNextResponse.currentVideoThumbnail));if(!a.K("player_parse_profile_picture_from_watch_next_killswitch")){var Ng,aj,
jh,hf,Vc,wf=null==(Ng=a.watchNextResponse)?void 0:null==(aj=Ng.contents)?void 0:null==(jh=aj.twoColumnWatchNextResults)?void 0:null==(hf=jh.results)?void 0:null==(Vc=hf.results)?void 0:Vc.contents;if(wf&&wf[1]){var xf,Og,tg,Db,bj=null==(xf=wf[1].videoSecondaryInfoRenderer)?void 0:null==(Og=xf.owner)?void 0:null==(tg=Og.videoOwnerRenderer)?void 0:null==(Db=tg.thumbnail)?void 0:Db.thumbnails;bj&&bj.length&&(a.profilePicture=bj[bj.length-1].url)}}var ji=a.watchNextResponse.onResponseReceivedEndpoints;
if(ji)for(var Uk=g.r(ji),Kj=Uk.next();!Kj.done;Kj=Uk.next()){var kh=Kj.value;g.av(kh,SH)&&(a.aN=g.av(kh,SH));var zf=g.av(kh,mBa),cj=void 0;a.K("web_key_moments_markers")&&(null==(cj=zf)?0:cj.entityKeys)&&(a.Pq=zf.entityKeys,zf.visibleOnLoadKeys&&(a.visibleOnLoadKeys=zf.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var Cn=g.TH.getState().entities,Lj=g.nH("visibility_override","markersVisibilityOverrideEntity");var Id=Cn.markersVisibilityOverrideEntity?Cn.markersVisibilityOverrideEntity[Lj]||
null:null;var Pg=a.videoId||jv(b);a.Dd=(null==Id?void 0:Id.videoId)===Pg&&(null==Id?0:Id.visibilityOverrideMarkersKey)?Id.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.t(a.Dd))}}};
PH=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
UH=function(a){return!!(a.B&&a.B.videoInfos&&a.B.videoInfos.length)};
XH=function(a){if(a.K("html5_single_format_policy")&&a.Ed)return a.Ed;var b=a.Ea,c=!!a.j&&a.j.nf,d=a.Oa,e=a.yI(),f=VH(a),h=a.CH,l=a.isOtf(),m=a.sG(),n=a.Cb,p=a.qg,q=new oya(d);if(xG(d)||d.K("html5_logging_format_selection"))q.B=!0;q.eb=f;q.Ea=h&&d.C;q.qg=p;Ou("windows nt 5.1")&&!g.pB&&(q.j=!0);if(f=e)f=d.K("disable_html5_ambisonic_audio")||!(g.sG(d)||d.K("html5_enable_spherical")||d.K("html5_enable_spherical3d"))?!1:sza(d);f&&(q.Ya=!0);b&&(q.j=!0,q.yc=!0);l&&!d.K("html5_otf_prefer_vp9")&&(q.j=!0);
n&&(q.j=!0);b=d.K("html5_ugc_vod_audio_51")&&!c;l=d.K("html5_ugc_live_audio_51")&&c;q.La=b||l;FB(d.j,GB.CHANNELS)&&(d.K("html5_enable_aac51")&&(q.ra=!0),d.K("html5_enable_ac3")&&(q.D=!0),d.K("html5_enable_eac3")&&(q.I=!0),d.K("html5_enable_ac3_gapless")&&(q.Ha=!0));d.K("html5_block_8k_hfr")&&(q.ub=!0);q.J=g.TE(d.experiments,"html5_max_selectable_quality_ordinal");q.N=g.TE(d.experiments,"html5_min_selectable_quality_ordinal");!d.K("html5_kaios_hd_killswitch")&&JF&&(q.Lc=480);if(c||e)q.gb=!1;q.Cb=!1;
c=KE(d,q.u);0<c&&2160>c&&(oE()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+oE(),q.W=c);2160<=c&&(q.qa=!0);mya()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.zc=!1);q.sG=m;q.Ua=g.yw||$u()&&!m?!1:!0;q.va=d.K("html5_format_hybridization");q.Kb=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");Ru()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.Ea&&
a.isAd()&&(a.Rr&&(q.Y=a.Rr),a.jr&&(q.C=a.jr));q.Ra=a.isLivePlayback&&WH(a)&&a.Oa.K("html5_drm_live_audio_51");return a.Ed=q};
nBa=function(a){XA("drm_pb_s",void 0,a.va);a.Ya||a.j&&IB(a.j);var b={};a.j&&(b=Iva(XH(a),a.Oa.j,a.j,function(c){return a.X("ctmp","fmtflt",c)},!0));
b=new WE(b,a.Oa.experiments,a.SP,a.useCobaltWidevine?Ru()?YH(a):!1:!1,function(c,d){a.ma(c,d)});
g.M(a,b);a.Rl=!1;a.qa=!0;sya(b,function(c){XA("drm_pb_f",void 0,a.va);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Ya=a.Ya;e.Ut=a.Ut;e.Tt=a.Tt;break;case "widevine":e.Hk=a.Hk}a.ju=c;if(0<a.ju.length&&(a.N=a.ju[0],2<=a.Oa.V)){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 h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.ma("drmProbe",c)}JH(a)})};
ZAa=function(a,b){var c;(c=!b)||(c=!(!a.K("html5_manifestless_unplugged")&&a.isLivePlayback&&g.nG(a.Oa)&&g.cG(a.Oa)?0:!MH(a)&&a.adaptiveFormats));if(c)return null;ZH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(dya=!0);b=$H(b);c=Date.now();var d=a.Td;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.xf,l=a.Oa,m=Pxa(b);if(f||h){l=new vE("",null==l?void 0:l.experiments,!0);e=g.r(b);for(f=e.next();!f.done;f=e.next()){var n=f.value;f=xE(n,d);m=yE(n.url,n.sp,n.s);var p=m.get("id");p&&p.includes("%7E")&&
(l.ra=!0);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"),v=Number(m.get("maxdsq")||m.get("max_sq")||"0")||Infinity;l.Xe=l.Xe||q;l.Rh=l.Rh||v;var w=!VD(f.mimeType);m&&wE(l,new BD(m,f,{zk:p,mm:w,Pn:n,Xe:q,Rh:v,xz:300,xf:h}))}l.u=!h;l.nf=!0;l.isManifestless=!0;l.isLive=!h;l.xf=h;l.C=!!l.Xe&&!!l.Rh&&isFinite(l.Rh);d=l}else if("FORMAT_STREAM_TYPE_OTF"===m){e=void 0===e?0:e;h=new vE("",null==l?void 0:l.experiments,!1);h.duration=
e||0;l=g.r(b);for(e=l.next();!e.done;e=l.next())if(p=e.value,e=xE(p,d,h.duration),f=yE(p.url,p.sp,p.s))"FORMAT_STREAM_TYPE_OTF"===e.streamType?wE(h,new CD(f,e,"sq/0")):(m=bD(p.init),p=bD(p.index),wE(h,new JD(f,e,m,p)));h.isOtf=!0;d=h}else{e=void 0===e?0:e;h=new vE("",null==l?void 0:l.experiments,!1);h.duration=e||0;e=g.r(b);for(f=e.next();!f.done;f=e.next())if(n=f.value,f=xE(n,d,h.duration),m=bD(n.init),p=bD(n.index),n=yE(n.url,n.sp,n.s))q=void 0,wE(h,new JD(n,f,m,p,null==(q=l)?void 0:q.Qk));d=h}c=
Date.now()-c;a.K("html5_log_manifest_performance")&&(h=Nxa(d)?1:0,a.ma("mfsp",{wasm:h,t:c}));0<b.length&&(b=b[0],b.url&&b.sp&&b.s&&(b=yE(b.url,b.sp,b.s),b=Number(b.get("max_sq"))||Infinity,isFinite(b)&&(a.Li=!0)));return d};
MH=function(a){return Ru()?!YH(a):Tu()?!(!a.Ya||!a.K("html5_enable_safari_fairplay")):!1};
YH=function(a){return ZH(a,"html5_enable_tvos_dash_dogfood")||a.K("html5_enable_tvos_dash")&&(a.K("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
OH=function(a){return!(!a.j||!a.j.isManifestless)};
oBa=function(a){if(!qB())return!1;if(a.K("html5_streaming_debug")||OH(a)&&("ULTRALOW"==a.latencyClass||21530001==aI(a)))return!0;if(!window.AbortController&&!rB()||a.Ea)return!1;if(a.K("html5_streaming_xhr"))return!0;var b;return a.K("html5_streaming_xhr_vod")&&!1===(null==(b=a.j)?void 0:b.nf)?!0:!1};
pBa=function(a){return Sva({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Mm:a.Mm,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:OH(a),WK:oBa(a)})};
aI=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=DE(a.j)?21530001:a.liveExperimentalContentId};
XAa=function(a){return Ru()&&YH(a)?!1:MH(a)&&g.nG(a.Oa)&&!a.isLivePlayback||!ZE(a.Oa.j)||a.UJ?!0:!1};
rBa=function(a){a.qa=!0;a.Pe=!1;if(YAa(a))g.xAa(a.videoId).then(function(c){qBa(a,c)}).then(function(){JH(a)});
else{oA(a.gb)||g.rz(new g.Rv("DASH MPD Origin invalid: ",a.gb));var b=a.gb;b=g.wi(b,{mpd_version:g.TE(a.Oa.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.wi(b,{pacing:0}));Xxa(b,a.Oa.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(NH(a,c,!0),XA("mrc",void 0,a.va),JH(a))},function(c){a.isDisposed()||(a.qa=!1,a.X("dataloaderror",new zG("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
XA("mrs",void 0,a.va)}};
qBa=function(a,b){var c=b.map(function(e){return e.itag}),d;
null!=(d=a.playerResponse)&&d.streamingData?(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 cAa(e)}).join(","),d=ZAa(a,d),NH(a,d),a.ma("dlr",{})):a.ma("offsdm",{cotn:a.NF?a.NF.cotn:"0",
cpn:a.clientPlaybackNonce})};
JH=function(a){a.isDisposed()||(a.qa=!1,a.X("dataloaded"))};
NH=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.M(a,b);b.Xe=a.Xe;b.Rh=a.Rh;b.Kb=a.Kb;b.yc=a.yc;a.K("html5_start_walltime_min_seekable_killswitch")||(b.Nc=a.Nc);sBa(a)&&a.W.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Vj=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.ma,a),c?b.subscribe("refresh",a.TQ,a):b.subscribe("cuepointsadded",a.bO,a));IB(b)&&(a.Rl=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=
a.isLiveHeadPlayable};
WH=function(a){return a.Td?!0:!!a.j&&IB(a.j)};
xBa=function(a,b){if(a.isDisposed())return Hu();a.B=null;a.eb=null;a.zc=null;ZH(a,"html5_high_res_logging")&&(a.Oa.V=2);return tBa(a,b).then(void 0,function(){return uBa(a,b)}).then(void 0,function(){return vBa(a)}).then(void 0,function(){return wBa(a)})};
tBa=function(a,b){var c=b||XAa(a);if(!a.j||c)return a.ma("skipDash",{dm:!!a.j,air:b,dd:a.UJ,mss:ZE(a.Oa.j)}),Hu();VH(a)&&aya(a.j,a.isLivePlayback);ZH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&Fya(a.Oa.j);return Iu().then(function(){return Rva(XH(a),a.Oa.j,a.j,a.N,function(d){return a.X("ctmp","fmtflt",d)}).then(function(d){yBa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.Ed&&a.ma("av1",a.Ed.u)})})};
uBa=function(a,b){if(b&&a.hlsvp)return Hu();if(a.hlsFormats){b=$H(a.hlsFormats);var c;if((null==(c=a.Ed)?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.ma("hlsfmt",{itags:c.join(".")})}a.Oq=Aza(a.Oa,b);c=a.clientPlaybackNonce;var f,h,l,m;return Fza(a.Oa,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.Lc,c,function(n){return a.X("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],v=g.r(n),w=v.next();!w.done;w=v.next()){w=w.value;
var y=void 0;q.push(null==(y=w.zg())?void 0:y.itag);var A=y=void 0;(null==(y=w.zg())?void 0:null==(A=y.audio)?void 0:A.numChannels)>p&&(p=w.zg().audio.numChannels)}2<p&&a.ma("hlschl",{mn:p});var B;(null==(B=a.Ed)?0:B.B)&&a.ma("hlsfmtaf",{itags:q.join(".")});bI(a,n)})}return Hu()};
vBa=function(a){return a.Ak&&a.TL?Hza(a.Oa,a.isAd(),a.Ak).then(function(b){bI(a,b)}):Hu()};
wBa=function(a){var b=$H(a.Bk,a.FL);if(a.hlsvp){var c=JAa(a.hlsvp,a.clientPlaybackNonce,a.Lc);b.push(c)}return Gza(a.Oa,a.isAd(),b,zBa(a)).then(function(d){bI(a,d)})};
yBa=function(a,b){a.B=b;b=a.getAvailableAudioTracks();b=b.concat(a.Il);for(var c=0;c<a.GG.length;c++)for(var d=a.GG[c],e=0;e<b.length;e++){var f=b[e],h=f.Ic.id==d.audioTrackId;if(f.Ic.isDefault&&c==a.UN||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.N&&a.B&&a.B.videoInfos&&!(0>=a.B.videoInfos.length)&&(b=UD(a.B.videoInfos[0]),b!=("fairplay"==a.N.flavor)))for(c=g.r(a.ju),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.N=d;break}};
bI=function(a,b){a.zc=b;yBa(a,new zB(g.Pk(a.zc,function(c){return c.zg()})))};
zBa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Oa.deviceParams.c,cver:a.Oa.deviceParams.cver};a.Rq&&(b.ptk=a.Rq,b.oid=a.iN,b.ptchn=a.hN,b.pltype=a.jN,a.Ot&&(b.m=a.Ot));return b};
g.cI=function(a){return MH(a)&&a.Ya?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Td||null};
ABa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.zA(b.text):a.paidContentOverlayText};
dI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Yg(b.durationMs):a.paidContentOverlayDurationMs};
eI=function(a){var b="";if(a.iF)return a.iF;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.xf?"post":a.Li?"window":"live");return b};
g.fI=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
gI=function(a){return!!(a.gb||a.adaptiveFormats||a.Bk||a.Ak||a.hlsvp)};
IH=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.Wb(a.W,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.qa&&(gI(a)||g.Wb(a.W,"heartbeat")||b)};
$H=function(a,b){a=mu(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};
hBa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.av(b,QH))?void 0:c.navigationEndpoint)||(null==(d=g.av(b,QH))?void 0:d.command);e&&(a.Yl=!!g.av(e,BBa))};
LAa=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.Jh=c);if(a.Jh){if(c=a.Jh.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),c.isShortsEligible&&(a.isShortsEligible=c.isShortsEligible);if(c=a.Jh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Ua=d,a.C=!0,a.Oa.K("embeds_web_enable_epm_dni_parity_fix")&&
(a.Oa.W="EMBEDDED_PLAYER_MODE_PFP")):(a.Ua="",a.C=!1,a.Oa.K("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.Oa.W&&(a.Oa.W="EMBEDDED_PLAYER_MODE_DEFAULT"));if(d=c.defaultThumbnail)a.Zf=NG(d),a.sampledThumbnailColor=d.sampledThumbnailColor;(d=g.av(null==c?void 0:c.videoDetails,CBa))&&kBa(a,b,d);if(d=g.av(null==c?void 0:c.videoDetails,DBa))a.EL=d.title,a.DL=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.zi=!!c.addToWatchLaterButton;hBa(a,c.shareButton);var e,
f;if(d=g.av(null==c?void 0:null==(e=c.playButton)?void 0:null==(f=e.buttonRenderer)?void 0:f.navigationEndpoint,g.VG))$Aa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Yg(c.videoDurationSeconds));c.webPlayerActionsPorting&&Zza(a,c.webPlayerActionsPorting);if(e=g.av(null==c?void 0:c.playlist,EBa)){f=[];c=Number(e.currentIndex);if(e.contents){d=0;for(var h=e.contents.length;d<h;d++){var l=e.contents[d].playlistPanelVideoRenderer;if(l){var m=l.shortBylineText?g.zA(l.shortBylineText):
"",n=l.title?g.zA(l.title):"",p=d===c?b.channel_path:"",q=d===c?b.profile_picture:"",v=d===c?a.isPrivate:!a.Oa.K("embeds_web_private_pl_metadata_killswitch");f.push({author:m,encrypted_id:l.videoId,title:n,channel_path:p,profile_picture:q,is_private:v,is_dni:d===c?a.C:!1,dni_color:d===c?a.Ua:""})}}}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.zA(e.titleText));e.shortBylineText&&(b.author=g.zA(e.shortBylineText));a.AT=b}}if(a.Jh.previewPlayabilityStatus){if(a.bk=
a.Jh.previewPlayabilityStatus,b=a.bk,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){e=b.errorScreen;if(f=null==e?void 0:e.playerErrorMessageRenderer){a.fK=f;if(c=f.reason)a.errorReason=g.zA(c);if(f=f.subreason)a.Vk=g.zA(f)}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 w;(null==e?0:null==(w=e.playerKavRenderer)?0:w.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;
default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.Jh.playabilityStatus&&(a.Kl=a.Jh.playabilityStatus,FBa(a)&&(a.errorDetail="0",a.Kl&&((w=a.Kl.embeddedPlayerErrorMessageRenderer)?a.fK=g.av(w,GBa):a.K("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.Kl.reason||null))));(w=a.Jh.attestation)&&Sza(a,w);(w=a.Jh.permissions)&&w.allowImaMonetization&&(a.allowImaMonetization=!0)}};
$Aa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.gN=new DAa(b)};
kBa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.av(null==(e=g.av(null==c?void 0:c.channelThumbnailEndpoint,HBa))?void 0:e.urlEndpoint,g.RH))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.av(e,IBa)){if(d=e.title)b.title=g.zA(d);if(e=e.subtitle)b.subtitle=g.zA(e)}if(c=c.expandedRenderer)if(c=g.av(c,JBa)){if(e=c.title)b.expanded_title=g.zA(e);if(e=c.subtitle)b.expanded_subtitle=g.zA(e);if(c=c.subscribeButton)if(c=g.av(c,KBa))b.ucid=
c.channelId,b.subscribed=c.subscribed,a.rk=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.hG=b.toggledServiceEndpoint||null,a.gG=b.defaultServiceEndpoint||null):(a.hG=b.defaultServiceEndpoint||null,a.gG=b.toggledServiceEndpoint||null))}};
g.iI=function(a){return hI(a)&&!a.allowLiveDvr};
jI=function(a){return hI(a)&&a.allowLiveDvr};
hI=function(a){return a.K("html5_live_head_playable")?a.isLiveHeadPlayable:a.isLivePlayback};
g.kI=function(a){return!!a.j&&Ixa(a.j)};
g.lI=function(a){return!!a.j&&Jxa(a.j)};
sBa=function(a){return a.yI()||g.mI(a)};
g.nI=function(a){return!!a.j&&Kxa(a.j)};
g.mI=function(a){return!!a.j&&Lxa(a.j)};
g.LBa=function(a){if(a.dG)return null;var b=a.YM;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.MBa=function(a){return a.dG?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.oI=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.pI=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};
qI=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Oa.La};
rI=function(a){if(a.isAd()&&a.videoId!=a.Oa.Cd)return a.Oa.Cd};
sI=function(a){return a.cn||"detailpage"==qI(a)||"shortspage"==qI(a)||a.mutedAutoplay};
tI=function(a){if(sI(a)){if("detailpage"==qI(a)||"shortspage"==qI(a))return a.Vm||0<a.Yb;if(!("17_8"===a.adFormat&&!a.Vm||a.UR||"adunit"==qI(a)&&a.og))return!0}return!1};
g.uI=function(a){return a.oauthToken||a.Oa.vg};
NBa=function(a){var b=1,c=g.TE(a.Oa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Ld;a.B&&a.B.j&&a.B.j[0]&&a.fu[a.B.j[0].id]&&(c=a.fu[a.B.j[0].id]);if(a.K("html5_stateful_audio_normalization")&&null!=c){if(a.cQ)return Math.min(1,Math.pow(10,-a.Lx/20))||b;var d=0;a.K("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.Oa.bk,g.TE(a.Oa.experiments,"html5_stateful_audio_min_adjustment_value")));a.Lx=c}return Math.min(1,Math.pow(10,-c/20))||b};
VH=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===aG(a.Oa)&&"MUSIC"===a.Oa.deviceParams.ctheme;!a.rg&&(g.VF(a.Oa)||c)&&b.includes(a.musicVideoType)&&(a.rg=!0);if(b=g.Qu())b=/Starboard\/([0-9]+)/.exec(g.rb()),b=10>(b?parseInt(b[1],10):NaN);c=a.Oa;c=("TVHTML5_CAST"===aG(c)||"TVHTML5"===aG(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Oa.deviceParams.ctheme;!a.rg&&(c||rza(a.Oa))&&
!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.K("cast_prefer_audio_only_for_atv_and_uploads")||a.K("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.rg=!0);return a.Oa.deviceIsAudioOnly||a.rg&&a.Oa.C};
OBa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
vI=function(a){return!(!a.Jl||!a.Oa.C)&&!!a.adaptiveFormats};
PBa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
YAa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.sH(b);return b&&!a.Jl};
g.wI=function(a){if(!a.j||!a.u||!a.D)return!1;var b=a.j.j;return!!b[a.u.id]&&OB(b[a.u.id].u.j)&&!!b[a.D.id]&&OB(b[a.D.id].u.j)};
FBa=function(a){return(a=a.Kl)&&a.showError?a.showError:!1};
ZH=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")};
QBa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
QAa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.nu=new eAa(b));if(b=b.video_masthead_ad_quartile_urls)a.TF=b.quartile_0_url,a.qN=b.quartile_25_url,a.rN=b.quartile_50_url,a.sN=b.quartile_75_url,a.pN=b.quartile_100_url,a.mu=b.quartile_0_urls,a.WF=b.quartile_25_urls,a.XF=b.quartile_50_urls,a.YF=b.quartile_75_urls,a.VF=b.quartile_100_urls};
LH=function(a,b){return b?ZE(a.Oa.j)?!0:xI&&5>yI?!1:!0:!1};
PAa=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};
Tza=function(a){if(a){if(Xua(a))return a;a=Yua(a);if(Xua(a,!0))return a}return""};
g.RBa=function(a){return a.captionsLanguagePreference||a.Oa.captionsLanguagePreference||g.fI(a,"yt:cc_default_lang")||a.Oa.pg};
zI=function(a){return!!(a.K("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
g.AI=function(a){if(a.K("web_player_decouple_autonav")){var b;return a.Pk||(null==(b=a.suggestions)?void 0:b[0])||null}var c;return(null==(c=a.suggestions)?void 0:c[0])||null};
BI=function(a,b){this.j=a;this.W=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.V=this.N=0};
SBa=function(a){return CI(a)&&1==a.getPlayerState(2)};
CI=function(a){a=a.Fc();return void 0!==a&&2==a.getPlayerType()};
DI=function(a){a=a.R();return bG(a)&&!g.nG(a)&&"desktop-polymer"==a.playerStyle};
EI=function(a,b){var c=a.R();RF(c)||"3"!=c.controlsType||a.Za().oA(b)};
GI=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=FI(a)};
FI=function(a){return a+(":"+(To.getInstance().j++).toString(36))};
HI=function(a){this.U=a};
TBa=function(a,b){if(0===b||1===b&&(a.U.isMobile&&g.Zv?0:a.U.isMobile||g.nG(a.U)||g.cG(a.U)||dG(a.U)||!g.Zv))return!0;a=g.eh("video-ads");return null!=a&&"none"!==Bl(a,"display")};
UBa=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}};
II=function(){g.cz.call(this);var a=this;this.j={};g.cf(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
KI=function(){if(null===JI){JI=new II;Rk(On).u="b";var a=Rk(On),b="h"==Hn(a)||"b"==Hn(a),c=!(Yk(),!1);b&&c&&(a.D=!0,a.I=new Pia)}return JI};
VBa=function(a,b,c){a.j[b]=c};
WBa=function(){};
LI=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};
MI=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
NI=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"};
OI=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||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
PI=function(a){switch(a){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
XBa=function(a){return(a=a.pings)?Object.fromEntries(OI(a)):{}};
QI=function(a,b,c,d,e){BI.call(this,a,XBa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ha=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new LI(0,[]);this.qa=null;this.C={};this.ra=null;this.u=0;this.J=null;this.Y=e;this.Ea=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.ra=c);this.C=lu(this.j.playerVars||"");this.J=this.j.externalVideoId||null;this.u=gv(this.u,this.C.length_seconds);this.Y&&this.J&&(this.Ea=this.Y(this.J));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.qz(f)}this.qa=this.j.clickthroughEndpoint||null;this.B=new LI(0,[this.u])};
YBa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
RI=function(){this.j=[];this.u=0};
SI=function(a,b){b&&a.j.push(b)};
TI=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};
UI=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};
VI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
WI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
ZBa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=TI(a.impressionCommands)||[];b.error=TI(a.errorCommands)||[];b.mute=TI(a.muteCommands)||[];b.unmute=TI(a.unmuteCommands)||[];b.pause=TI(a.pauseCommands)||[];b.rewind=TI(a.rewindCommands)||[];b.resume=TI(a.resumeCommands)||[];b.skip=TI(a.skipCommands)||[];b.close=TI(a.closeCommands)||[];b.clickthrough=TI(a.clickthroughCommands)||[];b.fullscreen=TI(a.fullscreenCommands)||[];b.active_view_viewable=TI(a.activeViewViewableCommands)||
[];b.active_view_measurable=TI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=TI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=TI(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=TI(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=TI(a.endFullscreenCommands)||[];b.channel_clickthrough=TI(a.channelClickthroughCommands)||[];b.abandon=TI(a.abandonCommands)||
[];b.progress=UI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=UI(a.progressCommands.filter(function(c){return WI(c)&&Fg(VI(c),0)}));
b.first_quartile=UI(a.progressCommands.filter(function(c){return WI(c)&&Fg(VI(c),.25)}));
b.midpoint=UI(a.progressCommands.filter(function(c){return WI(c)&&Fg(VI(c),.5)}));
b.third_quartile=UI(a.progressCommands.filter(function(c){return WI(c)&&Fg(VI(c),.75)}));
b.complete=UI(a.progressCommands.filter(function(c){return WI(c)&&Fg(VI(c),1)}));
return b};
XI=function(a){BI.call(this,a,ZBa(a));a.questions&&a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
$Ba=function(a,b,c,d){this.id=b;this.C=d.jf;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=cva(b,d);if(null==f)d=new wA(b,new zo(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(To.getInstance().j++).toString(36);
var h=d.daiEnabled||d.jf;f=new wA(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.jf||0<d.j)if(d=cva(b,d,!0))h=new wA(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.j=d[1];this.u=c;this.I=!1;this.N={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
YI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
$I=function(a,b){var c={};aCa(a,c,b);bCa(c);c.LACT=ZI(function(){var d=Px().toString();a.R().K("enable_undefined_lact_debug_logging")&&"-1"===d&&g.rz(Error("Unknown LACT returned from macro_expander.ts"));return d});
c.VIS=ZI(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=ZI(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
cCa=function(a){var b={};if(!a.kind)return g.qz(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.qz(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=ZI(Xf(Math.round(Yg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=ZI(Xf("0"));return b};
ZI=function(a){return{toString:function(){return a()}}};
dCa=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.Cf(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
aCa=function(a,b,c){b.CPN=ZI(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.rz(Error("Video data is null.")),d=null);return d});
b.AD_MT=ZI(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=ZI(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=ZI(function(){return a.Za().Ji().height.toString()});
b.P_W=ZI(function(){return a.Za().Ji().width.toString()});
b.PV_H=ZI(function(){return a.Za().getVideoContentRect().height.toString()});
b.PV_W=ZI(function(){return a.Za().getVideoContentRect().width.toString()})};
bCa=function(a){a.CONN=ZI(Xf("0"));a.WT=ZI(function(){return Date.now().toString()})};
eCa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=YI(a)?ZI(Xf(Math.round(a.j.start/1E3).toString())):ZI(Xf("0"));return b};
fCa=function(a){var b={};b.SLOT_POS=ZI(Xf(a.B.j.toString()));return b};
gCa=function(a){var b=a&&g.ib(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
aJ=function(a){for(var b={},c=g.r(hCa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
bJ=function(){var a={};Object.assign.apply(Object,[a].concat(g.t(g.za.apply(0,arguments))));return a};
cJ=function(){};
iCa=function(a,b,c,d){var e,f,h,l,m,n,p,q,v,w;g.z(function(y){switch(y.j){case 1:e=!!b.scrubReferrer;f=g.Sn(b.baseUrl,dCa(c,e,d));h={};if(!b.headers){y.Ma(2);break}l=g.r(b.headers);m=l.next();case 3:if(m.done){y.Ma(5);break}n=m.value;switch(n.headerType){case "VISITOR_ID":g.Q("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.Q("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Q("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]=g.Q("EOM_VISITOR_DATA"));break;case "USER_AUTH":return y.Ma(6);case "PLUS_PAGE_ID":(p=
a.u())&&(h["X-Goog-PageId"]=p)}y.Ma(4);break;case 6:q=a.j();v=q.getValue();y.Ma(8);break;case 9:v=y.u;case 8:(w=v)&&(h.Authorization="Bearer "+w);y.Ma(4);break;case 4:m=l.next();y.Ma(3);break;case 5:"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];case 2:g.Ww(f,void 0,e,0!==Object.keys(h).length?h:void 0,"",!0),g.pa(y)}})};
dJ=function(a){this.Kr=a};
eJ=function(a){this.wr=a};
kCa=function(a,b,c,d,e,f){e=void 0===e?new eJ(new dJ(d.getVideoData(1))):e;f=void 0===f?!1:f;g.K.call(this);this.ad=a;this.B=b;this.macros=c;this.j=d;this.jk=e;this.daiEnabled=f;this.u={fF:.25,ZF:.5,bG:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.W.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.W.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
jCa(NI(a.j.pings))};
jJ=function(a,b){fJ(a)||(gJ(a)?(hJ(a,0,!0),lCa(a,b,b)):(hJ(a,0,!0),mCa(a,0,0,!0)),iJ(a,"complete"))};
hJ=function(a,b,c){for(c=void 0===c?!1:c;a.ad.N<a.progressPings.length;){var d=kJ(a,"progress"),e=a.progressPings[a.ad.N];if(e.offsetMilliseconds<=1E3*b||c)lJ(a,e,d),a.ad.N++;else break}};
nCa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.V<a.unmutedProgressPings.length;){var d=kJ(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.V];if(e.offsetMilliseconds<=1E3*b||c)lJ(a,e,d),a.ad.V++;else break}};
mCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.fF||d)&&iJ(a,"first_quartile");(b>=c*a.u.ZF||d)&&iJ(a,"midpoint");(b>=c*a.u.bG||d)&&iJ(a,"third_quartile")};
oCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.fF||d)&&iJ(a,"unmuted_first_quartile");(b>=c*a.u.ZF||d)&&iJ(a,"unmuted_midpoint");(b>=c*a.u.bG||d)&&iJ(a,"unmuted_third_quartile")};
mJ=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;iJ(a,b)};
lCa=function(a,b,c){if(0<c&&0<b){var d=a.j.zb(a.j.getPresentingPlayerType());g.W(d,16)||g.W(d,32)||(mJ(a,"first_quartile",b,c*a.u.fF),mJ(a,"midpoint",b,c*a.u.ZF),mJ(a,"third_quartile",b,c*a.u.bG))}a.lastUpdatedTimeSecs=b};
nJ=function(a,b){for(var c=kJ(a,b),d=g.r(a.ad.W[b]||[]),e=d.next();!e.done;e=d.next())lJ(a,e.value,c);a.ad.D[b]=!0};
iJ=function(a,b){a.ad.D.hasOwnProperty(b)||nJ(a,b)};
oJ=function(a,b){return a.ad.D.hasOwnProperty(b)};
lJ=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.jk,f=e.send,h={},l=$I(a.j),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();if(l=a.j.getVideoData(2))h.AD_CPN=l.clientPlaybackNonce;a=Object.assign(h,a.macros);f.call(e,d,a,c,b)}};
kJ=function(a,b){var c=a.B;a=a.ad;if(a.iz())if(b=pCa(b),null==b)c={};else{var d;(d=a.va()())||(d=(d=c.G)&&d.Fc?(d=d.Fc())&&2==d.getPlayerType()?pJ(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.G.isFullscreen()},c=Rn(b,a.I,c)):c={}}else c={};return c?Object.assign({},c):{}};
gJ=function(a){return!a.j.R().K("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
fJ=function(a){return gJ(a)&&!oJ(a,"impression")};
qJ=function(a){return gJ(a)&&oJ(a,"seek")};
rJ=function(a,b){gJ(a)?nJ(a,b):iJ(a,b)};
g.sJ=function(a,b){this.state=a;this.jq=b};
tJ=function(a,b){return g.W(a.state,b)&&!g.W(a.jq,b)?1:!g.W(a.state,b)&&g.W(a.jq,b)?-1:0};
g.uJ=function(a,b){return 0<tJ(a,b)};
vJ=function(a,b,c,d,e,f){f=void 0===f?0:f;g.cz.call(this);this.G=a;this.j=d;this.u=e;this.u.j[b.I]=this;this.u.subscribe("adactiveviewmeasurable",this.MR,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.NR,this);this.u.subscribe("adoverlaymeasurableimpression",this.OR,this);this.u.subscribe("adoverlayunviewableimpression",this.PR,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.QR,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.RR,
this);this.u.subscribe("adviewableimpression",this.SR,this);this.ad=b;this.ra=[];this.macros=c;this.N=!1;this.qa=!TBa(new HI(this.G.R()),f);this.C=!1};
rCa=function(a,b){g.dc(a.ra,b);qCa(a,b,1)};
sCa=function(a,b){if(a.N){var c=a.j,d=a.getDuration();!fJ(c)&&0<d&&(hJ(c,b),gJ(c)?lCa(c,b,d):mCa(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!fJ(c)&&0<a&&(nCa(c,b),oCa(c,b,a,!1)))}};
qCa=function(a,b,c){0!=b.length&&(b=g.Pk(b,function(d){return new yA(d,c,d.id)}),a.X("onAdUxUpdate",b))};
wJ=function(a){var b={};b.abandon=a.abandonCommands&&TI(a.abandonCommands.commands)||[];BI.call(this,a,b)};
xJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;GI.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.LK=e;this.rE=f};
yJ=function(a,b,c,d,e,f){vJ.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.qc=null;this.I=f};
zJ=function(a){BI.call(this,a);this.u=lu(this.j.playerVars||"")};
AJ=function(){BI.apply(this,arguments)};
tCa=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
BJ=function(a,b,c,d,e){vJ.call(this,a,b,c,d,e);var f=this;this.I=b;this.B=new g.Zn(function(){f.Jm("load_timeout")},1E4);
g.M(this,this.B);this.D=new $y(this);g.M(this,this.D)};
CJ=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(!$z(a.Aa,c.value))return!1;return!0};
uCa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
DJ=function(a){return!!(a.vZ&&a.slot&&a.layout)};
EJ=function(a,b,c){GI.call(this,"ad-message",a,void 0,b,c)};
FJ=function(a,b,c,d,e,f,h,l){vJ.call(this,a,b,c,d,e);var m=this;this.B=b;this.V=b.j.durationMs||0;this.J=l;this.W=!1;this.I=this.D=0;this.Y=function(){var n=m.G.getProgressState().current;n<m.D?m.Im():n>m.I&&m.Zi()}};
xCa=function(a,b){if(a.J&&a.W){a.W=!1;var c=a.B.j;if(DJ(c)){var d=c.slot;c=c.layout;b=vCa(b);a=g.r(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;GJ(e.j(),f,h,l);wCa(e.j(),f)}}else g.rz(Error("adMessageRenderer is not augmented on termination"))}};
vCa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.rz(Error("AdNotify abandoned")),"abandoned";default:return g.rz(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.HJ=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={WE:c.WE},e=d.next())e=e.value,c.WE=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.WE}}(c));
return a};
IJ=function(a,b,c,d){this.j=a;this.C=b;this.u=$I(c);this.B=d};
yCa=function(a){for(var b={},c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
zCa=function(a,b,c,d){new IJ(a,b,c,d)};
JJ=function(a,b,c,d,e,f,h,l,m){vJ.call(this,a,b,c,d,e,1);var n=this;this.UC=!0;this.J=m;this.B=b;this.D=f;this.W=new $y(this);g.M(this,this.W);this.I=new g.Zn(function(){n.Jm("load_timeout")},1E4);
g.M(this,this.I);this.V=h};
ACa=function(a){if(a.V&&(a.G.R().experiments.fb("enable_topsoil_wta_for_halftime")||a.G.R().experiments.fb("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.qz(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.qz(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
MJ=function(a,b){if(null!==a.J){var c=BCa(a);a=g.r(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(CCa(d,e,[],!1),DCa(d.B(),d.u),ECa(d.B(),d.u),FCa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}GJ(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;KJ(e.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.Md);for(f=e.next();!f.done;f=e.next())f.value.vj(h);wCa(d.B(),
d.u)}d.Da.get().G.R().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&LJ(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
NJ=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
BCa=function(a){if(a=a.B.j.elementId)return a;g.qz(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
GCa=function(a){function b(h,l){h=a.h3;var m=Object.assign({},{});m.FINAL=ZI(Xf("1"));m.SLOT_POS=ZI(Xf("0"));return bJ(h,aJ(m),l)}
function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.mL(l,p);l=h(l,p,m,n);g.M(l,m);return l}}}
var d=c(function(h,l,m){return new yJ(a.G,h,l,m,a.Ay,a.bb)}),e=c(function(h,l,m){return new FJ(a.G,h,l,m,a.Ay,a.bb,a.il,a.zo)}),f=c(function(h,l,m){return new BJ(a.G,h,l,m,a.Ay,a.bb)});
this.JW=new tCa({create:function(h,l){var m=bJ(b(h,l),aJ(fCa(h)));l=a.mL(h,m);h=new JJ(a.G,h,m,l,a.Ay,a.bb,a.daiEnabled,function(){return new zCa(a.bb,m,a.G,a.jk)},a.Ao,a.oh);
g.M(h,l);return h}},d,e,f)};
OJ=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
HCa=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{FX:new zo(b,c),uZ:new kA(b,c-b,a.context,a.identifier,a.event,a.j)}};
PJ=function(){this.j=[]};
QJ=function(a,b,c){var d=g.kc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
ICa=function(){this.j=new PJ};
RJ=function(a){this.j=a};
JCa=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};
KCa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
LCa=function(a,b,c){a.j&&SJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
MCa=function(a,b){a.j&&SJ({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.VW}})};
NCa=function(a,b){SJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
SJ=function(a){g.Mv("adsClientStateChange",a)};
TJ=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Ue=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
PCa=function(a,b,c,d,e,f){f();var h=a.G.getVideoData(1),l=a.G.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.I);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.Ue=!0,(a.G.K("send_csi_info_for_ad_to_video_killswitch")||lB("_start",a.actionType))&&
OCa(a)))};
OCa=function(a){if(a.Ue)if(a.G.K("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)VA("video_to_ad");else if(a.G.K("web_csi_via_jspb")){var b=new zt;g.D(b,21,QCa(a.B));g.D(b,7,4);var c=new wt;g.D(c,8,2);F(b,wt,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=Ava(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);kB(b,a.actionType)}else b={adBreakType:RCa(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=Ava(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),YA(b,a.actionType)};
RCa=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"}};
QCa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
g.TCa=function(a){return(a=SCa[a.toString()])?a:"LICENSE"};
UJ=function(){var a=this;this.j=this.u=qaa;this.promise=new g.Fh(function(b,c){a.u=b;a.j=c})};
VJ=function(){g.K.call(this);this.u=null;this.N=this.J=!1;this.D=new g.Uf;g.M(this,this.D)};
WJ=function(a){a=a.Qy();return 1>a.length?NaN:a.end(a.length-1)};
UCa=function(a){!a.B&&Axa()&&(a.C?a.C.then(function(){return UCa(a)}):a.Hf()||(a.B=a.ls()))};
VCa=function(a,b,c){a.Hn()||a.getCurrentTime()>b||10<c||(a.play(),g.xu(function(){VCa(a,a.getCurrentTime(),c+1)},500))};
WCa=function(a,b){a.u&&a.u.equals(b)||(a.u&&a.u.dispose(),a.u=b)};
XJ=function(a){return yxa(a.Sg(),a.getCurrentTime())};
XCa=function(a,b){if(0===a.aj()||0<a.ag())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Qy(),a.length||!c)?iE(a,b):c};
YJ=function(a){a.Hf()&&(YCa&&Wu&&0<a.getCurrentTime()&&a.seekTo(0),a.cE(),a.load(),WCa(a,null));delete a.C};
ZCa=function(a){var b=a.Sg();return 0<kE(b)&&a.getDuration()?b.end(b.length-1):0};
ZJ=function(a){switch(a.ag()){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.$J=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
aK=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.$J(b,c)};
bK=function(a,b){return aK(a,a.state|b)};
cK=function(a,b){return aK(a,a.state&~b)};
dK=function(a,b,c){return aK(a,(a.state|b)&~c)};
g.W=function(a,b){return!!(a.state&b)};
g.eK=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.fK=function(a){return g.W(a,8)&&!g.W(a,2)&&!g.W(a,1024)};
gK=function(a){return a.Oc()&&!g.W(a,16)&&!g.W(a,32)};
g.hK=function(a){return g.W(a,1)&&!g.W(a,2)};
iK=function(a){return g.W(a,128)?-1:g.W(a,2)?0:g.W(a,64)?-1:g.W(a,1)&&!g.W(a,32)?3:g.W(a,8)?1:g.W(a,4)?2:-1};
jK=function(a,b,c,d,e,f,h,l){g.cz.call(this);this.kh=a;this.G=b;this.u=d;this.J=this.u.u instanceof BI?this.u.u:null;this.j=null;this.W=!1;this.D=c;this.V=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ra=0;this.qa=!1;this.Nn=e;this.uv=f;this.qr=h;this.Y=!1;this.daiEnabled=l};
$Ca=function(a){if(CI(a.G)){var b=a.G.getVideoData(2);b=a.u.N[b.Dc]||null;if(!b)return a.ym(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.Ex(b)}else if(1===a.G.getPresentingPlayerType()&&a.j)return a.ym(),!0;return!1};
aDa=function(a,b){a.D.Yu(a.u.j.j,b,a.LO(),a.MO(),a.isLiveStream())};
kK=function(a){var b=a.kh,c=a.u.j;if(c instanceof wA){if(b.N&&bva(c)&&g.W(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.qz(Error(c.toString()+" has already been seen")):(b.rr.add(c),b.B.set(c,a),xA(c)||b.j.le([c],1))}else g.qz(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.I&&(bDa(a,a.NO()),a.u.I=!0)};
bDa=function(a,b){for(var c=lK(a),d=a.u.j.start,e=[],f=g.r(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=cDa(h);e.push({externalVideoId:h.Nf(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j.start;h.B.B=c;if(!dDa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+cDa(p)},0);
LCa(a.Nn,a.u.j.Bv(),b);MCa(a.Nn,{cueIdentifier:a.u.C&&a.u.C.identifier,VW:e})};
cDa=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};
lK=function(a){var b=a.u.j.end;a=QJ(a.uv,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
dDa=function(a,b,c,d){var e=a.qr.create(b,aJ(eCa(a.u)),a.u.j.j);c=e.zO(c,d);g.af(e);if(!c)return!1;a.u.N[c]=b;return!0};
nK=function(a,b){b=void 0===b?!1:b;a.W=!0;g.af(a.j);a.D.Ow();var c=a.u.J;if(null!==c){var d=a.Nn,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,h=lK(a);d.j&&SJ({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.Kp()).toString()}});a.u.J=null}b||a.daiEnabled?mK(a.kh,!0):a.V&&a.AM()&&a.oz()?mK(a.kh,!1,eDa(a)):mK(a.kh,!1);aDa(a,!0)};
eDa=function(a){if(a.qa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Wa()/1E3)-a.ra;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
fDa=function(a,b,c){this.j=a;this.u=b;this.B=c};
gDa=function(a,b){a=a&&a.watchEndpointSupportedAuthorizationTokenConfig&&a.watchEndpointSupportedAuthorizationTokenConfig.videoAuthorizationToken&&a.watchEndpointSupportedAuthorizationTokenConfig.videoAuthorizationToken.credentialTransferTokens||[];for(var c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
oK=function(){this.D=[];this.N=[];this.j=[];this.C=[];this.J=[];this.u=new Set;this.V=new Map};
pK=function(){oK.j||(oK.j=new oK);return oK.j};
kDa=function(a,b,c,d){d=void 0===d?{}:d;Object.values(hDa).includes(b)||(g.rz(new g.Rv("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||a.j.push({rootVe:b,key:d.key||""});a.D=[];a.N=[];d.sO?iDa(a,b,c,d):jDa(a,b,c,d)};
lDa=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.Bz(c),f=g.Az(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.Fz(a.client,e,f,[g.uz(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.Fz(a.client,e,f,[g.uz(d.playerResponse.trackingParams)])}})};
mDa=function(a,b){qK(a,g.uz(b))};
qK=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.Bz(d);c=c||g.Az(d);e&&c&&g.Fz(a.client,e,c,[b])}};
iDa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.B=function(){jDa(a,b,c,d);var h=g.Az(d.layer);if(h){for(var l=g.r(a.D),m=l.next();!m.done;m=l.next())m=m.value,qK(a,m[0],m[1]||h,d.layer);h=g.r(a.N);for(l=h.next();!l.done;l=h.next()){var n=l.value;l=void 0;l=void 0===l?0:l;m=g.Bz(l);var p=n[0]||g.Az(l);if(m&&p){l=a.client;var q=n[1];n={cttAuthInfo:Cz(m),vk:m};g.T("il_via_jspb")?(q=new ut,q.Xf(m),p=p.getAsJspb(),F(q,as,2,p),"UNDEFINED_CSN"==m?Ez("visualElementStateChanged",q,n):dpa(q,n,
l)):(p={csn:m,ve:p.getAsJson(),clientData:q},"UNDEFINED_CSN"==m?Ez("visualElementStateChanged",p,n):l?py("visualElementStateChanged",p,l,n):g.Mv("visualElementStateChanged",p,n))}}}};
c||g.Bz(d.layer)||a.B();if(d.sO)for(var e=g.r(d.sO),f=e.next();!f.done;f=e.next())lDa(a,f.value,d.layer);else g.qz(Error("Delayed screen needs a data promise."))};
jDa=function(a,b,c,d){d=void 0===d?{}:d;d.layer||(d.layer=0);var e=void 0!==d.W2?d.W2:d.layer;var f=g.Bz(e);e=g.Az(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.Q("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});try{var n=uua(a.client,b,l,d.oO,d.cttAuthInfo,m,d.L2a)}catch(p){Tra(p,{lA:b,rootVe:e,parentVisualElement:c,u2a:f,g3a:l,oO:d.oO});g.qz(p);
return}qua(n,b,d.layer,d.cttAuthInfo);if(b=f&&"UNDEFINED_CSN"!==f&&e){a:{b=g.r(Object.values(nDa));for(c=b.next();!c.done;c=b.next())if(g.Bz(c.value)===f){b=!0;break a}b=!1}b=!b}b&&vua(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=n||"");YA({clientScreenNonce:n});Mz.getInstance().clear();e=g.Az(d.layer);f&&"UNDEFINED_CSN"!==f&&e&&(g.T("web_mark_root_visible")||g.T("music_web_mark_root_visible"))&&g.Gz(n,e);a.u.delete(d.layer||0);a.B=void 0;f=g.r(a.V);for(n=f.next();!n.done;n=
f.next())b=g.r(n.value),n=b.next().value,b=b.next().value,b.has(d.layer)&&e&&qK(a,n,e,d.layer);for(d=0;d<a.C.length;d++){f=a.C[d];try{f()}catch(p){g.qz(p)}}for(d=a.C.length=0;d<a.J.length;d++){f=a.J[d];try{f()}catch(p){g.qz(p)}}};
rK=function(){this.j={};if(this.u=vma()){var a=g.Mu("CONSISTENCY");a&&oDa(this,{encryptedTokenJarContents:a})}};
oDa=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.Lu("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
tK=function(){var a=g.Q("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.Q("INNERTUBE_CLIENT_NAME")&&(this.localStorage=sK(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
sK=function(a){return void 0===a.localStorage?new zv("yt-client-location"):a.localStorage};
g.uK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.Q("INNERTUBE_CONTEXT");if(!d)return g.qz(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Hf(d);g.T("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.Q("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.rv.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.tv(0,165)?h="USER_INTERFACE_THEME_DARK":g.tv(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.T("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:wra()||h;e.userInterfaceTheme=
f;if(!b){if(f=Pma())e.connectionType=f;g.T("web_log_effective_connection_type")&&(f=Rma())&&(d.client.effectiveConnectionType=f)}var l;if(g.T("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.nu(g.C.location.href);!g.T("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.T("kevlar_woffle")&&Lma.j&&(m=Lma.j,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=pv(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.T("web_lr_app_quality_killswitch")&&(m=g.Q("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.Q("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.T("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=du())?e.experimentsToken=n:delete e.experimentsToken;n=eu();rK.j||(rK.j=new rK);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:tf(rK.j.j)});!g.T("web_prequest_context_killswitch")&&(n=g.Q("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&
(d.request.externalPrequestContext=n);e=g.rv.getInstance();n=g.tv(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.T("warm_op_csn_cleanup")?c&&(b=g.Bz())&&(d.clientScreenNonce=b):!b&&(b=g.Bz())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ha("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.T("web_enable_client_location_service")&&tK.getInstance().setLocationOnInnerTubeContext(d);try{var p=uu(),
q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var v=g.r(Object.entries(p)),w=v.next();!w.done;w=v.next()){var y=g.r(w.value),A=y.next().value,B=y.next().value;p=A;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(E){g.qz(E)}return d};
vK=function(){this.JS=!0};
wK=function(){vK.apply(this,arguments);this.Bt={}};
yK=function(){xK||(xK=new wK);return xK};
pDa=function(a,b){b?a.Bt.Authorization="Bearer "+b:delete a.Bt.Authorization};
qDa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
rDa=function(){var a=null;Kma().then(function(b){return a=b},function(b){return a=qDa(b)});
return a};
sDa=function(){var a=Qh(1E3,"NO_BID");return Lh(Sda([Kma(),a]).Wi(qDa),function(){return a.cancel()})};
tDa=function(a){return a.rd?g.tv(g.rv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
zK=function(a){this.player=a;this.u=this.j=1};
BK=function(a,b,c,d){var e=void 0===c?{}:c;c=e.gy;e=e.Od;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.R().Ll,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.durationSecs:0,AUTONAV_STATE:tDa(a.player.R()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Kp(),LACT:Px(),LIVE_INDEX:c?a.u++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.Za().Ji().height,
P_W:a.player.Za().Ji().width,YT_REMOTE:h?h.join(","):""};a.player.R().K("enable_undefined_lact_debug_logging")&&-1===Px()&&g.rz(Error("Unknown LACT returned from ad_break_info_service."));var m=fma(ema);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};tu(b)&&(d.sts="19219",(c=a.player.R().forcedExperiments)&&(d.forced_experiments=c));var n=pu(g.Sn(b,l),d);a.player.getVideoData();return 2!==n.split("?").length?Jh(Error("Invalid AdBreakInfo URL")):g.wG(null==f?void 0:f.oauthToken).then(function(p){if(p&&ru()){var q=yK();pDa(q,p)}p=a.player.Cm(q);q=uDa(a,n,l,f.isMdxPlayback);return g.AK(p,q,"/youtubei/v1/player/ad_break").then(function(v){return v})})};
xDa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=qu(b),f=vDa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=vDa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=ku(uu(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];wDa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
ADa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in yDa&&(f.clientName=yDa[d[0]]),d[1]in zDa&&(f.platform=zDa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
uDa=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=BDa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=CDa.test(b),l=DDa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=EDa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=FDa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=a.player.R();var q=ZF(p.qa);p=p.K("embeds_web_enable_pem_domain_fix_for_ad_requests")?q:"www.youtube-nocookie.com"===q?"www.youtube.com":
q;q=g.uK(a.player.getVideoData(1).ra,!0);var v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";xDa(q,b,v.toString(),a.player.R());var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19219,autonavState:tDa(a.player.R())};d&&(d={},ADa(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=GDa.includes(p)?void 0:g.Mu("PREF")){for(var y=d.split(RegExp("[:&]")),A=0,B=y.length;A<B;A++){var E=y[A].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 HDa)for(d=d.split(RegExp("[:&]")),A=HDa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,y="f"+(1+Math.floor(A/31)).toString(),A=1<<Math.floor(A%31),B=0,E=d.length;B<E;B++){var G=d[B].split("=");if(G[0]===y&&parseInt("0x"+G[1],16)&A){d=!0;break a}}d=!1}w.autoCaptionsDefaultOn=d}b=IDa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=
[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,context:q,adSignalsInfoString:ku(uu(v.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};
CK=function(a,b,c,d,e,f){g.cz.call(this);this.I=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
JDa=function(a,b){var c={isEmpty:!0,PP:!1,In:[]};if(!b)return c;b&&b.trackingParams&&mDa(pK(),b.trackingParams);if(b&&b.adThrottled)return c.PP=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(g.Xb(b))return c;if(0<a.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.In=b;
c.isEmpty=!1;return c};
DK=function(){BI.apply(this,arguments)};
EK=function(a,b,c,d,e,f,h,l){jK.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.N=KDa(this.zC())};
LDa=function(a){a.C++;var b=a.zC();b?(0<a.C&&a.D.QK(),a.Ex(b)):nK(a)};
KDa=function(a){return a?MDa.some(function(b){return a instanceof b}):!1};
NDa=function(a){this.j=new fDa(function(b){b=new jK(a.kh,a.G,a.nO(),b,a.Nn,a.uv,a.qr,a.daiEnabled);kK(b);return b},function(b){return new CK(a.mG,a.kh,a.G,a.lr,b,a.Nn)},function(b){b=new EK(a.kh,a.G,a.nO(),b,a.Nn,a.uv,a.qr,a.daiEnabled);
kK(b);return b})};
ODa=function(a,b){RI.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Mv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),SI(this,new AJ(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);SI(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new wJ(d.adActionInterstitialRenderer),
SI(this,d)):d.adIntroRenderer&&(d=new zJ(d.adIntroRenderer),SI(this,d),this.u=1);this.j.filter(function(f){return f instanceof QI}).forEach(function(f,h){f instanceof QI&&(h=new LI(h,c),f.B=h)})}}};
QDa=function(a,b){RI.call(this);SI(this,PDa(this,a.adVideoStart));var c=a.linearAd;b=c&&c.instreamVideoAdRenderer?b(c.instreamVideoAdRenderer):null;SI(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new wJ(a.adActionInterstitialRenderer)):a=null:a=null;SI(this,a)};
PDa=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new wJ(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Mv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new AJ(b.adMessageRenderer)):null};
RDa=function(a,b){this.B=new WBa;this.j=a;this.u=b};
SDa=function(a){this.j=a};
TDa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.j.create(e,f):null;return new $Ba(b,c,h,d)}catch(l){g.qz(l)}};
UDa=function(a){var b=new SDa(a.KW);return{KO:function(){return b}}};
FK=function(a){g.K.call(this);var b=this;this.u=a;this.j=null;g.cf(this,function(){return b.j=null});
var c=Zy(a);if(c){var d=function(){b.j&&b.j(!!Xy())};
this.u.addEventListener(c,d);g.cf(this,function(){b.u.removeEventListener(c,d)})}};
GK=function(a){g.K.call(this);this.j=a};
VDa=function(a){var b=window.document;return g.nG(a.R())?new FK(b):new GK(a)};
WDa=function(a){g.K.call(this);this.kV=new KCa(a.G,a.contentCpn,a.daiEnabled)};
XDa=function(a){HK=a&&a.data};
YDa=function(a){IK=a&&a.data};
ZDa=function(a){JK=a&&a.data};
$Da=function(){KK=JK=IK=HK=null};
NK=function(a){g.K.call(this);var b=this;this.fd=a;this.Ee=new Map;this.j=new Map;LK(this,"commandExecutorCommand",function(c,d,e){b.Ff(c.commands,d,e)});
MK(this,"commandExecutorCommand",function(c,d,e){aEa(b,c.commands,d,e)});
LK(this,"clickTrackingParams",function(){});
MK(this,"clickTrackingParams",function(){})};
bEa=function(a,b){LK(a,b.Bm(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
cEa=function(a,b){MK(a,b.Bm(),function(c,d,e){b.Yn(c,d,e)})};
LK=function(a,b,c){a.isDisposed();a.Ee.get(b)&&g.qz(Error("Extension name "+b+" already registered"));a.Ee.set(b,c)};
MK=function(a,b,c){a.isDisposed();a.j.get(b)&&g.qz(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
aEa=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.r(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.av(b,dEa)||g.av(b,eEa)?e.push(b):f.push(b);e=g.r(e);for(b=e.next();!b.done;b=e.next())OK(a,b.value,c,d);f=g.r(f);for(b=f.next();!b.done;b=f.next())OK(a,b.value,c,d)};
fEa=function(a,b){a.fd.get().Ka("innertubeCommand",{openPopupAction:b})};
gEa=function(a,b){a.fd.get().Ka("innertubeCommand",{confirmDialogEndpoint:b})};
OK=function(a,b,c,d){a.isDisposed();b.loggingUrls&&(d&&0<Object.keys(d).length&&g.rz(new g.Rv("Command handling in control flow with additional macros.",{fieldName:"loggingUrls"})),hEa(a,"loggingUrls",b.loggingUrls,c,d));b=g.r(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?fEa(a,f):"confirmDialogEndpoint"===e?gEa(a,f):iEa.hasOwnProperty(e)||(d&&0<Object.keys(d).length&&"adPingingEndpoint"!==e&&g.rz(new g.Rv("Command handling in control flow with additional macros.",
{fieldName:e})),hEa(a,e,f,c,d))}};
jEa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Ee.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.qz(f)}else b=new g.Rv("Unhandled field",b),g.rz(b)};
hEa=function(a,b,c,d,e){(a=a.j.get(b))||new g.Rv("Unhandled field",b);try{a(c,d,e)}catch(f){g.qz(f)}};
lEa=function(a,b,c,d){for(var e=!1,f=g.r(b.yj.entries()),h=f.next();!h.done;h=f.next())h=g.r(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.slotType&&"core"===h.Xa&&(e=!0);e?(d=kEa(b,d))?c.fI(d):eA("No triggering layout ID available when attempting to mute."):g.Dh(function(){a.ym()})};
kEa=function(a,b){if(b)return b;a=g.r(a.yj.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.Xa)return c.layoutId}};
mEa=function(a){var b=new dJ(a.Kr),c=new eJ(b);return{vY:function(){return b},
QH:function(){return c}}};
PK=function(a){TJ.call(this,a)};
pCa=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":case "unmuted_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}};
nEa=function(a){this.G=a;var b=Rk(On),c=a.ze();b.B!==c&&((b.B=c)||Qja(b));a.R().K("active_view_stop_starting_measurement_on_loaded")&&wk(Yk().featureSet,"ssmol",1)};
jCa=function(a){Qn(Rk(On),a)};
oEa=function(a){g.K.call(this);this.j=a;this.u=new nEa(a.G)};
pEa=function(a){return function(){return new PK(a.j.G)}};
qEa=function(a){return function(b,c){return new kCa(b,a.u,c,a.j.G,a.j.jk,a.j.daiEnabled)}};
QK=function(a,b,c,d,e){g.cz.call(this);var f=this;this.j=b;this.va=null;this.Ya=c;this.gb=e.oh;this.Ua=e.wq;this.u=null;this.B=new Map;c=this.j.R().experiments;var h=mEa({Kr:b.getVideoData(1)}),l=new oEa({jk:h.QH(),G:b,daiEnabled:!1});g.M(this,l);this.rr=new Set;this.OC=-1;this.V=[];this.W=new Map;this.I=new Map;this.J=new Set;this.C=new $y(this);g.M(this,this.C);this.D=new $y(this);g.M(this,this.D);this.Y=this.Ra=this.ra=!1;this.N=g.nG(b.R());this.ub=d;b=new WDa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
t2a:this,daiEnabled:!1,G:this.j});g.M(this,b);this.eb=b.kV;this.Ha=(new ICa).j;var m=Fca(aJ($I(this.j)));e=new GCa({bb:this,Ay:KI(),jk:h.QH(),G:this.j,h3:m,mL:qEa(l),daiEnabled:!1,Ao:e.Ao,oh:this.gb,il:e.il,zo:e.zo});this.qa=(new NDa({lr:this.Ya,qr:e.JW,mG:a,kh:this,Ay:KI(),nO:pEa(l),Nn:this.eb,uv:this.Ha,G:this.j,B3a:m,mL:function(n){return qEa(l)(n,m)},
daiEnabled:!1})).JO();this.Ea=UDa({KW:new RDa(c,function(n){return f.I.has(n)?f.I.get(n):null})}).KO();
this.La=VDa(this.j);g.M(this,this.La);this.Cb=tG(this.j.R())?this.j.R().experiments.fb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.R().experiments.fb("align_ad_to_video_player_lifecycle_for_bulleit")};
wEa=function(a,b){if(a.j.getVideoData(1).Dr||g.Q("SERVED_VIA_SPF_HISTORY"))RK(a);else{if(DI(a.j)){var c=rEa(a.j);c.addEventListener("updateKevlarOrC3Companion",XDa);c.addEventListener("updateEngagementPanelAction",YDa);c.addEventListener("changeEngagementPanelVisibility",ZDa);window.addEventListener("yt-navigate-start",$Da)}a.C.P(a.j,"applicationplayerstatechange",a.Z_);a.C.P(a.j,g.uA("ad"),a.tJ,a);a.C.P(a.j,g.vA("ad"),a.u0,a);a.C.P(a.j,"aduxclicked",a.N_);a.C.P(a.j,"videodatachange",a.K2);b=sEa(b);
b=tEa(a,b);b=uEa(a,b);0<b.length&&vEa(a,b);g.Dh(a.D5,a)}};
sEa=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(eA("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
tEa=function(a,b){a.W=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.W.set(c.elementId,c),!1):!0})};
uEa=function(a,b){a.I=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.I.set(c.hostElementId,c),!1):!0})};
xEa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.qz(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof CK?!1:c instanceof jK?!c.zs():!0})};
RK=function(a){var b=yEa(a);if(0<b.length){var c=g.TE(a.j.R().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.N&&g.cG(a.j.R())?(c=new g.Zn(function(){zEa(a,b)},c),g.M(a,c),c.start()):g.Dh(function(){zEa(a,b)})}};
AEa=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.iz()?kJ(a.j,b):{}):b={};return b};
yEa=function(a){for(var b=BEa(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.rr.delete(d.value);return b};
BEa=function(a){var b=[];a=g.r(a.rr);for(var c=a.next();!c.done;c=a.next())c=c.value,xA(c)&&b.push(c);return b};
CEa=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 Oua(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.R().experiments.fb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.V.length,c);a.V=a.V.concat(b);return b};
zEa=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.tJ(c.value)}};
vEa=function(a,b){b=CEa(a,b);0==b.length||b.map(function(c){return a.qa.create(c)})};
DEa=function(a){a.ra||(a.D.P(a.j,"presentingplayerstatechange",a.lV),a.D.P(a.j,"internalAbandon",a.B_),a.D.P(a.j,"progresssync",a.N2),a.D.P(a.j,"onVolumeChange",a.O2),a.D.P(a.La,"fullscreentoggled",a.D0),a.ra=!0);g.ho(a.j.getRootNode(),"ad-showing");g.ho(a.j.getRootNode(),"ad-interrupting");a.j.R().experiments.fb("enable_html5_teal_ad_badge")&&DI(a.j)&&g.ho(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
mK=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.zs()&&(CI(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&EEa(a,a.u);a.u=null;a.OC=-1;e&&FEa(a,c);a.Y||a.Ua.Sr();b&&d&&(d.zM().B=!1,kK(d))};
FEa=function(a,b){g.bz(a.D);a.ra=!1;g.jo(a.j.getRootNode(),"ad-showing");a.Cb?(a.Y||a.Ua.Sr(),GEa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),GEa(a));g.jo(a.j.getRootNode(),"ad-interrupting");a.j.R().experiments.fb("enable_html5_teal_ad_badge")&&g.jo(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
GEa=function(a){if(a.Ra)!a.N&&g.cG(a.j.R())&&a.j.Io();else if(a.j.Io(),!a.N){var b=a.j.zb(1);g.W(b,4)&&!g.W(b,2)&&a.j.playVideo()}};
EEa=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.af(b)};
SK=function(a){g.K.call(this);this.u=a};
TK=function(a){SK.call(this,!0);this.j=a};
HEa=function(a){function b(e){return{toString:e}}
var c={},d=a.getVideoData(1);c.CPN=b(function(){return d&&d.clientPlaybackNonce||null});
c.ASR=b(function(){return d&&d.Ok||null});
c.EI=b(function(){return d&&d.eventId||null});
c.AD_CPN=b(function(){var e;return(null==(e=a.getVideoData(2))?void 0:e.clientPlaybackNonce)||""});
c.AD_MT=b(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
c.MT=b(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
c.P_H=b(function(){return a.getPlayerSize().height.toString()});
c.PV_H=c.P_H;c.P_W=b(function(){return a.getPlayerSize().width.toString()});
c.PV_W=c.P_W;c.CONN="0";c.WT=b(function(){return Date.now().toString()});
c.LACT=b(function(){var e=Px().toString();a.R().K("enable_undefined_lact_debug_logging")&&"-1"===e&&g.rz(Error("Unknown LACT returned from macro.js"));return e});
c.VIS=b(function(){return a.getVisibilityState().toString()});
c.VOL=b(function(){return a.getVolume().toString()});
return c};
IEa=function(a,b){g.K.call(this);var c=this;this.B=[];this.J=!1;this.u=0;this.D=this.I=this.C=!1;this.W=null;var d=(0,g.Ta)(a,b);this.j=new g.Zn(function(){return d(c.W)},300);
g.M(this,this.j);this.V=this.N=Infinity};
JEa=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};
UK=function(){var a="ytp-id-"+KEa.toString();KEa++;return a};
g.VK=function(a){g.K.call(this);this.Lc={};this.Ne={};this.element=this.createElement(a)};
WK=function(a,b,c,d){if("{{"===d.substr(0,2))a.Ne[d]=[b,c];else return d};
LEa=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.F?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.mh("BR"));c.push(g.nh(f))}):c.push(g.nh(d))}return c};
XK=function(a,b,c,d){if("child"===c){g.oh(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.F?[d]:d;c=LEa(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.yl(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.lg(g.mg(a))),b.setAttribute(c,a))};
g.X=function(a){g.VK.call(this,a);this.tb=!0;this.ra=!1;this.listeners=[]};
g.YK=function(a,b){b?a.show():a.hide()};
g.ZK=function(a){g.X.call(this,a);this.Ua=new g.cz;g.M(this,this.Ua)};
$K=function(a,b,c,d,e,f,h,l){l=void 0===l?null:l;e||"ad-message"===d||"ad-text"===d||g.rz(new g.Rv("The UI component has undefined layoutId.",{componentType:d}));g.ZK.call(this,c);this.api=a;this.bb=b;this.macros={};this.componentType=d;this.J=null;this.ub=l;this.layoutId=e;this.j=f;this.Wa=h;this.Ya=null;this.rK=new TK(this.element);g.M(this,this.rK);this.gb=this.P(this.element,"click",this.onClick);this.qa=[];this.Y=new IEa(this.onClick,this);g.M(this,this.Y);this.Cb=!1;this.V=null};
aL=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.rz(Error("Got null or undefined adText object")),"";var c=g.Wg(a.text);if(!a.isTemplated)return c;if(null==b)return g.rz(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};
MEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Xb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Wg(a.thumbnails[0].url)};
NEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Xb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Qg(0,0):new g.Qg(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
OEa=function(){return{F:"svg",T:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},S:[{F:"path",T:{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.PEa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
bL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",T:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.cL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{F:"path",T:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.dL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{F:"path",T:{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"}}]}};
QEa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{F:"path",T:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{F:"path",T:{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"}}]}};
REa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
SEa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.eL=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{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"}}]}};
TEa=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",T:{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"}}]}};
UEa=function(){return{F:"svg",T:{viewBox:"0 0 24 24"},S:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",T:{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"}}]}};
VEa=function(){return{F:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{F:"path",T:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",T:{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"}}]}};
WEa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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.fL=function(){return{F:"svg",T:{viewBox:"0 0 24 24"},S:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",T:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
gL=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",T:{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"}}]}};
XEa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
hL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.iL=function(){return{F:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{F:"path",T:{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"}}]}};
YEa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
ZEa=function(){return{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",L:"ytp-svg-fill",T:{"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"}}]}};
$Ea=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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"}}]}};
jL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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"}}]}};
aFa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.kL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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.lL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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"}}]}};
g.bFa=function(){return{F:"svg",T:{height:"100%",viewBox:"0 0 16 16",width:"100%"},S:[{F:"path",T:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
cFa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
dFa=function(){return{F:"svg",T:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},S:[{F:"path",T:{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"}}]}};
mL=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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"}}]}};
nL=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{F:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{F:"path",T:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",T:{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{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},
{F:"path",T:{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{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{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"}},{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.eL();case "INFO_OUTLINE":return VEa();case "REMOVE_CIRCLE":return{F:"svg",
T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return hL();case "LIKE":return g.fL();case "DISLIKE":return UEa();default:return g.rz(new g.Rv("Unexpected icon:",a)),null}};
oL=function(a,b,c,d,e,f,h,l,m){f=void 0===f?[]:f;l=void 0===l?!1:l;f={F:"button",Ca:["ytp-ad-button"].concat(f)};null!=m&&(f.T={tabindex:m});$K.call(this,a,b,f,void 0===h?"button":h,c,d,e);this.u=this.B=this.C=null;this.D=l;this.hide()};
eFa=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||[]};
pL=function(){g.K.call(this);var a=this;this.j=new Map;this.u=Eoa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Ww(b[c])})};
fFa=function(){null==qL&&(qL=new pL);return qL};
rL=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=gFa(a))){b=lh("SPAN",null,b);break a}b=g.nh(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(hFa(e,b))}return 1==c.length?c[0]:lh("SPAN",null,c)};
hFa=function(a,b){var c=null,d=a.text;b&&(d=gFa(d)||d);a.bold&&(c=lh("B",null,c||d));a.italics&&(c=lh("I",null,c||d));a.strikethrough&&(c=lh("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=lh("A",null,c||d),g.zg(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),fFa().register(c,a),g.ho(c,"ytp-ad-has-logging-urls"));
return c||lh("SPAN",null,d)};
gFa=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(lh("BR")),b.push(a[c]);return b}return null};
sL=function(a,b,c,d,e,f,h,l,m){h=void 0===h?!1:h;l=void 0===l?[]:l;$K.call(this,a,b,{F:"span",Ca:["ytp-ad-hover-text-button"].concat(l)},void 0===m?"ad-hover-text-button":m,c,d,e);this.button=this.B=null;this.I=h;this.D=f;this.hide()};
tL=function(a){return a&&a.thumbnails&&!g.Xb(a.thumbnails||null)&&a.thumbnails[0].url?g.Wg(a.thumbnails[0].url):""};
uL=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;$K.call(this,a,b,{F:"img",L:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.u=h;this.hide()};
vL=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;$K.call(this,a,b,{F:"div",Ca:["ytp-ad-confirm-dialog-background"],S:[{F:"div",L:"ytp-ad-confirm-dialog-container",S:[{F:"div",Ca:["ytp-ad-confirm-dialog"].concat(f),T:{role:"dialog",tabindex:"-1"},S:[{F:"div",L:"ytp-ad-confirm-dialog-title",Z:"{{title}}"},{F:"div",L:"ytp-ad-confirm-dialog-messages"},{F:"div",L:"ytp-ad-confirm-dialog-confirm-container",S:[{F:"button",L:"ytp-ad-confirm-dialog-cancel-button",Z:"{{cancelLabel}}"},{F:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Z:"{{confirmLabel}}"}]}]}]},{F:"button",Ca:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{F:"span",L:"ytp-ad-button-icon",S:[g.eL()]}]}]},void 0===h?"confirm-dialog":h,c,d,e);this.N=this.ya("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.ya("ytp-ad-confirm-dialog-cancel-button");this.I=this.ya("ytp-ad-confirm-dialog-confirm-button");this.W=this.ya("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new $y;g.M(this,this.u);this.B=null;this.hide()};
iFa=function(a,b){if(b.title){var c=g.zA(b.title);a.Ja("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=rL(d.value),a.W.appendChild(d)}b.cancelLabel&&(c=g.zA(b.cancelLabel),a.Ja("cancelLabel",c),a.u.P(a.D,"click",function(e){return a.EF(e)}));
b.confirmLabel&&(b=g.zA(b.confirmLabel),a.Ja("confirmLabel",b),a.u.P(a.I,"click",function(e){return a.rJ(e)}));
a.u.P(a.N,"click",function(e){return a.qJ(e)})};
wL=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"toggle-button":h;var l=FI("ytp-ad-toggle-button-input");$K.call(this,a,b,{F:"div",Ca:["ytp-ad-toggle-button"].concat(f),S:[{F:"label",L:"ytp-ad-toggle-button-label",T:{"for":l},S:[{F:"span",L:"ytp-ad-toggle-button-icon",T:{role:"button","aria-label":"{{tooltipText}}"},S:[{F:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{F:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{F:"input",
L:"ytp-ad-toggle-button-input",T:{id:l,type:"checkbox"}},{F:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{F:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},h,c,d,e);this.C=this.ya("ytp-ad-toggle-button");this.u=this.ya("ytp-ad-toggle-button-input");this.ya("ytp-ad-toggle-button-label");this.W=this.ya("ytp-ad-toggle-button-icon");this.I=this.ya("ytp-ad-toggle-button-untoggled-icon");this.D=this.ya("ytp-ad-toggle-button-toggled-icon");this.va=this.ya("ytp-ad-toggle-button-text");
this.B=null;this.N=!1;this.hide()};
xL=function(a){a.N&&(a.isToggled()?(g.Kl(a.I,!1),g.Kl(a.D,!0)):(g.Kl(a.I,!0),g.Kl(a.D,!1)))};
jFa=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||[]};
yL=function(a){$y.call(this);this.j=a;this.P(this.j,"onAdUxUpdate",this.N)};
zL=function(a,b,c,d,e){$K.call(this,a,b,{F:"div",L:"ytp-ad-feedback-dialog-background",S:[{F:"div",L:"ytp-ad-feedback-dialog-container",S:[{F:"div",L:"ytp-ad-feedback-dialog-form",T:{role:"dialog",tabindex:"-1"},S:[{F:"div",L:"ytp-ad-feedback-dialog-title",S:[{F:"span",Z:"{{title}}"}]},{F:"span",L:"ytp-ad-info-dialog-feedback-options-title",Z:"{{reasonsTitle}}"},{F:"div",L:"ytp-ad-info-dialog-feedback-options"},{F:"div",L:"ytp-ad-feedback-dialog-confirm-container",S:[{F:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Z:"{{cancelLabel}}"},{F:"button",L:"ytp-ad-feedback-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.D=[];this.u=null;this.I=this.ya("ytp-ad-feedback-dialog-cancel-button");this.N=this.ya("ytp-ad-feedback-dialog-confirm-button");this.W=this.ya("ytp-ad-info-dialog-feedback-options");this.va=this.ya("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
nFa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new oL(a.api,a.bb,a.layoutId,a.j,a.Wa,["ytp-ad-feedback-dialog-close-button"],"button"),g.M(a,a.u),a.u.init(FI("button"),c,a.macros),a.u.Na("click",a.NQ,a),a.u.xa(a.element));b.title&&(c=g.zA(b.title),a.Ja("title",c));b.reasonsTitle&&(c=g.zA(b.reasonsTitle),a.Ja("reasonsTitle",c));b.reasons&&kFa(a,b.reasons);b.cancelLabel&&(c=g.zA(b.cancelLabel),a.Ja("cancelLabel",c),g.Ax(a.I,"click",function(){return a.NQ()}));
b.confirmLabel&&(c=g.zA(b.confirmLabel),a.Ja("confirmLabel",c),g.Ax(a.N,"click",function(){return lFa(a)}));
b.undoRenderer&&mFa(a,b.undoRenderer)};
kFa=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.rz(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.rz(Error("AdFeedbackReason.endpoint was not set.")):(c=new oFa(c,d),g.M(a,c),a.W.appendChild(c.j.element),a.D.push(c)))}};
mFa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new oL(a.api,a.bb,a.layoutId,a.j,a.Wa,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.M(a,a.B),a.B.init(FI("ad-feedback-undo-mute-button"),b,a.macros),a.B.Na("click",a.J2,a),a.B.xa(a.va)):g.rz(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
lFa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.api.R().K("enable_macro_substitution_on_html5")?a.layoutId?a.Wa.executeCommand(b,a.layoutId):g.qz(Error("Missing layoutId for ad feedback dialog.")):AL(a.Wa,b,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.X("a"),a.hide())};
oFa=function(a,b){this.u=b;this.j=new g.ZK({F:"label",L:"ytp-ad-feedback-dialog-reason-label",S:[{F:"input",L:"ytp-ad-feedback-dialog-reason-input",T:{type:"radio",name:"feedback-reason-group"}},{F:"span",L:"ytp-ad-feedback-dialog-reason-text",Z:g.zA(a)}]});this.B=this.j.ya("ytp-ad-feedback-dialog-reason-input")};
BL=function(a,b,c,d,e){vL.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
CL=function(a,b,c,d,e,f){$K.call(this,a,b,{F:"div",L:"ytp-ad-info-dialog-background",S:[{F:"div",L:"ytp-ad-info-dialog-container",S:[{F:"div",L:"ytp-ad-info-dialog-form",T:{role:"dialog",tabindex:"-1"},S:[{F:"div",L:"ytp-ad-info-dialog-title",Z:"{{title}}"},{F:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{F:"div",L:"ytp-ad-info-dialog-message"},{F:"div",L:"ytp-ad-info-dialog-mute-container"},{F:"div",L:"ytp-ad-info-dialog-confirm-container",S:[{F:"button",L:"ytp-ad-info-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.u=this.B=null;this.N=this.ya("ytp-ad-info-dialog-confirm-button");this.Ra=this.ya("ytp-ad-info-dialog-mute-container");this.La=this.ya("ytp-ad-info-dialog-message");this.Ea=this.ya("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.va=f;this.I=null;this.Ha=!1;this.W=null;this.hide()};
pFa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new zL(a.api,a.bb,a.layoutId,a.j,a.Wa),g.M(a,a.B),a.B.init(FI("ad-feedback-dialog"),b,a.macros),a.B.xa(a.va),a.B.subscribe("a",function(){return a.X("c")})};
qFa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new BL(a.api,a.bb,a.layoutId,a.j,a.Wa),g.M(a,a.D),a.D.init(FI("ad-mute-confirm-dialog"),b,a.macros),a.D.xa(a.va),a.D.subscribe("b",function(){return a.X("c")})};
rFa=function(a){a.u&&a.u.Na("click",a.MM,a);g.Ax(a.N,"click",function(){return a.MM()})};
DL=function(a,b,c,d,e,f,h){sL.call(this,a,b,c,d,e,void 0===h?!0:h,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=f;this.hide()};
sFa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.qz(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new CL(a.api,a.bb,a.layoutId,a.j,a.Wa,a.C),g.M(a,a.u),a.u.init(FI("ad-info-dialog"),b,c),a.u.xa(a.C),a.u.subscribe("d",function(){return a.X("f")}),a.u.subscribe("c",function(){return a.X("e")}))};
uFa=function(a,b,c){null==a.button?g.qz(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.ho(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(sFa(a,b,c),a.button.Na("click",function(){a.u&&!a.u.tb&&(a.u.show(),tFa(a))})):a.button.Na("click",function(){return tFa(a)}))};
tFa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
EL=function(a,b,c,d,e,f,h){$K.call(this,a,b,{F:"div",L:"ytp-ad-text"},void 0===h?"ad-text":h,c,d,e,void 0===f?null:f);this.u=null;this.hide()};
FL=function(a,b){b&&g.th(a.element,aL(a.u,b))};
GL=function(a,b,c,d,e,f,h,l){$K.call(this,a,b,c,d,e,f,h);this.u=l;g.M(this,this.u);this.Ea=this.D=-1};
HL=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.xq,a),a.Ea=a.u.subscribe("g",a.qt,a),a.xq())};
IL=function(a){null!=a.u&&-1!==a.D&&(a.u.Kg(a.D),a.u.Kg(a.Ea),a.Ea=-1,a.D=-1)};
g.JL=function(a,b,c,d,e,f){g.K.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.Zn(this.KE,0,this);g.M(this,this.delay)};
KL=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
LL=function(a,b,c,d,e,f,h){GL.call(this,a,b,{F:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.La=-1;this.B=new g.ZK({F:"span",L:"ytp-ad-preview-container"});g.M(this,this.B);this.C=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-preview-text");g.M(this,this.C);this.C.xa(this.B.element);this.N=new g.ZK({F:"span",L:"ytp-ad-preview-image"});g.M(this,this.N);this.I=new uL(this.api,this.bb,this.layoutId,this.j,this.Wa);g.M(this,this.I);this.I.xa(this.N.element);this.N.xa(this.B.element);
this.B.xa(this.element);this.W=new g.JL(this.B,400,!1,100,function(){return l.hide()});
g.M(this,this.W);this.va=0;this.Ha=!1;this.Ra=h;this.hide()};
ML=function(a){a.W.show(100);a.show()};
NL=function(a,b,c,d,e,f){GL.call(this,a,b,{F:"div",Ca:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{F:"div",L:"ytp-flyout-cta-icon-container"},{F:"div",L:"ytp-flyout-cta-body",S:[{F:"div",L:"ytp-flyout-cta-text-container",S:[{F:"div",L:"ytp-flyout-cta-headline-container"},{F:"div",L:"ytp-flyout-cta-description-container"}]},{F:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e,f);this.C=new uL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-flyout-cta-icon");g.M(this,this.C);
this.C.xa(this.ya("ytp-flyout-cta-icon-container"));this.api.R().K("web_rounded_thumbnails")&&this.api.R().K("web_modern_ads")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.W=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-flyout-cta-headline");g.M(this,this.W);this.W.xa(this.ya("ytp-flyout-cta-headline-container"));this.N=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-flyout-cta-description");g.M(this,this.N);this.N.xa(this.ya("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.R().K("web_modern_buttons")&&this.api.R().K("web_modern_ads")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new oL(this.api,this.bb,this.layoutId,this.j,this.Wa,a);g.M(this,this.B);this.B.xa(this.ya("ytp-flyout-cta-action-button-container"));this.api.R().K("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.setAttribute("tabIndex","-1");this.I=null;this.va=0;this.hide()};
OL=function(a,b,c,d,e,f){$K.call(this,a,b,{F:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var h=this;this.u=null;this.C=new wL(this.api,this.bb,this.layoutId,this.j,this.Wa,["ytp-ad-instream-user-sentiment-like-button"]);g.M(this,this.C);this.C.xa(this.element);this.B=new wL(this.api,this.bb,this.layoutId,this.j,this.Wa,["ytp-ad-instream-user-sentiment-dislike-button"]);g.M(this,this.B);this.B.xa(this.element);this.D=new g.JL(this,400,!1,500,
function(){return h.hide()});
g.M(this,this.D);this.hide()};
PL=function(a,b,c,d,e){e=void 0===e?0:e;g.K.call(this);this.B=a;this.u=!1;this.V=d;this.I=!1;this.j=null;0<b&&(this.j=new g.Zn(this.HN,b,this),g.M(this,this.j));this.D=new g.Zn(this.HN,c,this);g.M(this,this.D);this.N=rka(this.B,e,1,d);g.M(this,this.N);this.J=rka(this.B,0,d,1);g.M(this,this.J);this.C=new $y;g.M(this,this.C)};
QL=function(a,b,c,d,e,f,h){GL.call(this,a,b,{F:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.N=null;this.va=!1;this.Ha=h;this.C=new g.ZK({F:"span",Ca:["ytp-ad-skip-button-container"]});g.M(this,this.C);this.C.xa(this.element);this.B=this.I=null;this.La=new g.JL(this.C,500,!1,100,function(){return l.hide()});
g.M(this,this.La);this.W=new PL(this.C.element,15E3,5E3,.5,.5);g.M(this,this.W);this.hide()};
wFa=function(a){a=a.N&&a.N.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand?vFa(b.adLifecycleCommand):!1})};
vFa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
RL=function(a,b,c,d,e,f,h){GL.call(this,a,b,{F:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.W=h;this.I=!1;this.N=0;this.C=this.B=null;this.hide()};
xFa=function(a,b){a.I||(a.I=!0,a.B&&(b?a.B.W.hide():a.B.hide()),b?(a=a.C,a.La.show(),a.show()):a.C.show())};
SL=function(a,b,c,d,e){oL.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
TL=function(a,b,c,d,e,f){f=void 0===f?!1:f;$K.call(this,a,b,{F:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
UL=function(a,b,c,d,e){e=void 0===e?!1:e;GI.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.rE=e};
VL=function(a,b){g.cz.call(this);this.api=a;this.durationMs=b;this.j=null;this.Sc=new $y(this);g.M(this,this.Sc);this.u=yFa;this.Sc.P(this.api,"presentingplayerstatechange",this.bd);this.j=this.Sc.P(this.api,"onAdPlaybackProgress",this.Wb)};
WL=function(a,b){g.cz.call(this);this.bb=b;this.u=!1;this.j=0;this.Sc=new $y(this);g.M(this,this.Sc);this.durationMs=a;this.timer=new g.Oh(100);g.M(this,this.timer);this.Sc.P(this.timer,"tick",this.Wb);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.XL=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";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.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.YL=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)};
ZL=function(a,b,c,d,e,f,h){GL.call(this,a,b,{F:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=h;this.B=null;this.hide()};
$L=function(a,b,c,d,e){EL.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
aM=function(a,b){this.u=a;this.j=b};
bM=function(a){return a.j-a.u};
cM=function(a,b){return a.u+b*bM(a)};
dM=function(a,b,c){return bM(a)?g.Cg((b-a.u)/bM(a),0,1):null!=c?c:Infinity};
eM=function(a,b){g.ZK.call(this,{F:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{F:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.M(this,this.u);this.xc=this.ya("ytp-ad-persistent-progress-bar");this.j=-1;this.P(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
fM=function(a,b,c,d,e,f,h){$K.call(this,a,b,{F:"div",L:"ytp-ad-player-overlay",S:[{F:"div",L:"ytp-ad-player-overlay-flyout-cta"},{F:"div",L:"ytp-ad-player-overlay-instream-info"},{F:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",L:"ytp-ad-player-overlay-progress-bar"},{F:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.N=h;this.D=this.ya("ytp-ad-player-overlay-flyout-cta");this.api.R().K("web_rounded_thumbnails")&&this.api.R().K("web_modern_ads")&&
this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.B=this.ya("ytp-ad-player-overlay-instream-info");this.C=null;zFa(this)&&(a=lh("div"),g.ho(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 $L(this.api,this.bb,this.layoutId,this.j,this.Wa),c.xa(a),c.init(FI("ad-title"),{text:b.title},this.macros),g.M(this,c)),this.C=a);this.I=this.ya("ytp-ad-player-overlay-skip-or-preview");
this.va=this.ya("ytp-ad-player-overlay-progress-bar");this.W=this.ya("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.M(this,this.u);this.hide()};
zFa=function(a){a=a.api.R();return g.VF(a)&&a.isMobile};
BFa=function(a,b){var c=void 0===c?!0:c;var d=g.Q("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.qi(window.location.href);e&&d.push(e);e=g.qi(a);if(g.Wb(d,e)||!e&&eb(a,"/"))if(g.T("autoescape_tempdata_url")&&(d=document.createElement("a"),g.zg(d,a),a=d.href),a&&(a=Dea(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Bz()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&AFa(a,b,f)}else AFa(a,b)};
AFa=function(a,b,c){a="ST-"+Xg(a).toString(36);b=b?g.ui(b):"";c=c||5;dv()&&g.Lu(a,b,c)};
gM=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.wi("/sharing_services",a);g.Ww(d)};
g.CFa=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.wi(a,b)+c;var e=void 0===e?Bfa:e;e=Cfa(a,e)||ada;d.href=e instanceof kg?g.lg(e):Afa(e)};
g.hM=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.Q("EVENT_ID");d&&(b.ei||(b.ei=d));b&&BFa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.CFa(a))};
g.iM=function(a,b,c,d){c&&BFa(a,c);c=g.mg(a);c=g.lg(c);a!=c&&iu(Error("Unsafe window.open URL: "+a));a=c;b=b||Xg(a).toString(36);if(d){var e,f;c="function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?void 0:f.features().includes("attribution-reporting"));a="www.googleadservices.com"!==g.qi(a)?a:c?a+"&nis=6":a+"&nis=5";try{var h=encodeURIComponent(d);window.open(a,b,"attributionsrc="+h);return}catch(l){g.gu(l)}}window.open(a,b)};
g.jM=function(a,b,c){b=DFa(null,b,c);if(b=Ag(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Ux("LOGGED_IN",function(d){g.Vx(g.Q("LOGGED_IN_PUBSUB_KEY"));au("LOGGED_IN",!0);a(d)}),au("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
DFa=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=vi(c,"mode",a));a=vi(d,"next",c);b&&(a=vi(a,"feature",b));return a};
GFa=function(a,b){if(!a)return!1;var c,d=null==(c=g.av(a,EFa))?void 0:c.signal;if(d&&b.It)return!!b.It[d];var e;if((c=null==(e=g.av(a,FFa))?void 0:e.request)&&b.SG)return!!b.SG[c];for(var f in a)if(b.OG[f])return!0;return!1};
HFa=function(a,b){var c,d=null==(c=g.av(a,EFa))?void 0:c.signal;if(d&&b.It&&(c=b.It[d]))return c();var e;if((c=null==(e=g.av(a,FFa))?void 0:e.request)&&b.SG&&(e=b.SG[c]))return e();for(var f in a)if(b.OG[f]&&(a=b.OG[f]))return a()};
kM=function(a){this.name=a};
lM=function(){this.key=IFa};
JFa=function(){this.providers=new Map;this.j=new Map};
nM=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.tT)var e=d.tT;else if(d.F5)e=d[mM]?KFa(a,d[mM],c):[],e=d.F5.apply(d,g.t(e));else if(d.sT){e=d.sT;var f=e[mM]?KFa(a,e[mM],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.t(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.z3a||a.j.set(b,
e);return e};
KFa=function(a,b,c){return b?b.map(function(d){return d instanceof lM?nM(a,d.key,c,!0):nM(a,d,c)}):[]};
oM=function(a){return function(){return new a}};
MFa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=LFa[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(LFa).forEach(function(h){var l=g.r(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.pM=function(a){return"/youtubei/v1/"+MFa(a)};
qM=function(){};
rM=function(){};
sM=function(a,b,c,d){this.nH=a;this.Uf=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.It||(a.It={});a.It=Object.assign({},NFa,a.It)};
OFa=function(a,b,c,d){if(void 0!==sM.j){if(d=sM.j,a=[a!==d.nH,b!==d.Uf,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Rv("InnerTubeTransportService is already initialized",a);
}else sM.j=new sM(a,b,c,d)};
uM=function(a,b,c){var d=void 0===d?tM:d;var e=HFa(b,a.nH);if(!e)return Jh(new g.Rv("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.Fh(function(h){var l,m,n;return g.z(function(p){if(1==p.j)return m="cors"===(null==(l=f.Aq)?void 0:l.mode)?"cors":void 0,a.j.JS?(n=PFa(a,f.config,m),p.Ma(2)):g.x(p,QFa(a,f.config,m),3);2!=p.j&&(n=p.u);h(RFa(a,f,n));g.pa(p)})}):Jh(new g.Rv("Error: Failed to build request for command.",b))};
g.AK=function(a,b,c,d,e){e=void 0===e?{Ar:{identity:tM}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.uK(d,f));return new g.Fh(function(h){var l,m,n,p,q;return g.z(function(v){if(1==v.j)return l=bv(c),m=qu(l)?"same-origin":"cors",a.j.JS?(n=PFa(a,e,m),v.Ma(2)):g.x(v,QFa(a,e,m),3);2!=v.j&&(n=v.u);var w=n;p=Bma(bv(c),w);q={input:p,Aq:cv(p),Rm:b,config:e};h(RFa(a,q,n));g.pa(v)})})};
TFa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.u3a)?0:d.A3a)&&a.C){d=g.r(SFa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}};
RFa=function(a,b,c){var d,e,f,h,l,m,n,p,q,v,w,y,A,B,E,G,H,I,O,L,P,S,ca,R,na,sa,Aa,wa;return g.z(function(ta){switch(ta.j){case 1:ta.Ma(2);break;case 3:if((d=ta.u)&&!d.isExpired())return ta.return(Promise.resolve(d.j()));case 2:if(null==(e=b)?0:null==(f=e.Rm)?0:f.context)for(h=g.r([]),l=h.next();!l.done;l=h.next())m=l.value,m.o3a(b.Rm.context);if(null==(n=a.B)||!n.v3a(b.input,b.Rm)){ta.Ma(4);break}return g.x(ta,a.B.W2a(b.input,b.Rm),5);case 5:return p=ta.u,g.T("kevlar_process_local_innertube_responses_killswitch")||
TFa(a,p,b),ta.return(p);case 4:return(w=null==(v=b.config)?void 0:v.fh)&&a.u.has(w)&&g.T("web_memoize_inflight_requests")?q=a.u.get(w):(y=JSON.stringify(b.Rm),E=null!=(B=null==(A=b.Aq)?void 0:A.headers)?B:{},b.Aq=Object.assign({},b.Aq,{headers:Object.assign({},E,c)}),G=Object.assign({},b.Aq),"POST"===b.Aq.method&&(G=Object.assign({},G,{body:y})),(null==(H=b.config)?0:H.F3)&&XA(b.config.F3),I=function(){return a.Uf.fetch(b.input,G,b.config)},q=I(),w&&a.u.set(w,q)),g.x(ta,q,6);
case 6:O=ta.u;if(g.T("web_one_platform_error_handling")&&(null==(L=O)?0:null==(P=L.error)?0:P.details))for(S=O.error.details,ca=g.r(S),R=ca.next();!R.done;R=ca.next())na=R.value,(sa=na["@type"])&&-1<UFa.indexOf(sa)&&(delete na["@type"],O=na);w&&a.u.has(w)&&a.u.delete(w);(null==(Aa=b.config)?0:Aa.K3)&&XA(b.config.K3);if(O||null==(wa=a.B)||!wa.p2a(b.input,b.Rm)){ta.Ma(7);break}return g.x(ta,a.B.V2a(b.input,b.Rm),8);case 8:O=ta.u;case 7:return TFa(a,O,b),ta.return(O)}})};
QFa=function(a,b,c){var d,e,f,h,l,m,n;return g.z(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Ar)?void 0:e.identity)||tM;m=null==(h=b)?void 0:null==(l=h.Ar)?void 0:l.sessionIndex;var q=Ih(a.j.qC(f,{sessionIndex:m}));return g.x(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},VFa(c),n)))})};
PFa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Ar)?void 0:d.identity)||tM,f;b=null==b?void 0:null==(f=b.Ar)?void 0:f.sessionIndex;a=a.j.qC(e,{sessionIndex:b});return Object.assign({},VFa(c),a)};
VFa=function(a){var b={"Content-Type":"application/json"};g.Q("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.Q("EOM_VISITOR_DATA"):g.Q("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.Q("VISITOR_DATA"));g.T("track_webfe_innertube_auth_mismatch")&&(b["X-Youtube-Bootstrap-Logged-In"]=g.Q("LOGGED_IN",!1));"cors"!==a&&((a=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.Q("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.Q("CHROME_CONNECTED_HEADER"))&&
(b["X-Youtube-Chrome-Connected"]=a),(a=g.Q("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
vM=function(){};
wM=function(){};
xM=function(){};
yM=function(){};
zM=function(){};
AM=function(){};
BM=function(a){this.j=a};
g.EM=function(a,b){if(!CM){DM||(DM=new JFa);var c=DM;var d={cK:WFa,sT:BM};c.providers.set(d.cK,d);d={OG:{feedbackEndpoint:oM(xM),modifyChannelNotificationPreferenceEndpoint:oM(yM),playlistEditEndpoint:oM(zM),subscribeEndpoint:oM(vM),unsubscribeEndpoint:oM(wM),webPlayerShareEntityServiceEndpoint:oM(AM)}};var e=g.T("web_enable_client_location_service")?tK.getInstance():void 0,f={};e&&(f.client_location=e);void 0===a&&(vK.j||(vK.j=new vK),a=vK.j);void 0===b&&(b=c.resolve(WFa));OFa(d,b,a,f);a={cK:XFa,
tT:sM.j};c.providers.set(a.cK,a);CM=c.resolve(XFa)}return CM};
FM=function(){};
YFa=function(){FM.j||(FM.j=new FM);return FM.j};
$Fa=function(){if(!g.T("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.T("disable_biscotti_fetch_entirely_for_all_web_clients")&&dv()){var a=g.Q("PLAYER_VARS",{});if("1"!=g.Ef(a,"privembed",!1)&&!Dma(a)){var b=function(){SM=!0;"google_ad_status"in window?au("DCLKSTAT",1):au("DCLKSTAT",2)};
try{g.Tz("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}ZFa.push(g.Vn.Fh(function(){if(!(SM||"google_ad_status"in window)){try{if(b){var c=""+g.Ra(b),d=Eua[c];d&&g.Vx(d)}}catch(e){}SM=!0;au("DCLKSTAT",3)}},5E3))}}};
aGa=function(){var a=Number(g.Q("DCLKSTAT",0));return isNaN(a)?0:a};
TM=function(){};
bGa=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."))})};
Kv=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.cu("ytidb_transaction_ended_event_rate_limit",.02)};
dGa=function(a,b){TM.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:cGa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:cGa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
cGa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
UM=function(){this.state=1;this.j=null};
fGa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Qc(2),g.Tz(c,function(){if(window[h])eGa(a,d,h,e);else{a.Qc(3);var l=Dua(c),m=document.getElementById(l);m&&(Hoa(l),m.parentNode.removeChild(m));g.rz(new g.Rv("Unable to load Botguard","from "+c))}},f)):b?(f=g.mh("SCRIPT"),f.textContent=b,f.nonce=Bg(),document.head.appendChild(f),document.head.removeChild(f),window[h]?eGa(a,d,h,e):(a.Qc(4),g.rz(new g.Rv("Unable to load Botguard from JS")))):g.rz(new g.Rv("Unable to load VM; no url or JS provided"))};
eGa=function(a,b,c,d){a.Qc(5);try{var e=new Yi({program:b,globalName:c});e.h4.then(function(){a.Qc(6);d&&d(b)});
a.HK(e)}catch(f){a.Qc(7),f instanceof Error&&g.rz(f)}};
gGa=function(a,b){var c=g.VM;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.Vy()?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){var e=c.Vy();e?e.snapshot({by:a}).then(d):d(null)})]):Promise.resolve(null)};
hGa=function(){return g.Ha("yt.abuse.playerAttLoader")||null};
WM=function(){UM.apply(this,arguments)};
YM=function(a){return!XM||(0,g.U)()-XM>a};
iGa=function(a,b){a.program&&(2===g.VM.state?0:YM(b.y3))&&(mB("bg_i",void 0,"player_att"),g.VM.initialize(a,function(){var c=a.serverEnvironment;mB("bg_l",void 0,"player_att");XM=(0,g.U)();for(var d=0;d<ZM.length;d++){var e=ZM[d];try{e(c)}catch(f){}}},b.cspNonce))};
jGa=function(a){a=void 0===a?{}:a;return g.VM.invoke(a)};
kGa=function(a){var b=g.cu("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return gGa(a,b)};
mGa=function(a,b,c,d){var e=window.location.search;if(38===b.Y&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.wi("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.L5});if(30===b.Y&&"docs"===a.playerStyle)return g.wi("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.He});if(33===b.Y&&"google-live"===a.playerStyle)return g.wi("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Ha&&g.qz(Error("getVideoInfoUrl for invalid namespace: "+a.Ha));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.He,ps:a.playerStyle,el:qI(b),hl:a.pg,list:b.playlistId,agcid:b.EQ,aqi:b.adQueryId,sts:19219,lact:Px()};Object.assign(f,a.deviceParams);a.forcedExperiments&&(f.forced_experiments=a.forcedExperiments);b.Ha?(f.vvt=b.Ha,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.uI(b)&&(f.access_token=g.uI(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&
(f.slot_pos=b.slotPosition);b.breakType&&(f.break_type=b.breakType);null!==b.BG&&(f.ad_id=b.BG);null!==b.kI&&(f.ad_sys=b.kI);null!==b.sL&&(f.encoded_ad_playback_context=b.sL);b.eG&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.eb&&2!==a.eb&&(f.cc_load_policy=a.eb);var h=g.tv(g.rv.getInstance(),65);g.pG(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);
b.St&&(f.endscreen_ad_tracking=b.St);(h=a.Y.get(b.videoId))&&h.IA&&(f.ic_track=h.IA);b.ra&&(f.itct=b.ra);tI(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Vm&&(f.autonav="1");b.bF&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Wh);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Kn&&(f.ytrcc=b.Kn);b.eF&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.forceAdsUrl&&(h=3===b.forceAdsUrl.split("|").length,f.force_ad_params=
h?b.forceAdsUrl:"||"+b.forceAdsUrl);b.cf&&(f.preload=b.cf);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.jh&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");rI(b)&&(f.content_v=rI(b));b.Cb&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.Ra&&(f.ei=a.Ra);a.u&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.jF&&(f.live_start_walltime=b.jF);a.C&&b.Vj&&(f.live_manifest_duration=b.Vj);a.C&&b.playerParams&&(f.player_params=
b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.fG&&(f.tkn=b.fG);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Eb&&(f.kpt=b.Eb);b.Sl&&(f.kids_age_up_mode=b.Sl);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Ju&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.V?(c=null!=b.V.latitudeE7&&null!=b.V.longitudeE7?b.V.latitudeE7+","+b.V.longitudeE7:",",c+=","+(b.V.clientPermissionState||0)+","+(b.V.locationRadiusMeters||
"")+","+(b.V.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.Ll&&(f.internalipoverride=b.Ll);a.embedConfig&&(f.embed_config=a.embedConfig);a.Ik&&(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.Js&&
b.gt&&(f.clip=b.Js,f.clipt=b.gt);b.Mt&&(f.disable_watch_next="1");b.Ki&&(f.forced_by_var="1");for(var l in f)!lGa.has(l)&&f[l]&&512<String(f[l]).length&&(g.rz(Error("GVI param too long: "+l)),f[l]="");b=a.qa;g.UF(a)&&(b=nA(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.qa);a=g.wi(b+"get_video_info",f);e&&(a=mma(a,e));return a};
g.$M=function(a,b){return a.qa+"timedtext_video?ref=player&v="+b.videoId};
g.aN=function(a,b){a.feature=b;return a};
g.bN=function(a,b){b=g.qi(b)||b;a.utm_source="yt-embeds-web";a.utm_medium=b};
nGa=function(a){var b={};a.aG&&(b.ytrext=a.aG);return g.Cf(b)?void 0:b};
g.oGa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.VM.isInitialized()){var d="";b.videoData&&b.videoData.cj&&(d=b.videoData.cj+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);mB("bg_v",void 0,"player_att");d=jGa(d);mB("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else mB("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.VM.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^aGa())},a);
this.videoData&&this.videoData.cj?this.j=lu(this.videoData.cj):this.j={}};
g.pGa=function(a){if(a.videoData&&a.videoData.cj){for(var b=[a.videoData.cj],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};
rGa=function(a){var b={};Object.assign(b,a.u);g.T("player_attestation_bg_async")&&(b.c1a=function(){return qGa(a)});
if(a.videoData&&a.videoData.cj){for(var c=[a.videoData.cj],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,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
g.cN=function(a,b){iGa(a,{y3:g.TE(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
qGa=function(a){function b(e){return e+"&r1d="+g.VM.getState()}
if(!g.VM.isInitialized())return mB("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.cj&&(c=a.videoData.cj+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){mB("bg_v",void 0,"player_att");kGa(d).then(function(f){f?(mB("bg_s",void 0,"player_att"),e(b("r1a="+f))):(mB("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){mB("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.eN=function(a){var b=a.R(),c=g.dN(b),d=a.ra;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=qI(a);"leanback"===f?e="WATCH":b.K("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Cb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Sl)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:sGa[e]}});a.Ju&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.V)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.cf&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=tGa[b];c.request=d;d=c.user||{};if(b=a.Ha)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Eb)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.dN=function(a){var b=g.uK(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.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});e=a.deviceYear;a.K("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear: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.He)b.thirdParty={embedUrl:a};return b};
yGa=function(a,b,c){var d=a.videoId,e=g.eN(a),f=a.R(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Px()),referer:document.location.toString(),signatureTimestamp:19219};f.K("enable_undefined_lact_debug_logging")&&"-1"===h.lactMilliseconds&&g.rz(Error("Unknown LACT returned from createContentPlaybackContext."));g.rv.getInstance();a.Vm&&(h.autonav=!0);g.tv(0,141)&&(h.autonavState=g.tv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.tv(0,66);tI(a)&&(h.autoplay=!0);f.C&&a.cycToken&&
(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;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 v=q.next();!v.done;v=q.next()){var w=g.r(v.value.split("="));v=w.next().value;w=ha(w);p[v]=w.join("=")}q=p.url;v=p.presetad;w=p.viralresponseurl;
var y=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),v&&(m.presetAd=v),w&&(m.viralAdResponseUrl=w),y&&(m.viralCampaignId=String(y));else if("video_ad"===p.adtype){var A={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=uGa[p.breaktype])A.breakType=p;q&&(A.url=q);v&&(A.presetAd=v);w&&(A.viralAdResponseUrl=w);y&&(A.viralCampaignId=String(y));n.push(A)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&
(h.isLivingRoomDeeplink=!0);m=a.jF;if(null!=m){m={startWalltime:String(m)};if(n=a.Vj)m.manifestDuration=String(n||14400);h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.jh&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Kn)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Wh){n=a.aG;l=[];p=g.r(p.split(","));for(q=p.next();!q.done;q=p.next())if(v=q.value)if((q=v.startsWith("!"))&&(v=v.substr(1)),v=v.split("-"),!(3>v.length)){q={applicationState:q?
"INACTIVE":"ACTIVE",clientFormFactor:vGa[v[1]]||"UNKNOWN_FORM_FACTOR",clientName:wGa[v[0]]||"UNKNOWN_INTERFACE",clientVersion:v[2]||"",platform:xGa[v[1]]||"UNKNOWN_PLATFORM"};v=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(B){g.rz(B)}w&&(v={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:v,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext=
{mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.MF(f)&&!f.K("embeds_enable_sending_ancestor_origins_killswitch")&&h&&(h.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=
e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.R();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.tv(g.rv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.pG(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.zT&&(d.captionParams.deviceCaptionsLangPref=a.zT);a.iG.length?d.captionParams.viewerSelectedCaptionLangs=a.iG:g.lG(e)&&!e.K("web_player_i_see_captions_2_killswitch")&&
(f=g.nya(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&&a.K("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.K("html5_non_onesie_attach_po_token");if(f||h)a=a.R(),a.Oe&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Oe);e.K("fetch_att_independently")?(a=!e.K("html5_force_include_bg_data"),d.attestationRequest={omitBotguardData:a}):e.K("html5_exclude_bg_vm_data")&&(d.attestationRequest={omitBotguardData:!YM(g.TE(e.experiments,
"bg_vm_reinit_threshold"))});return d};
AGa=function(a,b){var c,d,e;return g.z(function(f){if(1==f.j)return c={context:g.dN(a.R()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.pM(zGa),g.x(f,g.AK(b,c,d),2);e=f.u;return f.return(e)})};
BGa=function(a,b,c){YM(g.TE(b.experiments,"bg_vm_reinit_threshold"))&&AGa(a,c).then(function(d){(d=d.botguardData)&&g.cN(d,b)},function(d){a.isDisposed()||(d=BG(d),a.ma("attf",{error:d.errorCode}))})};
CGa=function(){this.Vu={}};
fN=function(a,b,c,d,e){b in a.Vu||(c=new g.sA(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Vu[b]=c)};
gN=function(){g.K.apply(this,arguments);this.C=new Set;this.D={};this.J={};this.j={};this.I={};this.B={};this.u=void 0;this.N=new Set};
hN=function(a){var b=void 0===b?5:b;return a?DGa[a]||b:b};
EGa=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 iN(a)};
iN=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.r(FGa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
GGa=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};
jN=function(a,b,c,d){g.K.call(this);this.app=a;this.state=b;this.playerType=d;this.j=!0;this.element=null;c&&(HGa(this),IGa(this))};
HGa=function(a){kN(a,"getInternalApiInterface",a.getInternalApiInterface);kN(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);kN(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);kN(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);kN(a,"getAdState",a.getAdState);kN(a,"sendAbandonmentPing",a.sendAbandonmentPing);kN(a,"setLoopRange",a.setLoopRange);kN(a,"getLoopRange",a.getLoopRange);kN(a,"setAutonavState",a.setAutonavState);kN(a,"seekToLiveHead",a.seekToLiveHead);kN(a,"seekToStreamTime",a.seekToStreamTime);
kN(a,"seekToChapterWithAnimation",a.seekToChapterWithAnimation);kN(a,"startSeekCsiAction",a.startSeekCsiAction);kN(a,"getStreamTimeOffset",a.getStreamTimeOffset);kN(a,"getVideoData",a.DY);kN(a,"setIsExternalPlaylist",a.setIsExternalPlaylist);kN(a,"downloadVideo",a.downloadVideo);kN(a,"queueOfflineAction",a.queueOfflineAction);kN(a,"pauseVideoDownload",a.pauseVideoDownload);kN(a,"resumeVideoDownload",a.resumeVideoDownload);kN(a,"refreshAllVideos",a.refreshAllVideos);kN(a,"refreshAllStaleEntities",
a.refreshAllStaleEntities);kN(a,"deleteVideos",a.deleteVideos);kN(a,"deleteAllVideos",a.deleteAllVideos);kN(a,"isOrchestrationLeader",a.isOrchestrationLeader);kN(a,"getAppState",a.getAppState);kN(a,"addInfoCardXml",a.addInfoCardXml);kN(a,"updateLastActiveTime",a.updateLastActiveTime);kN(a,"setBlackout",a.setBlackout);kN(a,"setUserEngagement",a.setUserEngagement);kN(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);kN(a,"getPresentingPlayerType",a.getPresentingPlayerType);kN(a,"canPlayType",
a.canPlayType);kN(a,"updatePlaylist",a.updatePlaylist);kN(a,"updateVideoData",a.updateVideoData);kN(a,"updateEnvironmentData",a.updateEnvironmentData);kN(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);kN(a,"setCardsVisible",a.setCardsVisible);kN(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);kN(a,"setSafetyMode",a.setSafetyMode);kN(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
kN(a,"getVideoAspectRatio",a.getVideoAspectRatio);kN(a,"getPreferredQuality",a.getPreferredQuality);kN(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);kN(a,"onAdUxClicked",a.onAdUxClicked);kN(a,"getFeedbackProductData",a.getFeedbackProductData);kN(a,"getStoryboardFrame",a.getStoryboardFrame);kN(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);kN(a,"getStoryboardLevel",a.getStoryboardLevel);kN(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);kN(a,"getCaptionWindowContainerId",
a.getCaptionWindowContainerId);kN(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);kN(a,"addUtcCueRange",a.addUtcCueRange);kN(a,"showAirplayPicker",a.showAirplayPicker);kN(a,"addBgVersionChangeCallback",a.addBgVersionChangeCallback);kN(a,"dispatchReduxAction",a.dispatchReduxAction);kN(a,"getPlayerResponse",a.getPlayerResponse);kN(a,"changeMarkerVisibility",a.changeMarkerVisibility);kN(a,"setAutonav",a.setAutonav);kN(a,"isNotServable",a.isNotServable);kN(a,"channelSubscribed",a.channelSubscribed);
kN(a,"channelUnsubscribed",a.channelUnsubscribed);kN(a,"isPictureInPictureAllowed",a.isPictureInPictureAllowed);kN(a,"togglePictureInPicture",a.togglePictureInPicture);kN(a,"supportsGaplessAudio",a.supportsGaplessAudio);kN(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
kN(a,"clearQueue",a.clearQueue);kN(a,"isFastLoad",function(){return!1});
kN(a,"getAudioTrack",a.kY);kN(a,"setAudioTrack",a.setAudioTrack);kN(a,"getAvailableAudioTracks",a.lY);kN(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);kN(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);kN(a,"getStatsForNerds",a.getStatsForNerds);kN(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);kN(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);kN(a,"setMinimized",a.setMinimized);kN(a,"confirmYpcRental",a.confirmYpcRental);kN(a,"setInlinePreview",
a.setInlinePreview);kN(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);kN(a,"handleExternalCall",a.handleExternalCall);kN(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);kN(a,"setScreenLayer",a.setScreenLayer);kN(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);kN(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);kN(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);kN(a,"updateFullerscreenEduButtonVisibility",a.updateFullerscreenEduButtonVisibility);kN(a,"updateFullerscreenEduButtonSubtleModeState",
a.updateFullerscreenEduButtonSubtleModeState);kN(a,"setGlobalCrop",a.setGlobalCrop);kN(a,"getVisibilityState",a.getVisibilityState);kN(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);kN(a,"setInternalSize",a.setInternalSize)};
IGa=function(a){lN(a,"cueVideoById",a.cueVideoById);lN(a,"loadVideoById",a.loadVideoById);lN(a,"cueVideoByUrl",a.cueVideoByUrl);lN(a,"loadVideoByUrl",a.loadVideoByUrl);lN(a,"playVideo",a.playVideo);lN(a,"pauseVideo",a.pauseVideo);lN(a,"stopVideo",a.stopVideo);lN(a,"clearVideo",a.clearVideo);lN(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);lN(a,"getVideoBytesTotal",a.getVideoBytesTotal);lN(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);lN(a,"getVideoStartBytes",a.getVideoStartBytes);lN(a,"cuePlaylist",
a.cuePlaylist);lN(a,"loadPlaylist",a.loadPlaylist);lN(a,"nextVideo",a.nextVideo);lN(a,"previousVideo",a.previousVideo);lN(a,"playVideoAt",a.playVideoAt);lN(a,"setShuffle",a.setShuffle);lN(a,"setLoop",a.setLoop);lN(a,"getPlaylist",a.AY);lN(a,"getPlaylistIndex",a.getPlaylistIndex);lN(a,"getPlaylistId",a.getPlaylistId);lN(a,"loadModule",a.loadModule);lN(a,"unloadModule",a.unloadModule);lN(a,"setOption",a.setOption);lN(a,"getOption",a.getOption);lN(a,"getOptions",a.getOptions);lN(a,"mute",a.mute);lN(a,
"unMute",a.unMute);lN(a,"isMuted",a.isMuted);lN(a,"setVolume",a.setVolume);lN(a,"getVolume",a.getVolume);lN(a,"seekTo",a.seekTo);lN(a,"getPlayerMode",a.getPlayerMode);lN(a,"getPlayerState",a.getPlayerState);lN(a,"getPlaybackRate",a.getPlaybackRate);lN(a,"setPlaybackRate",a.setPlaybackRate);lN(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);lN(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
lN(a,"setPlaybackQuality",a.setPlaybackQuality);lN(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);lN(a,"getCurrentTime",a.getCurrentTime);lN(a,"getDuration",a.getDuration);lN(a,"addEventListener",a.SW);lN(a,"removeEventListener",a.A3);lN(a,"getDebugText",a.getDebugText);lN(a,"getVideoData",function(){return JGa(a)});
lN(a,"addCueRange",a.addCueRange);lN(a,"removeCueRange",a.removeCueRange);lN(a,"setSize",a.setSize);lN(a,"getApiInterface",a.getApiInterface);lN(a,"destroy",a.destroy);lN(a,"showVideoInfo",a.showVideoInfo);lN(a,"hideVideoInfo",a.hideVideoInfo);lN(a,"isVideoInfoVisible",a.isVideoInfoVisible);lN(a,"getSphericalProperties",a.getSphericalProperties);lN(a,"setSphericalProperties",a.setSphericalProperties);var b=a.app.R();b.D||(lN(a,"getVideoEmbedCode",a.getVideoEmbedCode),lN(a,"getVideoUrl",a.getVideoUrl));
lN(a,"getMediaReferenceTime",a.getMediaReferenceTime);lN(a,"getSize",a.getSize);b.D||lN(a,"logImaAdEvent",a.logImaAdEvent)};
lN=function(a,b,c){a.state.D[b]=function(){return c.apply(a,g.za.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||kN(a,b,c);a.state.C.add(b)};
mN=function(a,b,c){a.state.J[b]=function(){return c.apply(a,g.za.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||kN(a,b,c);a.state.C.add(b)};
kN=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.za.apply(0,arguments))}};
rEa=function(a){a.state.u||(a.state.u={addEventListener:function(b,c){KGa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.Ra(c));var d=a.state.B[c];d&&(a.app.Rn.unsubscribe(b,d),g.Df(a.state.B,c))}});
return a.state.u};
KGa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ra(c));if(!a.state.B[d]){var e;"string"===typeof c?e=function(){var h=g.za.apply(0,arguments);g.Ha(c).apply(window,h)}:e=c;
var f=function(h){e({target:a.state.u,data:h})};
a.state.B[d]=f;a.app.Rn.subscribe(b,f)}};
LGa=function(a,b,c){b=g.Cg(Math.floor(b),0,100);isFinite(b)&&nN(a.app,{volume:b,muted:a.isMuted()},c)};
MGa=function(a,b){nN(a.app,{muted:!0,volume:a.getVolume()},b)};
NGa=function(a,b){nN(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
JGa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.oN(a.app,b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=b.bk?Iza(b.bk):!0;c.errorCode=b.errorCode;if(b.u&&b.u.video){c.video_quality=b.u.video.quality;b=b.u.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
g.qN=function(a){var b=pN(a.app.ob());if(b)return b.Av();a=a.app.ob();a=g.XF(a.G.R())?a.ge.get("music"):void 0;return a?a.Av():null};
rN=function(a,b,c,d){jN.call(this,a,b,!1,d);this.j=!1;c&&(HGa(this),OGa(this),IGa(this))};
OGa=function(a){mN(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(sN(a,b),c)});
mN(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(sN(a,b),c,d,e)});
mN(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(sN(a,b),c,d,e)});
mN(a,"getVideoData",a.cP);mN(a,"seekBy",a.seekBy);mN(a,"mutedAutoplay",a.mutedAutoplay);mN(a,"showControls",a.showControls);mN(a,"hideControls",a.hideControls);mN(a,"cancelPlayback",a.cancelPlayback);mN(a,"getProgressState",a.getProgressState);mN(a,"isInline",a.isInline);mN(a,"setInline",a.setInline);mN(a,"setLoopVideo",a.setLoopVideo);mN(a,"getLoopVideo",a.getLoopVideo);mN(a,"getStoryboardFormat",a.getStoryboardFormat);mN(a,"getVideoContentRect",a.getVideoContentRect);mN(a,"toggleFullscreen",a.toggleFullscreen);
mN(a,"isFullscreen",a.isFullscreen);mN(a,"getVideoStats",a.getVideoStats);mN(a,"getPlayerSize",a.getPlayerSize);mN(a,"toggleSubtitles",a.toggleSubtitles);mN(a,"setCenterCrop",a.setCenterCrop);mN(a,"setFauxFullscreen",a.setFauxFullscreen);mN(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);mN(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);mN(a,"setSizeStyle",a.setSizeStyle);mN(a,"wakeUpControls",a.wakeUpControls)};
sN=function(a,b){var c={};if(a.app.R().N){a=g.r(PGa);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(QGa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
RGa=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.tN=function(a,b){rN.call(this,a,b,!1);this.FF=this.settingsMenu=null};
g.uN=function(a){a=a.ob();var b=a.ge.get("endscreen");return b&&b.Gt()?!0:a.sA()||g.XF(a.G.R())};
g.vN=function(a,b){3===a.getPresentingPlayerType()?a.X("mdxautoplaycancel"):a.X("autonavcancel",b)};
g.xN=function(a){var b=wN(a.ob());return a.app.Kh&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Lm()||!!a.getPlaylist()};
g.zN=function(a){return(a=g.yN(a.ob()))?a.CC():{}};
g.SGa=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.TGa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.gb)};
g.AN=function(a,b,c){a=a.Za().element;var d=lc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.ph(a,b,d);b.setAttribute("data-layer",String(c))};
g.BN=function(a){var b=a.R();if(!b.rd)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!zI(c);d=c.isLivePlayback&&(!b.K("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.C&&f;return!c.ypcPreview&&
(!d||e)&&!g.Wb(c.W,"ypc")&&!a&&(!g.MF(b)||f)};
UGa=function(a){a=g.oN(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.JL)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.ma("iqss",{trigger:d},!0),!0):!1};
g.CN=function(a,b,c,d){d=void 0===d?!1:d;g.ZK.call(this,b);var e=this;this.G=a;this.va=d;this.J=new g.YD(this);this.V=new g.JL(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.M(this,this.J);g.M(this,this.V)};
VGa=function(a){a.u&&(document.activeElement&&g.sh(a.element,document.activeElement)&&(uh(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.bz(a.J);a.N=void 0};
DN=function(a,b,c){a.qh()?a.Ib():a.od(b,c)};
EN=function(a,b,c,d){d=new g.X({F:"div",Ca:["ytp-linked-account-popup-button"],Z:d,T:{role:"button",tabindex:"0"}});b=new g.X({F:"div",L:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{F:"div",L:"ytp-linked-account-popup-title",Z:b},{F:"div",L:"ytp-linked-account-popup-description",Z:c},{F:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.CN.call(this,a,{F:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.M(this,this.dialog);
d.Na("click",function(){e.Ib()});
g.M(this,d);g.AN(this.G,this.element,4);this.hide()};
g.FN=function(a,b,c,d){g.ZK.call(this,a);this.priority=b;c&&this.Ig(c);d&&this.Sd(d)};
g.GN=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{F:c?"a":"div",Ca:b,T:a,S:[{F:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{F:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{F:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
HN=function(a,b){a.Ja("icon",b)};
IN=function(a){g.FN.call(this,g.GN({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),1);var b=this;this.G=a;this.u=this.j=!1;this.ib=a.Em();a.Ai(this.element,this,!0);this.P(this.G,"settingsMenuVisibilityChanged",function(c){b.lc(c)});
this.P(this.G,"videodatachange",this.C);this.Na("click",this.onClick);this.C()};
JN=function(a){return a?g.zA(a):""};
KN=function(a){g.K.call(this);this.api=a};
LN=function(a){KN.call(this,a);var b=this;kN(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
kN(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new IN(b.api);g.M(b,b.menuItem)})};
MN=function(a,b){g.FN.call(this,g.GN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Na("click",this.onClick)};
NN=function(a){MN.call(this,"Cinematic lighting",12);var b=this;this.G=a;this.j=!1;this.ib=a.Em();HN(this,{F:"svg",S:[{F:"path",T:{d:"M4,21H3V3h1V21z M8,15H6v2h2V15z M8,11H6v2h2V11z M8,7H6v2h2V7z M18,15h-2v2h2V15z M8,19H6v2h2V19z M18,19h-2v2h2V19z M18,11h-2v2h2V11z M18,7h-2v2h2V7z M8,3H6v2h2V3z M18,3h-2v2h2V3z M21,3h-1v18h1V3z",fill:"white"}}]});this.subscribe("select",function(c){uv(g.rv.getInstance(),192,!0);var d=WGa();c!==d&&(d=g.rv.getInstance(),uv(0,190,c),d.save(),b.G.Ka("cinematicSettingsToggleChange",
c))},this)};
WGa=function(){g.rv.getInstance();return g.tv(0,192)?g.tv(0,190):!0};
ON=function(a){KN.call(this,a);var b=this;this.j=!1;var c;this.K("web_cinematic_watch_settings")&&(null==(c=a.R().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new NN(b.api);g.M(b,b.menuItem);b.menuItem.Fa(b.j)}),kN(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
YGa=function(a){KN.call(this,a);var b=this;this.events=new g.YD(a);g.M(this,this.events);this.K("enable_precise_embargos")&&(this.events.P(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Af("embargo",1);(null==c?0:c.cueRanges)&&XGa(b,c)}),this.events.P(a,g.uA("embargo"),function(){b.api.fg("heartbeat.stop",2,"This video isn't available in your current playback area")}))};
ZGa=function(a){function b(d){return void 0!==(null==d?void 0:d.embargo)}
var c;return null==(c=a.onEnter)?void 0:c.some(b)};
XGa=function(a,b){if(null==b?0:zI(b)){var c;null==(c=b.cueRanges)||c.filter(function(d){return ZGa(d)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h;
d=f+Number(null==(h=d.duration)?void 0:h.seconds);a.api.addUtcCueRange("embargo",f,d,"embargo",!1)})}};
PN=function(a){KN.call(this,a);var b=this;kN(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
$Ga=function(a,b,c){var d=[],e=b?156595:151874;a=g.r(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
QN=function(a){KN.call(this,a);var b=this;this.useLivingRoomPoToken=!1;var c;this.useLivingRoomPoToken=!(null==(c=a.R().webPlayerContextConfig)||!c.useLivingRoomPoToken);this.K("html5_generate_session_po_token")&&!this.useLivingRoomPoToken&&(this.K("html5_webpo_idle_priority_job")?g.Cv(g.Ev(),function(){aHa(b)}):aHa(this));
a.EK(this)};
aHa=function(a){var b=a.api.R(),c=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",d=a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";c=g.cG(b)?c:d;a.K("html5_placeholder_po_tokens")&&(c="2ZCPXHYZSpebQXqOYNtj");try{if(a.j=vga({fh:c,onError:function(f){g.rz(f)}}),!a.K("html5_generate_content_po_token")){a.j.ready().then(function(){bHa(a)});
var e=g.TE(b.experiments,"html5_session_po_token_interval_time_ms");0<e&&(a.u=g.yu(function(){bHa(a)},e))}}catch(f){f instanceof Error&&g.rz(f)}};
bHa=function(a){var b,c,d,e,f;g.z(function(h){if(!a.K("html5_generate_session_po_token")||null==(b=a.j)||!b.isReady()||a.useLivingRoomPoToken)return h.return();c=a.api.R();d=g.Q("EOM_VISITOR_DATA")||g.Q("VISITOR_DATA");e=c.Xl?c.datasyncId:d;f=c.livingRoomPoTokenId||e;c.Oe=cHa(a,f);g.pa(h)})};
cHa=function(a,b){var c;if(null==(c=a.j)||!c.isReady())return"";try{var d=a.j.gw({by:b});return g.Bc(d,2)}catch(e){return g.rz(e),""}};
dHa=function(a){g.K.call(this);this.j=new LN(a);g.M(this,this.j);this.C=new PN(a);g.M(this,this.C);this.D=new QN(a);g.M(this,this.D);this.B=new YGa(a);g.M(this,this.B);this.u=new ON(a);g.M(this,this.u)};
RN=function(a){this.U=a;this.u=this.j=NaN};
SN=function(a,b,c){lB(a,c)||mB(a,b,c);lB(a,"video_to_ad")||mB(a,b,"video_to_ad");lB(a,"ad_to_video")||mB(a,b,"ad_to_video");lB(a,"ad_to_ad")||mB(a,b,"ad_to_ad")};
TN=function(a,b){this.U=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new RN(a);this.j=b||null;this.C=!1};
eHa=function(a,b){a.timerName=b};
UN=function(a,b){SN(b,void 0,a.timerName)};
fHa=function(a,b,c){var d=g.SF(b.Oa)&&!b.Oa.D;if(b.Oa.Gi&&(OF(b.Oa)||"shortspage"===b.Oa.La||tG(b.Oa)||d)&&!a.C){a.C=!0;a.J=b.clientPlaybackNonce;g.Q("TIMING_ACTION")||au("TIMING_ACTION",a.U.csiPageType);a.U.csiServiceName&&au("CSI_SERVICE_NAME",a.U.csiServiceName);if(a.j){d=a.j.ej();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,XA(f,d[f],a.timerName);d=a.j.VB;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.$A(f,d[f],a.timerName);d=a.j;d.j={};d.VB={}}g.$A("yt_pvis",
nB(),a.timerName);g.$A("yt_pt","html5",a.timerName);a.I!==b.clientPlaybackNonce||Number.isNaN(a.B)||(lB("_start",a.timerName)?c=DA(a.timerName)._start+a.B:g.rz(new g.Rv("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!lB("pbs",a.timerName)&&a.tick("pbs",c)}};
gHa=function(a){if(a.j){var b=a.j;b.j={};b.VB={}}a.C=!1;a.I=void 0;a.B=NaN};
VN=function(a,b){g.cz.call(this);this.Oa=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.Zf={};this.u=0;if(a=b.session_data)this.sessionData=ju(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 RG("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.SG(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.Zf=MG(b,"playlist_");this.B=(b=b.thumbnail_ids)?b.split(","):[]};
WN=function(a){return!!(a.playlist||a.list||a.api)};
hHa=function(a){var b=a.index+1;return b>=a.length?0:b};
iHa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.XN=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.HH(a.Oa,b),g.M(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
YN=function(a,b){a.index=g.Cg(b,0,a.length-1);a.startSeconds=0};
ZN=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.XN(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.u++;a.j&&a.j()}};
lHa=function(a,b){var c,d,e,f,h,l;return g.z(function(m){if(1==m.j){c=g.EM();var n=a.R(),p={context:g.eN(a)};n.K("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.T("parse_video_id_from_serialized_embedded_player_response_killswitch")){var v=b.embedded_player_response;v&&(q=JSON.parse(v))}if(q){var w,y,A,B,
E,G,H;q=(null==(w=q)?void 0:null==(y=w.embedPreview)?void 0:null==(A=y.thumbnailPreviewRenderer)?void 0:null==(B=A.playButton)?void 0:null==(E=B.buttonRenderer)?void 0:null==(G=E.navigationEndpoint)?void 0:null==(H=G.watchEndpoint)?void 0:H.videoId)||null}else q=null}w=(w=q)?w:void 0;y=a.playlistId?a.playlistId:b.list;A=b.listType;if(y){var I;"user_uploads"===A?I={username:y}:I={playlistId:y};jHa(n,w,b,I);p.playlistRequest=I}else b.playlist?(I={templistVideoIds:b.playlist.toString().split(",")},jHa(n,
w,b,I),p.playlistRequest=I):w&&(I={videoId:w},n&&(I.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=I);d=p;e=g.pM(kHa);g.ra(m,2);return g.x(m,g.AK(c,d,e),4)}if(2!=m.j)return f=m.u,h=a.R(),b.raw_embedded_player_response=f,h.K("embeds_pfl_cue_killswitch")||(h.W=kv(b,g.MF(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.W),m.return(new g.HH(h,b));l=g.va(m);g.qz(l);return m.return(a)})};
jHa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.aO=function(a,b){$N.get(a);$N.set(a,b)};
g.bO=function(a){g.cz.call(this);this.loaded=!1;this.player=a};
mHa=function(){this.u=[];this.j=[]};
g.cO=function(a,b){return b?a.j.concat(a.u):a.j};
g.dO=function(a,b){switch(b.kind){case "asr":nHa(b,a.u);break;default:nHa(b,a.j)}};
nHa=function(a,b){g.Ub(b,function(c){return a.equals(c)})||b.push(a)};
g.eO=function(a){g.K.call(this);this.U=a;this.u=new mHa;this.C=[]};
g.fO=function(a,b,c){g.eO.call(this,a);this.audioTrack=c;this.j=null;this.C=b.HG};
oHa=function(){this.Xi=!1};
pHa=function(a){a=void 0===a?{}:a;var b=void 0===a.Mm?!1:a.Mm,c=new oHa;c.Xi=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
g.qHa=function(a){this.Oa=a;this.C=new oHa;this.Yl=this.Xl=!1;this.Kl=2;this.I=20971520;this.W=8388608;this.D=120;this.yc=3145728;this.Ha=62914560;this.zc=10485760;this.Rl=g.TE(this.Oa.experiments,"html5_min_readbehind_secs");this.Ju=g.TE(this.Oa.experiments,"html5_min_readbehind_cap_secs");this.Iu=g.TE(this.Oa.experiments,"html5_max_readbehind_secs");this.Jx=this.Oa.K("html5_trim_future_discontiguous_ranges");this.Pb=NaN;this.ir=this.pk=this.Sq=2;this.Ra=2097152;this.gr=1048576;this.gb=!1;this.Bw=
1800;this.Ll=this.Il=5;this.va=15;this.Pe=1;this.u=1.15;this.B=1.05;this.Ak=1;this.Ul=!0;this.ra=!1;this.jr=.8;this.Mk=this.eb=!1;this.Mc=6;this.V=this.Yb=!1;this.Ed=0;this.Sl=this.Oa.K("html5_new_min_startup_smooth_logic");this.Nc=0;this.ju=this.Oa.K("html5_append_init_while_paused");this.Zl=g.TE(this.Oa.experiments,"html5_post_interrupt_readahead");this.Vl=!1;this.rd=5E3;this.Qq=100;this.cf=10;this.Lu=g.TE(this.Oa.experiments,"html5_offline_failure_retry_limit")||2;this.Mt=g.TE(this.Oa.experiments,
"html5_ssdai_failure_retry_limit")||3;this.Hk=this.Oa.experiments.fb("html5_clone_original_for_fallback_location");this.Ot=this.Oa.experiments.fb("html5_ssdai_reset_on_video_only_killswitch");this.jm=1;this.Gi=1.6;this.Kb=!1;this.Y=.5;this.Kd=2;this.Fd=this.Vt=0;this.Oq=1.5;this.Pq=this.Ki=.5;this.og=15;this.Qk=1;this.Hs=this.Bd=!1;this.Jl=0;this.On=this.St=this.Ok=this.gm=this.Wl=!1;this.hm=0;this.zi=2;this.wt=this.Fk=!1;this.rg=0;this.qa=this.Ut=this.oi=!1;this.Mx=this.Oa.K("html5_webm_init_skipping");
this.jh=!1;this.Ya=!0;this.Ne=this.Dd=this.fm=this.Ua=!1;this.Ik=!0;this.Ei=!1;this.j="";this.Gu=1048576;this.He=[];this.Hu=this.Oa.K("html5_woffle_resume");this.Cb=!0;this.Nk=this.Vj=this.Oe=!1;this.vg=46800;this.Gs=this.Bk=this.rk=this.im=this.Eh=this.Lc=!1;this.N=0;this.Jk="";this.Fu=this.Oa.K("html5_disable_codec_for_playback_on_error");this.bk=this.fu=this.Kk=this.Di=!1;this.qg=0;this.Pu=Uu();this.gt=this.Pk=!1;this.mu=this.Oa.K("html5_skip_buffer_check_seek_to_head");this.Ld=!1;this.Rr=!this.Oa.K("html5_reset_media_stream_discontinuity_killswitch");
this.nk=!1;this.Ng=8192;this.La=this.Cd=!1;this.xs=1;this.Kx=this.Oa.K("html5_onesie_live");this.Lx=this.Oa.K("html5_onesie_premieres");this.Js=this.Oa.K("html5_seek_for_index_reset_killswitch");this.Mu=g.TE(this.Oa.experiments,"html5_onesie_live_ttl_secs")||8;this.Tl=g.TE(this.Oa.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Qu=this.Oa.K("html5_self_init_consolidation");this.Tt=this.Oa.K("html5_stream_metadata");this.Eb=this.Oa.K("html5_onesie_ads");this.nu=this.Oa.K("html5_live_partial_response_resumable");
this.pg=this.Oa.K("html5_ssdai_log_ad_transition_info");this.Ou=g.TE(this.Oa.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Nu=this.Oa.K("html5_onesie_nonzero_playback_start");this.bf=this.Oa.K("html5_ssdai_use_post_for_media")&&this.Oa.K("gab_return_sabr_ssdai_config");this.Rq=this.Oa.K("html5_use_post_for_media");this.Li=this.Oa.K("html5_ssdai_enable_new_seek_logic");this.Ru=this.Oa.K("html5_skip_ssdai_ad_init");this.useUmp=this.Oa.K("html5_use_ump");this.Ix=this.Oa.K("html5_skip_stitched_info_on_segment_placeholder_killswitch");
this.Ea=this.J=!1;this.ub=this.Oa.K("html5_enable_atv_offline");this.cm=this.Oa.K("html5_prefer_drc")};
rHa=function(a,b){1080<b.video.j&&!a.Xl&&(a.I=36700160,a.W=5242880,a.yc=10485760,a.Ra=4194304,a.Xl=!0);2160<b.video.j&&!a.Yl&&(a.I=104857600,a.Pb=13107200,a.Yl=!0);b.isEncrypted()&&g.Qu()&&Ou("kant")&&(a.Pb=1310720);b.Pb&&(a.gr=Math.max(65536,Math.min(a.Ra,5*b.Pb)))};
g.gO=function(a,b){return VD(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.sHa=function(a,b){if(null!=a.j&&g.nG(b.R())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.nf())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.gO(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Hxa(a.j);return b||a};
g.hO=function(a,b,c,d,e){g.eO.call(this,a);this.videoId=c;this.CP=e;this.D={};this.j=null;a=d||g.nu(b).hl||"";a=a.split("_").join("-");this.B=ou(b,{hl:a})};
iO=function(a,b){g.K.call(this);this.G=a;this.J=b;this.VB={};this.j={};this.u=null;this.N=this.G.K("web_player_defer_modules");this.D=new Set;this.C=this.G.R().Vj||0;this.B=this.G.R().og||0;this.ge=new Map;0<this.C&&(this.I=new g.Zn(this.UB,this.C,this),g.M(this,this.I));0<this.B&&(this.vr=new g.Zn(this.TB,this.B,this),g.M(this,this.vr))};
g.jO=function(a){return a.ge.get("captions")};
vHa=function(a,b){switch(b){case "ad":return kO(a);case "annotations_module":return b=a.G.R(),a=a.G.getVideoData(),a.SL||"3"===b.controlsType?!1:b.Y.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Ra||!!g.oI(a)||!!g.pI(a):!0;case "attribution":return a=a.G.R(),a.K("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.G.R(),b.B||"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.G.getVideoData(),
a=!!a&&(!!g.LBa(a)||!!g.MBa(a))),a;case "embed":return g.MF(a.G.R());case "endscreen":return g.tHa(a);case "heartbeat":return a.JK();case "inline_preview":return a.G.R().showInlinePreviewUi;case "kids":return dG(a.G.R());case "remote":return a.G.R().Eb;case "miniplayer":return a.G.R().showMiniplayerUiWhenMinimized;case "music":return g.XF(a.G.R());case "offline":return a.G.R().rg;case "captions":return b=a.G.getVideoData(),!!b.rd||!!b.captionTracks.length||g.sHa(b,a.G);case "unplugged":return g.UF(a.G.R());
case "ux":return a.G.R().zc;case "webgl":return uHa(a);case "ypc":return a.sA();case "ypc_clickwrap":return a=a.G.getVideoData(),a.vg&&!a.cF;case "yto":return!!a.G.getVideoData().W.includes("yto");default:return g.qz(Error("Module descriptor "+b+" does not match")),!1}};
lO=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.ge.get(b);if(!h||d)if(e||(e=function(){lO(a,b,c,d)}),f||(f=function(){a.G.rf(b)}),h=h||wHa(a,b,vHa(a,b),e,f))a.ge.set(b,h),h.create(),c&&a.G.Ka("onApiChange")};
xHa=function(a){var b=a.G.getVideoData(),c=a.N&&!b.isInlinePlaybackNoAd;a.G.K("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
mO=function(a){a=a.G.getVideoData();var b;if(b=a.K("web_player_defer_ad"))if(g.Wb(a.W,"ad")||a.enableServerStitchedDai)b=!1;else{var c;if(c=b=null==(c=a.playerResponse)?void 0:c.adPlacements){c=Number.MAX_VALUE;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:
h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<c&&(c=d)}}c=c-5E3<=1E3*a.startSeconds}b=c?!1:!0}return b};
g.tHa=function(a){var b=a.G.R();if(tG(b)||b.D||!b.Mc&&!b.Pe)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.K("desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.K("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");return!c||b};
g.yN=function(a){return a.ge.get("webgl")};
uHa=function(a){var b=a.G.getVideoData();a=a.G.R();var c=g.Ama(),d=a.K("enable_spherical_kabuki"),e=g.sG(a);if(g.nI(b))return c||d||e||a.K("html5_enable_spherical");if(g.kI(b))return e||c||d||a.K("html5_enable_spherical");if(g.lI(b))return e||c||a.K("html5_enable_spherical3d");if(g.mI(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.cI(b)&&!c&&(a.K("enable_webgl_noop")||a.K("html5_enable_bicubicsharp"))};
yHa=function(a){a.G.R().K("web_player_ux_module_wait")&&a.ge.get("ux")&&a.G.rf("ux")};
zHa=function(a){yHa(a);lO(a,"ux",!0)};
kO=function(a){if(a.G.R().B)return!1;if(a=a.G.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
wHa=function(a,b,c,d,e){try{if(c){var f=$N.get(b);if(f)return new f(a.G);AHa(a,b,d,e)}else a.G.rf(b)}catch(h){a.G.rf(b),g.qz(h)}return null};
nO=function(a,b,c){for(var d=g.r(a.ge),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.xj(b))&&(g.af(f),a.ge.delete(e))}};
oO=function(a){return a.ge.get("ad")};
pO=function(a){if(dG(a.G.R()))return a.ge.get("kids")};
wN=function(a){if(a.G.R().Eb)return a.ge.get("remote")};
g.qO=function(a){if(g.UF(a.G.R()))return a.ge.get("unplugged")};
pN=function(a){if(a.G.R().zc)return a.ge.get("ux")};
rO=function(a){if(a.G.R().rg)return a.ge.get("offline")};
g.sO=function(a){return a.ge.get("annotations_module")};
tO=function(a){return a.ge.get("creatorendscreen")};
CHa=function(a){var b=a.J.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){BHa(a,b,function(){var e,f;return g.z(function(h){if(1==h.j)return e=g.C.loadWasm,"function"!==typeof e?(d("noloadwasm"),h.Ma(0)):g.x(h,e(),3);f=h.u;c(f);g.pa(h)})},function(){d("player wasm load failure")})})};
AHa=function(a,b,c,d){if(a.J){var e=DHa[b];BHa(a,a.J+e,function(){a.D.add(e);c.call(a)},d)}};
BHa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.bh("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.mh("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(A){yh(f);q&&q.apply(window,[A])};
var v=m.onerror;m.onerror=function(A){if(.01>Math.random()){var B=new g.Rv("Unable to load player module",b,document.location&&document.location.origin);g.qz(B)}yh(e);v&&v(A)};
var w=m,y=w.onreadystatechange;w.onreadystatechange=function(A){switch(w.readyState){case "loaded":case "complete":yh(f)}y&&y(A)};
l&&((h=a.G.R().cspNonce)&&m.setAttribute("nonce",h),g.ej(m,g.ig(b)),h=g.bh("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.cf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
uO=function(a,b,c){g.df.call(this,b,a);this.j=c};
g.vO=function(a){VJ.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new uO(b,c.type,c))}};
xO=function(a,b,c,d,e){g.cz.call(this);var f=this;this.target=a;this.HB=b;this.u=0;this.I=!1;this.C=new g.Gg(NaN,NaN);this.j=new g.YD(this);this.qa=this.B=this.J=null;g.M(this,this.j);b=d||e?4E3:3E3;this.V=new g.Zn(function(){wO(f,1,!1)},b,this);
g.M(this,this.V);this.W=new g.Zn(function(){wO(f,2,!1)},b,this);
g.M(this,this.W);this.Y=new g.Zn(function(){wO(f,512,!1)},b,this);
g.M(this,this.Y);this.ra=c&&0<c.Oe.length?5E3:3E3;d||(this.B=this.j.P(a,"mouseover",this.pD),this.j.P(a,"mousemove",this.g_),this.j.P(a,"mouseleave",this.h_));zl?this.j.P(a,"keypress",this.DZ):this.j.P(a,"focusin",this.sY);this.D=this.j.P(a,"mousedown",this.sQ);this.N=this.j.P(a,"touchstart",this.US,void 0,!0);wO(this,640,!0)};
EHa=function(a){wO(a,4,!1);a.J&&(a.j.uc(a.J),a.J=null,a.B=a.j.P(a.target,"mouseover",a.pD));a.B&&(a.j.uc(a.B),a.B=a.j.P(a.target,"mouseover",a.pD))};
wO=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.V.start(),b&2&&a.W.start()):(a.u&=~b,b&1&&a.V.stop(),b&2&&a.W.stop(),b&512&&a.Y.stop());a.u&512&&!(a.u&128)&&g.$n(a.Y,a.ra);b=!a.u;d!==b&&a.X("autohideupdate",b)};
g.yO=function(a){g.X.call(this,{F:"button",Ca:["ytp-large-play-button","ytp-button"],T:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.P(a,"videodatachange",this.Fa);g.SF(this.api.R())&&this.api.K("embeds_web_enable_red_play_button_on_preview")&&g.ho(this.element,"ytp-large-play-button-red-bg");this.Fa()};
g.zO=function(a){var b=["ytp-cued-thumbnail-overlay"];a.R().D&&b.push("ytp-exp-contain-thumbnail");g.X.call(this,{F:"div",Ca:b,S:[{F:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ya("ytp-cued-thumbnail-overlay");var c=new g.yO(a);g.M(this,c);c.xa(b);this.B=new g.YD(this);g.M(this,this.B);this.api=a;this.D=this.ya("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.JL(this,250);g.M(this,this.u);this.j=new g.Zn(this.Fa,0,this);g.M(this,this.j);this.Fa();this.P(a,"appresize",this.xb);this.P(a,
"presentingplayerstatechange",this.onStateChange);this.P(a,"ypcStateChanged",this.T2);OF(a.R())&&this.P(a,"videoplayerreset",this.sV)};
FHa=function(a){var b=!a.R().oi&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.AO=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.YL(a))return g.Gx(a),!0;b.pauseVideo();a=e.getAttribute("href");g.hM(a,d,!0);return!1};
g.BO=function(a,b,c){if(jG(b.R())&&2!==b.getPresentingPlayerType()){if(g.YL(c))return b.isFullscreen()&&!b.R().externalFullscreen&&b.toggleFullscreen(),g.Gx(c),!0}else if(b.R().K("embeds_enable_webview_nonjs_navigation")&&g.MF(b.R())&&(Zu()||Xu()))b=c.target,b instanceof HTMLAnchorElement&&(a=Cfa(a),b.href=a instanceof kg?g.lg(a):Afa(a));else{var d=g.YL(c);d&&b.pauseVideo();g.hM(a,void 0,!0);d&&(g.iM(a),g.Gx(c))}return!1};
GHa=function(){return{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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"}};
CO=function(){return{F:"div",L:"ytp-spinner-container",S:[{F:"div",L:"ytp-spinner-rotator",S:[{F:"div",L:"ytp-spinner-left",S:[{F:"div",L:"ytp-spinner-circle"}]},{F:"div",L:"ytp-spinner-right",S:[{F:"div",L:"ytp-spinner-circle"}]}]}]}};
DO=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
EO=function(a,b,c){a=a.R();return a.K("desktop_player_button_tooltip_with_shortcut")&&!a.Ng?g.HJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.FO=function(a){g.X.call(this,{F:"div",Ca:["ytp-error"],T:{role:"alert"},S:[{F:"div",L:"ytp-error-content",S:[{F:"div",L:"ytp-error-icon-container",S:[{F:"svg",T:{fill:"#fff",viewBox:"0 0 48 48"},S:[{F:"path",T:{d:"M0 0h48v48H0V0z",fill:"none"}},{F:"path",T:{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"}}]}]},{F:"div",L:"ytp-error-content-wrap",
S:[{F:"div",L:"ytp-error-content-wrap-reason",Z:"{{content}}"},{F:"div",L:"ytp-error-content-wrap-subreason",Z:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.GO=function(a){a=a.split(HHa);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({F:"br"}),b.push(d[e]);c<a.length&&b.push({F:"a",T:{href:a[c],target:a[c+1]},Z:a[c+2]})}return{F:"span",S:b}};
IO=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.R().u);a=a.api.getVideoData();b=g.HJ(g.HO[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({F:"h2",Z:f});d.push(b[0]);h&&d.push({F:"br"});d.push({F:"a",T:{href:c,target:e?"_blank":null},Z:b[2]});d.push(b[4]);return{F:"span",S:d}};
IHa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.P(c[d],"click",b);a.keys.push(e)}};
JHa=function(a){for(var b=0;b<a.keys.length;b++)a.uc(a.keys[b]);a.keys=[]};
JO=function(a){g.YD.call(this);this.G=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"presentingplayerstatechange",this.wh);this.onVideoDataChange()};
KO=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
KHa=function(a){KO(a,"play",function(){a.G.playVideo()});
KO(a,"pause",function(){a.G.pauseVideo()});
KO(a,"seekbackward",function(){a.G.seekBy(-5*a.G.getPlaybackRate())});
KO(a,"seekforward",function(){a.G.seekBy(5*a.G.getPlaybackRate())})};
LHa=function(a){var b,c;a=a.G.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};
MHa=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.pA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
NHa=function(a){var b=a.G.zb();b=b.isCued()||b.isError()?"none":g.fK(b)?"playing":"paused";a.mediaSession.playbackState=b};
LO=function(a){g.X.call(this,{F:"div",L:"ytp-paid-content-overlay",T:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Zd=this.j=null;var b=a.R();a.K("enable_new_paid_product_placement")&&!g.oG(b)?(this.u=new g.X({F:"a",L:"ytp-paid-content-overlay-link",T:{href:"{{href}}",target:"_blank"},S:[{F:"div",L:"ytp-paid-content-overlay-icon",Z:"{{icon}}"},{F:"div",L:"ytp-paid-content-overlay-text",Z:"{{text}}"},{F:"div",L:"ytp-paid-content-overlay-chevron",Z:"{{chevron}}"}]}),
this.P(this.u.element,"click",this.onClick)):this.u=new g.X({F:"div",Ca:["ytp-button","ytp-paid-content-overlay-text"],Z:"{{text}}"});this.C=new g.JL(this.u,250,!1,100);g.M(this,this.u);this.u.xa(this.element);g.M(this,this.C);this.G.Ai(this.element,this);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"presentingplayerstatechange",this.bd)};
PHa=function(a,b){var c=ABa(b),d=dI(b);b.vg&&a.G.Km()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.bo(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&OHa(a,d,c,b)):c&&d&&OHa(a,d,c,b))};
OHa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Zn(a.Ib,b,a);g.M(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 h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.av(e,g.RH))?void 0:l.url;a.G.xk(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",T:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},S:[{F:"path",T:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.dL():null})};
QHa=function(a,b){a.j&&(g.W(b,8)&&a.B?(a.B=!1,a.od(),a.j.start()):(g.W(b,2)||g.W(b,64))&&a.videoId&&(a.videoId=null))};
MO=function(a){g.X.call(this,{F:"div",L:"ytp-spinner",S:[CO(),{F:"div",L:"ytp-spinner-message",Z:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ya("ytp-spinner-message");this.j=new g.Zn(this.show,500,this);g.M(this,this.j);this.P(a,"presentingplayerstatechange",this.onStateChange);this.P(a,"playbackstalledatstart",this.u);this.Qc(a.zb())};
NO=function(a){var b=g.LE(a.R().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Ca:["ytp-unmute-icon"],S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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"}}]}]},
{F:"div",Ca:["ytp-unmute-text"],Z:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Ca:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.CN.call(this,a,{F:"button",Ca:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{F:"div",L:"ytp-unmute-inner",S:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.rb(this.element,this,51663);this.P(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.P(a,"presentingplayerstatechange",
this.wh);this.Na("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.MF(this.api.R());g.YK(this,a);a&&RHa(this);this.B=a};
RHa=function(a){a.j||(a.j=!0,a.api.Ta(a.element,!0))};
g.PO=function(a){g.YD.call(this);var b=this;this.api=a;this.YI=!1;this.Tm=null;this.SB=!1;this.vf=null;this.VG=this.EE=!1;this.jL=this.lL=null;this.WP=NaN;this.iL=this.py=!1;this.Dz=0;this.jG=[];this.PJ=!1;this.MC={height:0,width:0};var c=a.R(),d=a.Za();this.MC=a.getPlayerSize();this.IN=new g.Zn(this.mJ,0,this);g.M(this,this.IN);g.XF(c)||(this.Mn=new g.zO(a),g.M(this,this.Mn),g.AN(a,this.Mn.element,4));if(SHa(this)){var e=new MO(a);g.M(this,e);e=e.element;g.AN(a,e,4)}var f=a.getVideoData();this.Xd=
new xO(d,function(l){return b.HB(l)},f,c.cf,qG(c));
g.M(this,this.Xd);this.Xd.subscribe("autohideupdate",this.ul,this);if(!c.disablePaidContentOverlay){var h=new LO(a);g.M(this,h);g.AN(a,h.element,4)}this.IE=new NO(a);g.M(this,this.IE);g.AN(this.api,this.IE.element,2);this.lI=this.api.isMutedByMutedAutoplay();this.P(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.AE=new g.Zn(this.Sw,200,this);g.M(this,this.AE);this.KI=f.videoId;this.fS=new g.Zn(function(){b.Dz=0},350);
g.M(this,this.fS);this.XB=new g.Zn(function(){b.iL||OO(b)},350,this);
g.M(this,this.XB);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.ho(f,"ytp-color-white")}g.XF(c)&&g.ho(f,"ytp-music-player");!a.K("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new JO(a),g.M(this,f));this.P(a,"appresize",this.xb);this.P(a,"presentingplayerstatechange",this.wh);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"videoplayerreset",this.q1);this.P(a,"autonavvisibility",
function(){b.vn()});
this.P(a,"sizestylechange",function(){b.vn()});
this.P(d,"click",this.Q1,this);this.P(d,"dblclick",this.R1,this);c.gb&&(this.P(d,"gesturechange",this.S1,this),this.P(d,"gestureend",this.T1,this));this.fq=[d.Zx];this.Mn&&this.fq.push(this.Mn.element);e&&this.fq.push(e)};
QO=function(a,b){if(!b)return!1;var c=a.api.Qd();if(c.er()&&(c=c.tf())&&g.sh(c,b))return c.controls;for(c=0;c<a.fq.length;c++)if(g.sh(a.fq[c],b))return!1;return g.go(b,"ytp-player-content")||g.go(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
THa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.Za().JC||!1)&&a.api.R().isMobile&&RO&&11<=yI;a=a.api.R().I&&RO;return!(!b&&!a)};
SO=function(a,b){return!QO(a,Dx(b))&&g.YL(b)};
OO=function(a){a.Xd.un();if(a.EE&&a.VG)a.VG=!1;else if(!a.api.R().Ea&&!a.Wk()){var b=a.api.zb();g.W(b,2)&&g.uN(a.api)||a.Ht(b);if(!a.api.R().gb||b.isCued()||g.W(b,1024)){var c=a.api.qE();g.Mv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.W(b,1024);c&&(b.isCued()||d)?(g.Mv("embedsRequestStorageAccessState",{isCued:b.isCued(),Q2a:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Mv("embedsRequestStorageAccessFailedState",{state:b.state}),a.Sw())}else a.AE.isActive()?
(a.KC(),a.AE.stop()):a.AE.start()}};
UHa=function(a,b){return g.YL(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.zb(),!g.W(b,4)||g.W(b,8)||g.W(b,2)||a.Sw(),!0):!1};
VHa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
SHa=function(a){a=Pu()&&67<=wma()&&!a.api.R().I;return!Ou("tizen")&&!JF&&!a&&!0};
TO=function(a,b){b=void 0===b?2:b;g.cz.call(this);this.api=a;this.j=null;this.Sc=new $y(this);g.M(this,this.Sc);this.u=yFa;this.Sc.P(this.api,"presentingplayerstatechange",this.bd);this.j=this.Sc.P(this.api,"progresssync",this.Wb);this.Fl=b;1===this.Fl&&this.Wb()};
UO=function(a){g.X.call(this,{F:"button",Ca:["ytp-button","ytp-back-button"],S:[{F:"div",L:"ytp-arrow-back-icon",S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Nb:!0,T:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.YK(this,a.R().showBackButton);this.Na("click",this.onClick)};
g.VO=function(a){g.X.call(this,{F:"div",S:[{F:"div",L:"ytp-bezel-text-wrapper",S:[{F:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{F:"div",L:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},S:[{F:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.G=a;this.u=new g.Zn(this.show,10,this);this.j=new g.Zn(this.hide,500,this);g.M(this,this.u);g.M(this,this.j);this.hide()};
XO=function(a,b,c){if(0>=b){c=mL();b="muted";var d=0}else c=c?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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";WO(a,c,b,d+"%")};
WHa=function(a,b){b=b?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.HJ("Speed is $RATE",{RATE:String(c)});WO(a,b,d,c+"x")};
XHa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";WO(a,GHa(),b)};
WO=function(a,b,c,d){d=void 0===d?"":d;a.Ja("label",void 0===c?"":c);qG(a.G.R())?a.Ja("icon",null):a.Ja("icon",b);g.bo(a.j);a.u.start();a.Ja("title",d);g.N(a.element,"ytp-bezel-text-hide",!d)};
ZO=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-button","ytp-cards-button"],T:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.MF(a.R()))},S:[{F:"span",L:"ytp-cards-button-icon-default",S:[{F:"div",L:"ytp-cards-button-icon",S:[a.R().K("player_new_info_card_format")?WEa():{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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"}}]}]},
{F:"div",L:"ytp-cards-button-title",Z:"Info"}]},{F:"span",L:"ytp-cards-button-icon-shopping",S:[{F:"div",L:"ytp-cards-button-icon",S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",L:"ytp-svg-shadow",T:{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"}},{F:"path",L:"ytp-svg-fill",T:{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"}},{F:"path",L:"ytp-svg-shadow-fill",T:{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"}}]}]},{F:"div",
L:"ytp-cards-button-title",Z:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.JL(this,250,!0,100);g.M(this,this.u);g.N(this.C,"ytp-show-cards-title",g.MF(a.R()));this.hide();this.Na("click",this.onClicked);this.Na("mouseover",this.J0);YO(this,!0)};
YO=function(a,b){b?a.j=g.$O(a.B.pc(),a.element):(a.j=a.j,a.j(),a.j=null)};
aP=function(a,b,c){g.X.call(this,{F:"div",L:"ytp-cards-teaser",S:[{F:"div",L:"ytp-cards-teaser-box"},{F:"div",L:"ytp-cards-teaser-text",S:a.R().K("player_new_info_card_format")?[{F:"button",L:"ytp-cards-teaser-info-icon",T:{"aria-label":"Show cards","aria-haspopup":"true"},S:[WEa()]},{F:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"},{F:"button",L:"ytp-cards-teaser-close-button",T:{"aria-label":"Close"},S:[g.eL()]}]:[{F:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.G=a;this.V=
b;this.Gh=c;this.C=new g.JL(this,250,!1,250);this.j=null;this.J=new g.Zn(this.X0,300,this);this.I=new g.Zn(this.W0,2E3,this);this.D=[];this.u=null;this.N=new g.Zn(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.M(this,this.C);g.M(this,this.J);g.M(this,this.I);g.M(this,this.N);a.R().K("player_new_info_card_format")?(g.ho(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.P(this.ya("ytp-cards-teaser-close-button"),"click",this.ek),this.P(this.ya("ytp-cards-teaser-info-icon"),"click",this.ZK),this.P(this.ya("ytp-cards-teaser-label"),"click",this.ZK)):this.Na("click",this.ZK);this.P(c.element,"mouseover",this.RM);this.P(c.element,"mouseout",this.QM);this.P(a,"cardsteasershow",
this.w2);this.P(a,"cardsteaserhide",this.Ib);this.P(a,"cardstatechange",this.hT);this.P(a,"presentingplayerstatechange",this.hT);this.P(a,"appresize",this.yL);this.P(a,"onShowControls",this.yL);this.P(a,"onHideControls",this.uX);this.Na("mouseenter",this.tV)};
cP=function(a){g.X.call(this,{F:"button",Ca:[bP.BUTTON,bP.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{F:"div",L:bP.TITLE_NOTIFICATIONS_ON,T:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.iL()]},{F:"div",L:bP.TITLE_NOTIFICATIONS_OFF,T:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{F:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{F:"path",T:{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.rb(this.element,this,36927);this.Na("click",this.onClick,this);this.Ja("pressed",!1);this.Ja("label","Get notified about every new video")};
YHa=function(a,b){a.j=b;a.element.classList.toggle(bP.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.hG:c.gG)?(a=a.api.Cm())?uM(a,b):g.gu(Error("No innertube service available when updating notification preferences.")):g.gu(Error("No update preferences command available.")):g.gu(Error("No video data when updating notification preferences."))};
g.eP=function(a,b,c,d,e,f,h,l,m,n,p,q,v){v=void 0===v?null:v;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=q.R();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.SF(w)||g.WF(w))c.target=w.J;g.X.call(this,{F:"div",Ca:["ytp-button","ytp-sb"],S:[{F:"a",L:"ytp-sb-subscribe",T:c,S:[{F:"div",L:"ytp-sb-text",S:[{F:"div",L:"ytp-sb-icon"},a]},b?{F:"div",L:"ytp-sb-count",Z:b}:""]}]});f&&g.ho(this.element,
"ytp-sb-classic");this.channelId=h;this.j=v}else{p=w.userDisplayName&&g.SF(w)&&!w.K("subscribe_tooltipkillswitch");g.X.call(this,{F:"div",Ca:["ytp-button","ytp-sb"],S:[{F:"div",L:"ytp-sb-subscribe",T:p?{title:g.HJ("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":uG(w),"data-tooltip-opaque":String(g.MF(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{F:"div",L:"ytp-sb-text",S:[{F:"div",L:"ytp-sb-icon"},a]},b?
{F:"div",L:"ytp-sb-count",Z:b}:""]},{F:"div",L:"ytp-sb-unsubscribe",T:p?{title:g.HJ("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":uG(w),"data-tooltip-opaque":String(g.MF(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{F:"div",L:"ytp-sb-text",S:[{F:"div",L:"ytp-sb-icon"},c]},d?{F:"div",L:"ytp-sb-count",Z:d}:""]}]});var y=this;this.channelId=h;this.j=v;var A=this.ya("ytp-sb-subscribe"),B=this.ya("ytp-sb-unsubscribe");
f&&g.ho(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var E=function(){var H=y.channelId;if(m||n){var I={c:H};if(q.R().K("embeds_botguard_with_subscribe_killswitch"))I="";else{var O;g.VM.isInitialized()&&(O=jGa(I));I=O||""}if(O=q.getVideoData())if(O=O.subscribeCommand){var L=q.Cm();L?(uM(L,O,{botguardResponse:I,feature:m}),q.Ka("SUBSCRIBE",H)):g.gu(Error("No innertube service available when updating subscriptions."))}else g.gu(Error("No subscribe command in videoData."));else g.gu(Error("No video data available when updating subscription."))}B.focus();
B.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")},G=function(){var H=y.channelId;
if(m||n){var I=q.getVideoData();uM(q.Cm(),I.unsubscribeCommand,{feature:m});q.Ka("UNSUBSCRIBE",H)}A.focus();A.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.P(A,"click",E);this.P(B,"click",G);this.P(A,"keypress",function(H){13===H.keyCode&&E(H)});
this.P(B,"keypress",function(H){13===H.keyCode&&G(H)});
this.P(q,"SUBSCRIBE",this.u);this.P(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.pc(),dP(this.tooltip),g.cf(this,g.$O(this.tooltip,A)),g.cf(this,g.$O(this.tooltip,B)))}else g.ho(A,"ytp-sb-disabled"),g.ho(B,"ytp-sb-disabled")}};
fP=function(a,b){g.X.call(this,{F:"div",L:"ytp-title-channel",S:[{F:"div",L:"ytp-title-beacon"},{F:"a",L:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:a.R().J,"aria-label":"{{channelLogoLabel}}"}},{F:"div",L:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{F:"div",L:"ytp-title-expanded-heading",S:[{F:"div",L:"ytp-title-expanded-title",S:[{F:"a",Z:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:a.R().J,tabIndex:"{{channelTitleFocusable}}"}}]},{F:"div",
L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.ya("ytp-title-channel");this.j=this.ya("ytp-title-channel-logo");this.C=this.ya("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.MF(this.api.R());a.rb(this.j,this,36925);this.D&&ZHa(this);this.P(a,"videodatachange",this.Fa);this.P(a,"videoplayerreset",this.Fa);this.Fa()};
ZHa=function(a){var b=a.api.R(),c=a.api.getVideoData();if(!b.Ld){var d=b.authUser?null:DFa(),e=new g.eP("Subscribe",null,"Subscribed",null,!0,!1,c.Ek,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.M(a,e);e.xa(a.C);a.api.rb(e.element,a,36926);e.hide();a.P(e.element,"click",function(){a.api.qb(e.element)});
var f=new cP(a.api);a.u=f;g.M(a,f);f.xa(a.C);f.hide();a.P(a.api,"SUBSCRIBE",function(){c.rk&&f.show()});
a.P(a.api,"UNSUBSCRIBE",function(){c.rk&&(f.hide(),YHa(f,!1))})}a.Ja("flyoutUnfocusable","true");
a.Ja("channelTitleFocusable","-1");b.isMobile||b.Ak?a.P(a.j,"click",function(h){$Ha(a)&&(h.preventDefault(),a.isExpanded()?a.NG():a.uH());a.api.qb(a.j)}):(a.P(a.channel,"mouseenter",a.uH),a.P(a.channel,"mouseleave",a.NG),a.P(a.channel,"focusin",a.uH),a.P(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.NG()}),a.P(a.j,"click",function(){a.api.qb(a.j)}));
a.B=new g.Zn(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Ta(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Ta(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.M(a,a.B);a.P(a.channel,aIa,function(){bIa(a)});
a.P(a.api,"onHideControls",a.nK);a.P(a.api,"appresize",a.nK);a.P(a.api,"fullscreentoggled",a.nK)};
bIa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
$Ha=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
cIa=function(a,b){var c={};a.api.R().ra&&g.bN(c,a.api.R().loaderUrl);return g.wi(b,g.aN(c,"emb_ch_name_ex"))};
gP=function(a,b,c,d,e,f){var h={F:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",L:"ytp-panel-header",S:[{F:"div",Ca:["ytp-panel-back-button-container"],S:[{T:{"aria-label":"Back to previous menu"},F:"button",Ca:["ytp-button",l]}]},{T:{tabindex:"0"},F:"span",Ca:[m],S:[c]}]};if(e){var p="ytp-panel-options";n.S.push({F:"button",Ca:["ytp-button",p],S:[d]})}h.S=[n]}d=!1;f&&(f={F:"div",L:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.ZK.call(this,
h);this.content=b;d&&h.S?b.xa(this.element,h.S.length-1):b.xa(this.element);this.uP=!1;this.tP=d;c&&(c=this.ya(l),m=this.ya(m),this.P(c,"click",this.JQ),this.P(m,"click",this.JQ),this.uP=!0,e&&(p=this.ya(p),this.P(p,"click",e)));b.subscribe("size-change",this.PQ,this);this.P(a,"fullscreentoggled",this.PQ);g.N(this.element,"ytp-panel-min-width-killswitch",a.R().K("player_panel_min_width_killswitch"));this.G=a};
dIa=function(a,b){var c=new g.ZK({F:"div",L:"ytp-multi-item-panel"});a.content.xa(c.element);b.xa(c.element);a.content=c;c.xa(a.element);g.M(a,c)};
g.hP=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.ZK({F:"div",L:"ytp-panel-menu",T:h});gP.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.M(this,this.menuItems)};
g.iP=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.EJ,a);a.items=[];g.oh(a.menuItems.element);a.menuItems.X("size-change")};
eIa=function(a,b){return b.priority-a.priority};
jP=function(a){var b=g.GN({"aria-haspopup":"true"});g.FN.call(this,b,a);this.Na("keydown",this.j)};
kP=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
lP=function(a,b){g.X.call(this,{F:"div",L:"ytp-user-info-panel",T:{"aria-label":"User info"},S:a.R().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{F:"div",L:"ytp-user-info-panel-icon",Z:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",S:[{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},Z:"{{watchingAsUsername}}"},{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Z:"{{watchingAsEmail}}"}]}]:[{F:"div",L:"ytp-user-info-panel-icon",
Z:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",S:[{F:"div",S:[{F:"text",T:{tabIndex:"{{userInfoFocusable}}"},Z:"Signed out"}]},{F:"div",L:"ytp-user-info-panel-login",S:[{F:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Z:a.R().Ld?"":"Sign in on YouTube"}]}]}]});this.Sa=a;this.j=b;a.R().authUser||a.R().Ld||(a=this.ya("ytp-user-info-panel-login"),this.P(a,"click",this.vV));this.closeButton=new g.X({F:"button",Ca:["ytp-collapse","ytp-button"],T:{title:"Close"},S:[g.bFa()]});this.closeButton.xa(this.element);
g.M(this,this.closeButton);this.P(window,"blur",this.hide);this.P(document,"click",this.uV);this.Fa()};
mP=function(a,b,c,d){g.hP.call(this,a);this.ib=c;this.Ec=d;this.getVideoUrl=new jP(6);this.dl=new jP(5);this.Zk=new jP(4);this.Ob=new jP(3);this.iA=new g.FN(g.GN({href:"{{href}}",target:this.G.R().J},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.FN(g.GN(),1,"Stats for nerds");this.qv=new g.ZK({F:"div",Ca:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},Z:"{{text}}"});this.jO=new gP(this.G,this.qv);this.KA=this.Tp=null;g.MF(this.G.R())&&(this.yk=new g.FN(g.GN(),
8,"Account"),g.M(this,this.yk),this.Bc(this.yk,!0),this.yk.Na("click",this.f2,this),a.rb(this.yk.element,this.yk,137682));this.G.R().Mk&&(this.Xj=new MN("Loop",7),g.M(this,this.Xj),this.Bc(this.Xj,!0),this.Xj.Na("click",this.Q0,this),a.rb(this.Xj.element,this.Xj,28661));g.M(this,this.getVideoUrl);this.Bc(this.getVideoUrl,!0);this.getVideoUrl.Na("click",this.G0,this);a.rb(this.getVideoUrl.element,this.getVideoUrl,28659);g.M(this,this.dl);this.Bc(this.dl,!0);this.dl.Na("click",this.H0,this);a.rb(this.dl.element,
this.dl,28660);g.M(this,this.Zk);this.Bc(this.Zk,!0);this.Zk.Na("click",this.F0,this);a.rb(this.Zk.element,this.Zk,28658);g.M(this,this.Ob);this.Bc(this.Ob,!0);this.Ob.Na("click",this.E0,this);g.M(this,this.iA);this.Bc(this.iA,!0);this.iA.Na("click",this.M1,this);g.M(this,this.showVideoInfo);this.Bc(this.showVideoInfo,!0);this.showVideoInfo.Na("click",this.g2,this);g.M(this,this.qv);this.qv.Na("click",this.t0,this);g.M(this,this.jO);b=document.queryCommandSupported&&document.queryCommandSupported("copy");
43<=Gb("Chromium")&&(b=!0);40>=Gb("Firefox")&&(b=!1);b&&(this.Tp=new g.X({F:"textarea",L:"ytp-html5-clipboard",T:{readonly:"",tabindex:"-1"}}),g.M(this,this.Tp),this.Tp.xa(this.element));var e;null==(e=this.yk)||HN(e,ZEa());var f;null==(f=this.Xj)||HN(f,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});HN(this.Ob,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",
T:{"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"}}]});HN(this.iA,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{"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"}}]});HN(this.showVideoInfo,VEa());this.P(a,"onLoopChange",this.onLoopChange);this.P(a,"videodatachange",this.onVideoDataChange);fIa(this);this.GK(this.G.getVideoData())};
oP=function(a,b){var c=!1;if(a.Tp){var d=a.Tp.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.ib.Ib():(a.qv.Sd(b,"text"),g.nP(a.ib,a.jO),DO(a.qv.element),a.Tp&&(a.Tp=null,fIa(a)));return c};
fIa=function(a){var b=!!a.Tp;a.Ob.Ig(b?"Copy debug info":"Get debug info");kP(a.Ob,!b);a.Zk.Ig(b?"Copy embed code":"Get embed code");kP(a.Zk,!b);a.getVideoUrl.Ig(b?"Copy video URL":"Get video URL");kP(a.getVideoUrl,!b);a.dl.Ig(b?"Copy video URL at current time":"Get video URL at current time");kP(a.dl,!b);HN(a.Zk,b?TEa():null);HN(a.getVideoUrl,b?gL():null);HN(a.dl,b?gL():null)};
g.pP=function(a,b){g.CN.call(this,a,{F:"div",Ca:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.C=null;this.rB=this.maxWidth=0;this.size=new g.Qg(0,0);this.Na("keydown",this.wV)};
gIa=function(a){var b=a.j[a.j.length-1];if(b){g.Il(a.element,a.maxWidth||"100%",a.rB||"100%");b.G.R().K("player_panel_min_width_killswitch")&&g.yl(b.element,"minWidth","250px");g.yl(b.element,"width","");g.yl(b.element,"height","");g.yl(b.element,"maxWidth","100%");g.yl(b.element,"maxHeight","100%");g.yl(b.content.element,"height","");var c=g.Jl(b.element);c.width+=1;c.height+=1;g.yl(b.element,"width",c.width+"px");g.yl(b.element,"height",c.height+"px");g.yl(b.element,"maxWidth","");g.yl(b.element,
"maxHeight","");var d=0;b.uP&&(d=b.ya("ytp-panel-header"),d=g.Jl(d).height);var e=0;b.tP&&(e=b.ya("ytp-panel-footer"),g.yl(e,"width",c.width+"px"),e=g.Jl(e).height);g.yl(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.yl(b.element,"width",c.width+"px")));a.size=c}};
g.nP=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);qP(a,c,b)};
g.rP=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];qP(a,b,c,!0)}};
qP=function(a,b,c,d){hIa(a);b&&(b.unsubscribe("size-change",a.Zw,a),b.unsubscribe("back",a.Ti,a));c.subscribe("size-change",a.Zw,a);c.subscribe("back",a.Ti,a);if(a.tb){g.ho(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.xa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;gIa(a);g.Il(a.element,e);a.C=new g.Zn(function(){iIa(a,b,c,d)},20,a);
a.C.start()}else c.xa(a.element),b&&b.detach()};
iIa=function(a,b,c,d){a.C.dispose();a.C=null;g.ho(a.element,"ytp-popup-animating");d?(g.ho(b.element,"ytp-panel-animate-forward"),g.jo(c.element,"ytp-panel-animate-back")):(g.ho(b.element,"ytp-panel-animate-back"),g.jo(c.element,"ytp-panel-animate-forward"));g.Il(a.element,a.size);a.I=new g.Zn(function(){g.jo(a.element,"ytp-popup-animating");b.detach();g.ko(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
hIa=function(a){a.C&&g.ao(a.C);a.I&&g.ao(a.I)};
g.sP=function(a,b,c){g.pP.call(this,a);this.qa=b;this.Ec=c;this.B=new g.YD(this);this.W=new g.Zn(this.D2,1E3,this);this.Y=this.D=null;g.M(this,this.B);g.M(this,this.W);a.rb(this.element,this,28656);g.ho(this.element,"ytp-contextmenu");jIa(this);this.hide()};
jIa=function(a){g.bz(a.B);if("gvn"!==a.G.R().playerStyle){var b=a.G.Za();a.B.P(b,"contextmenu",a.o0);a.B.P(b,"touchstart",a.yV,null,!0);a.B.P(b,"touchmove",a.rR,null,!0);a.B.P(b,"touchend",a.rR,null,!0)}};
kIa=function(a){a.G.isFullscreen()?g.AN(a.G,a.element,10):a.xa(document.body)};
g.tP=function(a,b,c){c=void 0===c?240:c;g.X.call(this,{F:"button",Ca:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.MF(a.R()))},S:[{F:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{F:"div",L:"ytp-copylink-title",Z:"Copy link",T:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.pc();b=a.R();dP(this.tooltip);g.N(this.element,"ytp-show-copylink-title",g.MF(b)&&!g.XF(b));a.rb(this.element,this,86570);this.Na("click",
this.onClick);this.P(a,"videodatachange",this.Fa);this.P(a,"videoplayerreset",this.Fa);this.P(a,"appresize",this.Fa);this.Fa();g.cf(this,g.$O(this.tooltip,this.element))};
lIa=function(a){a.Ja("icon",bL());if(a.api.R().isMobile)uP(a.tooltip,a.element,"Link copied to clipboard");else{a.Ja("title-attr","Link copied to clipboard");vP(a.tooltip);uP(a.tooltip,a.element);var b=a.Na("mouseleave",function(){a.uc(b);a.Fa();a.tooltip.Nj()})}};
mIa=function(a,b){return g.z(function(c){if(1==c.j)return g.ra(c,2),g.x(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.va(c);var d=c.return,e=!1,f=g.mh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Wu){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
wP=function(){g.X.call(this,{F:"div",L:"ytp-doubletap-ui",S:[{F:"div",Ca:["ytp-seek-info-container","ytp-seek-static-circle"],S:[{F:"div",L:"ytp-seek-arrows-container",S:[{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"}]},{F:"div",L:"ytp-seek-tooltip",S:[{F:"div",L:"ytp-chapter-seek-text",Z:"{{chapterSeekText}}"},{F:"div",L:"ytp-seek-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.u=new g.Zn(this.show,10,this);this.j=new g.Zn(this.hide,700,this);
g.M(this,this.u);g.M(this,this.j);this.hide()};
xP=function(a){g.X.call(this,{F:"div",L:"ytp-doubletap-ui-legacy",S:[{F:"div",L:"ytp-doubletap-fast-forward-ve"},{F:"div",L:"ytp-doubletap-rewind-ve"},{F:"div",L:"ytp-doubletap-static-circle",S:[{F:"div",L:"ytp-doubletap-ripple"}]},{F:"div",L:"ytp-doubletap-overlay-a11y"},{F:"div",L:"ytp-doubletap-seek-info-container",S:[{F:"div",L:"ytp-doubletap-arrows-container",S:[{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"}]},{F:"div",
L:"ytp-doubletap-tooltip",S:[{F:"div",L:"ytp-chapter-seek-text-legacy",Z:"{{seekText}}"},{F:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.Zn(this.show,10,this);this.u=new g.Zn(this.hide,700,this);this.j=this.ya("ytp-doubletap-static-circle");g.M(this,this.B);g.M(this,this.u);this.hide();this.C=this.ya("ytp-doubletap-fast-forward-ve");this.D=this.ya("ytp-doubletap-rewind-ve");this.G.rb(this.C,this,28240);this.G.rb(this.D,this,28239);this.G.Ta(this.C,!0);this.G.Ta(this.D,
!0)};
nIa=function(a,b){b=g.HJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ja("seekTime",b)};
yP=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
zP=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};
oIa=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};
pIa=function(a,b){b=zP(a,b)+1;return b<a.length?b:-1};
qIa=function(a,b){return zP(a,b)-1};
rIa=function(a,b){return new g.sA(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.BP=function(a,b,c,d,e,f,h,l){g.YD.call(this);var m=this;this.api=a;this.contextMenu=c;this.Xd=d;this.Ec=e;this.j=f;this.C=h;this.xc=l;this.B=new g.Zn(function(){sIa(m,!1)},1E3);
this.u="";g.M(this,this.B);this.P(b,"mousedown",function(){AP(m,!1)});
this.P(c.element,"mousedown",function(){AP(m,!1)});
this.P(b,"keydown",this.lP);this.P(c.element,"keydown",this.lP);this.P(b,"keyup",this.mP);this.P(c.element,"keyup",this.mP)};
AP=function(a,b){g.N(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.N(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
DP=function(a,b,c,d){var e=g.jO(a.api.ob());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.CP.length;h++){var l=g.CP[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);sIa(a,!0);a.B.start()}};
tIa=function(a,b){a.api.cg();if(g.W(a.api.zb(),4)){var c=a.api.getVideoData().u;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
sIa=function(a,b){g.jO(a.api.ob())&&a.api.setOption("captions","sampleSubtitles",b)};
EP=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-button","ytp-overflow-button"],T:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{F:"div",L:"ytp-overflow-icon",S:[{F:"svg",T:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{F:"path",T:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.G=a;this.j=b;this.visible=!1;this.tooltip=this.j.pc();
a.rb(this.element,this,16499);this.P(a,"appresize",this.Fa);this.P(a,"fullscreentoggled",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);this.Fa();g.cf(this,g.$O(this.tooltip,this.element));this.Na("click",function(){a.qb(d.element);DN(c,d.element,!1)});
this.P(c.closeButton,"click",function(){d.focus()})};
FP=function(a,b){g.CN.call(this,a,{F:"div",L:"ytp-overflow-panel",T:{id:UK(),role:"dialog"},S:[{F:"div",L:"ytp-overflow-panel-content",S:[{F:"div",L:"ytp-overflow-panel-action-buttons",Z:"{{buttons}}"}]},{F:"button",Ca:["ytp-overflow-panel-close","ytp-button"],T:{title:"Close"},S:[g.eL()]}]},250);this.actionButtons=[];this.tooltip=b.pc();this.j=this.ya("ytp-overflow-panel-content");this.closeButton=this.ya("ytp-overflow-panel-close");this.P(this.closeButton,"click",this.Ib);g.cf(this,g.$O(this.tooltip,
this.closeButton));this.Na("click",this.zV);this.P(a,"videoplayerreset",this.hide);this.P(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
GP=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ja("buttons",a.actionButtons))};
uIa=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.lc(b)};
HP=function(a,b,c){var d=g.XN(b,c),e=a.R(),f=d.If("default.jpg");g.X.call(this,{F:"a",Ca:["ytp-video-menu-item","ytp-button"],T:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},S:[{F:"div",L:"ytp-video-menu-item-index",Z:String(c+1)},{F:"div",L:"ytp-video-menu-item-now-playing",Z:"\u25b6"},{F:"div",L:"ytp-video-menu-item-thumbnail",T:{style:f?"background-image: url("+f+");":void 0}},{F:"div",L:"ytp-video-menu-item-title",Z:d.title},{F:"div",
L:"ytp-video-menu-item-author",Z:d.author}]});this.api=a;this.index=c;this.Na("click",this.onClick)};
IP=function(a){g.CN.call(this,a,{F:"div",L:"ytp-playlist-menu",T:{role:"dialog",id:UK()},S:[{F:"div",L:"ytp-playlist-menu-header",S:[{F:"div",L:"ytp-playlist-menu-title",S:[a.R().B?{F:"span",L:"ytp-playlist-menu-title-name",Z:"{{title}}"}:{F:"a",L:"ytp-playlist-menu-title-name",T:{href:"{{playlisturl}}"},Z:"{{title}}"},{F:"button",Ca:["ytp-playlist-menu-close","ytp-button"],T:{"aria-label":"Close"},S:[g.eL()]}]},{F:"div",L:"ytp-playlist-menu-subtitle",Z:"{{subtitle}}"}]},{F:"div",L:"ytp-playlist-menu-items",
T:{role:"menu"}}]},250);this.api=a;this.selected=this.C=this.playlist=null;this.items=this.ya("ytp-playlist-menu-items");this.B=new g.YD(this);this.j=[];var b=this.ya("ytp-playlist-menu-close");this.P(b,"click",this.Ib);b=this.ya("ytp-playlist-menu-title-name");a.R().B||this.P(b,"click",this.C2);g.M(this,this.B);this.hide()};
JP=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-playlist-menu-button","ytp-button"],T:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{F:"div",L:"ytp-playlist-menu-button-icon",S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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"}}]}]},{F:"div",L:"ytp-playlist-menu-button-text",Z:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.pc();a.rb(this.element,this,70344);this.P(a,"videodatachange",this.j);this.P(a,"onPlaylistUpdate",this.j);this.P(a,"presentingplayerstatechange",this.Fa);this.P(a,"appresize",this.Fa);this.hide();this.j();g.cf(this,g.$O(this.tooltip,this.element));this.Na("click",function(){a.qb(d.element);DN(c,d.element,!1)})};
KP=function(a,b,c){g.X.call(this,{F:"div",L:"ytp-promotooltip-wrapper",S:[{F:"div",L:"ytp-promotooltip-container",S:[{F:"div",L:"ytp-promotooltip-content",S:[{F:"div",L:"ytp-promotooltip-title",Z:"{{title}}"},{F:"div",L:"ytp-promotooltip-details",Z:"{{details}}"}]},{F:"div",L:"ytp-promotooltip-buttons",S:[{F:"div",L:"ytp-promotooltip-dismiss-button",Z:"{{dismissButtonText}}",T:{tabindex:"0"}},{F:"div",L:"ytp-promotooltip-accept-button",Z:"{{acceptButtonText}}",T:{tabindex:"0","aria-haspopup":"true"}}]}]},
{F:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.G=c;this.j=this.B=null;this.title=this.ya("ytp-promotooltip-title");this.details=this.ya("ytp-promotooltip-details");this.acceptButton=this.ya("ytp-promotooltip-accept-button");this.dismissButton=this.ya("ytp-promotooltip-dismiss-button");this.u=this.D=!1;this.C=!0;this.V=this.I=this.N=!1;g.YK(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.G.Ai(this.element,this,!0),this.G.xk(this.element,a);this.P(c,
"onShowControls",this.s0);this.P(c,"onHideControls",this.r0);this.P(c,"resize",this.xb);this.P(this.acceptButton,"click",this.C_);this.P(this.dismissButton,"click",this.y0);this.P(document,"click",this.AV)};
vIa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.eh("ytp-chrome-bottom"),d=g.eh("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.N=!(null==d||!d.contains(b));return b};
NP=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Kl(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.VK({F:"span",L:"ytp-promotooltip-details-icon",
S:[wIa[a.tooltipRenderer.targetId]]});g.M(a,h);for(var l=[],m=g.r(d),n=m.next();!n.done;n=m.next())n=new g.VK({F:"span",L:"ytp-promotooltip-details-component",Z:n.value}),g.M(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.oh(a.details),e=g.r(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Kl(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,v;(null==e?0:null==(p=e.buttonRenderer)?0:null==(q=p.text)?0:null==(v=q.runs)?0:v.length)&&e.buttonRenderer.text.runs[0].text&&(a.update({acceptButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.Kl(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var w,y,A;(null==p?0:null==(w=p.buttonRenderer)?0:null==(y=w.text)?0:null==(A=y.runs)?0:A.length)&&p.buttonRenderer.text.runs[0].text&&
(a.update({dismissButtonText:p.buttonRenderer.text.runs[0].text.toString()}),q=!0);g.Kl(a.dismissButton,q)}c&&(a.B=c);a.j=vIa(a);a.I=!1;a.G.R().K("web_player_hide_nitrate_promo_tooltip")||g.YK(a,!0);LP(a);a.V||(a.V=!0,MP(a,0));a.u&&a.G.Ta(a.element,a.tb)}};
OP=function(a){g.YK(a,!1);a.u&&a.G.Ta(a.element,a.tb)};
MP=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;b=null==(f=g.av(e,xIa))?void 0:f.feedbackToken;e&&b&&(f={feedbackTokens:[b]},a=a.G.Cm(),(null==a?0:GFa(e,a.nH))&&uM(a,e,f))}};
yIa=function(a){var b,c,d,e,f,h=(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 h||b};
LP=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.G.wf())g.YK(a,!1);else if(b=g.Jl(a.j),b.width&&b.height){a.J.nt(a.element,a.j);var d=a.G.Za().getPlayerSize().height;c=g.Jl(a.ya("ytp-promotooltip-container")).height;var e=d-c-b.height-12;a.C||(e-=d-a.J.Sj().height);a.element.style.top=e+"px";d=a.ya("ytp-promotooltip-pointer");e=g.Hl(a.j,a.G.getRootNode());var f=Number(a.element.style.left.replace(/[^\d\.]/g,
""));a=a.G.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.YK(a,!1)};
PP=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-replay-button","ytp-button"],T:{title:"Replay"},S:[g.kL()]});this.G=a;this.P(a,"presentingplayerstatechange",this.onStateChange);this.Na("click",this.onClick,this);this.Qc(a.zb());g.$O(b.pc(),this.element)};
g.QP=function(a,b,c,d){d=void 0===d?240:d;g.X.call(this,{F:"button",Ca:["ytp-button","ytp-share-button"],T:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.MF(a.R()))},S:[{F:"div",L:"ytp-share-icon",Z:"{{icon}}"},{F:"div",L:"ytp-share-title",Z:"Share"}]});this.api=a;this.j=b;this.u=c;this.B=d;this.visible=!1;this.tooltip=this.j.pc();b=a.R();a.rb(this.element,this,28664);this.Na("click",this.onClick);this.P(a,"videodatachange",this.Fa);this.P(a,"videoplayerreset",
this.Fa);this.P(a,"appresize",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);this.Fa();g.N(this.element,"ytp-show-share-title",g.MF(b)&&!g.XF(b));g.cf(this,g.$O(this.tooltip,this.element))};
g.RP=function(a,b){var c=UK(),d=a.R();c={F:"div",L:"ytp-share-panel",T:{id:UK(),role:"dialog","aria-labelledby":c},S:[{F:"div",L:"ytp-share-panel-inner-content",S:[{F:"div",L:"ytp-share-panel-title",T:{id:c},Z:"Share"},{F:"a",Ca:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:d.J,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Z:"{{linkText}}"},{F:"label",L:"ytp-share-panel-include-playlist",S:[{F:"input",L:"ytp-share-panel-include-playlist-checkbox",T:{type:"checkbox",
checked:!0}},"Include playlist"]},{F:"div",L:"ytp-share-panel-loading-spinner",S:[CO()]},{F:"div",L:"ytp-share-panel-service-buttons",Z:"{{buttons}}"},{F:"div",L:"ytp-share-panel-error",Z:"An error occurred while retrieving sharing information. Please try again later."}]},{F:"button",Ca:["ytp-share-panel-close","ytp-button"],T:{title:"Close"},S:[g.eL()]}]};g.CN.call(this,a,c,250);this.api=a;this.tooltip=b.pc();this.j=[];this.D=this.ya("ytp-share-panel-inner-content");this.closeButton=this.ya("ytp-share-panel-close");
this.P(this.closeButton,"click",this.Ib);g.cf(this,g.$O(this.tooltip,this.closeButton));this.C=this.ya("ytp-share-panel-include-playlist-checkbox");this.P(this.C,"click",this.Fa);this.B=this.ya("ytp-share-panel-link");g.cf(this,g.$O(this.tooltip,this.B));this.Na("click",this.BV);this.P(a,"videoplayerreset",this.hide);this.P(a,"fullscreentoggled",this.onFullscreenToggled);this.P(a,"onLoopRangeChange",this.PZ);this.hide()};
AIa=function(a,b){zIa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Wo:e.Wo},f++){e.Wo=c[f];a:switch(e.Wo.img||e.Wo.iconId){case "facebook":var h={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.X({F:"a",Ca:["ytp-share-panel-service-button","ytp-button"],T:{href:e.Wo.url,target:"_blank",title:e.Wo.sname||e.Wo.serviceName},S:[h]}),h.Na("click",function(m){return function(n){if(g.YL(n)){var p=m.Wo.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var v=q;v||(v={});q=window;var w=p instanceof kg?p:g.mg("undefined"!=typeof p.href?p.href:String(p));var y=void 0!==self.crossOriginIsolated,
A="strict-origin-when-cross-origin";window.Request&&(A=(new Request("/")).referrerPolicy);var B="unsafe-url"===A;A=v.noreferrer;if(y&&A){if(B)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");A=!1}p=v.target||p.target;y=[];for(var E in v)switch(E){case "width":case "height":case "top":case "left":y.push(E+"="+v[E]);break;case "target":case "noopener":case "noreferrer":break;default:y.push(E+"="+(v[E]?1:0))}E=y.join(",");Lb()&&
q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(v=g.mh("A"),g.zg(v,w),v.target=p,A&&(v.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,q,1),v.dispatchEvent(w),q={}):A?(q=Ag("",q,p,E),w=g.lg(w),q&&(g.rG&&g.ib(w,";")&&(w="'"+w.replace(/'/g,"%27")+"'"),q.opener=null,""===w&&(w="javascript:''"),w=g.yg(g.fg("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Vg(w)+'">'),(v=q.document)&&
v.write&&(v.write(g.wg(w)),v.close()))):((q=Ag(w,q,p,E))&&v.noopener&&(q.opener=null),q&&v.noreferrer&&(q.opener=null));q&&(q.opener||(q.opener=window),q.focus());g.Gx(n)}}}(e)),g.cf(h,g.$O(a.tooltip,h.element)),a.j.push(h),d++)}var l=b.more||b.moreLink;
b=new g.X({F:"a",Ca:["ytp-share-panel-service-button","ytp-button"],S:[{F:"span",L:"ytp-share-panel-service-button-more",S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{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"}}]}]}],T:{href:l,target:"_blank",title:"More"}});b.Na("click",function(m){g.BO(l,a.api,m)&&a.api.Ka("SHARE_CLICKED")});
g.cf(b,g.$O(a.tooltip,b.element));a.j.push(b);a.Ja("buttons",a.j)};
zIa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.af(c);a.j=[]};
UP=function(a,b,c){c=void 0===c?!0:c;g.X.call(this,{F:"div",L:"ytp-suggested-action"});var d=this;this.G=a;this.eb=b;this.Ra=this.J=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ha=new g.Zn(function(){d.badge.element.style.width=""},200,this);
this.W=new g.Zn(function(){SP(d);TP(d)},200,this);
this.dismissButton=new g.X({F:"button",Ca:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.M(this,this.dismissButton);this.I=new g.X({F:"div",L:"ytp-suggested-action-badge-expanded-content-container",S:[{F:"label",L:"ytp-suggested-action-badge-title",Z:"{{badgeLabel}}"},this.dismissButton]});g.M(this,this.I);this.badge=new g.X({F:"button",Ca:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{F:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.M(this,this.badge);this.badge.xa(this.element);this.N=new g.JL(this.badge,250,!1,100);g.M(this,this.N);this.qa=new g.JL(this.I,250,!1,100);g.M(this,this.qa);this.La=new g.Xn(this.x4,null,this);g.M(this,this.La);this.Y=new g.Xn(this.aY,null,this);g.M(this,this.Y);g.M(this,this.Ha);g.M(this,this.W);this.G.Ai(this.badge.element,this.badge,!0);this.G.Ai(this.dismissButton.element,this.dismissButton,!0);this.P(this.G,"onHideControls",function(){d.j=!1;TP(d);SP(d);d.Dj()});
this.P(this.G,"onShowControls",function(){d.j=!0;TP(d);SP(d);d.Dj()});
this.P(this.badge.element,"click",this.nJ);this.P(this.dismissButton.element,"click",this.oJ);this.P(this.G,"pageTransition",this.CV);this.P(this.G,"appresize",this.Dj);this.P(this.G,"fullscreentoggled",this.C0);this.P(this.G,"cardstatechange",this.g0);this.P(this.G,"annotationvisibility",this.A5,this);this.P(this.G,"offlineslatestatechange",this.B5,this)};
SP=function(a){g.N(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)};
TP=function(a,b){var c=a.J||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.Y.stop(),a.Ha.stop(),a.La.start()):(g.YK(a.I,a.expanded),g.N(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),BIa(a))};
BIa=function(a){a.C&&a.G.Ta(a.badge.element,a.uA());a.D&&a.G.Ta(a.dismissButton.element,a.uA()&&(a.J||a.j||!a.u))};
CIa=function(a){var b=a.text||"";g.th(g.eh("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ua?a.Ua:"")};
DIa=function(a,b){b?a.D&&a.G.qb(a.dismissButton.element):a.C&&a.G.qb(a.badge.element)};
VP=function(a,b){UP.call(this,a,b);var c=this;this.V=this.va=this.Ea=!1;this.P(this.G,g.uA("shopping_overlay_visible"),function(){c.zf(!0)});
this.P(this.G,g.vA("shopping_overlay_visible"),function(){c.zf(!1)});
this.P(this.G,g.uA("shopping_overlay_expanded"),function(){c.J=!0;TP(c)});
this.P(this.G,g.vA("shopping_overlay_expanded"),function(){c.J=!1;TP(c)});
this.P(this.G,"changeProductsInVideoVisibility",this.t1);this.P(this.G,"videodatachange",this.onVideoDataChange);this.P(this.G,"paidcontentoverlayvisibilitychange",this.j1)};
WP=function(a){a.G.Af("shopping_overlay_visible");a.G.Af("shopping_overlay_expanded")};
XP=function(a){g.CN.call(this,a,{F:"button",Ca:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{F:"div",L:"ytp-skip-intro-button-text",Z:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Zn(function(){b.hide()},5E3);
this.Kd=this.bf=NaN;g.M(this,this.j);this.I=function(){b.show()};
this.D=function(){b.hide()};
this.C=function(){var c=b.G.getCurrentTime();c>b.bf/1E3&&c<b.Kd/1E3&&b.show()};
this.P(this.G,"videodatachange",function(c,d){b.Qp(c,d)});
this.P(this.element,"click",function(){b.G.seekTo(b.Kd/1E3)});
this.hide()};
YP=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-airplay-button","ytp-button"],T:{title:"AirPlay"},Z:"{{icon}}"});this.G=a;this.Na("click",this.onClick);this.P(a,"airplayactivechange",this.Fa);this.P(a,"airplayavailabilitychange",this.Fa);this.Fa();g.cf(this,g.$O(b.pc(),this.element))};
ZP=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-button"],T:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{F:"div",L:"ytp-autonav-toggle-button-container",S:[{F:"div",L:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.G=a;this.u=[];this.j=!1;this.isChecked=!0;a.rb(this.element,this,113681);this.P(a,"presentingplayerstatechange",this.Fx);this.Na("click",this.onClick);this.G.R().K("web_player_autonav_toggle_always_listen")&&EIa(this);
this.tooltip=b.pc();g.cf(this,g.$O(b.pc(),this.element));this.Fx()};
EIa=function(a){a.u.push(a.P(a.G,"videodatachange",a.Fx));a.u.push(a.P(a.G,"videoplayerreset",a.Fx));a.u.push(a.P(a.G,"onPlaylistUpdate",a.Fx));a.u.push(a.P(a.G,"autonavchange",a.SM))};
FIa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ja("title",b);a.Ja("label",b);vP(a.tooltip)};
GIa=function(a){return a.G.R().K("web_player_autonav_use_server_provided_state")&&PH(a.Wc())};
g.aQ=function(a){g.X.call(this,{F:"div",L:"ytp-gradient-bottom"});this.j=g.mh("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.XF(a.R());g.$P(this,a.Za().getPlayerSize().height)};
g.$P=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){}}}};
bQ=function(a,b,c,d,e){g.X.call(this,{F:"div",L:"ytp-chapter-container",S:[{F:"button",Ca:["ytp-chapter-title","ytp-button"],S:[{F:"span",T:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Z:"\u2022"},{F:"div",L:"ytp-chapter-title-content",Z:"{{title}}",T:{title:e,"aria-label":e}},{F:"div",L:"ytp-chapter-title-chevron",S:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.G=a;this.C=
c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.N=this.ya("ytp-chapter-container");this.B=this.ya("ytp-chapter-title");this.V=this.ya("ytp-chapter-title-content");this.updateVideoData("newdata",this.G.getVideoData());this.P(a,"videodatachange",this.updateVideoData);this.P(this.N,"click",this.onClick);this.P(a,g.uA(d),this.Wb);this.P(a,"onLoopRangeChange",this.Wb);this.P(a,"innertubeCommand",this.onClickCommand);g.MF(this.G.R())||g.cf(this,g.$O(b.pc(),this.V))};
cQ=function(a,b,c){bQ.call(this,a,b,c,"chapterCueRange","View chapter")};
HIa=function(a,b,c,d,e){var f=b.Rs/b.rows,h=Math.min(c/(b.Az/b.columns),d/f),l=b.Az*h,m=b.Rs*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,v=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+v+"px/"+l+"px "+m+"px"};
g.dQ=function(a){g.X.call(this,{F:"div",L:"ytp-storyboard-framepreview",S:[{F:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.ya("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.YD(this);this.j=new g.JL(this,100);g.M(this,this.events);g.M(this,this.j);this.P(this.api,"presentingplayerstatechange",this.bd)};
eQ=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.P(a.api,"videodatachange",function(){eQ(a,a.api.Ii())}),a.events.P(a.api,"progresssync",a.Vd),a.events.P(a.api,"appresize",a.D)),a.B=NaN,fQ(a),a.j.show(200)):(c&&g.bz(a.events),a.j.hide(),a.j.stop())};
fQ=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.Za().getPlayerSize(),e=zH(b,d.width);c=IAa(b,e,c);c!==a.B&&(a.B=c,GAa(b,c,d.width),b=EAa(b,c,d.width),HIa(a.C,b,d.width,d.height))};
gQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-fullerscreen-edu-button","ytp-button"],S:[{F:"div",Ca:["ytp-fullerscreen-edu-text"],Z:"Scroll for details"},{F:"div",Ca:["ytp-fullerscreen-edu-chevron"],S:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Sa=a;this.B=b;this.j=new g.JL(this,250,void 0,100);this.C=this.u=!1;a.rb(this.element,this,61214);this.B=b;g.M(this,this.j);this.P(a,
"fullscreentoggled",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);this.Na("click",this.onClick);this.Fa()};
g.hQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-fullscreen-button","ytp-button"],T:{title:"{{title}}"},Z:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.$O(this.u.pc(),this.element);this.B=new g.Zn(this.pX,2E3,this);g.M(this,this.B);this.P(a,"fullscreentoggled",this.wk);this.P(a,"presentingplayerstatechange",this.Fa);this.Na("click",this.onClick);g.Wy()&&(b=this.G.Za(),this.P(b,Bra(),this.xJ),this.P(b,Zy(document),this.Eo));a.R().gb||a.R().I||this.disable();a.rb(this.element,this,
139117);this.Fa();this.wk(a.isFullscreen())};
iQ=function(a,b,c){bQ.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.P(a,g.vA("timedMarkerCueRange"),this.Wb);this.P(a,"updatemarkervisibility",this.updateVideoData)};
IIa=function(a){var b,c=null==(b=a.G.getVideoData())?void 0:b.Dd;if(c)for(a=a.C.Nc,c=g.r(c),b=c.next();!b.done;b=c.next())if(b=a[b.value])return b};
jQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[$Ea()]});this.G=a;this.visible=!1;this.Na("click",this.onClick);this.P(a,"fullscreentoggled",this.Fa);this.Ja("title",EO(a,"Miniplayer","i"));g.cf(this,g.$O(b.pc(),this.element));a.rb(this.element,this,62946);this.Fa()};
kQ=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-multicam-button","ytp-button"],T:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.G=a;this.j=!1;this.u=new g.Zn(this.B,400,this);this.tooltip=b.pc();dP(this.tooltip);g.M(this,this.u);this.Na("click",function(){DN(c,d.element,!1)});
this.P(a,"presentingplayerstatechange",function(){d.Fa(!1)});
this.P(a,"videodatachange",this.onVideoDataChange);this.Fa(!0);g.cf(this,g.$O(this.tooltip,this.element))};
lQ=function(a){g.CN.call(this,a,{F:"div",L:"ytp-multicam-menu",T:{role:"dialog"},S:[{F:"div",L:"ytp-multicam-menu-header",S:[{F:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{F:"button",Ca:["ytp-multicam-menu-close","ytp-button"],T:{"aria-label":"Close"},S:[g.eL()]}]}]},{F:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.YD(this);this.items=this.ya("ytp-multicam-menu-items");this.j=[];g.M(this,this.B);a=this.ya("ytp-multicam-menu-close");this.P(a,"click",this.Ib);this.hide()};
mQ=function(){g.K.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Xn(this.j,null,this);g.M(this,this.delay)};
JIa=function(a,b){if("path"===b.F)return b.T.d;if(b.S)for(var c=0;c<b.S.length;c++){var d=b.S[c];if(d&&"string"!==typeof d&&(d=JIa(a,d)))return d}};
MIa=function(a,b,c){c=JIa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=UK();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=KIa(e),m=KIa(c);nQ(a,function(n){d.setAttribute("d",LIa(l,m,n))},200)};
nQ=function(a,b,c){a.u=b;a.startTime=(0,g.U)();a.duration=c;a.j()};
KIa=function(a){var b=[];a=a.match(NIa);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};
LIa=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.oQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-mute-button","ytp-button"],T:a.R().va?{title:"{{title}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Z:"{{icon}}"});this.G=a;this.j=null;this.C=this.N=this.D=this.W=NaN;this.Y=this.I=null;this.B=[];this.u=[];this.visible=!1;this.J=null;var c=this.G.R();this.Ja("icon",mL());this.tooltip=b.pc();this.j=new g.VK({F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"defs",S:[{F:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},
S:[{F:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{F:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{F:"path",L:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{F:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"},S:[{F:"path",L:"ytp-svg-volume-animation-mover",T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{F:"path",Nb:!0,Ca:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"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"}},{F:"path",Nb:!0,Ca:["ytp-svg-fill","ytp-svg-volume-animation-hider"],T:{"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.M(this,this.j);this.I=this.j.ya("ytp-svg-volume-animation-speaker");this.Y=this.I.getAttribute("d");this.B=g.dh("ytp-svg-volume-animation-mover",this.j.element);this.u=
g.dh("ytp-svg-volume-animation-hider",this.j.element);this.qa=new mQ;g.M(this,this.qa);this.V=new mQ;g.M(this,this.V);this.Na("click",this.Y0);this.P(a,"appresize",this.TM);this.P(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.va)g.cf(this,g.$O(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.CN(a,{F:"span",Ca:["ytp-popup","ytp-generic-popup"],T:{tabindex:"0"},S:[e[0],{F:"a",T:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.J},Z:e[2]},e[4]]},100,!0);g.M(this,d);d.hide();d.subscribe("show",function(f){b.xv(d,f)});
g.AN(a,d.element,4)}this.message=d;a.rb(this.element,this,28662);this.TM(a.Za().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
QIa=function(a,b){a.W=b;var c=a.Y;b&&(c+=LIa(OIa,PIa,b));a.I.setAttribute("d",c)};
RIa=function(a,b){a.N=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=mL():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.J&&(a.Ja("icon",e),a.J=e)};
pQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-pip-button","ytp-button"],T:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[$Ea()]});this.G=a;this.Ja("title","Picture in Picture");this.Na("click",this.onClick);g.cf(this,g.$O(b.pc(),this.element))};
g.qQ=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-play-button","ytp-button"],T:{title:"{{title}}"},Z:"{{icon}}"});this.G=a;this.j=null;this.transition=new mQ;this.tooltip=b.pc();g.M(this,this.transition);this.u=!!c;a.rb(this.element,this,36842);a.Ta(this.element,!0);this.P(a,"fullscreentoggled",this.onVideoDataChange);this.P(a,"presentingplayerstatechange",this.onStateChange);this.P(a,"videodatachange",this.onVideoDataChange);this.Qc(a.zb());this.Na("click",this.Sw,this);g.cf(this,g.$O(b.pc(),
this.element))};
SIa=function(a){switch(a){case 1:return jL();case 2:return YEa();case 3:return g.kL();case 4:return cFa();default:return null}};
g.sQ=function(a,b,c){g.X.call(this,{F:"a",Ca:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],T:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},S:[c?hL():aFa()]});var d=this;this.G=a;this.j=c;this.playlist=this.videoData=null;this.I=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.pc();c?a.rb(this.element,this,6193):a.rb(this.element,
this,6194);this.P(a,"fullscreentoggled",this.onVideoDataChange);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"onPlaylistUpdate",this.onVideoDataChange);this.P(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.P(a,"appresize",this.HF);this.P(a,"mdxpreviousnextchange",function(){rQ(d);d.HF()});
this.onVideoDataChange()};
TIa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
UIa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
VIa=function(a){var b=wN(a.G.ob());return b?a.j?b.hasNext():b.Lm():!1};
rQ=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.xN(a.G)&&(!a.j||c);var d=a.j&&g.BN(a.G),e=VIa(a),f=a.j&&5===a.G.getPresentingPlayerType(),h=EO(a.G,"Next","SHIFT+n"),l=EO(a.G,"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.XN(a.playlist,a.j?hHa(a.playlist):iHa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.G.R().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.XL(m.lengthSeconds):null;b.preview=m.If("mqdefault.jpg")}b.title=a.j?h:l}else if(d){if(l=null==(m=a.videoData)?void 0:g.AI(m))b.url=l.Hm(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.XL(l.lengthSeconds):null,b.preview=l.If("mqdefault.jpg");b.title=h}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.$O(a.tooltip,a.element),a.D=a.Na("click",a.onClick,a)):a.u&&
(a.u(),a.u=null,a.uc(a.D),a.D=null);vP(a.tooltip)};
tQ=function(a,b,c){g.X.call(this,{F:"div",L:"ytp-fine-scrubbing",S:[{F:"div",L:"ytp-fine-scrubbing-thumbnails",T:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}},{F:"div",T:{"aria-hidden":"true"},L:"ytp-fine-scrubbing-cursor"},{F:"div",L:"ytp-fine-scrubbing-seek-time",T:{"aria-hidden":"true"},Z:"{{seekTime}}"},{F:"div",
L:"ytp-fine-scrubbing-play",S:[jL()],T:{title:"Play from this position",role:"button"}},{F:"div",L:"ytp-fine-scrubbing-dismiss",S:[g.eL()],T:{title:"Exit precise seeking",role:"button"}}]});this.api=a;this.C=c;this.B=this.ya("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.ya("ytp-fine-scrubbing-dismiss");this.playButton=this.ya("ytp-fine-scrubbing-play");this.thumbnails=[];this.j=[];this.Y=void 0;this.N=NaN;this.va=this.J=this.u=this.I=0;this.D=[];this.interval=this.frameCount=0;this.scale=
1;this.qa=0;this.isEnabled=this.W=!1;g.cf(this,g.$O(b,this.dismissButton));g.cf(this,g.$O(b,this.playButton));this.V=new g.gz(this.B,!0);this.V.subscribe("dragstart",this.JF,this);this.V.subscribe("dragmove",this.IF,this);this.V.subscribe("dragend",this.FV,this);this.P(a,"SEEK_COMPLETE",this.mw);this.B.addEventListener("keydown",function(){});
g.M(this,this.V);this.api.rb(this.element,this,153154);this.api.rb(this.B,this,152789);this.api.rb(this.dismissButton,this,153156);this.api.rb(this.playButton,this,153155)};
uQ=function(a){a.N=NaN;a.J=0;a.I=a.u};
XIa=function(a){var b=a.api.Ii();if(b){var c=160*a.scale,d=90*a.scale,e=zH(b,160*a.scale);if(b=b.levels[e]){if(!a.D.length){e=[];for(var f=AH(b,b.Cu()),h=b.columns*b.rows,l=b.frameCount,m=0;m<=f;m++)for(var n=l<h?Math.ceil(l/b.columns):b.rows,p=0;p<b.rows;p++){var q=l<b.columns?l:b.columns,v={url:b.pe(m),column:0,columns:q,row:p,rows:n,Az:b.width*q,Rs:b.height*n};e.push(v);l-=q;if(1>=l)break}a.D=e;a.frameCount=b.jB();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)e=
void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.length<a.D.length;)e=new WIa,a.thumbnails.push(e),e.xa(a.B),g.M(a,e);for(e=0;e<a.D.length;e++)f=a.thumbnails[e].element,h=a.D[e],l=h.Rs/h.rows,m=d/l,f.style.background="url("+h.url+") 0 "+-h.row*h.Rs/h.rows*m+"px/"+c*b.columns+"px "+l*h.rows*m+"px",f.style.width=c*h.columns+"px",f.style.height=d+"px";vQ(a,a.api.getCurrentTime());for(c=a.api.getVideoData().oi;a.j.length>c.length;)d=void 0,null==(d=a.j.pop())||d.dispose();for(;a.j.length<
c.length;)d=new wQ,a.j.push(new wQ),g.M(a,d);c=g.r(c.entries());for(d=c.next();!d.done;d=c.next())e=g.r(d.value),d=e.next().value,e=e.next().value,a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.yl(a.j[d].element,"transform","translateX("+e%b.rows*160*a.scale+"px)"),a.j[d].xa(a.thumbnails[f].element);a.W=!0}}};
vQ=function(a,b){a.update({seekTime:g.XL(b)});var c=160*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.C/2:-b*c/a.interval-c/2+a.C/2;b=g.Cg(b,YIa(a),a.C/2);a.I=b;a.u=a.I;g.yl(a.B,"transform","translateX("+a.I+"px)")};
ZIa=function(a,b){var c=160*a.scale;b-=a.C/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
YIa=function(a){return-((a.B.offsetWidth||160*(a.frameCount-1)*a.scale)-a.C/2)};
WIa=function(){g.X.call(this,{F:"div",L:"ytp-fine-scrubbing-thumbnail"})};
wQ=function(){g.X.call(this,{F:"div",L:"ytp-fine-scrubbing-chapter-title",S:[{F:"div",L:"ytp-fine-scrubbing-chapter-title-content",Z:"{{chapterTitle}}"}]})};
$Ia=function(a){g.X.call(this,{F:"div",L:"ytp-heat-map-chapter",S:[{F:"svg",L:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{F:"defs",S:[{F:"clipPath",T:{id:"{{id}}"},S:[{F:"path",L:"ytp-heat-map-path",T:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",L:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.ya("ytp-heat-map-svg");this.D=this.ya("ytp-heat-map-path");this.C=this.ya("ytp-heat-map-graph");this.B=this.ya("ytp-heat-map-play");this.u=this.ya("ytp-heat-map-hover");this.isValid=!1;this.j=60;a=""+g.Ra(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};
bJa=function(a,b,c,d){d=void 0===d?!1:d;b=new aJa(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)}};
aJa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
xQ=function(){g.X.call(this,{F:"div",L:"ytp-chapter-hover-container",S:[{F:"div",L:"ytp-progress-bar-padding"},{F:"div",L:"ytp-progress-list",S:[{F:"div",Ca:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",L:"ytp-progress-linear-live-buffer"},{F:"div",L:"ytp-load-progress"},{F:"div",L:"ytp-hover-progress"},{F:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.ya("ytp-progress-linear-live-buffer");this.B=this.ya("ytp-ad-progress-list");
this.D=this.ya("ytp-load-progress");this.I=this.ya("ytp-play-progress");this.u=this.ya("ytp-hover-progress");this.j=this.ya("ytp-chapter-hover-container")};
yQ=function(a,b){g.yl(a.j,"width",b)};
zQ=function(a,b){g.yl(a.j,"margin-right",b+"px")};
AQ=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
cJa=function(){this.B=this.position=this.C=this.j=this.D=this.u=this.width=NaN};
BQ=function(){g.X.call(this,{F:"div",L:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.DQ=function(a,b){g.ZK.call(this,{F:"div",L:"ytp-progress-bar-container",T:{"aria-disabled":"true"},S:[{F:"div",Ca:["ytp-heat-map-container"],S:[{F:"div",L:"ytp-heat-map-edu"}]},{F:"div",Ca:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{F:"div",L:"ytp-chapters-container"},{F:"div",L:"ytp-marker-crenellation-list"},{F:"div",L:"ytp-timed-markers-container"},
{F:"div",L:"ytp-clip-start-exclude"},{F:"div",L:"ytp-clip-end-exclude"},{F:"div",L:"ytp-scrubber-container",S:[{F:"div",Ca:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{F:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",Ca:["ytp-fine-scrubbing-container"],S:[{F:"div",L:"ytp-fine-scrubbing-edu"}]},{F:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{F:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{F:"div",L:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},
{F:"div",L:"ytp-clip-end",T:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=a;this.Pe=!1;this.D=this.rg=0;this.Ya=1;this.Ld=this.V=0;this.J=null;this.va=this.Bd=0;this.gb=this.ya("ytp-marker-crenellation-list");this.Ra={};this.Mc={};this.clipEnd=Infinity;this.yc=this.ya("ytp-clip-end");this.Dd=new g.gz(this.yc,!0);this.bf=this.ya("ytp-clip-end-exclude");this.Ng=this.ya("ytp-clip-start-exclude");this.clipStart=0;this.zc=this.ya("ytp-clip-start");this.Ed=new g.gz(this.zc,!0);this.Y=this.Eb=
0;this.xc=this.ya("ytp-progress-bar");this.Yb={};this.Nc={};this.Cd=this.ya("ytp-chapters-container");this.vg=this.ya("ytp-timed-markers-container");this.j=[];this.N=[];this.Oe={};this.cf=null;this.eb=-1;this.Kb=this.Ea=0;this.W=null;this.He=this.ya("ytp-scrubber-button");this.jh=this.ya("ytp-scrubber-container");this.Cb=new g.Gg;this.pg=new cJa;this.B=new aM(0,0);this.sb=null;this.C=this.rd=!1;this.qg=null;this.ub=this.ya("ytp-fine-scrubbing-container");this.qa=this.ya("ytp-heat-map-container");
this.Fd=this.ya("ytp-heat-map-edu");this.og=this.ya("ytp-fine-scrubbing-edu");this.I=[];this.La=this.Kd=this.Ha=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.pc();g.cf(this,g.$O(this.tooltip,this.yc));g.M(this,this.Dd);this.Dd.subscribe("hoverstart",this.MQ,this);this.Dd.subscribe("hoverend",this.LQ,this);this.P(this.yc,"click",this.aE);g.cf(this,g.$O(this.tooltip,this.zc));g.M(this,this.Ed);this.Ed.subscribe("hoverstart",this.MQ,this);this.Ed.subscribe("hoverend",this.LQ,this);this.P(this.zc,
"click",this.aE);dJa(this);this.P(a,"resize",this.xb);this.P(a,"presentingplayerstatechange",this.HV);this.P(a,"videodatachange",this.Qp);this.P(a,"videoplayerreset",this.OY);this.P(a,"cuerangesadded",this.lT);this.P(a,"cuerangesremoved",this.B3);this.P(a,"cuerangemarkersupdated",this.lT);this.P(a,"onLoopRangeChange",this.UM);this.P(a,"innertubeCommand",this.onClickCommand);this.P(a,g.uA("timedMarkerCueRange"),this.B2);this.P(a,"updatemarkervisibility",this.jT);this.updateVideoData(a.getVideoData(),
!0);this.UM(a.getLoopRange());CQ(this)&&(this.u||(this.u=new tQ(this.api,this.tooltip,this.D),this.u.xa(this.ub),g.M(this,this.u),this.P(this.u.dismissButton,"click",this.EO),this.P(this.u.playButton,"click",this.zH),this.P(this.u.element,"dblclick",this.zH)),g.ho(this.api.getRootNode(),"ytp-fine-scrubbing-exp"));a=this.api.R();g.MF(a)&&a.isMobile&&a.K("embeds_web_enable_progress_bar_context_menu_fix")&&g.ho(this.element,"ytp-no-contextmenu");this.api.rb(this.qa,this,139609,!0);this.api.rb(this.Fd,
this,140127,!0);this.api.rb(this.og,this,151179,!0);this.api.rb(this.gb,this,145078,!0)};
dJa=function(a){if(0===a.j.length){var b=new xQ;a.j.push(b);g.M(a,b);b.xa(a.Cd,0)}for(;1<a.j.length;)a.j.pop().dispose();yQ(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
EQ=function(a){for(;a.N.length;)a.N.pop().dispose()};
eJa=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.sA(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Af("chapterCueRange");a.api.le(c)};
HQ=function(a,b){var c,d=null==(c=a.Yb[b])?void 0:c.chapters;d&&(fJa(a,d),a.api.getVideoData().oi=a.j,eJa(a));var e;if((c=null==(e=a.Yb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){EQ(a);e=g.r(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new BQ,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 h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;gJa(a,c)}FQ(a,
a.N);e=a.N;c=a.Oe;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=rIa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.le(d)}var l,m;if(b=null==(l=a.Yb[b])?void 0:null==(m=l.heatmap)?void 0:m.heatmapRenderer){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;h=c===p-1?Infinity:a.j[c+1].startTime;
if(c===a.I.length){d=void 0;var q=a;d=void 0===d?NaN:d;var v=new $Ia(q.api);q.I.push(v);g.M(q,v);v.xa(q.qa);0<=d&&(v.element.style.width=d+"px")}d=[];e&&d.push(e);q=g.r(l);for(v=q.next();!v.done;v=q.next()){v=v.value;var w=void 0,y=void 0,A=void 0,B=null!=(A=null==(w=v)?void 0:null==(y=w.heatMarkerRenderer)?void 0:y.timeRangeStartMillis)?A:-1;B>=f&&B<=h&&d.push(v)}0<n&&(a.qa.style.height=n+"px");f=a.I[c];q=0===c;q=void 0===q?!1:q;h=f;0<n&&(h.j=n,h.I.style.height=h.j+"px");h=f;q=void 0===q?!1:q;v=
1E3/d.length;w=[];w.push({x:0,y:100});y=g.r(d.entries());for(A=y.next();!A.done;A=y.next()){B=g.r(A.value);A=B.next().value;B=B.next().value;var E=void 0;B=(null==(E=B.heatMarkerRenderer)?void 0:E.heatMarkerIntensityScoreNormalized)||0;E=(A+.5)*v;B=100-g.Cg(100*B,m/h.j*100,n/h.j*100);0!==A||q||w.push({x:0,y:B});w.push({x:E,y:B});A===d.length-1&&w.push({x:1E3,y:B})}w.push({x:1E3,y:100});h=w;if(0===d.length)h="";else{q="";v=g.r(h.entries());for(w=v.next();!w.done;w=v.next())y=g.r(w.value),w=y.next().value,
y=y.next().value,0===w?w="M "+y.x.toFixed(1)+","+y.y.toFixed(1):(A=bJa(h[w-1],h[w-2],y),w=bJa(y,h[w-1],h[w+1],!0),w=" C "+(A.x.toFixed(1)+","+A.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1)+" "+y.x.toFixed(1)+","+y.y.toFixed(1))),q+=w;h=q}f.D.setAttribute("d",h);f.isValid=""!==h;g.N(f.api.getRootNode(),"ytp-heat-map",f.isValid);g.N(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.K("web_player_heat_map_played_bar")&&""!==h);0<d.length&&(e=d[d.length-1])}g.GQ(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.zA(n):""});a.heatMarkersDecorations=l}};
gJa=function(a,b){a.N.push(b);g.M(a,b);b.xa(a.vg,a.vg.children.length)};
FQ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=IQ(a,c.timeRangeStartMillis/(1E3*a.B.j),JQ(a));g.yl(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
fJa=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},h=e.title;f.title=h?g.zA(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);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 xQ,a.j.push(f),g.M(a,f),f.xa(a.Cd,a.Cd.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.GQ(a);KQ(a)};
g.GQ=function(a){a.Ea=a.j.length-1;a.Kb=0;hJa(a,!0)&&hJa(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){zQ(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;yQ(a.j[d],e+"px");break}a.j[c].width=0;yQ(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,yQ(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,yQ(a.j[c],d+"px"));c=0;if(a.I.length===a.j.length)for(b=0;b<
a.I.length;b++)d=a.j[b].width,a.I[b].element.style.width=d+"px",a.I[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
hJa=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 h=a.D-(a.C?3:2)*a.Ea,l=0===a.Kb?3:h*a.Kb,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,zQ(a.j[c],a.C?3:2));g.N(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,v=p.j[q-1];void 0!==v&&0<v.width?
v.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);zQ(p.j[q],0);b&&(a.Ea--,m/f>a.Kb&&(a.Kb=m/f),d=!0)}c++}}return d};
KQ=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.K("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:zI(d))&&b.airingStart&&b.airingEnd?iJa(a,b.airingStart,b.airingEnd):iJa(a,b.seekableStart,b.seekableEnd);d=dM(c,b.loaded,0);b=dM(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;LQ(a,b,d);e&&MQ(a);jJa(a)}}};
iJa=function(a,b,c){return NQ(a)?new aM(Math.max(b,a.sb.startTimeMs/1E3),Math.min(c,a.sb.endTimeMs/1E3)):new aM(b,c)};
kJa=function(a,b){var c;!a.api.K("web_repeating_chapters")||"repeatChapter"!==(null==(c=a.sb)?void 0:c.type)&&"repeatChapter"!==(null==b?void 0:b.type)||(b&&(b=a.j[zP(a.j,b.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!1)),a.sb&&(b=a.j[zP(a.j,a.sb.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.N(d.j,"ytp-exp-chapter-hover-container",!a.sb)}))};
PQ=function(a,b){var c=cM(a.B,b.B);if(1<a.j.length){c=OQ(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};
lJa=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.Ea)};
mJa=function(a,b,c,d){b=g.Cg(b,0,a.C?60:40);a.V=b;var e=a.Ya;a.Ya=b/(a.C?60:40)*(Math.max(bM(a.B)/a.D,1)-1)+1;b=a.D*a.Ya;a.va=g.Cg(d*b-c,0,b-a.D);e!==a.Ya&&MQ(a)};
MQ=function(a){if(1!==a.j.length||CQ(a))a.He.style.removeProperty("height");else{var b=JQ(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Fda(a.gb),f=0;if(a.V>.2*(a.C?60:40)){for(var h=d*(bM(a.B)/60),l=Math.ceil(c*(bM(a.B)/60));l<h;l++){var m=e[f];m||(m=g.mh("DIV"),a.gb.appendChild(m));f++;0===l%60?g.fo(m,"ytp-60m-progress"):0===l%30?g.fo(m,"ytp-30m-progress"):0===l%15?g.fo(m,"ytp-15m-progress"):g.fo(m,"ytp-1m-progress");m.style.left=(60*l/bM(a.B)-c)*b.j+"px"}a.La||(a.La=!0,a.api.Ta(a.gb,a.La))}b=a.rd?a.B.j:
0;a.update({boundTimeLeft:g.XL(cM(a.B,c)-b),boundTimeRight:g.XL(cM(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.qh(e[c]);a.element.style.height=a.V+(a.C?8:5)+"px";a.X("height-change",a.V);a.He.style.height=a.V+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Ra));for(f=e.next();!f.done;f=e.next())nJa(a,f.value);QQ(a);LQ(a,a.Y,a.Eb)};
JQ=function(a){var b=a.Cb.x,c=a.D*a.Ya;b=g.Cg(b,0,a.D);a.pg.update(b,a.D,-a.va,-(c-a.va-a.D));return a.pg};
RQ=function(a){return(a.C?135:90)-(a.C?54:48)};
LQ=function(a,b,c){a.Y=b;a.Eb=c;var d=JQ(a),e=a.B.j,f=cM(a.B,a.Y),h=g.HJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.XL(f,!0),DURATION:g.XL(e,!0)}),l=zP(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+" "+h:h});e=a.clipStart;f=a.clipEnd;a.sb&&2!==a.api.getPresentingPlayerType()&&(e=a.sb.startTimeMs/1E3,f=a.sb.endTimeMs/1E3);e=dM(a.B,e,0);l=dM(a.B,f,1);h=a.api.getVideoData();f=g.Cg(b,e,l);c=(null==h?0:g.wI(h))?1:g.Cg(c,e,
l);b=IQ(a,b,d);g.yl(a.jh,"transform","translateX("+b+"px)");SQ(a,d,e,f,"PLAY_PROGRESS");(null==h?0:zI(h))?(b=a.api.getProgressState().seekableEnd)&&SQ(a,d,f,dM(a.B,b),"LIVE_BUFFER"):SQ(a,d,e,c,"LOAD_PROGRESS");if(a.api.K("web_player_heat_map_played_bar")){var m;null!=(m=a.I[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
SQ=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ea*(a.C?3:2),l=c*h;c=OQ(a,l);var m=d*h;h=OQ(a,m);"HOVER_PROGRESS"===e&&(h=OQ(a,b.j*d,!0),m=b.j*d-oJa(a,b.j*d)*(a.C?3:2));b=Math.max(l-pJa(a,c),0);for(d=c;d<f;d++)AQ(a.j[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].width,TQ(a,AQ(a.j[f],e),f===c?d-b:d,d);f=a.j[h].width;m=g.Cg(m-pJa(a,h),0,f);c===h&&(m-=b);TQ(a,AQ(a.j[h],e),m,f);m=a.j.length;for(h+=1;h<m;h++)TQ(a,AQ(a.j[h],e),0,a.j[h].width);for(h=0;h<c;h++)TQ(a,AQ(a.j[h],e),0,a.j[h].width)};
pJa=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};
TQ=function(a,b,c,d,e){e||a.api.R().isMobile?b.style.width=c+"px":g.yl(b,"transform","scalex("+(d?c/d:0)+")")};
OQ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=oJa(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};
IQ=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.C?3:2)*a.Ea)+(a.C?3:2)*(0>e?0:e)+c.u};
oJa=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.UQ=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.rg=b;a.D=c;a.C=d;CQ(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);MQ(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.GQ(a);a.u&&(a.u.C=a.D,f&&CQ(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.ub.style.height=c+"px",g.yl(a.qa,"transform","translateY("+-d+"px)"),g.yl(a.xc,"transform","translateY("+-d+"px)")),XIa(a.u)))};
QQ=function(a){var b=!!a.sb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.sb?(c=a.sb.startTimeMs/1E3,d=a.sb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.sb)?0:h.postId)||"repeatChapter"===(null==(l=a.sb)?void 0:l.type))f=e=!1;g.N(a.element,"ytp-loop-range-enabled",b);g.N(a.element,"ytp-clip-start-enabled",e);g.N(a.element,"ytp-clip-end-enabled",f);b=e?dM(a.B,c,0):0;d=f?dM(a.B,d,1):1;a.zc.style.left=Math.round(1E3*b)/10+"%";a.yc.style.left=Math.round(1E3*
d)/10+"%";a.Ng.style.width=Math.round(1E3*b)/10+"%";a.bf.style.left=Math.round(1E3*d)/10+"%";a.bf.style.width=Math.round(1E3*(1-d))/10+"%"};
jJa=function(a){var b;if(null==(b=a.api.getVideoData())||!zI(b)){b=JQ(a);SQ(a,b,a.Y,Math.max(b.B,a.Y),"HOVER_PROGRESS");for(var c=OQ(a,b.j*a.Y,!0),d=OQ(a,b.C,!0),e=c;e<=d;e++)g.N(a.j[e].u,"ytp-hover-progress-light",b.B>a.Y);g.N(a.He,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.K("web_player_heat_map_played_bar")){var f;null!=(f=a.I[0])&&f.u.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
nJa=function(a,b){var c=a.Ra[b];b=a.Mc[b];var d=JQ(a),e=dM(a.B,c.start/1E3,0),f=ava(c,a.C)/d.width;var h=dM(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Cg(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;e=void 0===e?!1:e;b.style.left=Math.max(c*d.j+d.u,0)+"px";TQ(a,b,g.Cg((h-c)*d.j+d.u,0,d.width),d.width,e)};
qJa=function(a,b){var c=b.getId();a.Ra[c]===b&&(g.qh(a.Mc[c]),delete a.Ra[c],delete a.Mc[c])};
CQ=function(a){var b;return a.api.R().K("web_player_fine_scrubbing")&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.wf()&&!a.api.isInline()};
VQ=function(a){a.u&&(a.u.disable(),a.V=0,a.qa.style.removeProperty("transform"),a.xc.style.removeProperty("transform"),a.ub.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
rJa=function(a,b){var c=b/RQ(a)*(a.C?54:48);g.yl(a.xc,"transform","translateY("+-b+"px)");g.yl(a.qa,"transform","translateY("+-b+"px)");g.yl(a.ub,"transform","translateY("+c+"px)");a.ub.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=(a.C?54:48)-c+"px")};
sJa=function(a,b){b?a.W||(a.element.removeAttribute("aria-disabled"),a.W=new g.gz(a.xc,!0),a.W.subscribe("hovermove",a.w1,a),a.W.subscribe("hoverend",a.v1,a),a.W.subscribe("dragstart",a.u1,a),a.W.subscribe("dragmove",a.A1,a),a.W.subscribe("dragend",a.z1,a),a.qg=a.Na("keydown",a.IV)):a.W&&(a.element.setAttribute("aria-disabled","true"),a.uc(a.qg),a.W.cancel(),a.W.dispose(),a.W=null)};
g.tJa=function(a){var b=2*a.D*g.kG();return 1E3*bM(a.B)/a.api.getPlaybackRate()/b};
NQ=function(a){var b;return!(null==(b=a.sb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
WQ=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-remote-button","ytp-button"],T:{title:"Play on TV","aria-haspopup":"true"},Z:"{{icon}}"});this.G=a;this.ib=c;this.j=null;this.P(a,"onMdxReceiversChange",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);this.P(a,"appresize",this.Fa);a.rb(this.element,this,139118);this.Fa();this.Na("click",this.u,this);g.cf(this,g.$O(b.pc(),this.element))};
XQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-button","ytp-screen-mode-button"],T:{"aria-haspopup":"true","aria-owns":UK(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},S:[{F:"svg",T:{viewBox:"0 0 36 36"},S:[{F:"path",Nb:!0,T:{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.G=a;this.u=!0;this.ib=null;this.Na("click",this.B);this.P(a,"appresize",this.j);g.cf(this,g.$O(b.pc(),this.element));this.j(a.Za().getPlayerSize())};
YQ=function(a,b,c,d,e){g.FN.call(this,g.GN(),a,b);this.ib=d;this.j=!1;this.u=null;e&&(this.u=new g.X({F:"div",S:[{F:"span",Z:"{{title}}"},{F:"span",L:"ytp-menuitem-keyboard-shortcut",Z:e}]}),this.Ig(this.u),this.u.Ja("title",b),g.M(this,this.u));this.Na("click",this.onClick)};
ZQ=function(a,b){b&&!a.j?(a.ib.Bc(a),a.j=!0):!b&&a.j&&(a.ib.Bf(a),a.j=!1)};
$Q=function(a,b){YQ.call(this,9,"Miniplayer",a,b,"(i)");this.G=a;HN(this,{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},S:[{F:"path",Nb:!0,T:{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.P(a,"fullscreentoggled",this.Fa);a.rb(this.element,this,62946);this.Fa()};
aR=function(a,b,c){YQ.call(this,11,"Connect to a device",a,b);this.G=a;this.C=c;this.B=null;this.P(a,"onMdxReceiversChange",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);this.P(a,"appresize",this.Fa);a.rb(this.element,this,139118);this.Fa()};
bR=function(a,b){YQ.call(this,10,"Theater mode",a,b,"(t)");this.G=a;this.isWidescreen=null;this.P(a,"sizestylechange",this.Fa);this.P(a,"fullscreentoggled",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);a.rb(this.element,this,139116);this.Fa()};
cR=function(a,b,c){g.pP.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.Mo=c;this.md=new g.hP(this.G);this.CE=0;g.M(this,this.md);this.P(a,"minimized",this.hide);this.P(a,"sizestylechange",this.hide);this.P(a,"fullscreentoggled",this.hide);this.hide();g.nP(this,this.md);this.Mo=c;this.element.id=c.element.getAttribute("aria-owns");a=this.G.R();a.Eb&&(b=new aR(this.G,this,this.settingsMenu),g.M(this,b),this.CE++);a.Kb||(b=new bR(this.G,this),g.M(this,b),this.CE++);a.showMiniplayerButton&&
(a=new $Q(this.G,this),g.M(this,a),this.CE++)};
dR=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":UK(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.lL()]});this.G=a;this.ib=c;this.u=!0;this.Na("click",this.B);this.P(a,"onPlaybackQualityChange",this.updateBadge);this.P(a,"videodatachange",this.updateBadge);this.P(a,"webglsettingschanged",this.updateBadge);this.P(a,"appresize",this.j);g.cf(this,g.$O(b.pc(),this.element));
this.G.rb(this.element,this,28663);this.updateBadge();this.j(a.Za().getPlayerSize())};
eR=function(a,b){a.u=!!b;a.j(a.G.Za().getPlayerSize())};
fR=function(a,b){MN.call(this,"Annotations",6);this.G=a;this.ib=b;this.j=!1;a.K("web_settings_menu_icons")&&HN(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{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.P(a,"videodatachange",this.Fa);this.P(a,"onApiChange",this.Fa);this.subscribe("select",this.onSelect,this);this.Fa()};
g.gR=function(a,b,c,d,e,f,h){g.FN.call(this,g.GN({"aria-haspopup":"true"}),b,a);this.ib=d;this.C=!1;this.B=null;this.options={};this.u=new g.hP(c,void 0,a,e,f,h);g.M(this,this.u);this.Na("keydown",this.JV);this.Na("click",this.open)};
uJa=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.hR=function(a,b){g.iP(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(a.options[f].Ig(a.Rk(f,!0)),delete a.options[f]):h=a.DG(f,-e,l);c[f]=h;a.u.Bc(h,!0)}d||(a.B=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};
iR=function(a,b){g.gR.call(this,"Audio track",3,a,b);this.G=a;this.tracks={};this.j=new g.X({F:"div",S:[{F:"span",Z:"Audio track"},{F:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});a.K("web_settings_menu_icons")&&HN(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{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.M(this,this.j);this.Ig(this.j);this.P(a,"videodatachange",this.Fa);this.P(a,"onPlaybackAudioChange",this.Fa);this.Fa()};
jR=function(a,b){MN.call(this,"Autoplay",7);this.G=a;this.ib=b;this.j=!1;this.B=[];this.P(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.rb(this.element,this,113682);this.u()};
kR=function(a,b,c){g.X.call(this,{F:"div",L:"ytp-screen-mode-settings-option",S:[{F:"div",L:"ytp-screen-mode-settings-label",Z:"{{label}}"}]});this.ib=c;this.Mo=new g.ZK({F:"button",Ca:["ytp-screen-mode-settings-button","ytp-button"],Z:"{{icon}}",T:{title:"{{title}}"}});this.Mo.xa(this.element,0);g.M(this,this.Mo);this.Mo.Ja("icon",a);this.Ig(b);this.Na("click",this.onClick)};
lR=function(a,b,c){kR.call(this,{F:"svg",T:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},S:[{F:"path",T:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M43,26H26v10h17V26 M23,16v6.09l-6.68-6.68l-1.41,1.41L21.09,23H16v2h9v-9H23z",fill:"white"}}]},EO(b,"Miniplayer","i"),c);this.G=b;a.addButton(this);this.P(b,"fullscreentoggled",this.Fa);b.rb(this.element,this,62946);this.Fa()};
mR=function(a,b){var c;g.lG(a.R())&&(c={F:"div",L:"ytp-panel-footer-content",S:[{F:"span",Z:"Adjust download quality from your "},{F:"a",L:"ytp-panel-footer-content-link",Z:"Settings",T:{href:"/account_downloads"}}]});g.gR.call(this,"Quality",2,a,b,void 0,void 0,c);this.G=a;this.J={};this.D={};this.j=!1;this.I="unknown";this.j=this.G.K("web_player_use_new_api_for_quality_pullback");a.K("web_settings_menu_icons")&&HN(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{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.ho(this.u.element,"ytp-quality-menu");this.P(a,"videodatachange",this.Gx);this.P(a,"videoplayerreset",this.Gx);this.P(a,"onPlaybackQualityChange",this.VM);this.Gx();a.rb(this.element,this,137721)};
wJa=function(a,b,c){a=a.J[b];var d=g.uB[b];return vJa(a?a.qualityLabel:d?d+"p":"Auto",b,c)};
xJa=function(a,b,c,d){var e=(a=a.D[b])&&a.qualityLabel,f=g.uB[b];b=vJa(e?e:f?f+"p":"Auto",b,d);(d=(d=a&&a.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&b.S.push({F:"div",L:"ytp-premium-label",Z:d});return b};
vJa=function(a,b,c){a={F:"span",Ca:c,S:[a]};var d;"highres"===b?d="8K":"hd2880"===b?d="5K":"hd2160"===b?d="4K":0===b.indexOf("hd")&&"hd720"!==b&&(d="HD");d&&(a.S.push(" "),a.S.push({F:"sup",L:"ytp-swatch-color",Z:d}));return a};
nR=function(a,b,c){kR.call(this,OEa(),"Connect to a device",c);this.G=b;this.j=null;a.addButton(this);this.P(b,"onMdxReceiversChange",this.Fa);this.P(b,"presentingplayerstatechange",this.Fa);this.P(b,"appresize",this.Fa);b.rb(this.element,this,139118);this.Na("click",this.onClick);this.Fa()};
oR=function(a,b){g.ZK.call(this,{F:"div",L:"ytp-screen-mode-menu-item"});this.G=a;this.ib=b};
pR=function(a,b,c){kR.call(this,dFa(),EO(b,"Theater mode","t"),c);this.G=b;this.isWidescreen=null;a.addButton(this);this.P(b,"sizestylechange",this.Fa);this.P(b,"fullscreentoggled",this.Fa);this.P(b,"presentingplayerstatechange",this.Fa);b.rb(this.element,this,139116);this.Fa()};
qR=function(a,b,c,d,e,f,h){g.X.call(this,{F:"div",L:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{F:"div",L:"ytp-slider",S:[{F:"div",L:"ytp-slider-handle"}]}]});this.I=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.W=f;this.range=this.maximumValue-this.minimumValue;this.Y=this.ya("ytp-slider-section");this.u=this.ya("ytp-slider");this.N=this.ya("ytp-slider-handle");
this.C=new g.gz(this.u,!0);this.j=h?h:c;g.M(this,this.C);this.C.subscribe("dragmove",this.LV,this);this.P(this.element,"keydown",this.MV);this.P(this.element,"wheel",this.KV);this.init()};
sR=function(a){qR.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.B=g.mh("P");this.qa=Pca(this.V,this);g.ho(this.u,"ytp-speedslider");g.ho(this.B,"ytp-speedslider-text");a=this.u;a.parentNode&&a.parentNode.insertBefore(this.B,a.nextSibling);rR(this);this.P(this.G,"onPlaybackRateChange",this.va)};
rR=function(a){a.B.textContent=tR(a,a.j)+"x"};
tR=function(a,b){a=Number(g.Cg(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))};
uR=function(a){g.ZK.call(this,{F:"div",L:"ytp-speedslider-component"});this.j=new sR(a);g.M(this,this.j);this.element.appendChild(this.j.element)};
yJa=function(a){var b=new uR(a);gP.call(this,a,b,"Custom");g.M(this,b)};
vR=function(a,b){var c=new yJa(a);g.gR.call(this,"Playback speed",5,a,b,"Custom",function(){g.nP(b,c)});
a.K("web_settings_menu_icons")&&HN(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{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.M(this,c);this.G=a;this.D=this.j=this.J=null;this.I=this.G.getAvailablePlaybackRates();this.P(a,"presentingplayerstatechange",this.Fa);this.Fa()};
zJa=function(a,b){var c=wR(b);a.options[c]?a.Hj(c):b===a.D&&a.j&&(a.Hj(a.j),a.Sd(b.toString()))};
BJa=function(a){g.hR(a,a.I.map(wR));a.j=null;a.D=null;var b=a.G.getPlaybackRate();a.I.includes(b)||(AJa(a,b),g.gR.prototype.Mg.call(a,a.j))};
AJa=function(a,b){a.D=b;a.j=g.HJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(wR);b.unshift(a.j);g.hR(a,b)};
wR=function(a){return a.toString()};
xR=function(a,b,c,d){var e=new g.hP(b,void 0,"Video Override");g.gR.call(this,d.text||"",a,b,c,"Video Override",function(){g.nP(c,e)});
var f=this;g.ho(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.uc(a,this.getKey,this);this.I=e;g.M(this,this.I);b=new g.FN({F:"div",L:"ytp-menuitemtitle",Z:"Allow for a different caption style if specified by the video."},0);g.M(this,b);this.I.Bc(b,!0);this.D=new g.FN({F:"div",L:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},S:[{F:"div",L:"ytp-menuitem-label",Z:"On"}]},-1);g.M(this,this.D);this.I.Bc(this.D,!0);this.P(this.D.element,
"click",function(){CJa(f,!0)});
this.j=new g.FN({F:"div",L:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},S:[{F:"div",L:"ytp-menuitem-label",Z:"Off"}]},-2);g.M(this,this.j);this.I.Bc(this.j,!0);this.P(this.j.element,"click",function(){CJa(f,!1)});
g.hR(this,g.Pk(a,this.getKey))};
CJa=function(a,b){a.X("settingChange",a.setting+"Override",!b);a.ib.Ti()};
yR=function(a,b){g.hP.call(this,a,void 0,"Options");var c=this;this.eq={};for(var d=0;d<g.CP.length;d++){var e=g.CP[d],f=new xR(-d,a,b,e);g.M(this,f);f.subscribe("settingChange",this.Ri,this);this.eq[e.option.toString()]=f;this.Bc(f,!0)}a=new g.FN(g.GN(),-g.CP.length,"Reset");g.M(this,a);a.Na("click",function(){c.Ri("reset",!0)});
this.Bc(a,!0)};
zR=function(a,b){g.gR.call(this,"Auto-translate",0,a,b);this.G=a;this.languages={};a.rb(this.element,this,127301);a.Ta(this.element,!0)};
DJa=function(a,b){a.languages=g.uc(b,a.getKey,a);g.hR(a,g.Pk(b,a.getKey))};
AR=function(a,b){var c=new yR(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.pG(a.R())&&(e={F:"div",L:"ytp-panel-footer-content",S:[{F:"span",Z:d[0]},{F:"a",L:"ytp-panel-footer-content-link",Z:"Settings",T:{href:"/account_playback"}},{F:"span",Z:d[1]}]});g.gR.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.nP(b,c)},e);
var f=this;this.G=a;this.ib=b;this.tracks={};this.I=new g.Zn(function(){EJa(f,!1)},3E3);
g.M(this,this.I);this.J=new g.X({F:"div",S:[{F:"span",Z:"Subtitles/CC"},{F:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.M(this,this.J);this.Ig(this.J);a.K("web_settings_menu_icons")&&HN(this,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{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 zR(a,b);g.M(this,this.j);this.j.subscribe("select",this.NV,this);this.D=c;g.M(this,this.D);this.D.subscribe("settingChange",this.Ri,this);b.subscribe("show",this.e2,this);this.P(a,"videodatachange",this.Fa);this.P(a,"onApiChange",this.Fa);this.P(a,"onCaptionsTrackListChanged",this.Fa);this.P(a,"captionschanged",this.Fa);a.rb(this.element,this,127300);this.Fa()};
EJa=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
BR=function(a){g.pP.call(this,a,"ytp-settings-menu");var b=this;this.md=new g.hP(this.G);this.settingsButton=null;this.DE=0;this.isInitialized=!1;g.M(this,this.md);this.hide();g.nP(this,this.md);var c=this.G.R();if(c.K("web_screen_mode_menu_b")){var d=new oR(this.G,this);g.M(this,d);if(c.showMiniplayerButton&&!c.K("web_player_pip")){var e=new lR(d,this.G,this);g.M(this,e)}c.Kb||(e=new pR(d,this.G,this),g.M(this,e),this.DE++);c.Eb&&(e=new nR(d,this.G,this),g.M(this,e),this.DE++);1<this.DE&&dIa(this.md,
d)}a.rb(this.element,this,108341,!0);this.subscribe("show",function(f){b.zf(f)});
c.K("web_rounded_containers")&&g.ho(this.element,"ytp-rounded-menu")};
FJa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
CR=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-size-button","ytp-button"],T:{title:"{{title}}"},Z:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new mQ;this.tooltip=b.pc();g.M(this,this.transition);this.P(a,"sizestylechange",this.Fa);this.P(a,"fullscreentoggled",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);a.rb(this.element,this,139116);this.Fa();this.Na("click",this.onClick);g.cf(this,g.$O(this.tooltip,this.element))};
g.DR=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-subtitles-button","ytp-button"],T:{"aria-pressed":"{{pressed}}",title:"{{title}}"},S:[GHa()]});this.G=a;this.tooltip=b.pc();this.P(a,"videodatachange",this.Fa);this.P(a,"appresize",this.Fa);this.P(a,"promotooltipacceptbuttonclicked",this.j);this.P(a,"onApiChange",this.Fa);this.P(a,"onCaptionsTrackListChanged",this.Fa);this.P(a,"captionschanged",this.Fa);this.G.rb(this.element,this,127299);this.Fa();this.Na("click",this.onClick);g.cf(this,g.$O(b.pc(),
this.element))};
g.FR=function(a,b,c){c=void 0===c?350:c;g.X.call(this,{F:"div",Ca:["ytp-time-display","notranslate"],S:[{F:"span",L:"ytp-time-clip-icon",Z:"{{clipicon}}"},{F:"span",S:[{F:"span",L:"ytp-time-current",Z:"{{currenttime}}"},{F:"span",L:"ytp-time-separator",Z:" / "},{F:"span",L:"ytp-time-duration",Z:"{{duration}}"}]},{F:"span",L:"ytp-clip-watch-full-video-button-separator",Z:"\u2022"},{F:"span",L:"ytp-clip-watch-full-video-button",Z:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.X({F:"button",
Ca:["ytp-live-badge","ytp-button"],T:{disabled:"true"},Z:"{{content}}"});this.j=null;this.isLiveVideo=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.sb=this.C=this.B=null;this.N=this.ya("ytp-clip-watch-full-video-button");this.liveBadge.Sd("Live");g.M(this,this.liveBadge);this.liveBadge.xa(this.element);this.tooltip=b.pc();this.Na("click",this.onClick);this.P(this.N,"click",this.P2);this.P(a,"presentingplayerstatechange",this.Wb);this.P(a,"appresize",this.Wb);this.P(a,"onLoopRangeChange",this.onLoopRangeChange);
this.P(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Wb();a=a.getLoopRange();b=this.sb!==a;this.sb=a;b&&ER(this)};
ER=function(a){a.Ja("clipicon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{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.Ja("watchfullvideo","Watch live stream"):a.Ja("watchfullvideo","Watch full video");g.N(a.element,"ytp-clip",GR(a));g.N(a.element,"ytp-live",HR(a))};
HR=function(a){var b=a.api.R().K("enable_linear_program_progress");return a.isLiveVideo&&!GR(a)&&(!b||!a.u)};
GR=function(a){return!!a.sb&&!!a.sb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.api.K("web_repeating_chapters")||"clips"===a.sb.type)};
KR=function(a,b,c){g.X.call(this,{F:"div",L:"ytp-volume-panel",T:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{F:"div",L:"ytp-volume-slider",S:[{F:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.J=c;this.Uj=!1;this.V=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.j=b;this.J=c;this.C=b.Qf();this.N=this.ya("ytp-volume-slider");this.W=this.ya("ytp-volume-slider-handle");
this.D=new g.gz(this.N,!0);g.M(this,this.D);this.D.subscribe("dragstart",this.l2,this);this.D.subscribe("dragmove",this.PV,this);this.D.subscribe("dragend",this.j2,this);this.P(a,"onVolumeChange",this.onVolumeChange);this.P(a,"appresize",this.WM);this.P(a,"fullscreentoggled",this.Eo);this.P(a,"onShowControls",this.cO);this.P(a,"onHideControls",this.cO);this.P(this.element,"keydown",this.QV);this.P(this.element,"focus",function(){IR(d,d.u,d.isDragging,!0,d.j.Uj())});
this.P(this.element,"blur",function(){IR(d,d.u,d.isDragging,!1,d.j.Uj())});
this.WM(a.Za().getPlayerSize());JR(this,a.getVolume(),a.isMuted())};
JR=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Ja("valuenow",d);a.Ja("valuetext",e);a.W.style.left=(a.C?60:40)*c+"px";a.volume=b};
GJa=function(a,b){g.N(a.element,"ytp-volume-control-hover",b);IR(a,b,a.isDragging,a.B,a.j.Uj())};
IR=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Uj;a.u=b;a.isDragging=c;a.B=d;a.Uj=e;b=a.u||a.isDragging||a.B||a.Uj;f!==b&&(b?a.I=a.P(a.element,"wheel",a.OV):(a.uc(a.I),a.I=null),g.N(a.J,"ytp-volume-slider-active",b))};
g.LR=function(a,b){var c=a.R(),d=g.hG(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.B&&e.push("no-link");g.XF(c)&&e.push("ytp-youtube-music-button");var f={target:c.J,"data-sessionlink":"feature=player-button",title:""};c.B||(f.title=g.HJ("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.X.call(this,{F:"a",Ca:e,T:f,Z:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;a.rb(this.element,this,28666);c.B||(this.j=this.Na("click",this.onClick));
this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"onLoopRangeChange",this.onVideoDataChange);this.P(a,"appresize",this.xb);this.onVideoDataChange();c.B||g.cf(this,g.$O(b.pc(),this.element));this.xb()};
MR=function(a,b,c){g.YD.call(this);var d=this;this.G=a;this.B=b;this.Xd=c;this.Ra=NaN;this.Ua=this.La=null;this.settingsMenu=new BR(this.G);this.u=null;this.xc=new g.DQ(this.G,this.B);this.muteButton=null;this.ai=new g.FR(this.G,this.B);this.N=this.D=this.C=this.V=this.Ea=this.va=null;this.W=new pQ(this.G,this.B);this.Ha=new g.hQ(this.G,this.B);this.ye=new g.Xn(this.Ts,null,this);this.J=null;c=a.R();this.Xd.subscribe("autohideupdate",this.ul,this);var e=!a.zb().isCued(),f=this.G.R().K("html5_player_bottom_linear_gradient");
f||!g.XF(c)&&!a.R().K("html5_player_dynamic_bottom_gradient")?f=f?new g.X({F:"div",L:"ytp-gradient-bottom-container",S:[{F:"div",L:"ytp-gradient-bottom-extension"},{F:"div",L:"ytp-gradient-bottom"}]}):new g.X({F:"div",L:"ytp-gradient-bottom"}):this.Ua=f=new g.aQ(a);g.M(this,f);g.AN(a,f.element,9);this.ra=new g.JL(f,250,e,100);g.M(this,this.ra);this.j=new g.X({F:"div",L:"ytp-chrome-bottom",S:[{F:"div",L:"ytp-chrome-controls"}]});g.M(this,this.j);g.AN(a,this.j.element,9);this.Y=new g.JL(this.j,250,
e,100);g.M(this,this.Y);this.qa=this.j.element.children[0];g.cf(this.settingsMenu,function(){a.Em()===d.settingsMenu&&(a.settingsMenu=null)});
g.M(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.AN(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){HJa(d.B.pc(),!n);b.pA(d.settingsMenu,n)});
g.M(this,this.xc);this.xc.xa(this.j.element,0);e=new g.dQ(a);g.M(this,e);g.AN(a,e.element,4);f=new g.VK({F:"div",L:"ytp-left-controls"});g.M(this,f);f.xa(this.qa);e=new g.sQ(a,b,!1);g.M(this,e);e.xa(f.element);c.Ea||(e=new g.qQ(a,b),g.M(this,e),e.xa(f.element),qG(c)&&(e=new g.VK({F:"div",L:"ytp-hybrid-controls"}),g.M(this,e),this.N=new g.qQ(a,b,!0),g.M(this,this.N),this.N.xa(e.element),g.AN(a,e.element,4)));e=new g.sQ(a,b,!0);g.M(this,e);e.xa(f.element);e=new g.X({F:"span",L:"ytp-volume-area"});g.M(this,
e);e.xa(f.element);if(!c.yc&&(this.muteButton=new g.oQ(a,b),g.M(this,this.muteButton),this.muteButton.xa(e.element),c.va&&!c.I)){var h=new KR(a,b,this.j.element);g.M(this,h);h.xa(e.element);e=new g.gz(e.element);g.M(this,e);e.subscribe("hoverstart",function(){GJa(h,!0)});
e=new g.gz(f.element);g.M(this,e);e.subscribe("hoverend",function(){GJa(h,!1)})}g.M(this,this.ai);
this.ai.xa(f.element);e=new g.VK({F:"div",L:"ytp-right-controls"});g.M(this,e);this.va=new cQ(a,b,this.xc);g.M(this,this.va);this.va.xa(f.element);c.K("web_key_moments_markers")&&(this.Ea=new iQ(a,b,this.xc),g.M(this,this.Ea),this.Ea.xa(f.element));e.xa(this.qa);a.R().rd&&c.K("web_player_move_autonav_toggle")&&(f=new ZP(a,b),g.M(this,f),f.xa(e.element));c.K("external_fullscreen_with_edu")&&c.externalFullscreen&&jG(c)&&(this.V=new gQ(a,b),g.M(this,this.V),this.V.xa(e.element));f=new g.DR(a,b);g.M(this,
f);f.xa(e.element);f=new dR(a,b,this.settingsMenu);g.M(this,f);FJa(this.settingsMenu,f);f.xa(e.element);if(c.K("web_screen_mode_menu_a")){var l=new XQ(a,b);g.M(this,l);this.u=new cR(this.G,this.settingsMenu,l);l.ib=this.u;g.cf(this.u,function(){a.Py()===d.u&&(a.FF=null)});
g.M(this,this.u)}if(f=this.u&&1<this.u.CE)a.FF=this.u,g.AN(a,this.u.element,7),this.u.subscribe("show",function(n){HJa(d.B.pc(),!n);b.pA(d.u,n)}),l.xa(e.element);
var m=new lQ(a);g.M(this,m);g.AN(a,m.element,5);m.subscribe("show",function(n){b.Ap(m,n)});
l=new kQ(a,b,m);g.M(this,l);l.xa(e.element);l=a.getVideoData();if(c.Kk||l.C&&"1"===c.controlsType)this.C=new g.LR(a,b),g.M(this,this.C),this.C.xa(e.element);g.M(this,this.W);!f&&1>=this.settingsMenu.DE&&(c.showMiniplayerButton&&!a.R().K("web_player_pip")&&(this.D=new jQ(a,b),g.M(this,this.D),this.D.xa(e.element)),this.W.xa(e.element),l.cG||this.W.hide(),c.Kb||(l=new CR(a,b),g.M(this,l),l.xa(e.element)),c.Eb&&(l=new WQ(a,b,this.settingsMenu),g.M(this,l),l.xa(e.element)),c.Hk&&(c=new YP(a,b),g.M(this,
c),c.xa(e.element)));g.M(this,this.Ha);this.Ha.xa(e.element);g.M(this,this.ye);this.P(a,"appresize",this.xb);this.P(a,"fullscreentoggled",this.xb);this.P(a,"presentingplayerstatechange",this.KF);this.P(a,"videodatachange",this.onVideoDataChange);this.xb()};
IJa=function(a,b){a.G.zb().isCued()||b?b&&(a.Y.hide(),a.ra.hide(),a.muteButton&&a.muteButton.lc(!1),a.C&&a.C.lc(!1),a.D&&a.D.lc(!1),a.B.pc().Nj(a.j.element)):b||(a.Y.show(),a.ra.show(),a.muteButton&&a.muteButton.lc(!0),a.C&&a.C.lc(!0),a.D&&a.D.lc(!0),a.ul())};
JJa=function(a){var b=a.G.Za().getPlayerSize().width;return Math.max(b-2*NR(a),100)};
NR=function(a){var b=a.B.Qf();return 12*(a.G.getVideoData().C?0:b?2:1)};
OR=function(a){var b=a.B.Qf()?72:50;a=a.G.R();g.lG(a)&&(b=62,g.SF(a)&&(b=54));return b};
PR=function(a,b){UP.call(this,a,b,!1);var c=this;this.P(this.G,"videodatachange",this.onVideoDataChange);this.P(this.G,g.uA("suggested_action_button_visible"),function(){c.zf(!0)});
this.P(this.G,g.vA("suggested_action_button_visible"),function(){c.zf(!1)})};
QR=function(a){a.G.Af("suggested_action_button_visible")};
SR=function(a){var b={F:"div",L:RR.SUBTEXT,S:[{F:"a",L:RR.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]};a.R().B&&(b={F:"div",L:RR.SUBTEXT,S:[{F:"span",L:RR.CHANNEL_NAME,Z:"{{channelName}}"}]});g.X.call(this,{F:"div",L:RR.TITLE,S:[{F:"div",L:RR.TEXT,S:[{F:"a",Ca:[RR.LINK,RR.SESSIONLINK],T:{target:a.R().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Z:"{{title}}"},b]}]});this.api=a;this.j=null;this.link=this.ya(RR.LINK);
a.rb(this.element,this,23851);this.P(a,"videodatachange",this.Fa);this.P(a,"videoplayerreset",this.Fa);this.Fa()};
KJa=function(a){a.Ja("channelLink","");a.Ja("channelName","");a.Ja("channelTitleFocusable","-1")};
g.TR=function(a,b){g.X.call(this,{F:"div",S:[{F:"div",L:"ytp-tooltip-text-wrapper",T:{"aria-hidden":"{{ariaHidden}}"},S:[{F:"div",L:"ytp-tooltip-edu",S:[{F:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",T:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{F:"span",Z:"{{eduText}}"}]},{F:"div",L:"ytp-tooltip-image"},{F:"div",L:"ytp-tooltip-title",S:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"g",
S:[{F:"rect",T:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",S:[{F:"g",S:[{F:"polygon",T:{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"}},{F:"polygon",T:{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"}},{F:"path",T:{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"}}]}]}]},{F:"span",Z:"{{title}}"}]},{F:"span",L:"ytp-tooltip-text",
Z:"{{text}}"}]},{F:"div",L:"ytp-tooltip-bg",S:[{F:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.Ea=b;this.env=this.api.R();this.va=this.env.isMobile;this.bg=this.ya("ytp-tooltip-bg");this.image=this.ya("ytp-tooltip-image");this.text=this.ya("ytp-tooltip-text");this.title=this.ya("ytp-tooltip-title");this.V=function(d){(d=Ex(d))&&g.sh(c.u,d)||c.Ol()};
this.C=function(d){3===c.type&&c.Ol();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.V),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.V),LJa(c,d,2))};
this.W=function(){c.Ol()};
this.u=null;this.D=new g.JL(this,100);this.type=null;this.N=!1;this.j=null;this.B=NaN;this.I="";this.LF=this.api.Za().getPlayerSize().width;this.J=!0;this.scale=1;this.Y=new g.Zn(this.JZ,250,this);this.qa=new g.Zn(this.Ol,5E3,this);g.M(this,this.D);g.M(this,this.Y);g.M(this,this.qa);IF&&(a=this.ya("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
dP=function(a){a.element.setAttribute("aria-live","polite")};
HJa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:UR(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.J=b};
OJa=function(a,b,c,d,e,f,h,l,m){if(!a.va||a.env.I){3===a.type&&a.Ol();1!==a.type&&(g.fo(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.Ii(),a.j&&a.j.subscribe("l",a.VQ,a));a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.N(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.N(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=zH(a.j,160*a.scale),a.env.K("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=IAa(a.j,d,c));MJa(a,d);
if(l)switch(c=g.Jl(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"}NJa(a,!!e,b,f)}};
g.VR=function(a){1===a.type&&a.Ol()};
g.$O=function(a,b){if(a.va)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.Ol();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
uP=function(a,b,c){if(a.type)if(3===a.type)a.Ol();else return;LJa(a,b,3,c)};
LJa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Rv("showElementTooltip called with non-element.",b.toString()),g.qz(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.N=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.fo(a.element,"ytp-tooltip");a.env.K("web_rounded_containers")&&g.ho(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});
g.N(a.element,"ytp-tooltip-image-enabled",!!e);b=b.getAttribute("data-tooltip-opaque");g.N(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.W);a.J&&(UR(a),a.D.show(0))}};
UR=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.u;a.Ja("text",b);var d=c.getAttribute("data-duration");a.update({title:a.I,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.io(a.element,["ytp-text-detail","ytp-preview"]);
g.N(a.element,"ytp-has-duration",!!d)}else a.Ja("text",a.I),g.ko(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);NJa(a,!!b)};
NJa=function(a,b,c,d){var e=Math.min(a.LF,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ea.nt(a.element,a.u,c,1===a.type,d);a.element.style.top?g.ho(a.element,"ytp-bottom"):a.element.style.bottom&&g.ho(a.element,"ytp-top");3===a.type&&a.qa.start()};
vP=function(a){a.u&&!a.N&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.J&&UR(a))};
MJa=function(a,b){g.N(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=EAa(a.j,a.B,b);HIa(a.bg,d,b,c,!0);a.Y.start()}};
PJa=function(a){var b=a.u;3===a.type&&a.qa.stop();a.api.removeEventListener("appresize",a.W);a.N||b.setAttribute("title",a.I);a.I="";a.u=null};
g.WR=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.MF(a.R()))},S:[{F:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{F:"div",L:"ytp-watch-later-title",Z:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.pc();dP(this.tooltip);a.rb(this.element,this,28665);this.Na("click",this.onClick,this);this.P(a,"videoplayerreset",this.RV);this.P(a,
"appresize",this.sB);this.P(a,"videodatachange",this.sB);this.P(a,"presentingplayerstatechange",this.sB);this.sB();a=this.G.R();var c=g.Qz("yt-player-watch-later-pending");a.u&&c?(jya(),QJa(this)):this.Fa(2);g.N(this.element,"ytp-show-watch-later-title",g.MF(a));g.cf(this,g.$O(b.pc(),this.element))};
RJa=function(a,b){g.jM(function(){jya({videoId:b});window.location.reload()},"wl_button",g.gG(a.G.R()))};
QJa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Fa(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Cm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Fa(2);a.G.R().C&&a.G.Ka("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Fa(1);a.G.R().isMobile&&uP(a.tooltip,a.element);a.G.R().C&&a.G.Ka("WATCH_LATER_VIDEO_ADDED")};
uM(c,b).then(d,function(){a.isRequestPending=!1;SJa(a,"An error occurred. Please try again later.")})}};
SJa=function(a,b){a.Fa(4,b);a.G.R().C&&a.G.Ka("WATCH_LATER_ERROR",b)};
TJa=function(a,b){var c=a.G.R();if(b!==a.icon){switch(b){case 3:var d=CO();break;case 1:d=bL();break;case 2:d={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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.K("watch_later_iconchange_killswitch")?{F:"svg",T:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ja("icon",d);a.icon=b}};
YR=function(a){g.PO.call(this,a);var b=this;this.RC=(this.As=g.MF(this.api.R()))&&(this.api.R().isMobile||Zu()||Xu());this.LG=48;this.MG=69;this.wm=null;this.gq=[];this.Ec=new g.VO(this.api);this.qy=this.api.K("web_player_deprecate_double_tap_ux")?new wP:new xP(this.api);this.Aj=new g.X({F:"div",L:"ytp-chrome-top"});this.HA=[];this.tooltip=new g.TR(this.api,this);this.backButton=this.uw=null;this.channelAvatar=new fP(this.api,this);this.title=new SR(this.api,this);this.di=new g.VK({F:"div",L:"ytp-chrome-top-buttons"});
this.Hh=this.shareButton=this.Yi=null;this.Gh=new ZO(this.api,this,this.Aj.element);this.overflowButton=this.yh=null;this.Lf="1"===this.api.R().controlsType?new MR(this.api,this,this.Xd):null;this.contextMenu=new g.sP(this.api,this,this.Ec);this.AG=!1;this.iC=new g.X({F:"div",T:{tabindex:"0"}});this.hC=new g.X({F:"div",T:{tabindex:"0"}});this.aA=null;this.V2=this.YI=this.SB=!1;var c=a.Za(),d=a.R(),e=a.getVideoData();this.As&&(g.ho(a.getRootNode(),"ytp-embed"),g.ho(a.getRootNode(),"ytp-embed-playlist"),
this.RC&&(g.ho(a.getRootNode(),"ytp-embed-overlays-autohide"),g.ho(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.LG=60,this.MG=89);this.api.R().isMobile&&(g.ho(a.getRootNode(),"ytp-mobile"),this.api.R().I&&g.ho(a.getRootNode(),"ytp-embed-mobile-exp"));this.Jh=e&&e.Jh;g.M(this,this.Ec);g.AN(a,this.Ec.element,4);g.M(this,this.qy);g.AN(a,this.qy.element,4);e=new g.X({F:"div",L:"ytp-gradient-top"});g.M(this,e);g.AN(a,e.element,1);this.hL=new g.JL(e,250,!0,100);g.M(this,this.hL);g.M(this,
this.Aj);g.AN(a,this.Aj.element,1);this.gL=new g.JL(this.Aj,250,!0,100);g.M(this,this.gL);g.M(this,this.tooltip);g.AN(a,this.tooltip.element,4);var f=new IP(a);g.M(this,f);g.AN(a,f.element,5);f.subscribe("show",function(m){b.Ap(f,m)});
this.HA.push(f);this.uw=new JP(a,this,f);g.M(this,this.uw);d.showBackButton&&(this.backButton=new UO(a),g.M(this,this.backButton),this.backButton.xa(this.Aj.element));this.As||this.uw.xa(this.Aj.element);this.channelAvatar.xa(this.Aj.element);g.M(this,this.channelAvatar);g.M(this,this.title);this.title.xa(this.Aj.element);g.M(this,this.di);this.di.xa(this.Aj.element);d.B||(this.Yi=new g.WR(a,this),g.M(this,this.Yi),this.Yi.xa(this.di.element));var h=new g.RP(a,this);g.M(this,h);g.AN(a,h.element,5);
h.subscribe("show",function(m){b.Ap(h,m)});
this.HA.push(h);d.B||(this.shareButton=new g.QP(a,this,h),g.M(this,this.shareButton),this.shareButton.xa(this.di.element),this.Hh=new g.tP(a,this),g.M(this,this.Hh),this.Hh.xa(this.di.element));d.Sl&&(e=new XP(a),g.M(this,e),g.AN(a,e.element,4));this.As&&this.uw.xa(this.di.element);g.M(this,this.Gh);this.Gh.xa(this.di.element);d.B||(e=new aP(a,this,this.Gh),g.M(this,e),e.xa(this.di.element));this.yh=new FP(a,this);g.M(this,this.yh);g.AN(a,this.yh.element,5);this.yh.subscribe("show",function(){b.Ap(b.yh,
b.yh.qh())});
this.HA.push(this.yh);this.overflowButton=new EP(a,this,this.yh);g.M(this,this.overflowButton);this.overflowButton.xa(this.di.element);this.Lf&&g.M(this,this.Lf);"3"===d.controlsType&&(e=new PP(a,this),g.M(this,e),g.AN(a,e.element,9));g.M(this,this.contextMenu);this.contextMenu.subscribe("show",this.qT,this);e=new eM(a,new TO(a));g.M(this,e);g.AN(a,e.element,4);this.iC.Na("focus",this.tY,this);g.M(this,this.iC);this.hC.Na("focus",this.uY,this);g.M(this,this.hC);var l;(this.uo=d.cf?null:new g.BP(a,
c,this.contextMenu,this.Xd,this.Ec,this.qy,function(){return b.Wk()},null==(l=this.Lf)?void 0:l.xc))&&g.M(this,this.uo);
this.As||(this.wS=new VP(this.api,this),g.M(this,this.wS),g.AN(a,this.wS.element,4));this.IS=new PR(this.api,this);g.M(this,this.IS);g.AN(a,this.IS.element,4);this.fq.push(this.Ec.element);this.P(a,"fullscreentoggled",this.Eo);this.P(a,"offlineslatestatechange",function(){b.api.kz()&&wO(b.Xd,128,!1)});
this.P(a,"cardstatechange",function(){b.Dk()});
this.P(a,"resize",this.q0);this.P(a,"showpromotooltip",this.S0)};
UJa=function(a){var b=a.api.R(),c=g.W(a.api.zb(),128);return b.u&&c&&!a.api.isFullscreen()};
ZR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Bl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=ZR(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};
VJa=function(a,b,c){if(a.api.R().K("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.aA){if(!(b=!b)){var f,h;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)}e=b}e&&(a.aA=new KP(d,a,a.api),g.M(a,a.aA),g.AN(a.api,a.aA.element,9));var l;null==(l=a.aA)||NP(l,d,c)}}};
g.$R=function(a){g.bO.call(this,a);this.chrome=null;this.load()};
aS=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.U)()-f).toFixed(),shost:g.qi(a),trigger:b};WJa(h,a);c&&c(h);d&&!l&&d(new zG("pathprobe.net",h))}
var f=(0,g.U)();g.Cu(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
WJa=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())};
XJa=function(a){return new Promise(function(b){setTimeout(b,a)})};
bS=function(a){g.K.call(this);var b=this;this.U=a;this.j=new Map;this.C=[];this.B=!lF();this.V=g.TE(this.U.experiments,"html5_onesie_prewarm_interval_ms");this.N=new g.Zn(this.J,this.V,this);this.I=-1;g.M(this,this.N);YJa(this,g.Qz("yt-player-bandaid-host"));this.W=this.load();this.V&&this.W.then(function(){b.J()})};
YJa=function(a,b){var c=null==b?void 0:b.primary;a.u(0,c);c=c?ZJa(c):void 0;a.u(2,c);a.u(1,null==b?void 0:b.secondary)};
cS=function(a,b){return new g.LB("https://"+b+a.U.Di.baseUrl)};
$Ja=function(a,b){a="https://"+NB(b.location)+"/initplayback?c="+aG(a.U)+"&owc=1";b.start();aS(a,"pw",function(c){b.end();c.ht=b.zP;b.HZ=c})};
dS=function(a,b,c,d){aS("https://"+b+"/videoplayback?probe=1",c,function(e){d.K("html5_onesie_host_racing")&&!d.K("html5_onesie_probe_ec_hosts")&&(d.TC||d.pP());a.C.push(e)},function(e){a.C.push(e.details)})};
ZJa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
fS=function(a,b){var c,d,e,f,h,l;return g.z(function(m){if(1==m.j){c=cS(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.x(m,Eu(c.pe(),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.Rv("b204258371_no_host",c.pe(),e.xhr.status)));f=new g.LB(e.xhr.responseText);h=
NB(f);l=f.get("ms");a.U.K("html5_onesie_keep_redirector_params")?f.set("id",null):(f=cS(a,h),f.set("ms",l));return h&&aKa(h)?2!==b||eS(h)?m.return(f):m.return(Promise.reject(new g.Rv("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.Rv("b204258371_invalid",h,l)))})};
bKa=function(a){var b=a.C;a.C=[];return b};
aKa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
eS=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
gS=function(a,b){this.location=a;this.zP=b;this.endTimestamp=this.startTimestamp=-1};
hS=function(a){return a.endTimestamp<=a.startTimestamp?Infinity:a.endTimestamp-a.startTimestamp};
cKa=function(a){var b,c;null==(b=window.h5vcc)||null==(c=b.settings)||c.set("QUIC",+a)};
dKa=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.t(new Uint8Array(c))));a.close()}return b};
eKa=function(){for(var a=iS.length;4>a;a++){var b=g.mh("VIDEO");b.load();iS.push(new g.vO(b))}};
fKa=function(){};
g.jS=function(a,b,c,d){d=void 0===d?!1:d;VJ.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
gKa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.B;if(a.gj()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.Qd())&&a.isView()&&(a=a.mediaElement);if(a&&12<a.qs().length&&g.cI(d))return{msg:"played-ranges"};if(!d.B)return null;if(!d.B.j||!b.j)return{msg:"non-dash"};if(d.B.videoInfos[0].containerType!==b.videoInfos[0].containerType)return{msg:"container"};if(g.cI(e)&&g.cI(d))return{msg:"content-protection"};
e=b.j[0];d=d.B.j[0];a=e.audio;c=d.audio;return a.sampleRate===c.sampleRate||g.bE?(a.numChannels||2)!==(c.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:e.itag,cr:a.sampleRate,ni:d.itag,nr:c.sampleRate}};
kS=function(a,b,c,d){g.K.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.qn=new UJ;this.Cl=d-1E3*b.wd();this.qn.then(void 0,function(){});
this.timeout=new g.Zn(function(){e.Kf("timeout")},1E4);
g.M(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}};
lKa=function(a){var b,c,d,e,f,h,l,m,n;return g.z(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.lS.Fq("gtfta");return g.x(p,a.qn,2)}g.lS.Dp(b);c=a.j.Qd();if(c.Tg())return a.Kf("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!rE(a.C))return a.Kf("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.ls()!==a.C)return a.Kf("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=hKa(a);e=d.AQ;f=d.qO;h=d.zQ;a.j.Xh(!1,!0);l=iKa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{ys:!0,fL:3,re:"gapless_pseudo"}),l.play()||Iu());m=c.Ob();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.ma("gapless",m);a.j.ma("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();jKa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);jKa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.Dh(function(){!a.u.getVideoData().La&&g.fK(a.u.getPlayerState())&&kKa(a.u)});
mS(a,6);a.dispose();return p.return(Promise.resolve())})};
oKa=function(a){if(a.u.getVideoData().B){nS(a.u,a.C);mS(a,3);mKa(a);var b=nKa(a),c=b.vS;b=b.j4;c.subscribe("updateend",a.Eu,a);b.subscribe("updateend",a.Eu,a);a.Eu(c);a.Eu(b)}};
mKa=function(a){a.j.unsubscribe("internalvideodatachange",a.zr,a);a.u.unsubscribe("internalvideodatachange",a.zr,a);a.j.unsubscribe("mediasourceattached",a.zr,a);a.u.unsubscribe("statechange",a.bd,a)};
iKa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.jS(a,b,c,d)};
mS=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.qn.resolve(void 0))};
hKa=function(a){var b=a.j.Qd();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:oS(a.j,!0);c=Math.min(a.Cl/1E3,c)+b;var d=a.J?100:0;a=c-a.u.gj()+d;return{HX:b,AQ:a,qO:c,zQ:Infinity}};
nKa=function(a){return{vS:a.B.j.Wd,j4:a.B.u.Wd}};
pS=function(a){g.K.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.N=new fKa;this.B=null;this.I=function(){g.Dh(function(){pKa(b)})}};
qKa=function(a,b,c,d){d=void 0===d?0:d;a.Wv()||qS(a);a.C=new UJ;a.j=b;var e=c,f=a.app.Fc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*oS(f,!0);e>h&&(e=h-200,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Sa.addEventListener(g.uA("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.sA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,
oS(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,oS(b)+l));f=Zxa(e,h)||d;f!==d&&a.j.ma("qvaln",{st:d,at:f,rm:l,ct:h})}b=f;d=a.j;d.getVideoData().cf=!0;d.getVideoData().Ea=!0;g.rS(d,!0);e={};a.u&&(e=g.sS(a.u.hc.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.ma("queued",e);0!==b&&d.seekTo(b+.01,{ys:!0,fL:3,re:"videoqueuer_queued"});a.B=new kS(a.N,a.app.Fc(),a.j,c);c=a.B;Infinity!==c.status.status&&(mS(c,1),c.j.subscribe("internalvideodatachange",c.zr,c),
c.u.subscribe("internalvideodatachange",c.zr,c),c.j.subscribe("mediasourceattached",c.zr,c),c.u.subscribe("statechange",c.bd,c),c.j.subscribe("newelementrequired",c.aR,c),c.zr());return a.C};
pKa=function(a){var b,c,d;g.z(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&tS(a.app.Fc(),!0,!1);b=null;if(!a.B){e.Ma(2);break}g.ra(e,3);return g.x(e,lKa(a.B),5);case 5:g.ua(e,2);break;case 3:b=c=g.va(e);case 2:if(!a.j)return e.return();g.lS.gK("vqsp",function(){uS(a.app,a.j)});
g.lS.gK("vqpv",function(){a.app.playVideo()});
b&&rKa(a.j,b.message);d=a.C;qS(a);return e.return(d.resolve(void 0))}})};
qS=function(a){if(a.u){var b=a.u;a.app.Sa.removeEventListener(g.uA("vqueued"),a.I);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Kf("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.oN(a.app,1)&&a.j!==a.app.Fc()&&a.j.dispose();a.j=null;a.J=!1};
sKa=function(){var a=xoa();return!(!a||"visible"===a)};
uKa=function(a){var b=tKa();b&&document.addEventListener(b,a,!1)};
vKa=function(a){var b=tKa();b&&document.removeEventListener(b,a,!1)};
tKa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[wx+"VisibilityState"])return"";a=wx+"visibilitychange"}return a};
vS=function(){g.cz.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.zf()};
uKa(this.C);this.D=this.getVisibilityState(this.Bg(),this.isFullscreen(),this.wf(),this.isInline(),this.Vv(),this.Sv())};
wKa=function(a,b){var c;if(b.lG)for(c=0;c<b.lG.length;c++)jH(a,1,b.lG[c]);iH(a,2,b.UW);jH(a,3,b.Qr);gH(a,4,b.t4)};
xKa=function(a,b){kH(a,6,b.d4,wKa,3)};
yKa=function(a){this.end=this.start=a};
g.zS=function(a,b,c){g.K.call(this);var d=this;this.api=a;this.U=b;this.oa=c;this.qa=new Map;this.Ua=new Map;this.va=new Map;this.C=new Map;this.B=[];this.D=[];this.u=new Map;this.zc=new Map;this.N=new Map;this.yc=NaN;this.Kb=this.gb=null;this.Lc=new g.Zn(function(){wS(d,d.yc)});
this.events=new g.YD(this);this.isLiveNow=!0;this.Kd=g.TE(this.U.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.ra=new g.Zn(function(){d.Y=!0;var e=d.oa,f=d.Kd;e.ma("sdai",{aftimeout:f});e.yd(new zG("ad.fetchtimeout",{timeout:f}));xS(d);d.Yy(!1)},this.Kd);
this.Y=!1;this.Ha=new Map;this.Eb=[];this.W=null;this.Fd=new Set;this.Ra=[];this.Mc=[];this.Dd=[];this.rd=[];this.j=void 0;this.eb=0;this.Ya=!0;this.I=!1;this.Ea=[];this.Cd=new Set;this.Ed=new Set;this.Cb=new Set;this.Oj=0;this.V=null;this.ub=new Set;this.Bd=0;this.yp=this.Nc=!1;this.J="";this.Yb=0;this.Ld=g.TE(this.U.experiments,"html5_desync_cue_range_threshold");this.oa.getPlayerType();zKa(this.oa,this);this.La=xG(this.U);g.M(this,this.Lc);g.M(this,this.events);g.M(this,this.ra);yS(this)||(this.events.P(this.api,
g.uA("serverstitchedcuerange"),this.onCueRangeEnter),this.events.P(this.api,g.vA("serverstitchedcuerange"),this.onCueRangeExit))};
CKa=function(a,b,c,d,e,f,h,l){var m=AKa(a,f,f+e);a.U.K("html5_ssdai_log_ad_transition_info")&&a.oa.ma("sdai",{attl:1,len:(e/1E3).toFixed(3),enter:(f/1E3).toFixed(3),abid:l});a.Y&&a.oa.ma("sdai",{adaftto:1});var n=a.U.K("web_player_ssdai_reject_invalid_ads_killswitch"),p=a.oa;h=void 0===h?f+e:h;f===h&&!e&&a.U.K("html5_allow_zero_duration_ads_on_timeline")&&a.oa.ma("sdai",{attl0d:1});if(f>h&&(AS(a,{reason:"enterTime_greater_than_return",Ac:f,Vc:h}),n))return"";var q=1E3*p.getMinSeekableTime();if(f<
q&&(AS(a,{reason:"enterTime_less_than_minSeekableTime",Ac:f,h3a:q}),n))return"";p=1E3*p.getDuration();if(h>p&&(AS(a,{reason:"parent_return_greater_than_content_duration",Vc:h,f3a:p}),n))return"";p=null;if(n)for(n=g.r(a.D),q=n.next();!q.done;q=n.next()){q=q.value;if(f>=q.Ac&&f<q.Vc||h<=q.Vc&&h>q.Ac||h===q.Ac)return BS(a,b.video_id||"",f,h,q),"";f===q.Vc&&(p=q)}else n=g.kc(a.D,{Vc:f},function(w,y){return w.Vc-y.Vc}),0<=n&&(p=a.D[n],p.Vc>f&&BS(a,b.video_id||"",f,h,p));
if(m&&p)for(n=g.r(a.Ra.entries()),q=n.next();!q.done;q=n.next()){var v=g.r(q.value);q=v.next().value;v=v.next().value;if(v.identifier===m.identifier){a.Ra.splice(q,1);break}}else if(m&&a.U.K("web_player_ss_timeout_skip_ads"))return a.oa.ma("sdai",{rejectAttl:1}),l&&!Nl(a.rd,function(w){return w===l})&&(a.oa.ma("sdai",{rejectAdBreakAttl:1}),a.rd.push(l)),a.U.K("web_player_stop_timer_for_timedout_ab_killswitch")||CS(a),"";
m="ss_childplayback_"+BKa++;b.cpn||(b.cpn=g.xz(16));n=b.cpn;b=new g.HH(a.U,b);b.Dc=m;c={Dc:m,playerType:d,durationMs:e,Ac:f,Vc:h,cpn:n,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.sc(a.D,c,function(w,y){return w.Ac-y.Ac});
a.u.set(n,c);a.zc.set(m,c);a.oa.ma("sdai",{attlDone:h-f,acpn:n});l?c.Jj=l:p?c.Jj=p.Jj:c.Jj=c.cpn;if(f=c.Jj)(d=a.N.get(f))?(d.push(c),g.mc(d,function(w,y){return w.Ac-y.Ac})):a.N.set(f,[c]);
a.ra.isActive()&&(a.Y=!1,a.ra.stop(),xS(a),a.Yy(!0));return m};
DS=function(a,b,c){return a.U.experiments.fb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}};
DKa=function(a,b,c){return new g.sA(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
ES=function(a){return{cpn:a.oa.getVideoData().clientPlaybackNonce,durationMs:0,Ac:0,playerType:1,Vc:0,videoData:a.oa.getVideoData(),errorCount:0}};
HS=function(a,b,c){var d=a.I,e=ES(a),f=a.J;a.J="";var h=b.hg-c.hg;.5<Math.abs(h)&&a.oa.ma("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.u.get(b.adCpn);var m=a.u.get(c.adCpn)}m&&l&&(a.api.X("serverstitchedvideochange",l.Dc,l.gp),a.oa.ma("sdai",DS(a,"a2a",l)),a.Oj++,GS(a.oa,m,l,c.hg,b.hg,d,!!f))}else if(!b.isAd&&c.isAd){a.api.X("serverstitchedvideochange");a.oa.ma("sdai",DS(a,"a2c"));a.Oj=0;if(h=c.Od)a.eb=h.end;var n;c.adCpn&&
(n=a.u.get(c.adCpn));n&&GS(a.oa,n,e,c.hg,b.hg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.u.get(b.adCpn));p&&(a.eb=0,a.api.X("serverstitchedvideochange",p.Dc,p.gp),a.oa.ma("sdai",DS(a,"c2a",p)),a.Oj=1,GS(a.oa,e,p,c.hg,b.hg,d,!!f))}};
IS=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.kc(a.D,{Ac:c},function(e,f){return e.Ac-f.Ac});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.D[d],a.Vc>=c)?{qm:a,Ss:b}:{qm:void 0,Ss:b}};
JS=function(a,b){var c="";yS(a)?(c=b/1E3-a.Un(),c=a.oa.Lv(c)):(b=EKa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
EKa=function(a,b){a=g.r(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
wS=function(a,b){var c=a.Kb||a.api.Fc().getPlayerState();KS(a,!0);var d=b;a.U.K("web_player_ssdai_seek_without_offset_killswitch")&&(d=IS(a,b).Ss);a.oa.seekTo(d);a=a.api.Fc();b=a.getPlayerState();g.fK(c)&&!g.fK(b)?a.playVideo():g.W(c,4)&&!g.W(b,4)&&a.pauseVideo()};
KS=function(a,b){a.yc=NaN;a.Lc.stop();a.gb&&b&&LS(a.gb);a.Kb=null;a.gb=null};
MS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=[],h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,(l.Ac<d||l.Vc>e)&&f.push(l);a.D=f;d=b;e=c;f=g.r(a.C.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.oa.removeCueRange(h),a.C.delete(h.getId()),a.oa.ma("sdai",{rmAdCR:1}));d=IS(a,b/1E3);b=d.qm;d=d.Ss;b&&(d=1E3*d-b.Ac,e=b.Ac+d,b.durationMs=d,b.Vc=e,FKa(a,b));if(b=IS(a,c/1E3).qm){var m;d="playback_timelinePlaybackId_"+b.Dc+"_video_id_"+(null==
(m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Ac+"_parentReturnTimeMs_"+b.Vc;a.vz("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
GKa=function(a){a.qa.clear();a.Ua.clear();a.va.clear();a.C.clear();a.B=[];a.D=[];a.u.clear();a.zc.clear();a.N.clear();a.Ha.clear();a.Eb=[];a.W=null;a.Fd.clear();a.Ra=[];a.Mc=[];a.Dd=[];a.rd=[];a.Ea=[];a.Cd.clear();a.Ed.clear();a.Cb.clear();a.ub.clear();a.isLiveNow=!0;a.Y=!1;a.j=void 0;a.eb=0;a.Ya=!0;a.I=!1;a.Oj=0;a.V=null;a.Bd=0;a.Nc=!1;a.yp=!1;a.J=""};
FKa=function(a,b){var c=a.C.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.Ac+b.durationMs:d.end===c.start&&(d.end=b.Ac);c.start=b.Ac;c.end=b.Ac+b.durationMs}};
IKa=function(a,b,c,d,e){if(!a.yp)if(g.HKa(a,c))a.La&&a.oa.ma("sdai",{gdu:"undec",seg:c,itag:e});else return NS(a,b,c,d)};
NS=function(a,b,c,d){var e=a.Ha.get(c);if(!e){b+=a.Un();b=IS(a,b,1);var f;a.U.K("web_player_keep_decorating_last_chunk_killswitch")||b.qm||2!==(null==(f=OS(a,c-1,null!=d?d:2))?void 0:f.Ox)?e=b.qm:e=a.Ha.get(c-1)}return e};
JKa=function(a){if(a.Ea.length)for(var b=g.r(a.Ea),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.r(a.C.values());for(b=c.next();!b.done;b=c.next())a.oa.removeCueRange(b.value);c=g.r(a.B);for(b=c.next();!b.done;b=c.next())a.oa.removeCueRange(b.value);a.C.clear();a.B=[];a.qa.clear();a.Ua.clear();a.va.clear();a.j||(a.Ya=!0)};
OS=function(a,b,c){if(1===c&&a.qa.has(b))return a.qa.get(b);if(2===c&&a.Ua.has(b))return a.Ua.get(b);if(3===c&&a.va.has(b))return a.va.get(b)};
PS=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;KKa(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.oa.removeCueRange(e);if(a.Ea.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else KKa(a,b,c)};
KKa=function(a,b,c){b=DKa(b,c);c=!0;g.sc(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.oa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.oa.addCueRange(b),b=a.oa.zy("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
QS=function(a,b,c){if(void 0===c||!c){c=g.r(a.Eb);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.Eb.push(new yKa(b))}};
g.HKa=function(a,b){a=g.r(a.Eb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
BS=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",b3a:b,Ac:c,Vc:d,E2a:e.Dc,F2a:(null==(f=e.videoData)?void 0:f.videoId)||"",B2a:e.durationMs,C2a:e.Ac,D2a:e.Vc};AS(a,b)};
AS=function(a,b){a=a.oa;a.ma("timelineerror",b);a.yd(new zG("dai.timelineerror",b))};
LKa=function(a,b){var c=[];a=a.N.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};
MKa=function(a,b,c){var d=0;a=a.N.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};
NKa=function(a,b){var c=[];a=a.N.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};
OKa=function(a,b){var c=0;a=a.N.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.Vc!==b.Ac&&c++;return c};
PKa=function(a,b,c){var d=!1;if(c&&(c=a.N.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Vc!==e.Ac&&(e=e.cpn,b===e&&(d=!0),d&&!a.Ed.has(e)&&(a.oa.ma("sdai",{decoratedAd:e}),a.Ed.add(e)))}};
xS=function(a){a.La&&a.oa.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Bd)+"_isTimeout_"+a.Y})};
AKa=function(a,b,c){if(a.Ra.length)for(var d={},e=g.r(a.Ra),f=e.next();!f.done;d={Lq:d.Lq},f=e.next()){d.Lq=f.value;f=1E3*d.Lq.startSecs;var h=1E3*d.Lq.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return Nl(a.Dd,function(l){return function(m){return m.identifier===l.Lq.identifier}}(d))||(a.oa.ma("sdai",{adskip:b}),a.Dd.push(d.Lq)),d.Lq}};
CS=function(a){a.Y=!1;a.ra.isActive()&&xS(a);a.ra.stop();a.Yy(!1)};
yS=function(a){return a.U.experiments.fb("html5_ssdai_use_new_ad_report")};
RS=function(a,b,c){g.K.call(this);var d=this;this.api=a;this.U=b;this.j=c;this.I=new Map;this.u=[];this.B=this.J=null;this.V=NaN;this.D=this.C=null;this.N=new g.Zn(function(){QKa(d,d.V)});
this.W=[];this.Y=new g.Zn(function(){var e=d.W.pop();if(e){var f=e.Dc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.W.length&&g.$n(d.Y,4500))}});
this.events=new g.YD(this);c.getPlayerType();g.M(this,this.N);g.M(this,this.Y);g.M(this,this.events);this.events.P(this.api,g.uA("childplayback"),this.onCueRangeEnter);this.events.P(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.P(this.api,"presentingplayerstatechange",this.wh)};
UKa=function(a,b,c,d,e,f){var h=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 SS(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return SS(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,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.wd(),SS(a,m,h,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ac&&e<q.Vc)return SS(a,"overlappingEnter",h,l),"";if(f<=q.Vc&&f>q.Ac)return SS(a,"overlappingReturn",h,l),"";if(f===q.Ac)return SS(a,"outOfOrder",h,l),"";e===q.Vc&&(n=q)}h="cs_childplayback_"+RKa++;l={Od:TS(d,!0),Cl:Infinity,target:null};var v={Dc:h,playerVars:b,playerType:c,durationMs:d,Ac:e,Vc:f,Cp:l};a.u=a.u.concat(v).sort(function(A,B){return A.Ac-B.Ac});
n?SKa(a,n,{Od:TS(n.durationMs,!0),Cl:a.U.K("timeline_manager_transition_killswitch")?Infinity:n.Cp.Cl,target:v}):(b={Od:TS(e,!1),Cl:e,target:v},a.I.set(b.Od,b),m.addCueRange(b.Od));b=!0;if(a.j===a.api.Fc()&&(m=1E3*m.getCurrentTime(),m>=v.Ac&&m<v.Vc)){var w=a.api.Fc().getPlayerState(),y=m-v.Ac;yh(function(){TKa(a,v,y/1E3,w)});
b=!1}b&&(a.W.unshift(v),g.$n(a.Y,0));return h};
TS=function(a,b){return new g.sA(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
VKa=function(a,b,c,d){a.B=d;a.api.ZB(a.j,c,b)};
WKa=function(a,b,c,d){a.B=d;d=b.Dc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
SKa=function(a,b,c){var d=b.Cp;b.Cp=c;US(a,b)&&(c=a.api.Fc(),d.Od===a.B&&VS(a),c.removeCueRange(d.Od),c.addCueRange(b.Cp.Od))};
VS=function(a){a.J=null;a.B=null;a.api.Wv()||a.api.clearQueue()};
XKa=function(a,b){US(a,b)||SS(a,"childPlaybackIsNotPresenting");return b.Vc===b.Ac+b.durationMs?(a=a.api.Fc(),b.Ac+1E3*a.getCurrentTime()):b.Vc};
WS=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.Ac/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{qm:d,Ss:b-e};c=f-d.Vc/1E3}return{qm:null,Ss:b-c}};
QKa=function(a,b){var c=a.D||a.api.Fc().getPlayerState();XS(a,!0);b=a.U.K("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.al();var d=WS(a,b);b=d.qm;d=d.Ss;var e=b&&!US(a,b)||!b&&a.j!==a.api.Fc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||VS(a);b?TKa(a,b,d,c):YS(a,d,c)};
YS=function(a,b,c){var d=a.j,e=a.api.Fc();d!==e&&a.api.Io();d.seekTo(b,{re:"application_timelinemanager"});YKa(a,c)};
TKa=function(a,b,c,d){var e=US(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.HH(a.U,b.playerVars);f.Dc=b.Dc;a.api.aq(f,b.playerType)}f=a.api.Fc();e||f.addCueRange(b.Cp.Od);f.seekTo(c,{re:"application_timelinemanager"});YKa(a,d)};
YKa=function(a,b){a=a.api.Fc();var c=a.getPlayerState();g.fK(b)&&!g.fK(c)?a.playVideo():g.W(b,4)&&!g.W(c,4)&&a.pauseVideo()};
XS=function(a,b){a.V=NaN;a.N.stop();a.C&&b&&LS(a.C);a.D=null;a.C=null};
US=function(a,b){a=a.api.Fc();return!!a&&a.getVideoData().Dc===b.Dc};
ZKa=function(a){var b=a.u.find(function(e){return US(a,e)});
if(b){var c=a.api.Fc();VS(a);var d=new g.$J(8);b=XKa(a,b)/1E3;YS(a,b,d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}};
ZS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.r(a.I),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Cl>=d&&l.target&&l.target.Vc<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.r(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ac>=d&&l.Vc<=e){var m=a;m.J===l&&VS(m);US(m,l)&&m.api.Io()}else f.push(l);a.u=f;d=WS(a,b/1E3);b=d.qm;d=d.Ss;b&&(d*=1E3,$Ka(a,b,d,b.Vc===b.Ac+b.durationMs?b.Ac+d:b.Vc));(b=WS(a,c/1E3).qm)&&
SS(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Dc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ac+" parentReturnTimeMs="+b.Vc+"}.Child playbacks can only have duration updated not their start."))};
$Ka=function(a,b,c,d){b.durationMs=c;b.Vc=d;d={Od:TS(c,!0),Cl:c,target:null};SKa(a,b,d);US(a,b)&&1E3*a.api.Fc().getCurrentTime()>c&&(b=XKa(a,b)/1E3,c=a.api.Fc().getPlayerState(),YS(a,b,c))};
SS=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
bLa=function(a){a&&"web"!==a&&aLa.includes(a)};
bT=function(a,b){g.K.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Zn(function(){$S(c);aT(c)});
g.M(this,this.j)};
dT=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())cT(a,d.value,b);a.data=[];aT(a)};
$S=function(a){var b=(0,g.U)();a.data.forEach(function(c){c.expire<b&&cT(a,c,!0)});
a.data=g.wm(a.data,function(c){return!(c.expire<b)})};
cT=function(a,b,c){c&&a.u&&a.u(b.value)};
aT=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.eT=function(a){this.tag=a};
dLa=function(a,b){cLa.apply(null,[6,a,b].concat(g.t(g.za.apply(2,arguments))))};
cLa=function(a,b,c){var d=g.za.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.qz(new (Function.prototype.bind.apply(g.Rv,[null,f].concat(g.t(d)))),e);d.unshift(f);d=d.join(", ");e=eLa.get(b);e||(e="ytplog."+b,f=5,window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e]),eLa.set(b,f),e=f);a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
fT=function(){g.K.call(this);this.j=new bT(5,null);g.M(this,this.j);this.u=new bT(15,null);g.M(this,this.u)};
fLa=function(a,b){return b?!!a.j.get(b):!1};
gT=function(){g.Co.call(this);this.D=new Map};
hT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
gLa=function(a){return a.data[a.j]||0};
iT=function(a){g.K.call(this);this.B=a;this.j=new Map;this.u=new g.Zn(this.sample,250,this);g.M(this,this.u);this.start()};
jT=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||[]};
kT=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:gLa(c.buffer))||0};
lT=function(a){this.u=a;this.j=NaN;this.buffer=new hT(100)};
hLa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
mT=function(a){g.K.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)};
oT=function(a){g.X.call(this,{F:"div",Ca:["html5-video-player"],T:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{F:"div",L:g.nT.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var b=this;this.app=a;this.Zx=this.ya(g.nT.VIDEO_CONTAINER);this.xw=new g.vl(0,0,0,0);this.Jb=null;this.RD=new g.vl(0,0,0,0);this.YH=this.bJ=this.aJ=NaN;this.JC=this.OD=this.XJ=this.ZN=!1;this.QG=NaN;this.BI=!1;this.wz=null;this.wJ=function(){b.element.focus()};
this.AD=function(){b.app.Sa.X("playerUnderlayVisibilityChange","visible");b.Jb.classList.remove(g.nT.VIDEO_CONTAINER_TRANSITIONING);b.Jb.removeEventListener(iLa,b.AD);b.Jb.removeEventListener("transitioncancel",b.AD)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.R();e.transparentBackground&&this.hp("ytp-transparent");"0"===e.controlsType&&this.hp("ytp-hide-controls");g.ho(this.element,"ytp-exp-bottom-control-flexbox");e.K("html5_player_bottom_linear_gradient")&&g.ho(this.element,"ytp-linear-gradient-bottom-experiment");e.K("enable_new_paid_product_placement")&&!g.oG(e)&&g.ho(this.element,"ytp-exp-ppp-update");qG(e)&&g.ho(this.element,"ytp-exp-hybrid-controls");yra(this.element,"version",jLa(a));this.xS=!1;this.Cy=new g.Qg(NaN,NaN);kLa(this);this.P(a.Sa,
"onMutedAutoplayChange",this.onMutedAutoplayChange)};
kLa=function(a){function b(){a.Jb&&pT(a);qT(a)!==a.BI&&a.resize()}
function c(h,l){a.Qp(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.RD=new g.vl(0,0,0,0);a.xw=new g.vl(0,0,0,0)}
var f=a.app.Sa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.cf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
lLa=function(a){var b=g.oN(a.app);if(b=b?b.getVideoData():null){if(g.kI(b)||g.lI(b)||g.nI(b))return 16/9;if(UH(b)&&b.B.j)return a=b.B.videoInfos[0].video,rT(a.width,a.height)}return(a=a.Jb)?rT(a.videoWidth,a.videoHeight):16/9};
mLa=function(a,b,c,d){var e=c,f=rT(b.width,b.height);a.ZN?e=c<f?Infinity:0:isNaN(a.YH)?isNaN(a.bJ)||(e=a.bJ):e=a.YH;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};
rT=function(a,b){return 1>Math.abs(sT*b-a)||1>Math.abs(sT/a-b)?sT:a/b};
qT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.oN(a.app);if(!b||b.Km())return!1;var c=a.app.Sa.zb();a=!g.W(c,2)||!a.app.R().K("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ea;b=g.W(c,1024);return c&&a&&!b&&!c.isCued()};
pT=function(a){var b="3"===a.app.R().controlsType&&!a.JC&&qT(a)&&!a.app.Bz||!1;a.Jb.controls=b;a.Jb.tabIndex=b?0:-1;b?a.Jb.removeEventListener("focus",a.wJ):a.app.R().K("disable_focus_redirect")||a.Jb.addEventListener("focus",a.wJ)};
nLa=function(a){var b=a.Ji(),c=1,d=!1,e=mLa(a,b,a.getVideoAspectRatio()),f=a.app.R(),h=f.K("enable_desktop_player_underlay"),l=Vu(),m=g.TE(f.experiments,"player_underlay_min_player_width");m=h&&a.XJ&&a.getPlayerSize().width>m;if(qT(a)){var n=lLa(a);var p=isNaN(n)||g.yw||tT&&g.Zv||m;Wu&&!g.yc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.K("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.vl(p,0,b.width,b.height)):p=new g.vl(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.vl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Zv&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));f.K("web_player_fit_cover_killswitch2")||g.N(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.xS)a.Jb.style.display="";a.BI=!0}else{p=-b.height;Wu?p*=window.devicePixelRatio:g.rG&&(p-=window.screen.height);p=new g.vl(0,p,b.width,b.height);if(l||a.xS)a.Jb.style.display="none";a.BI=!1}wl(a.RD,
p)||(a.RD=p,g.UF(f)?(a.Jb.style.setProperty("width",p.width+"px","important"),a.Jb.style.setProperty("height",p.height+"px","important")):g.Il(a.Jb,p.getSize()),d=new g.Gg(p.left,p.top),g.El(a.Jb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.vl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);wl(a.xw,b)||(a.xw=b,d=!0);g.yl(a.Jb,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.OD&&(m&&(a.Jb.addEventListener(iLa,a.AD),a.Jb.addEventListener("transitioncancel",a.AD),a.Jb.classList.add(g.nT.VIDEO_CONTAINER_TRANSITIONING)),
a.OD=m,a.app.Sa.X("playerUnderlayVisibilityChange",a.OD?"transitioning":"hidden"));return d};
oLa=function(){this.csn=g.Bz();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
pLa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
qLa=function(a){if(a.csn!==g.Bz())if("UNDEFINED_CSN"===a.csn)a.csn=g.Bz();else{var b=g.Bz(),c=g.Az();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.Fz(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.Gz(b,c)}};
uT=function(a,b,c,d,e){g.X.call(this,{F:"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"};
vT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.mh("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.mh("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="")};
wT=function(a){var b=null;b={F:"button",Ca:["html5-video-info-panel-close","ytp-button"],T:{title:"close"},Z:"[X]"};g.X.call(this,{F:"div",L:"html5-video-info-panel",S:[b,{F:"div",L:"html5-video-info-panel-content",S:[{F:"div",S:[{F:"div",Z:"Video ID / sCPN"},{F:"span",Z:"{{video_id_and_cpn}}",L:"ytp-sfn-cpn"}]},{F:"div",S:[{F:"div",Z:"Viewport / Frames"},{F:"span",Z:"{{dims_and_frames}}"}]},{F:"div",S:[{F:"div",Z:"Current / Optimal Res"},{F:"span",Z:"{{resolution}}"}]},{F:"div",S:[{F:"div",Z:"Volume / Normalized"},
{F:"span",Z:"{{volume}}"}]},{F:"div",S:[{F:"div",Z:"Codecs"},{F:"span",Z:"{{codecs}}"}]},{F:"div",T:{style:"{{shader_info_style}}"},S:[{F:"div",Z:"Shader Info"},{F:"span",Z:"{{shader_info}}"}]},{F:"div",T:{style:"{{color_style}}"},S:[{F:"div",Z:"Color"},{F:"span",Z:"{{color}}"}]},{F:"div",T:{style:"{{drm_style}}"},S:[{F:"div",Z:"Protected"},{F:"span",Z:"{{drm}}"}]},{F:"div",T:{style:"{{bandwidth_style}}"},S:[{F:"div",Z:"Connection Speed"},{F:"span",S:[{F:"span",Z:"{{bandwidth_chart}}"},{F:"span",
Z:"{{bandwidth_kbps}}"}]}]},{F:"div",T:{style:"{{network_activity_style}}"},S:[{F:"div",Z:"Network Activity"},{F:"span",S:[{F:"span",Z:"{{network_activity_chart}}"},{F:"span",Z:"{{network_activity_bytes}}"}]}]},{F:"div",S:[{F:"div",Z:"Buffer Health"},{F:"span",S:[{F:"span",Z:"{{buffer_health_chart}}"},{F:"span",Z:"{{buffer_health_seconds}}"}]}]},{F:"div",T:{style:"{{live_latency_style}}"},S:[{F:"div",Z:"Live Latency"},{F:"span",S:[{F:"span",Z:"{{live_latency_chart}}"},{F:"span",Z:"{{live_latency_secs}}"}]}]},
{F:"div",T:{style:"{{live_mode_style}}"},S:[{F:"div",Z:"Live Mode"},{F:"span",Z:"{{live_mode}}"}]},{F:"div",T:{style:"{{playback_categories_style}}"},S:[{F:"div",Z:"Playback Categories"},{F:"span",Z:"{{playback_categories}}"}]},{F:"div",S:[{F:"div",Z:"Mystery Text"},{F:"span",Z:"{{debug_info}}"}]},{F:"div",S:[{F:"div",Z:"Date"},{F:"span",Z:"{{date}}"}]},{F:"div",T:{style:"{{cotn_and_local_media_style}}"},S:[{F:"div",Z:"COTN / Local Media"},{F:"span",Z:"{{cotn_and_local_media}}"}]},{F:"div",T:{style:"{{release_style}}"},
S:[{F:"div",Z:"Player Release"},{F:"span",Z:"{{release_name}}"}]}]}]});b?(b=this.ya("html5-video-info-panel-close"),this.P(b,"click",this.hide)):this.P(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 uT(300,1,150,b,c);g.M(this,this.j);this.Ja("bandwidth_chart",this.j);this.B=new uT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.M(this,this.B);this.Ja("live_latency_chart",this.B);this.u=new uT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.M(this,this.u);this.Ja("buffer_health_chart",this.u);this.C=new uT(300,1,150,d,c);g.M(this,this.C);this.Ja("network_activity_chart",this.C);this.delay=
new g.Zn(this.Fa,500,this);g.M(this,this.delay);this.Sa=a};
xT=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
rLa=function(a,b){var c=Math.min(2.5,BF(a.schedule));a=yT(a);return b-c*a};
zT=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Oe&&(d=Math.abs(d));d/=a.playbackRate;var f=1/DF(a.schedule);c=Math.max(.9*(d-3),BF(a.schedule)+2048*f)/f*a.policy.jr/(b+c);c=Math.min(c,d);a.policy.og&&e&&(c=Math.max(c,a.policy.og));return sLa(a,c,b)};
sLa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.ir*c),Math.min(Math.min(a.policy.Ra,31*c),Math.ceil(b*c))))||65536};
yT=function(a){return DF(a.schedule,!a.policy.Mk,a.policy.gr)};
AT=function(a){return yT(a)/a.playbackRate};
BT=function(a,b,c,d,e){this.Ga=a;this.j=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.u=0;this.D=!1;this.B=this.j.isManifestless&&!this.j.xf;this.C=null};
tLa=function(a,b){var c=a.j.index,d=a.u.Ia;AD(c,d)||b&&b.Ia===d?(a.D=!AD(c,d),a.N=!AD(c,d)):(a.D=!0,a.N=!0)};
vLa=function(a,b,c,d){if(!b.j.Sf())return d=a.policy.Nu&&!!b.B.length&&b.B[0]instanceof CT,0===c||d||DT(b),c;a=ET(b,c);if(!isNaN(a))return a;b.dj();return d&&(d=jE(d.yg(),c),!isNaN(d))?(FT(b,d+uLa),c):FT(b,c)};
zLa=function(a,b,c,d){if(a.Cg()&&a.u){var e=wLa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.B=!0;g.Dh(function(){a.Ga.ma("seekreason",{reason:"behindMinSq",tgt:e});xLa(a,e)});
return}}c?a.videoTrack.N=!1:a.audioTrack.N=!1;var f=a.policy.mu||!a.B;0<=ET(a.videoTrack,a.u)&&0<=ET(a.audioTrack,a.u)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Ga.ma("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.Dh(function(){if(a.B||!a.policy.Ya)yLa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,n=!a.videoTrack.N&&!a.audioTrack.N;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.u>=h&&a.u<h+l+.1?((c?a.videoTrack:a.audioTrack).D=
!1,a.videoTrack.D||a.audioTrack.D||(a.Ga.ma("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Ga.ma("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:h,duration:l,isVideo:c}),a.seek(a.u)):(a.Ga.ma("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ga.oa.seekTo(h+.1,{ys:!0,re:"chunkSelectorSynchronizeMedia",jp:!0})))}})};
wLa=function(a,b,c){if(!a.Cg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.u);return(AD(c,a.j.Xe)||b.Ia===a.j.Xe)&&d<a.j.Xe?a.j.getMinSeekableTime():-1};
xLa=function(a,b){a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.Ga.oa.seekTo(b+.1,{ys:!0,re:"chunkSelectorSynchronize",jp:!0}))};
yLa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.Gg(),c=!c&&a.audioTrack.Gg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.Gg().info.Ia,-1!==b.I){var d=Math.max(b.j.index.getStartTime(b.I),c.j.index.getStartTime(c.I));CE(a.j)&&432E3<Math.abs(d-CE(a.j))&&cya(a.j);g.Dh(function(){return xLa(a,d)});
a.Ga.ma("initManifestlessSync",{st:d,a:a.audioTrack.I,v:a.videoTrack.I});a.C&&(a.C.resolve(d+.1),a.C=null)}};
ALa=function(a){this.j=a;this.N=this.va=this.I=this.ra=this.B=this.C=this.J=this.qa=this.W=this.Y=this.V=0;this.ticks={}};
BLa=function(a){a.V||(a.V=(0,g.U)(),SN("mb_s",a.V,a.j))};
GT=function(a,b,c,d,e,f){g.cz.call(this);this.Ga=a;this.N=b;this.policy=c;this.I=d;this.va=e;this.ra=this.j=null;this.B=this.D=NaN;this.J=0;this.W=NaN;this.C=null;this.V=new Map;this.Y="";this.qa=0;this.u=f?1:0};
HT=function(a,b,c){b.startSecs+=isNaN(a.J)?0:a.J;a=a.N;a.J.push(b);a.X("cuepointsadded",c)};
CLa=function(a){return 1===a.u||2===a.u||3===a.u};
DLa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
FLa=function(a,b,c,d){ELa(a.I,d,c,b);ELa(a.va,d,c,b);EE(a.N,d,!0);EE(a.N,d,!1);a.ma("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
GLa=function(a,b){if(a.j){var c=a.j.jf.durationSecs-(b.startTime+a.J-a.j.jf.startSecs);0>=c||(c=new kA(a.j.jf.startSecs-(isNaN(a.J)?0:a.J),c,a.j.jf.context,a.j.jf.identifier,"stop",a.j.jf.j+1E3*b.duration),a.ma("cuepointdiscontinuity",{segNum:b.Ia}),HT(a,c,b.Ia))}};
IT=function(a,b,c){a.u!==b&&(a.ma("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
JT=function(a,b,c,d){(void 0===d?0:d)?IT(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&IT(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
KT=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
HLa=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Ga=a;this.ra=b;this.policy=c;this.C=d;this.I=e;this.eb=f;this.logger=new g.eT("dash/abr");this.j=GH;this.B=this.J=null;this.V=-1;this.Ha=!1;this.nextVideo=this.u=null;this.D=[];this.va={};this.videoIndex=0;this.Ua=this.W=this.N=!1;this.qa=0;this.Ra=new Set;this.Ya=!1;this.Y=new Map;this.La=0;this.gb=!1;this.Ea=null};
MLa=function(a,b,c){LT(a,b);ILa(a,c);a.J=a.u;JLa(a);KLa(a);a.B=a.nextVideo;a.J=a.u;return LLa(a)};
NLa=function(a,b){if(a.j.equals(b))return null;if("m"===b.reason&&b.isLocked())return LT(a,b),a.videoIndex=a.D.length-1,MT(a),NT(a),a.W=a.W||a.B!==a.nextVideo,a.B=a.nextVideo,new KT(a.u,a.B,b.reason);"r"===b.reason&&(a.V=-1);LT(a,b);NT(a);if("r"===b.reason&&a.nextVideo===a.B)return new KT(a.u,a.nextVideo,b.reason);a.B&&a.nextVideo&&OT(a,a.B.info)<OT(a,a.nextVideo.info)&&(b=a.j.reason,a.N=a.N||"r"===b||"u"===b||"v"===b);return null};
PT=function(a,b,c){a.La+=1;if(void 0===c?0:c)a.gb=!0;c=6E4*Math.pow(2,a.La);a.Y.set(b.info.id,(0,g.U)()+c);a.V=-1;LT(a,a.j)};
QT=function(a){if(a.Y.size){for(var b=(0,g.U)(),c=g.r(a.Y.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.Y.clear()}return!1};
OLa=function(a,b){return new KT(a.J,a.B,b||a.j.reason)};
LLa=function(a){a.Ha?a.Ha=!1:a.V=(0,g.U)();a.N=!1;return new KT(a.J,a.B,a.j.reason)};
PLa=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],h=f&&TD(f)&&f.video.j>a.policy.N,l=e<=a.policy.N?TD(d):DB(d);if(!f||h||l)c[e]=d}return c};
LT=function(a,b){a.j=b;var c=a.I.videoInfos;if(!a.j.isLocked()){var d=(0,g.U)();c=g.wm(c,function(q){if(q.Pb>this.policy.Pb)return!1;var v=this.C.j[q.id],w=v.info.j;return this.policy.Fu&&this.Ra.has(w)||this.Y.get(q.id)>d||4<v.u.u||4<v.J?!1:!0},a);
a.gb&&QT(a)&&(c=g.wm(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos);
var e=g.wm(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.Kk&&tT&&g.Zv&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)}));
if(0<e.length)if(oE()){var h=PLa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.j===h[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=PLa(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,v){return OT(a,q)-OT(a,v)});
c={};for(b=1;b<e.length;c={SA:c.SA,RA:c.RA},b++)c.RA=e[b-1],c.SA=e[b],c.RA.video.width>c.SA.video.width?(g.Yb(e,b),b--):OT(a,c.RA)*a.policy.u>OT(a,c.SA)&&(g.Yb(e,b-1),b--);c=e[e.length-1];a.Ya=!!a.B&&!!a.B.info&&a.B.info.j!==c.j;a.D=e;rHa(a.policy,c)};
ILa=function(a,b){b?a.u=a.C.j[b]:(b=g.Ub(a.I.j,function(c){return!!c.Ic&&c.Ic.isDefault}),a.policy.cm&&!b&&(b=g.Ub(a.I.j,function(c){return c.audio.j})),b=b||a.I.j[0],a.u=a.C.j[b.id]);
MT(a)};
QLa=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=AT(a.ra)/a.policy.u;return OT(a,b.info)+OT(a,a.D[c])>d};
MT=function(a){if(!a.u||!a.policy.j&&!a.u.info.Ic){var b=a.I.j;a.u&&a.policy.cm&&(b=b.filter(function(e){return e.audio.j===a.u.info.audio.j}),b.length||(b=a.I.j));
a.u=a.C.j[b[0].id];if(1<b.length){var c=!1;if(a.policy.Ua){if(c=!0,a.policy.fm){var d=Rb(b,function(e){return"250"===e.itag});
0<=d&&(a.u=a.C.j[b[d].id],c=QLa(a,a.u))}}else c=a.j.isLocked()?240>a.j.j:QLa(a,a.u);c&&(a.u=a.C.j[g.Qb(b).id])}}};
NT=function(a){a.policy.Di&&(a.Ea=a.Ea||new g.Zn(function(){a.policy.Di&&a.B&&!QT(a)&&1===Math.floor(10*Math.random())?(PT(a,a.B),a.N=!0):a.Ea.start()},6E4),g.$n(a.Ea));
if(!a.nextVideo||!a.policy.j)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Qb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=AT(a.ra),d=OT(a,a.u.info),e=c/a.policy.B-d;0<b&&!(OT(a,a.D[b])<=e);b--);for(var f=c/a.policy.u-d;b<a.D.length-1&&!(OT(a,a.D[b+1])>=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var h=a.j;return"Adapt to: "+vxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
f.toFixed(0)+", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
a.videoIndex=b}};
JLa=function(a){var b=a.policy.B,c=AT(a.ra),d=c/b-OT(a,a.u.info);b=g.Vb(a.D,function(e){return OT(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: "+vxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
KLa=function(a){if(a.eb.length){var b=a.eb,c=function(d,e){if("f"===d.info.j||b.includes($C(d,a.C.nf,a.Ga.Nf(),a.policy.Eb)))return d;for(var f={},h=0;h<e.length;f={VA:f.VA,XA:f.XA},h++){var l=a.C.j[e[h].id],m=$C(l,a.C.nf,a.Ga.Nf(),a.policy.Eb);if(b.includes(m)){m=d.info.j;var n=l.info.j;if(m===n||oE()){if(d.info.B!==l.info.B)return a.Ga.ma("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.VA=d.info.itag;f.XA=l.info.itag;a.Ga.ma("ombifa",{f:f.VA,t:f.XA});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.VA+" to "+p.XA+" based on prefetched media."}}(f));
a.Ha=!0;return l}a.Ga.ma("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Ga.ma("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.u=c(a.u,a.I.j)}};
OT=function(a,b){if(!a.va[b.id]){var c=a.C.j[b.id].index.getLocalMaxByterate(a.qa,15);c=b.Wu&&a.B&&a.B.index.isLoaded()?c||b.Wu:c||b.Pb;a.va[b.id]=c}c=a.va[b.id];a.policy.Ed&&b.video&&b.video.j>a.policy.Ed&&(c*=1.5);return c};
RLa=function(a,b){a=Cca(a.C.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
SLa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(Mxa(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
TLa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
uAa=function(a,b){var c,d,e;return g.z(function(f){if(1==f.j){if(!b)return f.return(b);c=RT.Fq("woe");d=new g.mF(a.u);return g.x(f,d.encrypt(b,a.j),2)}e=f.u;RT.Dp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
zAa=function(a,b){var c,d,e;return g.z(function(f){if(1==f.j){if(!b)return f.return(b);c=RT.Fq("wod");d=new g.mF(a.u);return g.x(f,d.decrypt(b,a.j),2)}e=f.u;RT.Dp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
ST=function(a,b,c){this.policy=a;this.j=b;this.qa=c;this.B=this.u=0;this.Je=null;this.W=new Set;this.V=[];this.indexRange=this.initRange=null;this.N=new UJ;this.Y=this.ra=!1;a:{if(this.policy.He&&this.policy.Hu){b={};c=g.r(this.policy.He);for(var d=c.next();!d.done;b={TA:b.TA,UA:b.UA},d=c.next())if(d=g.nu(d.value),b.TA=+d.clen,b.UA=+d.csz,0<b.TA&&0<b.UA&&this.policy.j===d.docid&&this.j.info.id===d.fmtid&&this.j.info.lastModified===+d.lmt){c={};b=(c.clen=b.TA,c.csz=b.UA,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.J=b.ck,this.I=b.civ):(this.chunkSize=a.Gu,this.C=0,this.J=g.xz(16),this.I=g.xz(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new TLa(this.J,this.I))};
TT=function(a){return!!a.Je&&hD(a.Je)};
WLa=function(a,b){if(!TT(a)&&!a.isDisposed()){if(!(a.ra||(a.ra=!0,0<a.C))){var c=UT(a);c=xH(a.policy.j,a.j.info,VT(a),c,a.policy.Ea,a.policy.ub);WT(a,c)}if(1===b.info.type){if(a.Je){XT(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=cD(0,b.j.totalLength)}else if(2===b.info.type)a.Je&&1===a.Je.type||XT(a,Error("Woffle: Index before init")),a.indexRange=cD(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.Je){XT(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Je.type&&!kD(a.Je,b.info)&&(a.V=[],b.info.Ia!==lD(a.Je)||0!==b.info.Gb))return;if(b.info.Ae){c=g.r(a.V);for(var d=c.next();!d.done;d=c.next())ULa(a,d.value);a.V=[]}else{a.V.push(b);a.Je=b.info;return}}else{XT(a,Error("Woffle: Unexpected slice type"));return}a.Je=b.info;ULa(a,b);VLa(a)}};
ULa=function(a,b){var c=0,d=YB(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.Gb;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.lx=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.lx);a.D.set(f,a.u);a.u+=e.lx;c+=e.lx;if(a.u===a.D.length){if(b.info===a.Je&&TT(a)&&c===d.length)break;f=UT(a);f=xH(a.policy.j,a.j.info,VT(a),f,a.policy.Ea,a.policy.ub,a.B,a.D,a.crypto);a.policy.Cb&&
a.W.add(f);WT(a,f);a.isDisposed()||(f=UT(a),a.qa(VT(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={lx:e.lx}}};
VLa=function(a){if(TT(a))if(a.Je&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=XLa(a),d=a.policy.j;if(a.policy.Cb)Promise.all(a.W).then(function(){var f=xH(d,a.Je.j.info,VT(a,!0),c,a.policy.Ea,a.policy.ub,a.B,b,a.crypto);WT(a,f,!0)});
else{var e=xH(a.policy.j,a.Je.j.info,VT(a,!0),c,a.policy.Ea,a.policy.ub,a.B,b,a.crypto);WT(a,e,!0)}}else XT(a,new ZT("Woffle: Expect always re-mark currentChunkOffset at EOS"));else XT(a,new ZT("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
UT=function(a){return{downloadedEndTime:Math.round(a.Je?a.Je.B:0),maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Wu)}};
XLa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Wu)}};
VT=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Je||XT(a,new ZT("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.j,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.J,b.civ=a.I);var c="local://localhost/videoplayback?"+ku(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Pb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:Kwa(d),indexRange:null==(e=a.indexRange)?void 0:Kwa(e),url:c};if(d=a.j.info.B)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};
WT=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.policy.Cb&&a.W.delete(b);(c||4===d)&&a.N.resolve(d)},function(d){a.N.reject(d)})};
XT=function(a,b){4!==g.sH(a.policy.j)&&(g.tH(a.policy.j,4),g.rz(b),a.N.reject(new ZT(b.message)))};
ZT=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
YLa=function(a){a=g.EC(a,1886614376);for(var b=g.r(a),c=b.next();!c.done;c=b.next());return g.Pk(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
ZLa=function(a){var b=Qk(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
$La=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.Ox=f};
$T=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.u=[];this.We=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.We=!0};
bMa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=aMa;if(aU.length){var p=aU.pop();Hba(p);p.j.init(n,void 0,void 0,void 0);m=p}else m=new te(n);try{var q=Ke(f);var v=Zba(new q.Nr,m,q);break b}finally{m.j.clear(),m.C=-1,m.u=-1,100>aU.length&&aU.push(m)}v=
void 0}m=v;if(null!==m){var w=m;break a}}catch(y){}}c+=e}w=null}catch(y){w=null}}if(null!=w)for(b=g.md(w,7),null==b||a.We||(a.cryptoPeriodIndex=b),b=g.md(w,10),null!=b&&0<b&&!a.We&&(a.j=b),w=g.r(sba(w,2)),b=w.next();!b.done;b=w.next())a.u.push(g.Bc(Uc(b.value),4))};
cMa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Bc(a.initData):""+a.cryptoPeriodIndex};
bU=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.Zz?void 0:d.Zz;d=void 0===d.LC?!1:d.LC;this.videoId=a;this.status=b;this.videoDuration=c;this.Zz=e;this.LC=d};
dMa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
cU=function(a){this.j=a;this.offset=0};
dU=function(a){if(a.offset>=a.j.totalLength)throw Error();return aC(a.j,a.offset++)};
eMa=function(a,b){b=void 0===b?!1:b;var c=dU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=dU(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+dU(a),d*=128;return b?c:c-d};
gU=function(a,b,c){var d=this;this.Ga=a;this.policy=b;this.I=c;this.logger=new g.eT("dash");this.u=[];this.j=null;this.Y=-1;this.N=0;this.qa=NaN;this.V=0;this.B=NaN;this.Ea=this.Ha=0;this.Ua=-1;this.va=this.C=this.D=this.ra=null;this.Ya=this.Ra=NaN;this.J=this.W=this.La=this.eb=null;this.gb=!1;this.timestampOffset=0;if(this.policy.j){var e=this.I,f=this.policy.j;this.J=new ST(this.policy,e,function(h,l,m){eU(a,new bU(d.policy.j,2,{Zz:new dMa(f,h,e.info,l,m)}))});
this.J.N.promise.then(function(h){d.J=null;1===h&&eU(a,new bU(d.policy.j,h))},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof ZT&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),fU(d),eU(a,new bU(d.policy.j,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ga.ma("dldbwerr",{em:l}),fU(d),eU(a,new bU(d.policy.j,4,{LC:!0})))})}};
fMa=function(a){return a.u.length?a.u[0]:null};
hU=function(a){return a.u.length?a.u[a.u.length-1]:null};
jMa=function(a,b,c){if(a.C){var d=a.C.Gb+a.C.u;if(0<c.info.Gb)if(c.info.Ia===a.C.Ia&&c.info.Gb<d){if(c.info.Gb+c.info.u<=d)return;c=kxa(c,d-c.info.Gb)[1]}else if(0<=c.info.Ia&&0<=a.C.Ia&&!kD(a.C,c.info))throw new g.Rv("improper_continuation",nD(a.C),nD(c.info));d=a.C;var e=c.info;(d.Ia!==e.Ia&&e.Ia!==d.Ia+1||d.type!==e.type?0:kD(d,e)||(Fg(d.C,e.C)&&d.Ia===e.Ia?0:Nwa(d,e)))||iU(a,"d")}else if(0<c.info.Gb)throw new g.Rv("continuation_of_null",nD(c.info));a.C=c.info;a.I=c.info.j;d=b.TH();if(0===c.info.Gb){if(a.j)throw new g.Rv("slice_not_fully_processed",
nD(a.j.info),nD(c.info));jU(a);a.Ha=d}else{if(a.policy.nu&&a.Ha&&d&&a.Ha!==d)throw a=new g.Rv("lmt_mismatch",c.info.Ia,a.Ha,d),a.level="WARNING",a;!c.info.j.Wm()&&a.D&&(d=c.info,e=a.D.j,d.D="updateWithEmsg",d.Ia=e)}if(a.j){d=lxa(a.j,c);if(!d)throw new g.Rv("failed_to_merge",nD(a.j.info),nD(c.info));a.j=d}else a.j=c;a:{c=g.HD(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.Ae)break a;6===a.j.info.type?gMa(a,b,a.j):kU(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.Y&&0===a.N){var f=a.j.j,
h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=fwa(f,l),n=fwa(f,l+4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>e&&(h=-1)}else{f=new cU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=eMa(p,!0),v=eMa(p,!1);var w=q;var y=v}catch(B){y=w=-1}p=w;var A=y;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=A&&(e=f.getOffset()+A,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+A);if(160===p){0>h&&(e=h=f.getOffset()+
A);break}f.skip(A)}}0>h&&(e=-1)}if(0>h)break;a.Y=h;a.N=e-h}if(a.Y>d)break;a.Y?(d=hMa(a,a.Y),d.D&&iMa(a,d),gMa(a,b,d),lU(a,d),a.Y=0):a.N&&(d=hMa(a,0>a.N?Infinity:a.N),a.N-=d.j.totalLength,lU(a,d))}}a.j&&a.j.info.Ae&&(lU(a,a.j),a.j=null)};
kU=function(a,b){!b.info.j.Wm()&&0===b.info.Gb&&(g.HD(b.info.j.info)||b.info.j.info.We())&&rxa(b);if(1===b.info.type)try{iMa(a,b),kMa(a,b)}catch(d){g.qz(d);var c=mD(b.info);c.hms="1";a.Ga.handleError("fmt.unparseable",c||{},1)}b.info.j.eI(b);a.J&&WLa(a.J,b)};
fU=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
lMa=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};
mU=function(a){return g.Pk(a.u,function(b){return b.info})};
hMa=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=kxa(c,b);a.j=c[1];return c[0]};
iMa=function(a,b){var c=GD(b);if(SD(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new FC(c);HC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;DB(d)&&!SD(d)&&(d=GD(b),(new FC(d)).Uv(),LC([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.HD(d.info)?d.B=qwa(c):d.info.We()&&(d.B=xwa(c))));b.info.j.info.We()&&
b.info.isVideo()&&(c=GD(b),(new FC(c)).Uv(),LC([408125543,374648427,174,224],30320,c)&&LC([408125543,374648427,174,224],21432,c));if(a.policy.Pu&&b.info.j.info.We()){c=GD(b);var e=new FC(c);if(HC(e,[408125543,374648427,174,29637])){d=KC(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Um()&&g.HD(b.info.j.info)){d=GD(b);c=g.vC(d,0,1701606260);f=g.vC(d,0,1836476516);if(c&&f){c.skip(2);var h=lC(c),l=nC(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(oC(c)),
e.push(oC(c)),m.push(lC(c)),n.push(lC(c));else for(h=0;h<l;++h)d.push(mC(c)),e.push(mC(c)),m.push(lC(c)),n.push(lC(c));c=g.wC(f);c=new nwa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.HD(b.info.j.info))for(d=GD(b),e=g.vC(d,0,1701082227);e;)e.markAsSkip(),e=g.vC(d,e.offset+e.size,1701082227);a.gb=!0;b.info.j.C=c}}b.info.j.Wm()||b.info.j.j||b.info.j.indexRange||sxa(b)};
gMa=function(a,b,c){if(c.info.j.Wm()){if(a.gb&&mMa(c)&&(b=GD(c),b=g.vC(b,0,1953658222))){b.skip(1);var d=kC(b)<<16|lC(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=nC(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=nC(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.ra&&!!a.ra.I.C)if(b=c.info.isVideo())b=qxa(c),h=a.ra,nU?(l=1/b,b=oU(a,b)>=oU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&mMa(c)&&(b=a.ra,nU?(l=qxa(c),h=1/l,l=oU(a,l),b=oU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,pwa(GD(c),b))}else{h=!1;a.D||(rxa(c),c.u&&(a.D=c.u,h=!0,e=c.info,f=c.u.j,e.D="updateWithEmsg",e.Ia=f,e=c.u,e.C&&(a.I.index.u=!e.C),e=c.info.j.info,f=GD(c),g.HD(e)?DC(f,1701671783):e.We()&&LC([408125543],307544935,f)));a:{if(f=e=ID(c,a.policy.La))f=c.info.j.info.We()&&160===aC(c.j,0);if(f)a.V+=e,a.B=a.policy.Cd?a.B+e:NaN;else{if(a.policy.wt){if(f=d=a.Ga.jp(mxa(c),1),0<=a.B&&6!==c.info.type){if(a.policy.Cd&&isNaN(a.Ra)){g.rz(new g.Rv("Missing duration while processing previous chunk",
nD(c.info)));iU(a,"m");break a}var n=d-a.B;m=n-a.Ea;var p=c.info.Ia,q=a.va?a.va.Ia:-1,v=a.Ya,w=a.Ra;var y=a.policy.rg&&n>a.policy.rg;var A=a.policy.qg&&Math.abs(m)>a.policy.qg;if(1E-4<Math.abs(m)){var B,E=null==(B=a.D)?void 0:tC(B);B={audio:""+ +a.Um(),sq:p.toFixed(),sliceStart:d,lastSq:q.toFixed(),lastSliceStart:v,lastSliceDuration:w,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*m).toFixed(),skipRewrite:""+(+y||A)};if(null==E?0:E.length)B.adCpn=E[0];a.Ga.handleError("qoe.avsync",B);a.Ua=p}B=0;y||A||
(f=a.B);a.ra&&!a.Um()&&g.HD(c.info.j.info)&&(A=a.ra,y=A.Ua,A=A.Ea,E=.02<Math.abs(A-n),(p===y||p>y&&p>a.Ua)&&E&&(p=Math.max(.95,Math.min(1.05,(e-(A-n))/e)),pwa(GD(c),p),p=ID(c,a.policy.La),B=e-p,e=p));a.Ea=n+B;a.policy.V&&(d!==f||B)&&(n=null==(l=a.D)?void 0:tC(l),a.Ga.ma("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Ia,originalStartTime:d,rewrittenStartTime:f,startTimeAdjustment:f-d,segDrift:(1E3*m).toFixed(),originalDuration:e+B,rewrittenDuration:e,
durationAdjustment:B}))}}else f=isNaN(a.B)?c.info.startTime:a.B;nxa(c,f)?(isNaN(a.qa)&&(a.qa=f),a.V+=e,a.B=f+e):(l=mD(c.info),l.smst="1",a.Ga.handleError("fmt.unparseable",l||{},1))}}a.va=c.info;a.Ra=pxa(c);0<=c.C&&(a.Ya=c.C);if(h&&a.D){h=nMa(a,!0);oD(c.info,h);a.j&&oD(a.j.info,h);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())oD(l.value,h);(c.info.Ae||a.j&&a.j.info.Ae)&&6!==c.info.type||(a.W=h,b=a.Ga,b.j.isManifestless&&oMa(b,h,null,!!a.I.info.video),a.policy.Ld||pMa(a))}}kMa(a,c);a.timestampOffset&&
oxa(c,a.timestampOffset)};
lU=function(a,b){if(b.info.Ae){a.eb=b.info;if(a.D){var c=a.D,d=nMa(a,!1),e=null;if(a.D.cz()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=tC(c),h=[];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())h.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 $La(e,f,h,l,g.lwa(c),g.mwa(c))}a.Ga.DJ(a.I,d,e);a.W||a.policy.Ld||pMa(a);a.W=null}jU(a)}a.J&&WLa(a.J,b);if(c=hU(a))if(c=lxa(c,b,a.policy.rk)){a.u.pop();a.u.push(c);return}a.u.push(b)};
jU=function(a){a.j=null;a.Y=-1;a.N=0;a.D=null;a.qa=NaN;a.V=0;a.W=null};
iU=function(a,b){b={rst4disc:b,cd:a.Ea.toFixed(3),sq:a.va?a.va.Ia:-1};a.B=NaN;a.Ea=0;a.Ua=-1;a.va=null;a.Ya=NaN;a.Ra=NaN;a.La=null;a.Ga.ma("mdstm",b)};
kMa=function(a,b){if(a.I.info.Td){if(b.info.j.info.We()){var c=new FC(GD(b));if(HC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=KC(c,!0);c=16!==d?null:PC(c,d)}else c=null;d="webm"}else b.info.J=YLa(GD(b)),c=ZLa(b.info.J),d="cenc";c&&c.length&&(c=new $T(c,d),c.We=b.info.j.info.We(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Ga.jw(c))}};
pMa=function(a){var b=a.D,c=jwa(b);c&&(c.startSecs+=a.qa,a.Ga.CJ(a.I,c,b.j,b.cz()))};
nMa=function(a,b){var c,d=a.D;if(c=jwa(d))c.startSecs+=a.qa;return new RB(d.j,a.qa,b?d.zk:a.V,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
mMa=function(a){return a.info.j.Wm()&&a.info.Ia===a.info.j.index.getLastSegmentNumber()};
oU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.C&&b&&(b+=a.I.C.j);return b+a.getDuration()};
qMa=function(a,b){0>b||(a.u.forEach(function(c){oxa(c,b)}),a.timestampOffset=b)};
pU=function(a,b){this.info=a;this.callback=b;this.state=1;this.HC=!1;this.Ko=0;this.jt=!1;this.Fe=this.lastError=null};
rMa=function(a){return g.Od(a.info.j,function(b){return 3===b.type})};
qU=function(a,b){this.j=a;this.u=0;this.B=null;this.sf=[];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.Od(this.j,function(c){return!!c.range})};
rU=function(a,b,c){a.B&&(UB(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,h=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(iD(m)&&!c&&a.u+b.totalLength-h<f+m.u){a.B=b.split(h).So;break}var n=3===m.type||4===m.type,p=a,q=a.u-f,v=n&&d&&!e&&1===b.j.length,w=b.totalLength-h;m.range&&(w=Math.min(m.u-q,w));q=new dD(m.type,m.j,m.range,"reslice"+m.D,m.Ia,m.startTime,m.duration,m.Gb+q,w,m.range?m.Gb+q+w===m.range.length:!!c);var y=VB(b,h,w),A=void 0;if(v)for(A=new TB([]),
v=0;v<p.sf.length;v++)UB(A,p.sf[v].j);p.sf.push(new FD(q,y,A));p=w;a.u+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
sMa=function(a){return a.length-a.u+a.sf.reduce(function(b,c){return b+c.j.totalLength},0)};
CT=function(a,b,c,d,e){pU.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.qe=d;this.j=new g.Zn(function(){f.isComplete()||(f.lastError="net.timeout",f.Qc(5))},this.policy.Ou);
this.Vd=function(){f.isDisposed()||(sU(f.qe,f.formatId)?(f.isComplete()||f.j.start(),f.qe.rh(f.formatId)&&f.hq(2),f.qe.Rf(f.formatId)&&(tMa(f.qe,f.formatId)?f.Qc(4):(f.lastError="net.closed",f.Qc(5)))):(f.lastError="player.exception",f.Qc(5)))};
this.j.start();this.Fe=new qU(this.info.j,qD(this.info));uMa(this.qe,this.formatId,this.Vd);g.Dh(this.Vd)};
tU=function(a,b,c){this.Ga=a;this.policy=b;this.j=c;this.B=[];this.u=this.kc=null;this.W=this.Y=0;this.I=-1;this.N=!1;this.V=-1;this.C=new gU(a,b,c);this.Pb=c.info.Pb;this.J=c.jz();this.isManifestless=c.jz();this.D=this.J};
uU=function(a,b){b&&nU&&qMa(a.C,b.VH());a.kc=b};
vU=function(a){return a.kc&&a.kc.uC()};
wU=function(a,b){a.B.push(b);a.u=g.Qb(b.info.j)};
xU=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();vMa(a,b);a.Y=b.PO()}a.B.length&&(b=a.B[0],b.ww()&&(!b.info.Ln()||a.policy.Tt||b instanceof CT)&&vMa(a,b))};
vMa=function(a,b){if(b.ww()){var c=b.Nw();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.V&&b instanceof CT&&a.Ga.ma("omblss",{s:nD(d.info)}),wMa(a,b,d)}};
wMa=function(a,b,c){switch(c.info.type){case 1:case 2:kU(a.C,c);break;case 4:var d=c.info.j,e=d.IM(c),f;(null==(f=a.u)?0:4===f.type)&&Rwa(c.info,a.u)&&(a.u=d.Dw(a.u).pop());c=g.r(e);for(d=c.next();!d.done;d=c.next())wMa(a,b,d.value);break;case 3:jMa(a.C,b,c);break;case 6:jMa(a.C,b,c),a.u=c.info}};
ET=function(a,b,c){c=void 0===c?!1:c;if(a.kc){var d=a.kc.yg(),e=jE(d,b),f=NaN,h=vU(a);h&&(f=jE(d,h.j.index.getStartTime(h.Ia)));if(e===f&&a.u&&a.u.u&&xMa(yU(a),0))return b}a=yMa(a,b,c);return 0<=a?a:NaN};
FT=function(a,b){a.j.Sf();var c=yMa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.J)if(e=e.J,e.Je&&3===e.Je.type)e=e.Je.startTime;else if(0<e.C){var f=e.j.index;f=g.kc(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.Dm(b).j[0];zU(a)&&a.kc&&a.kc.abort();a.W=0;return a.u.startTime};
zMa=function(a){a.J=!0;a.D=!0;a.I=-1;FT(a,Infinity)};
AU=function(a){for(var b=0,c=g.r(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.Fe&&d.Fe.length?sMa(d.Fe):Uwa(d.info),b+=d;return b+=lMa(a.C)};
BU=function(a,b){b=void 0===b?!1:b;if(!a.kc)return 0;var c=vU(a);if(c&&hD(c))return c.B;c=a.Ga.getCurrentTime();if(b&&(b=hU(a.C)))return b.info.B-c;a=a.kc.yg(!0);return yxa(a,c)};
ELa=function(a,b,c,d){DT(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ia>=b&&(e.u.pop(),e.B-=ID(l,e.policy.La),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.La,e.policy.Rr&&0===e.u.length&&!e.C&&iU(e,"r"));e.policy.Rr&&e.Ga.ma("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Ia:-1,sq:b,lastslc:e.C?e.C.Ia:-1,lastfraget:e.B.toFixed(3)});d>c?FT(a,d):a.u=a.j.fp(b-1,!1).j[0]};
EU=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)CU(a,b);else{for(;c<a.B.length;)CU(a,a.B.pop());var d=DU(a);d&&d.j.Cs()&&Nl(b.info.j,function(e){return Swa(e,d)})?a.u=d:jD(b.info.j[0])?a.u=b.Fe&&b.Fe.C?Qwa(b.Fe.C):Pwa(b.info.j[0]):a.u=null}};
zU=function(a){var b;!(b="f"===a.j.info.j)&&(b=a.policy.j)&&(b=a.C,b=!!b.J&&TT(b.J));if(b)return!0;b=vU(a);if(!b)return!1;var c=hD(b)&&b.Ae;return a.isManifestless&&0<a.V?c||b.Ia>=a.V:c};
AMa=function(a){var b;return zU(a)||!(null==(b=hU(a.C))||!hD(b.info))};
yU=function(a){var b=[],c=vU(a);c&&b.push(c);b=g.ac(b,mU(a.C));c=g.r(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.r(d.info.j),h=f.next();!h.done;e={du:e.du},h=f.next())e.du=h.value,d.HC&&(b=g.wm(b,function(l){return function(m){return!Rwa(m,l.du)}}(e))),(jD(e.du)||4===e.du.type)&&b.push(e.du)}a.u&&!Mwa(a.u,g.Qb(b),a.u.j.Wm())&&b.push(a.u);
return b};
xMa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Nwa(a[b-1],a[b]))return!1;return!0};
yMa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=yU(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:xMa(a,c?b:0)?a[b].startTime:NaN};
FU=function(a){return!(!a.u||a.u.j===a.j)};
BMa=function(a){return FU(a)&&a.j.Sf()&&a.u.j.info.Pb<a.j.info.Pb};
CMa=function(a,b,c){return(a=DU(a))&&!hD(a)?a.B>b&&a.B<b+c:!1};
DU=function(a){var b=hU(a.C);return b?b.info:vU(a)};
DT=function(a){for(var b=g.r(a.B),c=b.next();!c.done;c=b.next())CU(a,c.value);a.B=[];a.u=null};
CU=function(a,b){if(b.HC&&!b.info.j[0].j.Cs()){a=a.C;if(a.W&&!a.policy.oi){var c=a.Ga;c.j.isManifestless&&EE(c.j,a.W.Ia,!!a.I.info.video)}a.W=null;a.D=null;a.C=a.eb;a.B=a.C?a.B-a.V:NaN;jU(a)}b.dispose()};
DMa=function(a){return!!a.u&&-1!==a.u.Ia&&a.u.Ia<a.j.index.getFirstSegmentNumber()};
EMa=function(a){var b=a.u;b&&-1===b.Ia&&(a=hU(a.C))&&jD(a.info)&&(a=a.info.Ia,b.D="updateLastSliceRequested",b.Ia=a)};
FMa=function(a){return Nl(a.B,function(b){return b.jt})};
GMa=function(a){a=void 0===a?{}:a;var b=a.Xi,c=a.Zh,d=a.getLastSegmentNumber,e=a.Yr;this.On=a.On;this.Xi=b;this.Zh=c;this.getLastSegmentNumber=d;this.Yr=e};
HMa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.On||b===c&&(a=a.Yr())&&b===a.Ia?!0:!1};
IMa=function(a,b,c){if(!HMa(a,b))return 0;if(!a.Xi||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Yr())&&b===a.Ia&&!a.pending?2:1};
GU=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 TB;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.lw()};
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.U)();10<f-e.D&&(e.callbacks.Vs(f,e.B),e.D=f)},function(){},d.body||null)};
KMa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=bD(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new TB;JMa(this).then(function(){c.callbacks.tq()},function(d){c.error=""+d||"unknown_err";
c.callbacks.tq()})};
JMa=function(a){var b,c,d,e,f,h,l,m,n,p,q,v,w,y,A;return g.z(function(B){if(1==B.j){a.status=200;b=a.j.get("docid");c=Ug(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 TLa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=B.j)return n<=m?g.x(B,AAa(b,c,d,n,f),5):B.Ma(0);p=B.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;v=(n+1)*e;
w=Math.max(0,h.start-q);y=Math.min(h.end+1,v)-(w+q);A=new Uint8Array(p.buffer,w,y);a.u.append(A);a.loaded+=y;a.loaded<h.length&&a.callbacks.Vs((0,g.U)(),a.loaded);n++;return B.Ma(2)})};
HU=function(a,b){var c=b.wi,d=void 0===b.Xk?1:b.Xk,e=void 0===b.ED?d:b.ED,f=void 0===b.Ln?!1:b.Ln,h=void 0===b.jo?!1:b.jo,l=void 0===b.mH?!1:b.mH,m=b.nj,n=b.Ia;b=b.Of;this.callbacks=a;this.requestNumber=++LMa;this.j=this.now();this.ra=this.La=NaN;this.Ea=0;this.C=this.j;this.u=0;this.Ra=this.j;this.qa=0;this.Ua=this.Ha=this.isActive=!1;this.B=0;this.W=NaN;this.J=this.D=Infinity;this.N=NaN;this.va=!1;this.V=NaN;this.I=void 0;this.wi=c;this.policy=this.wi.ra;this.Xk=d;this.ED=e;this.Ln=f;this.jo=h;
l&&(this.I=[]);this.nj=m;this.Ia=n;this.Of=b;this.snapshot=EF(this.wi);MMa(this);NMa(this,this.j);this.W=(this.V-this.j)/1E3};
OMa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
IU=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.W).toFixed(),pb:a.Xk,stall:(1E3*a.B).toFixed(),hrt:(a.La-a.j).toFixed(),elt:(a.ra-a.j).toFixed(),elb:a.Ea};a.url&&WJa(b,a.url);return b};
QMa=function(a,b,c,d){if(!a.Ha){a.Ha=!0;if(!a.jo){JU(a,b,c);PMa(a,b,c);var e=a.Xr();if(2===e&&d)KU(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.Ua&&LU(a)&&KU(a,d,c),LU(a)&&(d=a.wi,d.j.lh(1,a.B/Math.max(c,2048)),FF(d));c=a.wi;b=(b-a.j)/1E3||.05;d=a.W;e=a.Ln;c.I.lh(b,a.u/b);c.C=AF();e||c.u.lh(1,b-d)}a.deactivate()}};
PMa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.Xr();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&KU(a,.05,e)):KU(a,d,e),a.Ua=!0);else if(MU(a,c)){if(1===f&&(f=(b-a.j)/1E3,!RMa(a)&&!a.jo)){var h=a.wi;h.J.lh(1,f);FF(h)}a.ra=b;a.Ea=c;a.isActive=!0}a.jo||cza(a.wi,d,e);a.C=b;a.u=c};
KU=function(a,b,c){a.jo||(b=Math.max(b,.05),a=a.wi,a.B.lh(b,c/b),a.C=AF())};
JU=function(a,b,c){c=Math.round(c/1024);a.I&&a.I.push(NU(b-a.Ra,c-a.qa));a.Ra=b;a.qa=c};
SMa=function(a){return a.I?a.I.join(""):""};
MU=function(a,b){return b?a.WC()?!0:2048<=b:!1};
LU=function(a){return MU(a,a.u)};
TMa=function(a){return(a.C-a.j)/1E3};
MMa=function(a){a.N=a.j+1E3*a.snapshot.delay;a.va=!1};
OU=function(a,b){if(a.nj&&void 0!==a.Ia&&void 0!==a.Of){var c=Math,d=c.min,e=a.D;var f=a.nj;var h=a.j;if(HMa(f,a.Ia))f=b;else{var l=0;f.Xi&&(l=.2);f=h+1E3*(f.Zh+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.J;f=a.nj;h=a.j;l=IMa(f,a.Ia,a.Of);2!==l&&(b=l?b:h+1E3*f.Zh,f.Xi&&(b+=1E3*f.Zh));a.J=d.call(c,e,b);a.D<=a.j?MMa(a):(a.N=a.D,a.va=!0)}};
RMa=function(a){a.nj&&OU(a,a.now());return a.va};
NMa=function(a,b){b=void 0===b?a.now():b;if(a.nj){OU(a,b);if(a.Y?a.WC():a.D!==a.J){var c=a.J;if(b<c){a.V=a.J;return}}else c=a.D;c=Math.max(c,a.N)}else c=a.N;var d=a.Xk-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=LU(a)?d+b:d+Math.max(b,c);a.V=d};
NU=function(a,b){for(var c="";4095<a;)c+=NU(4095,0),a-=4095;for(;4095<b;)c+=NU(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))};
PU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.V=d;this.status=0;this.response=void 0;this.N=this.u=0;this.I=this.J=!1;this.errorMessage="";this.Y=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.fn=f.body.getReader(),e.isDisposed()?e.fn.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.nw(),UMa(e));
else e.onDone()};
this.W=function(f){var h=(0,g.U)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.fn=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.U)(),10<f-e.N&&(e.N=f,e.callbacks.Vs(h,e.u)),UMa(e)))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.j=new TB;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
UMa=function(a){a.fn.read().then(a.W,a.onError).then(void 0,Lv)};
VMa=function(a,b){if(b+1<=a.totalLength){var c=aC(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=aC(a,b++);else if(2===c)c=aC(a,b++),a=aC(a,b++),a=(c&63)+64*a;else if(3===c){c=aC(a,b++);var d=aC(a,b++);a=aC(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=aC(a,b++);d=aC(a,b++);var e=aC(a,b++);a=aC(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),XB(a,c,4)?a=cwa(a).getUint32(c-a.B,!0):(d=aC(a,c+2)+256*aC(a,c+3),a=aC(a,c)+256*(aC(a,c+1)+
256*d)),b+=5;return[a,b]};
QU=function(a){this.callbacks=a;this.j=new TB};
RU=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.lw(f)};
a=hu(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",hu(function(f){d.Vd(f)}),!1)};
XMa=function(a,b){gH(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(fH(a,112),fH(a,c<<1^c>>31));gH(a,16,b.GZ);gH(a,18,b.xX);gH(a,19,b.wX);gH(a,21,b.A4);gH(a,23,b.eX);gH(a,34,b.visibility);kH(a,38,b.mediaCapabilities,WMa,3);gH(a,39,b.a5);gH(a,40,b.xO);hH(a,46,b.TX)};
YMa=function(a){for(var b=[];$G(a,2);)b.push(ZG(a));return{zG:b.length?b:void 0,videoId:cH(a,3),AL:aH(a,4)}};
WMa=function(a,b){var c;if(b.zL)for(c=0;c<b.zL.length;c++)kH(a,1,b.zL[c],ZMa,1);if(b.yG)for(c=0;c<b.yG.length;c++)kH(a,2,b.yG[c],$Ma,1)};
$Ma=function(a,b){gH(a,1,b.cX);gH(a,2,b.numChannels);gH(a,3,b.SZ)};
ZMa=function(a,b){gH(a,1,b.M5);gH(a,3,b.TZ);gH(a,4,b.UZ);gH(a,11,b.maxFramerate);gH(a,12,b.SZ)};
cNa=function(a){return{Y2:aH(a,1),itag:cH(a,3),FR:hAa(a,4,aNa),lmt:aH(a,5),G2a:aH(a,7),xtags:cH(a,15),ZZ:hAa(a,23,bNa)}};
aNa=function(a){return{iv:bH(a,5),xZ:gAa(a,7)}};
bNa=function(a){return{videoId:cH(a,2)}};
eNa=function(a,b){kH(a,2,b.eO,XMa,3);kH(a,3,b.vI,dNa,3);iH(a,4,b.onesieUstreamerConfig);iH(a,9,b.QA)};
dNa=function(a,b){iH(a,2,b.encryptedOnesieInnertubeRequest);iH(a,5,b.encryptedClientKey);iH(a,6,b.iv);iH(a,7,b.hmac);hH(a,10,b.serializeResponseAsJson);hH(a,13,b.enableAdPlacementsPreroll);hH(a,14,b.enableCompressionResponseOnly);iH(a,16,b.unencryptedOnesieInnertubeRequest)};
fNa=function(a,b){jH(a,1,b.name);jH(a,2,b.value)};
gNa=function(a,b){jH(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)kH(a,2,b.httpHeaders[c],fNa,3);iH(a,3,b.postBody);hH(a,4,b.proxiedByTrustedBandaid);hH(a,6,b.skipResponseEncryption)};
hNa=function(a){return{onesieProxyStatus:aH(a,1),httpStatus:aH(a,2),body:bH(a,4)}};
VU=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.Vz?[]:h.Vz;var l=void 0===h.yA?!1:h.yA,m=void 0===h.Cr?0:h.Cr,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Ws?void 0:h.Ws;h=void 0===h.cA?"":h.cA;pU.call(this,b,e);var q=this;this.policy=a;this.logger=new g.eT("dash/request");this.fv=this.Fg=0;this.rS=!1;this.Zn=this.Om=null;this.dT=this.cT=this.wP=!1;this.timing=new HU(this,c);this.Pm=d;this.yA=l;this.Cf=g.tD(this.info,this.policy,this.Pm);this.Cf.set("rn",this.timing.requestNumber.toString());
this.Cf.set("rbuf",(1E3*m).toFixed().toString());this.yA&&this.Cf.set("smb","1");this.policy.nk&&n&&this.Cf.set("pot",n);h&&this.Cf.set("bbs",h);this.policy.useUmp&&(this.Uw=new QU(this),this.Cf.set("ump","1"),this.Cf.set("srfvp","1"),this.Cf.xi.set("keepalive",null));this.Vz=f||null;this.Ws=p;this.jt=iNa(this);this.Bw=1*this.policy.Bw;this.gE=new g.Zn(this.E3,this.Bw,this);this.info.u.J=(0,g.U)();Fwa(SU(this));a=void 0;if(this.policy.Rq||this.policy.useUmp||this.policy.bf){a={method:"POST"};b=TU([120,
0]);if(this.policy.useUmp||this.policy.Rq)a.body=b;this.policy.bf&&(a.body=this.info.Uy()||b)}try{this.xhr=jNa(this,a),this.gE.start()}catch(v){g.rz(v),this.lastError="net.ssl",g.Dh(function(){UU(q)})}};
iNa=function(a){if(!(sD(a.info)&&a.info.Ln()&&a.policy.Bd&&a.Vz)||2<=a.info.u.u||0<HE()||!kya())return!1;var b=a.Cf.get("aitags");if(!b)return!1;b=Ug(b).split(",");for(var c=[],d=g.r(a.Vz),e=d.next();!e.done;e=d.next())e=e.value,g.Wb(b,e)&&c.push(e);if(!c.length)return!1;a.Cf.set("altitags",g.Tg(c.join(",")));return!0};
SU=function(a){return WC(a.Pm,NB(a.Cf.xi))};
lNa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.dA())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(kNa(a)){var d=b.Gg();d.totalLength<=a.policy.Ng&&(c=YB(d),c=eC(c),c=oA(c)?c:"")}if(c)return VC(SU(a)),a.info.Tj(a.Cf,c),3;c=b.bl();if(a.Uw){if(a.Xn(!0),!a.cT){if(a.dT)return VC(SU(a)),3;a.lastError="net.closed";return 5}}else{if((d=qD(a.info))&&d!==c||b.WD())return a.lastError="net.closed",5;a.Xn(!0);if(!d&&a.Fe&&(d=a.Fe.uq(),d.length&&!jxa(d[0])))return a.lastError=
"net.closed",5}d=rMa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=rMa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.rS=!0,a.policy.gm&&(d=b);QMa(a.timing,(0,g.U)(),c,d?Number(d):0);VC(SU(a));b=a.info.u;b.u=0;b.D=0;b.I=0;if(null!=(b=a.Ws)&&(a=a.Cf.xi,!((0,g.U)()<b.I+3E5||OB(a))&&(c=NB(a))&&aKa(c)&&b.B===eS(c))){var e;PB(a)&&(e=NB(QB(a)));g.Pz("yt-player-bandaid-host",{primary:c,secondary:e},864E3);b.I=(0,g.U)();YJa(b,{primary:c,secondary:e})}return 4};
UU=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.U)();if(!b.jo){JU(b,c,1024*b.qa);var d=(c-b.j)/1E3;if(2!==b.Xr())if(LU(b)){b.B+=(c-b.C)/1E3;var e=b.wi,f=b.u;f=Math.max(f,2048);e.j.lh(1,b.B/f);FF(e)}else RMa(b)||b.jo||(e=b.wi,e.J.lh(1,d),FF(e)),b.ra=c;e=b.wi;f=b.W;var h=b.Ln;e.I.lh(d,b.u/d);e.C=AF();h||e.u.lh(1,d-f);cza(b.wi,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!OB(a.Cf.xi)?(c=SU(a),
c.timedOut+=1):(c=SU(a),c.j+=1),a.timing.u||(c=a.info.u,d=a.Cf,++c.u,b&&++c.D,NB(d.xi).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.B))):++a.info.u.I;a.Qc(5)};
mNa=function(a,b){b&&(b=SU(a),b.u+=1);WU(a);a.lastError="net.timeout";UU(a)};
WU=function(a){a.xhr&&a.xhr.abort();a.timing.deactivate()};
kNa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Fy();c=!c||c<=a.policy.Ng;return(!a.xhr.Qw()||!b||-1!==b.indexOf("text/plain")||"application/vnd.yt-ump"===b)&&c};
jNa=function(a,b){if(OB(a.Cf.xi))return new KMa(a.Cf,a.timing);var c=a.Cf.pe();return a.policy.ra&&(a.policy.Hs&&!isNaN(a.info.Of)&&a.info.Of>a.policy.Jl||a.jt&&!a.policy.Tt?0:qB())?rB()?new GU(c,a.policy.C,a.timing,b):new PU(c,a.policy.C,a.timing,b):new RU(c,a.timing,b)};
XU=function(a,b,c,d,e,f,h,l,m,n,p,q){g.K.call(this);this.Ga=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.Pm=e;this.B=f;this.timing=h;this.I=l;this.schedule=m;this.j=n;this.D=p;this.Y=q;this.ra=!1;this.cA="";this.C=this.nj=null;this.N="";this.V=0;this.Of=NaN;this.qa=!1;this.u=null;this.W=NaN;this.J=0;this.logger=new g.eT("dash");0<this.policy.Tl&&(this.cA=g.xz(this.policy.Tl))};
nNa=function(a,b,c){if(YU(a,b,c)){if(b.J){if(a.j.isLive){var d=a.j.Xe&&a.j.C?b.j.fp(a.j.Xe,!1):b.j.Dm(Infinity);d.Of=a.Of}else d=b.j.fp(0,!1);a.Y?0===d.Of&&(d.D=a.Y.N):d.D=a.W}else if(d=b.u,d.j.Sf()){var e=d.B-a.Ga.getCurrentTime(),f=!d.range||0===d.u&&0===d.Gb?0:d.range.length-(d.Gb+d.u),h=d.j;if(FU(b)&&b.j.Sf()){var l=Math.min(15,.5*ZU(a.Ga,b,!0));l=BMa(b)||e<=l||a.D.N}else l=!1;l&&0===f&&(a.j.isManifestless?h=b.j:(h=d.startTime+$U,d.u&&(h+=d.duration),FT(b,h),d=b.u,h=d.j));h.Wm()?(f=a.D,c=zT(a.I,
h.info.Pb,c.j.info.Pb,e,0<f.D.length&&0===f.videoIndex&&a.Ga.Xv),h=FU(b),c=d.j.Bu(d,c),(e=qD(c))&&1<c.j.length&&(h||c.u.u||c.j[0].j!==d.j?c=d.j.Bu(d,c.j[0].u):(h=c.j[c.j.length-1],f=h.u/e,!h.Ae&&.4>f&&(c=d.j.Bu(d,e-h.u)))),d=c):(0>d.Ia&&(c=mD(d),c.pr=""+b.B.length,a.Ga.Cg()&&(c.sk="1"),c.snss=d.D,a.Ga.ma("nosq",c)),d=h.Cx(d));if(a.policy.J)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Wm()?(c=zT(a.I,b.j.info.Pb,c.j.info.Pb,0),d=d.j.Bu(d,c)):d=d.j.Cx(d);if(a.u)if(e=d.j[0].j.info.id,
c=a.B,h=d.j[0].Ia,c=0>h&&!isNaN(c.B)?c.B:h,h=DLa(a.B,d.j[0].C,c),f=b===a.audioTrack?1:2,l=d.j[0].j.info.itag,a.policy.bf)e=a.u.Uy(h,c,e,f),0>c&&(a.policy.Ot||2===f)&&JT(a.B,0,0,!0),e&&(a.Ga.ma("sdai",{ssdaiinfo:"1",length:e.length,itag:l,sg:c,st:h.toFixed(3)}),d.N=e);else if(e=a.u.Am(h,c,e,f),0>c&&(a.policy.Ot||2===f)&&JT(a.B,0,0,!0),e){h={decurl_itag:l,sg:c,st:h.toFixed(3)};if(a.policy.gt&&b.isRequestPending(c-1)){a.Ga.ma("sdai",{wt_daistate_on_sg:c-1});return}a.Ga.ma("sdai",h);e&&(d.B=new g.LB(e))}a.policy.Bk&&
-1!==d.j[0].Ia&&d.j[0].Ia<a.j.Xe&&(d=b.j.fp(a.j.Xe,!1));wU(b,aV(a,d));BLa(a.timing)}};
YU=function(a,b,c){var d=a.B;if(2===d.u||3===d.u)return bV(a,"waitad"),!1;if(!Jwa(b.u?b.u.j.u:b.j.u,a.policy))return bV(a,"resource"),!1;if(a.Ga.isSuspended&&(!dza(a.schedule)||a.Ga.jH))return bV(a,"suspend"),!1;if(a.policy.j&&5<=vH)return g.$n(a.Ga.fD),bV(a,"exceedq"),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ia)return bV(a,"pending"),!1;if(b.B.length>=a.policy.Qk)return bV(a,"toomany"),!1;if(!a.policy.Wl&&0<b.B.length&&!a.policy.C.Xi)return bV(a,"pipeline"),!1;if(b.J)return b=!a.j.isLive||
!isNaN(a.Of),bV(a,b?"":"sqless"),b}if(FMa(b))return bV(a,"shavable"),!1;if(!b.u){if(!b.j.Sf())return bV(a,"meta"),!1;FT(b,a.Ga.getCurrentTime())}d=b.B.length+c.B.length;(b.B.length&&b.B[0].Es()||c.B.length&&c.B[0].Es()||a.j.isLive)&&--d;if(d+1>=a.policy.Kl)return bV(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Sf()&&(b.u=g.Qb(d.j.Dw(d)),d=b.u);if(!hD(d)&&!d.j.ep(d))return bV(a,"notready"),!1;var e=a.j.xf||a.j.C;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.sC()&&0<e&&d.Ia>=e)return b.V=e,c.V=e,bV(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return bV(a,"toomanyaudio"),!1;if(BMa(b)&&!a.policy.gb)return bV(a,""),!0;if(hD(d))return bV(a,"eos"),!1;if(AU(b)&&AU(b)+AU(c)>a.policy.yc)return bV(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.B;f=!!(c.u&&!hD(c.u)&&c.u.B<f);var h=b===a.videoTrack&&a.policy.J;if(f&&(!a.j.isManifestless||c.u&&c.u.B&&d.B)&&e&&!h)return bV(a,"othertrack"),!1;if(a.policy.Ya&&!b.D&&c.D)return bV(a,"seek"),!1;if(jD(d)&&
d.B>oNa(a,b))return bV(a,"maxtime;"+d.B.toFixed(3)+";"+oNa(a,b)),!1;if((b=b.kc)&&b.isLocked())return bV(a,"locked"),!1;bV(a,"");return!0};
bV=function(a,b){a.policy.pg&&a.u&&(a.N=b)};
oNa=function(a,b){var c=a.B;c=c.j?c.j.jf:null;if(a.policy.J&&c)return c.startSecs+c.durationSecs+15;b=ZU(a.Ga,b,!0);!a.Ga.je.j.isLocked()&&0<a.policy.va&&(c=((0,g.U)()-a.V)/1E3,b=Math.min(b,a.policy.va+a.policy.Pe*c));b=a.Ga.getCurrentTime()+b;return a.policy.Zl&&(c=pNa(a)+a.policy.Zl,c<b)?(a.Ga.ma("mrl",{ori:b,mod:c},!0),a.policy.Nk&&(a.V=(0,g.U)()),c):b};
pNa=function(a){var b=a.Ga.Yk().filter(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.Ga.getCurrentTime())return c.start/1E3;return Infinity};
cV=function(a,b,c){a:if(b=b.info,b.B)c=null;else{var d=b.j[0];if(b.range)var e=cD(b.range.start,Math.min(4096,qD(b)));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.u.C.get("defrag")||"1"===b.u.C.get("otf")){c=null;break a}e=cD(0,4096)}e=new pD([new dD(5,d.j,e,"createProbeRequestInfo"+d.D,d.Ia)],b.C);e.I=c;e.B=b.B;c=e}c&&aV(a,c)};
aV=function(a,b){qNa(a.Ga,b);var c=Uwa(b);c={wi:a.schedule,Xk:c,ED:rLa(a.I,c),Ln:iD(b.j[0]),jo:OB(b.u.j),mH:a.policy.V};a.nj&&(c.Ia=b.j[0].Ia,c.Of=b.Of,c.nj=a.nj);var d={Cr:Vwa(b,a.Ga.getCurrentTime()),Vz:a.policy.Bd&&sD(b)&&b.j[0].j.info.video?SLa(a.D):void 0,yA:a.policy.J,poToken:a.Ga.UH(),Ws:a.Ga.AC(),cA:a.cA};return new VU(a.policy,b,c,a.Pm,function(e,f){try{a:{a.policy.pg&&a.u&&(a.C=e);var h=e.info.j[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Ko||!(!a.Ga.mediaSource||
a.Ga.isSuspended||3<BU(l))){var m=e.Ko;if(!e.isComplete()&&m&&!YC(e.info.u,a.policy,a.Pm)){var n=a.policy.hm;if(!a.qa&&n&&m>=n)cV(a,e,!1),a.qa=!0;else{var p=a.policy.zi;if(p&&!(m<p)){var q=a.Pm;var v=NB(XC(e.info.u,a.policy));var w=WC(q,v);w.j||w.timedOut||w.started||cV(a,e,!0)}}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.Yb){var y=Object.assign(IU(e.timing),{rst:""+e.state,strm:""+e.xhr.Qw(),d:SMa(e.timing)});a.Ga.ma("rqs",y)}e.rS&&a.Ga.ma("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var A=
a.timing,B=e.info.j[0].j,E=!A.D&&B.info.video,G=!A.u&&B.info.audio;3===e.state?E?A.tick("vrr"):G&&A.tick("arr"):4===e.state?E?(A.D=e.pe(),g.Ev(),Gv(4)):G&&(A.u=e.pe()):e.Es()&&E&&(g.Ev(),Gv(4));if(3===e.state){EU(l,e);sD(e.info)&&dV(a,l,h,!0);if(a.u){var H=e.info.Am();H&&a.u.Tj(e.info.j[0].Ia,h.info.id,H)}a.Ga.Ij()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var I=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;I&&I instanceof VU&&I.Ko&&mNa(I,!0)}e.dispose()}else{if(!e.isFailed()&&
e.jt&&2<=e.state&&3!==e.state){var O=e.xhr.getResponseHeader("X-Response-Itag");if(O){var L=RLa(a.D,O),P=qD(e.info);if(P){var S=P-L.OH();L.D=!0;e.info.j[0].j.D=!1;var ca=L.Mp(S);e.info=ca;if(e.Fe){var R=e.Fe,na=ca.j;R.j=na;var sa=na[0].range,Aa=new TB;for(f=0;f<R.sf.length;f++)UB(Aa,R.sf[f].j);for(f=0;f<R.sf.length;f++){R.sf[f].info=na[f];var wa=na[f].range;R.sf[f].j=VB(Aa,wa.start-sa.start,wa.length)}}e.jt=!1;var ta=a.videoTrack;ta.j!==L&&(ta.j=L);var Ma=a.videoTrack;Ma.u&&(Ma.u.j=L);a.Ga.MJ(L.info.video.quality);
var Ka=e.TH();Ka&&L.info.lastModified&&L.info.lastModified!==+Ka&&EU(a.videoTrack,e)}}else e.jt=!1}if(4===e.state){if(eV(a,e),a.B){var qa=a.B,nb=e.info,Sb=a.u;if(0!==qa.u&&Sb&&nb.j[0].isVideo())if(nb.j[0].Ia>qa.B&&(qa.B=NaN,qa.D=NaN),qa.j&&qa.j.Ia===nb.j[0].Ia){var Ua=qa.j,$a=Ua.jf;Sb.mq($a)&&"predictStart"!==$a.event?Ua.cz?IT(qa,4,"cue"):(qa.B=nb.j[0].Ia,qa.D=nb.j[0].C,qa.ma("sdai",{joinad:qa.u,sg:qa.B,st:qa.D.toFixed(3)}),qa.W=Date.now(),IT(qa,2,"join"),Sb.aI(Ua.jf)):IT(qa,5,"nogab")}else 1===qa.u&&
IT(qa,5,"noad")}}else if(a.policy.ra&&e.ww()&&!e.isComplete()&&!eV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Nv(e);a.Ga.Ij();if(a.policy.rd&&e.isComplete()&&e.canRetry()&&YC(e.info.u,a.policy,a.Pm)){var bc=a.Pm;var Sa=NB(e.info.u.j);var ab=WC(bc,Sa);ab.B+a.policy.rd*Gwa(ab,a.policy,!0)>(0,g.U)()||cV(a,e,!1)}}}}}}catch(tb){L=a.ra?1:0,a.ra=!0,e=AG(L),L=BG(tb,L),a.Ga.handleError(L.errorCode,L.details,L.severity),e||a.Ga.dj()}},d)};
eV=function(a,b){try{var c=b.info.j[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&d){a.J=0;d.J&&(b.isDisposed(),b.isComplete()||b.ww(),d.J=!1);b.IH()&&a.Ga.MB.lh(1,b.IH());var e=b.sC(),f=b.SO(),h=a.j,l;for(l in h.j){var m=h.j[l].index;m.mm&&(e&&(m.Om=Math.max(m.Om,e)),f&&(m.Zn=Math.max(m.Zn||0,f)))}}if(b.info.Ln()&&!rD(b.info))for(var n=g.r(b.Nw()),p=n.next();!p.done;p=n.next()){var q=p.value;if(1===q.info.type)if(c.info.video){var v=a.timing;v.qa||(v.qa=(0,g.U)(),SN("vis_r",
v.qa,v.j))}else{var w=a.timing;w.J||(w.J=(0,g.U)(),SN("ais_r",w.J,w.j))}kU(d.C,q)}xU(d,a.Ga.getCurrentTime());var y=!!d.Gg();if(y&&b instanceof CT)if(c.info.Um()){var A=a.timing;A.W||(A.W=(0,g.U)(),SN("oafs_rp",A.W,A.j))}else{var B=a.timing;B.Y||(B.Y=(0,g.U)(),SN("ovfs_rp",B.Y,B.j))}return y}catch(E){return b=b.Cv(),b.origin="hrhs",rNa(a.Ga,E,b),!1}};
sNa=function(a){var b=a.videoTrack.j.index;a.nj=new GMa({On:a.policy.On,Xi:a.policy.C.Xi,Zh:b.Zh,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
Yr:function(){return b.Yr()}})};
dV=function(a,b,c,d){if(!(c.Sf()||c.Yv()||c.D)&&Jwa(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.I;var e=c.info;d=sLa(d,e.video?d.policy.Sq:d.policy.pk,e.Pb)}else d=0;d=c.Mp(d);a=aV(a,d);rD(d)&&wU(b,a);c.D=!0}};
tNa=function(a,b,c,d,e){this.Ga=a;this.policy=b;this.schedule=c;this.fv=d;this.V=e;this.W=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.N=NaN};
uNa=function(a,b,c,d,e){return b.Kb&&b.qa&&3===Tva(b)?new tNa(a,b,c,d,e):null};
vNa=function(a,b){if(a.policy.Ut){var c=b.info.Pb,d=DF(a.schedule);b=b.index.Zh;c=Math.max(1,d/c);a.N=Math.round(1E3*Math.max(((c-1)*b+a.policy.Y)/c,b-a.policy.Kd))}};
yNa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Ki,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Oq&&(h=!0);a.I=c}c=d>=a.policy.Kd&&!a.B;if(!f&&!c&&wNa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.fv.Nh()||0)-a.J.u-a.policy.Y;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){fV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Fd;d<c&&(c=d)}else a.B&&(d=c+a.policy.Y-a.W+a.policy.Pq,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Fd))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&wNa(a,b))return xNa(a,b),NaN;if(a.j<=a.u.startTime)return fV(a,NaN,"y",b),a.clear(),NaN;if(!a.V(a.j,!1))return!xNa(a,b)&&h&&(fV(a,NaN,"t",b),a.clear()),NaN;h=a.j;fV(a,h,"s",b);a.clear();return h};
xNa=function(a,b){return a.V(a.j,!0)?!1:(fV(a,NaN,"ns",b),a.clear(),!0)};
wNa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.Fd:a.policy.Vt)};
fV=function(a,b,c,d){var e=a.C.Cv();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.J.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.fv.Nh()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;AD(b,a.u.Ia,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ia)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ia)).toFixed(0));a.Ga.ma("ssr",e)};
zNa=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.gV=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.K.call(this);var p=this;this.oa=a;this.schedule=b;this.policy=c;this.j=d;this.V=m;this.Ua=n;this.timing=new ALa(this.Ua);this.N=new xT(this.schedule,this.policy);this.mediaSource=null;this.La=new g.Zn(this.Ij,0,this);this.fD=new g.Zn(this.Ij,1E3,this);this.Ra=new g.Zn(this.Ij,void 0,this);this.Ha=new g.Zn(this.Ij,1E4,this);this.I=this.currentTime=NaN;this.W=0;this.Xv=this.jH=this.isSuspended=!1;this.ra="";this.MB=new xF(5);this.Pm={};this.timestampOffset=
NaN;this.Ea=!1;this.va=0;this.J=null;this.Y=NaN;this.logger=new g.eT("dash");a=m&&Array.from(m.ke.keys());m&&(this.Y=Date.now());this.je=new HLa(this,this.N,c,this.j,e,a);c=MLa(this.je,f,h&&h.id);this.audioTrack=new tU(this,this.policy,c.audio);this.videoTrack=new tU(this,this.policy,c.video);this.videoTrack.C.ra=this.audioTrack.C;this.qa={updateend:this.SV,error:this.V_};g.M(this,this.La);g.M(this,this.fD);g.M(this,this.Ra);g.M(this,this.Ha);this.C=uNa(this,this.policy,this.schedule,this.MB,function(q,
v){return ANa(p,q,v)});
this.u=new GT(this,this.j,this.policy,this.videoTrack,this.audioTrack,l);this.D=new BT(this,this.j,this.videoTrack,this.audioTrack,this.policy);this.B=new XU(this,this.policy,this.videoTrack,this.audioTrack,this.Pm,this.u,this.timing,this.N,this.schedule,this.j,this.je,this.C);g.M(this,this.B)};
DNa=function(a,b){var c=b.j,d=a.j.nf;if(a.j.nf){if(a.j.ra){a.ma("ombab",{});return}var e=Date.now();if(FE(a.j)&&!isNaN(a.Y)&&e-a.Y>1E3*a.policy.Mu){a.ma("ombttl",{});return}if(a.j.Xe&&a.j.C||!a.policy.Lx&&a.j.isPremiere)return}e=a.Nf();if(a.V&&sU(a.V,$C(c,d,e,a.policy.Eb))){d=$C(c,d,e,a.policy.Eb);e=BNa(a.V,d);var f;if(!a.j.nf||!a.policy.Kx){if(!c.indexRange||!c.initRange)return;var h=c.indexRange.length+c.initRange.length,l=CNa(a.V,d);if(!l){a.ma("ombooo",{});return}h=l-h;if(0<e.length){var m;if((f=
null==(m=c.Mp(0))?void 0:Wwa(m,e,h))&&!Xwa(f,a.currentTime)){a.ma("ostmf",{ct:a.currentTime});return}}f&&0!==e.length||(f=c.Mp(h),a.ma("ombcf",{}))}else if(FE(a.j))f=c.Dm(Infinity);else if(a.j.isPremiere||a.j.xf)f=c.Dm(0);f&&(m=function(n){try{n.isFailed()?(a.handleError(n.ag(),n.Cv()),EU(b,n),sD(n.info)&&dV(a.B,b,c,!0),a.Ij()):eV(a.B,n)&&a.Ij()}catch(p){n=BG(p),a.handleError(n.errorCode,n.details,n.severity),a.dj()}},c.D=!0,rD(f)&&(wU(b,new CT(a.policy,d,f,a.V,m)),BLa(a.timing)))}else a.ma("ombfmt",
{})};
hV=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.je;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.qa!==b&&(d.va={},d.qa=b,LT(d,d.j));b=!d.j.isLocked()&&-1<d.V&&8E3>(0,g.U)()-d.V;var e=d.nextVideo&&3*OT(d,d.nextVideo.info)<AT(d.ra);if(!b||e)MT(d),NT(d),d.W=d.W||d.nextVideo!==d.B;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.qa=-1);d=d.nextVideo;c.j!==d&&(c.j=d);c=a.audioTrack;a=a.je.u;c.j!==a&&(c.j=a)};
iV=function(a,b){a.jH=b;a.policy.J||(a.isSuspended=!0)};
FNa=function(a){a.policy.Dd=!1;try{ENa(a)}catch(b){g.qz(b)}};
GNa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(ez(a.mediaSource.j,a.qa,a),ez(a.mediaSource.u,a.qa,a));uU(a.audioTrack,null);uU(a.videoTrack,null);a.mediaSource=null};
jV=function(a,b){b=void 0===b?!1:b;GNa(a);b?a.policy.J=!0:a.policy.Ne?iV(a,a.Ea):iV(a,!1);a.dj()};
kV=function(a){a.mediaSource&&a.mediaSource.Rf()&&(jV(a),a.policy.Gs&&a.handleError("fmt.unplayable",{unexpected:1},1))};
HNa=function(a,b){b&&a.oa.vD(b);a.policy.Pk&&a.je.Ua&&(b=OLa(a.je,"a"),lV(a.oa,b.reason,b.audio.info))};
qNa=function(a,b){if(jD(b.j[b.j.length-1])){a:{var c=a.je;b=b.j[0].j;if(b.info.video){if(c.B!==b){c.B=b;c=LLa(c);break a}}else c.Ua=c.J!==b,c.J=b;c=null}HNa(a,c)}};
rNa=function(a,b,c){if(b instanceof Error&&(c.msg||(c.msg=""+b.message),g.rz(b),"WARNING"===b.level)){mV(a.oa,c);return}a.handleError("fmt.unplayable",c,1)};
nV=function(a){g.$n(a.La)};
ENa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=INa(a);if(d){if(a.policy.ju){if(!b.Jp()){var e=a.audioTrack.Gg();e&&(oV(a,a.audioTrack,b,e.info),pV(a,b,e))}!c.Jp()&&(b=a.videoTrack.Gg())&&(oV(a,a.videoTrack,c,b.info),pV(a,c,b))}a.W||(a.W=(0,g.U)(),a.policy.V&&a.ma("apdps",{r:d}))}else{if(a.W){d=(0,g.U)()-a.W;e=BU(a.audioTrack,!0);var f=BU(a.videoTrack,!0);a.policy.V&&a.ma("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.W=0}if(a.C){d=a.C;e=a.audioTrack;
f=kE(a.mediaSource.u.yg());if(d.C)d=yNa(d,f);else{if(f=e.Gg()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Of&&(d.C=e,d.J=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.D=d.u.startTime)}d=NaN}d&&a.oa.seekTo(d,{ys:!0,re:"pollSubsegmentReadahead",jp:!0})}d=!1;JNa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.U)(),SN("vda",e.C,e.j),e.B&&(g.Ev(),Gv(4))),e=a.timing,e.va||(e.va=(0,g.U)(),SN("vrb_f",e.va,e.j)));if(a.mediaSource&&!a.mediaSource.Rf()&&
(JNa(a,a.audioTrack,b)&&(d=!0,e=a.timing,e.B||(e.B=(0,g.U)(),SN("ada",e.B,e.j),e.C&&(g.Ev(),Gv(4))),e=a.timing,e.N||(e.N=(0,g.U)(),SN("arb_f",e.N,e.j))),!a.isDisposed()&&a.mediaSource)){!a.policy.Dd&&zU(a.videoTrack)&&zU(a.audioTrack)&&rE(a.mediaSource)&&!a.mediaSource.Ph()&&(e=vU(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,rE(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Jf.webkitSourceEndOfStream(e.Jf.EOS_NO_ERROR)),e=a.schedule,fya(EF(e)),e.D=AF(),e.N=!0));e=a.policy.Iu;f=a.policy.Jx;
d||!(0<e||f)||!rE(a.mediaSource)||zU(a.videoTrack)||zU(a.audioTrack)||(b.GE(a.currentTime,f,e),c.GE(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):tE());c&&nV(a)}}}};
INa=function(a){if(FMa(a.videoTrack))return"ssf";if(!a.policy.Li&&CLa(a.u))return"cpm";if(a.policy.jh||AMa(a.audioTrack)||AMa(a.videoTrack)&&(!a.policy.Sl||"f"!==a.videoTrack.j.info.j))return"";if(a.D.Cg()){var b=a.N;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=c.j.info.Pb+d.j.info.Pb;if(b.policy.Sl)e=10*(1-AT(b)/e),b=Math.max(e,b.policy.Nc),b=BU(d,!0)>=b&&BU(c,!0)>=b;else{var f=0;c=mU(c.C).concat(mU(d.C));c=g.r(c);for(d=c.next();!d.done;d=c.next())f+=d.value.u;f/=e;b=f<b.policy.Nc?
!1:10<f?!0:10>e*(10-f)/AT(b)}}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&fMa(b.C).info.I<b.Y)return"seek"}if(!a.Xv||!a.policy.Mc||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";b=CMa(a.videoTrack,a.currentTime,a.policy.Mc)||CMa(a.audioTrack,a.currentTime,a.policy.Mc);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||YU(a.B,a.videoTrack,a.audioTrack)||YU(a.B,a.audioTrack,a.videoTrack))&&b?"nord":""};
JNa=function(a,b,c){if(c.Ph())return!0;if(!c.GB())return!1;var d=b.Gg();if(!d||6===d.info.type)return!1;var e,f;(f=null==(e=a.u))||(f=e.policy.Li&&CLa(e))||!(f=0!==e.u&&b===e.va)||(e=DU(e.I),f=d.info.Ia>(e?e.Ia:-1));if(f)return a.policy.Li&&a.D.Cg()&&nV(a),!1;oV(a,b,c,d.info);if(a.j.u&&0===d.info.Gb){if(null==c.Jp()){e=vU(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.qc(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Jp(),d.info.j.Yv()&&
sxa(d),f=d.info.j.j,e=e!==f&&!g.qc(e,f),a.policy.Ru&&(f=!!a.u.V.get(d.info.Ia),e&&f&&a.ma("sdai",{skipadinit:1,sq:d.info.Ia,itag:d.info.j.info.itag}),e=e&&!f);e&&(f=vU(b),a.ma("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Ia}));f=g.HD(d.info.j.info);(a.policy.eb&&f||a.policy.Mx&&!f)&&!e&&(g.HD(d.info.j.info)?(DC(GD(d),1836019574),DC(GD(d),1718909296)):(e=new FC(GD(d)),Bwa(e),JC(e,524531317,!0),d.j=d.j.split(e.start+e.pos).So),d.D=!1)}a.policy.Ei?d.B=void 0:a.policy.Qu&&
!c.Jp()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Gb||d.D||d.B||3!==d.info.type||!e||(f=new TB([e]),UB(f,d.j),f=YB(f),e=(new TB([f])).split(e.length),d.B=e.IC,d.j=e.So));e=a.C&&!!a.C.C&&b.j.info.audio;f=a.j.isManifestless||d.B||d.D;if(!(a.j.u&&0!==d.info.Gb||f&&!e)&&pV(a,c,d))return!0;if(e)return!1;e=a.currentTime+ZU(a,b,!1);(e=d.info.C>e)||(a.policy.Lc&&(!d.info.Gb||d.info.Ae||10>d.info.C)&&a.ma("sba",c.Ob({as:nD(d.info)})),e=d.D||d.B?d.info.j.j:null,f=d.j,d.B&&(f=new TB([]),UB(f,d.B),UB(f,d.j)),
f=YB(f),c=KNa(a,c,f,d.info,e),"s"===c?(a.va=0,a=!0):("i"===c||"x"===c?LNa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.I=Math.floor(.8*e.I),e.Ha=Math.floor(.8*e.Ha),e.D=Math.floor(.8*e.D)):(e=a.policy,e.W=Math.floor(.8*e.W),e.zc=Math.floor(.8*e.zc),e.D=Math.floor(.8*e.D)),PT(a.je,d.info.j)),mV(a.oa,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.Vi(d);return!0};
LNa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!QT(a.je)&&PT(a.je,d.j)):"i"===c&&(15>a.va?(a.va++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=mD(d);var h;d.mrs=null==(h=a.mediaSource)?void 0:sE(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
oMa=function(a,b,c,d,e){var f=a.j,h=!1,l=-1;for(p in f.j){var m=VD(f.j[p].info.mimeType)||f.j[p].info.isVideo();if(d===m)if(h=f.j[p].index,AD(h,b.Ia)){m=b;var n=h.zm(m.Ia);n&&n.startTime!==m.startTime?(h.segments=[],h.CF(m),h=!0):h=!1;h&&(l=b.Ia)}else h.CF(b),h=!0}if(0<=l){var p={};f.X("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}zLa(a.D,b,d,h);a.u.DJ(b,c,d,e)};
oV=function(a,b,c,d){b=vU(b);!b||b.Ae||kD(b,d)||c.abort();!c.Jy()||oE()?c.vL(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Jy()&&a.ma("ctu",{ct:oE(),prev_c:c.Jy(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.Ik&&b&&(d=0+b.duration,b=-b.j,0===c.oC()&&d===c.FH()||c.BK(0,d),b!==c.wd()&&(c.pE(b),nU&&qMa(a.audioTrack.C,c.VH())))};
pV=function(a,b,c){c.info.j.Sf();var d=c.info.j.j;if(!d||!b.GB()||b.Jp()===d)return!1;var e=d,f=b.tC();if(a.policy.Ei&&f&&b.isView()&&g.HD(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=vwa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ma("fenc",{})}f=null;(h=c.info.j.Mp(0))&&(f=h.j[0]);a.policy.Lc&&a.ma("sbi",b.Ob({as:nD(c.info)}));a.policy.bk&&b.abort();d=KNa(a,b,e,f,d);if("s"!==d)return LNa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.ra||(a.ra=
(0,g.U)(),SN("vis_a",a.ra,a.j))):(a=a.timing,a.I||(a.I=(0,g.U)(),SN("ais_a",a.I,a.j)));return b.Ph()};
KNa=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:gE(b.yg()).replace(/,/g,"_"),message:g.Cc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},zNa()),a.handleError("player.exception",b),"q";g.qz(f)}return"u"}return a.mediaSource.Rf()?"m":"s"};
eU=function(a,b){a.oa.wD(b)};
ZU=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.W:a.policy.I;!a.policy.gb&&a.je.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.zc:a.policy.Ha));c&&(d+=a.policy.yc);c=a.je.j.isLocked()?b.u?b.u.j.info.Pb:b.j.info.Pb:b.Pb*a.policy.Ak;d/=c;0<a.policy.Rl&&a.mediaSource&&rE(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.Ph()&&(b=b.yg(),c=hE(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.Rl,a.policy.Ju))));0<a.policy.D&&
(d=Math.min(d,a.policy.D));return d};
MNa=function(a,b){aS(b,"cms",function(c){a.policy.V&&a.ma("pathprobe",c)},function(c){a.oa.handleError(c)})};
NNa=function(a,b){a.J=b;a.u&&(a.u.C=b);a.J.IK(a.videoTrack.j.info.We());a.B.u=a.J};
ONa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.u,d=b;if(0!==c.u&&c.C){var e=c.Lv(d);e!==c.Y&&(c.C.JJ(c.Y,e,c.qa,d),c.Y=e);c.qa=d}a.currentTime!==b&&a.resume();a.D.Cg()&&a.mediaSource&&!a.mediaSource.Rf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=iE(a.mediaSource.u.yg(),a.currentTime+$U),c&&d&&(a.D.D=!1));a.D.Cg()||(a.currentTime=b);g.$n(a.fD)}};
PNa=function(a,b){var c=yU(a.videoTrack).find(function(d){return d.startTime>=b&&ANa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
ANa=function(a,b,c){if(!(a.videoTrack.j.Sf()&&a.audioTrack.j.Sf()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.j))return!1;if(c&&a.j.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=ET(a.videoTrack,b,c);if(isNaN(d))return!1;a=ET(a.audioTrack,a.policy.qa?b:d,c);return isNaN(a)?!1:!0};
QNa=function(a){a.dj();a.C&&vNa(a.C,a.videoTrack.j);nV(a);a=a.D;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);zMa(a.videoTrack);zMa(a.audioTrack);bya(a.j);a.j.isManifestless&&(a.B=!0);a.Ga.currentTime=b;a.D=!0;a.C=new UJ;return a.C};
qV=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.u.J=a.timestampOffset,a.oa.LJ(a.timestampOffset),a.j.isManifestless&&(a.j.timestampOffset=a.timestampOffset))};
g.rV=function(a){this.kd=a};
sV=function(){g.cz.apply(this,arguments)};
tV=function(a,b,c,d){sV.call(this);var e=this;this.B=-1;this.j={};this.C=new g.Zn(this.D,0,this);g.M(this,this.C);this.u=new g.Zn(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.M(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
RNa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
SNa=function(a){var b=a.interval,c=a.Ew;this.url=a.url;this.interval=b;this.Ew=c};
TNa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
UNa=function(a){var b=cC(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=uC(b.slice(d+2));if(null==b)return null;a=new TNa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.TCa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new SNa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Ew:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.j=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.r(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.u=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
VNa=function(a,b,c){c=void 0===c?"":c;g.K.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.ci(5E3,2E4,.2)};
WNa=function(a,b,c){a.onSuccess=b;a.onError=c};
YNa=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(0!==e.status&&e.response)if(XA("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=UNa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else XNa(a,e)},
onError:function(e){XNa(a,e)}};
c&&(b=Kea(b,"access_token",c));g.Cu(b,d)};
XNa=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)};
$Na=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){XA("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Ec(f.license)}catch(y){g.qz(y)}if(0!==h||l){l=new TNa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};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 v=ZNa[q.trackType];if(v){"HD"===v&&f.isHd720&&(v="HD720");q.isHdr&&(v+="HDR");
h[v]||(m.push(v),h[v]=!0);var w=null;try{w=Ec(q.keyId)}catch(y){g.qz(y)}w&&(n[g.Bc(w,4)]=v)}}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.GN="Bearer "+d);g.vx(c,"player/get_drm_license",b,e)};
vV=function(a,b,c,d){g.cz.call(this);this.videoData=a;this.U=b;this.N=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.W=!1;this.B=null;this.qa=[];this.D=[];this.Y=!1;this.j={};this.ra=NaN;this.status="";this.I=NaN;this.u=a.N;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.U.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ha&&(a.vvt=this.videoData.Ha,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.U.authUser&&(a.authuser=this.U.authUser);this.U.pageId&&(a.pageid=this.U.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.rb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.V=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.LE(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.V=!1);this.baseUrl=g.SE(this.u)?RNa(c.initData).replace("skd://",
"https://"):this.u.u;this.fairplayKeyId=yi(this.baseUrl,"ek")||"";if(b=yi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.va=this.videoData.K("html5_use_drm_retry");this.qa=c.We?[g.Bc(c.initData,4)]:c.u;uV(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
dOa=function(a,b){uV(a,{createkeysession:1});a.status="gr";XA("drm_gk_s",void 0,a.videoData.va);a.url=aOa(a);try{a.B=b.createSession(a.N,function(c){uV(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.X("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(bOa(a.B,function(c,d){cOa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.SE(a.u)&&g.UF(a.U)&&a.U.K("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.U.K("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(uV(a,{onkyadd:1}),a.J||(a.X("sessionready"),a.J=!0))},function(c){a.qq(c)}),g.M(a,a.B))};
aOa=function(a){var b=a.baseUrl;Vua(b)||a.error("drm.net",2,"t.x");if(!yi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.U.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.r(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Kea(b,d,a.C[d]);return b};
cOa=function(a,b,c){if(!a.isDisposed())if(b){uV(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":eOa(a,b);return;default:a.X("ctmp","message_type",{t:c,l:b.byteLength})}a.W||(XA("drm_gk_f",void 0,a.videoData.va),a.W=!0,a.X("newsession",a));if(PE(a.u)&&(b=fOa(b),!b))return;g.SE(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=bC(g.Bc(b)));b=new VNa(b,++a.requestNumber,a.videoData.va);WNa(b,function(d){gOa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.va&&36E4<(0,g.U)()-a.ra);l&&(h=1,e="drm.net.retryexhausted");uV(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(AG(h),d)&&hOa(a,d)}});
g.M(a,b);iOa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
eOa=function(a,b){uV(a,{sdpvrq:1});a.I=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.U.deviceParams);c=g.wi("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:cC(b)}),responseType:"arraybuffer"};
g.Fu(c,b,3,500).then(hu(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=cC(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.X("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.X("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))}}),hu(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
wV=function(a){var b;if(b=a.V&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
iOa=function(a,b){a.status="km";XA("drm_net_s",void 0,a.videoData.va);if(a.videoData.useInnertubeDrmService()){var c=new g.ux(a.U.zi),d={context:g.yv(c.config_||g.xv())};d.drmSystem=jOa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Bc(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.u)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.U.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.Ha&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ha,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Eb&&(d.context.user.kidsParent={oauthToken:a.videoData.Eb});g.SE(a.u)&&(d.fairplayKeyId=g.Bc(vaa(a.fairplayKeyId)));g.wG(g.uI(a.videoData)).then(function(l){$Na(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.wG(g.uI(a.videoData)).then(function(l){YNa(b,a.url,l);
a.status="rs"})};
gOa=function(a,b){if(!a.isDisposed())if(uV(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{XA("drm_kr_s",void 0,a.videoData.va);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.K("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.u.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.X("newlicense",b.heartbeatParams);b.j&&(a.D=b.j,a.U.K("html5_heartbeat_wait_for_drm_killswitch")||
(a.videoData.useInnertubeDrmService()&&!a.videoData.CL&&a.X("newlicense",new SNa({})),a.videoData.CL=!0),a.Y=Nl(a.D,function(d){return d.includes("HDR")}));
b.u&&(a.j=qf(b.u,function(d){return{type:d,status:"unknown"}}));
QE(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Ec(cC(b.message)):RE(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=bC(g.Bc(b.message)));a.B&&(uV(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){XA("drm_kr_f",void 0,a.videoData.va);wV(a)||(uV(a,{ksApiUnsup:1}),a.X("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Cc(d.message);
a.error("drm.keyerror",1,d)}));
a.J&&(a.ra=(0,g.U)());g.SE(a.u)&&a.X("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)}};
hOa=function(a,b){var c=b.j.getValue();c=new g.Zn(function(){iOa(a,b)},c);
g.M(a,c);c.start();g.di(b.j);uV(a,{rtyrq:1})};
kOa=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)};
xV=function(a){var b={};b[a.status]=wV(a)?kOa(a,"."):a.D.join(".");return b};
lOa=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};
yV=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
uV=function(a,b){var c=void 0===c?!1:c;yG(b);(c||xG(a.U))&&a.X("ctmp","drmlog",b)};
mOa=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};
fOa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=yfa(new DOMParser,g.yg(g.fg("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(TU(bba(a.childNodes[0].nodeValue)).buffer):null:null};
nOa=function(a,b,c,d){if(a=bC(g.Bc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Lea(c,d),g.Fu(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=UNa(e))&&e.message&&b.update(e.message)})};
zV=function(a,b,c,d,e){g.K.call(this);this.element=a;this.N=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.J=this.I=this.B=this.D=null;this.C=new g.YD(this);g.M(this,this.C);oOa(this)};
oOa=function(a){a.j?(a.C.P(a.j,"message",a.TV),a.C.P(a.j,"keystatuseschange",a.qq),a.j.closed&&a.j.closed.then(hu(function(){a.isDisposed()||Ou("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(az(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.iR),az(a.C,a.u,["mskeyerror","webkitkeyerror"],a.hR),az(a.C,a.u,["mskeyadded","webkitkeyadded"],a.gR))};
bOa=function(a,b,c,d,e){a.D=b;a.B=c;a.I=d;a.J=e};
pOa=function(a,b,c){g.gu(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
AV=function(a,b){g.K.call(this);this.element=a;this.j=b;this.I={};this.C=null;this.D=new g.YD(this);this.B=this.u=null;g.M(this,this.D)};
rOa=function(a,b){b=qOa(b,a.j.Ya);a=a.B.createSession("video/mp4",b);return new zV(null,null,null,null,a)};
sOa=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 zV(null,null,null,null,a)};
BV=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
qOa=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};
CV=function(a,b){g.K.call(this);this.j=g.mh("video");this.u=null;this.D=[];this.C=new g.YD(this);this.B=new ME("fairplay","com.youtube.fairplay","",b);this.B.Ya=a;g.M(this,this.C);this.init()};
DV=function(a,b,c,d){sV.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.j=[];this.u=new g.Zn(function(){e.X("log_qoe",{wvagt:"timer",reqlen:e.j?e.j.length:-1});if(e.j){if(0<e.j.length){var f=e.j.shift();tOa(e,f.info)}0<e.j.length&&(f=e.j[0].time-(0,g.U)(),e.u.start(Math.max(0,f)))}},0);
g.M(this,this.u);d.subscribe("widevine_set_need_key_info",this.I,this)};
tOa=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.X("log_qoe",{wvagt:"reqnews",canskip:c});c||a.X("rotated_need_key_info_ready",b)};
EV=function(){this.keys=[];this.values=[]};
FV=function(a){a.keys=[];a.values=[]};
GV=function(a,b,c){g.cz.call(this);this.element=a;this.videoData=b;this.U=c;this.j=this.videoData.N;this.drmSessionId=this.videoData.drmSessionId||g.dua();this.u=new Map;this.I=new EV;this.J=new EV;this.B=[];this.Ea=2;this.Y=new g.YD(this);this.Ha=this.qa=!1;this.heartbeatParams=null;this.ra=this.V=!1;this.D=null;this.va=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||NE()||UE(c.experiments);c=this.videoData.Gi;this.N="fairplay"===this.j.flavor||c?GH:uOa;this.C=new AV(this.element,this.j);g.M(this,
this.C);OE(this.j)&&(this.W=new AV(this.element,this.j),g.M(this,this.W));g.M(this,this.Y);c=this.element;this.j.keySystemAccess?this.Y.P(c,"encrypted",this.XV):az(this.Y,c,OE(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.b1);vOa(this);a:switch(c=this.j,a=this.U.experiments,b=this.u,c.flavor){case "fairplay":19.2999<xma()?(a=c.Ut,c=c.Tt,c>=a&&(c=.75*a),b=.5*(a-c),c=new tV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new DV(a.fb("disable_license_delay"),!a.fb("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.M(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.DN,this),this.D.subscribe("log_qoe",this.ji,this);UE(this.U.experiments);this.ji({cks:this.j.zg()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.B&&(this.La=new CV(this.videoData.Ya,this.U.experiments),g.M(this,this.La))};
vOa=function(a){var b=a.C.attach();b?b.then(hu(function(){wOa(a)}),hu(function(c){if(!a.isDisposed()){g.gu(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.X("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ji({mdkrdy:1}),a.V=!0);
a.W&&(b=a.W.attach())};
yOa=function(a,b,c){a.Ha=!0;c=new $T(b,c);a.U.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));xOa(a,c)};
xOa=function(a,b){if(!a.isDisposed()){a.ji({onInitData:1});if(a.U.K("html5_eme_loader_sync")&&a.videoData.B&&a.videoData.B.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.ji({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.qa&&!a.videoData.isLivePlayback)HV(a);else{if(!(a.U.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.We)){a.qa=!0;c=b.cryptoPeriodIndex;var d=b.j;bMa(b);b.We||(d&&b.j!==d?a.X("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.X("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.X("widevine_set_need_key_info",b)}}else a.DN(b)}};
wOa=function(a){if(!a.isDisposed())if(a.U.K("html5_drm_set_server_cert")&&!g.cG(a.U)){var b=a.C.setServerCertificate();b?b.then(hu(function(c){xG(a.U)&&a.X("ctmp","ssc",{success:c})}),hu(function(c){a.X("ctmp","ssce",{n:c.name,
m:c.message})})).then(hu(function(){IV(a)})):IV(a)}else IV(a)};
IV=function(a){a.isDisposed()||(a.V=!0,a.ji({onmdkrdy:1}),HV(a))};
zOa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")};
HV=function(a){if(a.Ha&&a.V&&!a.ra){for(;a.B.length;){var b=a.B[0],c=zOa(a)?cMa(b):g.Bc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}bMa(b);break}a.B.length&&a.createSession(a.B[0])}};
AOa=function(a){var b;if(b=g.Qu()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.gC(b),a.X("ctmp","drm",{metrics:b}))};
KV=function(a){g.K.call(this);var b=this;this.oa=a;this.Oa=this.oa.R();this.videoData=this.oa.getVideoData();this.qz=0;this.D=this.u=!1;this.C=0;this.B=g.TE(this.Oa.experiments,"html5_delayed_retry_count");this.j=new g.Zn(function(){JV(b.oa)},g.TE(this.Oa.experiments,"html5_delayed_retry_delay_ms"));
g.M(this,this.j)};
MV=function(a,b,c){var d=a.videoData.u,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.oa.Wg.D&&d&&"22"===d.itag)return a.oa.Wg.D=!0,a.yd("qoe.restart",{reason:"fmt.unplayable.22"}),LV(a.oa),!0;var f=!1,h=a.qz+3E4<(0,g.U)()||a.j.isActive();if(a.Oa.K("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.yd("auth",c),!0;var l;if(l=!h)l=a.oa.Pp(),l=!!(l.wf()||l.isInline()||l.isBackground()||
l.Vv()||l.Sv());l&&(c.nonfg="paused",h=!0,a.oa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:Kva(e)||Jva(e))&&(Gya(a.Oa.j,e.j),c.acfallexp=e.j,f=h=!0);!h&&0<a.B&&(a.j.start(),h=!0,c.delayed="1",--a.B);e=a.oa.Ga;if(!h&&((null==d?0:TD(d))||(null==d?0:DB(d)))){var m;if(a.videoData.K("html5_disable_codec_for_playback_on_error")&&e){l=e.je;var n=d.j;l.Ra.has(n)?l=!1:(l.Ra.add(n),l.V=-1,LT(l,l.j),l=!0);l&&(m="cfallp")}else Gya(a.Oa.j,d.j),m="cfallexp";m&&(f=h=!0,c[m]=d.j)}if(!h)return BOa(a,
c);a.qz=(0,g.U)();h=a.videoData;h.eb?(h=h.eb.JM(),m=Date.now()/1E3+1800,h=h<m):h=!1;c.e=b;h&&(c.staleprog="1");a.yd("qoe.restart",c);if(h&&COa(a))return DOa(a),!0;Ou("philips")&&EOa(a);d&&TD(d)?(f=a.Oa.j,f.V=!0,f=f.j=!0):e?(b=(b=vU(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.J+=1,PT(e.je,b,!0)):a.videoData.eb&&a.videoData.eb.vK();a.j.isActive()||JV(a.oa,f);return!0};
BOa=function(a,b){if(a.videoData.La)return!1;a.Oa.ub+=1;if(10>=a.Oa.ub)return!1;b.exiled=""+a.Oa.ub;a.yd("qoe.start15s",b);a.oa.X("playbackstalledatstart");return!0};
EOa=function(a){if("GAME_CONSOLE"!==a.Oa.deviceParams.cplatform)try{window.close()}catch(b){}};
COa=function(a){return a.u?!0:"yt"!==a.Oa.Ha?!1:a.videoData.La?25>a.videoData.Yb:!a.videoData.Yb};
DOa=function(a){if(!a.u){a.u=!0;var b=a.oa.getPlayerState();b=g.W(b,4)||b.isSuspended();a.oa.Jo();b&&!vI(a.videoData)||a.oa.X("signatureexpired")}};
FOa=function(a,b){if((a=a.oa.Qd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.ag();b.details.merr=c?c.toString():"0";b.details.msg=a.kf()}};
HOa=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.u)return!1;b.details.sts="19219";if(COa(a))return AG(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new zG("qoe.restart",b)),a.yd(b.errorCode,b.details),DOa(a),!0;6048E5<(0,g.U)()-a.Oa.Ne&&GOa(a,"signature");return!1};
GOa=function(a,b){try{window.location.reload();a.yd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.Oa.K("tvhtml5_retire_old_players")&&g.cG(a.Oa)&&EOa(a)};
IOa=function(a,b){var c=a.Oa.j;c.D=!1;c.j=!0;a.yd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});JV(a.oa,!0)};
JOa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
NV=function(a,b,c){this.U=a;this.vA=b;this.oa=c;this.V=this.I=this.J=this.u=this.j=this.C=this.N=this.B=0;this.playbackRate=1;this.D=!1};
OV=function(a,b,c){!a.U.K("html5_tv_ignore_capable_constraint")&&g.cG(a.U)&&(c=c.compose(KOa(a,b)));return c};
LOa=function(a,b){var c=!0,d=a.playbackRate;if(a.K("html5_cap_quality_for_tv_hfr")){var e;c=PV(a,null==(e=b.j)?void 0:e.videoInfos);d=a.oa.getPlaybackRate()}return 1<d&&c?(a=Aya(a.U.j,b.j.videoInfos,d),new tB(0,a,!0,"o")):new tB(0,0,!1,"o")};
PV=function(a,b){return b&&g.cG(a.U)?a.K("html5_cap_quality_for_tv_hfr")?b.some(function(c){return 32<c.video.fps}):32<b[0].video.fps:!1};
MOa=function(a,b){var c=a.oa.rC();if(a.K("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.AL&&wB(b.videoData.Fk))a=c.AL,b.videoData.Fk=new tB(0,a,!1,"u");else{var d;if(c&&(null==(d=c.zG)?0:d.length)&&wB(b.videoData.Fk)){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.itag,e.video.j);d=[];c=g.r(c.zG);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.t(d));b.videoData.Fk=new tB(0,a,!1,"u")}}return b.videoData.Fk};
KOa=function(a,b){if(g.cG(a.U)&&FB(a.U.j,GB.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;RF(a.U)&&(e=window.screen&&window.screen.width?new g.Qg(window.screen.width,window.screen.height):null);e||(e=a.U.Ok?a.U.Ok.clone():a.vA.Ji());(TF||tT||d)&&e.scale(g.kG());d=e;VH(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||PF||(e=.45);a=g.TE(a.U.experiments,
"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new tB(0,"93"===c.itag?g.uB[MD(d.width,d.height)]:d.j,!1,"r")}else c=GH;c=c.j}c&&(c=Math.max(c,360));return new tB(0,c,!1,"r")};
NOa=function(a){var b,c,d;return g.z(function(e){switch(e.j){case 1:return a.j.j&&navigator.mediaCapabilities?g.x(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.Ma(0);break}d=c.value;return g.x(e,uxa(d),4);case 4:c=b.next(),e.Ma(3)}})};
POa=function(a,b){if(!b.videoData.u||a.K("html5_disable_performance_downgrade"))return!1;6E4<g.Wa()-a.N&&(a.B=0);a.B++;a.N=g.Wa();if(4!==a.B)return!1;OOa(a,b.videoData.u);return!0};
ROa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.TE(a.U.experiments,"html5_df_downgrade_thresh"),f=a.K("html5_log_media_perf_info"),h=g.TE(a.U.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.U)()-a.C?0:f||0<e||0<h))return!1;var l=((0,g.U)()-a.C)/1E3;a.C=(0,g.U)();c=c.oB();if(!c)return!1;var m=c.droppedVideoFrames-a.I,n=c.totalVideoFrames-a.V;a.I=c.droppedVideoFrames;a.V=c.totalVideoFrames;var p=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||
-1;f&&xG(a.U)&&a.oa.ma("ddf",{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:p});if(d)return a.j=0,a.u=0,!1;d=60<n?m/n:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;h=g.TE(a.U.experiments,"html5_displayed_frame_rate_downgrade_threshold");if(0<h&&(n-m)/l>h||!e||g.cG(a.U))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;OOa(a,b.videoData.u);a.oa.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},QOa()));return!0};
SOa=function(a,b){return 0>=g.TE(a.U.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
OOa=function(a,b){var c=b.j,d=b.video.fps;b=b.video.j-1;var e=IE();c=iya(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.Pz("yt-player-performance-cap",e,604800));a.oa.Ww()};
TOa=function(a,b){if(!b.j.j)return a.D?new tB(0,360,!1,"b"):GH;for(var c=!1,d=!1,e=g.r(b.j.videoInfos),f=e.next();!f.done;f=e.next())TD(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.TE(a.U.experiments,"html5_performance_cap_floor");a=a.U.isMobile?240:f;b=g.r(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!TD(e))if(f=JE(e.j,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new tB(0,d,!1,"b")};
UOa=function(a){a=a.oa.Pp();return a.isInline()?new tB(0,480,!1,"v"):a.isBackground()&&60<Px()/1E3?new tB(0,360,!1,"v"):GH};
WOa=function(a,b,c){if(a.U.experiments.fb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.cG(a.U)&&(1080<=HE(-1)||b.osid))return GH;var d=g.TE(a.U.experiments,"html5_autonav_quality_cap"),e=g.TE(a.U.experiments,"html5_autonav_cap_idle_secs");return d&&b.Vm&&Px()/1E3>e?(c&&(d=VOa(a,c,d)),new tB(0,d,!1,"e")):GH};
VOa=function(a,b,c){if(a.K("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};
XOa=function(a,b){a.K("html5_log_media_perf_info")&&(a.oa.ma("perfdb",QOa()),a.oa.ma("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.oa.ma("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.itag}).join("-")}))};
QOa=function(){return qf(IE(),function(a){return""+a})};
QV=function(a,b){g.K.call(this);this.j=a;this.J=b;this.u=-1;this.I=!1;this.B=-1;this.playerState=new g.$J;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.Zn(this.send,6E4,this);this.C=!1;g.M(this,this.delay)};
RV=function(a){0<=a.u||(3===a.j.oa.getVisibilityState()?a.I=!0:(a.u=g.sS(a.j),a.delay.start()))};
YOa=function(a){if(!(0>a.B)){var b=g.sS(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.hK(a.playerState)&&!g.W(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
SV=function(a,b){b?ZOa.test(a):(a=g.nu(a),Object.keys(a).includes("cpn"))};
TV=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(qu(a)&&ru()){if(h){var n;2!==(null==(n=$Oa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=$Oa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.Q("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.Q("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.Q("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.K("html5_send_cpn_with_options")&&ZOa.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};
UV=function(a,b,c,d,e,f,h,l){ru()&&c.token&&(a=ou(a,{ctt:c.token,cttype:c.eL,mdx_environment:c.mdxEnvironment}));f||l&&d.K("nwl_skip_retry")?(null==b?b={}:SV(a,d.K("html5_assert_cpn_with_regex")),h?d.K("use_new_nwl_saw")?hx().sendAndWrite(a,b):px(a,b):d.K("use_new_nwl_stw")?hx().sendThenWrite(a,b,l):ox(a,b,l)):d.Ei?(b=b||{},SV(a,d.K("html5_assert_cpn_with_regex")),d.Ei.enqueue(a,b)):b?(SV(a,d.K("html5_assert_cpn_with_regex")),g.Cu(a,b)):g.Ww(a,e)};
g.WV=function(a){g.K.call(this);var b=this;this.j=a;this.logger=new g.eT("qoe");this.u={};this.sequenceNumber=1;this.eb=NaN;this.Zd="N";this.N=this.Kb=this.ub=this.Ya=this.C=0;this.Ea=this.Yb="";this.Cb=this.Y=NaN;this.gb=0;this.Lc=-1;this.Eb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Ra=this.qa=this.isOffline=this.ra=!1;this.zc=[];this.W=null;this.D=this.La=this.I=!1;this.B=-1;this.Ha=!1;this.yc=new g.Zn(this.QY,750,this);this.V=this.adCpn="";this.adFormat=void 0;this.Nc=0;this.Mc=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));
this.Ua=!1;g.M(this,this.yc);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.W=c});
g.VV(this,0,"vps",["N"])};
g.VV=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
XV=function(a,b){var c=a.j.oa.getCurrentTime();g.VV(a,b,"cmt",[c.toFixed(3)]);c=a.j.oa.gj();if(a.J&&1E3*c>a.J.BQ+100&&a.J){var d=a.J,e=d.isAd;c=1E3*c-d.BQ;a.va=1E3*b-d.R3-c-d.z3;if(!a.j.videoData.K("web_player_dai_csi_killswitch")){c=(0,g.U)()-c;b=a.va;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};!d.K("web_player_csi_ctt_killswitch")&&d.I&&(h.cttAuthInfo={token:d.I,videoId:d.videoId});h.startTime=c-b;ZA(f,h);YA({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);XA("pbs",c,f)}else c=a.j.oa.ej(),c.J!==d.clientPlaybackNonce?(c.I=d.clientPlaybackNonce,c.B=b):g.rz(new g.Rv("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.ma("gllat",{l:a.va.toFixed(),prev_ad:+e});delete a.J}};
ZV=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.sS(a.j);var c=a.j.oa.Ry();if(!isNaN(a.Y)&&!isNaN(c.j)){var d=c.j-a.Y;0<d&&g.VV(a,b,"bwm",[d,(c.C-a.Cb).toFixed(3)])}isNaN(a.Y)&&c.j&&a.isOffline&&aPa(a,!1);a.Y=c.j;a.Cb=c.C;isNaN(c.bandwidthEstimate)||g.VV(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);xG(a.j.U)&&0!==Object.keys(c.u).length&&a.ma("bwinfo",c.u);if(xG(a.j.U)||a.j.U.K("html5_log_meminfo"))d=zNa(),Object.values(d).some(function(e){return void 0!==e})&&a.ma("meminfo",d);
a.W&&g.VV(a,b,"bat",[a.W.level,a.W.charging?"1":"0"]);d=a.j.oa.getVisibilityState();a.Lc!==d&&(g.VV(a,b,"vis",[d]),a.Lc=d);XV(a,b);(d=bPa(a.j))&&d!==a.gb&&(g.VV(a,b,"conn",[d]),a.gb=d);YV(a,b,c)};
YV=function(a,b,c){if(!isNaN(c.Cr)){var d=c.Cr;c.B<d&&(d=c.B);g.VV(a,b,"bh",[d.toFixed(3)])}};
cPa=function(a,b,c){g.wG(g.uI(a.j.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.j.U.K("kevlar_woffle")||a.j.U.K("qoe_nwl_downloads"))e=!0}else a.j.U.K("qoe_with_networkless")&&(e=!0);var f=a.j.U.K("qoe_send_and_write"),h=a.j.U,l=a.j.K("web_player_vss_pageid_header")?a.j.U.pageId:void 0;d=TV(b,h,l,a.j.U.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,d);h.K("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,UV(b,d,{token:a.j.videoData.I,
eL:a.j.videoData.Ej,mdxEnvironment:a.j.videoData.mdxEnvironment},h,void 0,e,f&&a.qa)):e?(e=a.j.U.K("networkless_ajax"),h={method:"POST",postBody:c},f&&a.qa?a.j.U.K("use_new_nwl_saw")?hx().sendAndWrite(b,h):px(b,h):e?g.Cu(b,{method:"POST",postBody:c}):a.j.U.K("use_new_nwl_stw")?hx().sendThenWrite(b,h):ox(b,h)):(f=c,f=void 0===f?"":f,joa(b,f)||g.Ww(b,void 0,void 0,void 0,f))})};
$V=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(Qk(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Zn(a.reportStats,0,a)).start()};
dPa=function(a){a.j.videoData.cf&&aW(a,"prefetch");a.j.videoData.Yb&&a.ma("reload",{r:a.j.videoData.reloadReason,ct:a.j.videoData.Yb});a.j.videoData.Cb&&aW(a,"monitor");a.j.videoData.isLivePlayback&&aW(a,"live");a.j.videoData.Ah&&a.ma("ctrl",{mode:a.j.videoData.Ah},!0);if(a.j.videoData.Wh){var b=a.j.videoData.Wh.replace(/,/g,"_");a.ma("ytp",{type:b},!0)}a.j.videoData.xP&&(b=a.j.videoData.xP.replace(/,/g,"."),a.ma("ytrexp",{ids:b},!0));if(!a.j.U.K("html5_disable_gpu_reporting")){var c=a.j.videoData;
b=a.j.U.K("enable_white_noise")||a.j.U.K("enable_webgl_noop")||a.j.U.K("enable_gpu_logging");c=g.mI(c)||g.kI(c)||g.lI(c)||g.nI(c);(b||c)&&(b=(0,g.bW)())&&(a.u.gpu=[b])}vI(a.j.videoData)&&g.VV(a,g.sS(a.j),"dt",["1"]);xG(a.j.U)&&(b=(0,g.U)()-a.j.U.Ne,a.ma("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.eb=g.yu(function(){a.reportStats()},1E4)};
fPa=function(a,b,c){var d=g.sS(a.j);ePa(a,d,b,0,c);ZV(a,d);$V(a)};
ePa=function(a,b,c,d,e){var f=a.j.oa.getCurrentTime();c=[c,1===d?"fatal":"",f.toFixed(3)];e&&c.push(gPa(e));g.VV(a,b,"error",c);a.D=!0};
cW=function(a){0<=a.B||(a.j.U.Kd||3!==a.j.oa.getVisibilityState()?a.B=g.sS(a.j):a.Ha=!0)};
aW=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
aPa=function(a,b){a.isOffline=b;g.VV(a,g.sS(a.j),"is_offline",[a.isOffline?"1":"0"])};
hPa=function(a,b,c,d,e){var f=g.sS(a.j);1!==b&&(a.j.U.experiments.fb("html5_record_transitiontype_vps_killswitch")||3!==b&&5!==b)||g.VV(a,f,"vps",[a.Zd]);var h=a.u.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=h};
gPa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
iPa=function(a){this.j=a;this.N=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.J=this.I=0;this.W=this.j.hj().volume;this.V=this.j.hj().muted;this.C=dW(this.j)};
eW=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Qb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.I+=a.u-a.B;a.C=dW(a.j);a.B=a.u};
kPa=function(a){jPa(a);a.J=g.yu(function(){a.update()},100);
a.lastUpdateTime=g.sS(a.j);a.C=dW(a.j)};
jPa=function(a){window.clearInterval(a.J);a.J=NaN};
lPa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
fW=function(a,b,c,d){this.U=b;this.segments=[];this.experimentIds=[];this.La=this.Cb=this.isFinal=this.Ld=this.gb=this.yc=this.autoplay=this.autonav=!1;this.Kb="yt";this.D=this.I=null;this.sendVisitorIdHeader=this.Ra=!1;this.pageId="";this.C="watchtime"===c;this.B="playback"===c;this.W="delayplay"===c;this.V="atr"===c;this.He="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.V?"/api/stats/"+c:"//"+b.Pk+"/api/stats/"+c;this.cf=!b.K("embeds_disable_event_label_embedded_unbranded_killswitch")&&
this.B&&b.pfpChazalUi&&a.C;d&&(this.Cb=d.fs,d.rtn&&(this.D=d.rtn),this.C?(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.Ne=d.mos,this.Eh=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Lc=d.inview),d.size&&(this.Yb=d.size));this.deviceParams=g.Gf(b.deviceParams);this.Kd=b.He;b.K("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Ha=b.pg;this.Kb=b.Ha;
this.region=b.region;this.userAge=b.userAge;this.Ya=b.qg;this.rd=Px();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.ra=b.K("vss_pings_using_networkless")||b.K("kevlar_woffle");this.Oe=b.K("vss_final_ping_send_and_write");this.qa=b.K("vss_use_send_and_write");this.pageId=b.pageId;this.Pe=b.K("vss_playback_use_send_and_write");this.Mc=b.K("use_new_nwl_saw");this.Nc=b.K("use_new_nwl_stw");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Ed=b.u&&b.K("embeds_append_synth_ch_headers");
g.MF(b)&&!b.K("embeds_enable_epm_killswitch")&&(this.Ea=b.W);this.accessToken=g.uI(a);a.Bd&&(this.Bd=a.Bd);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=tI(a);this.B&&(this.yc=a.K("html5_enable_log_server_autoplay")&&a.Dt&&"adunit"==qI(a)?!0:!1);this.autonav=a.Vm||this.autonav;this.Fd=rI(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.gb=a.C;a.I&&(this.J=a.I,this.eb=a.Ej);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Jx;this.ub=a.ub;a.u&&(this.videoFormat=
a.u.itag,a.D&&a.D.itag!==this.videoFormat&&(this.audioFormat=a.D.itag));a.j&&AB(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.cf?"embedded_unbranded":qI(a);this.La=a.jh;this.Cd=a.Mk;if(b=eI(a))this.bf=b;this.Dd=a.ir;this.Y=a.Y;this.eventId=a.eventId;this.playlistId=a.qQ||a.playlistId;this.Fu=a.Fu;this.Ah=a.Ah;this.Wh=a.Wh;this.Wl=a.Wl;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.QF=a.QF;
this.referrer=a.referrer;this.Ul=a.eP||a.Ul;this.Ua=a.Mx;this.Iu=a.Iu;this.userGenderAge=a.userGenderAge;this.xs=a.xs;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn};
gW=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.wG(a.accessToken).then(function(d){return TV(a.uri,a.U,a.pageId,c,d,b,a.Ed)})};
mPa=function(a,b){return function(){a.U.K("html5_simplify_pings")?(a.j=a.va,a.zc=b(),a.rd=0,a.send()):gW(a).then(function(c){var d=a.uri,e=hW(a),f=a.ra,h=a.qa,l=a.Mc,m=a.Nc;l=void 0===l?!1:l;m=void 0===m?!1:m;e.cmt=e.len;e.lact="0";var n=b().toFixed(3);e.rt=Number(n).toString();d=g.wi(d,e);f?(null==c&&(c={}),h?l?hx().sendAndWrite(d,c):px(d,c):m?hx().sendThenWrite(d,c):ox(d,c)):c?g.Cu(d,c):g.Ww(d)})}};
hW=function(a){var b={ns:a.Kb,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.Cb?"1":"0",rt:a.u(a.zc),adformat:a.adFormat,content_v:a.Fd,etv:a.embedsTokenValue,euri:a.Kd,lact:a.rd,live:a.bf,cl:(467558535).toString(),mos:a.Ne,state:a.playerState,volume:a.Eh};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.yc&&(b.sautoplay="1");a.gb&&(b.dni="1");!a.C&&a.Ea&&(b.epm=nPa[a.Ea]);a.isFinal&&(b["final"]="1");a.La&&(b.splay=
"1");a.ub&&(b.delay=a.ub);a.Ha&&(b.hl=a.Ha);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ya&&(b.uga=a.Ya+a.userAge);void 0!==a.va&&(b.len=a.u(a.va));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.u(a.D));a.Ul&&(b.feature=a.Ul);a.Ah&&(b.ctrl=a.Ah);a.Wh&&(b.ytr=a.Wh);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Eb&&(b.lio=a.u(a.Eb));a.C?(b.idpj=a.Cd,b.ldpj=
a.Dd,null!=a.I&&(b.rti=a.u(a.I)),a.xs&&(b.ald=a.xs)):void 0!==a.adType&&(b.at=a.adType);a.Yb&&(a.B||a.W||a.C)&&(b.size=a.Yb);null!=a.Lc&&(a.B||a.W||a.C)&&(b.inview=a.u(a.Lc));a.C&&(b.volume=iW(a,g.Pk(a.segments,function(d){return d.volume})),b.st=iW(a,g.Pk(a.segments,function(d){return d.startTime})),b.et=iW(a,g.Pk(a.segments,function(d){return d.endTime})),Nl(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=iW(a,g.Pk(a.segments,function(d){return d.playbackRate}))),Nl(a.segments,function(d){return"-"!==
d.j})&&(b.als=g.Pk(a.segments,function(d){return d.j}).join(",")));
b.muted=iW(a,g.Pk(a.segments,function(d){return d.muted?1:0}));
Nl(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=iW(a,g.Pk(a.segments,function(d){return d.visibilityState})));
Nl(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=iW(a,g.Pk(a.segments,function(d){return d.connectionType})));
Nl(a.segments,function(d){return 0!==d.u})&&(b.blo=iW(a,g.Pk(a.segments,function(d){return d.u})));
Nl(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Pk(a.segments,function(d){return d.C}).join(","));
Nl(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Pk(a.segments,function(d){return d.clipId}).join(","));
if(Nl(a.segments,function(d){return!!d.B})){var c="au";
a.B&&(c="au_d");b[c]=g.Pk(a.segments,function(d){return d.B}).join(",")}ru()&&a.J&&(b.ctt=a.J,b.cttype=a.eb,b.mdx_environment=a.mdxEnvironment);
a.He&&(b.etype=void 0!==a.N?a.N:0);a.Ua&&(b.uoo=a.Ua);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=oPa[a.livingRoomAppMode]||a.livingRoomAppMode);a.Bd&&a.U.K("html5_log_server_url_param")?pPa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.QF,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.Wl&&(b.ssrt="1"),a.Iu&&(b.upt=a.Iu));if(a.B||a.W)a.embedsRct&&
(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=a.embedsRctn);return b};
pPa=function(a,b){if(b&&a.Bd)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.Bd)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Bd[h]||(b[h]=a.Bd[h])};
iW=function(a,b){return g.Pk(b,a.u).join(",")};
qPa=function(a,b){a.attestationResponse&&gW(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.ra?a.qa?a.Mc?hx().sendAndWrite(b,c):px(b,c):a.Nc?hx().sendThenWrite(b,c):ox(b,c):g.Cu(b,c)})};
jW=function(a){g.K.call(this);this.j=a;this.currentPlayerState="paused";this.D=NaN;this.I=[10,10,10,40];this.N=this.J=0;this.ra=this.Y=this.va=this.qa=this.W=this.V=this.B=!1;this.C=NaN;this.u=new iPa(a)};
sPa=function(a){if(!a.B){a.j.U.K("disable_embedpage_playback_logging")||16623!==a.j.videoData.lA||g.rz(Error("Playback for EmbedPage"));var b=kW(a,"playback");a:{if(a.j.U.K("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.Mk,h=a.j.videoData.ir,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+h-f);c.push(d);a.I=c;break a}}a.I=[10+a.j.videoData.Mk,10,10,40+a.j.videoData.ir-a.j.videoData.Mk,40]}kPa(a.u);b.D=lW(a,!0);0<a.C&&(b.j-=a.C);b.send();a.j.videoData.Rq&&(b=a.j.U,d=a.j.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Rq,oid:d.iN,ptchn:d.hN,pltype:d.jN,content_v:rI(d)},d.Ot&&Object.assign(c,{m:d.Ot}),b=g.wi(b.qa+"ptracking",c),mW(a,b));a.j.videoData.ub||rPa(a);a.B=!0;a=a.u;a.u=a.j.oa.getCurrentTime();
a.j.U.K("html5_vss_media_time_killswitch")||(a.u=a.j.oa.gj());a.lastUpdateTime=g.sS(a.j);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.N=!0}};
lW=function(a,b,c){c=void 0===c?NaN:c;var d=g.sS(a.j);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.J];a.J+1<a.I.length&&a.J++;var f=c+e;a.D=g.xu(function(){if(!a.isDisposed()){a.D=NaN;var h=nW(a),l=tPa(a,h);b&&(l.I=f);var m=1E3<a.N;!(1<h.length)&&h[0].isEmpty()||m||(l.D=lW(a,!0,f));l.send();a.N++}},1E3*(f-d));
return f};
oW=function(a){g.zu(a.D);a.D=NaN};
nW=function(a){a.u.update();a=a.u;a.segments.length&&a.u===a.B||eW(a);var b=a.segments;a.segments=[];return b};
kW=function(a,b){var c=a.j;c=Object.assign(c.hj(),c.videoData.hj());Object.assign(c,{state:a.currentPlayerState});b=new fW(a.j.videoData,a.j.U,b,c);b.j=a.j.oa.getCurrentTime();a.j.U.K("html5_vss_media_time_killswitch")||(b.j=a.j.oa.gj());a.j.videoData.isLivePlayback||(b.va=a.j.oa.getDuration());a.j.videoData.j&&(c=a.j.videoData.j.getIngestionTime(b.j))&&(b.Eb=c-b.j);b.zc=g.sS(a.j);b.segments=[dW(a.j)];return b};
tPa=function(a,b){var c=kW(a,"watchtime");if(0<a.C){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.C,e.endTime-=a.C;c.j-=a.C}else c.j=a.u.u;c.segments=b;return c};
pW=function(a){return tPa(a,nW(a))};
rPa=function(a){a.j.videoData.remarketingUrl&&!a.qa&&(mW(a,a.j.videoData.remarketingUrl),a.qa=!0);a.j.videoData.youtubeRemarketingUrl&&!a.va&&(mW(a,a.j.videoData.youtubeRemarketingUrl),a.va=!0);a.j.videoData.googleRemarketingUrl&&!a.Y&&(mW(a,a.j.videoData.googleRemarketingUrl),a.Y=!0);a.j.videoData.ppvRemarketingUrl&&!a.ra&&(mW(a,a.j.videoData.ppvRemarketingUrl),a.ra=!0);a.Yw()};
qW=function(a){if(!a.isDisposed()&&a.B){a.currentPlayerState="paused";var b=pW(a);b.isFinal=!0;b.send();a.dispose()}};
uPa=function(a,b,c){if(!a.V){c||(c=kW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.V=!0}};
mW=function(a,b){var c=a.j.U;g.wG(g.uI(a.j.videoData)).then(function(d){var e=a.j.K("web_player_vss_pageid_header")?a.j.U.pageId:void 0,f=a.j.U.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,h=a.j.U.K("vss_pings_using_networkless")||a.j.U.K("kevlar_woffle"),l=a.j.U.K("allow_skip_networkless");d=TV(b,c,e,f,d);UV(b,d,{token:a.j.videoData.I,eL:a.j.videoData.Ej,mdxEnvironment:a.j.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
vPa=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="-"};
rW=function(a,b,c,d){this.videoData=a;this.U=b;this.oa=c;this.hj=d;this.j=void 0};
g.sS=function(a){return wPa(a)()};
wPa=function(a){if(!a.j){var b=g.Va(function(d){var e=(0,g.U)();d&&631152E6>=e&&(g.qz(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.U.K("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.oa.IJ()}return a.j};
bPa=function(a){if(navigator.connection&&navigator.connection.type)return xPa[navigator.connection.type]||xPa.other;if(g.cG(a.U)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
dW=function(a){var b=new vPa;b.C=a.hj().cc||"-";b.playbackRate=a.oa.getPlaybackRate();var c=a.oa.getVisibilityState();0!==c&&(b.visibilityState=c);a.U.Bd&&(b.u=1);c=a.oa.getAudioTrack();c.Ic&&c.Ic.id&&"und"!==c.Ic.id&&(b.B=c.Ic.id);b.connectionType=bPa(a);b.volume=a.hj().volume;b.muted=a.hj().muted;b.clipId=a.hj().clipid||"-";b.j=a.videoData.aQ||"-";return b};
g.sW=function(a){g.K.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.nh=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Ak&&(this.j=new jW(this.u),g.M(this,this.j),this.qoe=new g.WV(this.u),g.M(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.nh=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.nh,this.j));this.C=new QV(this.u,function(c){b.ma("h5h",c)});
g.M(this,this.C)};
yPa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.nh){var b;null!=(b=a.B.get(a.nh))&&eW(b.u)}else a.j&&eW(a.j.u)};
zPa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Zd&&(b.Zd="N");var c=g.sS(b.j);g.VV(b,c,"vps",[b.Zd]);b.I||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.I=!0);xG(b.j.U)&&b.ma("finalized",{});b.qa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())qW(c.value);else a.j&&qW(a.j);a.dispose()};
APa=function(a,b){a.j&&uPa(a.j,b)};
BPa=function(a){if(!a.j)return null;var b=kW(a.j,"atr");return function(c){a.j&&uPa(a.j,c,b)}};
CPa=function(a,b,c,d){c.adFormat=c.Mc;var e=b.oa;b=new jW(new rW(c,b.U,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
gj:function(){return e.gj()},
Ry:function(){return e.Ry()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Ty:function(){return e.Ty()},
getVisibilityState:function(){return e.getVisibilityState()},
ej:function(){return e.ej()},
IJ:function(){e.IJ()},
Mz:function(){e.Mz()}},b.hj));
b.C=d;g.M(a,b);return b};
DPa=function(){this.Cr=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
EPa=function(){this.j=g.tA;this.array=[]};
GPa=function(a,b,c){var d=[];for(b=FPa(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
HPa=function(a,b){var c=[];a=g.r(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
IPa=function(a){return a.array.slice(FPa(a,0x7ffffffffffff),a.array.length)};
FPa=function(a,b){a=lc(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
JPa=function(a,b){var c=NaN;a=g.r(a.array);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};
KPa=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
tW=function(a,b,c,d){g.K.call(this);this.N=a;this.Y=b;this.D=c;this.V=d;this.u=NaN;this.I=this.J=this.started=!1;this.B=[];this.W=new g.Zn(this.Pl,250,this);g.M(this,this.W);this.C=new g.Zn(this.Pl,0,this);g.M(this,this.C);this.j=new EPa};
LPa=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.V(g.uA(d.namespace),d):a.V(g.vA(d.namespace),d)}};
MPa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.cG(a)&&(this.C=.01)};
uW=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
vW=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};
NPa=function(a,b){this.videoData=a;this.j=b};
OPa=function(a,b,c){return xBa(b,c).then(function(){return Iu(new NPa(b,b.B))},function(d){d instanceof Error&&iu(d);
var e=$D('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=aE('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.$E(a.j,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:!!b.adaptiveFormats,d:!!b.gb,drm:WH(b),f18:0<=b.Bk.indexOf("itag=18"),c18:e};b.j&&(WH(b)?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=aE('video/mp4; codecs="avc1.42001E"'),
e.cVP9=aE('video/webm; codecs="vp9"'));b.N&&(e.drmsys=b.N.keySystem,f=0,b.N.j&&(f=Object.keys(b.N.j).length),e.drmst=f);return new zG(d,e,h)})};
PPa=function(a){this.D=a;this.B=this.u=0;this.C=new hT(50)};
xW=function(a,b,c){g.cz.call(this);this.videoData=a;this.experiments=b;this.N=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new QPa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Cb?c.u=3:g.iI(a)&&(c.u=2);b.fb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=pBa(a);c.D=2===d||-1===d;c.D&&(c.Y++,21530001===aI(a)&&(c.I=g.TE(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Ou("trident/")||Ou("edge/"))c.B=Math.max(c.B,g.TE(b,"html5_platform_minimum_readahead_seconds")||
3);g.TE(b,"html5_minimum_readahead_seconds")&&(c.B=g.TE(b,"html5_minimum_readahead_seconds"));g.TE(b,"html5_maximum_readahead_seconds")&&(c.V=g.TE(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.C=!0);g.TE(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.TE(b,"html5_allowable_liveness_drift_chunks"));g.TE(b,"html5_readahead_ratelimit")&&(c.W=g.TE(b,"html5_readahead_ratelimit"));switch(aI(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.fb("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Cb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(aI(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=wW(this,b)};
RPa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===pBa(a.videoData)&&--c;return yW(a)*c};
zW=function(a,b){var c=a.al(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*yW(a);return b>=c-a};
SPa=function(a,b,c){b=zW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
TPa=function(a,b){b=zW(a,b);a.D!==b&&a.X("livestatusshift",b);a.D=b};
yW=function(a){return a.videoData.j?DE(a.videoData.j)||5:5};
wW=function(a,b){b=Math.max(Math.max(a.policy.Y,Math.ceil(a.policy.B/yW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.V/yW(a))),b)};
QPa=function(){this.Y=1;this.B=0;this.V=Infinity;this.W=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.N=!1};
CW=function(a){g.K.call(this);this.oa=a;this.U=this.oa.R();this.C=this.j=0;this.B=new g.Zn(this.D,1E3,this);this.va=new AW({delayMs:g.TE(this.U.experiments,"html5_seek_timeout_delay_ms")});this.V=new AW({delayMs:g.TE(this.U.experiments,"html5_long_rebuffer_threshold_ms")});this.Ea=BW(this,"html5_seek_set_cmt");this.Y=BW(this,"html5_seek_jiggle_cmt");this.ra=BW(this,"html5_seek_new_elem");this.Ua=BW(this,"html5_unreported_seek_reseek");this.J=BW(this,"html5_long_rebuffer_jiggle_cmt");this.N=new AW({delayMs:2E4});
this.I=BW(this,"html5_ads_preroll_lock_timeout");this.Ha=new AW({delayMs:g.TE(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tv:!this.U.K("html5_report_slow_ads_as_error")});this.La=new AW({delayMs:g.TE(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tv:!this.U.K("html5_skip_slow_buffering_ad")});this.qa=BW(this,"html5_seek_over_discontinuities");this.Ra=new AW({delayMs:g.TE(this.U.experiments,"html5_slow_start_timeout_delay_ms")});this.W=BW(this,"html5_slow_start_no_media_source");
this.u={};g.M(this,this.B)};
BW=function(a,b){var c=g.TE(a.U.experiments,b+"_delay_ms");a=a.U.K(b+"_cfl");return new AW({delayMs:c,tv:a})};
UPa=function(a,b,c,d,e,f,h){var l=hE(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;DW(a,a.qa,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
DW=function(a,b,c,d,e,f,h,l){VPa(b,c)?(a.yd(e,b,h),b.tv||f()):(b.fE&&b.triggerTimestamp&&!b.B?(c=(0,g.U)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.fE,c=b.j&&c-b.j>b.jK||f?b.B=!0:!1):c=!1,c&&(l=Object.assign({},a.Ob(b),l),l.wn=h,l.we=e,l.wsuc=d,a.oa.ma("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
AW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.jK?1E3:b.jK,d=void 0===b.fE?3E4:b.fE;b=void 0===b.tv?!1:b.tv;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.jK=c;this.fE=d;this.tv=b};
VPa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.U)();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};
FW=function(a){g.K.call(this);var b=this;this.oa=a;this.U=this.oa.R();this.videoData=this.oa.getVideoData();this.policy=new WPa(this.U);this.W=new CW(this.oa);this.playbackData=null;this.La=new g.YD;this.I=this.u=this.Ga=this.mediaElement=null;this.j=NaN;this.C=0;this.qa=NaN;this.B=null;this.va=NaN;this.D=this.J=null;this.V=this.N=!1;this.ra=new g.Zn(function(){XPa(b,!1)},2E3);
this.Ya=new g.Zn(function(){EW(b)});
this.Ha=new g.Zn(function(){b.N=!0;YPa(b)});
this.timestampOffset=0;this.Ra=!0;this.Ea=0;this.Ua=NaN;this.Y=new g.Zn(function(){var c=b.U.Fd;c.j+=1E4/36E5;c.j-c.B>1/6&&(fza(c),c.B=c.j);b.Y.start()},1E4);
g.M(this,this.W);g.M(this,this.La);g.M(this,this.ra);g.M(this,this.Ha);g.M(this,this.Ya);g.M(this,this.Y)};
ZPa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new PPa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(OH(a.videoData)&&a.Ga){var c=a.Ga.MB.Nh()||0;break a}if(a.videoData.j){c=a.videoData.j.N;break a}}c=0}return c}),a.u=new xW(a.videoData,a.U.experiments,function(){return a.Pd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
IW=function(a,b){(a.Ga=b)?GW(a,!0):HW(a)};
$Pa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;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.mediaElement?XJ(a.mediaElement):0,d.C++,3>d.C||g.Wa()-d.I<d.policy.W||(d.I=g.Wa(),d.u.push(e),50<d.u.length&&d.u.shift())),d=a.u,SPa(d,c,void 0===b?!0:b),TPa(d,c),b&&XPa(a,!0))};
XPa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!zW(c,d)&&c.oo()?(c.policy.N&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.getMinSeekableTime()?Math.min(c.videoData.getMinSeekableTime()+10,c.al()):NaN;if(!isNaN(c)){if(a.Ga&&b&&(b=a.ra.isActive(),d=a.u.al(),(d=PNa(a.Ga,d-a.wd()))&&!b)){a.ra.start();a.oa.ma("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.wd()});a.seekTo(d+a.wd(),{re:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{re:"playbacktimeline_pegToLive"})}}};
GW=function(a,b){if(a.u&&a.Ga){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)){var d=wW(b,b.j-1);break b}if(b.policy.C){d=wW(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.oa.hc,b=RPa(a.u),c.qoe&&(c=c.qoe,g.VV(c,g.sS(c.j),"lra",[b]),c.ma("live-readahead-seconds",{v:b})));b=a.Ga;c=a.u.j;d=a.u;d=(d.j-1+d.policy.j)*
yW(d);var e=b.B;a=a.u.policy.I;e.Of=Math.max(c-1,0);e.W=a;b.C&&(b.C.W=d)}};
aQa=function(a,b){a.C=b};
JW=function(a){return a.videoData.isLivePlayback&&!!a.videoData.B&&!a.videoData.B.j};
YPa=function(a){bQa(a).then(void 0,function(){HW(a)});
KW(a).then(function(c){cQa(a,c)},function(){HW(a)});
LS(a.oa);if(2<=a.U.V){var b=a.Ob();b["native"]=""+ +a.V;b.tgt=""+a.j;a.oa.ma("startSeek",b)}};
bQa=function(a){a.J||(a.Ga?isFinite(a.j)?a.J=a.Ga.seek(a.j-a.timestampOffset):(hI(a.videoData),a.J=QNa(a.Ga),a.j=a.Ga.getCurrentTime()+a.timestampOffset):a.J=Ih(a.j-a.timestampOffset));return a.J};
KW=function(a){var b=a.B;b||(a.B=new UJ,b=a.B,EW(a));return b};
dQa=function(a,b,c){return isNaN(b)?NaN:g.Cg(b,a.getMinSeekableTime(),a.Pd(c))};
EW=function(a){if(a.B)if(!a.K("html5_nondash_live_seek_killswitch")&&JW(a)&&a.mediaElement&&0<a.mediaElement.aj()&&0<WJ(a.mediaElement)&&(a.j=dQa(a,a.j,!1)),!a.mediaElement||!eQa(a))a.Ya.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.va!==a.j-a.timestampOffset){var b=a.mediaElement.getCurrentTime()-a.j;if(Math.abs(b)<=a.Ea)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else if(!hI(a.videoData)&&a.j>=a.Pd()-.1)a.j=a.Pd(),a.B.resolve(a.Pd()),tS(a.oa);else try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);
a.W.j=c;a.va=c;a.C=a.j}catch(d){}}};
eQa=function(a){if(!a.mediaElement||0===a.mediaElement.aj()||0<a.mediaElement.ag())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.K("html5_nondash_mediaelementready_killswitch")||a.videoData.B&&a.videoData.B.j||a.videoData.isLivePlayback)&&WH(a.videoData))return b;if(0<=a.j){var c=a.mediaElement.Qy();if(c.length||!b)return iE(c,a.j-a.timestampOffset)}return b};
cQa=function(a,b){a.D&&(a.D.resolve(b),a.oa.X("SEEK_COMPLETE"),2<=a.U.V&&(b=a.Ob(),b["native"]=""+ +a.V,a.oa.ma("seekEnd",b)));HW(a)};
HW=function(a){a.j=NaN;a.va=NaN;a.B=null;a.J=null;a.D=null;a.N=!1;a.V=!1;a.Ea=0;a.ra.stop();a.Ha.stop()};
fQa=function(a){if(a.mediaElement){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.La.P(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.V&&d!==a.j)a.B=new UJ,a.va=d,e=e.getCurrentTime(),a.W.j=e,a.seekTo(d,{re:"playbacktimeline_mediaElementEvent"}),a.V=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Ra){e="ss";
d=0;(jI(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.Fd,e="utc",d=a.Pd()-a.getIngestionTime(a.Pd())+d):a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Fd?(e="mss",d=a.videoData.Fd+a.wd()):a.videoData.Hu&&(e="stss",d=a.videoData.Hu);var f={};d?(a.seekTo(d,{re:"playbacktimeline_startSeconds"}),f[e]=d,
a.oa.ma("startSeconds",f),a.Ra=!1):a.videoData.Fd&&(f[e]=a.videoData.Fd+a.wd(),a.oa.ma("startSeconds",f));e=!!d}else e=!1;a.K("html5_nondash_live_seek_killswitch")&&!e&&JW(a)&&(a.j=isFinite(a.j)?g.Cg(a.j,a.getMinSeekableTime(),a.Pd()):a.Pd());EW(a);break;case "progress":EW(a)}});
a.D||a.C||a.policy.u||!a.mediaElement.mK()||a.seekTo(.01,{re:"playbacktimeline_setupMediaElement"})}};
WPa=function(a){this.j=a.K("html5_live_smoothly_extend_max_seekable_time");this.u=a.K("html5_requires_seek_for_playback_at_zero_killswitch")};
LW=function(){this.finished=this.started=!1};
MW=function(a){this.j=a;this.iv=TU(wz(16))};
gQa=function(a,b){var c;return g.z(function(d){(0,g.U)();c=Zya(a.j);return d.return(c.encrypt(b,a.iv))})};
hQa=function(a,b){var c;return g.z(function(d){(0,g.U)();var e=a.j;e.C||(e.C=new Rya(e.B));c=e.C;return d.return(Uya(c,b,a.iv))})};
iQa=function(a,b,c){var d;return g.z(function(e){(0,g.U)();d=Zya(a.j);return e.return(d.decrypt(b,c))})};
NW=function(a){g.K.call(this);this.u=a;this.logger=new g.eT("onesie");this.ke=new Map;this.j=!1};
sU=function(a,b){return a.ke.has(b)};
BNa=function(a,b){return(a=a.ke.get(b))?a.lQ:[]};
uMa=function(a,b,c){a.ke.get(b).Vd=c};
PW=function(a,b){sU(a,b)&&(a.ke.get(b).sf=new TB,OW(a,b))};
jQa=function(a){for(var b=g.r(a.ke),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.Vd||PW(a,c)}};
CNa=function(a,b){var c;return(null==(c=a.ke.get(b))?void 0:c.Xk)||0};
tMa=function(a,b){var c=a.ke.get(b),d=!c.Xk&&!!c.bytesReceived;b=a.Tg(b);return d&&a.j&&void 0!==b?b:(d||c.bytesReceived===c.Xk)&&c.BB+c.sf.totalLength===c.bytesReceived};
kQa=function(a,b,c){c=void 0===c?!1:c;a.ke.set(b,{sf:new TB,BB:0,bytesReceived:0,aK:!1,Rf:!1,Tg:!1,Um:c,lQ:[]})};
OW=function(a,b){if((b=a.ke.get(b))&&!b.Rf){b.Rf=!0;b.Vd&&b.Vd();a:{b=g.r(a.ke.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.Rf){b=!1;break a}b=!0}if(b&&(a=a.u,a.playerResponse)){var d;null==(d=a.xhr)||d.abort()}}};
lQa=function(a,b){for(var c=!1,d=g.r(a.ke.keys()),e=d.next();!e.done;e=d.next()){e=a.ke.get(e.value);var f=void 0,h=void 0;(null==(f=e)?0:f.Xk)&&0<(null==(h=e)?void 0:h.Xk)&&(e.Um?c=!0:b=!0)}return b&&c};
QW=function(a){this.Yj=a;this.u=!1;this.j=[]};
SW=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.UK;if(b=b.buffer)mQa(a.Yj.Gd,c,b);else if(b=a.Yj,b.j[c].sP=!0,b=RW(b.Gd,c),null==b?0:sU(b,c))null==b||OW(b,c)}};
nQa=function(a,b){a.j.push({UK:b,isEncrypted:!1});a.u||SW(a)};
g.oQa=function(a){this.data=a;this.j=0;this.D=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===TW.length){TW.length=288;TW.fill(8);for(a=144;280>a;a++)TW[a]=255>=a?9:7;UW.length=32;UW.fill(5);VW.length=286;VW.fill(0);for(a=261;285>a;a++)VW[a]=Math.floor((a-261)/4);WW[257]=3;for(a=258;285>a;a++){var b=WW[a-1];b+=1<<VW[a-1];WW[a]=b}WW[285]=258;for(a=0;30>a;a++)XW[a]=3>=a?0:Math.floor((a-2)/2);for(a=YW[0]=1;30>a;a++)b=YW[a-1],b+=1<<XW[a-1],YW[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.sQa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!ZW(b,1);switch(ZW(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=ZW(b,5)+257;var f=ZW(b,5)+1;for(var h=ZW(b,4)+4,l=0;l<h;l++)d[pQa[l]]=ZW(b,3);d=$W(d);for(h=e+f;c.length<h;){l=qQa(b,d);switch(l){case 16:l=c[c.length-1];var m=ZW(b,2)+3;break;case 17:l=0;m=ZW(b,3)+3;break;case 18:l=0;m=ZW(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,rQa(b,c,f));break;case 1:rQa(b,TW,UW);break;case 0:aX(b,
b.j&7);c=ZW(b,16);e=ZW(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};
rQa=function(a,b,c){b=$W(b);c=$W(c);for(var d=a.data,e=a.C,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256<n){h=WW[n];h+=ZW(a,VW[n]);m=qQa(a,c);l=YW[m];l+=ZW(a,XW[m]);if(tQa&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,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+=h;h=
a.register;l=a.j;m=a.u}else break}a.B=f};
qQa=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 aX(a,c&15),c>>4;for(aX(a,7);0>c;)c=b[ZW(a,1)-c];return c>>4};
ZW=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};
aX=function(a,b){a.j-=b;a.register>>=b};
$W=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 h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
uQa=function(a){var b,c,d,e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.sQa(new g.oQa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new TB([]);case 2:return g.x(m,d.read(),4);case 4:f=m.u;h=f.value;if(l=f.done){m.Ma(3);break}e.append(h);m.Ma(2);break;case 3:return m.return(YB(e))}})};
wQa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=vQa[d]||0;a.j&&e>a.j||c.push(d)}return c};
zQa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.t(xQa[c]||[]));b.K("html5_early_media_for_drm")&&a.push.apply(a,g.t(yQa[c]||[]))};
EQa=function(a,b){var c=XH(a),d=a.R().j;if(bX&&!d.j)return bX;for(var e=[],f=[],h={},l=g.r(AQa),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=BQa(p);!q||!q.video||TD(q)&&!c.qa&&q.video.j>c.W||(n?e.push(p):(q=CB(c,q,d),!0===q?(n=!0,e.push(p)):h[p]=q))}e&&zQa(e,a)}l=g.r(CQa);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=DQa(m))&&p.audio)if(p=CB(c,p,d),!0===p){f.push(m);break}else h[m]=
p;f&&zQa(f,a)}c.B&&b("orfmts",h);bX={video:e,audio:f};d.j=!1;return bX};
BQa=function(a){var b=FQa[QD[a]],c=GQa[a];if(!c||!b)return null;var d=new ND(c.width,c.height,c.fps);b=Oxa(b,d);return new RD(a,b,{video:d,Pb:c.bitrate/8})};
DQa=function(a){var b=FQa[QD[a]],c=HQa[a];return c&&b?new RD(a,b,{audio:new LD(c.audioSampleRate,c.numChannels)}):null};
IQa=function(a){this.Gd=a;this.logger=new g.eT("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new QW(this)};
cX=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].sP||nQa(a.queue,c)};
JQa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.HJ(b,a.C).then(function(e){var f=a.Gd;f.Rc("oprr");f.playerResponse=e;f.XI||(f.Cw=!1);dX(f)},function(e){a.Gd.fail(e)});
break;case 2:a.Rc("ormk");b=YB(b);a.queue.decrypt(b);break;default:d=!0}a.Gd.jj&&a.Gd.ma("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
KQa=function(a,b,c){var d=aC(b,0);a.Gd.jj&&a.Gd.ma("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).So,d=a.B[d]||null)&&(a.To(a.j[d].Um?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))};
NQa=function(a,b,c,d){var e={},f=HE(0);f&&(e.GZ=f,e.lastManualDirection=gya(),f=zua()||0,0<f&&(e.timeSinceLastManualFormatSelectionMs=(0,g.U)()-f));e.A4=HE();if(a.schedule.N||!a.K("html5_onesie_enable_server_side_badwidth_estimation"))e.eX=DF(a.schedule,!0);f=g.kG();e.xX=c.width*f;e.wX=c.height*f;e.visibility=d;e.a5=Px();a.K("html5_onesie_media_capabilities")&&(e.xO=3);a.K("html5_onesie_audio_only_playback")&&VH(b)&&(e.xO=1);if(a.K("html5_onesie_media_capabilities")){b=XH(b);c=a.j;d=[];f=[];for(var h=
g.r(AQa),l=h.next();!l.done;l=h.next()){l=g.r(l.value);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=BQa(m);if(n&&n.video&&!0===CB(b,n,c)){d.push({M5:LQa[QD[m]],UZ:n.video.width,TZ:n.video.height,maxFramerate:n.video.fps});break}}}h=g.r(CQa);for(l=h.next();!l.done;l=h.next())for(l=g.r(l.value),m=l.next();!m.done;m=l.next())if(m=m.value,(n=DQa(m))&&n.audio&&!0===CB(b,n,c)){f.push({cX:MQa[QD[m]],numChannels:n.audio.numChannels});break}e.mediaCapabilities={zL:d,yG:f}}a.K("html5_prefer_drc")&&
(e.TX=!0);return e};
PQa=function(a,b,c){var d,e,f;return g.z(function(h){if(1==h.j)return d=lH(b,gNa),g.x(h,gQa(c,d),2);if(3!=h.j)return e=h.u,g.x(h,hQa(c,e),3);f=h.u;return h.return({encryptedOnesieInnertubeRequest:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,hmac:f,serializeResponseAsJson:!0,enableAdPlacementsPreroll:a.K("html5_onesie_ads"),enableCompressionResponseOnly:OQa(a,!!b.skipResponseEncryption)})})};
QQa=function(a,b,c,d,e,f,h,l){var m,n;return g.z(function(p){if(1==p.j)return g.x(p,PQa(c,a,b),2);m=p.u;n=NQa(c,d,e,f);return p.return({vI:m,eO:n,onesieUstreamerConfig:h,QA:l})})};
OQa=function(a,b){a=DF(a.schedule,!0);b=b||!!lF()&&1572864<a;return"DecompressionStream"in window||!b};
RQa=function(a,b){var c=g.LE(b.U.experiments,"debug_bandaid_hostname");if(c)b=cS(b,c);else if(c=b.j.get(0)){var d=c;if(b.U.K("html5_onesie_host_racing_during_prewarming")){var e=b.j.values();e=g.r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,hS(f)<hS(d)&&(d=f);e=g.TE(b.U.experiments,"html5_onesie_host_racing_cap_ms");0<e&&0!==d.zP&&hS(c)-hS(d)<=e&&(d=c);var h;b.D=null==(h=d)?void 0:h.HZ}b=d.location.clone()}else b=void 0;if(b&&a.videoId){h=wF(a.videoId);a=[];if(h)for(h=g.r(h),c=h.next();!c.done;c=
h.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
SQa=function(a,b){return b.load().then(function(){return RQa(a,b)})};
eX=function(a,b){g.K.call(this);this.oa=a;this.playerRequest=b;this.U=this.oa.R();this.videoData=this.oa.getVideoData();this.logger=new g.eT("onesie");this.jj=2<=this.U.V;this.bH=this.U.Di;this.CD=new MW(this.bH.j);this.xhr=null;this.qn=new UJ;this.vP=!1;this.playerResponse="";this.Uw=new QU(this);this.Yj=new IQa(this);this.ow=new g.Zn(this.pP,1E4,this);this.wR=new g.Zn(this.WZ,2E3,this);this.vt="";this.TC=this.JP=!1;this.Sp=this.oa.AC();this.pw="";this.Cw=this.K("html5_onesie_wait_for_media_availability");
this.enableCompression=this.XI=this.SC=!1;g.M(this.videoData,this);g.M(this,this.ow);g.M(this,this.wR);a=qB();b=ZE(this.U.j);this.K("html5_onesie_media_bytes")&&a&&b&&(this.K("html5_onesie_ads")?this.Tf=new Map:(this.qe=new NW(this),g.M(this,this.qe)));this.IO=new Map;this.ma("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||rB())},!0)};
RW=function(a,b){return a.Tf?(b=b.split(";")[0],a.Tf.get(b)):a.qe};
TQa=function(a,b,c){var d;return g.z(function(e){if(1==e.j)return a.Rc("oprd_s"),lF()?g.x(e,iQa(a.CD,b,c),3):(d=a.CD.decrypt(b,c),e.Ma(2));2!=e.j&&(d=e.u);a.Rc("oprd_c");return e.return(d)})};
UQa=function(a){return a.K("html5_onesie_host_probing")||a.jj?qB():!1};
mQa=function(a,b,c){null!=(a=RW(a,b))&&(b=a.ke.get(b))&&!b.Rf&&(UB(b.sf,c),b.bytesReceived+=c.totalLength,b.aK=!0)};
dX=function(a){if(!a.playerResponse)return!1;if(a.SC)return!0;var b=a.videoData.K("html5_onesie_audio_only_playback")&&VH(a.videoData);if(!a.Tf&&a.Cw&&a.qe&&!lQa(a.qe,b))return!1;if(a.Tf&&a.Cw){if(!a.Tf.has(a.vt))return!1;var c=a.Tf.get(a.vt);if(c&&!lQa(c,b))return!1}a.Rc("ofr");a.qn.resolve(a.playerResponse);a.K("html5_onesie_time_out_after_resolving")?a.ow.start():a.ow.stop();return a.SC=!0};
WQa=function(a){var b;if((null!=(b=a.Tf)?b:a.qe)&&!a.K("html5_onesie_media_capabilities")){a.Rc("ogsf_s");b=EQa(a.oa.getVideoData(),function(d,e){a.ma(d,e)});
var c=VQa(a.oa);b.video=wQa(c,b.video);a.Rc("ogsf_c");if(b.video.length)return b;a.ma("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
XQa=function(a){if(!a.hn)return{};var b=IU(a.hn);b.d=SMa(a.hn);b.shost=a.pS;b.ty="o";return b};
cRa=function(a){function b(e){return(d.Ki&&!c.K("web_player_no_force_gvi")||!((c.pk?0:c.K("web_player_gvi_wexit")||(g.cG(c)?"TVHTML5"===aG(c)?rza(c)?c.K("web_player_gvi_wexit_living_room_pangea"):c.K("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===aG(c)?c.K("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===aG(c)||HF(c)?c.K("web_player_gvi_wexit_living_room_simply"):mG(c)||"TV_UNPLUGGED_CAST"===aG(c)?c.K("web_player_gvi_wexit_living_room_unplugged"):c.K("web_player_gvi_wexit_living_room_other"):
1))||d.Jl&&d.Oa.C)?0:"yt"!==c.Ha?38===d.Y&&"books"===c.playerStyle||30===d.Y&&"docs"===c.playerStyle||33===d.Y&&"google-live"===c.playerStyle?0:c.K("web_player_gvi_wexit_all_player_styles"):"adunit"!==qI(d)||c.K("web_player_gvi_wexit_adunit"))?YQa(a,d).then(function(){fX(a,d)},function(f){fX(a,d,!0);
throw f;}):ZQa(a,d,e)}
var c=a.R(),d=a.getVideoData();d.isDisposed();d.qa=!0;return $Qa(a)?aRa(a,d).then(function(){fX(a,d)},function(e){e=BG(e);
if(AG(e.severity))return fX(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(bRa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
$Qa=function(a){var b=a.R();if(!b.K("html5_onesie"))return!1;var c=a.getVideoData();if(!b.K("html5_onesie_cast")&&(c.I||c.Ah)||!b.K("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Ha)return!1;b=b.Di;if(!b||!b.j)return a.handleError(new zG("onesie.unavailable.hotconfig",{key:"0"})),!1;b.j.D<(0,g.U)()&&a.ma("okexp","1");if(bRa)return a.ma("ost3","1"),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new zG("html5.missingapi",b)),!1):!0};
dRa=function(a){var b=yK();pDa(b,a);return g.EM(b,YFa())};
aRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,v,w,y,A,B,E,G,H,I,O,L,P,S,ca,R,na,sa;return g.z(function(Aa){if(1==Aa.j)return b.fetchType="onesie",c=yGa(b,a.getPlayerSize(),a.getVisibilityState()),d=new eX(a,c),g.x(Aa,d.fetch(),2);e=Aa.u;f={player_response:e};b.qa=!1;h=a.R();l=h.K("html5_onesie_ads");m=a.Qg.Qs;if(!l)b.Nk=d.qe;else if(l&&d.Tf)for(n=g.r(d.Tf.entries()),p=n.next();!p.done;p=n.next())q=p.value,v=g.r(q),w=v.next().value,y=v.next().value,A=w,B=y,m.j.set(A,B,180);if(h.K("html5_apply_ustreamer_cap_per_video_id"))for(E=
g.r(d.IO.entries()),G=E.next();!G.done;G=E.next())H=G.value,I=g.r(H),O=I.next().value,L=I.next().value,P=O,S=L,m.u.set(P,S,180);else if(l){var wa=d.Wr;a.Qg.Wc().Wr=wa}else b.Wr=d.Wr;g.KH(b,f,!0);if(b.qa||IH(b))return Aa.return(Promise.resolve());l?(dT(m.j),dT(m.u)):b.Nk=void 0;ca={};R="onesie.response";na=0;b.errorCode?(R="auth",ca.ec=b.errorCode,ca.ed=b.errorDetail,ca.es=b.Vk||"",na=2):(ca.successButUnplayable="1",ca.disposed=""+ +b.isDisposed(),ca.afmts=""+ +/adaptiveFormats/.test(e),ca.cpn=b.clientPlaybackNonce);
sa=new zG(R,ca,na);return Aa.return(Promise.reject(sa))})};
YQa=function(a,b){var c,d,e,f,h,l,m,n,p,q;return g.z(function(v){switch(v.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){v.Ma(4);break}if(!(0<f)){v.Ma(5);break}return g.x(v,Qh(5E3),6);case 6:h=new g.Rv("Retrying OnePlatform request",{attempt:f}),g.rz(h);case 5:return g.ra(v,7),g.x(v,eRa(a,b),9);case 9:return v.return();case 7:l=g.va(v);m=BG(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 v.return(Promise.reject(m));
a.handleError(m);if(AG(m.severity)){v.Ma(4);break}case 3:f++;v.Ma(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,v.return(Promise.reject(new zG(p,{backend:"op"},q)))}})};
eRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,v,w,y,A,B,E,G,H,I,O,L,P;return g.z(function(S){switch(S.j){case 1:b.fetchType="gp";c=a.R();d=g.wG(g.uI(b));e=d.getValue();S.Ma(2);break;case 3:e=S.u;case 2:return f=e,h=dRa(f),l=yGa(b,a.getPlayerSize(),a.getVisibilityState()),m=g.pM(fRa),n=g.uI(b),p=(0,g.U)(),q=!1,v="empty",w=0,a.Rc("ps_s"),y=function(ca){2===ca.readyState&&a.Rc("ps_c")},A={lw:y},g.x(S,g.AK(h,l,m,void 0,A),4);
case 4:B=S.u;a.Rc("ps_r");if(b.isDisposed())return S.return();B?"error"in B&&B.error?(q=!0,v="esf:"+B.error.message,w=B.error.code):B.errorMetadata&&(q=!0,v="its",w=B.errorMetadata.status):q=!0;if(q)return E=0,G=((0,g.U)()-p).toFixed(),H={backend:"op",rc:""+w,rt:G,reason:v,has_kpt:b.Eb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Q("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:c.pageId?"1":"0",has_token:n?"1":"0",has_vvt:b.Ha?"1":"0",is_mdx:b.isMdxPlayback?
"1":"0",mdx_ctrl:b.Ah||"",token_eq:n===g.uI(b)?"1":"0"},I="manifest.net.connect",429===w?(I="auth",E=2):200<w&&(I="manifest.net.badstatus",400===w&&(E=2)),S.return(Promise.reject(new zG(I,H,E)));b.qa=!1;g.KH(b,{raw_player_response:B},!0);if(b.errorCode)return O={ec:b.errorCode,ed:b.errorDetail,es:b.Vk||""},S.return(Promise.reject(new zG("auth",O,2)));if(!b.qa&&!IH(b))return L=b.isAd()?"auth":"manifest.net.retryexhausted",P=b.isAd()?2:1,S.return(Promise.reject(new zG(L,{successButUnplayable:"1",hasMedia:gI(b)?
"1":"0"},P)));g.pa(S)}})};
ZQa=function(a,b,c){var d,e,f,h,l,m,n,p,q,v,w;return g.z(function(y){switch(y.j){case 1:d=mGa(a.R(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(A){A=BG(A);
if(AG(A.severity))return Promise.reject(A);a.handleError(A);return!1},l=(h=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){y.Ma(4);break}n=d;if(!(0<m)){y.Ma(5);break}return g.x(y,Qh(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=pu(d,p);case 5:return g.x(y,gRa(b,n).then(e,f),7);case 7:if(q=y.u)return y.return();m++;y.Ma(2);break;case 4:v=h?"auth":"manifest.net.retryexhausted";w=h?2:1;if(!h&&1E-4>Math.random())try{g.rz(new g.Rv("b/152131571",btoa(d)))}catch(A){}return y.return(Promise.reject(new zG(v,{backend:"gvi"},w)))}})};
gRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,v,w,y,A;return g.z(function(B){if(1==B.j)return a.fetchType="gvi",c=a.R(),(f=nGa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=pu(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),h={},c.sendVisitorIdHeader&&a.visitorData&&(h["X-Goog-Visitor-Id"]=a.visitorData),(l=g.LE(c.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=l),0<Object.keys(h).length&&(d.headers=
h),m=(0,g.U)(),n=function(E){if(!a.isDisposed()){E=E?E.status:-1;var G=0,H=((0,g.U)()-m).toFixed();H={backend:"gvi",rc:""+E,rt:H};var I="manifest.net.connect";429===E?(I="auth",G=2):200<E&&(I="manifest.net.badstatus",400===E&&(G=2));return Promise.reject(new zG(I,H,G))}},p=function(E){return n(E.xhr)},g.x(B,uE(Eu,e,d).then(void 0,p),2);
q=B.u;if(!q||!q.responseText)return B.return(n(q));a.qa=!1;v=lu(q.responseText);g.KH(a,v,!0);if(a.errorCode)return w={ec:a.errorCode,ed:a.errorDetail,es:a.Vk||""},B.return(Promise.reject(new zG("auth",w,2)));if(!a.qa&&!IH(a))return y=a.isAd()?"auth":"manifest.net.retryexhausted",A=a.isAd()?2:1,B.return(Promise.reject(new zG(y,{successButUnplayable:"1"},A)));g.pa(B)})};
fX=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.z(function(l){if(1==l.j){d=a.R();if(c&&(!g.oG(d)||"embedded"!==qI(b))||b.Mt||"adunit"!==qI(b)&&(g.cG(d)||dG(d)||g.VF(d)||g.UF(d)||"WEB_CREATOR"===aG(d)))return l.return();e=g.wG(g.uI(b));f=e.getValue();return l.Ma(2)}2!=l.j&&(f=l.u);h=f;return l.return(hRa(a,b,h))})};
hRa=function(a,b,c){var d,e,f,h;return g.z(function(l){if(1==l.j){g.ra(l,2);d=dRa(c);var m=b.R();g.rv.getInstance();var n={context:g.eN(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===qI(b)&&(n.isAdPlayback=!0);m.embedConfig&&(n.serializedThirdPartyEmbedConfig=m.embedConfig);m.Ik&&(n.showContentOwnerOnly=!0);g.tv(0,141)&&(n.autonavState=g.tv(0,140)?"STATE_OFF":"STATE_ON");if(g.pG(m)){m=g.tv(0,65);m=null!=m?!m:!1;var p=!!g.Qz("yt-player-sticky-caption");
n.captionsRequested=m&&p}e=n;f=g.pM(iRa);a.Rc("wn_s");return g.x(l,g.AK(d,e,f),4)}if(2!=l.j)return h=l.u,a.Rc("wn_r"),!h||"error"in h&&h.error||g.KH(b,{raw_watch_next_response:h},!1),g.ua(l,0);g.va(l);g.pa(l)})};
jRa=function(a){function b(){a.Rc("virc");mB("virc",void 0,"video_to_ad")}
a.Rc("vir");mB("vir",void 0,"video_to_ad");var c=cRa(a);c.then(b,b);return c};
g.jX=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.HH(a):m;n=void 0===n?!0:n;g.cz.call(this);var p=this;this.U=a;this.playerType=b;this.Bb=c;this.vA=d;this.getVisibilityState=f;this.visibility=h;this.Qg=l;this.videoData=m;this.kX=n;this.logger=new g.eT("VideoPlayer");this.Ux=new MPa(this.U);this.xe=null;this.qw=new EV;this.Qn=null;this.Wg=new NV(this.U,this.vA,this);this.rP=!0;this.mediaSource=this.Ga=null;this.hk=[];this.Fo=new LW;this.Ke=this.Uz=null;this.Go=new LW;this.JD=null;this.jI=this.Yp=
!1;this.KD=NaN;this.playerState=new g.$J;this.ND=[];this.bx=new g.YD;this.Uk=new KV(this);this.mediaElement=null;this.Ns=new g.Zn(this.O0,15E3,this);this.tK=this.rD=!1;this.ut=NaN;this.zB=!1;this.wG=0;this.xG=new g.Zn(this.xK,4500,this);this.gz=!1;this.aD=NaN;this.SK=new iT(new Map([["bufferhealth",function(){var q=p.jd;return q.mediaElement?XJ(q.mediaElement):0}],
["bandwidth",function(){return p.GH()}],
["networkactivity",function(){return p.U.schedule.V}],
["livelatency",function(){return p.isAtLiveHead()&&p.Oc()?gX(p):NaN}],
["rawlivelatency",function(){return gX(p)}]]));
this.qz=0;this.loop=!1;this.playbackRate=1;this.UP=0;this.jd=new FW(this);this.KN=!1;this.MD=[];this.JI=this.ER=0;this.qK=this.kT=!1;this.kG=new g.Zn(this.FY,0,this);this.kd=null;this.DQ=new g.Zn(this.qX,0,this);this.SD=new g.Zn(this.dS,3E4,this);this.u_=[this.bx,this.kG,this.Ns,this.SD,this.xG,this.SK,this.DQ];this.zf=function(){var q=p.hc;q.u.U.Kd||3===q.u.oa.getVisibilityState()||(q.u.U.Kd=!0);yPa(q);var v=q.C;v.I&&0>v.u&&3!==v.j.oa.getVisibilityState()&&RV(v);q.qoe&&(q=q.qoe,q.Ha&&0>q.B&&q.j.U.Kd&&
cW(q));p.Ga&&hX(p);p.U.Ul&&!p.videoData.backgroundable&&p.mediaElement&&!p.Bg()&&(p.isBackground()&&p.mediaElement.mB()?(p.ma("bgmobile",{suspend:1}),p.Jo(!0)):p.isBackground()||iX(p)&&p.ma("bgmobile",{resume:1}))};
this.Ih=new tW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,v){q!==g.uA("endcr")||g.W(p.playerState,32)||tS(p);
e(q,v,p.playerType)});
g.M(this,this.Ih);g.M(this,this.jd);kRa(this,m);this.videoData.subscribe("dataupdated",this.M2,this);this.videoData.subscribe("dataloaded",this.KG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.hK,this);lRa(this);uKa(this.zf);this.visibility.subscribe("visibilitystatechange",this.zf)};
kRa=function(a,b){if(2===a.playerType||a.U.Wl)b.TL=!0;var c=Mza(b.Mc,b.Mu,a.U.u,a.U.C);c&&(b.adFormat=c);2===a.playerType&&(b.cn=!0);if(a.isFullscreen()||a.U.u)c=g.Qz("yt-player-autonavstate"),b.autonavState=c||(a.U.u?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&kX(a,b.endSeconds)};
nRa=function(a){if(a.videoData.Ea){var b=a.Qg.Fc();a.videoData.jr=a.videoData.jr||(null==b?void 0:b.JH());a.videoData.Rr=a.videoData.Rr||(null==b?void 0:b.KH())}(b=FBa(a.videoData))||(b=a.videoData,b=!(b.bk?Iza(b.bk):1));b&&(b=a.videoData.errorDetail,a.fg("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Vk||void 0));1===a.playerType&&lX.isActive()&&a.SD.start();a.videoData.qg=a.getUserAudio51Preference();a.K("html5_generate_content_po_token")&&mRa(a)};
lRa=function(a){!a.hc||a.hc.isDisposed();a.hc=new g.sW(new rW(a.videoData,a.U,a,function(){return a.Qg.hj()}))};
pJ=function(a){return a.mediaElement&&a.mediaElement.er()?a.mediaElement.tf():null};
mX=function(a){if(a.videoData.isValid())return!0;a.fg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.rS=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.hc;RV(c.C);c.qoe&&cW(c.qoe)}a.Yp=b;!mX(a)||a.Fo.started?g.cG(a.U)&&a.videoData.isLivePlayback&&a.Fo.started&&!a.Fo.isFinished()&&!a.Yp&&a.KG():(a.Fo.start(),b=a.hc,g.sS(b.u),b.qoe&&dPa(b.qoe),a.KG())};
oRa=function(a){var b=a.videoData;jRa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=BG(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.fg("auth",2,unescape(a.videoData.errorReason),yG(c.details),a.videoData.errorDetail,a.videoData.Vk||void 0):a.handleError(c))})};
zKa=function(a,b){a.kd=b;a.Ga&&NNa(a.Ga,new g.rV(b))};
pRa=function(a){if(!g.W(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.hk=g.cc(a.videoData.W)),gI(a.videoData)){a.Bb.tick("bpd_s");nX(a).then(function(){a.Bb.tick("bpd_c");if(!a.isDisposed()){a.Yp&&(a.Sb(bK(bK(a.playerState,512),1)),iX(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&kX(a,c.endSeconds);a.Fo.finished=!0;oX(a,"dataloaded");a.Go.started&&pX(a);XOa(a.Wg,a.Ke)}});
a.K("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Ld.toFixed(3)},!0);var b=QBa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);a.vG()}else oX(a,"dataloaded")};
nX=function(a){qX(a);a.Ke=null;var b=OPa(a.U,a.videoData,a.Bg());a.Uz=b;a.Uz.then(function(c){qRa(a,c)},function(c){a.isDisposed()||(c=BG(c),a.visibility.isBackground()?(rX(a,"vp_none_avail"),a.Uz=null,a.Fo.reset()):(a.Fo.finished=!0,a.fg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yG(c.details))))});
return b};
LV=function(a){nX(a).then(function(){return iX(a)});
g.fK(a.playerState)&&a.playVideo()};
qRa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Ke=b;ZPa(a.jd,a.Ke);if(a.videoData.isLivePlayback){var c=(a.K("html5_onesie_ads")?fLa(a.Qg.Qs,a.videoData.videoId):!!a.videoData.Nk)||a.Ga&&!isNaN(a.Ga.Y);c=a.K("html5_onesie_live")&&c;0<a.videoData.Fd&&!OH(a.videoData)||c||a.seekTo(a.Pd(),{re:"videoplayer_playbackData"})}a.videoData.B.j?a.Ga?g.rz(Error("Duplicated Loader")):(c=g.TE(a.U.experiments,"html5_onesie_defer_content_loader_ms"),a.K("html5_onesie_ads")&&c&&g.Wb(a.hk,"ad")&&
fLa(a.Qg.Qs,a.videoData.Y5)?g.xu(function(){a.isDisposed()||a.Ga||sX(a)},c):sX(a)):!a.videoData.B.j&&vI(a.videoData)&&a.wD(new bU(a.videoData.videoId||"",4));
tX(a);NOa(b).then(function(){a.Ww();uX(a)})}};
vX=function(a){a.mediaElement&&a.mediaElement.Tu();g.rS(a);if(mX(a)&&!g.W(a.playerState,128)){a.Go.started||(a.Go.start(),a.videoData.Sq?a.Sb(bK(a.playerState,4)):a.Sb(bK(bK(a.playerState,8),1)));var b=a.Qg.Fc();b=b&&2===b.getPlayerType();a.K("html5_suspend_for_preroll_join_latency")&&b&&1===a.getPlayerType()&&!g.W(a.playerState,512)&&a.Sb(bK(a.playerState,512));pX(a)}};
pX=function(a){a.isDisposed();if(!a.Go.isFinished()&&a.Fo.isFinished()&&!g.W(a.playerState,128)&&!a.hk.length){if(!a.Ih.started){var b=a.Ih;b.started=!0;b.Pl()}if(!a.Km()){a.Ga&&(b=a.Ga.timing,a.jI=!!b.u&&!!b.D);a.Go.isFinished()||(a.Go.finished=!0);b=a.K("html5_onesie_live")&&a.Ga&&!isNaN(a.Ga.Y);!a.videoData.isLivePlayback||0<a.videoData.Fd&&!OH(a.videoData)||b||(a.seekTo(Infinity,{re:"videoplayer_readying"}),a.isBackground()&&(a.tK=!0));b=a.hc;if(b.qoe){b=b.qoe;b.j.videoData.Tl&&aW(b,b.j.videoData.Tl);
if(b.j.videoData.isLivePlayback){var c=b.j.videoData.j;OH(b.j.videoData)&&aW(b,"manifestless");c&&DE(c)&&aW(b,"live-segment-"+DE(c).toFixed(1))}"yt"!==b.j.U.Ha&&(b.u.len=[b.j.videoData.lengthSeconds.toFixed(2)]);b.j.videoData.cotn&&!vI(b.j.videoData)&&aPa(b,!0);xG(b.j.U)&&(c=dKa())&&b.ma("cblt",{m:c})}a.X("playbackready",a);lB("pl_c",a.Bb.timerName)||(a.Bb.tick("pl_c"),mB("pl_c",void 0,"video_to_ad"));lB("pbr",a.Bb.timerName)||(a.Bb.tick("pbr"),mB("pbr",void 0,"video_to_ad"))}}};
tS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Sb(b?new g.$J(14):new g.$J)};
kX=function(a,b){a.Qn&&wX(a);a.Qn=new g.sA(1E3*b,0x7ffffffffffff);a.Qn.namespace="endcr";a.addCueRange(a.Qn)};
wX=function(a){a.removeCueRange(a.Qn);a.Qn=null};
yX=function(a,b,c,d){a.videoData.u=c;d&&lV(a,b,d);d=g.xX(a);a.hc.Sz(new JOa(a.videoData,c,b,d?d.itag:""));c=a.Wg;c.B=0;c.j=0;a.X("internalvideoformatchange",a.videoData,"m"===b)};
g.xX=function(a){var b=zX(a);return wB(b)||!a.Ke?null:g.Ub(a.Ke.j.videoInfos,function(c){return b.C(c)})};
lV=function(a,b,c){if(c!==a.videoData.D){var d=!a.videoData.D;a.videoData.D=c;"m"!==b&&(b=d?"i":"a");a.hc.Kz(new JOa(a.videoData,c,b,""));d||a.X("internalaudioformatchange",a.videoData,"m"===b)}};
mV=function(a,b){b&&a.yd(new zG("qoe.restart",b));a.Sb(bK(a.playerState,2048));AX(a);b=a.videoData.j&&IB(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Ga&&FNa(a.Ga),JV(a)):(iX(a),g.fK(a.playerState)&&a.playVideo())};
zX=function(a){if(a.Ke){var b=a.Wg;var c=a.Ke;a=a.Zr();if(b.oa.Pp().isInline())var d=GH;else b.K("html5_exponential_memory_for_sticky")?d=.5>GF(b.U.Fd,"sticky-lifetime")?"auto":xB[HE()]:d=xB[HE()],d=g.vB("auto",d,!1,"s");if(wB(d)){d=KOa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.r(f.videoInfos),l=h.next();!l.done;l=h.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;yma()&&!g.cG(b.U)&&DB(c.j.videoInfos[0])&&
(f=Math.min(f,g.uB.large));d=e.call(d,new tB(0,f,!1,"o"));e=d.compose;f=4320;!b.U.isMobile||g.SF(b.U)||Vu()||b.U.K("hls_for_vod")||(f=b.U.K("mweb_default_hd720")?g.uB.hd720:g.uB.medium);(h=g.TE(b.U.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Ah&&!c.videoData.Td&&(f=Math.min(f,h));h=g.TE(b.U.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.TE(b.U.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,h));(h=g.TE(b.U.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=VOa(b,c,f);d=e.call(d,new tB(0,4320===f?0:f,!1,"d")).compose(UOa(b)).compose(WOa(b,c.videoData,c)).compose(TOa(b,c)).compose(MOa(b,c)).compose(LOa(b,c))}else b.K("html5_perf_cap_override_sticky")&&(d=d.compose(TOa(b,c))),b.K("html5_ustreamer_cap_override_sticky")&&(d=d.compose(MOa(b,c)));b.K("html5_varispeed_playback_rate")&&
(d=d.compose(LOa(b,c)));b=c.videoData.Lu.compose(d).compose(c.videoData.ZS).compose(a)}else b=GH;return b};
VQa=function(a){var b=a.Wg;a=a.videoData;var c=UOa(b);b.K("html5_disable_client_autonav_cap_for_onesie")||c.compose(WOa(b,a));return c};
g.rRa=function(a,b,c){a.videoData.Lu=b;if(a.Ke&&c){c=a.Wg;var d=a.Ke;if(d.j.j){var e=HE(),f=d.j.videoInfos[0].video.j;if(!(e>f&&0!==f&&b.j===f)){e=!0;f=c.playbackRate;if(c.K("html5_cap_quality_for_tv_hfr")){var h;e=PV(c,null==(h=d.j)?void 0:h.videoInfos);f=c.oa.getPlaybackRate()}1<f&&e&&c.K("html5_varispeed_playback_rate")&&(h=Aya(c.U.j,d.j.videoInfos,f),0!==b.j&&h<b.j&&c.oa.setPlaybackRate(1));var l,m;d=(null==(l=d.videoData.u)?void 0:null==(m=l.video)?void 0:m.j)||0;g.Pz("yt-player-quality",{quality:g.uB[yB(b)],
previousQuality:d},31104E3);c.U.schedule.policy.C=480<=HE();if(c.K("html5_exponential_memory_for_sticky")){b=c.U.Fd;l=1;var n=void 0===n?!1:n;hza(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Wn["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Wn["sticky-lifetime"]=0);n&&.0625<GF(b,"sticky-lifetime")&&(l=2*b.Wn["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/l);b.Wn["sticky-lifetime"]=l;b.C.start()}if(c.K("html5_perf_cap_override_sticky"))if(c.K("html5_perserve_av1_perf_cap")){n=
IE();c=g.r(Object.keys(n));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(n[b]=0);g.Pz("yt-player-performance-cap",n,604800)}else g.Rz("yt-player-performance-cap")}}}tX(a)};
mRa=function(a){a.videoData.videoId?a.Qg.DH(a.videoData.videoId).then(function(b){a.videoData.Zca=b}):a.ma("pomvid",{})};
tX=function(a){if(!a.isDisposed()&&!g.W(a.playerState,128)&&a.videoData.B){if(a.videoData.B.j)uX(a);else{var b=zX(a),c=a.videoData;a:{var d=a.videoData.zc;if(b.j){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.zg(),l=g.uB[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.eb=d;yX(a,b.reason,sRa(a,a.videoData.eb))}if(a.K("html5_check_unstarted")?g.fK(a.playerState):a.Oc())a.jd.Ra=!1,a.playVideo()}};
uX=function(a){if(a.videoData.B&&a.videoData.B.j){var b=zX(a);if(a.Ga&&(a=a.Ga,!a.isDisposed()&&!a.je.j.equals(b)&&a.videoTrack)){var c=a.je.j;HNa(a,NLa(a.je,b));hV(a);var d=a.je.j.isLocked()&&"m"===b.reason&&a.je.W,e=a.policy.Fk&&"l"===b.reason&&FU(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.je.Ya&&!oE();d||e||b||c?mV(a.oa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):nV(a)}}};
hX=function(a){a.K("html5_update_constraint")?uX(a):tX(a)};
tRa=function(a){var b;return!!(a.K("html5_native_audio_track_switching")&&g.Zv&&(null==(b=a.videoData.u)?0:UD(b)))};
uRa=function(a){if(!tRa(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
wRa=function(a){var b=vRa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Ic.getName()===b})};
vRa=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
sX=function(a){$xa(a.videoData.j,{cpn:a.videoData.clientPlaybackNonce,c:a.U.deviceParams.c,cver:a.U.deviceParams.cver});var b=a.U,c=a.videoData,d=new g.qHa(b),e=pHa({hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Mm:c.Mm});d.C=e;d.Y=g.TE(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Kd=g.TE(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Vt=g.TE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Fd=g.TE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Oq=g.TE(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Ki=g.TE(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Pq=g.TE(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Hs=b.K("html5_restrict_streaming_xhr_on_sqless_requests");d.Jl=g.TE(b.experiments,"html5_max_headm_for_streaming_xhr");d.Wl=b.K("html5_pipeline_manifestless_allow_nonstreaming");d.gm=b.K("html5_prefer_server_bwe3");d.Ok=b.K("html5_last_slice_transition");d.St=b.K("html5_store_xhr_headers_readable");
d.rd=g.TE(b.experiments,"html5_probe_primary_delay_base_ms")||d.rd;d.oi=b.K("html5_no_placeholder_rollbacks");d.Ut=b.K("html5_subsegment_readahead_enable_mffa");b.K("html5_allow_video_keyframe_without_audio")&&(d.qa=!0);d.Oe=b.K("html5_abs_buffer_health");d.Nk=b.K("html5_interruption_resets_seeked_time");d.vg=g.TE(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.vg;d.Eh=b.K("html5_explicitly_dispose_xhr");d.Gs=b.K("html5_restart_on_unexpected_detach");d.qg=g.TE(b.experiments,"html5_manifestless_seg_drift_limit_secs");
d.rg=g.TE(b.experiments,"html5_max_drift_per_track_secs");d.Ed=g.TE(b.experiments,"html5_static_abr_resolution_shelf");d.rk=!b.K("html5_encourage_array_coalescing");d.Kk=b.K("html5_filter_non_efficient_formats_for_safari");d.fu=b.K("html5_format_hybridization");d.bk=b.K("html5_abort_before_separate_init");d.gt=b.K("html5_serialize_server_stitched_ad_request");d.jh=b.K("html5_never_pause_appends");d.Nc=g.TE(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.nk=b.K("html5_attach_po_token_to_bandaid");
b.K("html5_allow_video_keyframe_without_audio")&&(d.qa=!0);0<g.TE(b.experiments,"html5_max_redirect_response_length")&&(d.Ng=g.TE(b.experiments,"html5_max_redirect_response_length"));e=g.TE(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.xs=e);d.Cd=b.K("html5_rewrite_timestamps_for_webm");d.La=b.K("html5_only_media_duration_for_discontinuities");b.K("html5_media_common_config_killswitch")||(d.D=c.maxReadAheadMediaTimeMs/1E3||d.D,e=b.schedule,e.B.Nh()===e.policy.B?d.va=10:d.va=c.minReadAheadMediaTimeMs/
1E3||d.va,d.Pe=c.readAheadGrowthRateMs/1E3||d.Pe);zl&&(d.Ha=41943040);d.gb=!tE();g.cG(b)||!tE()?(e=b.experiments,d.I=8388608,d.W=524288,d.pk=5,d.yc=2097152,d.Ra=1048576,d.ir=1.5,d.Ul=!1,d.Pb=4587520,Su()&&(d.Pb=786432),d.u*=1.1,d.B*=1.1,d.eb=!0,d.Ha=d.I,d.zc=d.W,d.Ne=e.fb("persist_disable_player_preload_on_tv")||e.fb("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&(d.u*=1.3,d.B*=1.3);g.bE&&Ou("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.W=1572864,
e&&(d.Pb=812500,d.Bw=1E3,d.Sq=5,d.Ra=2097152));!b.K("html5_disable_firefox_init_skipping")&&g.pB&&(d.eb=!0);b.supportsGaplessAudio()||(d.Ik=!1);JF&&(d.Ua=!0);d.Bd=b.K("html5_peak_shave");"onesie"===c.fetchType&&b.K("html5_disable_peak_shave_for_onesie")&&(d.Bd=!1);var f;e=null==(f=c.j)?void 0:IB(f);if(OH(c)){d.Ld=!0;d.Mk=!0;d.La=!0;d.Cd=!0;d.wt=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.K("html5_disable_low_pipeline"))d.Qk=2,d.Kl=4;d.On=c.defraggedFromSubfragments;c.ze&&(d.im=!0);
g.iI(c)&&(d.Ya=!1);d.Bk=g.nG(b);d.useUmp=!1}c.isAd()&&(d.Mc=0,d.og=0,d.Nc=g.TE(b.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));oBa(c)&&(d.ra=!0,b.K("html5_aggressive_timeout_for_streaming_xhr")&&(d.Bw=400,d.Ll=10,d.hm=1,d.Vl=!0,d.zi=5,d.Il=2,d.jm=3,d.Gi=1.4));d.Kb=b.K("html5_enable_subsegment_readahead_v3")||b.K("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.Yb=xG(b);d.V=d.Yb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||2<=b.V);$u()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&
!b.K("html5_disable_move_pssh_to_moov")&&e&&(d.eb=!1);var h=0;b.K("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.TE(b.experiments,"ULTRALOW"===c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||h));f=b.schedule;f.ra.j=OH(c)?.5:0;if(!f.policy.j&&h&&(f=f.B,h=Math.round(h*f.resolution),h!==f.j)){var l=Array(h),m=Math.min(h,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<h;++p)l[p]=Infinity;f.j=h;f.values=l;f.valueIndex=m%h;f.u=m===h;f.C=!0;f.D=aza(f)}d.jh=c.isLivePlayback;switch(aI(c)){case 21530001:d.Vj=b.K("html5_live_smoothly_extend_max_seekable_time");d.Kb=!0;"LOW"===c.latencyClass?d.Y=g.TE(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.Y=g.TE(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.oi=!0;
break;case 2153E4:d.Kb=!1}c.nf()&&(d.Ak=1.3);d.Ua=d.Ua||c.Kx;d.Dd=c.Ea;2<=b.V&&(d.Lc=!0);c.Ea&&!e&&(d.Ei=!0);c.Ea&&c.isAd()&&(d.u*=1.6,d.B*=1.6);vI(c)&&(d.j=c.videoId,b.K("woffle_pending_promises_killswitch")&&(d.Cb=!1),d.Oe=!0,d.Qq=4,c.gr&&0<c.gr.length&&(d.He=c.gr));d.Fk=c.Gi;d.N=KE(b,{},c.B||void 0);d.Ea=VH(c)&&g.VF(b);c=480<=HE();e=g.TE(b.experiments,"html5_deadzone_multiplier")||1;d.u*=e;d.B*=e;if(e=g.TE(b.experiments,"html5_request_sizing_multiplier"))d.jr=e;FB(b.j,GB.BITRATE)&&(d.Pb=NaN);b.j.B&&
(d.Jk="; "+GB.EXPERIMENTAL.name+"=allowed");c&&(d.Ed=0);b.K("html5_prefer_low_quality_audio_means_64k")&&JF&&(d.fm=!0);b.K("debug_html5_random_stun_format")&&(d.Di=!0);b.K("html5_log_audio_abr")&&(d.Pk=!0);b=a.getAudioTrack();b=b.Ic.isDefault?void 0:b;FV(a.qw);if(a.K("html5_onesie_ads"))a:{c=a.Qg.Qs;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.Nk,delete c.Nk,c=e;a.Ga=new g.gV(a,a.U.schedule,d,a.videoData.j,a.videoData.B,zX(a),b,a.videoData.enableServerStitchedDai,
c,a.videoData.va);d=xRa(a)?!0:a.Yp&&g.cG(a.U)&&a.videoData.isLivePlayback;a.Ga.initialize(a.getCurrentTime(),zX(a),d);a.videoData.probeUrl&&(a.Ga.ra=a.videoData.probeUrl);!a.hk.length&&!a.Yp||!a.K("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||BX(a,!1);IW(a.jd,a.Ga);a.kd&&NNa(a.Ga,new g.rV(a.kd));g.wI(a.videoData)&&(d=a.Ga,d.policy.cf=d.policy.Lu,a.K("html5_offline_retry_index_db_read")&&(yAa=!0))};
qX=function(a){a.Ga&&(a.Ga.dispose(),a.Ga=null,IW(a.jd,null));AX(a)};
AX=function(a){if(a.mediaSource){if(a.Ga){var b=OH(a.videoData)&&a.videoData.ze&&!a.videoData.isAd();jV(a.Ga,b)}a.mediaSource.dispose();a.mediaSource=null}};
yRa=function(a){if(a.mediaSource)return a.mediaSource.yz;a:{try{if(g.Qu()&&a.videoData.yI()){var b=a.mediaElement;b.B&&(b.B.dispose(),b.B=void 0)}var c=a.mediaElement.ls()}catch(d){if(MV(a.Uk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.fg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}nS(a,c)}return a.mediaSource?a.mediaSource.yz:null};
nS=function(a,b){zRa(a);a.mediaSource=b;Bxa(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){var d=a.getDuration();!d&&OH(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,c>a.mediaSource.getDuration()&&a.mediaSource.wj(c)):a.mediaSource.wj(d);var e=a.Ga,f=a.mediaSource;e.policy.J&&(e.dj(),e.policy.J=!1);GNa(e);if(!f.j&&!f.u){var h=e.videoTrack.Gg(),l=h?h.info.j:e.videoTrack.j,m=e.audioTrack.Gg(),n=l.info.mimeType+e.policy.Jk,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,v=
null==(q=f.mediaSource)?void 0:q.addSourceBuffer(p),w,y="fakesb"===n.split(";")[0]?void 0:null==(w=f.mediaSource)?void 0:w.addSourceBuffer(n);f.Jf&&(f.Jf.webkitSourceAddId("0",p),f.Jf.webkitSourceAddId("1",n));var A=new nE(v,f.Jf,"0",PD(p),!1),B=new nE(y,f.Jf,"1",PD(n),!0);f.j=A;f.u=B;g.M(f,A);g.M(f,B)}uU(e.videoTrack,f.u||null);uU(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.dz(f.j,e.qa,e);g.dz(f.u,e.qa,e);try{e.Ij()}catch(E){g.qz(E)}a.X("mediasourceattached")}}catch(E){g.rz(E),a.handleError(new zG("fmt.unplayable",
{msi:"1",ename:E.name},1))}})};
zRa=function(a){a.Ga?a.Ga.seek(a.getCurrentTime()-a.wd()).Wi(function(){}):sX(a)};
JV=function(a,b){b=void 0===b?!1:b;return g.z(function(c){if(1==c.j)return!a.K("html5_reset_daistate_on_newelement_killswitch")&&a.Ga&&a.Ga.us(),a.Ga&&a.Ga.isDisposed()&&qX(a),a.Sb(bK(a.playerState,2048)),a.X("newelementrequired"),b?g.x(c,nX(a),2):c.Ma(2);g.W(a.playerState,8)&&a.playVideo();g.pa(c)})};
rKa=function(a,b){a.ma("newelem",{r:b});JV(a)};
CX=function(a){a.Bb.D.pJ();g.W(a.playerState,32)||(a.Sb(bK(a.playerState,32)),g.W(a.playerState,8)&&a.pauseVideo(!0),a.X("beginseeking",a));a.Wb()};
LS=function(a){g.W(a.playerState,32)?(a.Sb(dK(a.playerState,16,32)),a.X("endseeking",a)):g.W(a.playerState,2)||a.Sb(bK(a.playerState,16));a.Bb.D.uJ(a.videoData,g.W(a.playerState,4))};
oX=function(a,b){a.X("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
ARa=function(a){for(var b=g.r("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.bx.P(a.mediaElement,c.value,a.NJ,a);a.U.Hk&&a.mediaElement.er()&&(a.bx.P(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.Q_,a),a.bx.P(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.R_,a))};
BRa=function(a){window.clearInterval(a.KD);DX(a)||(a.KD=g.yu(function(){return DX(a)},100))};
DX=function(a){var b=a.mediaElement;b&&a.rD&&!a.videoData.La&&!lB("vfp",a.Bb.timerName)&&2<=b.aj()&&!b.Tg()&&0<kE(b.Sg())&&a.Bb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.La&&0<b.getDuration()&&(!lB("pbp",a.Bb.timerName)&&b.Hn()&&2<=b.aj()&&0<kE(b.Sg())&&a.Bb.tick("pbp"),b=b.getCurrentTime(),uW(a.Ux,b))?(kKa(a),!0):!1};
kKa=function(a){window.clearInterval(a.KD);a.Ns.stop();a.videoData.La=!0;a.U.Il=!0;a.U.ub=0;var b=a.Uk;if(b.videoData.u){var c=b.Oa.j;c.u.delete(b.videoData.u.j);c.j=!0}b.j.stop();a.U.bk=a.videoData.Lx;a.videoData.cQ=!0;CRa(a);g.W(a.playerState,8)&&a.Sb(cK(a.playerState,65));a.K("web_player_reset_preloading_killswitch")||(a.Yp=!1);b=a.hc;b.j&&sPa(b.j);b=b.C;c=g.sS(b.j);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.$n(a.xG);a.X("playbackstarted");g.Fv()&&((a=g.Ha("yt.scheduler.instance.clearPriorityThreshold"))?
a():Gv(0))};
CRa=function(a){var b=a.getCurrentTime(),c=a.Qg.Wc();!lB("pbs",a.Bb.timerName)&&EA.measure&&EA.getEntriesByName&&(EA.getEntriesByName("mark_nr")[0]?zva("mark_nr"):zva());c.videoId&&a.Bb.info("docid",c.videoId);c.eventId&&a.Bb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.K("web_player_early_cpn")&&a.Bb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Bb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Hn())if(a.U.experiments.fb("web_csi_via_jspb")){var d=new wt;g.D(d,
6,!0);var e=new zt;F(e,wt,22,d);kB(e,a.Bb.timerName)}else a.Bb.info("paused",1);a.U.experiments.fb("web_csi_via_jspb")?(d=new wt,c.u?g.D(d,1,Number(c.u.itag)):g.D(d,1,-1),e=new zt,F(e,wt,22,d),kB(e,a.Bb.timerName)):c.u?a.Bb.info("fmt",c.u.itag):a.Bb.info("fmt","-1");c.cf&&(e=a.jI?2:1,a.U.experiments.fb("web_csi_via_jspb")?(d=new wt,g.D(d,8,e),e=new zt,F(e,wt,22,d),kB(e,a.Bb.timerName)):a.Bb.info("yt_pre",String(a.jI?2:1)));a.isFullscreen()&&a.Bb.info("yt_fs","1");YA({liveStreamMode:DRa[eI(c)]},a.Bb.timerName);
a.Bb.info("cmt",b.toFixed(3));if(a.Ga){b=a.Ga.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("fvb_r",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("fab_r",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.Bb.tick(f,b[f])}};
ERa=function(a){a.hc.Vd();if(hI(a.videoData)&&Date.now()>a.UP+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&AE(a.videoData.j))){var b=a.hc;if(b.qoe){b=b.qoe;var c=b.j.oa.Ry(),d=g.sS(b.j);YV(b,d,c);c=c.D;isNaN(c)||g.VV(b,d,"e2el",[c.toFixed(3)])}}g.nG(a.U)&&a.ma("rawlat",{l:kT(a.SK,"rawlivelatency").toFixed(3)});a.UP=Date.now()}a.videoData.u&&UD(a.videoData.u)&&(b=pJ(a))&&b.videoHeight!==a.JI&&(a.JI=b.videoHeight,yX(a,"a",sRa(a,a.videoData.eb)))};
sRa=function(a,b){if("auto"===b.j.video.quality&&UD(b.zg())&&a.videoData.zc)for(var c=g.r(a.videoData.zc),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.JI&&"auto"!==d.j.video.quality)return d.zg();return b.zg()};
gX=function(a){if(!hI(a.videoData))return NaN;var b=0;a.Ga&&a.videoData.j&&(b=OH(a.videoData)?a.Ga.MB.Nh()||0:a.videoData.j.N);return Date.now()/1E3-a.getIngestionTime()-b};
FRa=function(a){!a.K("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.Bg()&&(a.aD=(0,g.U)());a.U.fm?g.xu(function(){EX(a)},0):EX(a)};
EX=function(a){if(a.mediaElement)try{a.JD=a.mediaElement.playVideo()}catch(c){rX(a,"err."+c)}if(a.JD){var b=a.JD;b.then(void 0,function(c){if(!(g.W(a.playerState,4)||g.W(a.playerState,256)||a.JD!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);rX(a,d);a.KN=!0;a.videoData.UR=!0}})}};
rX=function(a,b){g.W(a.playerState,128)||(a.Sb(dK(a.playerState,1028,9)),a.ma("dompaused",{r:b}),a.X("onAutoplayBlocked"))};
iX=function(a){if(!a.mediaElement||!a.videoData.B)return!1;var b,c=null;if(null==(b=a.videoData.B)?0:b.j){c=yRa(a);var d;null==(d=a.Ga)||d.resume()}else qX(a),a.videoData.eb&&(c=a.videoData.eb.Dx());b=c;d=a.mediaElement.mB();c=!1;d&&d.equals(b)||(GRa(a,b),c=!0);g.W(a.playerState,2)||(b=a.jd,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{re:"playbacktimeline_resumeTime"}));a:if(b=c,g.cI(a.videoData)&&a.mediaElement)if((d=a.videoData.N)&&a.mediaElement.er()){var e=a.mediaElement.tf();
if(a.xe)if(e!==a.xe.element)FX(a);else if(b&&"fairplay"===d.flavor&&!Ru())FX(a);else break a;a.xe=new GV(e,a.videoData,a.U);a.xe.subscribe("licenseerror",a.uD,a);a.xe.subscribe("qualitychange",a.L0,a);a.xe.subscribe("heartbeatparams",a.Oz,a);a.xe.subscribe("keystatuseschange",a.qq,a);a.xe.subscribe("ctmp",a.ma,a);b=g.r(a.qw.keys);for(d=b.next();!d.done;d=b.next())d=a.qw.get(d.value),a.xe.jw(d);a.K("html5_eme_loader_sync")||FV(a.qw)}else a.fg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return c};
GRa=function(a,b){a.Bb.tick("vta");mB("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&aQa(a.jd,a.getCurrentTime());a.mediaElement.Tu(b);a.mediaSource&&Gv(4);!a.videoData.La&&g.fK(a.playerState)&&a.Ns.start();if(tRa(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.X("internalaudioformatchange",a.videoData,!0)}}};
FX=function(a){a.xe&&(a.xe.dispose(),a.xe=null)};
oS=function(a,b){b=void 0===b?!1:b;return hI(a.videoData)&&(a.isAtLiveHead()&&(a.K("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.W(a.playerState,4))||a.oo()||g.iI(a.videoData))?a.getCurrentTime():a.Pd(b)};
HRa=function(a){a.mediaElement&&(a.mediaSource?(FX(a),AX(a),yRa(a)):(a.videoData.eb&&a.videoData.eb.vK(),a.mediaElement.stopVideo()),a.playVideo())};
GX=function(a,b){a.U.K("html5_log_rebuffer_reason")&&a.ma("bufreason",{r:b,lact:Px()})};
GS=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){l=2===c.playerType?c:b;var m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.hc;if(p.qoe){p=p.qoe;var q=b.cpn,v=c.cpn,w=l.videoData.Mc,y=p.j.videoData.clientPlaybackNonce,A=p.j.videoData.videoId,B=v!==y&&n!==A;y=q!==y&&m!==A;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=y?q:"",p.V=y?m:"",p.adFormat=y?w:void 0,hPa(p,h?4:f?2:0,v,n,e),p.reportStats(),p.adCpn=B?v:"",p.V=B?n:"",p.adFormat=B?w:void 0,hPa(p,h?5:f?3:1,q,m,
d),p.reportStats())}d=a.hc;f=b.cpn;if(d.B.has(f)){if(h=d.B.get(f),pW(h).send(),oW(h),f!==d.u.videoData.clientPlaybackNonce){qW(h);if(!d.u.U.K("html5_ssdai_flush_vss_killswitch")){var E;null==(E=d.j)||nW(E)}d.B.delete(f)}}else d.nh=d.u.videoData.clientPlaybackNonce,d.nh&&d.j&&(d.B.set(d.nh,d.j),d.u.U.K("html5_ssdai_flush_vss_killswitch")||(pW(d.j).send(),oW(d.j)));E=a.hc;d=c.cpn;l=l.videoData;f=e-a.Un();if(E.B.has(d)){var G=E.B.get(d);E.u.U.K("html5_ssdai_flush_vss_killswitch")||pW(G).send();G.B&&
isNaN(G.D)&&lW(G,!1)}else l=CPa(E,E.u,l,f),E.B.set(d,l),E.u.U.K("html5_ssdai_vss_player_state_change")&&l.bd(new g.sJ(bK(new g.$J,8),new g.$J)),sPa(l),E.u.U.K("html5_ssdai_flush_vss_killswitch")||null==(G=E.j)||oW(G);E.nh=d;G=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===G?"video":"ad")+"_to_"+(c.cpn===G?"video":"ad");G={};!a.K("web_player_csi_ctt_killswitch")&&a.I&&(G.cttAuthInfo={token:a.I,videoId:a.videoId});G.startTime=e;ZA(b,G);YA({targetVideoId:a.videoId,targetCpn:c.cpn},b);XA("pbs",
e,b)}}};
IRa=function(a,b){if(xG(a.U)){var c=g.TE(a.U.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.Ob();d.rt=(1E3*g.sS(a.hc.u)).toFixed();d.e=b.substr(0,3);a.MD[a.ER++%c]=d}}};
JRa=function(a){if(xG(a.U)){a.MD.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.MD),c=b.next();!c.done;c=b.next())c=c.value,a.ma("vpe",Object.assign({t:c.rt},c));a.MD=[];a.ER=0}};
KRa=function(a){if(Ou("cobalt")&&Ou("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ma("nxdock",{d:b})}};
jKa=function(a,b,c,d,e){a.ma("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
BX=function(a,b){var c;null==(c=a.Ga)||iV(c,b||xRa(a))};
xRa=function(a){var b=a.K("disable_prefetch_when_ad_pending_for_living_room")&&g.cG(a.U),c=a.K("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.Wb(a.hk,"ad")};
g.JX=function(a,b,c){g.K.call(this);var d=this;this.logger=new g.eT("App");this.Bz=this.Kh=!1;this.Qt={};this.Vu=new CGa;this.TD={};this.Fw=[];this.DP=!1;this.wI=null;this.HP=!1;this.Fs=!0;this.KK=!1;this.XP=this.LI=null;this.eQ=!0;this.mediaElement=this.sb=null;this.Tz=!1;this.nS=this.bA=this.Fb=this.playlist=null;this.tA=void 0;this.Jq=0;this.Ad=this.hx=this.Gk=null;this.config=Era(b||{});this.webPlayerContextConfig=c;cna();b=this.config.args||{};this.U=new eG(b,c,c?c.canaryState:this.config.assets.player_canary_state);
g.M(this,this.U);this.vG();this.U.experiments.fb("web_player_all_payloads_via_jspb")&&(g.T("migrate_events_to_ts")?(LRa||(LRa=!0),Qy=MRa,Ry=NRa):(ORa||(ORa=!0),Sy=MRa,Ty=NRa));this.U.isMobile&&!PRa&&(window.addEventListener(IF?"touchstart":"click",eKa,{capture:!0,passive:!0}),PRa=!0);this.K("html5_onesie")&&(this.Ws=new bS(this.U),g.M(this,this.Ws));this.zS=ev(OF(this.U)&&!0,b.enablesizebutton);this.CI=ev(!1,b.player_wide);this.visibility=new vS;g.M(this,this.visibility);this.setIsExternalPlaylist(b.external_list);
this.events=new g.YD(this);g.M(this,this.events);this.Ho=new gT;g.M(this,this.Ho);this.Rn=new gT;g.M(this,this.Rn);this.Vp=new oLa;b=new gN;this.Sa=new g.tN(this,b);g.M(this,this.Sa);this.template=new oT(this);g.M(this,this.template);this.appState=1;this.Bh=this.U.storeUserVolume?eya():{volume:100,muted:this.U.mute};this.G=this.U.C?new rN(this,b,!0,1):new jN(this,b,!0,1);g.M(this,this.G);g.M(this,b);b={};this.uG=(b.internalvideodatachange=this.U_,b.playbackready=this.W_,b.playbackstarted=this.X_,
b.statechange=this.Y_,b);this.oY=new dHa(this.Sa);g.M(this,this.oY);this.wc=QRa(this);this.d_=new g.YD(this);g.M(this,this.d_);this.K("html5_enable_web_assembly")&&this.wc&&CHa(this.wc).then(function(e){d.U.Qk=e});
this.Bb=new TN(this.U,this.wc);this.kb=RRa(this);this.kb.setPlaybackRate(this.U.u?1:SRa(this,Number(g.Qz("yt-player-playback-rate"))||1));g.dz(this.kb,this.uG,this);nRa(this.kb);b={};this.IR=(b.airplayactivechange=this.onAirPlayActiveChange,b.airplayavailabilitychange=this.onAirPlayAvailabilityChange,b.beginseeking=this.pJ,b.endseeking=this.uJ,b.internalAbandon=this.zJ,b.internalaudioformatchange=this.Kz,b.internalvideodatachange=this.onVideoDataChange,b.internalvideoformatchange=this.Sz,b.liveviewshift=
this.N0,b.playbackstalledatstart=this.o2,b.progresssync=this.C1,b.onLoadProgress=this.onLoadProgress,b.SEEK_COMPLETE=this.mw,b.SEEK_TO=this.Z1,b.onVideoProgress=this.onVideoProgress,b.onLoadedMetadata=this.onLoadedMetadata,b.onAutoplayBlocked=this.onAutoplayBlocked,b.playbackready=this.o1,b.statechange=this.vR,b.connectionissue=this.Mz,b.newelementrequired=this.bR,b.heartbeatparams=this.Oz,b.videoelementevent=this.NJ,b.drmoutputrestricted=this.onDrmOutputRestricted,b.signatureexpired=this.h2,b.nonfatalerror=
this.d1,b);this.cq=new g.YD(this);g.M(this,this.cq);b=10;g.cG(this.U)&&(b=3);mG(this.U)&&(b=g.TE(this.U.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Qs=new fT;g.M(this,this.Qs);this.Xz=new bT(b,function(e){e!==g.oN(d,e.getPlayerType())&&e.dispose()});
g.M(this,this.Xz);this.vH=this.dC=-1;this.jE=new g.Zn(this.template.resize,16,this.template);g.M(this,this.jE);TRa(this);this.kd=new RS(this.Sa,this.U,this.kb);this.ex=new pS(this);g.M(this,this.ex);bLa(this.U.deviceParams.c);this.events.P(this.Sa,g.uA("appapi"),this.S_);this.events.P(this.Sa,g.vA("appapi"),this.T_);this.events.P(this.Sa,g.uA("appad"),this.HQ);this.events.P(this.Sa,g.vA("appad"),this.HQ);this.events.P(this.Sa,g.uA("appprogressboundary"),this.B1);this.events.P(this.Sa,g.vA("applooprange"),
this.lE);this.events.P(this.Sa,"presentingplayerstatechange",this.wh);this.events.P(this.Sa,"resize",this.N1);this.template.xa(zda(a));this.events.P(this.Sa,"offlineslatestatechange",this.f1);this.BL=URa(this,this.template.element);g.M(this,this.BL);this.wc.G.R().rg&&lO(this.wc,"offline");this.U.zc&&g.aO("ux",g.$R);this.FN=new g.Zn(this.x3,g.TE(this.U.experiments,"html5_defer_fetch_att_ms"),this);g.M(this,this.FN);this.Wc().isValid()&&(g.Sz()&&this.Wc().W.push("remote"),HX(this),!this.U.K("html5_delay_initial_loading")&&
IX(this)&&(this.U.Ki||this.U.bf)&&g.rS(this.kb));this.Bb.tick("fs");VRa(this);this.Rd=null;this.U.zc&&zHa(this.wc);g.XF(this.wc.G.R())&&lO(this.wc,"music");g.MF(this.wc.G.R())&&lO(this.wc,"embed");this.K("web_player_sentinel_is_uniplayer")||g.rz(new g.Rv("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.K("web_player_sentinel_yt_experiments_sync");b=g.T("web_player_sentinel_yt_experiments_sync");a!==b&&g.rz(new g.Rv("b/195699950",{yt:a,player:b}));c||g.rz(new g.Rv("b/179532961"));
this.eT=WRa(this);if(c=g.TE(this.U.experiments,"html5_block_pip_safari_delay"))this.BH=new g.Zn(this.SN,c,this),g.M(this,this.BH);this.U.K("embeds_enable_pem_cookie_blocking_killswitch")||(Ju=this.U.Ya);c=g.TE(this.U.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.zR=new g.Oh(c),g.M(this,this.zR),this.events.P(this.zR,"tick",function(){d.AR&&XRa.Dp(d.AR);d.AR=XRa.Fq("apit")}));
c=this.U.og||0;0<c&&(this.vr=new g.Zn(this.ZD,c,this),g.M(this,this.vr))};
WRa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Fb||a.kb).hc.yd("player.exception",yG({n:c.name,m:c.message}))}
sz.subscribe("handleError",b);fu.push(b);return function(){sz.unsubscribe("handleError",b);var c=fu.indexOf(b);-1!==c&&fu.splice(c,1)}};
RRa=function(a){var b=new g.HH(a.U,a.config.args);return a.ey(1,b)};
QRa=function(a){var b="",c=jLa(a);0===c.indexOf("//")&&(c=a.U.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.rz(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new iO(a.Sa,b);YRa(a,b);return b};
YRa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
ZRa=function(a,b){var c=a.isVideoInfoVisible();a.Gk||(a.Gk=new wT(a.Sa),g.M(a,a.Gk),g.AN(a.Sa,a.Gk.element,4));g.YK(a.Gk,b);KX(a)&&c!==b&&wN(a.wc).dL();a=a.Fb;b&&a&&a.ma("sfn",{},!0)};
LX=function(a){a.mediaElement=a.U.deviceIsAudioOnly?new g.vO(g.mh("AUDIO")):iS.pop()||new g.vO(g.mh("VIDEO"));g.M(a,a.mediaElement);a.Fb&&a.Fb.setMediaElement(a.mediaElement);try{a.U.yc?(a.hx&&a.events.uc(a.hx),a.hx=a.events.P(a.mediaElement,"volumechange",a.V0)):(a.mediaElement.Hw(a.Bh.muted),a.mediaElement.setVolume(a.Bh.volume/100))}catch(d){a.Kf("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.bz(a.cq);$Ra(a);var b=a.template;
b.Jb=a.mediaElement.tf();b.JC=!1;b.Jb.parentNode||g.ph(b.Zx,b.Jb,0);b.RD=new g.vl(0,0,0,0);nLa(b);pT(b);g.ho(b.Jb,"video-stream");g.ho(b.Jb,g.nT.MAIN_VIDEO);var c=b.app.R();c.oi&&b.Jb.setAttribute("data-no-fullscreen","true");c.Fk&&(b.Jb.setAttribute("webkit-playsinline",""),b.Jb.setAttribute("playsinline",""));c.cm&&b.Jb&&b.P(b.Jb,"click",b.Jb.play,b.Jb);try{a.mediaElement.Tu()}catch(d){a.Kf("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
uS=function(a,b){if(a.Fb!==b){var c=null;if(a.Fb){c=a.Fb.getPlayerState();nO(a.wc,3);MX(a,"cuerangesremoved",a.Fb.Yk());a.ex&&!b.isGapless()&&a.Fb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var d;if(d=a.Ad)d=a.mediaElement,d=!!d&&d===a.Ad.mediaElement;d&&(a.Xh(),LX(a));a.Fb&&(a.Fb.Xh(),ez(a.Fb,a.IR,a),1!==a.Fb.getPlayerType()&&a.Fb.dispose());a.Fb=null}1===b.getPlayerType()&&a.kb!==b&&(b.getVideoData().autonavState=a.kb.getVideoData().autonavState,ez(a.kb,a.uG,a),d=a.kb.getPlaybackRate(),
a.kb.dispose(),a.kb=b,a.kb.setPlaybackRate(d),g.dz(b,a.uG,a),HX(a));d=b.getPlayerType();if(b!==a.kb&&b!==a.Qt[d]){var e;null==(e=a.Qt[d])||e.dispose();a.Qt[d]=b}a.Fb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.dz(b,a.IR,a);if(b.YC())aSa(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.eK(c,b.getPlayerState())&&a.vR(new g.sJ(b.getPlayerState(),c));if(b.Fo.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&
a.Sa.Ka("onPlaybackQualityChange",c.quality);MX(a,"cuerangesadded",a.Fb.Yk());c=b.getPlayerState();g.W(c,2)?bSa(a):g.W(c,8)?b.playVideo():b.lz()&&b.pauseVideo();a.K("html5_load_ads_instead_of_cue")&&2===b.getPlayerType()&&!a.ze()&&(b=b.getVideoData(),a.kb.zt(b.clientPlaybackNonce,b.Mc||"",b.breakType||0,b.Ld))}}};
bSa=function(a){if(!cSa(a)){var b=a.kb.Qd();b&&(b=b.yy(),b instanceof Promise&&b.catch(function(){}));
NX(a,iK(a.zb()))}};
$Ra=function(a){var b=a.mediaElement;dE()?a.cq.P(b,"webkitpresentationmodechanged",a.W1):cE()&&(a.cq.P(b,"enterpictureinpicture",function(){a.Iw(!0)}),a.cq.P(b,"leavepictureinpicture",function(){a.Iw(!1)}));
TF&&(a.cq.P(b,"webkitbeginfullscreen",function(){a.wk(3)}),a.cq.P(b,"webkitendfullscreen",function(){a.wk(0)}))};
g.oN=function(a,b){return b?1===b?a.kb:a.getVideoData().enableServerStitchedDai&&2===b?!a.K("web_player_enable_preroll_for_ssdai_killswitch")&&a.getVideoData().enablePreroll?a.Qt[2]||a.Fb:a.Fb:a.Qt[b]||null:a.Fb};
OX=function(a,b,c,d){a=a.ey(b,c,d);nRa(a);return a};
PX=function(a,b){return a.ze(b)?a.kb:b};
QX=function(a,b){var c=a.Fb;return c&&b===a.kb&&a.ze(b)&&a.ze(c)?c:b};
dSa=function(a){var b=a.getVideoData(),c=a.wc;mO(c)||c.TB();lO(c,"attribution",!1,!0);lO(c,"embed");lO(c,"inline_preview");lO(c,"kids");lO(c,"remote");lO(c,"miniplayer");lO(c,"music");lO(c,"offline");lO(c,"unplugged");lO(c,"ypc",!1,!0);lO(c,"ypc_clickwrap",!1,!0);lO(c,"yto",!1,!0);lO(c,"webgl",!1,!0);xHa(c)?0<c.C&&c.I&&c.I.start():(lO(c,"captions",!0),lO(c,"endscreen"),c.XG(),lO(c,"creatorendscreen",!0));c.kO();yHa(c);a.Sa.X("videoready",b)};
IX=function(a){a=a.Wc();a.isValid();return sI(a)};
VRa=function(a){a.fH();var b=a.config.args;LX(a);var c=a.Wc();a.Sa.Ka("onVolumeChange",a.Bh);if(b&&WN(b)){var d=jG(a.U);d&&!a.Kh&&(b.fetch=0);var e=g.MF(a.U);e&&!a.Kh&&(b.fetch=0);RX(a,b);g.MF(a.U)&&a.Bb.tick("ep_pr_s");if(d&&!a.Kh)SX(a);else if(e&&!a.Kh)TX(a);else if(!c.isValid())a.playlist.onReady(function(){UX(a)})}uS(a,a.kb);
g.W(a.kb.getPlayerState(),128)||(b=wxa(!a.U.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Kf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Kf(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&IX(a)&&(a.U.Ki||a.U.bf)?VX(a):g.Qz("yt-player-playback-on-reload")?(g.Mv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.U.authUser}),lya(!1),VX(a)):tG(a.U)||eSa(a),g.lG(a.U)||"MWEB"===aG(a.U)?(g.Cv(g.Ev(),function(){WX(a)}),g.Cv(g.Ev(),
function(){$Fa()})):(WX(a),$Fa()))};
WX=function(a){if(a.K("fetch_att_independently"))g.$n(a.FN);else{var b=a.getVideoData().botguardData;b&&g.cN(b,a.U,a.getVideoData().cj||"")}};
eSa=function(a){a.Sa.X("initializingmode");a.pn(2);lO(a.wc,"remote");a.U.K("player_cued_miniplayer_module_killswitch")||lO(a.wc,"miniplayer")};
VX=function(a){if(g.W(a.kb.getPlayerState(),128))return!1;IX(a)&&a.U.bf&&(iS.length&&a.Bz?(nN(a,{muted:!1,volume:a.Bh.volume},!1),XX(a,!1)):iS.length||a.Bh.muted||(nN(a,{muted:!0,volume:a.Bh.volume},!1),XX(a,!0)));var b=a.kb.getVideoData();b.yR&&nN(a,{muted:!0,volume:a.Bh.volume},!1);YX(a,1,b,!1);a.Sa.X("initializingmode");uS(a,a.kb);a.pn(3);if(!(b=!a.U.Nk)){if(b=a.Ad)b=a.mediaElement,b=!!b&&b===a.Ad.mediaElement;b=b&&a.DP}b&&(a.Xh(),LX(a),a.kb.setMediaElement(a.mediaElement));vX(a.kb);if(g.W(a.kb.getPlayerState(),
128))return!1;NX(a,3);return a.DP=!0};
KX=function(a){a=wN(a.wc);return!!a&&a.loaded};
fSa=function(a,b){if(!a.sb)return!1;var c=.001*a.sb.startTimeMs-1,d=.001*a.sb.endTimeMs;"repeatChapter"===a.sb.type&&d--;return Fg(b,c)||Fg(b,d)||b>=c&&b<=d};
gSa=function(a){if(!(g.W(a.kb.getPlayerState(),64)&&a.Wc().isLivePlayback&&5E3>a.sb.startTimeMs)){if(a.K("web_repeating_chapters")&&"repeatChapter"===a.sb.type){var b,c=null==(b=pN(a.ob()))?void 0:b.Av(),d;b=null==(d=a.getVideoData())?void 0:d.oi;c instanceof g.PO&&b&&(d=b[zP(b,a.sb.startTimeMs)],c.iK(0,d.title));isNaN(Number(a.sb.loopCount))?a.sb.loopCount=0:a.sb.loopCount++;1===a.sb.loopCount&&a.G.Ka("innertubeCommand",a.getVideoData().Z5)}a.kb.seekTo(.001*a.sb.startTimeMs,{re:"application_loopRangeStart"})}};
SRa=function(a,b){var c=a.Sa.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};
$X=function(a,b,c){if(a.ze(c)){c=c.getVideoData();if(ZX(a))c=b;else{a=a.kd;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Dc===e.Dc){b+=e.Ac/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Dc===e.Dc)break;var f=e.Ac/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Vc/1E3;else break}c=d}return c}return b};
hSa=function(a,b){if(3===a.getPresentingPlayerType())return iK(wN(a.wc).Zd);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Rd)?0:c.isAdPlaying(a.getCurrentTime()))?a.dC:-1}return 2!==b||a.ze()?a.dC:a.vH};
HX=function(a){aY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Vu.Vu={};a.TD={};a.Fw=[];gHa(a.Bb);if(a.Rd){var b=a.Rd,c=a.kb;c.getPlayerType();KS(b,!1);MS(b);GKa(b);b.oa=c}b=a.kd;a=a.kb;1!==a.getPlayerType()&&SS(b,"invalidParentVideoPlayerType");XS(b,!1);ZS(b);b.j=a};
SX=function(a){var b=iSa();if(b)if(!b.list)a.bv();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Sa.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.XN(a.playlist).videoId||(b.index=a.playlist.index));ZN(a.playlist,b);a.bA&&bY(a,a.bA)}else a.bA=null};
TX=function(a,b){var c=(b?b:a.Wc()).AT;a.Bb.tick("ep_pr_r");if(null!=c&&(ZN(a.playlist,c),a.KK))a.playlist.onReady(function(){UX(a,b)})};
RX=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.bv,a),g.af(a.playlist),a.playlist=null);b&&(a.Kh&&(b.fetch=0),a.playlist=new VN(a.U,b),a.playlist.subscribe("error",a.bv,a))};
mSa=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()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.Sn(c,d);d=void 0;d=void 0===d?!1:d;(d=lA(mA(c,jSa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=lA(mA(c,kSa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=lA(mA(c,lSa),c,d,"Nielsen OCR URL"));g.Ww(c,void 0,d)}return!0};
NX=function(a,b){if(a.Fb){var c=a.Fb.getPlayerType();if(2===c&&!a.ze()){a.vH!==b&&(a.vH=b,a.Sa.Ka("onAdStateChange",b));return}if(2===c&&a.ze()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}0===b&&a.sb||a.dC===b||(a.dC=b,a.Sa.Ka("onStateChange",b))};
YX=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Dc;var f=a.Xz.get(e);if(!f)return null;a.Xz.remove(e);if(g.W(f.getPlayerState(),128))return f.dispose(),null}if(f===g.oN(a,b))return YA({isCacheHit:!0},a.Bb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||uS(a,f);YA({isCacheHit:!0},a.Bb.timerName);return f};
cY=function(a,b,c){c=g.oN(a,c);b&&c===a.kb&&(c.getVideoData().jh=!0)};
dY=function(a,b,c){c=void 0===c?1:c;if(b.isValid()){var d=OX(a,c,b);a.cancelPlayback(4,c);uS(a,d);2!==c||a.K("html5_load_ads_instead_of_cue")||a.kb.zt(b.clientPlaybackNonce,b.Mc||"",b.breakType||0,b.Ld);1===c&&(a.pn(1),eSa(a))}else b.dispose(),g.af(g.oN(a,c)),!a.K("web_player_clean_up_adplayer_for_preroll_on_ssdai_killswitch")&&PBa(a.Wc())&&2===c&&delete a.Qt[2]};
nSa=function(a,b,c,d,e){b=GGa(b,c,d,e);(c=g.MF(a.U)&&!a.U.N)&&!a.Kh&&(b.fetch=0);RX(a,b);g.MF(a.U)&&a.Bb.tick("ep_a_pr_s");if(c&&!a.Kh)c=a.Wc(),lHa(c,b).then(function(f){a.KK=!0;TX(a,f)});
else a.playlist.onReady(function(){UX(a)});
g.MF(a.U)&&a.Bb.tick("ep_a_pr_r")};
UX=function(a,b){var c=g.MF(a.U)&&!a.U.N,d=c&&b?b:g.XN(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.cn&&(a.U.Ki||a.U.bf)||!a.Fs?(b=b.jh,d=a.aq(d,1),b&&cY(a,d)):dY(a,d,1));g.MF(a.U)&&a.Bb.tick("ep_p_l");a.KK=!1;a.Sa.Ka("onPlaylistUpdate")};
cSa=function(a){if(a.playlist&&g.SF(a.U)&&a.Dy()){var b=a.U.K("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
bY=function(a,b){var c=g.Ha(b);c?((b=iSa())&&b.list&&c(),a.bA=null):a.bA=b};
iSa=function(){var a=g.Ha("yt.www.watch.lists.getState");return a?a():null};
eY=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=rA.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=rA.AD_MARKER:(b.style=rA.TIME_MARKER,b.color=e),b.visible=!0);a.Px([new g.sA(1E3*c,1E3*d,b)],1);return!0};
oSa=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.getIngestionTime();if(!h)return f&&a.getVideoData().isLivePlayback&&a.Fw.push({id:b,J5:c,I5:d}),!1;f=h-a.getCurrentTime();return eY(a,b,c-f,d-f,void 0,void 0,e)};
pSa=function(a,b){a.Fw=g.wm(a.Fw,function(f){return f.id!==b});
for(var c=a.kb.Yk(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.kb.removeCueRange(e),MX(a,"cuerangesremoved",[e]),!0}return!1};
qSa=function(a){var b=(0,g.U)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
nN=function(a,b,c){a.U.va&&(a.Bh=b,b.muted||XX(a,!1),c&&a.U.storeUserVolume&&!a.U.yc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Pz("yt-player-volume",c),g.Pz("yt-player-volume",c,2592E3))),rSa(a),c=g.bE&&a.mediaElement&&!a.mediaElement.Hf(),a.U.yc&&!c||a.Sa.Ka("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.U.storeUserVolume}))};
rSa=function(a){var b=a.getVideoData();if(!b.Ei){b=a.U.yc?1:NBa(b);var c=a.mediaElement;c.Hw(a.Bh.muted);try{c.setVolume(a.Bh.volume*b/100)}catch(d){g.rz(new g.Rv("b183742307","multiplier: "+b+", volume: "+a.Bh.volume))}}};
XX=function(a,b){b!==a.Bz&&(a.Bz=b,a.Sa.Ka("onMutedAutoplayChange",b))};
fY=function(a){var b=Xy(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.tf())?b:null};
tSa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.U.K("lock_fullscreen2")||a.U.I)&&c&&c.lock&&(!g.bE||!sSa))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.Tz||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.Tz=!0}}else a.Tz&&(a.Tz=!1,c.unlock())};
MX=function(a,b,c){a.Sa.X(b,c);var d=g.cG(a.U)||g.UF(a.U)||g.VF(a.U);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Sa.Ka(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}}))}};
gY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.oN(a,e);if(!h||(2!==h.getPlayerType()||a.ze(h)||f)&&!g.iI(h.getVideoData()))3===a.getPresentingPlayerType()?wN(a.wc).Zm("control_seek",b,c):(h===a.kb&&a.sb&&!fSa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
hY=function(a){a.Sa.Ka("SIZE_CLICKED",!a.CI)};
aSa=function(a,b,c){c&&(a.Xh(),LX(a));c=g.oN(a);c.yd(new zG("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?OH(d)&&g.nG(a.U)&&(e.live_utc_start=c.getIngestionTime(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ha&&(e.vvt=d.Ha);d.I&&(e.vss_credentials_token=d.I,e.vss_credentials_token_type=d.Ej);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Ki&&(e.force_gvi=d.Ki);e.autoplay=1;e.reload_count=d.Yb+1;e.reload_reason=b;d.Mx&&
(e.unplugged_partner_opt_out=d.Mx);d.Ne&&(e.ypc_is_premiere_trailer=d.Ne);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Rd&&a.ZD()};
uSa=function(a,b){a.Wc().autonavState=b;g.Pz("yt-player-autonavstate",b);a.Sa.X("autonavchange",b)};
vSa=function(a){var b=a.getVideoData().Ei,c=a.U.Bd,d=a.isInline()&&!a.getVideoData().YK,e=a.mediaElement;b||c||d?e.iH():(e.lH(),nN(a,a.Bh))};
URa=function(a,b){return a.U.K("html5_enable_embedded_player_visibility_signals")&&g.MF(a.U)?new mT(b):null};
aY=function(a){(a=oO(a.ob()))&&a.created&&a.destroy()};
ZX=function(a){return(a.K("html5_halftime_limit_timeline_usage_killswitch")||a.getVideoData().enableServerStitchedDai)&&!!a.Rd};
wSa=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]=Bl(a,d);b.hidden=!!a.hidden};
TRa=function(a){var b=a.U,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.K("embeds_enable_request_storage_access_safari_itp")&&g.Zv&&d&&b.u?Xu()||b.Ya?(g.Mv("embedsStorageAccessNotChecked",{isIosWebview:Xu(),isPemPlayer:b.Ya}),a.tA=!1):c.hasStorageAccess().then(function(e){g.Mv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.tA=!e},function(e){g.Mv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.rz(Error("Embeds ITP Error: "+e));a.tA=!1}):a.tA=!1};
xSa=function(a,b){return g.cG(a.U)&&tu(b)&&ru(b)?g.wG(g.uI(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Iu()};
iY=function(a,b){xSa(a,b).then(function(c){g.Ww(b,void 0,void 0,c)})};
jY=function(a,b){b.forEach(function(c){iY(a,c)})};
jLa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
ySa=function(a){var b;a=null==(b=pN(a.ob()))?void 0:b.Av();if(!(a instanceof g.PO))return null;var c;return(null==(c=a.aP())?void 0:c.V)||null};
zSa=function(a,b,c,d){var e=1E3*a.getCurrentTime()<c?1:-1;b.iK(e,d);gY(a,c/1E3)};
kY=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
$z=function(a,b){return a.j.has(b)};
lY=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
mY=function(a){return Array.from(a.j.keys())};
BSa=function(a){var b;return(null==(b=ASa.get(a))?void 0:b.Kt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
oY=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:CSa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Mb&&(c.entryTriggerType=b.Mb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Mb)c.debugData.slotEntryTriggerData=nY(a);a=b.Vb;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(nY(d.value));b=b.Zb;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(nY(a.value))}return c};
DSa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:CSa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
nY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.hh&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.hh);null!=a.Df&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Df);return c};
ESa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Pk(d||[],function(e){return oY(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
rY=function(a,b){return function(c){return pY(qY(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Xa,b.Mb,b.Vb,b.Zb,c.layoutId,c.layoutType,c.Xa)}};
pY=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:oY(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Xa:e,Mb:f,Vb:h,Zb:l,Aa:new kY([])}),layoutData:DSa(a,{layoutId:m,layoutType:n,Xa:p,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Rb:new Map,Aa:new kY([]),vc:{}})}}};
FSa=function(){return!0};
sY=function(a){this.u=FSa;this.Da=a;a=Math.random();var b=this.Da.get();b=g.TE(b.G.R().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
qY=function(a){return a.j||a.Da.get().G.R().K("html5_force_debug_data_for_client_tmp_logs")};
GSa=function(a,b){var c={slotId:hA(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mb:void 0,Vb:[],Zb:[],Xa:"surface",Aa:new kY([])},d=Object,e=d.assign;b=iA(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Rb:new Map,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"surface",Aa:new kY([]),vc:pY(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Xa,c.Mb,c.Vb,c.Zb,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},
a,{vZ:!0,slot:c,layout:b})};
tY=function(a){this.controller=a};
uY=function(a){this.UG=a};
vY=function(a,b,c){this.UG=a;this.Mi=b;this.Zj=c};
HSa=function(a,b,c){var d=a.UG();switch(b.type){case "SKIP":lEa(d,a.Mi,a.Zj,c)}};
wY=function(){};
xY=function(){};
yY=function(a,b,c){this.xl=a;this.LD=b;this.Pa=c};
zY=function(a,b){this.wr=a;this.Pa=b};
AY=function(a){this.G=a};
BY=function(a,b,c){this.jk=a;this.Pa=b;this.LD=c};
JSa=function(a){g.K.call(this);this.j=a;this.YV=ISa(this)};
ISa=function(a){var b=new NK(a.j.fd);g.M(a,b);a=g.r([new tY(a.j.MW),new zY(a.j.wr,a.j.Pa),new AY(a.j.G),new BY(a.j.jk,a.j.Pa,a.j.oh),new vY(a.j.l_,a.j.Mi,a.j.Zj),new uY(a.j.tX),new xY,new yY(a.j.xl,a.j.oh,a.j.Pa),new wY]);for(var c=a.next();!c.done;c=a.next())c=c.value,bEa(b,c),cEa(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())LK(b,c.value,function(){});
return b};
CY=function(a){this.value=a};
DY=function(a){this.value=a};
EY=function(a){this.value=a};
FY=function(a){this.value=a};
GY=function(a){this.value=a};
HY=function(){CY.apply(this,arguments)};
IY=function(a){this.value=a};
JY=function(a){this.value=a};
KY=function(a){this.value=a};
LY=function(a){this.value=a};
MY=function(a){this.value=a};
NY=function(a){this.value=a};
OY=function(a){this.value=a};
PY=function(a){this.value=a};
QY=function(a){this.value=a};
RY=function(){CY.apply(this,arguments)};
SY=function(){CY.apply(this,arguments)};
TY=function(a){this.value=a};
UY=function(a){this.value=a};
VY=function(a){this.value=a};
WY=function(a){this.value=a};
XY=function(a){this.value=a};
YY=function(a){this.value=a};
ZY=function(a){this.value=a};
$Y=function(a){this.value=a};
aZ=function(a){this.value=a};
bZ=function(a){this.value=a};
cZ=function(a){this.value=a};
dZ=function(a){this.value=a};
eZ=function(a){this.value=a};
fZ=function(a){this.value=a};
gZ=function(a){this.value=a};
hZ=function(a){this.value=a};
iZ=function(a){this.value=a};
jZ=function(a){this.value=a};
kZ=function(a){this.value=a};
lZ=function(a){this.value=a};
mZ=function(a){this.value=a};
nZ=function(a){this.value=a};
oZ=function(a){this.value=a};
pZ=function(a){this.value=a};
qZ=function(a){this.value=a};
rZ=function(a){this.value=a};
sZ=function(a){this.value=a};
tZ=function(a){this.value=a};
uZ=function(a){this.value=a};
vZ=function(a){this.value=a};
wZ=function(a){this.value=a};
xZ=function(a){this.value=a};
yZ=function(a){this.value=a};
zZ=function(){CY.apply(this,arguments)};
AZ=function(a){this.value=a};
BZ=function(){CY.apply(this,arguments)};
CZ=function(){CY.apply(this,arguments)};
DZ=function(){CY.apply(this,arguments)};
EZ=function(){CY.apply(this,arguments)};
FZ=function(a){this.value=a};
KSa=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}};
GZ=function(a,b,c,d){g.K.call(this);this.Md=b;this.dc=c;this.Da=d;this.j=a(this,this,this,this,this);g.M(this,this.j);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.M(this,b.value)};
DCa=function(a,b){KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
ECa=function(a,b){KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Md);for(var c=a.next();!c.done;c=a.next())c.value.Th(b)};
FCa=function(a,b){KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Md);for(var c=a.next();!c.done;c=a.next())c.value.Vf(b)};
wCa=function(a,b){KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Md);for(var c=a.next();!c.done;c=a.next())c.value.Wf(b)};
IZ=function(a,b,c){eA(c,b,void 0,void 0,c.yr);HZ(a,b,!0)};
NSa=function(a,b,c){if(JZ(a.j,b))if(KZ(a.j,b).C=c?"filled":"not_filled",null===c){LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Md);for(var d=c.next();!d.done;d=c.next())d.value.fk(b);HZ(a,b,!1)}else{LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=lY(c.Aa,"metadata_type_sub_layouts")){d=g.r(d);for(var e=d.next();!e.done;e=d.next())LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.r(a.Md);for(d=e.next();!d.done;d=
e.next())d.value.gk(b);if(JZ(a.j,b))if(KZ(a.j,b).D)HZ(a,b,!1);else{LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!KZ(f,b))throw new MZ("Unknown slotState for onLayout");if(!f.Ee.xo.get(b.slotType))throw new MZ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.Xb(c.xd)&&g.Xb(c.Tc)&&g.Xb(c.Pc)&&g.Xb(c.Uc)&&g.Xb(c.Yc))throw new MZ("Layout has no exit triggers.");NZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.xd);NZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Tc);NZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);NZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Uc);NZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Yc)}catch(n){a.eg(b,c,n);HZ(a,b,!0);return}KZ(a.j,b).I=!0;try{var h=a.j,l=KZ(h,b),m=h.Ee.xo.get(b.slotType).get().Se(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new MZ("Already had LayoutRenderingAdapter registered for slot");l.B=m;OZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.xd);OZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Tc);OZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);OZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Uc);OZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Yc)}catch(n){PZ(a,b);HZ(a,b,!0);a.eg(b,c,n);return}LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.r(a.Md);for(d=f.next();!d.done;d=f.next())d.value.rj(b,c);PZ(a,b);LSa(a,b)}else MSa(a.Da.get())&&eA("slot is unscheduled after been fulfilled.",b,c)}};
QZ=function(a,b,c){"core"!==b.Xa&&LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
RZ=function(a,b,c){LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Md);for(var d=a.next();!d.done;d=a.next())d.value.rj(b,c)};
LJ=function(a,b,c){a=g.r(a.Md);for(var d=a.next();!d.done;d=a.next())d.value.sj(b,c)};
SZ=function(a,b,c){LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Md);for(var d=a.next();!d.done;d=a.next())d.value.Kc(b,c)};
GJ=function(a,b,c,d){LZ(a.dc,BSa(d),b,c);a=g.r(a.Md);for(var e=a.next();!e.done;e=a.next())e.value.hd(b,c,d)};
PZ=function(a,b){if(JZ(a.j,b)){KZ(a.j,b).I=!1;var c=TZ;b=KZ(a.j,b);var d=[].concat(g.t(b.N));Naa(b.N);c(a,d)}};
TZ=function(a,b){b.sort(function(f,h){function l(m){eA("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):KSa(f.category,l)-KSa(h.category,l)});
var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,JZ(a.j,d.slot))if(KZ(a.j,d.slot).I)KZ(a.j,d.slot).N.push(d);else{OSa(a.dc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(PSa);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))&&QSa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&RSa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&SSa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
TSa(a,c)};
QSa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&UZ(a.j,d.slot)&&USa(a,d.slot,d.layout,c)};
RSa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())HZ(a,c.value.slot,!1)};
SSa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(KZ(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.By(c.slot))}};
TSa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Md),e=d.next();!e.done;e=d.next())e.value.uj(c.slot);try{var f=a.j,h=c.slot,l=KZ(f,h);if(!l)throw new BA("Got enter request for unknown slot");if(!l.u)throw new BA("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.j)throw new BA("Tried to enter a slot from stage: "+l.j);if(VZ(l))throw new BA("Got enter request for already active slot");
for(var m=g.r(WZ(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&VZ(p))throw new BA("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j});}}catch(q){eA(q,c.slot,XZ(a.j,c.slot),void 0,q.yr);HZ(a,c.slot,!0);continue}c=KZ(a.j,c.slot);"scheduled"!==c.j&&YZ(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.aC()}};
LSa=function(a,b){if(JZ(a.j,b)&&VZ(KZ(a.j,b))&&XZ(a.j,b)&&!UZ(a.j,b)){var c;LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=XZ(a.j,b))?c:void 0);a=KZ(a.j,b);"entered"!==a.j&&YZ(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
USa=function(a,b,c,d){if(JZ(a.j,b)){var e=a.dc,f;var h=(null==(f=ASa.get(d))?void 0:f.At)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";LZ(e,h,b,c);a=KZ(a.j,b);"rendering"!==a.j&&YZ(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.Yf(c,d)}};
HZ=function(a,b,c){if(JZ(a.j,b)){a:switch(KZ(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(KZ(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(KZ(a.j,b).D=!0,!c))return;if(VZ(KZ(a.j,b)))KZ(a.j,b).D=!0,VSa(a,b,c);else{a:switch(KZ(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)KZ(a.j,b).D=!0,JZ(a.j,b)&&(KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=KZ(a.j,b),b.C="fill_cancel_requested",b.J.FG());else{c=
XZ(a.j,b);KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=KZ(a.j,b);var e=b.Mb,f=d.ra.get(e.triggerId);f&&(f.Ck(e),d.ra.delete(e.triggerId));e=g.r(b.Vb);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.W.get(f.triggerId);h&&(h.Ck(f),d.W.delete(f.triggerId))}e=g.r(b.Zb);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.V.get(f.triggerId))h.Ck(f),d.V.delete(f.triggerId);null!=d.layout&&(e=d.layout,ZZ(d,e.xd),ZZ(d,e.Tc),ZZ(d,e.Pc),ZZ(d,e.Uc),ZZ(d,e.Yc));d.J=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;KZ(d,b)&&(d=WZ(d,b.slotType+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Md);for(d=a.next();!d.done;d=a.next())d=d.value,d.vj(b),c&&d.sj(b,c)}}}};
VSa=function(a,b,c){if(JZ(a.j,b)&&VZ(KZ(a.j,b))){var d=XZ(a.j,b);if(d&&UZ(a.j,b))USa(a,b,d,c?"error":"abandoned");else{KJ(a.dc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=KZ(a.j,b);if(!e)throw new BA("Cannot exit slot it is unregistered");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&YZ(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new BA("Cannot exit slot because adapter is not defined");e.u.cC()}catch(f){eA(f,b,void 0,void 0,f.yr)}}}};
WSa=function(a){this.slot=a;this.ra=new Map;this.W=new Map;this.V=new Map;this.Y=new Map;this.B=this.layout=this.u=this.J=void 0;this.I=this.D=!1;this.N=[];this.j="not_scheduled";this.C="not_filled"};
VZ=function(a){return"enter_requested"===a.j||a.isActive()};
MZ=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.yr=c;this.args=[];b&&this.args.push(b)};
$Z=function(a,b,c,d,e,f){g.K.call(this);this.Ee=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Da=f;this.j=new Map};
WZ=function(a,b){return(a=a.j.get(b))?a:new Map};
KZ=function(a,b){return WZ(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
XSa=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};
JZ=function(a,b){return null!=KZ(a,b)};
UZ=function(a,b){a=KZ(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};
XZ=function(a,b){(a=KZ(a,b))?null!=a.layout&&!a.layout&&eA("Unexpected empty layout",b):eA("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
a_=function(a,b,c){if(g.Xb(c))throw new BA("No "+YSa.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.Ee.Cj.get(d.triggerType))throw new BA("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
NZ=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ee.Cj.get(d.triggerType))throw new MZ("No trigger adapter registered for "+YSa.get(b)+" trigger of type: "+d.triggerType);};
OZ=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.Ee.Cj.get(e.triggerType);f.qk(c,e,b.slot,b.layout?b.layout:null);b.Y.set(e.triggerId,f)}};
ZZ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.Y.get(c.triggerId);d&&(d.Ck(c),a.Y.delete(c.triggerId))}};
YZ=function(a,b,c){eA("Slot stage was "+b+" when calling method "+c,a)};
ZSa=function(a){return b_(a.Xs).concat(b_(a.Cj)).concat(b_(a.Sn)).concat(b_(a.Qo)).concat(b_(a.xo))};
b_=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.lj&&b.push(c);return b};
c_=function(a){g.K.call(this);this.j=a;this.u=$Sa(this)};
$Sa=function(a){var b=new GZ(function(c,d,e,f){return new $Z(a.j.Ee,c,d,e,f,a.j.Da)},new Set(ZSa(a.j.Ee).concat(a.j.listeners)),a.j.dc,a.j.Da);
g.M(a,b);return b};
d_=function(a){g.K.call(this);var b=this;this.u=a;this.j=null;g.cf(this,function(){g.af(b.j);b.j=null})};
Y=function(a){return new d_(a)};
e_=function(a){this.j=a};
AL=function(a,b,c,d){(a=a.j())||eA("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
f_=function(a,b,c,d){(a=a.j())||eA("Could not initiate a command router instance.");OK(a,b,c,d)};
g_=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
h_=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
aTa=function(a){return null!=a.linearAds&&g_(a.adLayoutMetadata)};
bTa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
dTa=function(a,b,c,d,e,f,h){b=dva(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof BA?b:cTa(a,d,e,b,c);return a instanceof BA?a:[a]};
eTa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
iTa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,i_(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return fTa(p)});
b=[];f={};for(var h=g.r(a),l=h.next();!l.done;f={Hl:f.Hl},l=h.next()){f.Hl=l.value;l={};for(var m=g.r(f.Hl.pG),n=m.next();!n.done;l={Lg:l.Lg},n=m.next())l.Lg=n.value,n=function(p,q){return function(v){return p.Lg.YG(v,q.Hl.instreamVideoAdRenderer.elementId,p.Lg.oG)}}(l,f),l.Lg.shouldRemoveCommandTriggeredCompanions?l.Lg.isContentVideoCompanion?b.push(gTa(c,d,e,f.Hl.instreamVideoAdRenderer.elementId,l.Lg.associatedCompositePlayerBytesLayoutId,l.Lg.adSlotLoggingData,n)):1<a.length?b.push(j_(c,d,e,f.Hl.instreamVideoAdRenderer.elementId,
l.Lg.adSlotLoggingData,function(p,q){return function(v){return p.Lg.YG(v,q.Hl.instreamVideoAdRenderer.elementId,p.Lg.oG,p.Lg.associatedCompositePlayerBytesLayoutId)}}(l,f))):b.push(j_(c,d,e,f.Hl.instreamVideoAdRenderer.elementId,l.Lg.adSlotLoggingData,n)):"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===l.Lg.xr?b.push(hTa(c,d,l.Lg.BN,e,f.Hl.instreamVideoAdRenderer.elementId,l.Lg.adSlotLoggingData,n)):b.push(j_(c,d,e,f.Hl.instreamVideoAdRenderer.elementId,l.Lg.adSlotLoggingData,n))}return b};
i_=function(a,b,c){if(b=jTa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=kTa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.PC=c)}else eA("InstreamVideoAdRenderer without externalVideoId")}};
jTa=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};
fTa=function(a){if(void 0===a.instreamVideoAdRenderer)return eA("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.pG),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.YG)return!1;if(void 0===c.oG)return eA("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.PC||void 0===c.xr||a.PC!==c.xr&&(!c.shouldRemoveCommandTriggeredCompanions&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.xr||
c.shouldRemoveCommandTriggeredCompanions&&"AD_PLACEMENT_KIND_SELF_START"!==c.xr))return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return eA("InstreamVideoAdRenderer has no elementId",void 0,void 0,{kind:a.PC,"matching APSR kind":c.xr}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.xr&&void 0===c.BN)return eA("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
kTa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,PC:void 0,adVideoId:b,pG:[]});return a.get(b)};
k_=function(a,b,c,d,e,f,h,l,m,n){f?kTa(a,f).pG.push({BN:b,xr:c,shouldRemoveCommandTriggeredCompanions:d,isContentVideoCompanion:e,oG:l,associatedCompositePlayerBytesLayoutId:h,adSlotLoggingData:m,YG:n}):eA("Companion AdPlacementSupportedRenderer without adVideoId")};
mTa=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 lTa(d)?!0:!1};
nTa=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=lTa(a)):b=!1:b=!1;return b};
lTa=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};
l_=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};
m_=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),h;b=[].concat(g.t((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.t((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,v,w,y,A,B,E,G,H,I,O,L,P,S,ca,R;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==(v=a.playbackCommands)?void 0:v.rewindCommands,resumeCommands:null==(w=a.playbackCommands)?void 0:w.resumeCommands,skipCommands:null==(y=a.playbackCommands)?void 0:y.skipCommands,progressCommands:null==
(A=a.playbackCommands)?void 0:A.progressCommands,q2a:null==(B=a.playbackCommands)?void 0:B.clickthroughCommands,fullscreenCommands:null==(E=a.playbackCommands)?void 0:E.fullscreenCommands,activeViewViewableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null==(H=a.playbackCommands)?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(I=a.playbackCommands)?void 0:I.activeViewFullyViewableAudibleHalfDurationCommands,
activeViewAudioAudibleCommands:null==(O=a.playbackCommands)?void 0:null==(L=O.activeViewTracking)?void 0:L.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(P=a.playbackCommands)?void 0:null==(S=P.activeViewTracking)?void 0:S.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(ca=a.playbackCommands)?void 0:ca.endFullscreenCommands,abandonCommands:null==(R=a.playbackCommands)?void 0:R.abandonCommands,completeCommands:b}};
pTa=function(a,b,c,d,e,f,h){return function(l,m){return oTa(a,m.slotId,l,f,function(n,p){n=h(n);return n_(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new $Y(c),d],c.adLayoutLoggingData)})}};
sTa=function(a,b,c,d,e,f,h){if(!qTa(a))return new BA("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[rTa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=iA(e.Va.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xa:"core"},q=new o_(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Rb:new Map,xd:[q],Tc:[],
Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new aZ(l)]),vc:n(p)}})]};
qTa=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};
vTa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!nTa(a))return function(){return new BA("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=l_(h);return 0>=l?function(){return new BA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=tTa(m,c,d,function(q){var v=n(q),w=q.slotId;
q=m_(h);w=iA(e.Va.get(),"LAYOUT_TYPE_SURVEY",w);var y={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",Xa:"core"},A=new o_(e.j,d),B=new p_(e.j,w),E=new q_(e.j,w),G=new uTa(e.j);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",Rb:new Map,xd:[A,G],Tc:[B],Pc:[],Uc:[E],Yc:[],Xa:"core",Aa:new kY([new ZY(h),new MY(b),new xZ(l/1E3),new BZ(q)]),vc:v(y),adLayoutLoggingData:h.adLayoutLoggingData}});
m=sTa(a,c,p.slotId,d,e,m,n);return m instanceof BA?m:[p].concat(g.t(m))}};
DTa=function(a,b,c,d,e,f){var h=[];try{var l=[];if(c.renderer.linearAdSequenceRenderer)var m=function(y){y=wTa(y.slotId,c,b,e(y),d,f);l=y.P4;return y.IX};
else if(c.renderer.instreamVideoAdRenderer)m=function(y){var A=y.slotId;y=e(y);var B=c.config.adPlacementConfig,E=xTa(B),G=E.AO;E=E.DO;var H=c.renderer.instreamVideoAdRenderer,I;if(null==H?0:null==(I=H.playerOverlay)?0:I.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var O=yTa(H);I=Math.min(G+1E3*O.videoLengthSeconds,E);E=new LI(0,[O.videoLengthSeconds],I);var L=O.videoLengthSeconds,P=O.playerVars,S=O.instreamAdPlayerOverlayRenderer,ca=O.adVideoId,
R=zTa(c),na=O.Rb;O=O.zN;var sa=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;A=iA(b.Va.get(),"LAYOUT_TYPE_MEDIA",A);var Aa={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Rb:na,xd:[new r_(b.j)],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new TY(d),new jZ(L),new kZ(P),new mZ(G),new nZ(I),S&&new UY(S),new MY(B),new RY(ca),new NY(E),new sZ(R),H&&new lZ(H),new fZ({current:null}),new pZ({}),new EZ(O)].filter(ATa)),vc:y(Aa),
adLayoutLoggingData:sa}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var n=BTa(a,d,m);h.push(n);for(var p=g.r(l),q=p.next();!q.done;q=p.next()){var v=q.value,w=v(a,e);if(w instanceof BA)return w;h.push.apply(h,g.t(w))}}catch(y){return new BA(y,{errorMessage:y.message,AdPlacementRenderer:c,numberOfSurveyRenderers:CTa(c)})}return h};
CTa=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};
wTa=function(a,b,c,d,e,f){var h=b.config.adPlacementConfig,l=xTa(h),m=l.AO,n=l.DO;l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==l||!l.length)throw new TypeError("Expected linear ads");var p=[],q={GS:m,HS:0,F4:p};l=l.map(function(w){return ETa(a,w,q,c,d,h,e,n)}).map(function(w,y){y=new LI(y,p,n);
return w(y)});
var v=l.map(function(w){return w.JX});
return{IX:FTa(c,a,m,v,h,zTa(b),d,n,f),P4:l.map(function(w){return w.O4})}};
ETa=function(a,b,c,d,e,f,h,l){var m=yTa(b.instreamVideoAdRenderer),n=c.GS,p=c.HS,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.GS=q;c.HS++;c.F4.push(m.videoLengthSeconds);var v,w,y=null==(v=b.instreamVideoAdRenderer)?void 0:null==(w=v.playerOverlay)?void 0:w.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==y)throw new TypeError("Survey slate media has no survey overlay");return function(A){var B=m.playerVars;2<=A.u&&(B.slot_pos=A.j);B.autoplay="1";var E,G;B=m.videoLengthSeconds;var H=m.playerVars,
I=m.Rb,O=m.zN,L=m.instreamAdPlayerOverlayRenderer,P=m.adVideoId,S=null==(E=b.instreamVideoAdRenderer)?void 0:E.adLayoutLoggingData;E=null==(G=b.instreamVideoAdRenderer)?void 0:G.sodarExtensionData;G=iA(d.Va.get(),"LAYOUT_TYPE_MEDIA",a);var ca={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};A={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Rb:I,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"adapter",Aa:new kY([new TY(h),new jZ(B),new kZ(H),new mZ(n),new nZ(q),new oZ(p),new fZ({current:null}),L&&new UY(L),new MY(f),
new RY(P),new NY(A),E&&new lZ(E),y&&new DZ(y),new pZ({}),new EZ(O)].filter(ATa)),vc:e(ca),adLayoutLoggingData:S};B=vTa(b.instreamVideoAdRenderer,f,h,A.layoutId,d);return{JX:A,O4:B}}};
yTa=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=lu(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,Rb:a.pings?OI(a.pings):new Map,zN:NI(a.pings)}};
zTa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
xTa=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{AO:b,DO:a}};
HTa=function(a,b,c,d,e,f,h){var l=c.pings;return l?[GTa(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=iA(b.Va.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Rb:OI(l),xd:[new s_(b.j,f)],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new MY(d)]),vc:m(q),adLayoutLoggingData:p}})]:new BA("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
JTa=function(a,b,c,d,e,f,h,l){a=ITa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=iA(b.Va.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Xa:"core"},q=new Map,v=e.impressionUrls;v&&q.set("impression",v);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Rb:q,xd:[new t_(b.j,n)],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new rZ(e),new MY(c)]),vc:m(p)}});
return a instanceof BA?a:[a]};
LTa=function(a,b,c,d,e,f,h,l){a=KTa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=iA(b.Va.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=u_(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,v_(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=iA(b.Va.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=u_(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,v_(b,n,p))):q.imageOverlayAdContentRenderer?(q=iA(b.Va.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=v_(b,n,p),n.push(new w_(b.j,q)),n=u_(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new MZ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new MZ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof BA?a:[a]};
OTa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new BA("Expected valid duration for AdActionInterstitialRenderer."):function(p){return MTa(b,p.slotId,c,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return NTa(a,q,e,function(v,w){var y=v.slotId;v=h(v);y=iA(b.Va.get(),"LAYOUT_TYPE_ENDCAP",
y);return n_(b,y,w,c,v,"LAYOUT_TYPE_ENDCAP",[new XY(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
PTa=function(a,b,c,d){if(!c.playerVars)return new BA("No playerVars available in AdIntroRenderer.");var e=lu(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=iA(a.Va.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};return{Jt:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Rb:new Map,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"adapter",Aa:new kY([new qZ({}),new MY(b),new fZ({current:null}),new kZ(e)]),vc:f(l)},hv:[new x_(a.j,h,["error"])],Jr:[],QB:[],
PB:[]}}};
RTa=function(a,b,c,d,e,f,h,l,m){var n=l_(e);if(!mTa(e))return new BA("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=n)return new BA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var p=pTa(a,b,e,f,c,d,h);return p instanceof BA?p:function(q){return QTa(b,q.slotId,c,n,m_(e),h(q),p,l,m)}};
STa=function(a,b,c,d,e,f,h,l){function m(q){return NTa(a,q,d,n)}
function n(q,v){var w=q.slotId;q=h(q);w=iA(b.Va.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return n_(b,w,v,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new YY(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 BA("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var v={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},w=
h(q);q=y_(b,q.slotId,c,p,v,new Map,w,m);v=new cZ(q.FD);w=new OY(l);return{Jt:{layoutId:q.layoutId,layoutType:q.layoutType,Rb:q.Rb,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:q.Xa,Aa:new kY([].concat(g.t(q.Yx),[v,w])),vc:q.vc,adLayoutLoggingData:q.adLayoutLoggingData},hv:[],Jr:q.Pc,QB:q.Uc,PB:q.Yc,Si:q.Si}}};
VTa=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w){d=hA(d,"SLOT_TYPE_PLAYER_BYTES");a=TTa(e,a,h,c,d,m,n);if(a instanceof BA)return a;var y;h=null==(y=lY(a.Aa,"metadata_type_fulfilled_layout"))?void 0:y.layoutId;if(!h)return new BA("Invalid adNotify layout");b=UTa(h,e,f,c,l,b,m,p,q,v,w);return b instanceof BA?b:[a].concat(g.t(b))};
UTa=function(a,b,c,d,e,f,h,l,m,n,p){c=WTa(c,d,f,h,l,m,n,p);if(c instanceof BA)return c;a=XTa(b,a,h,e,c);return a instanceof BA?a:[].concat(g.t(a.Uh),[a.kt])};
ZTa=function(a,b,c,d,e,f,h,l,m,n,p){b=WTa(b,c,e,f,l,m,n,p);if(b instanceof BA)return b;a=YTa(a,c,f,h,d,l.nf,b);return a instanceof BA?a:a.Uh.concat(a.kt)};
WTa=function(a,b,c,d,e,f,h,l){var m=z_(c);return m instanceof MZ?new BA(m):function(n){var p=new LI(0,[m.vB]),q=$Ta(m.playerVars,m.ZR,e,l,p);n=f(n);var v=h.get(m.LA.externalVideoId);p=aUa(a,"core",m.LA,b,q,m.vB,d,p,n,v);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,Rb:p.Rb,xd:p.xd,Tc:p.Tc,Pc:p.Pc,Uc:p.Uc,Yc:p.Yc,Xa:p.Xa,Aa:new kY(p.fO),vc:p.vc,adLayoutLoggingData:p.adLayoutLoggingData},Uh:[]}}};
z_=function(a){if(!a.playerVars)return new MZ("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 MZ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=lu(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,eA("Expected valid length seconds in player vars but got NaN"));
return{LA:a,playerVars:b,ZR:a.playerVars,vB:c}};
$Ta=function(a,b,c,d,e){a.iv_load_policy=d;b=lu(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){eA(f)}c.Ah&&(a.ctrl=c.Ah);c.Wh&&(a.ytr=c.Wh);c.Kn&&(a.ytrcc=c.Kn);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Ej&&(a.vss_credentials_token_type=c.Ej),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
cUa=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y){a=hA(a,"SLOT_TYPE_PLAYER_BYTES");d=TTa(b,h,d,e,a,n,p);if(d instanceof BA)return d;var A;h=null==(A=lY(d.Aa,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new BA("Invalid adNotify layout");b=bUa(h,b,c,e,f,m,l,n,q,v,w,y);return b instanceof BA?b:[d].concat(g.t(b))};
bUa=function(a,b,c,d,e,f,h,l,m,n,p,q){c=dUa(b,c,d,f,h,l,m,n,p,q);eUa(f)?(d=fUa(b,a),a=hA(b.Va.get(),"SLOT_TYPE_IN_PLAYER"),f=iA(b.Va.get(),"LAYOUT_TYPE_SURVEY",a),l=A_(b,d,l),b=[].concat(g.t(l.Zb),[new B_(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,Mb:l.Mb,Vb:l.Vb,Zb:b,Xa:l.Xa},{slotId:a,layoutId:f}),e=a instanceof BA?a:{kt:Object.assign({},l,{Zb:b,Aa:new kY([new tZ(a.layout)]),adSlotLoggingData:e}),Uh:a.Uh}):e=XTa(b,a,l,e,c);return e instanceof BA?
e:[].concat(g.t(e.Uh),[e.kt])};
hUa=function(a,b,c,d,e,f,h,l,m,n,p,q){b=dUa(a,b,c,e,f,h,m,n,p,q);eUa(e)?(c=gUa(a,c,h,l),c instanceof BA?d=c:(e=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER"),h=iA(a.Va.get(),"LAYOUT_TYPE_SURVEY",e),a=[].concat(g.t(c.Zb),[new B_(a.j,h)]),e=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Xa:c.Xa,Mb:c.Mb,Vb:c.Vb,Zb:a},{slotId:e,layoutId:h}),d=e instanceof BA?e:{kt:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Mb:c.Mb,Vb:c.Vb,Zb:a,Xa:c.Xa,Aa:new kY([new tZ(e.layout)]),
adSlotLoggingData:d},Uh:e.Uh})):d=YTa(a,c,h,l,d,m.nf,b);return d instanceof BA?d:d.Uh.concat(d.kt)};
eUa=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b.value.instreamSurveyAdRenderer)return!0;return!1};
dUa=function(a,b,c,d,e,f,h,l,m,n){return function(p,q){a:{b:{var v=[];for(var w=g.r(d),y=w.next();!y.done;y=w.next())if(y=y.value,y.instreamVideoAdRenderer){y=z_(y.instreamVideoAdRenderer);if(y instanceof MZ){v=new BA(y);break b}v.push(y.vB)}}if(v instanceof BA)q=v;else{w=0;y=[];for(var A=[],B=[],E=[],G=[],H=[],I=new gZ({current:null}),O=new QY({current:null}),L=!1,P=[],S=-1,ca=g.r(d),R=ca.next();!R.done;R=ca.next())if(R=R.value,R.adIntroRenderer){R=PTa(b,c,R.adIntroRenderer,l);if(R instanceof BA){q=
R;break a}R=R(p);y.push(R.Jt);A=[].concat(g.t(R.hv),g.t(A));B=[].concat(g.t(R.Jr),g.t(B));R.Si&&(P=[R.Si].concat(g.t(P)))}else if(R.instreamVideoAdRenderer){S=z_(R.instreamVideoAdRenderer);if(S instanceof MZ){q=new BA(S);break a}R=new LI(w,v);var na=b,sa=S.LA,Aa=$Ta(S.playerVars,S.ZR,h,n,R),wa=l(p),ta=m.get(S.LA.externalVideoId);Aa=aUa(na,"adapter",sa,c,Aa,S.vB,f,R,wa,ta);wa=Aa.Tc;ta=Aa.fO;sa.adPodSkipTarget&&0<sa.adPodSkipTarget&&(ta.push(O),ta.push(new PY(sa.adPodSkipTarget)),wa=[]);ta.push(new OY(R.j));
sa.isCritical&&(wa=[new x_(na.j,Aa.layoutId,["error"])].concat(g.t(wa)));R={layoutId:Aa.layoutId,layoutType:Aa.layoutType,Rb:Aa.Rb,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:Aa.Xa,Aa:new kY(ta),vc:Aa.vc,adLayoutLoggingData:Aa.adLayoutLoggingData};na=wa;sa=Aa.Pc;w++;y.push(R);A=[].concat(g.t(na),g.t(A));B=[].concat(g.t(sa),g.t(B));L||(H.push(O),L=!0);S=(S=S.LA.adPodSkipTarget)&&0<S?S:-1}else if(R.adActionInterstitialRenderer){R=OTa(a,b,c,R.adActionInterstitialRenderer,f,w,l,O,S);if(R instanceof BA){q=R;break a}R=
R(p);y.push(R.Jt);A=[].concat(g.t(R.hv),g.t(A));B=[].concat(g.t(R.Jr),g.t(B));R.Si&&(P=[R.Si].concat(g.t(P)))}else if(R.instreamSurveyAdRenderer){if(void 0===q){q=new BA("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:R.instreamSurveyAdRenderer});break a}R=RTa(a,b,c,f,R.instreamSurveyAdRenderer,I,l,q,w);if(R instanceof BA){q=R;break a}R=R(p);y.push(R.Jt);R.Si&&P.push(R.Si);A=[].concat(g.t(R.hv),g.t(A));B=[].concat(g.t(R.Jr),g.t(B));E=[].concat(g.t(R.QB),
g.t(E));G=[].concat(g.t(R.PB),g.t(G));H=[I].concat(g.t(H))}else if(R.surveyTextInterstitialRenderer){R=STa(a,b,c,f,R.surveyTextInterstitialRenderer,I,l,w);if(R instanceof BA){q=R;break a}R=R(p);y.push(R.Jt);R.Si&&P.push(R.Si);B=[].concat(g.t(R.Jr),g.t(B))}else{q=new BA("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}q={G4:y,Tc:A,Uc:E,Yc:G,Pc:B,Yx:H,Uh:P}}}q instanceof BA?p=q:(G=p.slotId,v=q.G4,w=q.Tc,y=q.Pc,A=q.Uc,B=q.Yx,p=l(p),E=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
G=e?e.layoutId:iA(b.Va.get(),E,G),H={layoutId:G,layoutType:E,Xa:"core"},p={layout:{layoutId:G,layoutType:E,Rb:new Map,xd:[new t_(b.j,G)],Tc:w,Pc:y,Uc:A,Yc:[],Xa:"core",Aa:new kY([new hZ(v)].concat(g.t(B))),vc:p(H)},Uh:q.Uh});return p}};
jUa=function(a,b,c,d,e,f,h){if(!mTa(c))return new BA("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=l_(c);if(0>=l)return new BA("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new gZ({current:null}),n=pTa(a,b,c,m,d,f,h);return iUa(a,d,f,l,e,function(p,q){var v=p.slotId,w=m_(c);p=h(p);v=iA(b.Va.get(),"LAYOUT_TYPE_MEDIA_BREAK",v);var y={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"core"},A=n(v,
q);lY(A.Aa,"metadata_type_fulfilled_layout")||eA("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new MY(d),new yZ(l),new BZ(w),m];return{YZ:{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rb:new Map,xd:[new t_(b.j,v)],Tc:[new p_(b.j,q.layoutId)],Pc:[],Uc:[new q_(b.j,q.layoutId)],Yc:[],Xa:"core",Aa:new kY(w),vc:p(y)},pZ:A}})};
kUa=function(a){if(!bTa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&DJ(b)?!0:(eA("Invalid Sandwich with notify"),!1):!1};
lUa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?DJ(a)?!0:(eA("Invalid LASR with notify"),!1):!1};
mUa=function(a){if(!aTa(a))return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?DJ(a)?!0:(eA("Invalid LASR with notify"),!1):!1};
C_=function(a,b,c,d,e,f,h,l){this.Va=a;this.Ab=b;this.jb=c;this.Da=d;this.vb=e;this.j=f;this.Ci=h;this.loadPolicy=void 0===l?1:l};
Kua=function(a,b,c,d,e,f,h,l){var m=[];if(0===b.length&&0===c.length)return m;b=b.filter(h_);for(var n=c.filter(h_),p=new Map,q=new Map,v=g.r(b),w=v.next();!w.done;w=v.next())(w=w.value.renderer.remoteSlotsRenderer)&&w.hostElementId&&q.set(w.hostElementId,w);v=g.r(b);for(w=v.next();!w.done;w=v.next()){w=w.value;var y=nUa(a,p,w,d,e,f,h,q,l);y instanceof BA?eA(y,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):m.push.apply(m,
g.t(y))}D_(a.Da.get())||(e=oUa(a,n,d,h,q,p),m.push.apply(m,g.t(e)));if(null===a.j||f&&!h.rO){var A,B,E;a=h.nf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(A=b[0].config)?void 0:null==(B=A.adPlacementConfig)?void 0:B.kind)&&(null==(E=b[0].renderer)?void 0:E.adBreakServiceRenderer);if(!m.length&&!a){var G,H,I,O;eA("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(G=b[0])?void 0:null==
(H=G.config)?void 0:null==(I=H.adPlacementConfig)?void 0:I.kind,renderer:null==(O=b[0])?void 0:O.renderer})}return m}A=c.filter(h_);m.push.apply(m,g.t(iTa(p,A,a.Ab.get(),a.j,d)));if(!m.length){var L,P,S,ca;eA("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(L=b[0])?void 0:null==(P=L.config)?void 0:null==(S=P.adPlacementConfig)?void 0:S.kind,renderer:null==(ca=b[0])?void 0:ca.renderer})}return m};
oUa=function(a,b,c,d,e,f){function h(v){return rY(a.vb.get(),v)}
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&&kUa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,i_(f,n,m.config.adPlacementConfig.kind),m=UTa(q.layout.layoutId,a.Ab.get(),a.jb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Da.get()),m instanceof BA?eA(m):l.push.apply(l,g.t(m))):q&&(!q.adLayoutMetadata&&lUa(q)||q.adLayoutMetadata&&mUa(q))&&
(i_(f,n,m.config.adPlacementConfig.kind),m=bUa(q.adStart.adMessageRenderer.layout.layoutId,a.Ab.get(),a.jb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,g_(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Da.get()),m instanceof BA?eA(m):l.push.apply(l,g.t(m)))}return l};
nUa=function(a,b,c,d,e,f,h,l,m){function n(B){return rY(a.vb.get(),B)}
var p=c.renderer,q=c.config.adPlacementConfig,v=q.kind,w=c.adSlotLoggingData,y=h.rO&&"AD_PLACEMENT_KIND_START"===v;y=f&&!y;if(null!=p.adsEngagementPanelRenderer)return k_(b,c.elementId,v,p.adsEngagementPanelRenderer.shouldRemoveCommandTriggeredCompanions,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,E,G,H){var I;if(null==(I=p.adsEngagementPanelRenderer)?0:I.shouldRemoveCommandTriggeredCompanions){I=
a.jb.get();var O=p.adsEngagementPanelRenderer,L=rY(a.vb.get(),B);B=E_(I,B.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new EY(O),E,G,O.impressionPings,L,p.adsEngagementPanelRenderer.adLayoutLoggingData,H)}else H=a.jb.get(),I=p.adsEngagementPanelRenderer,O=rY(a.vb.get(),B),B=F_(H,B.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new EY(I),E,G,I.impressionPings,O,p.adsEngagementPanelRenderer.adLayoutLoggingData);return B}),[];
if(null!=p.actionCompanionAdRenderer)k_(b,c.elementId,v,p.actionCompanionAdRenderer.shouldRemoveCommandTriggeredCompanions,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,E,G,H){var I;if(null==(I=p.actionCompanionAdRenderer)?0:I.shouldRemoveCommandTriggeredCompanions){I=a.jb.get();var O=p.actionCompanionAdRenderer,L=rY(a.vb.get(),B);B=E_(I,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new DY(O),E,G,O.impressionPings,L,p.actionCompanionAdRenderer.adLayoutLoggingData,H)}else H=a.jb.get(),I=p.actionCompanionAdRenderer,O=rY(a.vb.get(),B),B=F_(H,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new DY(I),E,G,I.impressionPings,O,p.actionCompanionAdRenderer.adLayoutLoggingData);return B});
else if(p.imageCompanionAdRenderer)k_(b,c.elementId,v,p.imageCompanionAdRenderer.shouldRemoveCommandTriggeredCompanions,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,E,G,H){var I;if(null==(I=p.imageCompanionAdRenderer)?0:I.shouldRemoveCommandTriggeredCompanions){I=a.jb.get();var O=p.imageCompanionAdRenderer,L=rY(a.vb.get(),B);B=E_(I,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",
new IY(O),E,G,O.impressionPings,L,p.imageCompanionAdRenderer.adLayoutLoggingData,H)}else H=a.jb.get(),I=p.imageCompanionAdRenderer,O=rY(a.vb.get(),B),B=F_(H,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new IY(I),E,G,I.impressionPings,O,p.imageCompanionAdRenderer.adLayoutLoggingData);return B});
else if(p.shoppingCompanionCarouselRenderer)k_(b,c.elementId,v,p.shoppingCompanionCarouselRenderer.shouldRemoveCommandTriggeredCompanions,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(B,E,G,H){var I;if(null==(I=p.shoppingCompanionCarouselRenderer)?0:I.shouldRemoveCommandTriggeredCompanions){I=a.jb.get();var O=p.shoppingCompanionCarouselRenderer,L=rY(a.vb.get(),
B);B=E_(I,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new JY(O),E,G,O.impressionPings,L,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,H)}else H=a.jb.get(),I=p.shoppingCompanionCarouselRenderer,O=rY(a.vb.get(),B),B=F_(H,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new JY(I),E,G,I.impressionPings,O,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData);return B});
else if(p.adBreakServiceRenderer){if(!eTa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return dTa(a.Ab.get(),q,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Ci)return new BA("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.nf||eA("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:q,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.nf),clientPlaybackNonce:h.clientPlaybackNonce});
pUa(a.Ci,{adPlacementRenderer:c,contentCpn:d,iO:e})}else{if(p.clientForecastingAdRenderer)return JTa(a.Ab.get(),a.jb.get(),q,w,p.clientForecastingAdRenderer,d,e,n);if(p.invideoOverlayAdRenderer)return LTa(a.Ab.get(),a.jb.get(),q,w,p.invideoOverlayAdRenderer,d,e,n);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&y)return DTa(a.Ab.get(),a.jb.get(),c,d,n,m);if(p.linearAdSequenceRenderer&&!y){i_(b,p,v);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!aTa(p.linearAdSequenceRenderer))return new BA("Received invalid LinearAdSequenceRenderer.")}else if(null==
p.linearAdSequenceRenderer.linearAds)return new BA("Received invalid LinearAdSequenceRenderer.");var A;if(null==(A=p.linearAdSequenceRenderer.adStart)?0:A.adMessageRenderer){b=p.linearAdSequenceRenderer.adStart.adMessageRenderer;if(!uCa(b))return new BA("Invalid AdMessageRenderer.");c=p.linearAdSequenceRenderer.linearAds;return cUa(a.Va.get(),a.Ab.get(),a.jb.get(),a.vb.get(),q,w,b,g_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,h,n,l,a.loadPolicy,
a.Da.get())}return hUa(a.Ab.get(),a.jb.get(),q,w,p.linearAdSequenceRenderer.linearAds,g_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,h,n,l,a.loadPolicy,a.Da.get())}if(!p.remoteSlotsRenderer||f){if(p.instreamVideoAdRenderer&&!y)return i_(b,p,v),ZTa(a.Ab.get(),a.jb.get(),q,w,p.instreamVideoAdRenderer,d,e,h,n,l,a.loadPolicy,a.Da.get());if(p.instreamSurveyAdRenderer)return jUa(a.Ab.get(),a.jb.get(),p.instreamSurveyAdRenderer,q,w,d,n);if(null!=p.sandwichedLinearAdRenderer)return bTa(p.sandwichedLinearAdRenderer)?
p.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer?(b=p.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,uCa(b)?(c=p.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer)?VTa(b,c,q,a.Va.get(),a.Ab.get(),a.jb.get(),a.vb.get(),w,d,e,h,n,l,a.loadPolicy,a.Da.get()):new BA("Missing IVAR from Sandwich"):new BA("Invalid AdMessageRenderer.")):hUa(a.Ab.get(),a.jb.get(),q,w,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],void 0,d,e,h,n,l,a.loadPolicy,
a.Da.get()):new BA("Received invalid SandwichedLinearAdRenderer.");if(null!=p.videoAdTrackingRenderer)return HTa(a.Ab.get(),a.jb.get(),p.videoAdTrackingRenderer,q,w,d,n)}}return[]};
G_=function(a){g.K.call(this);this.j=a};
Zz=function(a,b,c,d){a.j().Qi(b,d);c=c();a=a.j();H_(a.dc,"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;KJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);KJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.fb(c.slotId))throw new BA("Slot ID was empty");if(KZ(e,c))throw new BA("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Mb.triggerType});if(!e.Ee.Sn.has(c.slotType))throw new BA("No fulfillment adapter factory registered for slot of type: "+
c.slotType);if(!e.Ee.Qo.has(c.slotType))throw new BA("No SlotAdapterFactory registered for slot of type: "+c.slotType);a_(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Mb?[c.Mb]:[]);a_(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.Vb);a_(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.Zb);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=WZ(f,h);if(KZ(f,c))throw new BA("Duplicate slots not supported");l.set(c.slotId,new WSa(c));f.j.set(h,l)}catch(S){eA(S,c,void 0,void 0,S.yr);break a}KZ(d.j,c).I=!0;try{var m=d.j,n=KZ(m,c),
p=c.Mb,q=m.Ee.Cj.get(p.triggerType);q&&(q.qk("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ra.set(p.triggerId,q));for(var v=g.r(c.Vb),w=v.next();!w.done;w=v.next()){var y=w.value,A=m.Ee.Cj.get(y.triggerType);A&&(A.qk("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,c,null),n.W.set(y.triggerId,A))}for(var B=g.r(c.Zb),E=B.next();!E.done;E=B.next()){var G=E.value,H=m.Ee.Cj.get(G.triggerType);H&&(H.qk("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.V.set(G.triggerId,H))}var I=m.Ee.Sn.get(c.slotType).get().Se(m.B,c);
n.J=I;var O=m.Ee.Qo.get(c.slotType).get().Se(m.D,c);O.init();n.u=O}catch(S){eA(S,c,void 0,void 0,S.yr);HZ(d,c,!0);break a}KJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Th(c);for(var L=g.r(d.Md),P=L.next();!P.done;P=L.next())P.value.Th(c);PZ(d,c)}};
I_=function(a,b,c,d){this.Uo=b;this.El=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
J_=function(a,b,c,d){g.K.call(this);var e=this;this.Qb=a;this.Ab=b;this.Tb=c;this.j=new Map;d.get().addListener(this);g.cf(this,function(){d.get().removeListener(e)})};
Hua=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.Vb),f=e.next();!f.done;f=e.next())f=f.value,f instanceof I_?(c=Math.min(c,f.El.start),d=Math.max(d,f.El.end)):eA("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new zo(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.Tb.get().addCueRange(d,c.start,c.end,!1,a)};
K_=function(){g.K.apply(this,arguments);this.lj=!0;this.yj=new Map;this.j=new Map};
qUa=function(a,b){a=g.r(a.yj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
L_=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}eA("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.fb(b)),layoutId:b})};
B_=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
x_=function(a,b,c){this.Df=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
o_=function(a,b){this.Df=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
r_=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
M_=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)};
N_=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)};
t_=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
s_=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
rUa=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)};
uTa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
O_=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
P_=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
Q_=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
p_=function(a,b){this.Df=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
q_=function(a,b){this.Df=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
w_=function(a,b){this.durationMs=45E3;this.Df=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
sUa=function(a){var b=[new bZ(a.Tw),new UY(a.instreamAdPlayerOverlayRenderer),new eZ(a.DR),new MY(a.adPlacementConfig),new jZ(a.videoLengthSeconds),new xZ(a.WI)];a.CN&&b.push(new QY(a.CN));return b};
tUa=function(a,b,c,d,e,f){a=c.nI?c.nI:iA(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Rb:new Map,xd:[new o_(function(l){return jA(f,l)},c.Tw)],
Tc:[],Pc:[],Uc:[],Yc:[],Xa:b,Aa:d,vc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
R_=function(a){var b=this;this.Va=a;this.j=function(c){return jA(b.Va.get(),c)}};
uUa=function(a,b,c,d,e,f){c=new kY([new VY(c),new MY(d)]);b=iA(a.Va.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Rb:new Map,xd:[new o_(function(h){return jA(a.Va.get(),h)},e)],
Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:c,vc:f(d),adLayoutLoggingData:void 0}};
S_=function(a,b,c,d,e){var f=sUa(d);return tUa(b,c,d,new kY(f),e,a.Va.get())};
vUa=function(a,b,c,d,e){var f=sUa(d);f.push(new KY(d.LW));f.push(new LY(d.NW));return tUa(b,c,d,new kY(f),e,a.Va.get())};
E_=function(a,b,c,d,e,f,h,l,m,n){b=iA(a.Va.get(),c,b);var p={layoutId:b,layoutType:c,Xa:"core"},q=new Map;h&&q.set("impression",h);h=[new M_(a.j,e)];n&&h.push(new x_(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Rb:q,xd:h,Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([d,new MY(f),new bZ(e)]),vc:l(p),adLayoutLoggingData:m}};
F_=function(a,b,c,d,e,f,h,l,m){b=iA(a.Va.get(),c,b);var n={layoutId:b,layoutType:c,Xa:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Rb:p,xd:[new t_(a.j,b),new M_(a.j,e)],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([d,new MY(f),new bZ(e)]),vc:l(n),adLayoutLoggingData:m}};
v_=function(a,b,c){var d=[];d.push(new N_(a.j,c));b&&d.push(b);return d};
u_=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Xa:"core"};return{layoutId:b,layoutType:c,Rb:new Map,xd:h,Tc:[new B_(a.j,b)],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new HY(d),new MY(e)]),vc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
n_=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Xa:"core"};return{layoutId:b,layoutType:f,Rb:new Map,xd:[new o_(a.j,c)],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new MY(d)].concat(g.t(h))),vc:e(m),adLayoutLoggingData:l}};
MTa=function(a,b,c,d,e,f,h,l,m,n,p,q){a=y_(a,b,c,d,e,f,h,l,p,q);b=a.Yx;c=new cZ(a.FD);d=a.Tc;0<m&&(b.push(c),b.push(new PY(m)),d=[]);b.push(new OY(n));return{Jt:{layoutId:a.layoutId,layoutType:a.layoutType,Rb:a.Rb,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:a.Xa,Aa:new kY(b),vc:a.vc,adLayoutLoggingData:a.adLayoutLoggingData},hv:d,Jr:a.Pc,QB:a.Uc,PB:a.Yc,Si:a.Si}};
QTa=function(a,b,c,d,e,f,h,l,m){b=y_(a,b,c,d,e,new Map,f,function(n){return h(n,l)});
a=new q_(a.j,b.FD);c=new cZ(b.FD);m=new OY(m);return{Jt:{layoutId:b.layoutId,layoutType:b.layoutType,Rb:b.Rb,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:b.Xa,Aa:new kY([].concat(g.t(b.Yx),[c,m])),vc:b.vc,adLayoutLoggingData:b.adLayoutLoggingData},hv:b.Tc,Jr:b.Pc,QB:[].concat(g.t(b.Uc),[a]),PB:b.Yc,Si:b.Si}};
y_=function(a,b,c,d,e,f,h,l,m,n){b=iA(a.Va.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"adapter"};l=l(b);var q=lY(l.Aa,"metadata_type_fulfilled_layout");q||eA("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new MY(c),new yZ(d),new BZ(e)];n&&c.push(new oZ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rb:f,xd:[],Tc:[new p_(a.j,q)],Pc:[],Uc:[],Yc:[],Xa:"adapter",
Yx:c,vc:h(p),adLayoutLoggingData:m,Si:l,FD:q}};
aUa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Xa:b};d=[new MY(d),new NY(l),new RY(c.externalVideoId),new TY(h),new UY(c.playerOverlay.instreamAdPlayerOverlayRenderer),new BZ({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new kZ(e),new fZ({current:null}),new jZ(f)];(e=c.playerUnderlay)&&d.push(new VY(e));e=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:iA(a.Va.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new cZ(f));d.push(new dZ(e));d.push(new oZ(l.j));c.adNextParams&&d.push(new FY(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new WY(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new GY(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new zZ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new lZ(c.sodarExtensionData));n&&d.push(new wZ(n));d.push(new EZ(NI(c.pings)));return{layoutId:p,
layoutType:"LAYOUT_TYPE_MEDIA",Rb:OI(c.pings),xd:[new t_(a.j,p)],Tc:c.skipOffsetMilliseconds?[new p_(a.j,f)]:[],Pc:[new p_(a.j,f)],Uc:[],Yc:[],Xa:b,fO:d,vc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
FTa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return CJ(p,[],["LAYOUT_TYPE_MEDIA"])})||eA("Unexpect subLayout type for DAI composite layout");
b=iA(a.Va.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Rb:new Map,xd:[new r_(a.j)],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new mZ(c),new nZ(l),new hZ(d),new MY(e),new sZ(f),new pZ({}),new FZ(m)]),vc:h(n)}};
ATa=function(a){return null!=a};
T_=function(a,b,c){this.Uo=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
U_=function(a,b,c){this.Df=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
V_=function(a,b){this.Df=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
wUa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
W_=function(a,b,c,d,e){this.Uo=b;this.El=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
X_=function(a,b,c){this.Uo=b;this.El=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
Y_=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
Z_=function(a,b){this.hh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
$_=function(a,b){this.hh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
a0=function(a,b){this.hh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
b0=function(a,b){this.hh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
c0=function(a,b){this.hh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
d0=function(a,b){this.hh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
e0=function(a,b,c){var d=this;this.Va=a;this.jb=b;this.Da=c;this.j=function(e){return jA(d.Va.get(),e)}};
cTa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=hA(a.Va.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.yv&&d.yv.start!==d.dn.start&&l.push(new I_(a.j,c,new zo(d.yv.start,d.dn.start),!1));l.push(new I_(a.j,c,new zo(d.dn.start,d.dn.end),d.UD));d={getAdBreakUrl:b.getAdBreakUrl,YR:d.dn.start,XR:d.dn.end};b=new b0(a.j,h);f=[new uZ(d)].concat(g.t(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Mb:b,Vb:l,Zb:[new s_(a.j,c),new $_(a.j,h),new a0(a.j,h)],Xa:"core",Aa:new kY(f),
adSlotLoggingData:e}};
yUa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(xUa(a,b,e.value));return d};
xUa=function(a,b,c){return null!=c.hh&&c.hh===a?c.clone(b):c};
oTa=function(a,b,c,d,e){return zUa(a,b,c,d,e)};
NTa=function(a,b,c,d){var e=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER");return zUa(a,e,b,c,d)};
zUa=function(a,b,c,d,e){var f=new V_(a.j,c),h=[new Z_(a.j,b)];a=[new $_(a.j,b),new s_(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mb:f,Vb:h,Zb:a,Xa:"core",Aa:new kY([new tZ(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Mb:f,Vb:h,Zb:a},c))]),adSlotLoggingData:void 0}};
iUa=function(a,b,c,d,e,f){var h=hA(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES"),l=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER"),m=iA(a.Va.get(),"LAYOUT_TYPE_SURVEY",l);b=f0(a,b,c,d);d=[new Z_(a.j,h)];a=[new $_(a.j,h),new s_(a.j,c),new B_(a.j,m)];if(b instanceof BA)return b;f=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",Mb:b,Vb:d,Zb:a},{slotId:l,layoutId:m});l=f.pZ;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Mb:b,Vb:d,Zb:a,Xa:"core",Aa:new kY([new tZ(f.YZ)]),
adSlotLoggingData:e},l]};
AUa=function(a,b,c,d,e){e=e?e:hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER");c=new V_(a.j,c);var f=[new Z_(a.j,e)];a=[new s_(a.j,b),new $_(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mb:c,Vb:f,Zb:a,Xa:"core",Aa:new kY([new tZ(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Mb:c,Vb:f,Zb:a}))])}};
BUa=function(a,b,c,d){var e=hA(a.Va.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new V_(a.j,c);var f=[new Z_(a.j,e)];a=[new s_(a.j,b),new $_(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Mb:c,Vb:f,Zb:a,Xa:"core",Aa:new kY([new tZ(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Xa:"core",Mb:c,Vb:f,Zb:a}))])}};
TTa=function(a,b,c,d,e,f,h){var l=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER"),m=iA(a.Va.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=CUa(a,d,f,h,m);if(d instanceof BA)return d;h=[new Z_(a.j,l)];e=[new s_(a.j,f),new Z_(a.j,e),new d0(a.j,e)];c=rY(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Mb:d,Vb:h,Zb:e});a=a.jb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xa:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Rb:new Map,xd:[new O_(a.j,m,
b.durationMs)],Tc:[new Q_(a.j,m,b.durationMs)],Yc:[new P_(a.j,m)],Pc:[],Uc:[],Xa:"core",Aa:new kY([new AZ(b)]),vc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Mb:d,Vb:h,Zb:e,Aa:new kY([new tZ(b)])}};
KTa=function(a,b,c,d,e,f){b=f0(a,b,c,d);if(b instanceof BA)return b;var h=b instanceof I_?new X_(a.j,c,b.El):null;d=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER");var l=[new Z_(a.j,d)];a=[new s_(a.j,c),new $_(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Mb:b,Vb:l,Zb:a},h);return f instanceof MZ?new BA(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mb:b,Vb:l,Zb:a,Xa:"core",Aa:new kY([new tZ(f)]),adSlotLoggingData:e}};
tTa=function(a,b,c,d){var e=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER");c=new V_(a.j,c);var f=[new Z_(a.j,e)],h=[new $_(a.j,e),new s_(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Mb:c,Vb:f,Zb:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mb:c,Vb:[new Z_(a.j,e)],Zb:[new s_(a.j,b),new $_(a.j,e)],Xa:"core",Aa:new kY([new tZ(d(f))])}};
rTa=function(a,b,c,d,e){var f=hA(a.Va.get(),"SLOT_TYPE_IN_PLAYER");c=new U_(a.j,d,c);d=[new Z_(a.j,f)];a=[new s_(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mb:c,Vb:d,Zb:a,Xa:"core",Aa:new kY([new tZ(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",Mb:c,Vb:d,Zb:a}))])}};
j_=function(a,b,c,d,e,f){var h=hA(a.Va.get(),b);return g0(a,h,b,new V_(a.j,d),c,e,d,f)};
gTa=function(a,b,c,d,e,f,h){var l=hA(a.Va.get(),b);return g0(a,l,b,new x_(a.j,e,["normal"]),c,f,d,h)};
GTa=function(a,b,c,d){var e=hA(a.Va.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new bA(a.j,b);var f=[new Z_(a.j,e)];a=[new $_(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Mb:b,Vb:f,Zb:a,Xa:"core",Aa:new kY([new tZ(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Xa:"core",Mb:b,Vb:f,Zb:a}))]),adSlotLoggingData:c}};
hTa=function(a,b,c,d,e,f,h){return g0(a,c,b,new Y_(a.j,c),d,f,e,h)};
BTa=function(a,b,c){var d=hA(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new wUa(a.j),f=[new c0(a.j,d)];a=[new s_(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Mb:e,Vb:f,Zb:a,Xa:"core",Aa:new kY([new tZ(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",Mb:e,Vb:f,Zb:a})),new pZ({})])}};
fUa=function(a,b){return D_(a.Da.get())?new x_(a.j,b,["normal","error","skipped"]):new x_(a.j,b,["normal"])};
XTa=function(a,b,c,d,e){b=fUa(a,b);a=A_(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Mb:a.Mb,Vb:a.Vb,Zb:a.Zb,Xa:a.Xa});return e instanceof BA?e:{kt:Object.assign({},a,{Aa:new kY([new tZ(e.layout)]),adSlotLoggingData:d}),Uh:e.Uh}};
YTa=function(a,b,c,d,e,f,h){a=gUa(a,b,c,d);if(a instanceof BA)return a;h=h({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Mb:a.Mb,Vb:a.Vb,Zb:a.Zb,Xa:a.Xa});if(h instanceof BA)return h;b=[new tZ(h.layout)];f&&b.push(new CZ({}));return{kt:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Mb:a.Mb,Vb:a.Vb,Zb:a.Zb,Xa:a.Xa,Aa:new kY(b),adSlotLoggingData:e},Uh:h.Uh}};
A_=function(a,b,c){var d=hA(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new Z_(a.j,d)];a=[new $_(a.j,d),new s_(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Mb:b,Vb:e,Zb:a,Xa:"core"}};
gUa=function(a,b,c,d){b=f0(a,b,c,d);return b instanceof BA?b:A_(a,b,c)};
ITa=function(a,b,c,d,e,f){var h=hA(a.Va.get(),"SLOT_TYPE_FORECASTING");b=f0(a,b,c,d);if(b instanceof BA)return b;d=[new Z_(a.j,h)];a=[new $_(a.j,h),new s_(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Mb:b,Vb:d,Zb:a,Xa:"core",Aa:new kY([new tZ(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Xa:"core",Mb:b,Vb:d,Zb:a}))]),adSlotLoggingData:e}};
DUa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new bA(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=dva(b,d),a instanceof BA?a:e(a.dn,f);case "AD_PLACEMENT_KIND_END":return new T_(a.j,c,f);default:return new BA("Cannot construct entry trigger",{kind:b.kind})}};
CUa=function(a,b,c,d,e){return DUa(a,b,c,d,function(f,h){return new W_(a.j,c,f,h,e)})};
f0=function(a,b,c,d){return DUa(a,b,c,d,function(e,f){return new I_(a.j,c,e,f)})};
g0=function(a,b,c,d,e,f,h,l){var m=[new c0(a.j,b)];a=[new s_(a.j,e),new $_(a.j,b),new x_(a.j,h,["error"])];return{slotId:b,slotType:c,slotPhysicalPosition:1,Mb:d,Vb:m,Zb:a,Xa:"core",Aa:new kY([new tZ(l({slotId:b,slotType:c,slotPhysicalPosition:1,Xa:"core",Mb:d,Vb:m,Zb:a}))]),adSlotLoggingData:f}};
h0=function(a,b){g.K.call(this);this.Da=a;this.j=b;this.eventCount=0};
KJ=function(a,b,c){H_(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
LZ=function(a,b,c,d){H_(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
OSa=function(a,b,c,d){i0(a.Da.get(),"html5_log_trigger_events_with_debug_data")&&!qY(a.j.get())||H_(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)};
H_=function(a,b,c,d,e,f,h,l,m,n){try{if(a.u()&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){i0(a.Da.get(),"h5_debug_empty_pacf_event")&&(b||eA("Empty PACF event type",f,h));var p=qY(a.j.get()),q=EUa(a,p,b,c,d,e,f,h,l,m,n);FUa(a,q)}}catch(v){i0(a.Da.get(),"html5_log_pacf_logging_errors")&&g.Cv(g.Ev(),function(){eA(v instanceof Error?v:String(v),f,h,{pacf_message:"exception during pacf logging"})})}};
EUa=function(a,b,c,d,e,f,h,l,m,n,p){c={eventType:c,eventOrder:++a.eventCount};var q={};h&&(q.slotData=oY(b,h));l&&(q.layoutData=DSa(b,l));m&&(q.triggerData=nY(m.trigger,m.category));d&&(q.opportunityData=ESa(b,d,e,f));b={organicPlaybackContext:{contentCpn:a.Qa.get().Gf(1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=a.Qa.get().Gf(1).nf;var v;b.organicPlaybackContext.isMdxPlayback=null==(v=a.Qa.get().Gf(1))?void 0:v.isMdxPlayback;var w;if(a=null==(w=a.Qa.get().Gf(2))?void 0:w.clientPlaybackNonce)b.adVideoPlaybackContext=
{adVideoCpn:a};b&&(q.externalContext=b);c.adClientData=q;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);p&&(c.serializedAdServingData=p.serializedAdServingDataEntry);return c};
FUa=function(a,b){b={adsClientEvent:b};i0(a.Da.get(),"tvh5_pacf_disable_gel_log_action")||g.Mv("adsClientStateChange",b)};
j0=function(a,b,c){h0.call(this,a,b);this.Da=a;this.Qa=c};
k0=function(){this.j=new Map};
l0=function(a,b,c,d,e){g.K.call(this);this.G=a;this.u=b;this.Ba=c;this.Qa=d;this.Ie=e;this.listeners=[];var f=new $y(this);g.M(this,f);f.P(a,"internalAbandon",this.zJ);g.cf(this,function(){g.bz(f)})};
m0=function(a){g.K.call(this);this.G=a;this.j=new Map;this.u=new $y(this);g.M(this,this.u);this.u.P(this.G,g.uA("ad"),this.onCueRangeEnter,this);this.u.P(this.G,g.vA("ad"),this.onCueRangeExit,this)};
HUa=function(a,b){(b=a.j.get(b))&&GUa(a,b)};
GUa=function(a,b){a.G.eh([b.Od],b.Fl);a.j.delete(b.Od.id)};
IUa=function(a,b,c,d,e){g.sA.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
n0=function(a){this.G=a};
o0=function(a){this.G=a;this.j=Math.random()<g.TE(this.G.R().experiments,"tv_pacf_logging_sample_rate")};
i0=function(a,b){return a.G.R().K(b)};
p0=function(a){var b,c,d;return(null==(b=a.G.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
JUa=function(a){return a.G.R().K("html5_enable_vod_lasr_with_notify_pacf")};
D_=function(a){return a.G.R().K("html5_enable_vod_slar_with_notify_pacf")};
MSa=function(a){if(g.nG(a.G.R()))return a.G.R().K("html5_enable_vod_lsar_ivar_pacf_unplugged");if(bG(a.G.R())||g.cG(a.G.R()))return!0;eA("Composite VOD on legacy path.");return!1};
KUa=function(a){return a.G.R().K("html5_recognize_predict_start_cue_point")};
q0=function(a){return a.G.R().K("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
LUa=function(a){return a.G.R().experiments.fb("enable_desktop_player_underlay")};
r0=function(a,b){this.Ba=a;this.G=b;this.j=new Map;KI().subscribe("adactiveviewmeasurable",this.Iz,this);KI().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Hz,this);KI().subscribe("adviewableimpression",this.Jz,this);KI().subscribe("adaudioaudible",this.Fz,this);KI().subscribe("adaudiomeasurable",this.Gz,this)};
t0=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?eA("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),Qn(Rk(On),c),VBa(KI(),b,{Iy:function(){return d?{currentTime:a.Ba.get().getCurrentTimeSec(2,!1),duration:d,Oc:2===a.Ba.get().getPresentingPlayerType()&&1===s0(a.Ba.get(),2),S2a:!1,T2a:!0,volume:a.Ba.get().isMuted()?0:a.Ba.get().getVolume()/100}:{}}}))};
u0=function(a,b){a.j.has(b)?(a.j.delete(b),delete KI().j[b]):eA("Unexpected unregistration of layout in LidarApi")};
v0=function(a,b){this.B=a;this.C=b};
w0=function(a,b,c,d){var e=void 0===e?new v0(function(){var f=a.getVideoData(1);return g.wG(f?g.uI(f):"")},function(){return a.R().pageId}):e;
this.G=a;this.u=b;this.Db=c;this.Qa=d;this.wr=e;this.xE=null;this.j=new Map;this.jk=new eJ(e)};
z0=function(a,b,c,d,e){d=void 0===d?[]:d;var f=L_(a.u.get(),c);f?(c=x0(a,y0(f),f,void 0,e),b.hasOwnProperty("baseUrl")?a.wr.send(b,c):a.jk.send(b,c,{},d)):eA("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
A0=function(a,b){g.Mv("adsClientStateChange",b)};
B0=function(a,b){a.j.has(b.Hv())?eA("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Hv(),b)};
C0=function(a,b){a.j.delete(b.Hv())||eA("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
y0=function(a){var b=lY(a.Aa,"metadata_type_ad_placement_config");a=lY(a.Aa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,mQ:a}};
x0=function(a,b,c,d,e){var f=c?MUa(a):{};c=c?NUa(a,c.layoutId):{};var h=a.G.R().K("enable_macro_substitution_on_html5")?OUa(a):{},l={},m={};f=Object.assign({},$I(a.G,d),cCa(b.adPlacementConfig),(l.SLOT_POS=ZI(function(){return(b.mQ||0).toString()}),l),c,f,h,(m.FINAL=ZI(function(){return"1"}),m.AD_CPN=ZI(function(){var n;
return(null==(n=a.Qa.get().Gf(2))?void 0:n.clientPlaybackNonce)||""}),m));
d={};!e||null==f.ERRORCODE&&null==e.ERRORCODE||g.rz(new g.Rv("The ERRORCODE macro has been set at the rendering surface or logging surface.",{"ERRORCODE from RS":String(e.ERRORCODE),"ERRORCODE from LS":String(f.ERRORCODE)}));e=Object.assign({},f,e);f=g.r(Object.values(PUa));for(c=f.next();!c.done;c=f.next())c=c.value,h=e[c],null!=h&&null!=h.toString()&&(d[c]=h.toString());return d};
MUa=function(a){var b={},c,d=null==(c=a.xE)?void 0:c.Ql/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=ZI(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=ZI(function(){return Math.round(Date.now()/1E3).toString()});
return b};
NUa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.EH();if(!a)return{};b={};return b.YT_ERROR_CODE=a.OE.toString(),b.ERRORCODE=a.MA.toString(),b.ERROR_MSG=a.errorMessage,b};
OUa=function(a){var b={},c=a.G.getVideoData(1);b.ASR=ZI(function(){var d;return null!=(d=null==c?void 0:c.Ok)?d:null});
b.EI=ZI(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
D0=function(a,b,c){g.K.call(this);this.G=a;this.zd=b;this.Da=c;this.listeners=[];this.NI=null;this.qG=new Map;b=new g.YD(this);g.M(this,b);b.P(a,"videodatachange",this.L2);b.P(a,"serverstitchedvideochange",this.b2);this.Pr=this.Gf()};
RUa=function(a,b,c){var d=QUa(a,b,c);a.Pr=d;a.listeners.forEach(function(e){e.fR(d)})};
QUa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Dc,l=b.title,m=b.Ah,n=b.Wh,p=b.isMdxPlayback,q=b.Ej,v=b.mdxEnvironment,w=b.Vm,y=b.Dt,A=b.cn,B=b.Dr,E=b.videoId||"",G=b.profilePicture||"",H=b.Ek||"";b=b.Kn||void 0;h=a.zd.get().j.get(h)||{layoutId:null,slotId:null};var I=a.G.getVideoData(1),O=I.nf();I=I.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);var L,P,S=(null==I?void 0:null==(L=I.playerConfig)?void 0:null==(P=L.daiConfig)?void 0:P.enableDai)||
!1,ca,R;L=(null==I?void 0:null==(ca=I.playerConfig)?void 0:null==(R=ca.daiConfig)?void 0:R.enablePreroll)||!1;return Object.assign({},h,{videoId:E,author:d,clientPlaybackNonce:e,playbackDurationMs:c,iO:a,daiEnabled:S,rO:L,isListed:f,nf:O,profilePicture:G,title:l,Ek:H,Ah:m,Wh:n,Kn:b,isMdxPlayback:p,Ej:q,mdxEnvironment:v,Vm:w,Dt:y,cn:A,Dr:B})};
E0=function(a,b,c){g.K.call(this);this.G=a;this.Qa=b;this.Da=c;this.listeners=[];this.RB=[];this.Sr=function(){eA("Called 'doUnlockPreroll' before it's initialized.")};
b=new $y(this);c=new g.YD(this);g.M(this,c);g.M(this,b);b.P(a,"progresssync",this.D1);b.P(a,"presentingplayerstatechange",this.s1);b.P(a,"fullscreentoggled",this.onFullscreenToggled);b.P(a,"onVolumeChange",this.onVolumeChange);b.P(a,"minimized",this.Ug);b.P(a,"resize",this.xb);c.P(a,g.uA("appad"),this.dk)};
SUa=function(a,b){a.RB=a.RB.filter(function(c){return c!==b})};
F0=function(a,b){var c;b=null!=(c=a.Qa.get().qG.get(b))?c:null;if(null===b)return eA("Expected ad video start time on playback timeline"),0;a=a.G.getCurrentTime(2,!0);return a<b?0:a-b};
s0=function(a,b){return a.G.zb(b)};
TUa=function(a){var b=a.G.Za().Ji();a=a.G.Sj(!0,!0);return b.height-(a.height+a.top)};
UUa=function(a){a.G.cueVideoByPlayerVars({videoId:"empty_video"},2)};
VUa=function(a,b){var c=a.G.R();RF(c)||"3"!==c.controlsType||a.G.Za().oA(b)};
G0=function(a,b){g.ho(a.G.getRootNode(),b)};
H0=function(a,b){g.jo(a.G.getRootNode(),b)};
WUa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Va=Y(function(){return new gA});
g.M(this,this.Va);this.jb=Y(function(){return new R_(f.Va)});
g.M(this,this.jb);this.Cc=Y(function(){return new K_});
g.M(this,this.Cc);this.Qb=Y(function(){return new G_(a)});
g.M(this,this.Qb);this.Ab=Y(function(){return new e0(f.Va,f.jb,f.Da)});
g.M(this,this.Ab);this.zd=Y(function(){return new k0});
g.M(this,this.zd);this.Hb=Y(function(){return new e_(e)});
this.Tb=Y(function(){return new m0(b)});
g.M(this,this.Tb);this.fd=Y(function(){return new n0(b)});
g.M(this,this.fd);this.Da=Y(function(){return new o0(b)});
g.M(this,this.Da);this.vb=Y(function(){return new sY(f.Da)});
g.M(this,this.vb);this.Hd=Y(function(){return new C_(f.Va,f.Ab,f.jb,f.Da,f.vb,null,null)});
g.M(this,this.Hd);this.Qa=Y(function(){return new D0(b,f.zd,f.Da)});
g.M(this,this.Qa);this.dc=new j0(this.Da,this.vb,this.Qa);g.M(this,this.dc);this.Ba=Y(function(){return new E0(b,f.Qa,f.Da)});
g.M(this,this.Ba);this.Db=Y(function(){return new r0(f.Ba,b)});
g.M(this,this.Db);this.Pa=Y(function(){return new w0(b,f.Cc,f.Db,f.Qa)});
g.M(this,this.Pa);this.Gc=new fA(this.Qb,this.Hd,c,this.Da,a,this.Qa,this.Ba);g.M(this,this.Gc);var h=new l0(b,this.Gc,this.Ba,this.Qa);this.uf=Y(function(){return h});
this.lq=h;this.Ge=new J_(this.Qb,this.Ab,this.Tb,this.uf);g.M(this,this.Ge);this.Hc=new Yz(this.Qb,this.Ab,this.Hd,this.Qa,this.Ge,c);g.M(this,this.Hc);this.Ee={Xs:new Map,Sn:new Map,Cj:new Map,Qo:new Map,xo:new Map};this.listeners=[];this.Ks={Hc:this.Hc,lm:null,Ao:null,oh:this.Da.get(),Wa:this.Hb.get(),wq:this.Ba.get(),Gc:this.Gc,il:this.Va.get(),zo:null,Zj:{fI:function(){}},
Mi:this.Cc.get(),xl:this.Qa.get()}};
I0=function(){this.listeners=new Set};
J0=function(){};
XUa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Bga(b.siub,b.scs,b.bgub,b.bgp)};
YUa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.jb=c;this.vb=d;this.Da=e;this.j=null};
ZUa=function(a,b,c,d){a.j&&eA("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.Rw?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.jb.get(),l=a.slot.slotId,m=rY(a.vb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Xa:a.slot.Xa,Mb:a.slot.Mb,Vb:a.slot.Vb,Zb:a.slot.Zb}),n=iA(h.Va.get(),f,l),p={layoutId:n,layoutType:f,Xa:"core"};e={layoutId:n,
layoutType:f,Rb:new Map,xd:[new rUa(h.j,l)],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"core",Aa:new kY([new vZ(e)]),vc:m(p)};NSa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Mh||IZ(a.callback,a.slot,new BA(e,void 0,!0))});
i0(a.Da.get(),"fetch_bid_for_dclk_status")&&dA("abr fetch")};
$Ua=function(a){if(null==a.j)a.callback.zD(a.slot);else try{a.j.cancel(),a.j=null,a.callback.zD(a.slot)}catch(b){a.j=null,IZ(a.callback,a.slot,new BA(b))}};
K0=function(a,b,c,d,e,f,h){this.slot=b;this.Qe=c;this.De=h;this.j=new YUa(a,b,d,e,f)};
aVa=function(a){var b;null==(b=a.De)||b.get().rq(lY(a.slot.Aa,"metadata_type_cue_point").identifier)};
L0=function(a,b,c,d,e,f){this.slot=b;this.Qe=c;this.j=new YUa(a,b,d,e,f)};
M0=function(a,b){this.callback=a;this.slot=b};
N0=function(a,b){return aA(a,b.me,b.slotType)?!0:!1};
O0=function(){};
P0=function(a,b,c,d,e){this.Qe=a;this.jb=b;this.vb=c;this.Da=d;this.De=e};
Q0=function(){};
bVa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
R0=function(a,b){return CJ(a,b.me,b.yf)?!0:!1};
S0=function(a){this.j=a};
T0=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Pa=b;this.layoutId=d;this.C=0;this.D=null;this.j=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,mQ:e}};
U0=function(){return["metadata_type_ad_placement_config"]};
V0=function(a){var b=a.Pa.get();return x0(b,a.I)};
W0=function(a,b,c){c=void 0===c?!1:c;if(!a.j.has(b)){var d=c&&PI(b);d&&(c=!a.j.has(d));a.Mf(b,c)}};
Y0=function(a,b,c){for(c=void 0===c?!1:c;a.C<a.u.length;){var d=a.u[a.C];if(d.offsetMilliseconds<=b||c)X0(a,"progress",[d]),a.C++;else break}};
Z0=function(a,b){return a.j.has(b)};
cVa=function(a){return a.u.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
X0=function(a,b,c){var d,e=a.Pa.get(),f=a.layoutId;a=null!=(d=a.D)?d:void 0;c=void 0===c?[]:c;if(d=L_(e.u.get(),f))for(b=e.Db.get().Mf(f,b),f=x0(e,y0(d),d,a),c=g.r(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.jk.send(d.baseUrl,f,b,d.headers);else eA("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
dVa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Pa=d;this.j=e;a=lY(this.layout.Aa,"metadata_type_ad_placement_config");this.u=new T0(c.Rb,this.Pa,a,c.layoutId)};
eVa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];U0().forEach(function(b){a.push(b)});
return{me:a,yf:["LAYOUT_TYPE_FORECASTING"]}};
$0=function(a,b,c){this.Pa=a;this.j=b;this.Db=c};
fVa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
a1=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.eg(a.slot,b,new MZ("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType))):c()};
b1=function(a,b,c,d){g.cz.call(this);this.callback=a;this.B=d;this.j=[];this.u=new fVa(a,b,c)};
c1=function(a,b,c,d,e,f,h){e=lY(c.Aa,e);a=V0(a);var l=ag(function(){d.Kc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.vc},function(){l()}))};
d1=function(a,b,c,d,e,f,h,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.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():eA("Tried to call engagePingCallback but it is null",h,l)}}else eA("Companion AdUxClick received without a layoutId",h,l)};
gVa=function(a,b,c,d,e){GI.call(this,"action-companion",a,b,c,d,e)};
e1=function(a,b,c,d,e,f,h,l){b1.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.lj=!0;this.C=null;this.D=lY(c.Aa,"metadata_type_linked_player_bytes_layout_id");this.gf().Md.add(this);a=lY(c.Aa,"metadata_type_ad_placement_config");this.I=new T0(c.Rb,this.Pa,a,c.layoutId)};
hVa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];U0().forEach(function(b){a.push(b)});
return{me:a,yf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
f1=function(a,b,c,d,e){b1.call(this,a,b,c,d);a=lY(c.Aa,"metadata_type_ad_placement_config");this.C=new T0(c.Rb,e,a,c.layoutId)};
iVa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];U0().forEach(function(b){a.push(b)});
return{me:a,yf:["LAYOUT_TYPE_ENDCAP"]}};
g1=function(a,b,c,d,e,f,h,l){b1.call(this,a,b,c,d);this.Ba=e;this.Pa=f;this.I=h;this.D=l;this.C=!1;this.J=lY(this.layout.Aa,"metadata_type_linked_player_bytes_layout_id")};
jVa=function(){return{me:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],yf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
h1=function(a,b,c,d,e,f,h,l){return R0(c,jVa())?new g1(a,b,c,d,e,f,h,l):R0(c,iVa())?new f1(a,b,c,d,f):null};
i1=function(a,b,c,d,e){this.Xb=a;this.Ba=b;this.Pa=c;this.u=d;this.j=e};
j1=function(a,b,c,d,e,f){g.K.call(this);this.callback=a;this.oe=b;this.Ba=c;this.Nd=d;this.gf=e;this.Da=f;this.lj=!0;this.mI=!1};
k1=function(a,b,c,d,e,f,h,l,m,n){j1.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.u=[];this.j=-1;this.C=!1};
lVa=function(a,b,c){var d=a.u[a.j];if(c.layoutId!==l1(d,b,c))eA("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Xc(),d.yb(),{requestingSlot:b,requestingLayout:c});else{var e=lY(d.yb().Aa,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.u.length){for(var f=e;f<a.u.length;){if(e===lY(a.u[f].yb().Aa,"metadata_type_ad_pod_skip_index")){kVa(a,d.Xc(),d.yb(),f);return}f++}eA("Skip-to-index was requested but target index was not found",d.Xc(),d.yb(),{requestingSlot:b,
requestingLayout:c})}else eA("Invalid ad pod skip target index",d.Xc(),d.yb(),{requestingSlot:b,requestingLayout:c})}};
l1=function(a,b,c){var d=lY(a.yb().Aa,"metadata_type_linked_in_player_layout_id");return d?d:(eA("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Xc(),a.yb(),{requestingSlot:b,requestingLayout:c}),null)};
n1=function(a,b,c,d){mVa(a,b,c,d,function(){m1(a,a.j+1)})};
kVa=function(a,b,c,d){mVa(a,b,c,"skipped",function(){m1(a,d)})};
mVa=function(a,b,c,d,e){if(!a.C){var f=a.u[a.j];f?(f.yb().layoutId!==c.layoutId&&eA("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.yb().layoutId}),a.C=!0,f.Yf(f.yb(),d),GJ(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.Nd.get().Ow()):e()):eA("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
m1=function(a,b){if(a.j===a.u.length-1)a.j++,o1(a.I,a.layout.layoutId),a.Nd.get().Ow();else{if(-1===a.j&&(a.callback.Kc(a.slot,a.layout),0<b)){eA("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;b=a.u[a.j];0<a.j&&a.Nd.get().QK();b.startRendering(b.yb())}};
p1=function(a){return!a.jq.Oc()&&a.state.Oc()};
q1=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
nVa=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)};
oVa=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))};
pVa=function(a,b,c,d){this.Hb=a;this.layoutId=c;this.D=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":nVa(b)?this.u.push(b):eA("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":oVa(b)?this.j.push(b):eA("Invalid AdVideoProgressMillisecondsCommand");break;default:eA("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)})};
s1=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w){g.K.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Pa=d;this.Db=e;this.Ba=f;this.Nd=h;this.df=l;this.Hb=m;this.D=n;this.position=q;this.Y=v;this.Da=w;this.lj=!0;this.W=!1;this.j="not_rendering";this.C=!1;a=lY(this.layout.Aa,"metadata_type_ad_placement_config");this.u=new T0(c.Rb,this.Pa,a,c.layoutId);var A;a=(null==(A=r1(this))?void 0:A.progressCommands)||[];this.qa=new pVa(m,a,c.layoutId,function(){return y.Gv()});
this.V=ag(function(){y.callback.Kc(y.slot,y.layout)});
this.J=ag(function(){"rendering_stop_requested"!==y.j&&p(y);y.N?y.callback.hd(y.slot,y.layout,y.N):eA("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
r1=function(a){return lY(a.layout.Aa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
u1=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.j){Y0(a.u,1E3*b,c);a.C||Y0(a.u,1E3*b,void 0===c?!1:c);var d=a.Gv();if(d&&(d/=1E3,(b>=.25*d||c)&&t1(a,"first_quartile"),(b>=.5*d||c)&&t1(a,"midpoint"),(b>=.75*d||c)&&t1(a,"third_quartile"),a=a.qa,b*=1E3,c=a.D())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Hb.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.Hb.get().executeCommand(c.command,
a.layoutId),a.B++;else break}}};
t1=function(a,b){i0(a.Da.get(),"av_call_once_per_event_pair")?W0(a.u,b,!a.C):(W0(a.u,b),a.C||(b=PI(b))&&W0(a.u,b))};
v1=function(a,b){if(i0(a.Da.get(),"av_call_every_user_event")){var c=a.u;a=!a.C;a=void 0===a?!1:a;c.j.has(b)?X0(c,b,[]):W0(c,b,a)}else t1(a,b)};
w1=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y){s1.call(this,a,b,c,d,e,f,h,m,n,p,q,v,w,y);var A=this;this.fd=l;this.UC=!0;this.B=this.Ql=0;this.timer=new g.Oh(200);this.timer.Na("tick",function(){A.Wb()});
g.M(this,this.timer)};
qVa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(U0()),c=b.next();!c.done;c=b.next())a.push(c.value);return{me:a,yf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
rVa=function(a){a.B=Date.now();x1(a,a.Ql);a.timer.start()};
x1=function(a,b){b={current:b/1E3,duration:a.Gv()/1E3};a.fd.get().Ka("onAdPlaybackProgress",b)};
y1=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y,A,B,E,G,H){s1.call(this,a,b,c,d,e,m,p,v,w,A,B,E,G,H);var I=this;this.ue=f;this.oe=h;this.Qa=l;this.Tb=n;this.fd=q;this.qf=y;this.adCpn="";this.I=new g.Zn(function(){I.Cz("load_timeout",new MZ("Media layout load timeout.",{},!0))},1E4)};
sVa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(U0()),c=b.next();!c.done;c=b.next())a.push(c.value);return{me:a,yf:["LAYOUT_TYPE_MEDIA"]}};
z1=function(a,b,c,d,e,f,h){j1.call(this,a,b,c,d,f,h);this.j=e};
uVa=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y,A,B,E,G){if(R0(d,{me:["metadata_type_sub_layouts"],yf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var H=lY(d.Aa,"metadata_type_sub_layouts");a=new k1(a,n,q,w,b,c,d,f,e,G);e=[];for(b={Mq:0};b.Mq<H.length;b={Mq:b.Mq},b.Mq++){var I=tVa({Kc:a.s2.bind(a),hd:a.u2.bind(a),eg:a.t2.bind(a)},c,H[b.Mq],h,l,m,n,p,q,v,w,y,A,B,E,function(O){return function(L){L.Yf(H[O.Mq],"normal")}}(b),b.Mq,H.length,G);
if(!I)return;e.push(I)}a.u=e;return a}if(R0(d,{me:[],yf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=tVa({Kc:a.Kc.bind(a),hd:a.hd.bind(a),eg:a.eg.bind(a)},c,d,h,l,m,n,p,q,v,w,y,A,B,E,function(){o1(f,d.layoutId)},0,1,G))?new z1(a,n,q,w,c,e,G):c};
tVa=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y,A,B,E,G){if(R0(c,qVa()))return new w1(a,b,c,d,e,m,p,q,v,w,function(){},A,B,E,G);
if(R0(c,sVa()))return $z(c.Aa,"metadata_type_ad_intro")?new y1(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y,function(H){q.get().Ka("onAdIntroStateChange",H)},A,B,E,G):new y1(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y,function(H){q.get().lk(H)},A,B,E,G)};
A1=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y){this.gf=a;this.j=b;this.Pa=c;this.Db=d;this.ue=e;this.oe=f;this.Qa=h;this.Ba=l;this.Tb=m;this.Nd=n;this.fd=p;this.df=q;this.Hb=v;this.qf=w;this.Da=y};
B1=function(a,b,c,d,e,f,h,l){g.K.call(this);var m=this;this.Qb=a;this.Ab=b;this.Ie=d;this.Ba=e;this.Da=f;this.Pa=h;this.De=l;this.j=null;c.get().addListener(this);g.cf(this,function(){c.get().removeListener(m)});
d.get().addListener(this);g.cf(this,function(){d.get().removeListener(m)})};
pUa=function(a,b){if(a.j)eA("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.r(a.Ie.get().FE);for(var c=b.next();!c.done;c=b.next())vVa(a,a.j,c.value)}};
vVa=function(a,b,c){var d=a.Ba.get().getCurrentTimeSec(1,!1);a.Da.get().G.R().experiments.fb("html5_ssdai_log_ad_transition_info")&&a.Pa.get().Qh("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.durationSecs.toFixed(3));Zz(a.Qb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Ab.get(),f=p0(a.Da.get());var h=1E3*c.startSecs;h={dn:new zo(h,h+1E3*c.durationSecs),UD:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new zo(1E3*(c.startSecs-4),1E3*l);else{var m=
Math.max(0,c.startSecs-d-10);f=new zo(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.yv=f;return[cTa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new iZ(c)])]})};
C1=function(a,b,c,d,e,f,h,l,m){g.K.call(this);this.j=a;this.B=b;this.u=c;this.Qb=d;this.Ab=e;this.jb=f;this.vb=h;this.Da=l;this.Qa=m;this.lj=!0};
wVa=function(a,b,c){return BUa(a.Ab.get(),b.contentCpn,b.Tw,function(d){return uUa(a.jb.get(),d.slotId,c,b.adPlacementConfig,b.Tw,rY(a.vb.get(),d))})};
D1=function(a){var b,c=null==(b=lY(a.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=lY(a.Aa,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=lY(a.Aa,"metadata_type_content_cpn"),f=lY(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),h=lY(a.Aa,"metadata_type_player_underlay_renderer"),l=lY(a.Aa,"metadata_type_ad_placement_config"),m=lY(a.Aa,"metadata_type_video_length_seconds");var n=$z(a.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?
lY(a.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):$z(a.Aa,"metadata_type_layout_enter_ms")&&$z(a.Aa,"metadata_type_layout_exit_ms")?(lY(a.Aa,"metadata_type_layout_exit_ms")-lY(a.Aa,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Tw:d,contentCpn:e,DR:c,CN:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,WI:n,nI:lY(a.Aa,"metadata_type_linked_in_player_layout_id"),BP:lY(a.Aa,"metadata_type_linked_in_player_slot_id")}};
yVa=function(a,b){return xVa(a,b)};
zVa=function(a,b){b=xVa(a,b);if(!b)return null;var c;b.WI=null==(c=lY(a.Aa,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
xVa=function(a,b){var c,d=null==(c=lY(a.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;$z(a.Aa,"metadata_ad_video_is_listed")?c=lY(a.Aa,"metadata_ad_video_is_listed"):b?c=b.isListed:(eA("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);$z(a.Aa,"metadata_type_ad_info_ad_metadata")?b=lY(a.Aa,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Ek,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(eA("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{LW:b,adPlacementConfig:lY(a.Aa,"metadata_type_ad_placement_config"),NW:c,contentCpn:lY(a.Aa,"metadata_type_content_cpn"),nI:lY(a.Aa,"metadata_type_linked_in_player_layout_id"),BP:lY(a.Aa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:lY(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,WI:void 0,DR:d,Tw:a.layoutId,videoLengthSeconds:lY(a.Aa,"metadata_type_video_length_seconds")}};
AVa=function(a,b){this.callback=a;this.slot=b};
E1=function(){};
BVa=function(a,b,c){this.callback=a;this.slot=b;this.Ba=c};
CVa=function(a,b,c){this.callback=a;this.slot=b;this.Ba=c;this.u=!1;this.j=0};
DVa=function(a,b,c){this.callback=a;this.slot=b;this.Ba=c};
F1=function(a){this.Ba=a};
G1=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
H1=function(a){g.K.call(this);this.MF=a;this.Lb=new Map};
EVa=function(a,b){for(var c=[],d=g.r(a.Lb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof q_&&f.Df===b&&c.push(e)}c.length?TZ(a.MF(),c):eA("Survey is submitted but no registered triggers can be activated.")};
I1=function(a,b){H1.call(this,a);var c=this;b.get().addListener(this);g.cf(this,function(){b.get().removeListener(c)})};
J1=function(a){g.K.call(this);this.j=a;this.lj=!0;this.Lb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
K1=function(a,b){g.K.call(this);var c=this;this.j=a;this.Lb=new Map;b.get().addListener(this);g.cf(this,function(){b.get().removeListener(c)})};
FVa=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 s_){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(eA("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
L1=function(a){return a instanceof O_||a instanceof Q_||a instanceof P_};
M1=function(a,b,c,d){g.K.call(this);var e=this;this.u=a;this.Tb=b;this.Ba=c;this.Qa=d;this.lj=!0;this.Lb=new Map;this.j=new Set;c.get().addListener(this);g.cf(this,function(){c.get().removeListener(e)})};
N1=function(a,b,c,d,e,f,h,l,m,n){if(a.Qa.get().Gf(1).clientPlaybackNonce!==m)throw new BA("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Lb.set(c.triggerId,{bundle:new G1(b,c,d,e),Or:f});a.Tb.get().addCueRange(f,h,l,n,a)};
GVa=function(a,b){a=g.r(a.Lb.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.Or)return c}return""};
O1=function(a){g.K.call(this);this.B=a;this.lj=!0;this.Lb=new Map;this.u=this.j=null};
o1=function(a,b){for(var c=[],d=g.r(a.Lb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof t_){var f;if(f=e.trigger.layoutId===b)f=(f=PSa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&TZ(a.B(),c)};
P1=function(a){g.K.call(this);this.j=a;this.lj=!0;this.Lb=new Map};
Q1=function(a,b,c){g.K.call(this);this.j=a;this.Xm=b;this.Va=c;this.Xm.get().addListener(this)};
R1=function(a,b,c,d,e,f){g.K.call(this);this.B=a;this.Be=b;this.vb=c;this.Qa=d;this.Va=e;this.Da=f;this.j=this.u=null;this.C=!1;this.Be.get().addListener(this)};
CCa=function(a,b,c,d,e){var f=hA(a.Va.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Mb:void 0,Vb:[],Zb:[],Xa:"surface",Aa:new kY([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Rb:new Map,xd:[],Tc:[],Pc:[],Uc:[],Yc:[],Xa:"surface",Aa:new kY(c),vc:pY(qY(a.vb.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};QZ(a.B(),a.u,a.j);d&&(RZ(a.B(),a.u,a.j),a.C=!0,SZ(a.B(),a.u,a.j))};
S1=function(a){this.lr=a};
HVa=function(a,b){if(!a)return{In:[],Rw:!0,ssdaiAdsConfig:void 0};a.trackingParams&&mDa(pK(),a.trackingParams);if(a.adThrottled)return{In:[],Rw:!0,ssdaiAdsConfig:void 0};var c=a.playerAds;if(!c||!c.length)return{In:[],Rw:!1,ssdaiAdsConfig:void 0};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{In:[],Rw:!1,ssdaiAdsConfig:void 0};if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return{In:c,
Rw:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
T1=function(a){g.K.call(this);this.G=a;this.listeners=[];this.j=new $y(this);g.M(this,this.j);this.j.P(this.G,"aduxclicked",this.onAdUxClicked);this.j.P(this.G,"aduxmouseover",this.lJ);this.j.P(this.G,"aduxmouseout",this.kJ);this.j.P(this.G,"muteadaccepted",this.O_)};
IVa=function(a,b,c){b=g.Pk(b,function(d){return new yA(d,c,d.id)});
a.G.Ka("onAdUxUpdate",b)};
U1=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
V1=function(a,b,c){g.K.call(this);this.G=a;this.Da=b;this.Pa=c;this.listeners=[];this.B=!1;this.FE=[];this.C=new OJ(this,KUa(b.get()));this.u=new PJ;this.j=null};
KVa=function(a,b){A0(a.Pa.get(),{cuepointTrigger:{event:JVa(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.durationSecs,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.G.getVideoData(1).clientPlaybackNonce}})};
JVa=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");}};
W1=function(a){this.G=a};
X1=function(a){this.G=a};
Y1=function(){this.listeners=[]};
LVa=function(a){this.G=a};
MVa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Ba=d;this.Pa=e;this.Da=f;a=lY(c.Aa,"metadata_type_ad_placement_config");this.j=new T0(c.Rb,this.Pa,a,c.layoutId)};
NVa=function(a,b,c){this.Ba=a;this.Pa=b;this.Da=c};
Z1=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Qa=d;this.De=e;this.Ie=f;this.Ba=h;this.j=l;this.Pa=m;this.D=n;this.driftRecoveryMs=lY(this.layout.Aa,"metadata_type_drift_recovery_ms")||null};
OVa=function(a){var b=lY(a.layout.Aa,"metadata_type_layout_enter_ms"),c=lY(a.layout.Aa,"metadata_type_layout_exit_ms");a=a.Ie.get();b=QJ(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
$1=function(a,b){var c;A0(a.Pa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Qa.get().Pr)?void 0:c.clientPlaybackNonce,adClientData:a.layout.vc.adClientDataEntry},b)})};
a2=function(a,b,c,d,e,f,h,l,m,n,p){Z1.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.u=null;a=g.r(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,$z(b.yb().Aa,"metadata_type_survey_overlay")&&(this.B=b.yb().layoutId)};
QVa=function(a,b){var c=PVa(a,b);a.u={Kj:c};c?c.startRendering(c.yb()):b===a.B&&eA("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
PVa=function(a,b){return null==b?null:a.C.find(function(c){return c.yb().layoutId===b})||null};
RVa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=$z(b.Aa,"metadata_type_survey_overlay"),v,w=(null==(v=lY(a.Aa,"metadata_type_fulfilled_layout"))?void 0:lY(v.Aa,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.ez(c,w,2,f,d,e,a.slotId),n.Qh("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.Uu(c,w,2,f,d,e,a.slotId);n.Qh("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return eA("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&eA("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):eA("Invalid timeline playback ID");d+f>e&&h.Xw(p,e-d);return p};
SVa=function(a,b){var c=lY(b.Aa,"metadata_type_sodar_extension_data");if(c)try{XUa(0,c)}catch(d){eA("Unexpected error when loading Sodar",a,b,{error:d})}};
TVa=function(a,b,c,d,e,f){b2(a,b,new g.sJ(c,new g.$J),d,e,!1,f)};
b2=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;p1(c)&&q1(e,0,null)&&(!Z0(a,"impression")&&h&&h(),W0(a,"impression"));Z0(a,"impression")&&(g.uJ(c,4)&&!g.uJ(c,2)&&a.Mf("pause"),0>tJ(c,4)&&!(0>tJ(c,2))&&a.Mf("resume"),g.uJ(c,16)&&.5<=e&&a.Mf("seek"),f&&g.uJ(c,2)&&c2(a,c.state,b,d,e))};
c2=function(a,b,c,d,e,f){if(Z0(a,"impression")){var h=1>=Math.abs(d-e);d2(a,b,h?d:e,c,d,f);h&&W0(a,"complete")}};
d2=function(a,b,c,d,e,f){Y0(a,1E3*c);0>=e||0>=c||(null==b?0:g.W(b,16))||(null==b?0:g.W(b,32))||(q1(c,.25*e,d)&&(f&&!Z0(a,"first_quartile")&&f("first"),W0(a,"first_quartile")),q1(c,.5*e,d)&&(f&&!Z0(a,"midpoint")&&f("second"),W0(a,"midpoint")),q1(c,.75*e,d)&&(f&&!Z0(a,"third_quartile")&&f("third"),W0(a,"third_quartile")))};
UVa=function(a,b){Z0(a,"impression")&&a.Mf(b?"fullscreen":"end_fullscreen")};
VVa=function(a){Z0(a,"impression")&&a.Mf("clickthrough")};
WVa=function(a){a.Mf("active_view_measurable")};
XVa=function(a){Z0(a,"impression")&&!Z0(a,"seek")&&a.Mf("active_view_fully_viewable_audible_half_duration")};
YVa=function(a){Z0(a,"impression")&&!Z0(a,"seek")&&a.Mf("active_view_viewable")};
ZVa=function(a){Z0(a,"impression")&&!Z0(a,"seek")&&a.Mf("audio_audible")};
$Va=function(a){Z0(a,"impression")&&!Z0(a,"seek")&&a.Mf("audio_measurable")};
aWa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.De=d;this.j=e;this.Ba=f;this.zd=h;this.Db=l;this.ue=m;this.Da=n;this.Pa=p;this.Qa=q;this.UC=!0;this.Dc=this.u=null};
bWa=function(a,b,c){var d;a.Pa.get().Qh("ads_qua","cpn."+lY(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Qa.get().Gf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
cWa=function(a,b){var c,d,e;a.Pa.get().Qh("ads_imp","cpn."+lY(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Qa.get().Gf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!(null==(d=lY(a.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"))?0:null==(e=d.skipOrPreviewRenderer)?0:e.skipAdRenderer))};
e2=function(a){return{enterMs:lY(a.Aa,"metadata_type_layout_enter_ms"),exitMs:lY(a.Aa,"metadata_type_layout_exit_ms")}};
f2=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w){Z1.call(this,a,b,c,d,e,h,l,m,n,q);this.zd=f;this.ue=p;this.Db=v;this.Da=w;this.Dc=this.u=null};
dWa=function(a,b){var c;a.Pa.get().Qh("ads_imp","acpn."+(null==(c=a.Qa.get().Gf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
eWa=function(a,b,c){var d;a.Pa.get().Qh("ads_qua","cpn."+lY(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Qa.get().Gf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
g2=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w,y,A,B,E,G){this.gf=a;this.u=b;this.Qa=c;this.De=d;this.Ba=e;this.Pa=f;this.zd=h;this.Ie=l;this.Db=m;this.ue=n;this.oe=p;this.Tb=q;this.Nd=v;this.fd=w;this.df=y;this.Hb=A;this.qf=B;this.Da=E;this.j=G};
h2=function(a){g.K.call(this);this.j=a;this.Lb=new Map};
i2=function(a,b){for(var c=[],d=g.r(a.Lb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&TZ(a.j(),c)};
j2=function(a,b){g.K.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.cf(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Pr)?void 0:d.slotId)||null};
fWa=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};
k2=function(a){this.G=a};
gWa=function(a,b,c,d,e){GI.call(this,"image-companion",a,b,c,d,e)};
l2=function(a,b,c,d,e,f,h,l){b1.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.lj=!0;this.C=null;this.D=lY(c.Aa,"metadata_type_linked_player_bytes_layout_id");this.gf().Md.add(this);a=lY(c.Aa,"metadata_type_ad_placement_config");this.I=new T0(c.Rb,this.Pa,a,c.layoutId)};
hWa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];U0().forEach(function(b){a.push(b)});
return{me:a,yf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
iWa=function(a,b,c,d,e){GI.call(this,"shopping-companion",a,b,c,d,e)};
m2=function(a,b,c,d,e,f,h,l){b1.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.lj=!0;this.C=null;this.D=lY(c.Aa,"metadata_type_linked_player_bytes_layout_id");this.gf().Md.add(this);a=lY(c.Aa,"metadata_type_ad_placement_config");this.I=new T0(c.Rb,this.Pa,a,c.layoutId)};
jWa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];U0().forEach(function(b){a.push(b)});
return{me:a,yf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
kWa=function(a,b,c,d,e){GI.call(this,"ads-engagement-panel",a,b,c,d,e)};
n2=function(a,b,c,d,e,f,h,l){b1.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.lj=!0;this.C=null;this.D=lY(c.Aa,"metadata_type_linked_player_bytes_layout_id");this.gf().Md.add(this);a=lY(c.Aa,"metadata_type_ad_placement_config");this.I=new T0(c.Rb,this.Pa,a,c.layoutId)};
lWa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];U0().forEach(function(b){a.push(b)});
return{me:a,yf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
mWa=function(a,b,c,d,e){this.Xb=a;this.Pa=b;this.gf=c;this.j=d;this.Db=e};
o2=function(a,b,c){GI.call(this,"player-underlay",a,{},b,c);this.j=c};
p2=function(a,b,c,d){b1.call(this,a,b,c,d)};
nWa=function(a){this.Xb=a};
oWa=function(a,b,c,d){GI.call(this,"survey-interstitial",a,b,c,d)};
q2=function(a,b,c,d,e){b1.call(this,c,a,b,d);this.Pa=e;a=lY(b.Aa,"metadata_type_ad_placement_config");this.C=new T0(b.Rb,e,a,b.layoutId)};
r2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
pWa=function(a,b,c){c=void 0===c?s2:c;c.width<s2.width&&(c=s2);if(a.width<c.width||a.height<c.height)return{OE:3,MA:501,errorMessage:"ad("+r2(c)+") larger than container("+r2(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{OE:3,MA:501,errorMessage:"ad("+r2(c)+") to container("+r2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{OE:3,MA:501,errorMessage:"ad("+r2(c)+") covers container("+r2(a)+") center."}};
qWa=function(a,b){var c=lY(a.Aa,"metadata_type_ad_placement_config");return new T0(a.Rb,b,c,a.layoutId)};
t2=function(a){return lY(a.Aa,"metadata_type_invideo_overlay_ad_renderer")};
rWa=function(a,b,c,d){GI.call(this,"invideo-overlay",a,b,c,d);this.j=d};
u2=function(a,b,c,d,e,f,h,l,m,n,p,q){b1.call(this,f,a,b,e);this.Pa=c;this.C=h;this.Ba=l;this.Hb=m;this.Da=n;this.I=p;this.D=q;this.N=qWa(b,c)};
sWa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];U0().forEach(function(b){a.push(b)});
return{me:a,yf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
v2=function(a,b,c,d,e,f,h,l,m,n,p,q,v){b1.call(this,f,a,b,e);this.Pa=c;this.C=h;this.N=l;this.Ba=m;this.Hb=n;this.Da=p;this.I=q;this.D=v;this.V=qWa(b,c)};
tWa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(U0()),c=b.next();!c.done;c=b.next())a.push(c.value);return{me:a,yf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
w2=function(a){this.Ba=a;this.j=!1};
uWa=function(a,b,c,d,e,f){b1.call(this,c,a,b,d);this.Ba=e;this.Da=f};
vWa=function(a,b,c){GI.call(this,"survey",a,{},b,c)};
wWa=function(a,b,c,d,e,f,h){b1.call(this,c,a,b,d);this.C=e;this.Ba=f;this.Da=h};
xWa=function(a,b,c,d,e,f,h,l,m,n){this.Xb=a;this.Ba=b;this.Pa=c;this.C=d;this.Db=e;this.u=f;this.B=h;this.Hb=l;this.Da=m;this.j=n};
x2=function(a){g.K.call(this);this.B=a;this.lj=!0;this.Lb=new Map;this.j=new Map;this.u=new Map};
yWa=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};
zWa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Va=Y(function(){return new gA});
g.M(this,this.Va);this.jb=Y(function(){return new R_(f.Va)});
g.M(this,this.jb);this.Cc=Y(function(){return new K_});
g.M(this,this.Cc);this.Qb=Y(function(){return new G_(a)});
g.M(this,this.Qb);this.Ab=Y(function(){return new e0(f.Va,f.jb,f.Da)});
g.M(this,this.Ab);this.zd=Y(function(){return new k0});
g.M(this,this.zd);this.df=Y(function(){return new HI(b.R())});
g.M(this,this.df);this.Xb=Y(function(){return new T1(b)});
g.M(this,this.Xb);this.Hb=Y(function(){return new e_(e)});
g.M(this,this.Hb);this.Nd=Y(function(){return new TJ(b)});
g.M(this,this.Nd);this.Tb=Y(function(){return new m0(b)});
g.M(this,this.Tb);this.oe=Y(function(){return new W1(b)});
g.M(this,this.oe);this.fd=Y(function(){return new n0(b)});
g.M(this,this.fd);this.Da=Y(function(){return new o0(b)});
g.M(this,this.Da);this.Qe=Y(function(){return new S1(d)});
g.M(this,this.Qe);this.vb=Y(function(){return new sY(f.Da)});
g.M(this,this.vb);this.Hd=Y(function(){return new C_(f.Va,f.Ab,f.jb,f.Da,f.vb,"SLOT_TYPE_ABOVE_FEED",f.Ci)});
g.M(this,this.Hd);this.qf=Y(function(){return new X1(b)});
g.M(this,this.qf);this.Be=Y(function(){return new Y1});
g.M(this,this.Be);this.Xm=Y(function(){return new I0});
g.M(this,this.Xm);this.Qa=Y(function(){return new D0(b,f.zd,f.Da)});
g.M(this,this.Qa);this.dc=new j0(this.Da,this.vb,this.Qa);g.M(this,this.dc);this.Ie=Y(function(){return new V1(b,f.Da,f.Pa)});
g.M(this,this.Ie);this.De=Y(function(){return new k2(b)});
g.M(this,this.De);this.Ba=Y(function(){return new E0(b,f.Qa,f.Da)});
g.M(this,this.Ba);this.ue=Y(function(){return new J0});
this.Db=Y(function(){return new r0(f.Ba,b)});
g.M(this,this.Db);this.Pa=Y(function(){return new w0(b,f.Cc,f.Db,f.Qa)});
g.M(this,this.Pa);this.Yg=new C1(D1,y2,function(l,m,n,p){return S_(f.jb.get(),l,m,n,p)},this.Qb,this.Ab,this.jb,this.vb,this.Da,this.Qa);
g.M(this,this.Yg);this.Gc=new fA(this.Qb,this.Hd,c,this.Da,a,this.Qa,this.Ba);g.M(this,this.Gc);var h=new l0(b,this.Gc,this.Ba,this.Qa,this.Ie);this.uf=Y(function(){return h});
this.lq=h;this.Ci=new B1(this.Qb,this.Ab,this.uf,this.Ie,this.Ba,this.Da,this.Pa,this.De);g.M(this,this.Ci);this.Ge=new J_(this.Qb,this.Ab,this.Tb,this.uf);g.M(this,this.Ge);this.Hc=new Yz(this.Qb,this.Ab,this.Hd,this.Qa,this.Ge,c);g.M(this,this.Hc);this.Pg=Y(function(){return new P0(f.Qe,f.jb,f.vb,f.Da,f.De)});
g.M(this,this.Pg);this.ud=Y(function(){return new Q0});
g.M(this,this.ud);this.Re=new I1(a,this.Xb);g.M(this,this.Re);this.wb=new J1(a);g.M(this,this.wb);this.Ir=new h2(a);g.M(this,this.Ir);this.hf=new K1(a,this.uf);g.M(this,this.hf);this.Yd=new M1(a,this.Tb,this.Ba,this.Qa);g.M(this,this.Yd);this.Ms=new j2(a,this.Qa);g.M(this,this.Ms);this.Zc=new O1(a);g.M(this,this.Zc);this.Vg=new P1(a);g.M(this,this.Vg);this.Lt=new x2(a);g.M(this,this.Lt);this.td=Y(function(){return new E1});
g.M(this,this.td);this.Zg=Y(function(){return new F1(f.Ba)});
g.M(this,this.Zg);this.yN=Y(function(){return new mWa(f.Xb,f.Pa,a,f.Cc,f.Db)});
g.M(this,this.yN);this.Og=Y(function(){return new S0(f.Hc)});
g.M(this,this.Og);this.Rg=Y(function(){return new $0(f.Pa,f.Zc,f.Db)});
g.M(this,this.Rg);this.Xg=Y(function(){return new g2(a,f.Zc,f.Qa,f.De,f.Ba,f.Pa,f.zd,f.Ie,f.Db,f.ue,f.oe,f.Tb,f.Nd,f.fd,f.df,f.Hb,f.qf,f.Da,f.Cc)});
g.M(this,this.Xg);this.CR=Y(function(){return new NVa(f.Ba,f.Pa,f.Da)});
g.M(this,this.CR);this.jl=Y(function(){return new xWa(f.Xb,f.Ba,f.Pa,f.Cc,f.Db,f.Ir,f.Lt,f.Hb,f.Da,c)});
g.M(this,this.jl);this.fT=Y(function(){return new nWa(f.Xb)});
g.M(this,this.fT);this.nG=new Q1(a,this.Xm,this.Va);g.M(this,this.nG);this.yl=new R1(a,this.Be,this.vb,this.Qa,this.Va,this.Da);g.M(this,this.yl);this.Ee={Xs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ci],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Gc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ge]]),Sn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Pg],["SLOT_TYPE_ABOVE_FEED",this.ud],["SLOT_TYPE_FORECASTING",this.ud],["SLOT_TYPE_IN_PLAYER",this.ud],["SLOT_TYPE_PLAYER_BYTES",this.ud],["SLOT_TYPE_PLAYER_UNDERLAY",this.ud],["SLOT_TYPE_PLAYBACK_TRACKING",this.ud]]),Cj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Re],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Re],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.wb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ir],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Yd],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Yd],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Yd],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Yd],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ms],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ms],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.Zc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Lt]]),Qo:new Map([["SLOT_TYPE_ABOVE_FEED",this.td],["SLOT_TYPE_AD_BREAK_REQUEST",this.td],["SLOT_TYPE_FORECASTING",this.td],["SLOT_TYPE_IN_PLAYER",this.td],["SLOT_TYPE_PLAYER_BYTES",this.Zg],["SLOT_TYPE_PLAYER_UNDERLAY",this.td],["SLOT_TYPE_PLAYBACK_TRACKING",this.td]]),
xo:new Map([["SLOT_TYPE_ABOVE_FEED",this.yN],["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",this.Rg],["SLOT_TYPE_PLAYER_BYTES",this.Xg],["SLOT_TYPE_PLAYBACK_TRACKING",this.CR],["SLOT_TYPE_IN_PLAYER",this.jl],["SLOT_TYPE_PLAYER_UNDERLAY",this.fT]])};this.listeners=[this.Cc.get()];this.Ks={Hc:this.Hc,lm:this.Zc,Ao:this.Be.get(),oh:this.Da.get(),Wa:this.Hb.get(),wq:this.Ba.get(),Gc:this.Gc,il:this.Va.get(),zo:this.Xm.get(),Zj:this.Re,Mi:this.Cc.get(),xl:this.Qa.get()}};
AWa=function(a,b,c,d,e,f,h,l,m,n){this.Xb=a;this.Ba=b;this.Pa=c;this.C=d;this.Db=e;this.u=f;this.B=h;this.Hb=l;this.Da=m;this.j=n};
BWa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Va=Y(function(){return new gA});
g.M(this,this.Va);this.jb=Y(function(){return new R_(f.Va)});
g.M(this,this.jb);this.Cc=Y(function(){return new K_});
g.M(this,this.Cc);this.Qb=Y(function(){return new G_(a)});
g.M(this,this.Qb);this.Ab=Y(function(){return new e0(f.Va,f.jb,f.Da)});
g.M(this,this.Ab);this.zd=Y(function(){return new k0});
g.M(this,this.zd);this.df=Y(function(){return new HI(b.R())});
g.M(this,this.df);this.Xb=Y(function(){return new T1(b)});
g.M(this,this.Xb);this.Hb=Y(function(){return new e_(e)});
g.M(this,this.Hb);this.Nd=Y(function(){return new TJ(b)});
g.M(this,this.Nd);this.Tb=Y(function(){return new m0(b)});
g.M(this,this.Tb);this.oe=Y(function(){return new W1(b)});
g.M(this,this.oe);this.fd=Y(function(){return new n0(b)});
g.M(this,this.fd);this.Da=Y(function(){return new o0(b)});
g.M(this,this.Da);this.Qe=Y(function(){return new S1(d)});
g.M(this,this.Qe);this.vb=Y(function(){return new sY(f.Da)});
g.M(this,this.vb);this.Hd=Y(function(){return new C_(f.Va,f.Ab,f.jb,f.Da,f.vb,null,f.Ci)});
g.M(this,this.Hd);this.qf=Y(function(){return new X1(b)});
g.M(this,this.qf);this.Be=Y(function(){return new Y1});
g.M(this,this.Be);this.Xm=Y(function(){return new I0});
g.M(this,this.Xm);this.Qa=Y(function(){return new D0(b,f.zd,f.Da)});
g.M(this,this.Qa);this.dc=new j0(this.Da,this.vb,this.Qa);g.M(this,this.dc);this.Ie=Y(function(){return new V1(b,f.Da,f.Pa)});
this.Ba=Y(function(){return new E0(b,f.Qa,f.Da)});
g.M(this,this.Ba);this.Db=Y(function(){return new r0(f.Ba,b)});
g.M(this,this.Db);this.Pa=Y(function(){return new w0(b,f.Cc,f.Db,f.Qa)});
g.M(this,this.Pa);this.ue=Y(function(){return new J0});
g.M(this,this.ue);this.Yg=new C1(D1,y2,function(l,m,n,p){return S_(f.jb.get(),l,m,n,p)},this.Qb,this.Ab,this.jb,this.vb,this.Da,this.Qa);
g.M(this,this.Yg);this.Gc=new fA(this.Qb,this.Hd,c,this.Da,a,this.Qa,this.Ba);g.M(this,this.Gc);var h=new l0(b,this.Gc,this.Ba,this.Qa,this.Ie);this.uf=Y(function(){return h});
this.lq=h;this.Ci=new B1(this.Qb,this.Ab,this.uf,this.Ie,this.Ba,this.Da,this.Pa);g.M(this,this.Ci);this.Ge=new J_(this.Qb,this.Ab,this.Tb,this.uf);g.M(this,this.Ge);this.Hc=new Yz(this.Qb,this.Ab,this.Hd,this.Qa,this.Ge,c);g.M(this,this.Hc);this.Pg=Y(function(){return new P0(f.Qe,f.jb,f.vb,f.Da)});
g.M(this,this.Pg);this.ud=Y(function(){return new Q0});
g.M(this,this.ud);this.Re=new I1(a,this.Xb);g.M(this,this.Re);this.wb=new J1(a);g.M(this,this.wb);this.Ir=new h2(a);g.M(this,this.Ir);this.hf=new K1(a,this.uf);g.M(this,this.hf);this.Yd=new M1(a,this.Tb,this.Ba,this.Qa);g.M(this,this.Yd);this.Zc=new O1(a);g.M(this,this.Zc);this.Vg=new P1(a);g.M(this,this.Vg);this.Lt=new x2(a);g.M(this,this.Lt);this.td=Y(function(){return new E1});
g.M(this,this.td);this.Zg=Y(function(){return new F1(f.Ba)});
g.M(this,this.Zg);this.Og=Y(function(){return new S0(f.Hc)});
g.M(this,this.Og);this.Rg=Y(function(){return new $0(f.Pa,f.Zc,f.Db)});
g.M(this,this.Rg);this.jl=Y(function(){return new AWa(f.Xb,f.Ba,f.Pa,f.Cc,f.Db,f.Ir,f.Lt,f.Hb,f.Da,c)});
g.M(this,this.jl);this.Xg=Y(function(){return new A1(a,f.Zc,f.Pa,f.Db,f.ue,f.oe,f.Qa,f.Ba,f.Tb,f.Nd,f.fd,f.df,f.Hb,f.qf,f.Da)});
g.M(this,this.Xg);this.nG=new Q1(a,this.Xm,this.Va);g.M(this,this.nG);this.yl=new R1(a,this.Be,this.vb,this.Qa,this.Va,this.Da);g.M(this,this.yl);this.Ee={Xs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ci],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Gc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ge]]),Sn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Pg],["SLOT_TYPE_FORECASTING",this.ud],["SLOT_TYPE_IN_PLAYER",this.ud],["SLOT_TYPE_PLAYER_BYTES",this.ud]]),Cj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Re],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.wb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ir],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Lt]]),Qo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.td],["SLOT_TYPE_FORECASTING",this.td],["SLOT_TYPE_IN_PLAYER",this.td],["SLOT_TYPE_PLAYER_BYTES",this.Zg]]),xo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",this.Rg],["SLOT_TYPE_IN_PLAYER",this.jl],["SLOT_TYPE_PLAYER_BYTES",this.Xg]])};this.listeners=[this.Cc.get()];this.Ks={Hc:this.Hc,lm:null,Ao:this.Be.get(),
oh:this.Da.get(),Wa:this.Hb.get(),wq:this.Ba.get(),Gc:this.Gc,il:this.Va.get(),zo:this.Xm.get(),Zj:this.Re,Mi:this.Cc.get(),xl:this.Qa.get()}};
CWa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Va=Y(function(){return new gA});
g.M(this,this.Va);this.jb=Y(function(){return new R_(f.Va)});
g.M(this,this.jb);this.Cc=Y(function(){return new K_});
g.M(this,this.Cc);this.Qb=Y(function(){return new G_(a)});
g.M(this,this.Qb);this.Ab=Y(function(){return new e0(f.Va,f.jb,f.Da)});
g.M(this,this.Ab);this.zd=Y(function(){return new k0});
g.M(this,this.zd);this.df=Y(function(){return new HI(b.R())});
g.M(this,this.df);this.Xb=Y(function(){return new T1(b)});
g.M(this,this.Xb);this.Hb=Y(function(){return new e_(e)});
g.M(this,this.Hb);this.Nd=Y(function(){return new TJ(b)});
g.M(this,this.Nd);this.Tb=Y(function(){return new m0(b)});
g.M(this,this.Tb);this.oe=Y(function(){return new W1(b)});
g.M(this,this.oe);this.fd=Y(function(){return new n0(b)});
g.M(this,this.fd);this.Da=Y(function(){return new o0(b)});
g.M(this,this.Da);this.Qe=Y(function(){return new S1(d)});
g.M(this,this.Qe);this.vb=Y(function(){return new sY(f.Da)});
g.M(this,this.vb);this.Hd=Y(function(){return new C_(f.Va,f.Ab,f.jb,f.Da,f.vb,null,null)});
g.M(this,this.Hd);this.qf=Y(function(){return new X1(b)});
g.M(this,this.qf);this.Be=Y(function(){return new Y1});
g.M(this,this.Be);this.Qa=Y(function(){return new D0(b,f.zd,f.Da)});
g.M(this,this.Qa);this.dc=new j0(this.Da,this.vb,this.Qa);g.M(this,this.dc);this.Ba=Y(function(){return new E0(b,f.Qa,f.Da)});
g.M(this,this.Ba);this.Db=Y(function(){return new r0(f.Ba,b)});
g.M(this,this.Db);this.Pa=Y(function(){return new w0(b,f.Cc,f.Db,f.Qa)});
g.M(this,this.Pa);this.ue=Y(function(){return new J0});
g.M(this,this.ue);this.Yg=new C1(D1,y2,function(l,m,n,p){return S_(f.jb.get(),l,m,n,p)},this.Qb,this.Ab,this.jb,this.vb,this.Da,this.Qa);
g.M(this,this.Yg);this.Gc=new fA(this.Qb,this.Hd,c,this.Da,a,this.Qa,this.Ba);g.M(this,this.Gc);var h=new l0(b,this.Gc,this.Ba,this.Qa);this.uf=Y(function(){return h});
this.lq=h;this.Ge=new J_(this.Qb,this.Ab,this.Tb,this.uf);g.M(this,this.Ge);this.Hc=new Yz(this.Qb,this.Ab,this.Hd,this.Qa,this.Ge,c);g.M(this,this.Hc);this.Pg=Y(function(){return new P0(f.Qe,f.jb,f.vb,f.Da)});
g.M(this,this.Pg);this.ud=Y(function(){return new Q0});
g.M(this,this.ud);this.Re=new I1(a,this.Xb);g.M(this,this.Re);this.wb=new J1(a);g.M(this,this.wb);this.hf=new K1(a,this.uf);g.M(this,this.hf);this.Yd=new M1(a,this.Tb,this.Ba,this.Qa);g.M(this,this.Yd);this.Zc=new O1(a);g.M(this,this.Zc);this.Vg=new P1(a);g.M(this,this.Vg);this.td=Y(function(){return new E1});
g.M(this,this.td);this.Zg=Y(function(){return new F1(f.Ba)});
g.M(this,this.Zg);this.Og=Y(function(){return new S0(f.Hc)});
g.M(this,this.Og);this.Rg=Y(function(){return new $0(f.Pa,f.Zc,f.Db)});
g.M(this,this.Rg);this.xR=Y(function(){return new i1(f.Xb,f.Ba,f.Pa,f.Cc,c)});
g.M(this,this.xR);this.Xg=Y(function(){return new A1(a,f.Zc,f.Pa,f.Db,f.ue,f.oe,f.Qa,f.Ba,f.Tb,f.Nd,f.fd,f.df,f.Hb,f.qf,f.Da)});
g.M(this,this.Xg);this.yl=new R1(a,this.Be,this.vb,this.Qa,this.Va,this.Da);g.M(this,this.yl);this.Ee={Xs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Gc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ge]]),Sn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.ud],["SLOT_TYPE_IN_PLAYER",this.ud],["SLOT_TYPE_PLAYER_BYTES",
this.ud]]),Cj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Re],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vg]]),Qo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.td],["SLOT_TYPE_ABOVE_FEED",this.td],["SLOT_TYPE_FORECASTING",this.td],["SLOT_TYPE_IN_PLAYER",this.td],["SLOT_TYPE_PLAYER_BYTES",
this.Zg]]),xo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",this.Rg],["SLOT_TYPE_IN_PLAYER",this.xR],["SLOT_TYPE_PLAYER_BYTES",this.Xg]])};this.listeners=[this.Cc.get()];this.Ks={Hc:this.Hc,lm:null,Ao:this.Be.get(),oh:this.Da.get(),Wa:this.Hb.get(),wq:this.Ba.get(),Gc:this.Gc,il:this.Va.get(),zo:null,Zj:this.Re,Mi:this.Cc.get(),xl:this.Qa.get()}};
DWa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Va=Y(function(){return new gA});
g.M(this,this.Va);this.jb=Y(function(){return new R_(f.Va)});
g.M(this,this.jb);this.Cc=Y(function(){return new K_});
g.M(this,this.Cc);this.Qb=Y(function(){return new G_(a)});
g.M(this,this.Qb);this.Ab=Y(function(){return new e0(f.Va,f.jb,f.Da)});
g.M(this,this.Ab);this.zd=Y(function(){return new k0});
g.M(this,this.zd);this.df=Y(function(){return new HI(b.R())});
g.M(this,this.df);this.Xb=Y(function(){return new T1(b)});
g.M(this,this.Xb);this.Hb=Y(function(){return new e_(e)});
g.M(this,this.Hb);this.Nd=Y(function(){return new TJ(b)});
g.M(this,this.Nd);this.Tb=Y(function(){return new m0(b)});
g.M(this,this.Tb);this.oe=Y(function(){return new W1(b)});
g.M(this,this.oe);this.fd=Y(function(){return new n0(b)});
g.M(this,this.fd);this.Da=Y(function(){return new o0(b)});
g.M(this,this.Da);this.Qe=Y(function(){return new S1(d)});
g.M(this,this.Qe);this.vb=Y(function(){return new sY(f.Da)});
g.M(this,this.vb);this.Hd=Y(function(){return new C_(f.Va,f.Ab,f.jb,f.Da,f.vb,null,null)});
g.M(this,this.Hd);this.qf=Y(function(){return new X1(b)});
g.M(this,this.qf);this.Be=Y(function(){return new Y1});
g.M(this,this.Be);this.Qa=Y(function(){return new D0(b,f.zd,f.Da)});
g.M(this,this.Qa);this.dc=new j0(this.Da,this.vb,this.Qa);g.M(this,this.dc);this.Ba=Y(function(){return new E0(b,f.Qa,f.Da)});
g.M(this,this.Ba);this.Db=Y(function(){return new r0(f.Ba,b)});
g.M(this,this.Db);this.Pa=Y(function(){return new w0(b,f.Cc,f.Db,f.Qa)});
g.M(this,this.Pa);this.ue=Y(function(){return new J0});
g.M(this,this.ue);this.Yg=new C1(D1,y2,function(l,m,n,p){return S_(f.jb.get(),l,m,n,p)},this.Qb,this.Ab,this.jb,this.vb,this.Da,this.Qa);
g.M(this,this.Yg);this.Gc=new fA(this.Qb,this.Hd,c,this.Da,a,this.Qa,this.Ba);g.M(this,this.Gc);var h=new l0(b,this.Gc,this.Ba,this.Qa);this.uf=Y(function(){return h});
this.lq=h;this.Ge=new J_(this.Qb,this.Ab,this.Tb,this.uf);g.M(this,this.Ge);this.Hc=new Yz(this.Qb,this.Ab,this.Hd,this.Qa,this.Ge,c);g.M(this,this.Hc);this.Pg=Y(function(){return new P0(f.Qe,f.jb,f.vb,f.Da)});
g.M(this,this.Pg);this.ud=Y(function(){return new Q0});
g.M(this,this.ud);this.Re=new I1(a,this.Xb);g.M(this,this.Re);this.wb=new J1(a);g.M(this,this.wb);this.hf=new K1(a,this.uf);g.M(this,this.hf);this.Yd=new M1(a,this.Tb,this.Ba,this.Qa);g.M(this,this.Yd);this.Zc=new O1(a);g.M(this,this.Zc);this.Vg=new P1(a);g.M(this,this.Vg);this.td=Y(function(){return new E1});
g.M(this,this.td);this.Zg=Y(function(){return new F1(f.Ba)});
g.M(this,this.Zg);this.Og=Y(function(){return new S0(f.Hc)});
g.M(this,this.Og);this.Rg=Y(function(){return new $0(f.Pa,f.Zc,f.Db)});
g.M(this,this.Rg);this.jl=Y(function(){return new i1(f.Xb,f.Ba,f.Pa,f.Cc,c)});
g.M(this,this.jl);this.Xg=Y(function(){return new A1(a,f.Zc,f.Pa,f.Db,f.ue,f.oe,f.Qa,f.Ba,f.Tb,f.Nd,f.fd,f.df,f.Hb,f.qf,f.Da)});
g.M(this,this.Xg);this.yl=new R1(a,this.Be,this.vb,this.Qa,this.Va,this.Da);g.M(this,this.yl);this.Ee={Xs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Gc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ge]]),Sn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.ud],["SLOT_TYPE_IN_PLAYER",this.ud],["SLOT_TYPE_PLAYER_BYTES",
this.ud]]),Cj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Re],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vg]]),Qo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.td],["SLOT_TYPE_FORECASTING",this.td],["SLOT_TYPE_IN_PLAYER",this.td],["SLOT_TYPE_PLAYER_BYTES",this.Zg]]),xo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",
this.Rg],["SLOT_TYPE_IN_PLAYER",this.jl],["SLOT_TYPE_PLAYER_BYTES",this.Xg]])};this.listeners=[this.Cc.get()];this.Ks={Hc:this.Hc,lm:null,Ao:this.Be.get(),oh:this.Da.get(),Wa:this.Hb.get(),wq:this.Ba.get(),Gc:this.Gc,il:this.Va.get(),zo:null,Zj:this.Re,Mi:this.Cc.get(),xl:this.Qa.get()}};
z2=function(a,b,c,d,e,f,h,l,m){g1.call(this,a,b,c,d,e,f,h,m);this.Sk=l};
EWa=function(){var a=jVa();a.me.push("metadata_type_ad_info_ad_metadata");return a};
FWa=function(a,b,c,d,e,f){this.Xb=a;this.Ba=b;this.Pa=c;this.u=d;this.Sk=e;this.j=f};
GWa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Va=Y(function(){return new gA});
g.M(this,this.Va);this.jb=Y(function(){return new R_(f.Va)});
g.M(this,this.jb);this.Cc=Y(function(){return new K_});
g.M(this,this.Cc);this.Qb=Y(function(){return new G_(a)});
g.M(this,this.Qb);this.Ab=Y(function(){return new e0(f.Va,f.jb,f.Da)});
g.M(this,this.Ab);this.zd=Y(function(){return new k0});
g.M(this,this.zd);this.Sk=Y(function(){return new LVa(b)});
g.M(this,this.Sk);this.df=Y(function(){return new HI(b.R())});
g.M(this,this.df);this.Xb=Y(function(){return new T1(b)});
g.M(this,this.Xb);this.Hb=Y(function(){return new e_(e)});
g.M(this,this.Hb);this.Nd=Y(function(){return new TJ(b)});
g.M(this,this.Nd);this.Tb=Y(function(){return new m0(b)});
g.M(this,this.Tb);this.oe=Y(function(){return new W1(b)});
g.M(this,this.oe);this.fd=Y(function(){return new n0(b)});
g.M(this,this.fd);this.Da=Y(function(){return new o0(b)});
g.M(this,this.Da);this.Qe=Y(function(){return new S1(d)});
g.M(this,this.Qe);this.vb=Y(function(){return new sY(f.Da)});
g.M(this,this.vb);this.Hd=Y(function(){return new C_(f.Va,f.Ab,f.jb,f.Da,f.vb,null,null)});
g.M(this,this.Hd);this.qf=Y(function(){return new X1(b)});
g.M(this,this.qf);this.Be=Y(function(){return new Y1});
g.M(this,this.Be);this.Qa=Y(function(){return new D0(b,f.zd,f.Da)});
g.M(this,this.Qa);this.dc=new j0(this.Da,this.vb,this.Qa);g.M(this,this.dc);this.Ba=Y(function(){return new E0(b,f.Qa,f.Da)});
g.M(this,this.Ba);this.Db=Y(function(){return new r0(f.Ba,b)});
g.M(this,this.Db);this.Pa=Y(function(){return new w0(b,f.Cc,f.Db,f.Qa)});
g.M(this,this.Pa);this.ue=Y(function(){return new J0});
g.M(this,this.ue);this.Yg=new C1(yVa,y2,function(l,m,n,p){return vUa(f.jb.get(),l,m,n,p)},this.Qb,this.Ab,this.jb,this.vb,this.Da,this.Qa);
g.M(this,this.Yg);this.Gc=new fA(this.Qb,this.Hd,c,this.Da,a,this.Qa,this.Ba);g.M(this,this.Gc);var h=new l0(b,this.Gc,this.Ba,this.Qa);this.uf=Y(function(){return h});
this.lq=h;this.Ge=new J_(this.Qb,this.Ab,this.Tb,this.uf);g.M(this,this.Ge);this.Hc=new Yz(this.Qb,this.Ab,this.Hd,this.Qa,this.Ge,c);g.M(this,this.Hc);this.Pg=Y(function(){return new P0(f.Qe,f.jb,f.vb,f.Da)});
g.M(this,this.Pg);this.ud=Y(function(){return new Q0});
g.M(this,this.ud);this.Re=new I1(a,this.Xb);g.M(this,this.Re);this.wb=new J1(a);g.M(this,this.wb);this.hf=new K1(a,this.uf);g.M(this,this.hf);this.Yd=new M1(a,this.Tb,this.Ba,this.Qa);g.M(this,this.Yd);this.Zc=new O1(a);g.M(this,this.Zc);this.Vg=new P1(a);g.M(this,this.Vg);this.td=Y(function(){return new E1});
g.M(this,this.td);this.Zg=Y(function(){return new F1(f.Ba)});
g.M(this,this.Zg);this.Og=Y(function(){return new S0(f.Hc)});
g.M(this,this.Og);this.Rg=Y(function(){return new $0(f.Pa,f.Zc,f.Db)});
g.M(this,this.Rg);this.Xg=Y(function(){return new A1(a,f.Zc,f.Pa,f.Db,f.ue,f.oe,f.Qa,f.Ba,f.Tb,f.Nd,f.fd,f.df,f.Hb,f.qf,f.Da)});
g.M(this,this.Xg);this.xT=Y(function(){return new FWa(f.Xb,f.Ba,f.Pa,f.Cc,f.Sk,c)});
g.M(this,this.xT);this.yl=new R1(a,this.Be,this.vb,this.Qa,this.Va,this.Da);g.M(this,this.yl);this.Ee={Xs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Gc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ge]]),Sn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.ud],["SLOT_TYPE_IN_PLAYER",this.ud],["SLOT_TYPE_PLAYER_BYTES",
this.ud]]),Cj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Re],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vg]]),Qo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.td],["SLOT_TYPE_FORECASTING",this.td],["SLOT_TYPE_IN_PLAYER",this.td],["SLOT_TYPE_PLAYER_BYTES",this.Zg]]),xo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Og],["SLOT_TYPE_FORECASTING",this.Rg],["SLOT_TYPE_IN_PLAYER",this.xT],["SLOT_TYPE_PLAYER_BYTES",this.Xg]])};this.listeners=[this.Cc.get()];this.Ks={Hc:this.Hc,lm:null,Ao:this.Be.get(),oh:this.Da.get(),Wa:this.Hb.get(),wq:this.Ba.get(),Gc:this.Gc,il:this.Va.get(),zo:null,Zj:this.Re,Mi:this.Cc.get(),xl:this.Qa.get()}};
HWa=function(a,b,c,d,e,f){this.Xb=a;this.Ba=b;this.Pa=c;this.u=d;this.Sk=e;this.j=f};
IWa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Va=Y(function(){return new gA});
g.M(this,this.Va);this.jb=Y(function(){return new R_(f.Va)});
g.M(this,this.jb);this.Cc=Y(function(){return new K_});
g.M(this,this.Cc);this.Qb=Y(function(){return new G_(a)});
g.M(this,this.Qb);this.Ab=Y(function(){return new e0(f.Va,f.jb,f.Da)});
g.M(this,this.Ab);this.zd=Y(function(){return new k0});
g.M(this,this.zd);this.Sk=Y(function(){return new LVa(b)});
g.M(this,this.Sk);this.df=Y(function(){return new HI(b.R())});
g.M(this,this.df);this.Xb=Y(function(){return new T1(b)});
g.M(this,this.Xb);this.Hb=Y(function(){return new e_(e)});
g.M(this,this.Hb);this.Nd=Y(function(){return new TJ(b)});
g.M(this,this.Nd);this.Tb=Y(function(){return new m0(b)});
g.M(this,this.Tb);this.oe=Y(function(){return new W1(b)});
g.M(this,this.oe);this.fd=Y(function(){return new n0(b)});
g.M(this,this.fd);this.Da=Y(function(){return new o0(b)});
g.M(this,this.Da);this.Qe=Y(function(){return new S1(d)});
g.M(this,this.Qe);this.vb=Y(function(){return new sY(f.Da)});
g.M(this,this.vb);this.Hd=Y(function(){return new C_(f.Va,f.Ab,f.jb,f.Da,f.vb,null,f.Ci,3)});
g.M(this,this.Hd);this.qf=Y(function(){return new X1(b)});
g.M(this,this.qf);this.Be=Y(function(){return new Y1});
g.M(this,this.Be);this.Qa=Y(function(){return new D0(b,f.zd,f.Da)});
g.M(this,this.Qa);this.dc=new j0(this.Da,this.vb,this.Qa);g.M(this,this.dc);this.Ie=Y(function(){return new V1(b,f.Da,f.Pa)});
g.M(this,this.Ie);this.De=Y(function(){return new k2(b)});
g.M(this,this.De);this.Ba=Y(function(){return new E0(b,f.Qa,f.Da)});
g.M(this,this.Ba);this.ue=Y(function(){return new J0});
this.Db=Y(function(){return new r0(f.Ba,b)});
g.M(this,this.Db);this.Pa=Y(function(){return new w0(b,f.Cc,f.Db,f.Qa)});
g.M(this,this.Pa);this.Gc=new fA(this.Qb,this.Hd,c,this.Da,a,this.Qa,this.Ba);g.M(this,this.Gc);var h=new l0(b,this.Gc,this.Ba,this.Qa,this.Ie);this.uf=Y(function(){return h});
this.lq=h;this.Yg=new C1(zVa,y2,function(l,m,n,p){return vUa(f.jb.get(),l,m,n,p)},this.Qb,this.Ab,this.jb,this.vb,this.Da,this.Qa);
g.M(this,this.Yg);this.Ci=new B1(this.Qb,this.Ab,this.uf,this.Ie,this.Ba,this.Da,this.Pa,this.De);g.M(this,this.Ci);this.Ge=new J_(this.Qb,this.Ab,this.Tb,this.uf);g.M(this,this.Ge);this.Hc=new Yz(this.Qb,this.Ab,this.Hd,this.Qa,this.Ge,c);g.M(this,this.Hc);this.Pg=Y(function(){return new P0(f.Qe,f.jb,f.vb,f.Da,f.De)});
g.M(this,this.Pg);this.ud=Y(function(){return new Q0});
g.M(this,this.ud);this.Re=new I1(a,this.Xb);g.M(this,this.Re);this.wb=new J1(a);g.M(this,this.wb);this.hf=new K1(a,this.uf);g.M(this,this.hf);this.Yd=new M1(a,this.Tb,this.Ba,this.Qa);g.M(this,this.Yd);this.Ms=new j2(a,this.Qa);g.M(this,this.Ms);this.Zc=new O1(a);g.M(this,this.Zc);this.Vg=new P1(a);g.M(this,this.Vg);this.td=Y(function(){return new E1});
g.M(this,this.td);this.Zg=Y(function(){return new F1(f.Ba)});
g.M(this,this.Zg);this.Og=Y(function(){return new S0(f.Hc)});
g.M(this,this.Og);this.Rg=Y(function(){return new $0(f.Pa,f.Zc,f.Db)});
g.M(this,this.Rg);this.Xg=Y(function(){return new g2(a,f.Zc,f.Qa,f.De,f.Ba,f.Pa,f.zd,f.Ie,f.Db,f.ue,f.oe,f.Tb,f.Nd,f.fd,f.df,f.Hb,f.qf,f.Da,f.Cc)});
g.M(this,this.Xg);this.jl=Y(function(){return new HWa(f.Xb,f.Ba,f.Pa,f.Cc,f.Sk,c)});
g.M(this,this.jl);this.yl=new R1(a,this.Be,this.vb,this.Qa,this.Va,this.Da);g.M(this,this.yl);this.Ee={Xs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ci],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Gc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ge]]),Sn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pg],["SLOT_TYPE_FORECASTING",this.ud],
["SLOT_TYPE_IN_PLAYER",this.ud],["SLOT_TYPE_PLAYER_BYTES",this.ud]]),Cj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Re],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ms],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ms],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Zc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vg]]),Qo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.td],["SLOT_TYPE_FORECASTING",this.td],["SLOT_TYPE_IN_PLAYER",this.td],["SLOT_TYPE_PLAYER_BYTES",this.Zg]]),xo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Og],["SLOT_TYPE_FORECASTING",this.Rg],["SLOT_TYPE_PLAYER_BYTES",this.Xg],["SLOT_TYPE_IN_PLAYER",this.jl]])};this.listeners=[this.Cc.get()];this.Ks={Hc:this.Hc,lm:null,Ao:this.Be.get(),oh:this.Da.get(),Wa:this.Hb.get(),wq:this.Ba.get(),Gc:this.Gc,il:this.Va.get(),zo:null,Zj:this.Re,Mi:this.Cc.get(),xl:this.Qa.get()}};
KWa=function(a,b,c,d){g.K.call(this);var e=this;this.j=JWa(function(){return e.u},a,b,c,d);
g.M(this,this.j);this.u=(new c_(this.j)).B();g.M(this,this.u)};
A2=function(a){return a.j.Ks};
JWa=function(a,b,c,d,e){try{var f=b.R();if(g.lG(f))var h=new zWa(a,b,c,d,e);else if(g.oG(f))h=new BWa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===aG(f))h=new DWa(a,b,c,d,e);else if(dG(f))h=new CWa(a,b,c,d,e);else if(g.VF(f))h=new GWa(a,b,c,d,e);else if(g.UF(f))h=new IWa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.R(),eA("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.deviceParams.cplatform,interface:h.deviceParams.c,
P2a:h.deviceParams.cver,O2a:h.deviceParams.ctheme,N2a:h.deviceParams.cplayer,i3a:h.playerStyle}),new WUa(a,b,c,d,e)}};
B2=function(a,b){this.j=a;this.lm=b};
LWa=function(a){yL.call(this,a)};
MWa=function(a,b,c,d,e,f){GL.call(this,a,b,{F:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{F:"svg",L:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},S:[{F:"circle",L:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{F:"circle",L:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{F:"circle",L:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.ya("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10*
Math.PI);this.hide()};
NWa=function(a,b,c,d,e,f,h){$K.call(this,a,b,{F:"div",L:"ytp-ad-action-interstitial",T:{tabindex:"0"},S:[{F:"div",L:"ytp-ad-action-interstitial-background-container"},{F:"div",L:"ytp-ad-action-interstitial-slot",S:[{F:"div",L:"ytp-ad-action-interstitial-card",S:[{F:"div",L:"ytp-ad-action-interstitial-image-container"},{F:"div",L:"ytp-ad-action-interstitial-headline-container"},{F:"div",L:"ytp-ad-action-interstitial-description-container"},{F:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.LK=f;this.rE=h;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.W=this.ya("ytp-ad-action-interstitial-image-container");this.D=new uL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-action-interstitial-image");g.M(this,this.D);this.D.xa(this.W);this.Ha=this.ya("ytp-ad-action-interstitial-headline-container");this.N=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-action-interstitial-headline");g.M(this,this.N);
this.N.xa(this.Ha);this.Ea=this.ya("ytp-ad-action-interstitial-description-container");this.I=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-action-interstitial-description");g.M(this,this.I);this.I.xa(this.Ea);this.Ra=this.ya("ytp-ad-action-interstitial-background-container");this.va=new uL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-action-interstitial-background",!0);g.M(this,this.va);this.va.xa(this.Ra);this.La=this.ya("ytp-ad-action-interstitial-action-button-container");
this.C=new $y;g.M(this,this.C);this.hide()};
OWa=function(a){var b=g.eh("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
SWa=function(a,b,c,d,e){$K.call(this,a,b,{F:"div",L:"ytp-ad-overlay-slot",S:[{F:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.N=[];this.eb=this.Ea=this.D=this.La=this.va=null;this.Ra=!1;this.I=null;this.W=0;b=this.ya("ytp-ad-overlay-container");this.Ha=new PL(b,45E3,6E3,.3,.4);g.M(this,this.Ha);this.C=PWa(this);g.M(this,this.C);this.C.xa(b);this.B=QWa(this);g.M(this,this.B);this.B.xa(b);this.u=RWa(this);g.M(this,this.u);this.u.xa(b);a.K("web_rounded_containers")&&g.ho(b,"ytp-rounded-overlay-ad");
this.hide()};
PWa=function(a){var b=new g.ZK({F:"div",L:"ytp-ad-text-overlay",S:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",S:[{F:"button",L:"ytp-ad-overlay-close-button",S:[nL(TWa)]}]},{F:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{F:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{F:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.P(b.ya("ytp-ad-overlay-title"),"click",function(c){C2(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-link"),"click",function(c){C2(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-close-container"),"click",a.ek);b.hide();return b};
QWa=function(a){var b=new g.ZK({F:"div",Ca:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",S:[{F:"button",L:"ytp-ad-overlay-close-button",S:[nL(TWa)]}]},{F:"div",L:"ytp-ad-overlay-text-image",S:[{F:"img",T:{src:"{{imageUrl}}"}}]},{F:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{F:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{F:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Z:"{{displayUrl}}"}]});a.P(b.ya("ytp-ad-overlay-title"),"click",function(c){C2(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-link"),"click",function(c){C2(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-close-container"),"click",a.ek);a.P(b.ya("ytp-ad-overlay-text-image"),"click",a.z2);b.hide();return b};
RWa=function(a){var b=new g.ZK({F:"div",L:"ytp-ad-image-overlay",S:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",S:[{F:"button",L:"ytp-ad-overlay-close-button",S:[nL(TWa)]}]},{F:"div",L:"ytp-ad-overlay-image",S:[{F:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.P(b.ya("ytp-ad-overlay-image"),"click",function(c){C2(a,b.element,c)});
a.P(b.ya("ytp-ad-overlay-close-container"),"click",a.ek);b.hide();return b};
VWa=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.qz(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.eh("video-ads ytp-ad-module")||null,null==b)g.qz(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ea=new g.ZK({F:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.M(a,a.Ea),a.Ea.xa(b),b=new DL(a.api,a.bb,a.layoutId,a.j,a.Wa,a.Ea.element,!1),g.M(a,b),b.init(FI("ad-info-hover-text-button"),
c,a.macros),a.I){b.xa(a.I,0);b.subscribe("f",a.H_,a);b.subscribe("e",a.FJ,a);a.P(a.I,"click",a.I_);var d=g.eh("ytp-ad-button",b.element);a.P(d,"click",function(){var e,f;if(g.av(null==(e=c.button)?void 0:null==(f=e.buttonRenderer)?void 0:f.serviceEndpoint,UWa))a.Ra=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.eb=b}else g.qz(Error("Ad info button container within overlay ad was not present."))}else g.rz(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
XWa=function(a,b){if(WWa(a,D2)||a.api.wf())return!1;var c=aL(b.title),d=aL(b.description);if(g.fb(c)||g.fb(d))return!1;a.Ai(a.C.element,b.trackingParams||null);a.C.Ja("title",aL(b.title));a.C.Ja("description",aL(b.description));a.C.Ja("displayUrl",aL(b.displayUrl));b.navigationEndpoint&&g.dc(a.N,b.navigationEndpoint);a.C.show();a.Ha.start();a.Ta(a.C.element,!0);a.P(a.C.element,"mouseover",function(){a.W++});
return!0};
YWa=function(a,b){if(WWa(a,D2)||a.api.wf())return!1;var c=aL(b.title),d=aL(b.description);if(g.fb(c)||g.fb(d))return!1;a.Ai(a.B.element,b.trackingParams||null);a.B.Ja("title",aL(b.title));a.B.Ja("description",aL(b.description));a.B.Ja("displayUrl",aL(b.displayUrl));a.B.Ja("imageUrl",MEa(b.image));b.navigationEndpoint&&g.dc(a.N,b.navigationEndpoint);a.La=b.imageNavigationEndpoint||null;a.B.show();a.Ha.start();a.Ta(a.B.element,!0);a.P(a.B.element,"mouseover",function(){a.W++});
return!0};
ZWa=function(a,b){if(a.api.wf())return!1;var c=NEa(b.image),d=c;c.width<D2.width&&(d=D2);if(0===c.width||0===c.height||WWa(a,d))return!1;a.Ai(a.u.element,b.trackingParams||null);a.u.Ja("imageUrl",MEa(b.image));a.u.Ja("width",c.width);a.u.Ja("height",c.height);b.navigationEndpoint&&g.dc(a.N,b.navigationEndpoint);b=a.u.ya("ytp-ad-image-overlay");g.yl(b,"max-width",c.width+"px");a.u.show();a.Ta(a.u.element,!0);a.P(a.u.element,"mouseover",function(){a.W++;a.api.lJ("invideo-overlay",a.layoutId)});
a.P(a.u.element,"mouseout",function(){a.api.kJ("invideo-overlay",a.layoutId)});
return!0};
WWa=function(a,b){var c=a.api.Za().Ji(),d=a.api.Sj(!0,!1);return(b=pWa(c,c.height-(d.height+d.top),b))?(a.va&&b&&(c=g.Gf(a.macros),c.ERRORCODE=b.MA.toString(),c.ERROR_MSG=b.errorMessage,a.api.R().K("enable_macro_substitution_on_html5")?a.layoutId?f_(a.Wa,a.va,a.layoutId,c):g.qz(Error("Missing layoutId for invideo_overlay_ad.")):AL(a.Wa,a.va,c)),!0):!1};
C2=function(a,b,c){var d=g.Gf(a.macros),e=g.Jl(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Hl(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.W.toString()}};
b=g.r(a.N);for(c=b.next();!c.done;c=b.next())c=c.value,a.api.R().K("enable_macro_substitution_on_html5")?a.layoutId?f_(a.Wa,c,a.layoutId,d):g.qz(Error("Missing layoutId for invideo_overlay_ad.")):AL(a.Wa,c,d);a.api.pauseVideo()};
$Wa=function(a,b){a=a.api.getRootNode();g.N(a,"ytp-ad-overlay-open",b);g.N(a,"ytp-ad-overlay-closed",!b)};
aXa=function(a,b,c,d,e,f){GL.call(this,a,b,{F:"div",L:"ytp-ad-message-overlay",S:[{F:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var h=this;this.W=-1;this.C=0;this.N=!1;this.va=this.ya("ytp-ad-message-slot");this.B=new g.ZK({F:"span",L:"ytp-ad-message-container"});this.B.xa(this.va);g.M(this,this.B);this.messageText=new EL(this.api,this.bb,this.layoutId,this.j,e,"ytp-ad-message-text");g.M(this,this.messageText);this.messageText.xa(this.B.element);this.I=new g.JL(this.B,400,!1,100,function(){return h.hide()});
g.M(this,this.I);this.hide()};
bXa=function(a,b){a=a.api.getRootNode();g.N(a,"ytp-ad-overlay-open",b);g.N(a,"ytp-ad-overlay-closed",!b)};
cXa=function(a,b,c,d,e){$K.call(this,a,b,{F:"div",L:"ytp-ad-underlay-companion",S:[{F:"div",L:"ytp-ad-underlay-side-container",S:[{F:"div",L:"ytp-ad-underlay-image-container"},{F:"div",L:"ytp-ad-underlay-description-container"},{F:"div",L:"ytp-ad-underlay-headline-container"},{F:"div",L:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d,e);this.actionButton=null;this.va=this.ya("ytp-ad-underlay-image-container");this.C=new uL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-underlay-image");
g.M(this,this.C);this.C.xa(this.va);this.W=this.ya("ytp-ad-underlay-headline-container");this.B=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-underlay-headline");g.M(this,this.B);this.B.xa(this.W);this.N=this.ya("ytp-ad-underlay-description-container");this.D=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-underlay-description");g.M(this,this.D);this.D.xa(this.N);this.I=this.ya("ytp-ad-underlay-action-button-container");this.u=this.ya("ytp-ad-underlay-side-container");
this.hide()};
dXa=function(a){var b=g.eh("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
E2=function(a,b,c,d,e){$K.call(this,a,b,{F:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.u=null;this.toggledLoggingParams="";this.answer=this.ya("ytp-ad-survey-answer");this.hide()};
eXa=function(a,b,c,d,e){$K.call(this,a,b,{F:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.u=this.ya("ytp-ad-survey-none-of-the-above");this.hide()};
F2=function(a,b,c,d,e){oL.call(this,a,b,c,d,e,["ytp-ad-survey-submit-button"],"survey-submit")};
G2=function(a,b,c,d,e,f){$K.call(this,a,b,{F:"div",L:"ytp-ad-survey-player-overlay",S:[{F:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{F:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{F:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{F:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{F:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d,e);this.C=f;this.B=this.u=null;this.D=this.ya("ytp-ad-survey-player-overlay-instream-info");
this.I=this.ya("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.ya("ytp-ad-survey-player-overlay-submit");g.M(this,this.C);this.hide()};
H2=function(a,b,c,d,e,f){$K.call(this,a,b,{F:"div",L:"ytp-ad-survey-question",S:[{F:"div",Ca:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{F:"div",Ca:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{F:"div",Ca:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{F:"div",L:"ytp-ad-survey-question-background"}]},f,c,d,e);this.D=null;this.B=[];this.u=null;this.question=this.ya("ytp-ad-survey-question");this.N=this.ya("ytp-ad-survey-question-background");
this.questionText=this.ya("ytp-ad-survey-question-text");this.answers=this.ya("ytp-ad-survey-answers");this.playerOverlay=this.ya("ytp-ad-survey-question-player-overlay");this.C=g.Wa()};
fXa=function(a,b,c){var d=new E2(a.api,a.bb,a.layoutId,a.j,a.Wa);d.xa(a.answers);d.init(FI("survey-answer"),b,c);a.B.push(d)};
gXa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&tL(c)||"",g.fb(c)?g.rz(Error("Found ThumbnailDetails without valid image URL")):g.yl(a.N,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.qz(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Wa();a.u=new VL(a.api,b.durationMilliseconds);
g.M(a,a.u);if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new G2(a.api,a.bb,a.layoutId,a.j,a.Wa,a.u);d.xa(a.playerOverlay);d.init(FI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.M(a,d);a.bS()}catch(e){g.qz(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.qz(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+
JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new eM(a.api,a.u),b.xa(a.playerOverlay),g.M(a,b)):g.qz(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.qz(Error("addCommonComponents() needs to be called before starting countdown."))};
hXa=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.Wa()-a.C).toString()})};
iXa=function(a,b,c,d,e){H2.call(this,a,b,c,d,e,"survey-question-multi-select");this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
jXa=function(a,b,c){a.noneOfTheAbove=new eXa(a.api,a.bb,a.layoutId,a.j,a.Wa);a.noneOfTheAbove.xa(a.answers);a.noneOfTheAbove.init(FI("survey-none-of-the-above"),b,c)};
lXa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
kXa(a,!0)};
kXa=function(a,b){var c=a.D;a=mXa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof RL&&!c.u.I&&xFa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
mXa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
I2=function(a,b,c,d,e){H2.call(this,a,b,c,d,e,"survey-question-single-select");this.hide()};
J2=function(a,b,c,d,e){$K.call(this,a,b,{F:"div",L:"ytp-ad-survey",S:[{F:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.questions=[];this.u=this.ya("ytp-ad-survey-questions");this.hide()};
K2=function(a,b,c,d,e){$K.call(this,a,b,{F:"div",L:"ytp-ad-survey-interstitial",S:[{F:"div",L:"ytp-ad-survey-interstitial-contents",S:[{F:"div",L:"ytp-ad-survey-interstitial-logo",S:[{F:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{F:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.u=this.actionButton=null;this.interstitial=this.ya("ytp-ad-survey-interstitial");this.B=this.ya("ytp-ad-survey-interstitial-contents");this.text=this.ya("ytp-ad-survey-interstitial-text");
this.logoImage=this.ya("ytp-ad-survey-interstitial-logo-image");this.transition=new g.JL(this,500,!1,300);g.M(this,this.transition)};
nXa=function(a,b){b=b&&tL(b)||"";if(g.fb(b))g.rz(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Dc&&10>document.documentMode)c=qg;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.mh("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Aka(d.style)}b=eda(c,dda({"background-image":'url("'+b+'")'}));a.style.cssText=pg(b)}};
oXa=function(a){var b=g.eh("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
L2=function(a,b,c,d){yL.call(this,a);this.api=a;this.Wa=c;this.u={};this.J=b;a=new g.X({F:"div",Ca:["video-ads","ytp-ad-module"]});g.M(this,a);JF&&g.ho(a.element,"ytp-ads-tiny-mode");this.D=new TK(a.element);g.M(this,this.D);g.AN(this.api,a.element,4);LUa(d)&&(d=new g.X({F:"div",Ca:["ytp-ad-underlay"]}),g.M(this,d),this.B=new TK(d.element),g.M(this,this.B),g.AN(this.api,d.element,0));g.M(this,fFa())};
pXa=function(a,b){a=g.Ef(a.u,b.id,null);null==a&&g.rz(Error("Component not found for element id: "+b.id));return a||null};
qXa=function(a){g.bO.call(this,a);var b=this;this.u=this.bb=null;this.created=!1;this.lr=new zK(this.player);this.B=function(){function d(){return b.bb}
if(null!=b.u)return b.u;var e=mEa({Kr:a.getVideoData(1)});e=new JSa({MW:new B2(function(){return b.bb},A2(b.j).lm),
wr:e.vY(),tX:d,l_:d,Zj:A2(b.j).Zj,jk:e.QH(),xl:A2(b.j).xl,G:b.player,oh:A2(b.j).oh,Pa:b.j.j.Pa,Mi:A2(b.j).Mi,fd:b.j.j.fd});b.u=e.YV;return b.u};
this.j=new KWa(this.player,this,this.lr,this.B);g.M(this,this.j);var c=a.R();!bG(c)||g.UF(c)||dG(c)||(g.M(this,new L2(a,function(){return b.bb},A2(this.j).Wa,A2(this.j).oh)),g.M(this,new LWa(a)))};
rXa=function(a){a.created!==a.loaded&&eA("Created and loaded are out of sync")};
sXa=function(a,b){b===a.Su&&(a.Su=void 0)};
tXa=function(a){a.bb?A2(a.j).Gc.iI()||a.bb.iI()||A2(a.j).wq.Sr():eA("AdService is null when calling maybeUnlockPrerollIfReady")};
uXa=function(a){a=g.r(A2(a.j).Mi.yj.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.Xa)return!0;return!1};
vXa=function(a){a=g.r(A2(a.j).Mi.yj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
Iua=function(a,b,c,d){c=void 0===c?"":c;d=void 0===d?"":d;var e=A2(a.j).oh,f=a.player.getVideoData(1),h=f&&f.getPlayerResponse()||{};h=h&&h.playerConfig&&h.playerConfig.daiConfig&&h.playerConfig.daiConfig.enableDai||!1;f=f&&f.nf()||!1;e=wXa(b,e,h,f,A2(a.j).il);Lua(A2(a.j).Hc,c,e.HD,b,d);a.bb&&0<e.Vx.length&&(a=a.bb,b=e.Vx,b=tEa(a,b),b=uEa(a,b),vEa(a,b))};
wXa=function(a,b,c,d,e){var f={Vx:[],HD:[]};a=g.r(a);for(var h=a.next();!h.done;h=a.next())if((h=h.value)&&null!=h.renderer){var l=h.renderer;if(!JUa(b)){var m=void 0,n=void 0,p=void 0,q=void 0,v=e;if(null==(q=l.sandwichedLinearAdRenderer)?0:null==(p=q.adVideoStart)?0:p.adMessageRenderer)m=GSa(l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,v),l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer=m;else if(null==(n=l.linearAdSequenceRenderer)?0:null==(m=n.adStart)?0:m.adMessageRenderer)m=
GSa(l.linearAdSequenceRenderer.adStart.adMessageRenderer,v),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,g.nG(l.G.R())?l=l.G.R().K("html5_enable_vod_lsar_ivar_pacf_unplugged"):bG(l.G.R())||g.cG(l.G.R())?l=!0:(eA("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?JUa(m):n||MSa(m):null!=l.sandwichedLinearAdRenderer?D_(m):!1;l?f.HD.push(h):f.Vx.push(h)}return f};
xXa=function(){if(!g.Dc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.zXa=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=xg(a);return b.parseFromString(g.wg(a),"application/xml")}if(yXa){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.M2=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={F:"svg",T:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},S:[{F:"g",T:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{F:"g",T:{transform:"translate(-1.000000, -3.000000)"},S:[{F:"polygon",T:{points:"0 0 24 0 24 24 0 24"}},{F:"path",T:{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.R().K("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={F:"svg",T:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},S:[{F:"g",T:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{F:"g",T:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},S:[{F:"path",T:{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.X.call(this,{F:"button",Ca:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],T:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},S:[d]});this.G=a;this.Na("click",this.onClick,this);this.Ja("title",EO(a,e,"i"));g.cf(this,g.$O(b.pc(),this.element))};
aaa=[];ea="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};
g.da=caa(this);fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;ea(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
fa("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=g.da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ea(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var AXa="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)ia(d,e)&&(a[e]=d[e])}return a};
fa("Object.assign",function(a){return a||AXa});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},BXa=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=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),CXa;
if("function"==typeof Object.setPrototypeOf)CXa=Object.setPrototypeOf;else{var DXa;a:{var EXa={a:!0},FXa={};try{FXa.__proto__=EXa;DXa=FXa.a;break a}catch(a){}DXa=!1}CXa=DXa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ka=CXa;
la.prototype.N=function(a){this.u=a};
la.prototype.return=function(a){this.B={return:a};this.j=this.D};
la.prototype.Ma=function(a){this.j=a};
fa("Reflect",function(a){return a?a:{}});
fa("Reflect.construct",function(){return BXa});
fa("Reflect.setPrototypeOf",function(a){return a?a:ka?function(b,c){try{return ka(b,c),!0}catch(d){return!1}}:null});
fa("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.J=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.da.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.ra),reject:h(this.D)}};
b.prototype.ra=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.va(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.Y(h):this.I(h)}};
b.prototype.Y=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ea(l,h):this.I(h)};
b.prototype.D=function(h){this.N(2,h)};
b.prototype.I=function(h){this.N(1,h)};
b.prototype.N=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.qa();this.V()};
b.prototype.qa=function(){var h=this;e(function(){if(h.W()){var l=g.da.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.W=function(){if(this.J)return!1;var h=g.da.CustomEvent,l=g.da.Event,m=g.da.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.da.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.V=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.va=function(h){var l=this.C();h.FB(l.resolve,l.reject)};
b.prototype.Ea=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(v,w){return"function"==typeof v?function(y){try{n(v(y))}catch(A){p(A)}}:w}
var n,p,q=new b(function(v,w){n=v;p=w});
this.FB(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.FB=function(h,l){function m(){switch(n.j){case 1:h(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.J=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.r(h),p=n.next();!p.done;p=n.next())d(p.value).FB(l,m)})};
b.all=function(h){var l=g.r(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(y){return function(A){v[y]=A;w--;0==w&&n(v)}}
var v=[],w=0;do v.push(void 0),w++,d(m.value).FB(q(v.length-1),p),m=l.next();while(!m.done)})};
return b});
fa("Array.prototype.find",function(a){return a?a:function(b,c){return maa(this,b,c).vT}});
fa("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(!ia(m,h)){var n=new c;ea(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ia(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ia(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ia(m,h)&&ia(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ia(m,h)&&ia(m[h],this.j)?delete m[h][this.j]:!1};
return b});
fa("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return daa(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=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&ia(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 h=0;return e});
fa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
fa("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
fa("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
fa("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}});
fa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
fa("Array.prototype.entries",function(a){return a?a:function(){return Ba(this,function(b,c){return[b,c]})}});
fa("Array.prototype.keys",function(a){return a?a:function(){return Ba(this,function(b){return b})}});
fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
fa("Object.setPrototypeOf",function(a){return a||ka});
fa("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(h){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});
fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ia(b,d)&&c.push([d,b[d]]);return c}});
fa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
fa("Array.prototype.values",function(a){return a?a:function(){return Ba(this,function(b,c){return c})}});
fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
fa("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}});
fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ca(this,b,"includes").indexOf(b,c||0)}});
fa("globalThis",function(a){return a||g.da});
fa("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;
})})}});
fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return maa(this,b,c).AP}});
fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ia(b,d)&&c.push(b[d]);return c}});
fa("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}});
fa("Int8Array.prototype.fill",Da);fa("Uint8Array.prototype.fill",Da);fa("Uint8ClampedArray.prototype.fill",Da);fa("Int16Array.prototype.fill",Da);fa("Uint16Array.prototype.fill",Da);fa("Int32Array.prototype.fill",Da);fa("Uint32Array.prototype.fill",Da);fa("Float32Array.prototype.fill",Da);fa("Float64Array.prototype.fill",Da);fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
fa("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ca(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
fa("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}});
fa("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});
fa("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}});
fa("Int8Array.prototype.copyWithin",Ea);fa("Uint8Array.prototype.copyWithin",Ea);fa("Uint8ClampedArray.prototype.copyWithin",Ea);fa("Int16Array.prototype.copyWithin",Ea);fa("Uint16Array.prototype.copyWithin",Ea);fa("Int32Array.prototype.copyWithin",Ea);fa("Uint32Array.prototype.copyWithin",Ea);fa("Float32Array.prototype.copyWithin",Ea);fa("Float64Array.prototype.copyWithin",Ea);fa("Number.parseInt",function(a){return a||parseInt});
Ci=Ci||{};g.C=this||self;Qa="closure_uid_"+(1E9*Math.random()>>>0);naa=0;g.Xa(Za,Error);Za.prototype.name="CustomError";var yda;g.Xa(bb,Za);bb.prototype.name="AssertionError";var xe=void 0,we,Jba="undefined"!==typeof TextDecoder,taa,saa="undefined"!==typeof TextEncoder;var kb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},yaa=/&/g,zaa=/</g,Aaa=/>/g,Baa=/"/g,Caa=/'/g,Daa=/\x00/g,xaa=/[\x00&<>"']/;var GXa=g.Ha("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var sb;if(null!=GXa&&GXa){var HXa=g.C.navigator;sb=HXa?HXa.userAgentData||null:null}else sb=null;var Maa,Qk,Nl;Maa=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.IXa=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.tc=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.wm=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Pk=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
Qk=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.tc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Nl=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.Od=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};vc[" "]=function(){};var zl,tT,sSa,JXa,KXa,LXa,IF,JF,MXa;g.KF=xb();g.Dc=zb();g.yw=vb("Edge");g.rG=g.yw||g.Dc;zl=vb("Gecko")&&!(jb(g.rb(),"WebKit")&&!vb("Edge"))&&!(vb("Trident")||vb("MSIE"))&&!vb("Edge");g.kf=jb(g.rb(),"WebKit")&&!vb("Edge");tT=Ob();sSa=Jaa();g.Yu=Iaa();JXa=Jb();KXa=vb("iPad");LXa=vb("iPod");IF=Lb();JF=jb(g.rb(),"KaiOS");
a:{var NXa="",OXa=function(){var a=g.rb();if(zl)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.yw)return/Edge\/([\d\.]+)/.exec(a);if(g.Dc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.kf)return/WebKit\/(\S+)/.exec(a);if(g.KF)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
OXa&&(NXa=OXa?OXa[1]:"");if(g.Dc){var PXa=Waa();if(null!=PXa&&PXa>parseFloat(NXa)){MXa=String(PXa);break a}}MXa=NXa}var xc=MXa,Xaa={},QXa;if(g.C.document&&g.Dc){var RXa=Waa();QXa=RXa?RXa:parseInt(xc,10)||void 0}else QXa=void 0;var Yaa=QXa;var TF,xI;g.pB=Bb();TF=Jb()||vb("iPod");xI=vb("iPad");g.LF=Faa();g.bE=Cb();g.Zv=Fb()&&!Lb();var $aa={},Gc=null;var Hc="undefined"!==typeof Uint8Array,cba,Kc={};var dba;Oc.prototype.isEmpty=function(){return null==this.qd};var Wc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Qd,od=Object.freeze(Zc([])),SXa="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;g.k=Pd.prototype;g.k.toJSON=function(){var a=this.pd;return Qd?a:kd(a,nba,oba)};
g.k.clone=function(){var a=kd(this.pd,pba,hba);ad(a);Nd=a;a=new this.constructor(a);Nd=null;ae(a,this);return a};
g.k.isMutable=function(){return!ed(this)};
g.k.Xp=function(){return ed(this)};
g.k.toString=function(){return this.pd.toString()};
var Nd;var Eba,Bba;Eba="function"===typeof Uint8Array.prototype.slice;g.de=0;g.ee=0;Bba="function"===typeof BigInt;g.k=g.fe.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.xB=void 0===d.xB?!1:d.xB;a&&(a=ce(a),this.u=a.buffer,this.D=a.Xp,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.xB=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){ge(this,this.j+a)};
g.k.hB=aa(0);var Gba=[];te.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
te.prototype.advance=function(a){this.j.advance(a)};
var aU=[];var Mba;ze.prototype.length=function(){return this.j.length};
ze.prototype.end=function(){var a=this.j;this.j=[];return a};g.u(Ie,Pd);Ie.prototype.GA=function(){return this};
if(SXa){var TXa={};Object.defineProperties(Ie,(TXa[Symbol.hasInstance]=jba(function(){throw Error(void 0);}),TXa))};var Je,Ne,Me,Le,UXa,VXa,WXa,Q2,XXa,R2,YXa;Je=Symbol();Ne=Symbol();Me=Symbol();Le=Symbol();UXa=g.Se(function(a,b,c){if(1!==a.u)return!1;a=g.oe(a.j);wd(b,c,a,0);return!0},g.Te);
VXa=g.Se(function(a,b,c){if(0!==a.u)return!1;a=g.he(a.j);wd(b,c,a,0);return!0},g.Ue);
WXa=g.Se(function(a,b,c){if(0!==a.u)return!1;a=g.me(a.j);wd(b,c,a,0);return!0},g.Ve);
g.N2=g.Se(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,g.ye(a));return!0},g.nca);
g.O2=g.Se(function(a,b,c,d,e){if(2!==a.u)return!1;g.ve(a,Jd(b,c,d),e);return!0},function(a,b,c,d,e){b=Cd(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Rba(a,c);e(b[d],a);Sba(a,f)}});
g.P2=g.Se(function(a,b,c,d,e,f){if(2!==a.u)return!1;(f=yd(b,f))&&f!==c&&vd(b,f);b=g.uba(b,d,c);g.ve(a,b,e);return!0},g.oca);
Q2=g.Se(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,Kba(a));return!0},function(a,b,c){b=rd(b,c);
null!=b&&g.He(a,c,ce(b).buffer)});
XXa=g.Se(function(a,b,c){if(2!==a.u)return!1;a=Kba(a);g.xd(b,c,a,void 0,!0);return!0},function(a,b,c){b=sba(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.He(a,c,ce(e).buffer)}});
R2=g.Se(function(a,b,c){if(0!==a.u)return!1;g.D(b,c,g.me(a.j)>>>0);return!0},function(a,b,c){b=g.md(b,c);
null!=b&&null!=b&&(g.Ge(a,c,0),Ae(a.j,b))});
YXa=g.Se(function(a,b,c){if(0!==a.u)return!1;g.D(b,c,g.me(a.j));return!0},function(a,b,c){b=g.md(b,c);
null!=b&&(b=parseInt(b,10),g.Ge(a,c,0),Pba(a.j,b))});g.u(g.J,Ie);g.J.prototype.GA=function(){if(ed(this)){var a={WG:!0};var b=ed(this);if(b&&!a.WG)throw Error("copyRepeatedFields must be true for frozen messages");b||gba(this.pd);var c=new this.constructor;this.C&&(c.C=this.C.slice());for(var d=this.pd,e=0;e<d.length;e++){var f=d[e];if(e===d.length-1&&fd(f))for(var h in f){var l=+h;Number.isNaN(l)?ld(c)[h]=f[h]:Uba(this,c,l,f[h],b,a)}else Uba(this,c,e-this.B,f,b,a)}c.J=this;a=c}else a=this;return a};
if(SXa){var ZXa={};Object.defineProperties(g.J,(ZXa[Symbol.hasInstance]=jba(Object[Symbol.hasInstance]),ZXa))};g.u(qca,g.J);var $Xa=[qca,1,Q2,2,Q2];g.u(rca,g.J);var aYa=[rca,1,Q2,2,Q2];g.u(We,g.J);var bYa=[We,1,Q2,2,Q2];g.u(Xe,g.J);var S2=[1,2,3],cYa=[Xe,1,g.P2,$Xa,S2,2,g.P2,aYa,S2,3,g.P2,bYa,S2];g.k=Ye.prototype;g.k.RW=function(a){var b=g.za.apply(1,arguments),c=this.HH(b);c?c.push(new sca(a)):this.sS(a,b)};
g.k.sS=function(a){this.Zu.set(this.VO(g.za.apply(1,arguments)),[new sca(a)])};
g.k.HH=function(){var a=this.VO(g.za.apply(0,arguments));return this.Zu.has(a)?this.Zu.get(a):void 0};
g.k.yY=function(){var a=this.HH(g.za.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Zu.clear()};
g.k.VO=function(){var a=g.za.apply(0,arguments);return a?a.join(","):"key"};g.u(Ze,Ye);Ze.prototype.B=function(a){var b=g.za.apply(1,arguments),c=0,d=this.yY(b);d&&(c=d.YN);this.sS(c+a,b)};g.u($e,Ye);$e.prototype.dh=function(a){this.RW(a,g.za.apply(1,arguments))};g.K.prototype.jm=!1;g.K.prototype.isDisposed=function(){return this.jm};
g.K.prototype.dispose=function(){this.jm||(this.jm=!0,this.ea())};
g.K.prototype.ea=function(){if(this.Eh)for(;this.Eh.length;)this.Eh.shift()()};g.df.prototype.stopPropagation=function(){this.u=!0};
g.df.prototype.preventDefault=function(){this.defaultPrevented=!0};var jf={};var Ica=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",function(){},b),g.C.removeEventListener("test",function(){},b)}catch(c){}return a}();var aIa=wca("AnimationEnd"),iLa=wca("TransitionEnd");g.Xa(lf,g.df);var dYa={2:"touch",3:"pen",4:"mouse"};
lf.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)?zl&&(wc(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:dYa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&lf.Le.preventDefault.call(this)};
lf.prototype.stopPropagation=function(){lf.Le.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
lf.prototype.preventDefault=function(){lf.Le.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var xca="closure_listenable_"+(1E6*Math.random()|0);var yca=0;var Eca="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Jf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=Lf(a,b,d,e);-1<h?(b=a[h],c||(b.EB=!1)):(b=new zca(b,this.src,f,!!d,e),b.EB=c,a.push(b));return b};
Jf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Lf(e,b,c,d);return-1<b?(nf(e[b]),g.Yb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
Jf.prototype.Ly=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Lf(a,b,c,d));return-1<e?a[e]:null};var Qf="closure_lm_"+(1E6*Math.random()|0),Sf={},Kca=0,Tf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Xa(g.Uf,g.K);g.Uf.prototype[xca]=!0;g.k=g.Uf.prototype;g.k.addEventListener=function(a,b,c,d){g.Nf(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Mca(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.Ha;if(b){var c=[];for(var d=1;b;b=b.Ha)c.push(b),++d}b=this.Cb;d=a.type||a;if("string"===typeof a)a=new g.df(a,b);else if(a instanceof g.df)a.target=a.target||b;else{var e=a;a=new g.df(d,b);g.If(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Vf(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Vf(h,d,!0,a)&&e,a.u||(e=Vf(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Vf(h,d,!1,a)&&e;return e};
g.k.ea=function(){g.Uf.Le.ea.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,nf(d[e]);delete a.listeners[c];a.j--}}this.Ha=null};
g.k.Na=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.dD=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.uc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Ly=function(a,b,c,d){return this.B.Ly(String(a),b,c,d)};Wf.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 Gda=g.Dc||g.kf;var eYa={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 bg;dg.prototype.Qm=!0;dg.prototype.Qj=function(){return this.j};
var Rca={},Qca={};g.fg("");var Sca={};gg.prototype.toString=function(){return this.j.toString()};
gg.prototype.Qj=function(){return this.j.toString()};hg.prototype.toString=function(){return this.j+""};
hg.prototype.Qm=!0;hg.prototype.Qj=function(){return this.j.toString()};
var Xca=/%{(\w+)}/g,Wca=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Uca={};kg.prototype.toString=function(){return this.j.toString()};
kg.prototype.Qm=!0;kg.prototype.Qj=function(){return this.j.toString()};
var $ca=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Zca=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,jg={},ada=new kg("about:invalid#zClosurez",jg);var ng={};og.prototype.Qj=function(){return this.j};
og.prototype.toString=function(){return this.j.toString()};
var qg=new og("",ng),hda=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),gda=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),fda=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"),ida=/\/\*/;var ug={};vg.prototype.Qj=function(){return this.j.toString()};
vg.prototype.toString=function(){return this.j.toString()};
var fYa=/^[a-zA-Z0-9-]+$/,gYa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},hYa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},mda=new vg(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",ug);var qda=$f(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.wg(mda);return!b.parentElement}),sda=/^[\w+/_-]+[=]{0,2}$/;g.k=g.Gg.prototype;g.k.clone=function(){return new g.Gg(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.Gg&&Hg(this,a)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Qg.prototype;g.k.clone=function(){return new g.Qg(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!Sg(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.iYa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Ada={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Zg.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.ya=function(a){return g.eh(a,this.j)};
g.k.createElement=function(a){return hh(this.j,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){Eda($g(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.qh;g.k.contains=g.sh;var xh;zh.prototype.add=function(a,b){var c=Nda.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
zh.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 Nda=new Wf(function(){return new Ah},function(a){return a.reset()});
Ah.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};
Ah.prototype.reset=function(){this.next=this.scope=this.j=null};var Bh,Ch=!1,Lda=new zh;Oda.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var Pda=new Wf(function(){return new Oda},function(a){a.reset()});
g.Fh.prototype.then=function(a,b,c){return Xda(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Fh.prototype.$goog_Thenable=!0;g.k=g.Fh.prototype;g.k.Wi=function(a,b){return Xda(this,null,a,b)};
g.k.catch=g.Fh.prototype.Wi;g.k.cancel=function(a){if(0==this.j){var b=new Mh(a);g.Dh(function(){Tda(this,b)},this)}};
g.k.u5=function(a){this.j=0;Eh(this,2,a)};
g.k.v5=function(a){this.j=0;Eh(this,3,a)};
g.k.iY=function(){for(var a;a=Uda(this);)Vda(this,a,this.j,this.J);this.I=!1};
var aea=Jda;g.Xa(Mh,Za);Mh.prototype.name="cancel";g.Xa(g.Oh,g.Uf);g.k=g.Oh.prototype;g.k.enabled=!1;g.k.qc=null;g.k.setInterval=function(a){this.ph=a;this.qc&&this.enabled?(this.stop(),this.start()):this.qc&&this.stop()};
g.k.Y4=function(){if(this.enabled){var a=g.Wa()-this.YP;0<a&&a<.8*this.ph?this.qc=this.FA.setTimeout(this.NN,this.ph-a):(this.qc&&(this.FA.clearTimeout(this.qc),this.qc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.qc||(this.qc=this.FA.setTimeout(this.NN,this.ph),this.YP=g.Wa())};
g.k.stop=function(){this.enabled=!1;this.qc&&(this.FA.clearTimeout(this.qc),this.qc=null)};
g.k.ea=function(){g.Oh.Le.ea.call(this);this.stop();delete this.FA};g.k=g.Rh.prototype;g.k.zK=function(a){this.D=a;this.C=1};
g.k.zF=function(){var a=this.j.values();a=[].concat(g.t(a)).filter(function(b){return b.Zu.size});
a.length&&this.J.flush(a,this.D);dea(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.ip=function(a){var b=g.za.apply(1,arguments);this.j.has(a)||this.j.set(a,new Ze(a,b))};
g.k.wB=function(a){var b=g.za.apply(1,arguments);this.j.has(a)||this.j.set(a,new $e(a,b))};
g.k.Yq=function(a){this.yF.apply(this,[a,1].concat(g.t(g.za.apply(1,arguments))))};
g.k.yF=function(a,b){var c=g.za.apply(2,arguments),d=cea(this,a);d&&d instanceof Ze&&(d.B(b,c),bea(this))};
g.k.dh=function(a,b){var c=g.za.apply(2,arguments),d=cea(this,a);d&&d instanceof $e&&(d.dh(b,c),bea(this))};eea.prototype.dh=function(a,b,c,d,e){this.j.dh("/client_streamz/po/w/rl",a,b,c,d,e)};
fea.prototype.dh=function(a,b,c){this.j.dh("/client_streamz/po/w/el",a,b,c)};var hea,iea;g.u(g.Sh,g.J);g.u(g.Th,g.J);g.u(g.Uh,g.J);g.u(g.Vh,g.J);hea=[3,6,4];iea=[1];g.Xh=[1,2,3];g.Wh=[1,2,3];g.u(kea,g.J);var jea=[1];var rea={};g.k=Yh.prototype;g.k.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{gD:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.r3a;d=c.X3||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.gD}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=kb(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{gD:0,path:b,domain:c});return d};
g.k.Tn=function(){return Zh(this).keys};
g.k.Rj=function(){return Zh(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Zh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Ku=new Yh("undefined"==typeof document?null:document);g.u(bi,g.J);var uea=[2];g.ci.prototype.u=0;g.ci.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.ci.prototype.getValue=function(){return this.B};var yea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},xea=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;gi.prototype.B=null;gi.prototype.getOptions=function(){return this.B||(this.B=this.C())};var jYa;g.Xa(hi,gi);hi.prototype.j=function(){var a=Aea(this);return a?new ActiveXObject(a):new XMLHttpRequest};
hi.prototype.C=function(){var a={};Aea(this)&&(a[0]=!0,a[1]=!0);return a};
jYa=new hi;var oi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Iea=/#|$/,Jea=/[?&]($|#)/;g.Xa(g.Ai,g.Uf);var Tea=/^https?$/i,kYa=["POST","PUT"],Mea=[];g.k=g.Ai.prototype;g.k.sX=function(){this.dispose();g.Zb(Mea,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Y=a;this.D="";this.u=0;this.va=!1;this.C=!0;this.j=this.V?this.V.j():jYa.j();this.qa=this.V?this.V.getOptions():jYa.getOptions();this.j.onreadystatechange=(0,g.Ta)(this.lR,this);try{this.getStatus(),this.Ea=!0,this.j.open(b,String(a),!0),this.Ea=!1}catch(h){this.getStatus();Qea(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.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(h){return"content-type"==h.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.Wb(kYa,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.La&&(this.j.responseType=this.La);"withCredentials"in this.j&&this.j.withCredentials!==this.J&&(this.j.withCredentials=this.J);try{Sea(this),0<this.N&&(this.Ra=Oea(this.j),this.getStatus(),this.Ra?(this.j.timeout=this.N,this.j.ontimeout=(0,g.Ta)(this.CM,
this)):this.ra=g.Ph(this.CM,this.N,this)),this.getStatus(),this.W=!0,this.j.send(a),this.W=!1}catch(h){this.getStatus(),Qea(this,h)}};
g.k.CM=function(){"undefined"!=typeof Ci&&this.j&&(this.D="Timed out after "+this.N+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.I=!0,this.j.abort(),this.I=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Bi(this))};
g.k.ea=function(){this.j&&(this.C&&(this.C=!1,this.I=!0,this.j.abort(),this.I=!1),Bi(this,!0));g.Ai.Le.ea.call(this)};
g.k.lR=function(){this.isDisposed()||(this.Ea||this.W||this.I?Rea(this):this.F1())};
g.k.F1=function(){Rea(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Di(this)};
g.k.getStatus=function(){try{return 2<g.Di(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};g.u(Ii,g.J);g.u(Ji,g.J);var Vea=[1];var ifa=["platform","platformVersion","architecture","model","uaFullVersion"];new Ji;g.u(Ki,g.J);g.u(Li,g.J);Li.prototype.K=function(){return nd(this,7)};
var Wea=[3,20,27];g.u(Yea,g.J);var Xea=[3,5];g.u($ea,g.J);var Zea=[5];g.u(afa,g.J);var lYa;lYa=new function(a,b,c){this.j=a;this.fieldName=b;this.Nr=c;this.isRepeated=0;this.u=pca}(175237375,{U2a:0},afa);g.u(Ni,g.Uf);g.k=Ni.prototype;g.k.ea=function(){this.yH();g.Uf.prototype.ea.call(this)};
g.k.dispatch=function(a){if(a instanceof Li)this.log(a);else{var b=new Li;a=Rd(a);b=g.D(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Eb++;g.D(a,21,b);this.W&&g.D(a,26,this.W);if(!g.md(a,1)){b=a;var c=Date.now().toString();g.D(b,1,c)}null!=g.md(a,15)||g.D(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),F(a,bi,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.J;this.u.push(a);this.dispatchEvent(new hfa(a));this.qa||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.va)gfa(this);else{var d=Date.now();if(this.gb>d&&this.Ea<d)b&&b("throttled");else{var e=this.I.Se(this.u,this.J);d={};var f=this.Ya();f&&(d.Authorization=f);var h=dfa(this);this.V&&(d["X-Goog-AuthUser"]=this.V,h=xi(h,"authuser",this.V));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=xi(h,"pageId",this.pageId));if(f&&this.eb===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.J=0;var l=Rd(e),m;this.N&&
this.N.isSupported(l.length)&&(m=this.N.compress(l));var n={url:h,body:l,gX:1,Bt:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(w){c.D.reset();c.j.setInterval(c.D.getValue());if(w){var y=null;try{var A=JSON.parse(w.replace(")]}'\n",""));y=new $ea(A)}catch(B){}y&&(w=Number(sd(y,1,"-1")),0<w&&(c.Ea=Date.now(),c.gb=c.Ea+w),y=lYa.u(y))&&(y=Kd(y,1,-1),-1!=y&&(c.Ua||efa(c,y)))}a&&a()},q=function(w,y){var A=Cd(e,Li,3);
g.di(c.D);c.j.setInterval(c.D.getValue());401===w&&f&&(c.eb=f);void 0===y&&(y=500<=w&&600>w||401===w||0===w);y&&(c.u=A.concat(c.u),c.qa||c.j.enabled||c.j.start());b&&b("net-send-failed",w)},v=function(){c.Ra?c.Ra.send(n,p,q):c.ub(n,p,q)};
m?m.then(function(w){n.Bt["Content-Encoding"]="gzip";n.Bt["Content-Type"]="application/binary";n.body=w;n.gX=2;v()},function(){v()}):v()}}}};
g.k.yH=function(){this.flush()};
g.u(hfa,g.df);bfa.prototype.Se=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=Ed(c,Li,3,a);b&&g.D(a,14,b);return a};lfa.prototype.Se=function(){var a=new Ni(this.I,this.ra?this.ra:ai,"0",this.J,this.B,this.C,!1,this.Ea,void 0,void 0,this.N?this.N:void 0);this.W&&Mi(a.I,this.W);if(this.u){var b=this.u,c=Oi(a.I);g.D(c,7,b)}this.D&&(a.N=this.D);this.j&&(a.W=this.j);this.V&&((b=this.V)?(a.C||(a.C=new bi),b=Rd(b),g.D(a.C,4,b)):a.C&&vd(a.C,4));this.qa&&(b=this.qa,a.C||(a.C=new bi),tba(a.C,2,b));this.Y&&(b=this.Y,a.Ua=!0,efa(a,b));this.va&&jfa(a.I,this.va);return a};Pi.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new kea,c=[],d=0;d<a.length;d++){var e=a[d],f=g.lea(e);c.push(f);e.clear()}Ed(b,g.Sh,1,c);this.j.dispatch(b);this.j.flush()}};g.u(Qi,Error);Qi.prototype.name="RpcError";Si.prototype.done=function(){this.logger.fQ(this.j,Ri()-this.startMillis)};
Ti.prototype.sz=function(){};
Ti.prototype.fQ=function(){};
Ti.prototype.RI=function(a,b,c){return c};
Ui.prototype.sz=function(a){this.clientError.j.Yq("/client_streamz/po/w/cec",a,this.fh)};
Ui.prototype.fQ=function(a,b){this.B.dh(b,a,this.fh)};
Ui.prototype.RI=function(a,b,c){function d(h){var l=Ri()-f;e.C.dh(l,a,b,h,e.fh)}
var e=this,f=Ri();c.then(function(){d(0)},function(h){h instanceof Qi?d(h.code):d(-1)});
return c};nfa.prototype.dh=function(a,b){this.j.dh("/client_streamz/bg/fil",a,b)};
pfa.prototype.dh=function(a,b){this.j.dh("/client_streamz/bg/fsl",a,b)};g.u(rfa,g.J);g.u(sfa,g.J);g.u(Wi,g.J);Wi.j="bfkj";Yi.prototype.snapshot=function(a){var b=this;if(this.WB)throw Error("Already disposed");var c=Vi(),d;null!=(d=this.Hr)&&d.u.j.Yq("/client_streamz/bg/fsc",d.fh);return this.j.then(function(e){var f=e.aX;return new Promise(function(h){f(function(l){var m;null!=(m=b.Hr)&&m.B.dh(Vi()-c,m.fh);h(l)},[a.by,
a.q4])})})};
Yi.prototype.dispose=function(){var a;null!=(a=this.Hr)&&a.j.zF();this.WB=!0;this.j.then(function(b){(b=b.o4)&&b()})};
Yi.prototype.isDisposed=function(){return this.WB};/*

 SPDX-License-Identifier: Apache-2.0
*/
var wfa={};g.u(Zi,ufa);Zi.prototype.toString=function(){return this.j};var mYa;try{new URL("s://g"),mYa=!0}catch(a){mYa=!1}var zfa=mYa;var Bfa=[dj("data"),dj("http"),dj("https"),dj("mailto"),dj("ftp"),new $i(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.u(gj,g.J);g.u(hj,g.J);g.u(ij,g.J);Kfa.prototype.ping=function(a,b){var c=this,d,e;return g.z(function(f){d=c.j();e=b||new ij;var h=g.D(e,1,c.fh);g.D(h,2,a);return g.x(f,c.client.ping(e,d),0)})};g.da.Object.defineProperties(Ofa.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.j.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.j.b}}});g.u(kj,g.J);lj.prototype.vC=function(){return this.B};
lj.prototype.getMetadata=function(){return this.u};mj.prototype.getMetadata=function(){return this.j};
mj.prototype.vC=function(){return this.u};
mj.prototype.getStatus=function(){return null};nj.prototype.getName=function(){return this.name};var nYa=new nj("/google.internal.waa.v1.Waa/Create",gj,kj,function(a){return Rd(a)},function(a){return $d(kj,a)});g.u(oj,g.J);var Mfa=new nj("/google.internal.waa.v1.Waa/GenerateIT",hj,oj,function(a){return Rd(a)},function(a){return $d(oj,a)});g.u(pj,g.J);var oYa=new nj("/google.internal.waa.v1.Waa/Ping",ij,pj,function(a){return Rd(a)},function(a){return $d(pj,a)});var nga=Promise;g.u(qj,g.J);qj.prototype.getValue=function(){if(Array.isArray(g.md(this,2)))throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ud(this,2)};
qj.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=g.D(this,2,kd(a,pba,hba));else if("string"===typeof a||a instanceof Oc||Ic(a))gd(this),null==a||(a instanceof Oc?a.isEmpty():0===a.length)?vd(this,2):Fd(this,2,a),a=this;else throw Error("invalid value in Any.value field: "+a+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");return a};g.u(rj,g.J);rj.prototype.getMessage=function(){return Md(this,2)};
var Qfa=[3];sj.prototype.Do=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
sj.prototype.removeListener=function(a,b){"data"==a?wj(this.B,b):"metadata"==a?wj(this.D,b):"status"==a?wj(this.I,b):"end"==a?wj(this.C,b):"error"==a&&wj(this.u,b);return this};
sj.prototype.cancel=function(){this.j.abort()};
sj.prototype.cancel=sj.prototype.cancel;sj.prototype.removeListener=sj.prototype.removeListener;sj.prototype.on=sj.prototype.Do;g.Xa(g.xj,gi);g.xj.prototype.j=function(){var a=new yj(this.I,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.xj.prototype.C=Xf({});g.xj.prototype.setCredentialsMode=function(a){this.u=a};
g.Xa(yj,g.Uf);g.k=yj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.Y=a;this.W=b;this.readyState=1;zj(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.V,method:this.Y,credentials:this.I,cache:void 0};a&&(b.body=a);(this.ra||g.C).fetch(new Request(this.W,b)).then(this.TY.bind(this),this.GC.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.V=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,Aj(this));this.readyState=0};
g.k.TY=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,zj(this)),this.j&&(this.readyState=3,zj(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.RY.bind(this),this.GC.bind(this));else if("undefined"!==typeof g.C.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.N=new TextDecoder;Vfa(this)}else a.text().then(this.SY.bind(this),this.GC.bind(this))};
g.k.IY=function(a){if(this.j){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Aj(this):zj(this);3==this.readyState&&Vfa(this)}};
g.k.SY=function(a){this.j&&(this.response=this.responseText=a,Aj(this))};
g.k.RY=function(a){this.j&&(this.response=a,Aj(this))};
g.k.GC=function(){this.j&&Aj(this)};
g.k.setRequestHeader=function(a,b){this.V.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.I=a};
Object.defineProperty(yj.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Cj.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Jj(b,pYa,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(Jj(b,pYa,!0),"@"),a.push(g.Tg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.getPath())this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Jj(c,"/"==c.charAt(0)?qYa:rYa,!0));(c=this.u.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Jj(c,sYa));return a.join("")};
g.Cj.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.Dj(b,a.C):c=!!a.N;c?b.N=a.N:c=!!a.j;c?g.Ej(b,a.j):c=null!=a.B;var d=a.getPath();if(c)g.Fj(b,a.B);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.j&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.ib(e,"./")||g.ib(e,"/.")){d=eb(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.J=d:c=""!==a.u.toString();c?Gj(b,a.u.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.Cj.prototype.clone=function(){return new g.Cj(this)};
g.Cj.prototype.getPath=function(){return this.J};
var pYa=/[#\/\?@]/g,rYa=/[#\?:]/g,qYa=/[#\?]/g,Zfa=/[#\?@]/g,sYa=/#/g;g.k=Ij.prototype;g.k.add=function(a,b){Oj(this);this.B=null;a=Pj(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.k.remove=function(a){Oj(this);a=Pj(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.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.isEmpty=function(){Oj(this);return 0==this.u};
g.k.forEach=function(a,b){Oj(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Tn=function(){Oj(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.k.Rj=function(a){Oj(this);var b=[];if("string"===typeof a)aga(this,a)&&(b=b.concat(this.j.get(Pj(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.k.set=function(a,b){Oj(this);this.B=null;a=Pj(this,a);aga(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Rj(a);return 0<a.length?String(a[0]):b};
g.k.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.Tg(d);d=this.Rj(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Tg(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Ij;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.Bj(arguments[b],function(c,d){this.add(d,c)},this)};g.Xa(g.Rj,g.K);var tYa=[];g.k=g.Rj.prototype;g.k.Na=function(a,b,c,d){Array.isArray(b)||(b&&(tYa[0]=b.toString()),b=tYa);for(var e=0;e<b.length;e++){var f=g.Nf(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.dD=function(a,b,c,d){return ega(this,a,b,c,d)};
g.k.uc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.uc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.u||this,c=Of(c),d=!!d,b=mf(a)?a.Ly(b,c,d,e):a?(a=Pf(a))?a.Ly(b,c,d,e):null:null,b&&(Rf(b),delete this.j[b.key])};
g.k.ea=function(){g.Rj.Le.ea.call(this);g.Sj(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};fga.prototype.isInputValid=function(){return this.B};Tj.prototype.isInputValid=function(){return 3!=this.j};
Tj.prototype.kf=function(){return this.I};
Tj.prototype.uB=function(){return!0};
Tj.prototype.parse=function(a){function b(m){m&128&&Uj(f,h,l,"invalid tag");2!=(m&7)&&Uj(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Uj(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Uj(f,h,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.J.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Uj(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.V++;l++}a=f.J;f.J=[];return 0<a.length?a:null};Vj.prototype.isInputValid=function(){return null===this.j};
Vj.prototype.kf=function(){return this.j};
Vj.prototype.uB=function(){return!1};
Vj.prototype.parse=function(a){null!==this.j&&hga(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||gga(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=bba(c.j.slice(0,4*d))}catch(h){gga(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){hga(this,a,h.message)}this.u+=a.length;return b};var uYa={INIT:0,Hx:1,UF:2,Ku:3,nx:4,mx:5,STRING:6,OF:7,ZM:8,mN:9,nN:10,oN:11,LL:12,ML:13,NL:14,OL:15,dN:16,eN:17,fN:18,lW:19,SF:20};g.k=Xj.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.kf=function(){return this.V};
g.k.done=function(){return 2===this.D};
g.k.uB=function(){return!1};
g.k.parse=function(a){function b(){for(;v<a.length;)if(Wj(a[v]))v++,f.B++;else break;return v<n}
function c(){for(var y;;){y=a[v++];if(!y)break;f.B++;switch(f.j){case m.INIT:"{"===y?f.j=m.UF:"["===y?f.j=m.nx:Wj(y)||Yj(f,a,v);continue;case m.OF:case m.UF:if(Wj(y))continue;if(f.j===m.OF)h.push(m.ZM);else if("}"===y){e("{}");f.j=d();continue}else h.push(m.Ku);'"'===y?f.j=m.STRING:Yj(f,a,v);continue;case m.ZM:case m.Ku:if(Wj(y))continue;":"===y?(f.j===m.Ku&&(h.push(m.Ku),f.u++),f.j=m.Hx):"}"===y?(f.u--,e(),f.j=d()):","===y?(f.j===m.Ku&&h.push(m.Ku),f.j=m.OF):Yj(f,a,v);continue;case m.nx:case m.Hx:if(Wj(y))continue;
if(f.j===m.nx)if(f.u++,f.j=m.Hx,"]"===y){f.u--;if(0===f.u){f.j=m.mx;return}e("[]");f.j=d();continue}else h.push(m.mx);'"'===y?f.j=m.STRING:"{"===y?f.j=m.UF:"["===y?f.j=m.nx:"t"===y?f.j=m.mN:"f"===y?f.j=m.LL:"n"===y?f.j=m.dN:"-"!==y&&(-1!=="0123456789".indexOf(y)?f.j=m.SF:Yj(f,a,v));continue;case m.mx:if(","===y)h.push(m.mx),f.j=m.Hx,1===f.u&&(q=v);else if("]"===y){f.u--;if(0===f.u)return;e();f.j=d()}else if(Wj(y))continue;else Yj(f,a,v);continue;case m.STRING:var A=v;a:for(;;){for(;0<f.N;)if(y=a[v++],
4===f.N?f.N=0:f.N++,!y)break a;if('"'===y&&!f.J){f.j=d();break}if("\\"===y&&!f.J&&(f.J=!0,y=a[v++],!y))break;if(f.J)if(f.J=!1,"u"===y&&(f.N=1),y=a[v++])continue;else break;l.lastIndex=v;y=l.exec(a);if(!y){v=a.length+1;break}v=y.index+1;y=a[y.index];if(!y)break}f.B+=v-A;continue;case m.mN:if(!y)continue;"r"===y?f.j=m.nN:Yj(f,a,v);continue;case m.nN:if(!y)continue;"u"===y?f.j=m.oN:Yj(f,a,v);continue;case m.oN:if(!y)continue;"e"===y?f.j=d():Yj(f,a,v);continue;case m.LL:if(!y)continue;"a"===y?f.j=m.ML:
Yj(f,a,v);continue;case m.ML:if(!y)continue;"l"===y?f.j=m.NL:Yj(f,a,v);continue;case m.NL:if(!y)continue;"s"===y?f.j=m.OL:Yj(f,a,v);continue;case m.OL:if(!y)continue;"e"===y?f.j=d():Yj(f,a,v);continue;case m.dN:if(!y)continue;"u"===y?f.j=m.eN:Yj(f,a,v);continue;case m.eN:if(!y)continue;"l"===y?f.j=m.fN:Yj(f,a,v);continue;case m.fN:if(!y)continue;"l"===y?f.j=d():Yj(f,a,v);continue;case m.lW:"."===y?f.j=m.SF:Yj(f,a,v);continue;case m.SF:if(-1!=="0123456789.eE+-".indexOf(y))continue;else v--,f.B--,f.j=
d();continue;default:Yj(f,a,v)}}}
function d(){var y=h.pop();return null!=y?y:m.Hx}
function e(y){1<f.u||(y||(y=-1===q?f.C+a.substring(p,v):a.substring(q,v)),f.W?f.I.push(y):f.I.push(JSON.parse(y)),q=v)}
for(var f=this,h=f.Y,l=f.ra,m=uYa,n=a.length,p=0,q=-1,v=0;v<n;)switch(f.D){case 3:return Yj(f,a,v),null;case 2:return b()&&Yj(f,a,v),null;case 0:if(b()){var w=a[v++];f.B++;if("["===w){f.D=1;p=v;f.j=m.nx;continue}else Yj(f,a,v)}return null;case 1:return c(),0===f.u&&f.j==m.mx?(f.D=2,f.C=a.substring(v)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(w=f.I,f.I=[],w):null}return null};Zj.prototype.isInputValid=function(){return null===this.D};
Zj.prototype.kf=function(){return this.D};
Zj.prototype.uB=function(){return!1};
Zj.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Xj({m2a:!0,KX:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!Wj(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};ak.prototype.getStatus=function(){return this.C};
ak.prototype.W=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Di(this.j),c=this.j.u,d=this.j.getStatus(),e=g.Fi(this.j);a=[];if(g.Gi(this.j)instanceof Array){var f=g.Gi(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.V=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?bk(this,7):7==c?bk(this,8):d||bk(this,3)),this.u||(this.u=iga(this.j),null==this.u&&bk(this,5)),2<this.C)ck(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.uB())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){bk(this,5);ck(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){bk(this,5);ck(this);break a}}4==b?(0!=e.length||
this.V?bk(this,2):bk(this,4),ck(this)):bk(this,1)}}}catch(p){bk(this,6),ck(this)}};g.k=jga.prototype;g.k.Do=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.Do(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Zb(c,b);(a=this.j[a])&&g.Zb(a,b);return this};
g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.k.v0=function(a){var b=this.u.data;b&&kga(a,b);(b=this.j.data)&&kga(a,b);this.j.data=[]};
g.k.q2=function(){switch(this.B.getStatus()){case 1:dk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:dk(this,"error");break;case 8:dk(this,"close");break;case 2:dk(this,"end")}};lga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return mga(function(h){var l=h.vC(),m=h.getMetadata(),n=pga(e,!1);m=qga(e,m,n,f+l.getName());var p=rga(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,Pfa(d,b,c))};ek.prototype.create=function(a,b){return jj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},nYa)};
ek.prototype.ping=function(a,b){return jj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},oYa)};var tga={toString: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("")}};g.u(ik,Error);g.u(jk,g.K);g.u(lk,jk);lk.prototype.gw=function(a){++this.D>=this.I&&this.B.resolve();var b=new Si(this.logger,"C");a=this.C(a.by);b.done();if(a instanceof Uint8Array)return a;b=new Ofa(a);a=this.j;a=Bd(a,We,3===yd(a,S2)?3:-1);if(!a){a=new We;var c=Ec(b.B);Fd(a,2,c);Dd(this.j,We,3,S2,a)}b=new Uint8Array(b.u);Fd(a,1,b);return g.Re(this.j,cYa)};
g.u(mk,jk);mk.prototype.gw=function(){return this.j};
g.u(nk,jk);nk.prototype.gw=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C};
hk.prototype.isReady=function(){return!!this.j};
hk.prototype.ready=function(){var a=this;return g.z(function(b){return g.x(b,a.u.promise,0)})};
hk.prototype.gw=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Si(this.logger,this.j.u);try{return this.j.gw(a)}catch(e){b=new Si(this.logger,"e");var c=new ik(5,e);this.logger.sz(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new nk(c)).gw()}finally{b.done()}};var hra={rOa:0,oOa:1,lOa:2,mOa:3,nOa:4,qOa:5,pOa:6};var $l;$l=["av.default","js","unreleased"].slice(-1)[0];var Pl=document,Dk=window;var Gga={NONE:0,Zma:1},kha={QT:0,nNa:1,mNa:2,oNa:3},Xk={ET:"a",Dma:"d",VIDEO:"v"};pk.prototype.isVisible=function(){return this.Bs?.3<=this.Id:.5<=this.Id};var zk={Jga:0,Noa:1},iha={NONE:0,Cta:1,Tqa:2};qk.prototype.getValue=function(){return this.qd};
g.u(rk,qk);rk.prototype.setValue=function(a){if(null!==this.qd||!g.Af(this.u,a))return!1;this.qd=a;return!0};
g.u(sk,qk);sk.prototype.setValue=function(a){if(null!==this.qd||"number"!==typeof a)return!1;this.qd=a;return!0};
g.u(tk,qk);tk.prototype.setValue=function(a){if(null!==this.qd||"string"!==typeof a)return!1;this.qd=a;return!0};uk.prototype.disable=function(){this.u=!1};
uk.prototype.enable=function(){this.u=!0};
uk.prototype.isEnabled=function(){return this.u};
uk.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var mia=!g.Dc&&!Fb();Ak.prototype.now=function(){return 0};
Ak.prototype.u=function(){return 0};
Ak.prototype.B=function(){return 0};
Ak.prototype.j=function(){return 0};g.u(Ck,Ak);Ck.prototype.now=function(){return Bk()&&Dk.performance.now?Dk.performance.now():Ak.prototype.now.call(this)};
Ck.prototype.u=function(){return Bk()&&Dk.performance.memory?Dk.performance.memory.totalJSHeapSize||0:Ak.prototype.u.call(this)};
Ck.prototype.B=function(){return Bk()&&Dk.performance.memory?Dk.performance.memory.usedJSHeapSize||0:Ak.prototype.B.call(this)};
Ck.prototype.j=function(){return Bk()&&Dk.performance.memory?Dk.performance.memory.jsHeapSizeLimit||0:Ak.prototype.j.call(this)};var Jga=$f(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});Kga.prototype.isVisible=function(){return 1===Gk(Pl)};g.fg("csi.gstatic.com");g.fg("googleads.g.doubleclick.net");g.fg("partner.googleadservices.com");g.fg("pubads.g.doubleclick.net");g.fg("securepubads.g.doubleclick.net");g.fg("tpc.googlesyndication.com");var Mga={Y9:"allow-forms",Z9:"allow-modals",a$:"allow-orientation-lock",b$:"allow-pointer-lock",c$:"allow-popups",d$:"allow-popups-to-escape-sandbox",e$:"allow-presentation",f$:"allow-same-origin",g$:"allow-scripts",h$:"allow-top-navigation",i$:"allow-top-navigation-by-user-activation"},Qga=$f(function(){return Nga()});var Uga=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Lk.prototype.pe=function(a,b,c){a=a+"//"+b+c;var d=Yga(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.u[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Xga(h[l],this.B,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Sk.prototype.setInterval=function(a,b){return Dk.setInterval(a,b)};
Sk.prototype.clearInterval=function(a){Dk.clearInterval(a)};
Sk.prototype.setTimeout=function(a,b){return Dk.setTimeout(a,b)};
Sk.prototype.clearTimeout=function(a){Dk.clearTimeout(a)};eha.prototype.getContext=function(){if(!this.j){if(!Dk)throw Error("Context has not been set and window is undefined.");this.j=Rk(Sk)}return this.j};g.u(Vk,g.J);var mja=[Vk,1,UXa,2,VXa,3,VXa,4,VXa,5,WXa];var jha={yLa:1,xW:2,tDa:3};lha.prototype.ZJ=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 T2=null;var al=g.C.performance,vYa=!!(al&&al.mark&&al.measure&&al.clearMarks),Zk=$f(function(){var a;if(a=vYa){var b;if(null===T2){T2="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(T2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=T2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
$k.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(Zk()&&g.tc(this.events,rha),this.events.length=0)};
$k.prototype.start=function(a,b){if(!this.j)return null;var c=pha()||oha();a=new qha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";al&&Zk()&&al.mark(b);return a};
$k.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=pha()||oha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";al&&Zk()&&al.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};sha.prototype.TI=function(a,b,c,d,e){e=e||this.BO;try{var f=new Lk;f.j.push(1);f.u[1]=Mk("context",a);b.error&&b.meta&&b.id||(b=new el(fl(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=Mk("msg",h)}var l=b.meta||{};if(this.rG)try{this.rG(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=Wga();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Mk("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Cea(m.j.url):""}];f.j.push(5);f.u[5]=p;mha(this.j,e,f,c)}catch(q){try{mha(this.j,
e,{context:"ecmserr",rctx:a,msg:fl(q),url:m&&m.j.url},c)}catch(v){}}return this.NK};
g.u(el,nha);var cl,dl,bl=new $k;cl=new function(){var a="https:";Dk&&Dk.location&&"http:"===Dk.location.protocol&&(a="http:");this.u=a;this.j=.01};
dl=new sha;Dk&&Dk.document&&("complete"==Dk.document.readyState?uha():bl.j&&Fk(Dk,"load",function(){uha()}));var xha=Date.now(),ml=-1,kl=-1,Mia,nl=-1,ll=!1;g.k=ol.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new ol(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof ol?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};sl.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&ql(this.j,a.j)&&!0};tl.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.N==a.N&&ql(this.B,a.B)&&ql(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.J==a.J};var wYa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Nm={rW:"start",VT:"firstquartile",jW:"midpoint",sW:"thirdquartile",LT:"complete",ERROR:"error",iW:"metric",PAUSE:"pause",oW:"resume",pW:"skip",wW:"viewable_impression",kW:"mute",uW:"unmute",XT:"fullscreen",ST:"exitfullscreen",KT:"bufferstart",JT:"bufferfinish",ZT:"fully_viewable_audible_half_duration_impression",hW:"measurable_impression",CT:"abandon",RT:"engagedview",cU:"impression",OT:"creativeview",gW:"loaded",wMa:"progress",
CLOSE:"close",Zfa:"collapse",dJa:"overlay_resize",eJa:"overlay_unmeasurable_impression",fJa:"overlay_unviewable_impression",hJa:"overlay_viewable_immediate_impression",gJa:"overlay_viewable_end_of_session_impression",PT:"custom_metric_viewable",jIa:"verification_debug",FT:"audio_audible",HT:"audio_measurable",GT:"audio_impression"},Zja="start firstquartile midpoint thirdquartile resume loaded".split(" "),$ja=["start","firstquartile","midpoint","thirdquartile"],Nia=["abandon"],gn={UNKNOWN:-1,rW:0,
VT:1,jW:2,sW:3,LT:4,iW:5,PAUSE:6,oW:7,pW:8,wW:9,kW:10,uW:11,XT:12,ST:13,ZT:14,hW:15,CT:16,RT:17,cU:18,OT:19,gW:20,PT:21,KT:22,JT:23,GT:24,HT:25,FT:26};var zha={c7:"addEventListener",Vqa:"getMaxSize",Wqa:"getScreenSize",Xqa:"getState",Yqa:"getVersion",cNa:"removeEventListener",Aua:"isViewable"};g.k=g.vl.prototype;g.k.clone=function(){return new g.vl(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Gg?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.Qg(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Dha={};Mha.prototype.update=function(a){a&&a.document&&(this.J=ul(!1,a,this.isMobileDevice),this.j=ul(!0,a,this.isMobileDevice),Oha(this,a),Nha(this,a))};Rl.prototype.cancel=function(){Tk().clearTimeout(this.j);this.j=null};
Rl.prototype.schedule=function(){var a=this,b=Tk(),c=Yk().j.j;this.j=b.setTimeout(Wk(c,hl(143,function(){a.u++;a.B.sample()})),yha())};g.k=Sl.prototype;g.k.yx=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.Dv=function(){return this.j.va};
g.k.bz=function(){return this.j.W};
g.k.fail=function(a,b){if(!this.W||(void 0===b?0:b))this.W=!0,this.va=a,this.N=0,this.j!=this||Ul(this)};
g.k.getName=function(){return this.j.La};
g.k.Lp=function(){return this.j.TO()};
g.k.TO=function(){return{}};
g.k.Vn=function(){return this.j.N};
g.k.DM=function(){var a=Ol();a.j=ul(!0,this.B,a.isMobileDevice)};
g.k.EM=function(){Nha(Ol(),this.B)};
g.k.bP=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.I};
g.k.Ov=function(a){var b=this.j;this.j=a.Vn()>=this.N?a:this;b!==this.j?(this.I=this.j.I,Ul(this)):this.I!==this.j.I&&(this.I=this.j.I,Ul(this))};
g.k.Rp=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.V);this.C=a;b&&Rha(this)}};
g.k.jn=function(){return this.V};
g.k.dispose=function(){this.qa=!0};
g.k.isDisposed=function(){return this.qa};g.k=Vl.prototype;g.k.AF=function(){return!0};
g.k.zx=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Zb(a.D,this);a.V&&this.jn()&&Qha(a);this.zx();this.W=!0}};
g.k.isDisposed=function(){return this.W};
g.k.Lp=function(){return this.u.Lp()};
g.k.Vn=function(){return this.u.Vn()};
g.k.Dv=function(){return this.u.Dv()};
g.k.bz=function(){return this.u.bz()};
g.k.Ov=function(){};
g.k.Rp=function(){this.qp()};
g.k.jn=function(){return this.Y};g.k=Wl.prototype;g.k.Vn=function(){return this.j.Vn()};
g.k.Dv=function(){return this.j.Dv()};
g.k.bz=function(){return this.j.bz()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.iB(a,b,c),Tl(this.j,d));return d};
g.k.FM=function(){return this.Ax()};
g.k.Ax=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Tl(this.j,this),this.C=a,!0):!1};
g.k.Ov=function(a){0==a.Vn()&&this.C(a.Dv(),this)};
g.k.Rp=function(){};
g.k.jn=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.Lp=function(){return{}};Xl.prototype.add=function(a,b,c){++this.B;a=new Sha(a,b,c);this.j.push(new Sha(a.j,a.qd,a.u+this.B/4096));this.u=!0;return this};Xha.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Zl(this.j);0<b.length&&(a+="?"+b);return a};am.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 cia=[1,.75,.5,.3,0];bm.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};hm.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Id):b.Id;this.Y=Math.max(this.Y,b.Id);this.ra=-1!=this.ra?Math.min(this.ra,b.Ui):b.Ui;this.va=Math.max(this.va,b.Ui);this.eb.update(b.Ui,c.Ui,b.j,a,d);this.u.update(b.Id,c.Id,b.j,a,d);c=d||c.Bs!=b.Bs?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.La.update(c,a,b)};
hm.prototype.qo=function(){return this.La.B>=this.Ya};if(Pl&&Pl.URL){var xYa=Pl.URL,yYa;if(yYa=!!xYa){var zYa;a:{if(xYa){var AYa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var U2=AYa.exec(decodeURIComponent(xYa));if(U2){zYa=U2[1]&&1<U2[1].length?U2[1].substring(1):"true";break a}}catch(a){}}zYa=""}yYa=0<zYa.length}dl.NK=!yYa};var BYa=new ol(0,0,0,0);var kia=new ol(0,0,0,0);g.u(mm,g.K);g.k=mm.prototype;
g.k.ea=function(){if(this.Bi.j){if(this.Lr.fJ){var a=this.Bi.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Lr.fJ,Ek());this.Lr.fJ=null}this.Lr.dJ&&(a=this.Bi.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Lr.dJ,Ek()),this.Lr.dJ=null)}this.xA&&this.xA.dispose();this.Ce&&this.Ce.dispose();delete this.kD;delete this.VI;delete this.gT;delete this.Bi.bq;delete this.Bi.j;delete this.Lr;delete this.xA;delete this.Ce;delete this.featureSet;g.K.prototype.ea.call(this)};
g.k.Np=function(){return this.Ce?this.Ce.j:this.position};
g.k.ZJ=function(a){Yk().ZJ(a)};
g.k.jn=function(){return!1};
g.k.yC=function(){return new hm};
g.k.Oh=function(){return this.kD};
g.k.WO=function(a){return oia(this,a,1E4)};
g.k.Fa=function(a,b,c,d,e,f,h){this.Wp||(this.sy&&(a=this.CG(a,c,e,h),d=d&&this.Eg.Id>=(this.Bs()?.3:.5),this.xL(f,a,d),this.lastUpdateTime=b,0<a.Id&&-1===this.NS&&(this.NS=b),-1==this.QS&&this.qo()&&(this.QS=b),-2==this.QI&&(this.QI=km(this.Np())?a.Id:-1),this.Eg=a),this.VI(this))};
g.k.xL=function(a,b,c){this.Oh().update(a,b,this.Eg,c)};
g.k.PH=function(){return new pk};
g.k.CG=function(a,b,c,d){c=this.PH();c.j=b;b=Tk().u;b=0===Gk(Pl)?-1:b.isVisible()?0:1;c.u=b;c.Id=this.PG(a);c.Bs=this.Bs();c.Ui=d;return c};
g.k.PG=function(a){return 0===this.opacity&&1===xk(this.featureSet,"opac")?0:a};
g.k.Bs=function(){return!1};
g.k.sE=function(){return this.yZ||this.BZ};
g.k.pD=function(){jl()};
g.k.eJ=function(){jl()};
g.k.Fm=function(){return 0};
g.k.qo=function(){return this.kD.qo()};
g.k.dP=function(){var a=this.sy;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==Yk().u;return this.Wp||b&&a?2:this.qo()?4:3};
g.k.pC=function(){return 0};g.om.prototype.next=function(){return g.V2};
g.V2={done:!0,value:void 0};g.om.prototype.bj=function(){return this};g.u(uia,pk);var W2=wia([void 0,1,2,3,4,8,16]),X2=wia([void 0,4,8,16]),CYa={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:vm("p0",X2),p1:vm("p1",X2),p2:vm("p2",X2),p3:vm("p3",X2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:rm("mtos1",[0,2,4],!1,X2),mtos2:rm("mtos2",[0,2,4],!1,X2),mtos3:rm("mtos3",[0,2,4],!1,X2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:vm("a0",X2),a1:vm("a1",X2),a2:vm("a2",X2),a3:vm("a3",X2),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:vm("c0",X2),c1:vm("c1",X2),c2:vm("c2",X2),c3:vm("c3",X2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:vm("qmtos",W2),qnc:vm("qnc",W2),qmv:vm("qmv",W2),qnv:vm("qnv",W2),
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:vm("ss0",X2),ss1:vm("ss1",X2),ss2:vm("ss2",X2),ss3:vm("ss3",X2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
DYa=Object.assign({},CYa,{avid:Xf("audio"),avas:"avas",vs:"vs"}),EYa={atos:"atos",avt:rm("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"};Am.prototype.getValue=function(){return this.u};
Am.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.u(Bm,hm);
Bm.prototype.update=function(a,b,c,d){if(!b.paused){hm.prototype.update.call(this,a,b,c,d);var e=qm(b)&&qm(c),f=.5<=(d?Math.min(b.Id,c.Id):c.Id);Ml(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.qa+=a,this.V+=e?a:0);this.j.update(b.Id,c.Id,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.W.update(c.fullscreen,a);this.gb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ea.update(a,b.isVisible());this.Ua.update(a,1<=b.Id);this.Ra.update(a,
qm(b))}};Bia.prototype.D=function(a){this.u||(this.j(a)?(a=Mja(this.V,this.B,a),this.C|=a,a=0==a):a=!1,this.u=a)};g.u(Dm,Bia);Dm.prototype.j=function(){return!0};
Dm.prototype.I=function(){return!1};
Dm.prototype.getId=function(){var a=this,b=Bf(Nm,function(c){return c==a.B});
return gn[b].toString()};
Dm.prototype.toString=function(){var a="";this.I()&&(a+="c");this.u&&(a+="s");0<this.C&&(a+=":"+this.C);return this.getId()+a};g.u(Em,Dm);Em.prototype.D=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);Dm.prototype.D.call(this,a)};g.u(Fm,Vl);g.k=Fm.prototype;g.k.EG=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Jha(a.getBoundingClientRect())}catch(n){c=new ol(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Gha(a,b),h=f.x,l=f.y;var m=new ol(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=BYa.clone()}this.j=m}};
g.k.QN=function(){this.C=this.u.C.j};
g.k.MP=function(a){var b=1==xk(this.featureSet,"od");return jia(a,this.C,this.element,b)};
g.k.RN=function(){this.timestamp=jl()};
g.k.qp=function(){this.RN();this.EG();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Qg(a.videoWidth,a.videoHeight);a=this.j;var c=pl(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.QN();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new ol(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new ol(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new ol(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.MP(c)?c=new ol(0,0,0,0):(d=Ol().C,b=new ol(0,d.height,d.width,0),d=lm(c,this.j),e=lm(c,Ol().j),b=lm(c,b)));c=c.top>=c.bottom||c.left>=c.right?new ol(0,0,0,
0):rl(c,-this.j.left,-this.j.top);Ql()||(e=d=0);this.J=new tl(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var FYa=new ol(0,0,0,0);g.u(Gm,Fm);g.k=Gm.prototype;g.k.AF=function(){this.B();return!0};
g.k.Rp=function(){Fm.prototype.qp.call(this)};
g.k.RN=function(){};
g.k.EG=function(){};
g.k.qp=function(){this.B();Fm.prototype.qp.call(this)};
g.k.Ov=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Ol().j=new ol(0,0,0,0),this.j=new ol(0,0,0,0),this.C=new ol(0,0,0,0),this.timestamp=-1));this.I=a};var Y2={},Lia=(Y2.firstquartile=0,Y2.midpoint=1,Y2.thirdquartile=2,Y2.complete=3,Y2);g.u(Im,mm);g.k=Im.prototype;g.k.jn=function(){return!0};
g.k.po=function(){return 2==this.uh};
g.k.WO=function(a){return oia(this,a,Math.max(1E4,this.B/3))};
g.k.Fa=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.If(m,e);this.B=m.duration||this.B;this.V=m.isVpaid||this.V;this.Ha=m.isYouTube||this.Ha;e=Dia(this,b);1===Cia(this)&&(f=e);mm.prototype.Fa.call(this,a,b,c,d,m,f,h);this.Ps&&this.Ps.u&&g.tc(this.I,function(n){n.D(l)})};
g.k.xL=function(a,b,c){mm.prototype.xL.call(this,a,b,c);Lm(this).update(a,b,this.Eg,c);this.eb=qm(this.Eg)&&qm(b);-1==this.va&&this.Ya&&(this.va=this.Oh().B.j);this.wg.B=0;a=this.qo();b.isVisible()&&zm(this.wg,"vs");a&&zm(this.wg,"vw");Ml(b.volume)&&zm(this.wg,"am");qm(b)&&zm(this.wg,"a");this.Qv&&zm(this.wg,"f");-1!=b.u&&(zm(this.wg,"bm"),1==b.u&&zm(this.wg,"b"));qm(b)&&b.isVisible()&&zm(this.wg,"avs");this.eb&&a&&zm(this.wg,"avw");0<b.Id&&zm(this.wg,"pv");Mm(this,this.Oh().B.j,!0)&&zm(this.wg,"gdr");
2E3<=fm(this.Oh().u,1)&&zm(this.wg,"pmx")};
g.k.yC=function(){return new Bm};
g.k.Oh=function(){return this.kD};
g.k.PH=function(){return new uia};
g.k.CG=function(a,b,c,d){a=mm.prototype.CG.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Qv;a.paused=this.po();a.volume=c.volume;Ml(a.volume)||(this.ub++,b=this.Eg,Ml(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.PG=function(a){return Ol(),this.Qv?1:mm.prototype.PG.call(this,a)};
g.k.Fm=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.dP=function(){return this.Wp?2:Fia(this)?5:this.qo()?4:3};
g.k.pC=function(){return this.gb?2E3<=this.Oh().D.B?4:3:2};var GYa=g.Wa();Via.prototype.reset=function(){this.j=[];this.u=[]};
var Sm=Rk(Via);g.u(Vm,Wl);g.k=Vm.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.Lp=function(){return(this.u?this.u:this.j).Lp()};
g.k.Vn=function(){return(this.u?this.u:this.j).Vn()};
g.k.init=function(a){var b=!1;(0,g.tc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,Tl(this.j,this));return b};
g.k.dispose=function(){(0,g.tc)(this.B,function(a){a.dispose()});
Wl.prototype.dispose.call(this)};
g.k.FM=function(){return Nl(this.B,function(a){return a.yx()})};
g.k.Ax=function(){return Nl(this.B,function(a){return a.yx()})};
g.k.iB=function(a,b,c){return new Fm(a,this.j,b,c)};
g.k.Rp=function(a){this.u=a.u};var dja={threshold:[0,.3,.5,.75,1]};g.u(Wm,Fm);g.k=Wm.prototype;g.k.AF=function(){var a=this;this.V||(this.V=jl());if(wha(298,function(){return eja(a)}))return!0;
this.u.fail("msf");return!1};
g.k.zx=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.qp=function(){var a=Xm(this);0<a.length&&Ym(this,a);Fm.prototype.qp.call(this)};
g.k.EG=function(){};
g.k.MP=function(){return!1};
g.k.QN=function(){};
g.k.Lp=function(){var a={};return Object.assign(this.u.Lp(),(a.niot_obs=this.V,a.niot_cbk=this.N,a))};
g.k.getName=function(){return"nio"};g.u(Zm,Wl);Zm.prototype.getName=function(){return"nio"};
Zm.prototype.Ax=function(){return!Ol().u&&null!=this.j.j.B.IntersectionObserver};
Zm.prototype.iB=function(a,b,c){return new Wm(a,this.j,b,c)};g.u($m,Sl);$m.prototype.bP=function(){return Ol().j};
$m.prototype.yx=function(){var a=gja();this.N!==a&&(this.j!=this&&a>this.j.N&&(this.j=this,Ul(this)),this.N=a);return 2==a};an.prototype.sample=function(){dn(this,Tm(),!1)};
an.prototype.C=function(){var a=Ql(),b=jl();a?(ll||(ml=b,g.tc(Sm.j,function(c){var d=c.Oh();d.Ha=Cm(d,b,1!=c.uh)})),ll=!0):(this.J=lja(this,b),ll=!1,Mia=b,g.tc(Sm.j,function(c){c.sy&&(c.Oh().N=b)}));
dn(this,Tm(),!a)};
var bn=Rk(an);var oja=null,Fn="",Bn=!1;var rja=qja().tm,fn=qja().xm;var uja={Poa:"visible",Dca:"audible",nVa:"time",rVa:"timetype"},vja={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)}};
tja.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.u(kn,Dm);kn.prototype.getId=function(){return this.J};
kn.prototype.I=function(){return!0};
kn.prototype.j=function(a){var b=a.Oh(),c=a.getDuration();return Nl(this.N,function(d){if(void 0!=d.j)var e=xja(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.u(ln,yja);ln.prototype.u=function(){return null};
ln.prototype.B=function(){return[]};g.u(mn,xia);mn.prototype.j=function(a){var b=new xm;b.j=ym(a,CYa);b.u=ym(a,EYa);return b};g.u(nn,Dm);nn.prototype.j=function(a){return Fia(a)};g.u(on,yja);g.u(pn,Dm);pn.prototype.j=function(a){return a.Oh().qo()};g.u(qn,Em);qn.prototype.j=function(a){var b=g.Wb(this.J,xk(Yk().featureSet,"ovms"));return!a.Wp&&(0!=a.uh||b)};g.u(rn,on);rn.prototype.u=function(){return new qn(this.j)};
rn.prototype.B=function(){return[new pn("viewable_impression",this.j),new nn(this.j)]};g.u(sn,Gm);sn.prototype.B=function(){var a=g.Ha("ima.admob.getViewability"),b=xk(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
sn.prototype.getName=function(){return"gsv"};g.u(tn,Wl);tn.prototype.getName=function(){return"gsv"};
tn.prototype.Ax=function(){var a=Ol();Yk();return a.u&&!1};
tn.prototype.iB=function(a,b,c){return new sn(this.j,b,c)};g.u(un,Gm);un.prototype.B=function(){var a=this,b=g.Ha("ima.bridge.getNativeViewability"),c=xk(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Cf(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Kha(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?FYa.clone():Kha(e);a.timestamp=d.opt_nativeTime||-1;Ol().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
un.prototype.getName=function(){return"nis"};g.u(vn,Wl);vn.prototype.getName=function(){return"nis"};
vn.prototype.Ax=function(){var a=Ol();Yk();return a.u&&!1};
vn.prototype.iB=function(a,b,c){return new un(this.j,b,c)};g.u(wn,Sl);g.k=wn.prototype;g.k.yx=function(){return null!=this.u.ql};
g.k.TO=function(){var a={};this.Ea&&(a.mraid=this.Ea);this.ra&&(a.mlc=1);a.mtop=this.u.s4;this.J&&(a.mse=this.J);this.Ha&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.Bq=function(a){var b=g.za.apply(1,arguments);try{return this.u.ql[a].apply(this.u.ql,b)}catch(c){il(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.bz();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Ol().N=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Cja(this):jm(this.B,"load",function(){Tk().setTimeout(hl(292,function(){return Cja(a)}),100)},292);
return!0};
g.k.DM=function(){var a=Ol(),b=Hja(this,"getMaxSize");a.j=new ol(0,b.width,b.height,0)};
g.k.EM=function(){Ol().C=Hja(this,"getScreenSize")};
g.k.dispose=function(){Eja(this);Sl.prototype.dispose.call(this)};g.k=yn.prototype;g.k.ly=function(a){nm(a,!1);Zia(a)};
g.k.DC=function(){};
g.k.gA=function(a,b,c,d){var e=this;b=c?b:-1;c=this.lO();a=new Im(Dk,a,b,7,this.ZG(),c.u(),c.B());a.ah=d;Dga(a.featureSet);wk(a.featureSet,"queryid",a.ah);a.ZJ("");ria(a,function(){return e.kP.apply(e,g.t(g.za.apply(0,arguments)))},function(){return e.VY.apply(e,g.t(g.za.apply(0,arguments)))});
(d=Rk(Um).j)&&nia(a,d);a.Bi.bq&&Rk(hja);return a};
g.k.Ov=function(a){switch(a.Vn()){case 0:if(a=Rk(Um).j)a=a.j,g.Zb(a.D,this),a.V&&this.jn()&&Qha(a);An();break;case 2:cn()}};
g.k.Rp=function(){};
g.k.jn=function(){return!1};
g.k.VY=function(a,b){a.Wp=!0;switch(a.Fm()){case 1:Nja(a,b);break;case 2:this.kK(a)}this.AK()};
g.k.eZ=function(a){var b=a.J(a);b&&(b=b.volume,a.gb=Ml(b)&&0<b);Iia(a,0);return Om(a,"start",Ql())};
g.k.Vw=function(a,b,c){dn(bn,[a],!Ql());return this.Gm(a,b,c)};
g.k.Gm=function(a,b,c){return Om(a,c,Ql())};
g.k.ZY=function(a){return Jn(a,"firstquartile",1)};
g.k.bZ=function(a){a.Ya=!0;return Jn(a,"midpoint",2)};
g.k.fZ=function(a){return Jn(a,"thirdquartile",3)};
g.k.WY=function(a){var b=Jn(a,"complete",4);Jm(a);return b};
g.k.XY=function(a){a.uh=3;return Om(a,"error",Ql())};
g.k.iS=function(a,b,c){b=Ql();if(a.po()&&!b){var d=jl();a.Oh().N=d}dn(bn,[a],!b);a.po()&&(a.uh=1);return Om(a,c,b)};
g.k.dZ=function(a,b){b=this.Vw(a,b||{},"skip");Jm(a);return b};
g.k.aZ=function(a,b){nm(a,!0);return this.Vw(a,b||{},"fullscreen")};
g.k.YY=function(a,b){nm(a,!1);return this.Vw(a,b||{},"exitfullscreen")};
g.k.SJ=function(a,b,c){b=a.Oh();var d=jl();b.Ha=Cm(b,d,1!=a.uh);dn(bn,[a],!Ql());1==a.uh&&(a.uh=2);return Om(a,c,Ql())};
g.k.cZ=function(a){dn(bn,[a],!Ql());return a.u()};
g.k.hI=function(a){dn(bn,[a],!Ql());this.cS(a);Jm(a);return a.u()};
g.k.kP=function(){};
g.k.kK=function(){};
g.k.cS=function(){};
g.k.GM=function(){};
g.k.AK=function(){};
g.k.aH=function(){};
g.k.lO=function(){this.j||(this.j=this.aH());return null==this.j?new ln:new rn(this.j)};
g.k.ZG=function(){return new mn};g.u(Kn,Dm);Kn.prototype.j=function(a){return 4==a.pC()};g.u(Ln,Em);Ln.prototype.j=function(a){a=a.pC();return 3==a||4==a};g.u(Mn,on);Mn.prototype.u=function(){return new Ln(this.j)};
Mn.prototype.B=function(){return[new Kn(this.j)]};g.u(Nn,xia);Nn.prototype.j=function(a){!a||4!==a.vs&&5!==a.vs||(a=Object.assign({},a,{vs:3}));var b=new xm;b.j=ym(a,DYa);b.u=ym(a,EYa);return b};Sja.prototype.u=function(){return g.Ha(this.j)};var Ema={ena:"EMBEDDED_PLAYER_MODE_UNKNOWN",bna:"EMBEDDED_PLAYER_MODE_DEFAULT",dna:"EMBEDDED_PLAYER_MODE_PFP",cna:"EMBEDDED_PLAYER_MODE_PFL"},HYa={fW:"LIVING_ROOM_APP_MODE_UNSPECIFIED",cW:"LIVING_ROOM_APP_MODE_MAIN",bW:"LIVING_ROOM_APP_MODE_KIDS",dW:"LIVING_ROOM_APP_MODE_MUSIC",eW:"LIVING_ROOM_APP_MODE_UNPLUGGED",aW:"LIVING_ROOM_APP_MODE_GAMING"},Yma={O0a:"WEB_DISPLAY_MODE_UNKNOWN",K0a:"WEB_DISPLAY_MODE_BROWSER",M0a:"WEB_DISPLAY_MODE_MINIMAL_UI",N0a:"WEB_DISPLAY_MODE_STANDALONE",L0a:"WEB_DISPLAY_MODE_FULLSCREEN"};g.u(On,yn);g.k=On.prototype;g.k.DC=function(a,b){var c=this,d=Rk(Um);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Wja(this,a,b);break;case "gsv":e=Vja(this,a,b);break;case "exc":e=Xja(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Pja(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Fm()&&(e.J==g.Yf&&(e.J=function(f){return c.GM(f)}),Uja(this,e,b));
return e};
g.k.GM=function(a){a.u=0;a.qa=0;if("h"==a.C||"n"==a.C){Yk();a.Ua&&(Yk(),"h"!=Hn(this)&&Hn(this));var b=g.Ha("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.ah)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ha("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.ah)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ha("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.ah)}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.Cf(c)?a.u|=32:null!=c.errorCode&&(a.qa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.N=0;for(var d in wYa)null==b[d]&&(a.N|=wYa[d]);Rja(b,"currentTime");Rja(b,"duration");Ml(c.volume)&&Ml()&&(c.volume*=NaN);return c};
g.k.aH=function(){Yk();"h"!=Hn(this)&&Hn(this);var a=Yja(this);return null!=a?new Sja(a):null};
g.k.kK=function(a){!a.j&&a.Wp&&In(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.cS=function(a){a.yS&&(a.qo()?In(this,a,"overlay_viewable_end_of_session_impression"):In(this,a,"overlay_unviewable_impression"),a.yS=!1)};
g.k.kP=function(){};
g.k.AK=function(){};
g.k.gA=function(a,b,c,d){if(xk(Yk().featureSet,"ima_tt")){var e=xk(Yk().featureSet,"mm"),f={};(e=(f[Xk.ET]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Xk.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Qn(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&il(1044,Error())}a=yn.prototype.gA.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new sia),b.j[a.ah]=a.D,a.D.D=GYa);return a};
g.k.ly=function(a){a&&1==a.Fm()&&this.D&&delete this.I.j[a.ah];return yn.prototype.ly.call(this,a)};
g.k.lO=function(){this.j||(this.j=this.aH());return null==this.j?new ln:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Mn(this.j):new rn(this.j)};
g.k.ZG=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Nn:new mn};
var Pn=new xm;Pn.j="stopped";Pn.u="stopped";var IYa=gl(193,Rn,void 0,Oja);g.Fa("Goog_AdSense_Lidar_sendVastEvent",IYa);var JYa=hl(194,function(a,b){b=void 0===b?{}:b;a=aka(Rk(On),a,b);return bka(a)});
g.Fa("Goog_AdSense_Lidar_getViewability",JYa);var KYa=gl(195,function(){return dha()});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",KYa);var LYa=hl(196,function(){return JSON.stringify(dha())});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",LYa);var gma=(new Date).getTime();var MYa="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.t(MYa);var dka="://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(" "),eka=/\bocr\b/;var gka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.u(Un,g.Uf);Un.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.ll.Tk(this.I);delete Un.j};
Un.prototype.mf=function(){return this.j};Wn.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
Wn.prototype.get=function(a){return!!this.data_[a]};g.Xa(g.Xn,g.K);g.k=g.Xn.prototype;g.k.start=function(){this.stop();this.C=!1;var a=kka(this),b=lka(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.Nf(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(Oca(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=kka(this),b=lka(this);a&&!b&&this.u.mozRequestAnimationFrame?Rf(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.gV=function(){this.C&&this.j&&Rf(this.j);this.j=null;this.I.call(this.D,g.Wa())};
g.k.ea=function(){this.stop();g.Xn.Le.ea.call(this)};g.Xa(g.Zn,g.K);g.k=g.Zn.prototype;g.k.Bx=0;g.k.ea=function(){g.Zn.Le.ea.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.Bx=g.Ph(this.B,void 0!==a?a:this.ph)};
g.k.stop=function(){this.isActive()&&g.C.clearTimeout(this.Bx);this.Bx=0};
g.k.isActive=function(){return 0!=this.Bx};
g.k.HM=function(){this.Bx=0;this.j&&this.j.call(this.u)};co.prototype[Symbol.iterator]=function(){return this};
co.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};lo.prototype.bj=function(){return new mo(this.u())};
lo.prototype[Symbol.iterator]=function(){return new no(this.u())};
lo.prototype.j=function(){return new no(this.u())};
g.u(mo,g.om);mo.prototype.next=function(){return this.u.next()};
mo.prototype[Symbol.iterator]=function(){return new no(this.u)};
mo.prototype.j=function(){return new no(this.u)};
g.u(no,lo);no.prototype.next=function(){return this.B.next()};g.k=g.po.prototype;g.k.Rj=function(){ro(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.Tn=function(){ro(this);return this.j.concat()};
g.k.has=function(a){return qo(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||pka;ro(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Kq=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return qo(this.u,a)?(delete this.u[a],--this.size,this.Kq++,this.j.length>2*this.size&&ro(this),!0):!1};
g.k.get=function(a,b){return qo(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){qo(this.u,a)||(this.size+=1,this.j.push(a),this.Kq++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.Tn(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.po(this)};
g.k.keys=function(){return oo(this.bj(!0)).j()};
g.k.values=function(){return oo(this.bj(!1)).j()};
g.k.entries=function(){var a=this;return mka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.bj=function(a){ro(this);var b=0,c=this.Kq,d=this,e=new g.om;e.next=function(){if(c!=d.Kq)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.V2;var f=d.j[b++];return g.pm(a?f:d.u[f])};
return e};g.Xa(g.so,g.Uf);g.k=g.so.prototype;g.k.Oc=function(){return 1==this.j};
g.k.tD=function(){this.Pj("begin")};
g.k.Nz=function(){this.Pj("end")};
g.k.onFinish=function(){this.Pj("finish")};
g.k.Pj=function(a){this.dispatchEvent(a)};var NYa=$f(function(){if(g.Dc)return g.yc("10.0");var a=g.mh("DIV"),b=g.kf?"-webkit":zl?"-moz":g.Dc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!fYa.test("div"))throw Error("");if("DIV"in hYa)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!fYa.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof dg)e=eg(e);else if("style"==f.toLowerCase()){if(!g.Pa(e))throw Error("");
e instanceof og||(e=dda(e));e=pg(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in gYa)if(e instanceof hg)e=Vca(e).toString();else if(e instanceof kg)e=g.lg(e);else if("string"===typeof e)e=g.mg(e).Qj();else throw Error("");}e.Qm&&(e=e.Qj());f=f+'="'+gb(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===eYa.div?h+=">":(b=oda(b),h+=">"+g.wg(b).toString()+"</div>");h=xg(h);g.rda(a,h);return""!=g.Al(a.firstChild,"transition")});g.Xa(to,g.so);g.k=to.prototype;g.k.play=function(){if(this.Oc())return!1;this.tD();this.Pj("play");this.startTime=g.Wa();this.j=1;if(NYa())return g.yl(this.u,this.J),this.C=g.Ph(this.g3,void 0,this),!0;this.BF(!1);return!1};
g.k.g3=function(){g.Jl(this.u);qka(this.u,this.N);g.yl(this.u,this.D);this.C=g.Ph((0,g.Ta)(this.BF,this,!1),1E3*this.I)};
g.k.stop=function(){this.Oc()&&this.BF(!0)};
g.k.BF=function(a){g.yl(this.u,"transition","");g.C.clearTimeout(this.C);g.yl(this.u,this.D);this.endTime=g.Wa();this.j=0;if(a)this.Pj("stop");else this.onFinish();this.Nz()};
g.k.ea=function(){this.stop();to.Le.ea.call(this)};
g.k.pause=function(){};var ska={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};uo("Element","attributes")||uo("Node","attributes");uo("Element","innerHTML")||uo("HTMLElement","innerHTML");uo("Node","nodeName");uo("Node","nodeType");uo("Node","parentNode");uo("Node","childNodes");uo("HTMLElement","style")||uo("Element","style");uo("HTMLStyleElement","sheet");var yka=uka("getPropertyValue"),zka=uka("setProperty");uo("Element","namespaceURI")||uo("Node","namespaceURI");var xka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Dka,Cka,Bka,Eka;Dka=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.OYa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.PYa=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.vo=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]");Cka=/^http:\/\/.*/;g.QYa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Bka=/\s+/;Eka=/[\d\u06f0-\u06f9]/;g.xo.prototype.clone=function(){return new g.xo(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.N)};
g.xo.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.N==a.N};zo.prototype.clone=function(){return new zo(this.start,this.end)};var RYa=new WeakMap;(function(){if(sSa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.rb()))?a[1]:"0"}return tT?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.rb()))?a[0].replace(/_/g,"."):"10"):g.Yu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.rb()))?a[1]:""):JXa||KXa||LXa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.rb()))?a[1].replace(/_/g,"."):""):""})();var Gka=function(){if(g.pB)return Ao(/Firefox\/([0-9.]+)/);if(g.Dc||g.yw||g.KF)return xc;if(g.bE){if(Lb()||Ob()){var a=Ao(/CriOS\/([0-9.]+)/);if(a)return a}return Ao(/Chrome\/([0-9.]+)/)}if(g.Zv&&!Lb())return Ao(/Version\/([0-9.]+)/);if(TF||xI){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.rb()))return a[1]+"."+a[2]}else if(g.LF)return(a=Ao(/Android\s+([0-9.]+)/))?a:Ao(/Version\/([0-9.]+)/);return""}();g.Xa(g.Co,g.K);g.k=g.Co.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Kg(a)}return!1};
g.k.Kg=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]=function(){}):(c&&g.Zb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.X=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.J)for(e=0;e<c.length;e++){var h=c[e];Hka(this.j[h+1],this.j[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Kg(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Kg,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.ea=function(){g.Co.Le.ea.call(this);this.clear();this.B.length=0};g.Do.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.fi(b))};
g.Do.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.Do.prototype.remove=function(a){this.j.remove(a)};g.Xa(Eo,g.Do);Eo.prototype.set=function(a,b){Eo.Le.set.call(this,a,Jka(b))};
Eo.prototype.u=function(a){a=Eo.Le.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Eo.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.Xa(Fo,Eo);Fo.prototype.set=function(a,b,c){if(b=Jka(b)){if(c){if(c<g.Wa()){Fo.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Wa()}Fo.Le.set.call(this,a,b)};
Fo.prototype.u=function(a,b){var c=Fo.Le.u.call(this,a);if(c)if(!b&&g.Kka(c))Fo.prototype.remove.call(this,a);else return c};g.Xa(g.Go,Fo);g.Xa(Ho,Lka);Ho.prototype[Symbol.iterator]=function(){return oo(this.bj(!0)).j()};
Ho.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.Xa(Io,Ho);g.k=Io.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.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.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.bj=function(a){var b=0,c=this.j,d=new g.om;d.next=function(){if(b>=c.length)return g.V2;var e=c.key(b++);if(a)return g.pm(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.pm(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.Xa(Jo,Io);g.Xa(Mka,Io);g.Xa(Lo,Ho);var Nka={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Ko=null;g.k=Lo.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Mo(a),b);No(this)};
g.k.get=function(a){a=this.j.getAttribute(Mo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Mo(a));No(this)};
g.k.bj=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.om;d.next=function(){if(b>=c.length)return g.V2;var e=c[b++];if(a)return g.pm(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.pm(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);No(this)};g.Xa(Oo,Ho);Oo.prototype.set=function(a,b){this.u.set(this.j+a,b)};
Oo.prototype.get=function(a){return this.u.get(this.j+a)};
Oo.prototype.remove=function(a){this.u.remove(this.j+a)};
Oo.prototype.bj=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.om;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.pm(a?e.slice(c.j.length):c.u.get(e))};
return d};Qo.prototype.getKey=function(){return this.j};
Qo.prototype.getValue=function(){return this.qd};
Qo.prototype.clone=function(){return new Qo(this.j,this.qd)};g.k=Ro.prototype;g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;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,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Rj=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Tn=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new Ro(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.u(So,Ro);So.prototype.enqueue=function(a,b){Oka(this,a,b)};La(To);To.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 Vo="@@redux/INIT"+Uo(),Tka="@@redux/REPLACE"+Uo();var Uka="function"===typeof Symbol&&Symbol.observable||"@@observable";g.u(Wo,g.J);Wo.prototype.getType=function(){return sd(this,11,0)};
g.u(Xo,g.J);Xo.prototype.getKey=function(){return rd(this,3)};
var Vka=[2,13,14],aMa=[Wo,2,XXa,4,Q2,7,R2,9,R2,10,R2,11,YXa,12,R2,13,XXa,14,g.O2,[Xo,1,Q2,2,Q2,3,Q2,4,Q2,5,R2],15,g.N2,16,g.N2,17,R2,1,YXa,3,g.N2,5,g.N2,6,g.N2,8,Q2];var UWa=new g.Yo("adInfoDialogEndpoint");var eEa=new g.Yo("adPingingEndpoint");var Vpa={s$:0,q$:1,r$:2};var Wpa={w$:0,v$:1,u$:2,t$:3};var $pa={pca:0,oca:1,nca:2};var Ey={Aea:0,Bea:1,yea:2,xea:3,vea:4,zea:5,wea:6,uea:7};var Zpa={lfa:0,kfa:1,ffa:2,bfa:3,jfa:4,mfa:5,efa:6,afa:7,dfa:8,ifa:9,gfa:10,nfa:11,cfa:12,ofa:13};var zqa={Dfa:0,rfa:1,ufa:2,Efa:3,sfa:4,tfa:5,zfa:6,Bfa:7,wfa:8,qfa:9,yfa:10,Cfa:11,xfa:12,vfa:13,Afa:14};var Ypa={Lma:0,Jma:1,Kma:2};var yqa={zNa:0,yNa:1,xNa:2,wNa:3};var xqa={GNa:0,ANa:1,BNa:5,CNa:6,ENa:2,FNa:3,DNa:4};var wqa={JNa:0,KNa:1,INa:2,HNa:3};var vqa={ONa:0,MNa:1,NNa:2};var uqa={U_a:0,J_a:1,Q_a:2,K_a:3,R_a:4,N_a:5,S_a:6,O_a:7,M_a:8,L_a:9,P_a:10,T_a:11,I_a:12};g.u(Zo,g.J);Zo.prototype.getType=function(){return g.md(this,1)};g.u($o,g.J);g.u(ap,g.J);g.u(bp,g.J);g.u(cp,g.J);var Xka=[2];g.u(dp,g.J);var Yka=[3];g.u(ep,g.J);g.u(fp,g.J);g.u(gp,g.J);g.u(hp,g.J);g.u(ip,g.J);g.u(jp,g.J);g.u(kp,g.J);var Cy=[2,3,4,5,6,7,8,9,10,11];var eqa={Jaa:0,W$:2,Kaa:3,X$:4,V$:5,zaa:6,Aaa:58,iaa:17,P$:18,Caa:15,Faa:7,naa:8,F$:10,G$:26,R$:45,T$:11,haa:14,Maa:16,B$:19,H$:20,C$:21,Oaa:22,I$:23,Naa:24,U$:25,x$:27,y$:53,maa:28,Q$:30,qaa:31,N$:32,J$:33,paa:34,jaa:35,daa:36,D$:37,xaa:38,waa:39,Z$:41,eaa:42,baa:43,aaa:44,E$:40,saa:46,taa:47,K$:48,raa:49,vaa:50,caa:51,faa:52,Laa:54,Daa:55,Eaa:56,L$:57,Iaa:59,yaa:60,O$:67,Haa:61,Gaa:62,uaa:63,z$:64,S$:65,Baa:66,M$:68,A$:69,oaa:70,Y$:71};var dqa={cba:0,bba:1,aba:2};var fqa={Qya:0,Jya:1,Mya:2,mya:3,Oya:4,Zxa:5,Fya:6,pya:7,Pya:8,iya:9,Cya:10,jya:11,Hya:12,Kxa:13,tya:14,rya:15,sya:16,Gya:17,vya:18,Eya:19,Dya:20,zya:21,eya:22,Lxa:23,qya:24,xya:25,gya:26,fya:27,wya:28,Mxa:29,Aya:30,lya:31,Nya:32,Yxa:33,yya:34,Xxa:35,aya:36,bya:37,hya:38,dya:39,cya:40,Bya:41,uya:42,Iya:43,nya:44,Kya:45,Lya:46,oya:47,kya:70,Uxa:48,Rxa:49,Wxa:50,Vxa:51,Txa:52,Qxa:53,Nxa:54,Sxa:55,Pxa:56,Oxa:57,Ixa:58,Hxa:59,Gxa:60,Axa:61,Fxa:62,Bxa:63,Cxa:64,zxa:65,Dxa:66,Jxa:67,Exa:68,yxa:69};var Upa={qea:0,nea:1,mea:18,iea:2,bea:3,hea:9,cea:10,fea:14,dea:4,aea:5,eea:6,rea:11,gea:12,Zda:13,Yda:15,lea:16,oea:17,pea:19,jea:7};var gqa={Yaa:0,Zaa:1,Taa:2,Uaa:3,Vaa:4,Raa:5,Saa:6,Waa:7,Xaa:8};var Dy={yba:0,oba:1,xba:3,wba:4,vba:5,zba:6,mba:7,eba:8,qba:9,dba:12,pba:22,tba:23,uba:13,Aba:14,rba:15,fba:16,kba:17,hba:18,jba:19,lba:20,nba:21};g.u(lp,g.J);g.u(mp,g.J);var Zka=[1];g.u(np,g.J);var $ka=[2];g.u(op,g.J);var hqa=[1,2];var oqa={wLa:0,vLa:1,rLa:2,pLa:3,sLa:4,qLa:5,uLa:6,tLa:7};g.SYa=new g.Yo("commandExecutorCommand");g.u(pp,g.J);var Hy=[1,2,3];g.u(rp,g.J);g.u(sp,g.J);g.u(tp,g.J);g.u(up,g.J);var Gy=[1,2,3];g.u(vp,g.J);g.u(wp,g.J);var ala=[1];g.u(xp,g.J);g.u(yp,g.J);g.u(zp,g.J);g.u(Ap,g.J);g.u(Bp,g.J);g.u(Cp,g.J);g.u(Dp,g.J);g.u(Ep,g.J);g.u(Fp,g.J);g.u(Gp,g.J);g.u(Hp,g.J);g.u(Ip,g.J);g.u(Jp,g.J);g.u(Kp,g.J);g.u(Lp,g.J);g.u(Mp,g.J);g.u(Np,g.J);g.u(Op,g.J);g.u(Pp,g.J);g.u(Qp,g.J);Qp.prototype.getId=function(){return g.md(this,1)};
g.u(Rp,g.J);Rp.prototype.getType=function(){return g.md(this,1)};
g.u(Sp,g.J);Sp.prototype.getType=function(){return g.md(this,1)};
g.u(Tp,g.J);g.u(Up,g.J);g.u(Vp,g.J);g.u(Wp,g.J);var bla=[1],nqa=[1,2],dla=[2],Jy=[1,2,3,4],qqa=[1,2],Iy=[3,4,5];g.u(Xp,g.J);g.u(Yp,g.J);Yp.prototype.getKey=function(){return g.md(this,1)};
Yp.prototype.getValue=function(){return g.md(this,2===yd(this,TYa)?2:-1)};
Yp.prototype.setValue=function(a){return g.zd(this,2,TYa,a)};
var TYa=[2,3,4,5,6];g.u(Zp,g.J);g.u($p,g.J);g.u(aq,g.J);g.u(bq,g.J);g.u(cq,g.J);g.u(fla,g.J);var ela=[2];g.u(g.dq,g.J);g.dq.prototype.Ip=aa(1);g.dq.prototype.getPlayerType=function(){return g.md(this,36)};
g.dq.prototype.setHomeGroupInfo=function(a){return F(this,fla,81,a)};
g.dq.prototype.clearLocationPlayabilityToken=function(){return vd(this,89)};
var gla=[9,66,24,32,86,100,101],nza={zZa:0,F0a:1,R0a:32,W0a:61,b1a:67,Y0a:86,Q0a:42,S0a:60,J0a:62,V0a:73,U0a:76,Z0a:88,a1a:90,d1a:41,e1a:69,f1a:70,g1a:71,CEa:2,XEa:27,ANDROID:3,Gba:54,Hba:14,Oba:91,Iba:55,Jba:24,Kba:20,Lba:18,Nba:21,Qba:30,Tba:29,Uba:28,Vba:34,Pba:36,Mba:38,IOS:5,Jta:15,Tta:92,Kta:40,Mta:25,Nta:17,Ota:19,Pta:64,Qta:66,Rta:26,Vta:22,iua:33,jua:68,kua:35,Sta:53,Uta:37,Lta:39,RXa:7,IYa:57,VYa:43,gZa:59,WYa:93,Sba:74,kZa:75,lZa:85,mZa:65,oZa:80,pZa:8,PXa:10,sZa:58,rZa:63,nZa:72,Rba:23,
u1a:11,v1a:13,Qfa:12,QXa:16,P0a:56,X0a:31,XDa:77,Zqa:84,T0a:87,cra:89,ara:94,GCa:95},UYa={CZa:0,CLASSIC:1,Lua:2,dta:3,aha:4,HDa:5,Hqa:6,vW:7};g.u(eq,g.J);var hla=[15,26,28];g.u(fq,g.J);fq.prototype.setToken=function(a){return g.D(this,2,a)};g.u(gq,g.J);gq.prototype.setSafetyMode=function(a){return g.D(this,5,a)};
var ila=[12];g.u(hq,g.J);hq.prototype.I=function(a){F(this,g.dq,1,a)};
var jla=[12];var Bqa={iTa:0,hTa:1,ISa:2,JSa:3,KSa:4,LSa:5,MSa:6,NSa:7,OSa:8,PSa:9,QSa:10,RSa:11,SSa:12,TSa:13,USa:14,VSa:15,WSa:16,XSa:17,YSa:18,ZSa:19,aTa:20,dTa:21,bTa:22,cTa:23,eTa:24,fTa:25,gTa:26};var Aqa={sTa:0,jTa:1,kTa:2,lTa:3,mTa:4,nTa:5,oTa:6,pTa:7,qTa:8,rTa:9,tTa:10};var rqa={Tea:0,Hea:1,Uea:2,Rea:3,Eea:4,Fea:5,Qea:6,Gea:7,Oea:8,Pea:13,Jea:9,Lea:10,Nea:11,Vea:12,Iea:14,Mea:15,Kea:16,Sea:17};var sqa={Zea:0,Yea:1,Xea:2,Wea:3};var kqa={wca:0,uca:4,tca:2,rca:5,sca:8,vca:9,qca:3,xca:6,yca:7};var lqa={Fga:0,Cga:1,Dga:2,Gga:3,Hga:4,Ega:5};var jqa={iha:0,gha:8,eha:2,cha:5,dha:9,fha:3,bha:4,jha:6,lha:7,hha:10};var mqa={Z_a:0,Y_a:1,a0a:2};var VYa={c0a:0,b0a:1};var Mpa={i6:0,g6:1,f6:2,h6:3};g.WYa=new g.Yo("changeEngagementPanelVisibilityAction");var FFa=new g.Yo("continuationCommand");g.XYa=new g.Yo("openPopupAction");var YYa=new g.Yo("webCommandMetadata");var lBa=new g.Yo("metadataBadgeRenderer");var EFa=new g.Yo("signalServiceEndpoint");var Mqa={R9:0,S9:1,N9:2,Q9:3,O9:4,P9:5};var Nqa={W9:0,U9:1,T9:2,V9:3,X9:4};g.u(iq,g.J);iq.prototype.getType=function(){return sd(this,1,0)};var Oy={Hua:0,Iua:1,Gua:2,Cua:3,Eua:4,Fua:5,Jua:6,Dua:7};var ZYa={EDa:0,xDa:1,yDa:2,DDa:3,zDa:4,CDa:6,BDa:7,ADa:8};var $Ya={LFa:0,IFa:1,KFa:2,JFa:3,HFa:4};var aZa={ZJa:0,KJa:1,aKa:2,YJa:3,XJa:4,WJa:5,VJa:6,NJa:7,LJa:8,RJa:9,eKa:10,MJa:11,TJa:12,cKa:13,dKa:14,UJa:15,QJa:16,PJa:17,SJa:18,OJa:19,bKa:20};var iqa={pKa:0,oKa:86};var Py={qMa:0,pMa:1,iMa:2,fMa:3,hMa:4,rMa:5,oMa:6,dMa:7,sMa:8,bMa:9,mMa:10,tMa:11,nMa:12,eMa:13,aMa:14,gMa:15,kMa:16,jMa:17,lMa:18,cMa:19};var HBa=new g.Yo("channelThumbnailEndpoint");var GBa=new g.Yo("embeddedPlayerErrorMessageRenderer");var CBa=new g.Yo("embeddedPlayerOverlayVideoDetailsRenderer"),IBa=new g.Yo("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),JBa=new g.Yo("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var tqa={Gza:0,tza:1,Dza:2,Fza:3,uza:4,xza:5,Aza:6,vza:7,wza:8,Cza:9,Eza:10,yza:11,Bza:12};var xIa=new g.Yo("feedbackEndpoint");var bZa={Yua:0,Zua:1,Xua:2,Sua:3,Rua:4,Tua:5,Vua:6,Uua:7,Wua:8};var cZa={eva:0,bva:1,dva:2,cva:3};var dZa={jsa:0,Pra:1,ksa:8,bsa:16,csa:17,fsa:2,dsa:3,esa:4,Sra:5,Qra:6,Rra:7,isa:9,gsa:10,hsa:11,Zra:12,Wra:13,Yra:14,Xra:15,Vra:18,Tra:19,Ura:20,Ora:21};var eZa={oJa:0,pJa:1,mJa:2};var fZa={BJa:0,xJa:1,zJa:2,wJa:3,yJa:4,AJa:5};var gZa={yda:0,wda:1,xda:2};var hZa={Bda:0,zda:1,Cda:2,Ada:3};var ira={P6:0,s6:1,B6:2,F6:3,L6:4,M6:5,Q6:6,G6:7,r6:8,y6:9,x6:10,j6:11,A6:12,p6:14,u6:15,E6:16,D6:17,z6:18,t6:29,v6:19,m6:20,q6:21,O6:22,k6:23,R6:24,w6:25,n6:26,I6:27,o6:28,J6:30,K6:31,C6:32,N6:33,l6:34,H6:35,S6:36};var iZa={qga:0,pga:1,oga:2};g.u(jq,g.J);g.u(kq,g.J);var jZa={a8:0,C7:1,S7:4,T7:14,y7:15,U7:17,q7:6,s7:7,u7:8,t7:9,x7:5,J7:16,R7:20,Q7:26,N7:28,B7:2,E7:19,m7:25,r7:29,Y7:30,H7:31,D7:3,O7:11,b8:27,K7:10,k7:12,l7:13,o7:18,G7:21,w7:22,j7:23,P7:24,h7:32,F7:33,i7:34,d8:35,n7:36,M7:37,A7:38,X7:39,V7:40,W7:41,c8:42,p7:43,Z7:44,z7:45,v7:46,L7:47,I7:48};var kZa={r8:0,l8:1,n8:2,p8:3,k8:4,f8:5,h8:6,j8:7,o8:8,g8:9,i8:10,m8:13,q8:14,e8:11};var lZa={n9:0,u8:1,v8:2,x8:3,E8:4,h9:42,Z8:9,i9:10,C8:11,f9:12,e9:13,M8:43,Y8:14,N8:15,l9:47,P8:46,V8:16,U8:17,y8:18,c9:19,B8:20,d9:21,m9:22,j9:23,k9:24,A8:25,w8:26,g9:27,S8:28,W8:38,X8:39,b9:5,O8:6,D8:7,I8:8,T8:29,a9:30,Q8:31,s8:32,J8:33,H8:34,F8:35,p9:36,L8:37,o9:40,K8:41,t8:44,G8:45,z8:48};var Fqa={Oga:0,Lga:1,Kga:2,Nga:3,Mga:4};var mZa={xka:0,vka:1,ska:2,wka:3,tka:4,uka:5};var nZa={Aka:0,yka:1,zka:2};var oZa={Gka:0,Fka:1,Dka:2,Eka:3,Cka:4};var pZa={Jka:0,Hka:1,Ika:2,Kka:3};var qZa={Qka:0,Lka:1,Pka:2,Oka:3,Nka:4,Mka:5};var rZa={Wka:0,Vka:1,Rka:2};var sZa={Uka:0,Ska:1,Tka:2};var tZa={Zka:0,Xka:1,Yka:2};var uZa={qla:0,lla:1,kla:2,fla:3,jla:4,dla:5,ela:6,mla:7,gla:8,nla:9,ila:10,ala:11,hla:12,ola:13};var vZa={vla:0,tla:1,ula:2,sla:3,rla:4};var Eqa={Twa:0,Awa:1,Bwa:2,Rva:3,rwa:4,Cwa:5,swa:6,Sva:7,Dwa:8,Kva:9,Lva:10,Yva:11,Qva:12,Tva:13,uwa:14,Wva:15,Jva:16,Mwa:17,pwa:18,Uva:19,xwa:20,vwa:21,wwa:22,Iva:23,Rwa:25,Lwa:26,uxa:61,iwa:35,cwa:36,Zva:37,ewa:38,gwa:39,fwa:40,mwa:41,jwa:42,hwa:43,nwa:44,owa:45,Nva:24,Ova:27,Pva:28,nxa:29,pxa:75,oxa:30,kxa:89,qxa:31,rxa:86,lxa:32,mxa:91,Ywa:51,axa:52,jxa:62,cxa:70,gxa:63,exa:64,Zwa:65,ixa:66,bxa:71,fxa:67,dxa:68,hxa:69,txa:33,kwa:46,lwa:47,Nwa:49,Owa:50,Jwa:77,Fwa:78,Ewa:79,Gwa:80,twa:53,Uwa:54,
Wwa:55,Vwa:56,Kwa:57,Xwa:58,ywa:59,zwa:60,Hwa:72,Iwa:84,Vva:73,Pwa:74,Mva:76,Swa:81,bwa:82,Qwa:83,dwa:85,sxa:87,qwa:88,Xva:90};var Gqa={NT:0,Vfa:1,Gva:2,Aga:3,mW:4,nW:5,kNa:6,dOa:7,OKa:8,yW:9,Wfa:10,s9:11,u9:12,w0a:13,I9:14,K9:15,C9:16,D9:17,v9:18,sda:19,Tna:20,Osa:21,Ata:22,zW:23,qVa:24,r9:25,aDa:26,ZCa:47,qW:27,rda:28,jNa:29,kpa:30,Nsa:31,nga:32,z_a:33,s_a:34,p_a:35,x_a:36,y_a:37,u_a:38,v_a:39,w_a:40,r_a:41,q_a:42,vda:43,ZV:44,Sca:45,DT:46,V6:48,aU:49,iVa:50,Ima:51,gza:52,k2a:53};var wZa={yIa:0,nIa:1,sIa:2,qIa:3,rIa:4,mIa:5,wIa:6,xIa:7,lIa:8,uIa:9,oIa:10,pIa:11,tIa:12,vIa:13};var xZa={DIa:0,EIa:1,zIa:2,AIa:3,CIa:4,BIa:5};var Dqa={aJa:0,WIa:1,SIa:2,TIa:3,OIa:4,JIa:5,LIa:6,KIa:7,NIa:8,ZIa:9,IIa:10,YIa:11,XIa:12,VIa:13,UIa:20,PIa:14,RIa:15,QIa:16,HIa:17,GIa:19,MIa:18};var Hqa={ZRa:0,VRa:1,WRa:14,YRa:15,KRa:2,RRa:3,ORa:4,PRa:5,HRa:6,SRa:7,NRa:8,LRa:9,JRa:10,URa:11,QRa:12,TRa:13,IRa:16,XRa:17,MRa:18};var Iqa={BWa:0,yWa:1,AWa:2,zWa:3,sWa:4,wWa:5,vWa:6,uWa:8,tWa:9,xWa:7};var Ly={LXa:0,CWa:1,cXa:2,FXa:3,AXa:4,KWa:5,mXa:6,SWa:7,pXa:8,jXa:9,zXa:10,CXa:11,rXa:12,LWa:13,kXa:14,QWa:15,IWa:16,hXa:17,qXa:18,BXa:19,OWa:20,VWa:21,JXa:22,IXa:57,UWa:23,NWa:24,JWa:25,KXa:26,fXa:27,DXa:28,EXa:29,nXa:30,HXa:31,PWa:32,sXa:33,ZWa:34,bXa:35,iXa:36,gXa:37,uXa:38,lXa:39,MXa:40,WWa:41,XWa:42,YWa:43,HWa:44,GWa:45,FWa:46,DWa:58,EWa:59,xXa:47,yXa:48,RWa:49,tXa:50,wXa:51,vXa:52,eXa:53,MWa:54,GXa:55,aXa:56,oXa:60,dXa:61,TWa:62};g.u(lq,g.J);g.u(mq,g.J);g.u(nq,g.J);g.u(oq,g.J);g.u(pq,g.J);g.u(qq,g.J);var Kqa=[1,2];g.u(rq,g.J);rq.prototype.getType=function(){return g.md(this,1)};
var Jqa=[3,4];g.u(sq,g.J);sq.prototype.getType=function(){return g.md(this,2)};
g.u(tq,g.J);tq.prototype.Hv=function(){return g.md(this,1)};
var kla=[5],lla=[2,3,4,5,6];g.u(uq,g.J);uq.prototype.getType=function(){return g.md(this,2)};
g.u(vq,g.J);var mla=[2,4,5,6];g.u(wq,g.J);g.u(xq,g.J);var nla=[1];g.u(yq,g.J);g.u(zq,g.J);var ola=[2],pla=[1];g.u(Aq,g.J);g.u(Bq,g.J);g.u(Cq,g.J);var qla=[3];g.u(Dq,g.J);Dq.prototype.ag=function(){return g.md(this,1)};g.u(Eq,g.J);Eq.prototype.kf=function(){return g.md(this,2)};g.u(Fq,g.J);g.u(Gq,g.J);g.u(Hq,g.J);Hq.prototype.getType=function(){return g.md(this,1)};g.u(Iq,g.J);g.u(Jq,g.J);g.u(Kq,g.J);g.u(Lq,g.J);Lq.prototype.nC=function(){return g.md(this,4)};g.u(Mq,g.J);g.u(Nq,g.J);g.u(Oq,g.J);g.u(Pq,g.J);g.u(Qq,g.J);g.u(Rq,g.J);g.u(Sq,g.J);var Z2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14];g.u(Tq,g.J);g.u(Uq,g.J);g.u(Vq,g.J);g.u(Wq,g.J);g.u(Xq,g.J);Xq.prototype.getState=function(){return sd(this,1,0)};
Xq.prototype.Qc=function(a){g.D(this,1,a)};g.u(Yq,g.J);g.u(Zq,g.J);var rla=[1];g.u($q,g.J);var sla=[2,3];g.u(ar,g.J);var tla=[1,2];g.u(br,g.J);g.u(cr,g.J);g.u(dr,g.J);g.u(er,g.J);g.u(fr,g.J);g.u(gr,g.J);gr.prototype.setConfig=function(a){return F(this,fr,2,a)};g.u(hr,g.J);g.u(ir,g.J);var ula=[1];g.u(jr,g.J);g.u(kr,g.J);kr.prototype.getKey=function(){return Md(this,1)};
kr.prototype.getValue=function(){return Md(this,2)};
kr.prototype.setValue=function(a){return g.D(this,2,a)};
var vla=[4,5];g.u(lr,g.J);g.u(mr,g.J);g.u(nr,g.J);g.u(or,g.J);var wy=[2,3,4];g.u(pr,g.J);pr.prototype.getMessage=function(){return Md(this,1)};g.u(qr,g.J);g.u(rr,g.J);g.u(sr,g.J);g.u(tr,g.J);tr.prototype.lh=function(a,b){Jd(this,5,sr,a,b)};
var wla=[5];g.u(ur,g.J);var xla=[19,20];g.u(vr,g.J);g.u(wr,g.J);g.u(xr,g.J);xr.prototype.setConfig=function(a){return F(this,wr,3,a)};
var yla=[2,5];g.u(yr,g.J);yr.prototype.Bv=function(){return sd(this,2,0)};g.u(zr,g.J);zr.prototype.getPath=function(){return Md(this,3)};
var zla=[9];g.u(Ar,g.J);g.u(Br,g.J);g.u(Cr,g.J);g.u(Dr,g.J);g.u(Er,g.J);Er.prototype.getType=function(){return sd(this,2,0)};
var Ala=[3];g.u(Fr,g.J);var Bla=[10,17];g.u(Gr,g.J);var Kpa={kca:0,jca:1,gca:2,hca:3,ica:4};g.u(Hr,g.J);Hr.prototype.Hf=function(){return Md(this,2)};var rpa={Pna:0,Qna:3,Rna:1,Ona:2};var ppa={Goa:0,Zna:1,boa:2,coa:3,doa:4,eoa:5,goa:6,hoa:7,ioa:8,joa:9,koa:10,noa:11,ooa:12,poa:13,qoa:14,roa:15,soa:16,voa:17,woa:18,xoa:19,yoa:20,zoa:21,Aoa:22,Boa:23,Coa:24,Hoa:25,Ioa:26,toa:27,Doa:28,uoa:29,moa:30,foa:31,loa:32,Joa:33,Koa:34,Yna:35,aoa:36,Eoa:37,Foa:38};var yZa={Ufa:0,Tfa:1,Rfa:2,Sfa:3};var pra={dQa:0,IQa:1,LQa:2,xQa:3,yQa:4,zQa:5,MQa:39,NQa:6,JQa:7,HQa:50,AQa:32,BQa:44,CQa:33,KQa:8,DQa:9,EQa:10,GQa:11,FQa:12,eQa:56,fQa:57,gQa:58,hQa:59,iQa:60,jQa:61,hRa:13,iRa:14,jRa:15,rRa:16,mRa:17,tRa:18,sRa:19,oRa:20,pRa:21,kRa:34,qRa:35,nRa:36,lRa:49,nQa:37,oQa:38,qQa:40,sQa:41,rQa:42,tQa:43,uQa:51,pQa:52,mQa:67,kQa:22,lQa:23,RQa:24,WQa:25,XQa:62,VQa:26,TQa:27,QQa:48,OQa:53,PQa:63,YQa:66,SQa:54,UQa:68,wQa:64,vQa:65,ZQa:28,cRa:29,bRa:30,aRa:31,eRa:45,gRa:46,fRa:47,dRa:55};var ora={vRa:0,wRa:1,uRa:2};var rra={zRa:0,yRa:1,xRa:2};var qra={GRa:0,ERa:1,CRa:2,FRa:3,ARa:4,BRa:5,DRa:6};var $qa={bVa:0,aVa:1,ZUa:2};var Zqa={fVa:0,dVa:1,cVa:2,eVa:3};g.u(Ir,g.J);g.u(Jr,g.J);g.u(Kr,g.J);g.u(Lr,g.J);g.u(Mr,g.J);g.u(Nr,g.J);Nr.prototype.getFeature=function(){return sd(this,2,0)};
Nr.prototype.hasFeature=function(){return null!=g.md(this,2)};g.u(Or,g.J);g.u(Pr,g.J);g.u(Qr,g.J);g.u(Rr,g.J);Rr.prototype.Xf=function(a){g.D(this,1,a)};
Rr.prototype.getScreen=function(){return Kd(this,11)};
Rr.prototype.hasScreen=function(){return null!=g.md(this,11)};
g.u(Sr,g.J);Sr.prototype.getName=function(){return sd(this,1,0)};
Sr.prototype.getStatus=function(){return sd(this,2,0)};
Sr.prototype.getState=function(){return sd(this,3,0)};
Sr.prototype.Qc=function(a){g.D(this,3,a)};
var Cla=[2];g.u(Tr,g.J);g.u(Ur,g.J);var Dla=[1,2];var nra={Bva:0,zva:1,Ava:2};var Xqa={Yza:0,Sza:1,Vza:2,Zza:3,Tza:4,Uza:5,Wza:6,Xza:7};var Yqa={cAa:0,bAa:1,aAa:2};var Wqa={EEa:0,FEa:1,DEa:2};var Vqa={VEa:0,IEa:1,REa:2,WEa:3,TEa:4,LEa:5,HEa:6,JEa:7,KEa:8,UEa:9,SEa:10,MEa:11,PEa:12,QEa:13,OEa:14,NEa:15,GEa:16};var Sqa={NTa:0,JTa:1,MTa:2,LTa:3,KTa:4};var Rqa={RTa:0,PTa:1,QTa:2,OTa:3};var Tqa={YTa:0,UTa:1,WTa:2,STa:3,XTa:4,TTa:5,VTa:6};var Qqa={fUa:0,hUa:1,gUa:2,bUa:3,ZTa:4,aUa:5,iUa:6,cUa:7,jUa:8,dUa:9,eUa:10};var Uqa={mUa:0,lUa:1,kUa:2};var dra={bYa:0,ZXa:1,YXa:2,TXa:3,VXa:4,WXa:5,SXa:6,UXa:7,aYa:8,cYa:9,XXa:10};var cra={eYa:0,dYa:1};var kra={AYa:0,fYa:1,zYa:2,yYa:3,EYa:4,DYa:5,xYa:19,jYa:6,lYa:7,tYa:8,kYa:24,wYa:25,uYa:20,nYa:21,hYa:22,vYa:23,gYa:9,iYa:10,mYa:11,oYa:12,pYa:13,qYa:14,sYa:15,rYa:16,BYa:17,CYa:18};var era={GYa:0,FYa:1,HYa:2};var ara={UYa:0,OYa:1,KYa:2,SYa:3,NYa:4,TYa:5,JYa:6,LYa:7,PYa:8,MYa:9,QYa:10,RYa:11};var gra={bZa:0,ZYa:1,XYa:2,YYa:3,aZa:4};var fra={fZa:0,cZa:1,dZa:2,eZa:3};var bra={jZa:0,iZa:1,hZa:2};var lra={VZa:0,UZa:1,TZa:2,RZa:3,SZa:4};var mra={ZZa:0,XZa:1,WZa:2,YZa:3};var zZa={jga:0,gga:1,hga:2,ega:3,iga:4,fga:5};var spa={tW:0,eta:1,Qqa:2,Rqa:3,Cva:4,sFa:5};var yy={fma:0,Lla:101,Rla:102,Gla:103,Jla:104,Ola:105,Pla:106,Sla:107,Tla:108,Vla:109,Wla:110,ema:111,Qla:112,Mla:113,Ula:114,Yla:115,gma:116,Ila:117,Nla:118,hma:119,Zla:120,ama:121,Kla:122,Hla:123,Xla:124,cma:125,bma:126};var Opa={rma:0,oma:1,pma:2,mma:3,nma:4,lma:5,qma:6};var AZa={jna:0,ina:1,gna:2,hna:3};var BZa={una:0,sna:1,lna:2,rna:3,kna:4,ona:5,qna:6,tna:7,pna:8,nna:9,mna:10};var CZa={wna:0,xna:1,vna:2};g.u(Vr,g.J);g.u(Wr,g.J);g.u(Xr,g.J);Xr.prototype.getState=function(){return Kd(this,1)};
Xr.prototype.Qc=function(a){g.D(this,1,a)};g.u(Yr,g.J);g.u(Zr,g.J);g.u($r,g.J);g.u(as,g.J);as.prototype.xk=function(a){Fd(this,1,a)};g.u(bs,g.J);bs.prototype.Nm=function(){return nd(this,2)};g.u(cs,g.J);cs.prototype.getFeature=function(){return sd(this,1,0)};
cs.prototype.hasFeature=function(){return null!=g.md(this,1)};g.u(ds,g.J);g.u(fs,g.J);fs.prototype.Hf=function(){return sd(this,2,0)};
g.u(gs,g.J);var DZa=[1];g.u(hs,g.J);g.u(is,g.J);g.u(js,g.J);g.u(ks,g.J);ks.prototype.setDescription=function(a){return g.D(this,1,a)};g.u(ls,g.J);g.u(ms,g.J);g.u(ns,g.J);ns.prototype.setBroadcastConferenceType=function(a){return g.D(this,4,a)};g.u(os,g.J);g.u(ps,g.J);g.u(qs,g.J);g.u(rs,g.J);g.u(ts,g.J);ts.prototype.getId=function(){return Md(this,1)};g.u(us,g.J);g.u(vs,g.J);g.u(ws,g.J);var Ela=[5];g.u(xs,g.J);g.u(ys,g.J);g.u(zs,g.J);var Fla=[27];g.u(As,g.J);g.u(Bs,g.J);g.u(Cs,g.J);g.u(Ds,g.J);var EZa=[1,2,3];g.u(Es,g.J);g.u(Fs,g.J);g.u(Gs,g.J);g.u(Hs,g.J);g.u(Is,g.J);g.u(Js,g.J);g.u(Ks,g.J);var Gla=[1];g.u(Ls,g.J);Ls.prototype.Hf=function(){return sd(this,3,0)};g.u(Ms,g.J);g.u(Ns,g.J);g.u(Os,g.J);g.u(Ps,g.J);Ps.prototype.Nf=function(){return Bd(this,Ns,2===yd(this,u3)?2:-1)};
Ps.prototype.setVideoId=function(a){return Dd(this,Ns,2,u3,a)};
Ps.prototype.getPlaylistId=function(){return Bd(this,Ms,4===yd(this,u3)?4:-1)};
var u3=[2,3,4,5];g.u(Qs,g.J);Qs.prototype.getType=function(){return sd(this,1,0)};
Qs.prototype.Nf=function(){return Md(this,3)};
Qs.prototype.setVideoId=function(a){return g.D(this,3,a)};g.u(Rs,g.J);g.u(Ss,g.J);g.u(Ts,g.J);var Oqa=[3];g.u(Us,g.J);g.u(Vs,g.J);g.u(Ws,g.J);g.u(Xs,g.J);g.u(Ys,g.J);g.u(Zs,g.J);Zs.prototype.Xf=function(a){g.D(this,6,a)};g.u(at,g.J);g.u(bt,g.J);g.u(ct,g.J);g.u(dt,g.J);dt.prototype.getStarted=function(){var a=g.qba(this,1);return null==a?!1:a};g.u(et,g.J);g.u(ft,g.J);g.u(gt,g.J);gt.prototype.getDuration=function(){return Kd(this,2)};
gt.prototype.wj=function(a){g.D(this,2,a)};g.u(ht,g.J);g.u(jt,g.J);jt.prototype.Xf=function(a){g.D(this,3,a)};
g.u(kt,g.J);g.u(Hla,g.J);g.u(lt,g.J);g.u(mt,g.J);mt.prototype.Gf=function(){return Bd(this,Hla,8)};
mt.prototype.gZ=function(){return nd(this,8)};
mt.prototype.getVideoData=function(){return Bd(this,lt,15)};
mt.prototype.GK=function(a){F(this,lt,15,a)};
var Ila=[4];g.u(nt,g.J);nt.prototype.Xf=function(a){g.D(this,2,a)};
g.u(ot,g.J);g.u(pt,g.J);pt.prototype.Xf=function(a){g.D(this,1,a)};
var Lla=[3];g.u(qt,g.J);qt.prototype.Xf=function(a){g.D(this,1,a)};
qt.prototype.Nm=function(){return nd(this,2)};g.u(rt,g.J);rt.prototype.Xf=function(a){g.D(this,1,a)};
rt.prototype.Nm=function(){return nd(this,2)};g.u(tt,g.J);tt.prototype.Xf=function(a){g.D(this,1,a)};
tt.prototype.Nm=function(){return nd(this,2)};g.u(ut,g.J);ut.prototype.Xf=function(a){g.D(this,1,a)};
ut.prototype.Nm=function(){return nd(this,2)};g.u(vt,g.J);g.u(wt,g.J);wt.prototype.getVisibilityState=function(){return sd(this,5,0)};
var Nla=[16];g.u(xt,g.J);g.u(zt,g.J);zt.prototype.getPlayerType=function(){return sd(this,7,0)};
zt.prototype.Nf=function(){return Md(this,19)};
zt.prototype.setVideoId=function(a){return g.D(this,19,a)};
g.u(At,g.J);At.prototype.getId=function(){return Md(this,2)};
var Ola=[83,68];g.u(Ct,g.J);g.u(Dt,g.J);g.u(Et,g.J);Et.prototype.Nf=function(){return Md(this,1)};
Et.prototype.setVideoId=function(a){return g.D(this,1,a)};
g.u(Ft,g.J);var Pla=[3],Qla=[9];g.u(Gt,g.J);Gt.prototype.Nf=function(){return Md(this,1)};
Gt.prototype.setVideoId=function(a){return g.D(this,1,a)};g.u(Ht,g.J);g.u(It,g.J);var Rla=[1,2];g.u(Jt,g.J);g.u(Kt,g.J);Kt.prototype.getId=function(){return Md(this,1)};
var Sla=[2];g.u(Lt,g.J);g.u(Mt,g.J);g.u(Nt,g.J);g.u(Ot,g.J);Ot.prototype.getId=function(){return Md(this,1)};
g.u(Pt,g.J);g.u(Qt,g.J);var Tla=[14,17];g.u(Rt,g.J);var Ula=[1,2];g.u(St,g.J);g.u(Tt,g.J);Tt.prototype.getOrigin=function(){return Md(this,3)};g.u(Ut,g.J);g.u(Vt,g.J);g.u(Wt,g.J);Wt.prototype.getContext=function(){return Bd(this,Vt,33)};
var ty=[23,24,11,6,7,5,2,3,13,20,21,22,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,148,151,157,158,159,163,164,168,176,222,383,177,178,179,411,184,188,189,190,191,193,194,195,196,197,198,199,200,201,402,320,203,204,205,206,258,259,260,261,327,209,219,226,227,232,233,234,240,244,247,248,249,251,256,257,266,254,255,270,272,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,328,330,331,332,334,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,410,412,429,413,414,415,416,417,418,430,423,424,425,426,427,431,117,439,441];var FZa={Npa:0,Bpa:1,Epa:2,Cpa:3,Hpa:4,Dpa:5,rpa:6,Kpa:7,ypa:8,mpa:9,zpa:10,Ipa:11,Fpa:12,tpa:13,ppa:14,spa:15,Mpa:16,npa:17,opa:18,Lpa:19,upa:20,qpa:21,Jpa:22,Spa:23,Rpa:24,Opa:25,Apa:26,Gpa:27,Tpa:28,wpa:29,lpa:30,Qpa:31,Ppa:32,xpa:33,Upa:34};var GZa={wqa:0,kqa:1,nqa:2,lqa:3,qqa:4,mqa:5,cqa:6,tqa:7,hqa:8,Wpa:9,iqa:10,rqa:11,oqa:12,eqa:13,aqa:14,dqa:15,vqa:16,Ypa:17,Zpa:18,uqa:19,fqa:20,bqa:21,sqa:22,Aqa:23,zqa:24,xqa:25,jqa:26,pqa:27,Bqa:28,gqa:29,Vpa:30,yqa:31,Xpa:32,Cqa:33};var HZa={Esa:0,Dsa:1,Fsa:2};var IZa={Ara:0,yra:1,ura:3,wra:4,xra:5,zra:6,vra:7};var JZa={Gra:0,Dra:1,Fra:2,Era:3,Cra:4,Bra:5};var KZa={ysa:0,usa:1,vsa:2,wsa:3,xsa:4};var LZa={Ksa:0,Lsa:1,Msa:2,Jsa:3,Hsa:4,Isa:5};var sua={vta:0,fta:1,lta:2,mta:4,sta:8,nta:16,pta:32,uta:64,tta:128,hta:256,jta:512,rta:1024,ita:2048,kta:4096,gta:8192,qta:16384};var Qpa={Zta:0,Yta:1,Xta:2,Wta:4};var Ppa={gua:0,cua:1,eua:2,hua:3,fua:4,aua:5};var MZa={Soa:0,Roa:1,Qoa:2};var NZa={mBa:0,lBa:1,kBa:2};var OZa={cCa:0,MBa:1,aCa:2,OBa:3,UBa:4,eCa:5,bCa:6,CBa:7,BBa:8,ABa:9,GBa:10,LBa:11,KBa:12,DBa:13,VBa:14,QBa:15,SBa:16,sBa:17,ZBa:18,wBa:19,RBa:20,rBa:21,TBa:22,JBa:23,tBa:24,vBa:25,XBa:26,dCa:27,YBa:28,PBa:29,EBa:30,HBa:31,IBa:32,zBa:33,fCa:34,xBa:35,FBa:36,WBa:37,uBa:38,qBa:39,yBa:41,NBa:42};var PZa={oCa:0,nCa:1,mCa:2,lCa:3};var zpa={Yma:0,Wma:1,Xma:2,Tma:3,Uma:4,Vma:5};var Hpa={KHa:0,CHa:1,LHa:2,JHa:4,GHa:8,FHa:16,EHa:32,HHa:64,DHa:128,IHa:256};var QZa={eIa:0,ZHa:1,dIa:2,WHa:3,OHa:4,UHa:5,PHa:6,QHa:7,SHa:8,XHa:9,bIa:10,aIa:11,cIa:12,RHa:13,THa:14,VHa:15,YHa:16,NHa:17};var Fpa={nHa:0,kHa:1,lHa:2,mHa:3};var Jpa={wHa:0,yHa:1,vHa:2,rHa:3,xHa:4,sHa:5,tHa:6,uHa:7};var kpa={xZa:0,tga:1,Mza:2,yFa:3,AFa:4,BFa:5,vFa:6,yVa:7,SFa:8,RFa:9,wFa:10,zFa:11,cWa:12,x9:13,F9:14,y9:15,LKa:16,dHa:17,TFa:18,XFa:19,AHa:20,VFa:21,qHa:22,gIa:23,gGa:24,pHa:25,xFa:26,vVa:27,CTa:28,tNa:29,Nda:30,i2a:31,oHa:32};var jpa={BZa:0,W6:1,iIa:2,hIa:3,SUCCESS:4,gVa:5,Toa:6,bNa:7,tra:9,vga:10,Bla:11,CANCELLED:12,sNa:13,DTa:14,ITa:15,t_a:16};var ipa={qWa:0,hWa:1,mWa:2,lWa:3,iWa:4,jWa:5,dWa:6,pWa:7,oWa:8,gWa:9,fWa:10,kWa:11,nWa:12,eWa:13};var qpa={AKa:0,xKa:1,zKa:2,yKa:3};var RZa={PLa:0,OLa:1,NLa:2};var SZa={SLa:0,QLa:1,RLa:2};var TZa={JOa:0,KOa:1};var UZa={hSa:0,fSa:1,gSa:2};var VZa={HUa:0,DUa:1,EUa:2,FUa:3,GUa:4};var Ipa={kSa:0,iSa:1,jSa:2};var WZa={HSa:0,ESa:1,FSa:2,GSa:3};var Cpa={Fba:0,Eba:1,Cba:2,Dba:3};var Tpa={nda:0,hda:1,kda:2,lda:3,jda:4,mda:5,oda:6,ida:7};var vpa={Yga:0,Xga:1,Zga:2};var npa={vZa:0,Gfa:1,Hfa:2,Ffa:3,Ifa:4};var mpa={wZa:0,FLa:1};var ypa={cpa:0,Yoa:1,Uoa:2,bpa:3,Woa:4,Zoa:5,Xoa:6,Voa:7,apa:8};var Apa={Bsa:0,Asa:1,zsa:2};var Spa={Lza:0,Kza:1,Jza:2};var xpa={eFa:0,dFa:1,cFa:2};var Rpa={ZNa:0,XNa:1,YNa:2};var Bpa={lVa:0,kVa:1,jVa:2};var XZa={nza:0,jza:1,kza:2,lza:3,mza:4,oza:5};var YZa={JKa:0,GKa:1,EKa:2,BKa:3,FKa:4,HKa:5,CKa:6,DKa:7,IKa:8,KKa:9};var ZZa={LVa:0,KVa:1,MVa:2};var $Za={U1a:0,G1a:1,M1a:2,L1a:3,F1a:4,V1a:5,S1a:6,H1a:7,I1a:8,K1a:9,J1a:12,C1a:10,T1a:11,O1a:13,P1a:14,W1a:15,N1a:16,Q1a:17,D1a:18,R1a:19,E1a:20};g.u(Xt,g.J);g.u(Yt,g.J);Yt.prototype.Nf=function(){return g.md(this,1===yd(this,ky)?1:-1)};
Yt.prototype.setVideoId=function(a){return g.zd(this,1,ky,a)};
Yt.prototype.getPlaylistId=function(){return g.md(this,2===yd(this,ky)?2:-1)};
var ky=[1,2];g.u(Zt,g.J);Zt.prototype.getContext=function(){return Bd(this,hq,1)};
var Vla=[3];g.a_a=new g.Yo("ytMainDownloadedVideoEntityActionMetadata");var SH=new g.Yo("changeKeyedMarkersVisibilityCommand");var b_a=new g.Yo("changeMarkersVisibilityCommand");var mBa=new g.Yo("loadMarkersCommand");var iBa=new g.Yo("shoppingOverlayRenderer");var DBa=new g.Yo("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var BBa=new g.Yo("copyTextEndpoint");var c_a=new g.Yo("webPlayerShareEntityServiceEndpoint");g.RH=new g.Yo("urlEndpoint");g.VG=new g.Yo("watchEndpoint");var d_a=new g.Yo("watchPlaylistEndpoint");var e_a={Mda:0,Lda:1,Kda:2,Ida:3,Jda:4};var Gpa={QFa:0,OFa:1,PFa:2,NFa:3};var f_a={lGa:0,kGa:1,iGa:2,jGa:3};var g_a={pGa:0,mGa:1,nGa:2,oGa:3,qGa:4};var h_a={ZGa:0,VGa:1,aHa:2,XGa:3,OGa:4,xGa:5,uGa:36,yGa:27,LGa:31,NGa:6,PGa:7,QGa:8,RGa:9,SGa:10,TGa:11,WGa:29,zGa:30,MGa:32,GGa:12,FGa:13,wGa:14,KGa:15,rGa:16,tGa:35,AGa:28,IGa:17,HGa:18,JGa:19,YGa:20,DGa:25,vGa:33,bHa:21,EGa:22,CGa:26,UGa:23,sGa:24,BGa:34};var i_a={hHa:0,fHa:1,eHa:2,gHa:3};var Ay={HTa:0,ETa:1,GTa:2,FTa:3};var lpa={bWa:0,QVa:1,PVa:2,UVa:3,aWa:4,RVa:5,XVa:6,VVa:7,WVa:8,SVa:9,YVa:10,TVa:11,ZVa:12};var Epa={zHa:0,hGa:1,UFa:2,cGa:3,dGa:4,aGa:5,bGa:6};var j_a={AOa:0,zOa:1};var k_a={KUa:0,JUa:1,IUa:2,LUa:3};var l_a={WUa:0,QUa:1,RUa:2,UUa:4,SUa:5,TUa:6,VUa:7};var m_a={PUa:0,OUa:1,NUa:2};var SAa=new g.Yo("playerMutedAutoplayOverlayRenderer"),TAa=new g.Yo("playerMutedAutoplayEndScreenRenderer");var Vza=new g.Yo("unserializedPlayerResponse"),UAa=new g.Yo("unserializedPlayerResponse");var n_a=new g.Yo("playlistEditEndpoint");var QH=new g.Yo("buttonRenderer");var zy={yZa:0,vxa:4,bOa:1,pra:2,Oca:3,wxa:5,eOa:6,qra:7,rra:8,sra:9};var o_a=new g.Yo("resolveUrlCommandMetadata");var p_a=new g.Yo("modifyChannelNotificationPreferenceEndpoint");var dEa=new g.Yo("pingingEndpoint");var q_a=new g.Yo("unsubscribeEndpoint");var r_a={APa:0,BPa:1,uPa:2,nPa:3,yPa:4,zPa:5,CPa:6,jPa:7,kPa:8,mPa:9,vPa:10,oPa:11,rPa:12,pPa:13,qPa:14,sPa:15,tPa:19,lPa:16,xPa:17,wPa:18};var KBa=new g.Yo("subscribeButtonRenderer");var s_a=new g.Yo("subscribeEndpoint");var Dpa={oSa:0,mSa:1,nSa:2};var jra={ZPa:0,aQa:1,YPa:2,UPa:3,XPa:4,VPa:5,TPa:6,WPa:7};var pza={fW:"LIVING_ROOM_APP_MODE_UNSPECIFIED",cW:"LIVING_ROOM_APP_MODE_MAIN",bW:"LIVING_ROOM_APP_MODE_KIDS",dW:"LIVING_ROOM_APP_MODE_MUSIC",eW:"LIVING_ROOM_APP_MODE_UNPLUGGED",aW:"LIVING_ROOM_APP_MODE_GAMING"};var aBa=new g.Yo("autoplaySwitchButtonRenderer");var eBa,gBa,fBa;eBa=new g.Yo("decoratedPlayerBarRenderer");gBa=new g.Yo("chapteredPlayerBarRenderer");fBa=new g.Yo("multiMarkersPlayerBarRenderer");g.t_a=new g.Yo("markerRenderer");var jBa=new g.Yo("desktopOverlayConfigRenderer");var EBa=new g.Yo("playlistPanelRenderer");var dBa=new g.Yo("suggestedActionTimeRangeTrigger"),bBa=new g.Yo("suggestedActionsRenderer"),cBa=new g.Yo("suggestedActionRenderer");var u_a={j1a:0,h1a:1,i1a:2};var Fy={tW:0,USER:74,mca:459,TRACK:344,fEa:392,zca:419,Hda:337,cDa:237,lsa:236,zla:3,k1a:78,n1a:248,uDa:79,EMa:246,w1a:247,EFa:382,DFa:383,CFa:384,pVa:235,VIDEO:4,t1a:186,Iga:126,BUa:127,Tga:117,yMa:125,SNa:151,Bga:6,dra:132,jra:154,hra:222,ira:155,fra:221,gra:156,AUa:209,zUa:210,l0a:7,TMa:124,lSa:96,nFa:97,B0a:93,C0a:275,Xca:110,Wca:120,MLa:121,Qsa:72,f0a:351,d0a:377,g0a:378,Yca:381,e0a:386,D0a:387,fca:410,Bta:437,Wna:338,Vca:380,U6:352,tKa:113,uKa:114,FVa:82,GVa:112,Cma:354,EVa:21,Oma:375,z9:302,
Vga:136,Rsa:85,M9:22,x1a:23,JVa:252,IVa:253,Uca:254,w9:165,yUa:304,Nma:408,tua:421,DVa:422,m0a:423,LNa:463,PLAYLIST:63,j0a:27,i0a:28,k0a:29,pUa:30,sUa:31,rUa:324,tUa:32,qda:398,vUa:399,wUa:400,qFa:411,pFa:413,rFa:414,uFa:415,MMa:39,NMa:143,RMa:144,IMa:40,JMa:145,LMa:146,QMa:325,aLa:262,cLa:263,bLa:264,fLa:355,gLa:249,iLa:250,hLa:251,aga:46,FOa:49,HOa:50,q9:62,ICa:105,uua:242,BTa:397,VLa:83,rKa:135,cca:87,eca:153,dca:187,Xba:89,Wba:88,Yba:139,aca:91,Zba:104,bca:137,Lfa:99,b_a:100,lFa:326,uma:148,tma:149,
nUa:150,oUa:395,Eca:166,Jca:199,Ica:167,Fca:168,Mca:169,Nca:170,Gca:171,Hca:172,Kca:179,Lca:180,A_a:200,c_a:476,B_a:213,Bca:191,eLa:192,WKa:305,XKa:306,kLa:329,zSa:327,ASa:328,RKa:195,SKa:197,vKa:301,MKa:223,NKa:224,sua:227,Ita:396,yua:356,wua:490,zua:394,Pda:230,Pca:297,G_a:298,rua:342,Ema:346,Loa:245,HVa:261,Usa:265,Zsa:266,Vsa:267,Ssa:268,Tsa:269,Ysa:270,Wsa:271,Xsa:272,hza:303,aza:391,dza:277,iza:278,bza:489,Ena:332,Gna:333,Cna:334,Fna:335,Dna:336,Kfa:340,oua:341,W_a:349,V_a:420,m$:388,l$:389,
n$:390,PMa:281,KMa:282,GOa:286,qUa:288,OMa:291,SMa:292,Xya:295,uUa:296,Wya:299,B9:417,Bua:308,y1a:309,z1a:310,A1a:311,j$:350,D_a:418,msa:424,o_a:425,FFa:429,mFa:430,xua:426,xTa:460,kFa:427,vNa:428,uNa:461,CSa:464,NCa:431,LCa:432,SCa:433,KCa:434,PCa:435,QCa:436,MCa:438,RCa:439,TCa:453,OCa:454,JCa:472,ELa:440,GLa:441,KLa:442,CLa:448,DLa:449,HLa:450,LLa:451,JLa:491,POST:445,zLa:446,ILa:447,YLa:456,GFa:483,XLa:458,LOa:480,NOa:481,MOa:482,pua:452,IPa:465,JPa:466,Ela:467,WLa:468,Ina:469,Yfa:470,Xfa:471,
vua:474,nua:475,mha:477,qua:478,ora:479,lLa:484,jLa:485,UKa:486,TKa:487,G9:488};var $za=new g.Yo("cipher");var Wza=new g.Yo("playerVars");var VAa=new g.Yo("playerVars");var F3=g.C.window,v_a,w_a,$t=(null==F3?void 0:null==(v_a=F3.yt)?void 0:v_a.config_)||(null==F3?void 0:null==(w_a=F3.ytcfg)?void 0:w_a.data_)||{};g.Fa("yt.config_",$t);var fu=[];var dma=/^[\w.]*$/,bma={q:!0,search_query:!0},ama=String(ju);var ema=new function(){var a=window.document;this.j=window;this.u=a};
g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return ku(uu(a))});g.Wa();var hma="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var jma={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"},lma="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.t(MYa)),qma=!1,vDa=Au;g.u(Du,Za);Gu.prototype.then=function(a,b,c){return 1===this.j&&a?(a=a.call(c,this.qd))&&"function"===typeof a.then?a:Iu(a):2===this.j&&b?(a=b.call(c,this.qd))&&"function"===typeof a.then?a:Hu(a):this};
Gu.prototype.getValue=function(){return this.qd};
Gu.prototype.$goog_Thenable=!0;var Ju=!1;var Wu=TF||xI;var Cma=/^([0-9\.]+):([0-9\.]+)$/;g.u(mv,Za);mv.prototype.name="BiscottiError";g.u(lv,Za);lv.prototype.name="BiscottiMissingError";var ov={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},nv=null;var qv=g.Ha("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",qv);g.k=g.rv.prototype;g.k.get=function(a,b){wv(a);vv(a);a=void 0!==qv[a]?qv[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){wv(a);vv(a);if(null==b)throw Error("ExpectedNotNull");qv[a]=b.toString()};
g.k.remove=function(a){wv(a);vv(a);delete qv[a]};
g.k.save=function(){var a=!0;g.T("web_secure_pref_cookie_killswitch")&&(a=!1);g.Lu(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.Dca(qv)};
g.k.dump=function(){var a=[],b;for(b in qv)a.push(b+"="+encodeURIComponent(String(qv[b])));return a.join("&")};
La(g.rv);var Oma={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"},Zma={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},$ma={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},Qma={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};zv.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.fi(b))}catch(f){return}else e=escape(b);g.Lu(a,e,c,this.u)};
zv.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.Mu(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
zv.prototype.remove=function(a){this.j&&this.j.remove(a);g.Nu(a,"/",this.u)};var H3;H3=window;g.U=H3.ytcsi&&H3.ytcsi.now?H3.ytcsi.now:H3.performance&&H3.performance.timing&&H3.performance.now&&H3.performance.timing.navigationStart?function(){return H3.performance.timing.navigationStart+H3.performance.now()}:function(){return(new Date).getTime()};Av.prototype.Fh=function(a,b){return Bv(a,1,b)};g.u(Dv,Av);Dv.prototype.Tk=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ha("yt.scheduler.instance.cancelJob");b?b(a):g.zu(a)}};
Dv.prototype.start=function(){var a=g.Ha("yt.scheduler.instance.start");a&&a()};
Dv.prototype.pause=function(){var a=g.Ha("yt.scheduler.instance.pause");a&&a()};g.Vn=g.Ev();var Hv=function(){var a;return function(){a||(a=new zv("ytidb"));return a}}();var Nv=[],Jv,Ov=!1;g.u(g.Rv,Error);var I3={},dna=(I3.AUTH_INVALID="No user identifier specified.",I3.EXPLICIT_ABORT="Transaction was explicitly aborted.",I3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",I3.MISSING_INDEX="Index not created.",I3.MISSING_OBJECT_STORES="Object stores not created.",I3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",I3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",I3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",I3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",I3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",I3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",I3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",I3),J3={},ena=(J3.AUTH_INVALID="ERROR",J3.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",J3.EXPLICIT_ABORT="IGNORED",
J3.IDB_NOT_SUPPORTED="ERROR",J3.MISSING_INDEX="WARNING",J3.MISSING_OBJECT_STORES="ERROR",J3.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",J3.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",J3.QUOTA_EXCEEDED="WARNING",J3.QUOTA_MAYBE_EXCEEDED="WARNING",J3.UNKNOWN_ABORT="WARNING",J3.INCOMPATIBLE_DB_VERSION="WARNING",J3),K3={},fna=(K3.AUTH_INVALID=!1,K3.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,K3.EXPLICIT_ABORT=!1,K3.IDB_NOT_SUPPORTED=!1,K3.MISSING_INDEX=!1,K3.MISSING_OBJECT_STORES=!1,K3.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,K3.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,K3.QUOTA_EXCEEDED=!1,K3.QUOTA_MAYBE_EXCEEDED=!0,K3.UNKNOWN_ABORT=!0,K3.INCOMPATIBLE_DB_VERSION=!1,K3);g.u(g.Wv,g.Rv);g.u(Xv,g.Wv);g.u(Yv,Error);var gna=["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.cw.all=function(a){return new g.cw(new bw(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Wt:0};f.Wt<a.length;f={Wt:f.Wt},++f.Wt)g.cw.resolve(a[f.Wt]).then(function(h){return function(l){d[h.Wt]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.cw.resolve=function(a){return new g.cw(new bw(function(b,c){a instanceof g.cw?a.then(b,c):b(a)}))};
g.cw.reject=function(a){return new g.cw(new bw(function(b,c){c(a)}))};
g.cw.prototype.then=function(a,b){var c=this,d=null!=a?a:ina,e=null!=b?b:hna;return new g.cw(new bw(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){jna(c,c,d,f,h)}),c.onRejected.push(function(){kna(c,c,e,f,h)})):"FULFILLED"===c.state.status?jna(c,c,d,f,h):"REJECTED"===c.state.status&&kna(c,c,e,f,h)}))};
g.cw.prototype.catch=function(a){return this.then(void 0,a)};g.k=nna.prototype;g.k.advance=function(a){this.cursor.advance(a);return gw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return gw(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return gw(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.BC=function(){return this.cursor.primaryKey};g.k=ona.prototype;g.k.add=function(a,b,c){return g.kw(this,[a],{mode:"readwrite",Ub:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.kw(this,[a],{mode:"readwrite",Ub:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.kw(this,[a],{mode:"readonly",Ub:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.kw(this,[a],{mode:"readwrite",Ub:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.kw(this,[a],{mode:"readonly",Ub:!0},function(c){return c.objectStore(a).get(b)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=hw.prototype;g.k.add=function(a,b){return g.ew(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return g.ew(this.j.clear()).then(function(){})};
g.k.count=function(a){return g.ew(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?tna(this,a):g.ew(this.j.delete(a))};
g.k.get=function(a){return g.ew(this.j.get(a))};
g.k.index=function(a){try{return new zna(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Yv(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
mw.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.Wv("EXPLICIT_ABORT");};
mw.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new hw(a),this.B.set(a,b));return b};
g.k=zna.prototype;g.k.count=function(a){return g.ew(this.j.count(a))};
g.k.delete=function(a){return g.qw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return g.ew(this.j.get(a))};
g.k.getKey=function(a){return g.ew(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=Ana.prototype;g.k.advance=function(a){this.cursor.advance(a);return pw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return pw(this.request)};
g.k.delete=function(){return g.ew(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.BC=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return g.ew(this.cursor.update(a))};tw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Cna(a,b,c)};
tw.prototype.delete=function(a){a=void 0===a?{}:a;return rw(this.name,a)};
tw.prototype.open=function(){function a(){var f,h,l,m,n,p,q,v,w,y;return g.z(function(A){switch(A.j){case 1:return h=null!=(f=Error().stack)?f:"",g.ra(A,2),g.x(A,c.B(c.name,c.options.version,e),4);case 4:l=A.u;for(var B=c.options,E=[],G=g.r(Object.keys(B.iq)),H=G.next();!H.done;H=G.next()){H=H.value;var I=B.iq[H],O=void 0===I.D3?Number.MAX_VALUE:I.D3;!(l.j.version>=I.Jn)||l.j.version>=O||l.j.objectStoreNames.contains(H)||E.push(H)}m=E;if(0===m.length){A.Ma(5);break}n=Object.keys(c.options.iq);p=l.objectStoreNames();
if(c.I<g.cu("ytidb_reopen_db_retries",0))return c.I++,l.close(),Pv(new g.Wv("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),A.return(a());if(!(c.D<g.cu("ytidb_remake_db_retries",1))){A.Ma(6);break}c.D++;if(!g.T("ytidb_remake_db_enable_backoff_delay")){A.Ma(7);break}return g.x(A,Dna(c.u),8);case 8:c.u*=2;case 7:return g.x(A,c.delete(),9);case 9:return Pv(new g.Wv("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),
A.return(a());case 6:throw new Xv(p,n);case 5:return A.return(l);case 2:q=g.va(A);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){A.Ma(10);break}return g.x(A,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:v=A.u;w=v.j.version;if(void 0!==c.options.version&&w>c.options.version+
1)throw v.close(),c.C=!1,Ena(c,w);return A.return(v);case 10:throw b(),q instanceof Error&&!g.T("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),$v(q,c.name,"",null!=(y=c.options.version)?y:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw Ena(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,U4:b,upgrade:this.options.upgrade};return this.j=d=a()};var ww=new tw("YtIdbMeta",{iq:{databases:{Jn:1}},upgrade:function(a,b){b(1)&&g.iw(a,"databases",{keyPath:"actualName"})}});var Aw,zw=new function(){}(new function(){});new g.Xi;g.k=Ew.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(Dw(this)&&this.Ue){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.dg.set(d,this.Te).then(function(e){d.id=e;c.Uf.mf()&&Fw(c,d)}).catch(function(e){Fw(c,d);
Gw(c,e)})}else this.No(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(Dw(this)&&this.Ue){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.fb&&this.fb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Uf.mf()||this.fb&&this.fb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.z(function(m){if(1==m.j)return g.x(m,d.dg.set(e,d.Te).catch(function(n){Gw(d,n)}),2);
f(h,l);g.pa(m)})}}this.No(a,b,e.skipRetry)}else this.dg.set(e,this.Te).catch(function(h){d.No(a,b,e.skipRetry);
Gw(d,h)})}else this.No(a,b,this.fb&&this.fb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(Dw(this)&&this.Ue){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.dg.vv(d.id,c.Te):e=!0;c.Uf.Co&&c.fb&&c.fb("vss_network_hint")&&c.Uf.Co(!0);f(h,l)};
this.No(d.url,d.options);this.dg.set(d,this.Te).then(function(h){d.id=h;e&&c.dg.vv(d.id,c.Te)}).catch(function(h){Gw(c,h)})}else this.No(a,b)};
g.k.CA=function(){var a=this;if(!Dw(this))throw g.aw("throttleSend");this.j||(this.j=this.ll.Fh(function(){var b;return g.z(function(c){if(1==c.j)return g.x(c,a.dg.XO("NEW",a.Te),2);if(3!=c.j)return b=c.u,b?g.x(c,Fw(a,b),3):(a.TN(),c.return());a.j&&(a.j=0,a.CA());g.pa(c)})},this.MS))};
g.k.TN=function(){this.ll.Tk(this.j);this.j=0};Iw.prototype.toString=function(){return this.topic};var x_a=g.Ha("ytPubsub2Pubsub2Instance")||new g.Co;g.Co.prototype.subscribe=g.Co.prototype.subscribe;g.Co.prototype.unsubscribeByKey=g.Co.prototype.Kg;g.Co.prototype.publish=g.Co.prototype.X;g.Co.prototype.clear=g.Co.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",x_a);var Lw=g.Ha("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",Lw);var Mw=g.Ha("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",Mw);var Xna=g.Ha("ytPubsub2Pubsub2IsAsync")||{};
g.Fa("ytPubsub2Pubsub2IsAsync",Xna);g.Fa("ytPubsub2Pubsub2SkipSubKey",null);g.u(Pw,tw);Pw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.Mw?Nna:Mna)(a,b,Object.assign({},c))};
Pw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Mw?Rna:Ona)(this.name,a)};var Rw;var y_a={},foa=g.Qw("ServiceWorkerLogsDatabase",{iq:(y_a.SWHealthLog={Jn:1},y_a),Mw:!0,upgrade:function(a,b){b(1)&&g.nw(g.iw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Xw={},loa=0;Yw.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
Yw.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
Yw.prototype.removeParams=function(a){return a.split("?")[0]};
Yw.prototype.removeParams=Yw.prototype.removeParams;Yw.prototype.isEndpointCFR=Yw.prototype.isEndpointCFR;Yw.prototype.requestComplete=Yw.prototype.requestComplete;Yw.getInstance=Zw;var cx;g.u(ex,g.Uf);g.k=ex.prototype;g.k.mf=function(){return this.j.mf()};
g.k.Co=function(a){this.j.j=a};
g.k.EY=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.WX=function(){this.u=!0};
g.k.Na=function(a,b){return this.j.Na(a,b)};
g.k.nA=function(a){a=Tn(this.j,a);a.then(function(b){g.T("use_cfr_monitor")&&Zw().requestComplete("generate_204",b)});
return a};
ex.prototype.sendNetworkCheckRequest=ex.prototype.nA;ex.prototype.listen=ex.prototype.Na;ex.prototype.enableErrorFlushing=ex.prototype.WX;ex.prototype.getWindowStatus=ex.prototype.EY;ex.prototype.networkStatusHint=ex.prototype.Co;ex.prototype.isNetworkAvailable=ex.prototype.mf;ex.getInstance=noa;g.u(g.fx,g.Uf);g.fx.prototype.mf=function(){var a=g.Ha("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0};
g.fx.prototype.Co=function(a){var b=g.Ha("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)};
g.fx.prototype.nA=function(a){var b=this,c;return g.z(function(d){c=g.Ha("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.T("skip_network_check_if_cfr")&&Zw().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Co((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.mf())})):c?d.return(c(a)):d.return(!0)})};var ix;g.u(gx,Ew);gx.prototype.writeThenSend=function(a,b){b||(b={});g.Tv()||(this.Ue=!1);Ew.prototype.writeThenSend.call(this,a,b)};
gx.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Tv()||(this.Ue=!1);Ew.prototype.sendThenWrite.call(this,a,b,c)};
gx.prototype.sendAndWrite=function(a,b){b||(b={});g.Tv()||(this.Ue=!1);Ew.prototype.sendAndWrite.call(this,a,b)};
gx.prototype.awaitInitialization=function(){return this.u.promise};var qx=0,sx=0,tx,rx=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:sx};g.Fa("ytNetworklessLoggingInitializationOptions",rx);g.ux.prototype.isReady=function(){!this.config_&&Sma()&&(this.config_=g.xv());return!!this.config_};var z_a=0,wx=g.kf?"webkit":zl?"moz":g.Dc?"ms":g.KF?"o":"",A_a=g.Ha("ytDomDomGetNextId")||function(){return++z_a};
g.Fa("ytDomDomGetNextId",A_a);var yoa={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};yx.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yx.prototype.LP=function(){return this.event?!1===this.event.returnValue:!1};
yx.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yx.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var zx=g.C.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",zx);var Boa=g.C.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",Boa);var Cra=$f(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Coa=$f(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var AF=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.Xa(Kx,g.K);Kx.prototype.V=function(a){void 0===a.j&&zoa(a);var b=a.j;void 0===a.u&&zoa(a);this.j=new g.Gg(b,a.u)};
Kx.prototype.Np=function(){return this.j||new g.Gg};
Kx.prototype.W=function(){if(this.j){var a=AF();if(0!=this.C){var b=this.I,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.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}};
Kx.prototype.ea=function(){window.clearInterval(this.N);g.Bx(this.Y)};var Ox={};var B_a,Rx,Tx;B_a=g.C.ytPubsubPubsubInstance||new g.Co;Rx=g.C.ytPubsubPubsubSubscribedKeys||{};Tx=g.C.ytPubsubPubsubTopicToKeys||{};g.Sx=g.C.ytPubsubPubsubIsSynchronous||{};g.Co.prototype.subscribe=g.Co.prototype.subscribe;g.Co.prototype.unsubscribeByKey=g.Co.prototype.Kg;g.Co.prototype.publish=g.Co.prototype.X;g.Co.prototype.clear=g.Co.prototype.clear;g.Fa("ytPubsubPubsubInstance",B_a);g.Fa("ytPubsubPubsubTopicToKeys",Tx);g.Fa("ytPubsubPubsubIsSynchronous",g.Sx);
g.Fa("ytPubsubPubsubSubscribedKeys",Rx);Xx.prototype.storePayload=function(a,b){this.store.push({payload:b,keys:a});b=[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo].join("/");this.j[b]?this.j[b]++:this.j[b]=1;this.j[b]>=this.policy.maxBatchSize&&(this.policy.onBatchSizeExceeded(a),this.j[b]=0);return b};
Xx.prototype.extractMatchingEntries=function(a){for(var b=[],c=[],d=g.r(this.store),e=d.next();!e.done;e=d.next()){e=e.value;a:{var f=a;var h=Object.keys(f);h=g.r(h);for(var l=h.next();!l.done;l=h.next())if(l=l.value,e.keys[l]!==f[l]){f=!1;break a}f=!0}f?b.push(e.payload):c.push(e)}this.store=c;c=0;d=Joa(this,a);a=[];d=g.r(d);for(e=d.next();!e.done;e=d.next())e=e.value,c+=this.j[e],a.push([e,this.j[e]]),this.j[e]=0;c!==b.length&&iu(new g.Rv("Transport IMS extracted entries count != keyCounter sum",
a,b.length));return b};
Xx.prototype.getSequenceCount=function(a){var b=Joa(this,a);a=0;b=g.r(b);for(var c=b.next();!c.done;c=b.next())a+=this.j[c.value];return a};
Xx.prototype.getSequenceCount=Xx.prototype.getSequenceCount;Xx.prototype.extractMatchingEntries=Xx.prototype.extractMatchingEntries;Xx.prototype.storePayload=Xx.prototype.storePayload;var Qoa=g.cu("initial_gel_batch_timeout",2E3),Zoa=Math.pow(2,16)-1,fy=void 0,hy=new Koa,gy=new Koa,ny=!0,dy=g.C.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",dy);var ey=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Fa("ytLoggingTransportGELProtoQueue_",ey);var my=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",my);var ly=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Fa("ytLoggingTransportTokensToJspbCttTargetIds_",ly);var by={};var oy=g.C.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",oy);var Qy,Ry,tra=g.ux,LRa=!1;var apa=g.C.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",apa);var MRa={adNotify:function(a){var b=new kq;try{return a.adMediaTimeSec&&g.D(b,1,a.adMediaTimeSec),a.adMediaTimeMs&&g.D(b,6,a.adMediaTimeMs),a.timeToAdBreakSec&&g.D(b,2,a.timeToAdBreakSec),a.clientScreenNonce&&g.D(b,3,a.clientScreenNonce),a.clientPlaybackNonce&&g.D(b,4,a.clientPlaybackNonce),a.videoAdBreakOffsetSec&&g.D(b,5,a.videoAdBreakOffsetSec),a.videoAdBreakOffsetMs&&g.D(b,7,a.videoAdBreakOffsetMs),b}catch(c){}},
biscottiBasedDetection:function(a){var b=new Hr;try{return a.detected&&g.D(b,1,a.detected),a.source&&g.D(b,2,a.source),b}catch(c){}},
adNotifyFilled:function(a){var b=new jq;try{return a.t_&&g.D(b,1,iZa[a.t_]),b}catch(c){}},
idbTransactionEnded:function(a){var b=new gt;try{return a.objectStoreNames&&g.D(b,1,a.objectStoreNames),a.duration&&b.wj(a.duration),a.isSuccessful&&g.D(b,3,a.isSuccessful),a.connectionHasUnknownAbortedTransaction&&g.D(b,4,a.connectionHasUnknownAbortedTransaction),a.tryCount&&g.D(b,5,a.tryCount),a.tag&&g.D(b,6,LZa[a.tag]),b}catch(c){}},
idbUnexpectedlyClosed:function(a){var b=new ht;try{return a.dbName&&g.D(b,1,a.dbName),a.dbVersion&&g.D(b,2,a.dbVersion),b}catch(c){}},
flowEvent:function(a){var b=new Zs;try{a.flowNonce&&g.D(b,1,a.flowNonce);if(a.flowEventType){a:{var c=a.flowEventType,d=new Ys;try{c.qY&&g.D(d,1,FZa[c.qY]);c.flowEventType&&g.D(d,2,c.flowEventType);var e=d;break a}catch(Eb){}e=void 0}F(b,Ys,2,e)}if(a.flowMetadata){a:{var f=a.flowMetadata,h=new Xs;try{if(f.notaireContext){b:{var l=f.notaireContext,m=new us;try{if(l.serverInfo){c:{var n=l.serverInfo,p=new ts;try{n.id&&g.D(p,1,n.id);n.forceLog&&g.D(p,2,n.forceLog);var q=p;break c}catch(Eb){}q=void 0}F(m,
ts,1,q)}if(l.clientInfo){c:{var v=l.clientInfo,w=new rs;try{v.timeSinceReceivedMs&&g.D(w,1,v.timeSinceReceivedMs);var y=w;break c}catch(Eb){}y=void 0}F(m,rs,2,y)}var A=m;break b}catch(Eb){}A=void 0}F(h,us,1,A)}if(f.offlineTransferStatusChangedContext){b:{var B=f.offlineTransferStatusChangedContext,E=new As;try{if(B.offlineTransferStatusChanged){var G=Lpa(B.offlineTransferStatusChanged);F(E,xs,1,G)}var H=E;break b}catch(Eb){}H=void 0}F(h,As,2,H)}if(f.offlineOrchestrationContext){b:{var I=f.offlineOrchestrationContext,
O=new ws;try{I.entityType&&g.D(O,1,I.entityType);I.entityId&&g.D(O,7,I.entityId);I.y_&&g.D(O,6,g_a[I.y_]);I.x_&&g.D(O,2,f_a[I.x_]);I.z_&&g.D(O,10,h_a[I.z_]);I.isRetryable&&g.D(O,3,I.isRetryable);if(I.orchestrationAction){var L=Lqa(I.orchestrationAction);F(O,vs,4,L)}if(I.additionalOrchestrationActions){var P=Lqa(I.additionalOrchestrationActions);Jd(O,5,vs,P)}I.intervalSinceEnqueuedMs&&g.D(O,8,I.intervalSinceEnqueuedMs);I.executionIntervalMs&&g.D(O,9,I.executionIntervalMs);var S=O;break b}catch(Eb){}S=
void 0}F(h,ws,3,S)}if(f.shortsCreationContext){b:{var ca=f.shortsCreationContext,R=new Ks;try{ca.n4&&g.xd(R,1,r_a[ca.n4]);var na=R;break b}catch(Eb){}na=void 0}F(h,Ks,4,na)}if(f.mdxConnectionContext){b:{var sa=f.mdxConnectionContext,Aa=new os;try{sa.isReconnection&&g.D(Aa,1,sa.isReconnection);sa.PX&&g.D(Aa,2,OZa[sa.PX]);sa.isRetry&&g.D(Aa,3,sa.isRetry);var wa=Aa;break b}catch(Eb){}wa=void 0}F(h,os,5,wa)}if(f.premiumMultiStepPurchaseContext){b:{var ta=f.premiumMultiStepPurchaseContext,Ma=new Hs;try{if(ta.selectedOption){c:{var Ka=
ta.selectedOption,qa=new Gs;try{Ka.Ez&&g.D(qa,1,ZYa[Ka.Ez]);Ka.pz&&g.D(qa,2,Oy[Ka.pz]);Ka.itemExternalId&&g.D(qa,3,Ka.itemExternalId);var nb=qa;break c}catch(Eb){}nb=void 0}F(Ma,Gs,1,nb)}ta.pz&&g.D(Ma,2,Oy[ta.pz]);ta.ot&&g.D(Ma,3,Py[ta.ot]);ta.landingPageVariantId&&g.D(Ma,4,ta.landingPageVariantId);ta.jY&&g.D(Ma,5,RZa[ta.jY]);ta.themeKey&&g.D(Ma,6,ta.themeKey);ta.r4&&g.D(Ma,7,SZa[ta.r4]);var Sb=Ma;break b}catch(Eb){}Sb=void 0}F(h,Hs,6,Sb)}if(f.mdxReceiverConnectionContext){b:{var Ua=f.mdxReceiverConnectionContext,
$a=new ps;try{Ua.isFromAppLaunch&&g.D($a,1,Ua.isFromAppLaunch);Ua.MX&&g.D($a,2,NZa[Ua.MX]);Ua.supportsSmoothPairing&&g.D($a,3,Ua.supportsSmoothPairing);Ua.hasManuallyPairedRemotesOnAppStartup&&g.D($a,4,Ua.hasManuallyPairedRemotesOnAppStartup);Ua.c_&&g.D($a,5,UYa[Ua.c_]);Ua.mdxSenderConnectedCounter&&g.D($a,6,Ua.mdxSenderConnectedCounter);Ua.mY&&g.D($a,7,MZa[Ua.mY]);Ua.appReloadCount&&g.D($a,8,Ua.appReloadCount);var bc=$a;break b}catch(Eb){}bc=void 0}F(h,ps,7,bc)}if(f.parentToolsOnboardingContext){b:{var Sa=
f.parentToolsOnboardingContext,ab=new Cs;try{Sa.o5&&g.D(ab,1,fZa[Sa.o5]);if(Sa.kidsFlowInfo){c:{var tb=Sa.kidsFlowInfo,fc=new Bs;try{tb.FZ&&g.D(fc,1,cZa[tb.FZ]);tb.flowLabel&&g.D(fc,2,tb.flowLabel);tb.jZ&&g.D(fc,3,dZa[tb.jZ]);tb.hostClientVersion&&g.D(fc,4,tb.hostClientVersion);var Tb=fc;break c}catch(Eb){}Tb=void 0}F(ab,Bs,2,Tb)}Sa.EZ&&g.D(ab,3,bZa[Sa.EZ]);Sa.XW&&g.D(ab,4,eZa[Sa.XW]);Sa.isKidSignedIn&&g.D(ab,5,Sa.isKidSignedIn);Sa.alreadyOnboardedYtk&&g.D(ab,6,Sa.alreadyOnboardedYtk);Sa.alreadyOnboardedSupex&&
g.D(ab,7,Sa.alreadyOnboardedSupex);var Lc=ab;break b}catch(Eb){}Lc=void 0}F(h,Cs,8,Lc)}if(f.hashtagAutoCompleteContext){b:{var nc=f.hashtagAutoCompleteContext,bd=new ds;try{nc.suggestionSelected&&g.D(bd,1,nc.suggestionSelected);var cd=bd;break b}catch(Eb){}cd=void 0}F(h,ds,9,cd)}if(f.liveStreamingContext){b:{var ob=f.liveStreamingContext,Pb=new ns;try{ob.jX&&g.D(Pb,1,hZa[ob.jX]);ob.isAutoDashboard&&g.D(Pb,2,ob.isAutoDashboard);ob.externalVideoId&&g.D(Pb,3,ob.externalVideoId);ob.iX&&Pb.setBroadcastConferenceType(gZa[ob.iX]);
if(ob.eventData){c:{var Hb=ob.eventData,gc=new ms;try{if(Hb.webrtcHandshakeOffer){d:{var Kb=Hb.webrtcHandshakeOffer,hc=new ls;try{Kb.localVideoSsrc&&g.D(hc,1,Kb.localVideoSsrc);Kb.localAudioSsrc&&g.D(hc,2,Kb.localAudioSsrc);Kb.participantId&&g.D(hc,3,Kb.participantId);var Ga=hc;break d}catch(Eb){}Ga=void 0}F(gc,ls,1,Ga)}if(Hb.webrtcHandshakeAnswer){d:{var Ia=Hb.webrtcHandshakeAnswer,Sd=new js;try{Ia.remoteVideoSsrc&&g.D(Sd,1,Ia.remoteVideoSsrc);Ia.remoteAudioSsrc&&g.D(Sd,2,Ia.remoteAudioSsrc);var Ja=
Sd;break d}catch(Eb){}Ja=void 0}F(gc,js,2,Ja)}if(Hb.webrtcHandshakeError){d:{var Mc=Hb.webrtcHandshakeError,vf=new ks;try{Mc.description&&vf.setDescription(Mc.description);var ie=vf;break d}catch(Eb){}ie=void 0}F(gc,ks,3,ie)}if(Hb.costreamStartNotification){d:{var je=Hb.costreamStartNotification,ke=new hs;try{je.broadcastStartTimeMs&&g.D(ke,1,je.broadcastStartTimeMs);var Td=ke;break d}catch(Eb){}Td=void 0}F(gc,hs,4,Td)}if(Hb.remoteParticipant){d:{var Ce=Hb.remoteParticipant,pe=new is;try{Ce.videoSsrc&&
g.D(pe,1,Ce.videoSsrc);Ce.audioSsrc&&g.D(pe,2,Ce.audioSsrc);var td=pe;break d}catch(Eb){}td=void 0}F(gc,is,5,td)}var yb=gc;break c}catch(Eb){}yb=void 0}F(Pb,ms,5,yb)}var pb=Pb;break b}catch(Eb){}pb=void 0}F(h,ns,10,pb)}if(f.touAppealContext){b:{var rc=f.touAppealContext,id=new Ps;try{rc.scope&&g.D(id,1,rc.scope);if(rc.videoId){var le=id.setVideoId;c:{var Pe=rc.videoId,Fc=new Ns;try{Pe.externalVideoId&&g.D(Fc,1,Pe.externalVideoId);var Ud=Fc;break c}catch(Eb){}Ud=void 0}le.call(id,Ud)}if(rc.videoThumbnailId){c:{var Ad=
rc.videoThumbnailId,Vd=new Os;try{Ad.externalVideoId&&g.D(Vd,1,Ad.externalVideoId);Ad.thumbnailVersion&&g.D(Vd,3,Ad.thumbnailVersion);Ad.checksum&&g.D(Vd,4,Ad.checksum);var rg=Vd;break c}catch(Eb){}rg=void 0}Dd(id,Os,3,u3,rg)}if(rc.playlistId){c:{var Wd=rc.playlistId,Pc=new Ms;try{Wd.externalPlaylistId&&g.D(Pc,1,Wd.externalPlaylistId);var qe=Pc;break c}catch(Eb){}qe=void 0}Dd(id,Ms,4,u3,qe)}rc.urlHostname&&g.zd(id,5,u3,rc.urlHostname);rc.encodedTouViolativeContentId&&g.D(id,6,rc.encodedTouViolativeContentId);
rc.encodedChannelTouViolativeContentId&&g.D(id,7,rc.encodedChannelTouViolativeContentId);var Qc=id;break b}catch(Eb){}Qc=void 0}F(h,Ps,11,Qc)}if(f.dragAndDropContext){b:{var De=f.dragAndDropContext,Xd=new bs;try{if(De.rootVe){var ef=By(De.rootVe);F(Xd,as,1,ef)}if(De.ve){var ih=By(De.ve);F(Xd,as,2,ih)}var Ig=Xd;break b}catch(Eb){}Ig=void 0}F(h,bs,12,Ig)}if(f.socialSuggestionsContext){b:{var ff=f.socialSuggestionsContext,oc=new Ls;try{ff.u4&&g.D(oc,1,UZa[ff.u4]);ff.suggestionSelected&&g.D(oc,2,ff.suggestionSelected);
ff.source&&g.D(oc,3,VZa[ff.source]);var Yd=oc;break b}catch(Eb){}Yd=void 0}F(h,Ls,13,Yd)}if(f.featureEnablementContext){b:{var Gd=f.featureEnablementContext,Zd=new cs;try{Gd.feature&&g.D(Zd,1,rqa[Gd.feature]);var Jg=Zd;break b}catch(Eb){}Jg=void 0}F(h,cs,14,Jg)}if(f.iapContext){b:{var pc=f.iapContext,zc=new fs;try{if(pc.playIapProduct){c:{var Rc=pc.playIapProduct,Mb=new gs;try{Rc.packageId&&g.D(Mb,1,Rc.packageId);Rc.productId&&g.D(Mb,2,Rc.productId);var Hd=Mb;break c}catch(Eb){}Hd=void 0}Dd(zc,gs,
1,DZa,Hd)}pc.source&&g.D(zc,2,HZa[pc.source]);pc.attributionId&&g.D(zc,3,pc.attributionId);pc.externalVideoId&&g.D(zc,4,pc.externalVideoId);pc.externalChannelId&&g.D(zc,5,pc.externalChannelId);var Kg=zc;break b}catch(Eb){}Kg=void 0}F(h,fs,15,Kg)}if(f.shoppingCheckoutContext){b:{var gf=f.shoppingCheckoutContext,re=new Js;try{if(gf.shoppingFlowParams){c:{var Lg=gf.shoppingFlowParams,ii=new Is;try{Lg.a6&&g.D(ii,1,$Za[Lg.a6]);var Qe=ii;break c}catch(Eb){}Qe=void 0}F(re,Is,1,Qe)}gf.m4&&g.D(re,2,TZa[gf.m4]);
var Zf=re;break b}catch(Eb){}Zf=void 0}F(h,Js,16,Zf)}if(f.ypcCancellationContext){b:{var Hh=f.ypcCancellationContext,Ee=new Vs;try{Hh.pz&&g.D(Ee,1,Oy[Hh.pz]);Hh.ot&&g.D(Ee,2,Py[Hh.ot]);var sg=Ee;break b}catch(Eb){}sg=void 0}F(h,Vs,17,sg)}if(f.ypcBrowseOffersContext){b:{var Mg=f.ypcBrowseOffersContext,Ng=new Us;try{if(Mg.commerceFlowLoggingParams){var aj=Pqa(Mg.commerceFlowLoggingParams);F(Ng,Ts,1,aj)}Mg.Ez&&g.D(Ng,2,$Ya[Mg.Ez]);Mg.qH&&g.D(Ng,3,zZa[Mg.qH]);var jh=Ng;break b}catch(Eb){}jh=void 0}F(h,
Us,18,jh)}if(f.mdxStreamTransferContext){b:{var hf=f.mdxStreamTransferContext,Vc=new qs;try{hf.AX&&g.D(Vc,1,PZa[hf.AX]);var wf=Vc;break b}catch(Eb){}wf=void 0}F(h,qs,19,wf)}if(f.pdgBuyFlowContext){b:{var xf=f.pdgBuyFlowContext,Og=new Fs;try{xf.ot&&g.D(Og,1,Py[xf.ot]);if(xf.entryPointClickedContext){c:{var tg=xf.entryPointClickedContext,Db=new Ds;try{tg.M4&&g.zd(Db,1,EZa,l_a[tg.M4]);tg.K4&&g.zd(Db,2,EZa,k_a[tg.K4]);tg.l4&&g.zd(Db,3,EZa,j_a[tg.l4]);var bj=Db;break c}catch(Eb){}bj=void 0}F(Og,Ds,2,bj)}if(xf.itemSelectionPageDisplayedContext){c:{var ji=
xf.itemSelectionPageDisplayedContext,Uk=new Es;try{ji.L4&&g.D(Uk,1,m_a[ji.L4]);var Kj=Uk;break c}catch(Eb){}Kj=void 0}F(Og,Es,3,Kj)}var kh=Og;break b}catch(Eb){}kh=void 0}F(h,Fs,20,kh)}if(f.ypcPurchaseContext){b:{var zf=f.ypcPurchaseContext,cj=new Ws;try{if(zf.commerceFlowLoggingParams){var Cn=Pqa(zf.commerceFlowLoggingParams);F(cj,Ts,1,Cn)}zf.Ez&&g.D(cj,2,$Ya[zf.Ez]);zf.h5&&g.D(cj,3,ZZa[zf.h5]);zf.d3&&g.D(cj,4,aZa[zf.d3]);var Lj=cj;break b}catch(Eb){}Lj=void 0}F(h,Ws,21,Lj)}if(f.webViewContext){b:{var Id=
f.webViewContext,Pg=new Rs;try{Id.hostname&&g.D(Pg,1,Id.hostname);Id.U5&&g.D(Pg,2,u_a[Id.U5]);Id.isLoaded&&g.D(Pg,3,Id.isLoaded);Id.webViewEngagementSec&&g.D(Pg,4,Id.webViewEngagementSec);var es=Pg;break b}catch(Eb){}es=void 0}F(h,Rs,22,es)}if(f.videoSuggestionsContext){b:{var ki=f.videoSuggestionsContext,Dn=new Qs;try{ki.type&&g.D(Dn,1,VYa[ki.type]);ki.serializedSuggestionData&&Fd(Dn,2,ki.serializedSuggestionData);var qp=Dn;break b}catch(Eb){}qp=void 0}F(h,Qs,23,qp)}var En=h;break a}catch(Eb){}En=
void 0}F(b,Xs,3,En)}a.rY&&g.D(b,4,GZa[a.rY]);a.flowEventStatus&&g.D(b,5,a.flowEventStatus);a.csn&&b.Xf(a.csn);a.can&&g.D(b,7,a.can);return b}catch(Eb){}},
idbQuotaExceeded:function(a){var b=new et;try{return a.deviceStorageUsageMbytes&&g.D(b,1,a.deviceStorageUsageMbytes),a.deviceStorageQuotaMbytes&&g.D(b,2,a.deviceStorageQuotaMbytes),a.isIframe&&g.D(b,3,a.isIframe),a.isSw&&g.D(b,4,a.isSw),a.dbName&&g.D(b,5,a.dbName),a.objectStoreNames&&g.D(b,6,a.objectStoreNames),a.transactionCount&&g.D(b,7,a.transactionCount),a.transactionMode&&g.D(b,8,a.transactionMode),b}catch(c){}},
idbTransactionAborted:function(a){var b=new ft;try{return a.objectStoreNames&&g.D(b,1,a.objectStoreNames),a.hasWindowUnloaded&&g.D(b,2,a.hasWindowUnloaded),a.transactionCount&&g.D(b,3,a.transactionCount),a.transactionDuration&&g.D(b,4,a.transactionDuration),a.dbDuration&&g.D(b,5,a.dbDuration),b}catch(c){}},
streamzIncremented:function(a){var b=new St;try{return a.serializedIncrementBatch&&Fd(b,1,a.serializedIncrementBatch),b}catch(c){}},
sliEventBatch:function(a){var b=new Ur;try{if(a.loggedEvents){var c=sra(a.loggedEvents);Jd(b,1,Qr,c)}if(a.unloggedEvents){var d=sra(a.unloggedEvents);Jd(b,2,Qr,d)}a.playerClientVersion&&g.D(b,3,a.playerClientVersion);a.player_canary_state&&g.D(b,4,yZa[a.player_canary_state]);if(a.dimensions){a:{var e=a.dimensions,f=new Tr;try{e.playerClientVersion&&g.D(f,1,e.playerClientVersion);e.player_canary_state&&g.D(f,2,yZa[e.player_canary_state]);var h=f;break a}catch(l){}h=void 0}F(b,Tr,5,h)}return b}catch(l){}},
playbackAssociated:function(a){var b=new jt;try{a.cpn&&g.D(b,1,a.cpn);if(a.playbackVe){var c=By(a.playbackVe);F(b,as,2,c)}a.csn&&b.Xf(a.csn);if(a.queueInfo){a:{var d=a.queueInfo,e=new kt;try{if(d.enqueueingVe){var f=By(d.enqueueingVe);F(e,as,1,f)}d.enqueueingCsn&&g.D(e,2,d.enqueueingCsn);d.clientEnqueueingTimeMs&&g.D(e,3,d.clientEnqueueingTimeMs);var h=e;break a}catch(l){}h=void 0}F(b,kt,4,h)}return b}catch(l){}},
autoplayTriggered:function(a){var b=new Wr;try{return a.intentional&&g.D(b,1,a.intentional),b}catch(c){}},
webPlayerApiCalled:function(a){var b=new Tt;try{return a.callerUrl&&g.D(b,1,a.callerUrl),a.methodName&&g.D(b,2,a.methodName),a.origin&&g.D(b,3,a.origin),a.playerStyle&&g.D(b,4,a.playerStyle),b}catch(c){}},
embedsAdEvent:function(a){var b=new Vr;try{return a.Ur&&g.D(b,1,BZa[a.Ur]),a.break_type&&g.D(b,2,AZa[a.break_type]),a.packageName&&g.D(b,3,a.packageName),a.embedUrl&&g.D(b,4,a.embedUrl),a.QW&&g.D(b,5,CZa[a.QW]),a.youtubeHost&&g.D(b,6,a.youtubeHost),b}catch(c){}},
embedsShouldRequestStorageAccessResult:function(a){var b=new Zr;try{return a.result&&g.D(b,1,a.result),a.returnsUndefined&&g.D(b,2,a.returnsUndefined),b}catch(c){}},
embedsRequestStorageAccessState:function(a){var b=new Yr;try{return a.isCued&&g.D(b,1,a.isCued),a.isAutoplayBlocked&&g.D(b,2,a.isAutoplayBlocked),b}catch(c){}},
embedsRequestStorageAccessFailedState:function(a){var b=new Xr;try{return a.state&&b.Qc(a.state),b}catch(c){}},
heartbeatActionPlayerHalted:function(a){var b=new bt;try{return a.serializedServerContext&&Fd(b,1,a.serializedServerContext),a.enforcedPolicyToHaltOnNetworkFailure&&g.D(b,2,a.enforcedPolicyToHaltOnNetworkFailure),b}catch(c){}},
heartbeatActionPlayerTransitioned:function(a){var b=new ct;try{return a.reason&&g.D(b,1,IZa[a.reason]),a.trigger&&g.D(b,2,JZa[a.trigger]),a.serializedServerContext&&Fd(b,3,a.serializedServerContext),b}catch(c){}},
embedsItpWatchLaterResult:function(a){var b=new $r;try{return a.accepted&&g.D(b,1,a.accepted),b}catch(c){}},
html5PlayerHealthEvent:function(a){var b=new dt;try{return a.started&&g.D(b,1,a.started),a.y4&&g.D(b,2,YZa[a.y4]),a.joinLatencySecs&&g.D(b,4,a.joinLatencySecs),a.playTimeSecs&&g.D(b,5,a.playTimeSecs),a.rebufferTimeSecs&&g.D(b,6,a.rebufferTimeSecs),a.j3&&g.D(b,7,KZa[a.j3]),a.isAd&&g.D(b,8,a.isAd),a.live_mode&&g.D(b,9,XZa[a.live_mode]),a.isGapless&&g.D(b,10,a.isGapless),a.hasDrm&&g.D(b,11,a.hasDrm),a.seekCount&&g.D(b,12,a.seekCount),a.networkErrorCount&&g.D(b,13,a.networkErrorCount),a.nonNetworkErrorCount&&
g.D(b,14,a.nonNetworkErrorCount),a.isServerStitchedDai&&g.D(b,15,a.isServerStitchedDai),b}catch(c){}},
adsClientStateChange:function(a){var b=new Sq;try{if(a.cuepointTrigger){a:{var c=a.cuepointTrigger,d=new Hq;try{c.type&&g.D(d,1,nZa[c.type]);c.event&&g.D(d,2,mZa[c.event]);c.cuepointId&&g.D(d,3,c.cuepointId);c.totalCueDurationMs&&g.D(d,4,c.totalCueDurationMs);c.playheadTimeMs&&g.D(d,5,c.playheadTimeMs);c.cueStartTimeMs&&g.D(d,6,c.cueStartTimeMs);c.cuepointReceivedTimeMs&&g.D(d,7,c.cuepointReceivedTimeMs);c.contentCpn&&g.D(d,8,c.contentCpn);c.externalChannelId&&g.D(d,9,c.externalChannelId);var e=d;
break a}catch(Ia){}e=void 0}Dd(b,Hq,1,Z2,e)}if(a.daiStateTrigger){a:{var f=a.daiStateTrigger,h=new Mq;try{f.contentCpn&&g.D(h,1,f.contentCpn);f.totalCueDurationMs&&g.D(h,2,f.totalCueDurationMs);f.filledAdsDurationMs&&g.D(h,3,f.filledAdsDurationMs);f.eH&&g.D(h,4,tZa[f.eH]);f.cH&&g.D(h,5,rZa[f.cH]);f.dH&&g.D(h,6,sZa[f.dH]);f.Tr&&g.D(h,7,uZa[f.Tr]);f.externalChannelId&&g.D(h,8,f.externalChannelId);if(f.adClientData){var l=My(f.adClientData);F(h,Aq,9,l)}var m=h;break a}catch(Ia){}m=void 0}Dd(b,Mq,2,Z2,
m)}if(a.daiAdBreakCriticalError){a:{var n=a.daiAdBreakCriticalError,p=new Iq;try{n.contentCpn&&g.D(p,1,n.contentCpn);n.Tr&&g.D(p,2,uZa[n.Tr]);n.externalChannelId&&g.D(p,3,n.externalChannelId);n.msg&&g.D(p,4,n.msg);n.cueIdentifier&&g.D(p,5,n.cueIdentifier);var q=p;break a}catch(Ia){}q=void 0}Dd(b,Iq,3,Z2,q)}if(a.daiAdBreakWarning){a:{var v=a.daiAdBreakWarning,w=new Kq;try{v.contentCpn&&g.D(w,1,v.contentCpn);v.Tr&&g.D(w,2,uZa[v.Tr]);v.externalChannelId&&g.D(w,3,v.externalChannelId);v.msg&&g.D(w,4,v.msg);
v.cueIdentifier&&g.D(w,5,v.cueIdentifier);var y=w;break a}catch(Ia){}y=void 0}Dd(b,Kq,4,Z2,y)}if(a.daiAdBreakInfo){a:{var A=a.daiAdBreakInfo,B=new Jq;try{A.contentCpn&&g.D(B,1,A.contentCpn);A.totalCueDurationMs&&g.D(B,2,A.totalCueDurationMs);A.filledAdsDurationMs&&g.D(B,3,A.filledAdsDurationMs);A.eH&&g.D(B,4,tZa[A.eH]);A.cH&&g.D(B,5,rZa[A.cH]);A.dH&&g.D(B,6,sZa[A.dH]);A.externalChannelId&&g.D(B,7,A.externalChannelId);A.cueIdentifier&&g.D(B,8,A.cueIdentifier);A.qZ&&g.D(B,9,vZa[A.qZ]);A.msg&&g.D(B,
10,A.msg);A.filledAdCount&&g.D(B,11,A.filledAdCount);var E=B;break a}catch(Ia){}E=void 0}Dd(b,Jq,5,Z2,E)}if(a.visibilityErrorDebugInfo){a:{var G=a.visibilityErrorDebugInfo,H=new Rq;try{G.elementName&&g.D(H,1,G.elementName);G.contentVideoPlaybackEventId&&g.D(H,2,G.contentVideoPlaybackEventId);G.errorList&&g.D(H,3,G.errorList);G.htmlDump&&g.D(H,4,G.htmlDump);var I=H;break a}catch(Ia){}I=void 0}Dd(b,Rq,6,Z2,I)}if(a.playbackTimelineAdBreakStateTrigger){a:{var O=a.playbackTimelineAdBreakStateTrigger,L=
new Qq;try{O.cueIdentifier&&g.D(L,1,O.cueIdentifier);O.timestampUnixEpochSec&&g.D(L,2,O.timestampUnixEpochSec);O.OW&&g.D(L,3,oZa[O.OW]);O.Z3&&g.D(L,4,pZa[O.Z3]);O.timestampUnixEpochMs&&g.D(L,5,O.timestampUnixEpochMs);var P=L;break a}catch(Ia){}P=void 0}Dd(b,Qq,7,Z2,P)}if(a.extraLongAdBreakDebugInfo){a:{var S=a.extraLongAdBreakDebugInfo,ca=new Pq;try{S.contentVideoPlaybackEventId&&g.D(ca,1,S.contentVideoPlaybackEventId);if(S.adPlacementKindCuepointInitiatedCueRange){var R=Ny(S.adPlacementKindCuepointInitiatedCueRange);
F(ca,Oq,2,R)}if(S.adPlacementConfigImpliedCueRange){var na=Ny(S.adPlacementConfigImpliedCueRange);F(ca,Oq,3,na)}if(S.adPlacementKindMillisecondsInitiatedCueRange){var sa=Ny(S.adPlacementKindMillisecondsInitiatedCueRange);F(ca,Oq,4,sa)}S.cueIdentifier&&g.D(ca,5,S.cueIdentifier);var Aa=ca;break a}catch(Ia){}Aa=void 0}Dd(b,Pq,8,Z2,Aa)}if(a.comparePyvAdTagInfo){a:{var wa=a.comparePyvAdTagInfo,ta=new Gq;try{wa.pyvAdTagUrlFromPlayer&&g.D(ta,1,wa.pyvAdTagUrlFromPlayer);wa.pyvAdTagUrlFromWatchNext&&g.D(ta,
2,wa.pyvAdTagUrlFromWatchNext);var Ma=ta;break a}catch(Ia){}Ma=void 0}Dd(b,Gq,9,Z2,Ma)}if(a.driftRecoveryInfo){a:{var Ka=a.driftRecoveryInfo,qa=new Nq;try{Ka.contentCpn&&g.D(qa,1,Ka.contentCpn);Ka.cueIdentifier&&g.D(qa,2,Ka.cueIdentifier);Ka.driftRecoveryMs&&g.D(qa,3,Ka.driftRecoveryMs);Ka.breakDurationMs&&g.D(qa,4,Ka.breakDurationMs);Ka.driftFromHeadMs&&g.D(qa,5,Ka.driftFromHeadMs);Ka.appliedDriftRecoveryMs&&g.D(qa,6,Ka.appliedDriftRecoveryMs);Ka.destinationMs&&g.D(qa,7,Ka.destinationMs);if(Ka.adClientData){var nb=
My(Ka.adClientData);F(qa,Aq,8,nb)}var Sb=qa;break a}catch(Ia){}Sb=void 0}Dd(b,Nq,10,Z2,Sb)}if(a.adsClientEvent){a:{var Ua=a.adsClientEvent,$a=new Fq;try{Ua.Ur&&g.D($a,1,lZa[Ua.Ur]);if(Ua.adClientData){var bc=My(Ua.adClientData);F($a,Aq,3,bc)}Ua.serializedAdServingData&&Fd($a,4,Ua.serializedAdServingData);Ua.eventOrder&&g.D($a,5,Ua.eventOrder);Ua.serializedSlotAdServingData&&Fd($a,6,Ua.serializedSlotAdServingData);if(Ua.errorInfo){b:{var Sa=Ua.errorInfo,ab=new Eq;try{Sa.Tr&&g.D(ab,1,kZa[Sa.Tr]);Sa.gY&&
g.D(ab,2,jZa[Sa.gY]);var tb=ab;break b}catch(Ia){}tb=void 0}F($a,Eq,7,tb)}var fc=$a;break a}catch(Ia){}fc=void 0}Dd(b,Fq,11,Z2,fc)}if(a.daiAdStateTracking){a:{var Tb=a.daiAdStateTracking,Lc=new Lq;try{Tb.Ur&&g.D(Lc,1,qZa[Tb.Ur]);Tb.contentCpn&&g.D(Lc,2,Tb.contentCpn);Tb.externalChannelId&&g.D(Lc,3,Tb.externalChannelId);Tb.adCpn&&g.D(Lc,4,Tb.adCpn);Tb.adCount&&g.D(Lc,5,Tb.adCount);Tb.msg&&g.D(Lc,6,Tb.msg);var nc=Lc;break a}catch(Ia){}nc=void 0}Dd(b,Lq,12,Z2,nc)}if(a.adTrimmingInfo){a:{var bd=a.adTrimmingInfo,
cd=new Bq;try{bd.contentCpn&&g.D(cd,1,bd.contentCpn);bd.cueIdentifier&&g.D(cd,2,bd.cueIdentifier);if(bd.adMediaInfo){b:{var ob=bd.adMediaInfo,Pb=new Cq;try{ob.externalVideoId&&g.D(Pb,1,ob.externalVideoId);ob.originalMediaDurationMs&&g.D(Pb,2,ob.originalMediaDurationMs);ob.trimmedMediaDurationMs&&g.D(Pb,3,ob.trimmedMediaDurationMs);var Hb=Pb;break b}catch(Ia){}Hb=void 0}Jd(cd,3,Cq,Hb)}var gc=cd;break a}catch(Ia){}gc=void 0}Dd(b,Bq,13,Z2,gc)}if(a.adsAttributionEvent){a:{var Kb=a.adsAttributionEvent,
hc=new Dq;try{Kb.fY&&g.D(hc,1,wZa[Kb.fY]);Kb.bX&&g.D(hc,2,xZa[Kb.bX]);Kb.innerErrorDomain&&g.D(hc,3,Kb.innerErrorDomain);Kb.innerErrorCode&&g.D(hc,4,Kb.innerErrorCode);var Ga=hc;break a}catch(Ia){}Ga=void 0}Dd(b,Dq,14,Z2,Ga)}return b}catch(Ia){}},
offlineTransferStatusChanged:Lpa,offlineStateSnapshot:function(a){var b=new Rt;try{if(a.offlineVideos){a:{var c=a.offlineVideos,d=new Ot;try{c.id&&g.D(d,1,c.id);c.P5&&g.D(d,2,QZa[c.P5]);c.pendingStateFlags&&g.D(d,3,c.pendingStateFlags);c.totalBytes&&g.D(d,21,c.totalBytes);c.downloadedBytes&&g.D(d,4,c.downloadedBytes);c.wK&&g.D(d,5,zy[c.wK]);c.a4&&g.D(d,6,Epa[c.a4]);c.playerResponseSavedTimeMs&&g.D(d,7,c.playerResponseSavedTimeMs);c.offlineStateUpdateTimeMs&&g.D(d,8,c.offlineStateUpdateTimeMs);c.offlineStateExpiresInS&&
g.D(d,9,c.offlineStateExpiresInS);c.durationInS&&g.D(d,10,c.durationInS);c.isInPlaylist&&g.D(d,11,c.isInPlaylist);c.TW&&g.D(d,12,yy[c.TW]);c.QX&&g.D(d,13,yy[c.QX]);if(c.captions){b:{var e=c.captions,f=new Pt;try{e.format&&g.D(f,1,e.format);e.isDownloaded&&g.D(f,2,e.isDownloaded);var h=f;break b}catch(tb){}h=void 0}Jd(d,14,Pt,h)}c.tL&&g.D(d,15,Hpa[c.tL]);c.lastPlaybackTimestampMs&&g.D(d,16,c.lastPlaybackTimestampMs);if(c.offlineSuspendedStates){b:{var l=c.offlineSuspendedStates,m=new Mt;try{l.totalDownloadedBytes&&
g.D(m,1,l.totalDownloadedBytes);l.totalSegmentCount&&g.D(m,2,l.totalSegmentCount);l.backgroundTransitionCount&&g.D(m,3,l.backgroundTransitionCount);l.totalDurationMs&&g.D(m,4,l.totalDurationMs);l.downloadErrorCount&&g.D(m,5,l.downloadErrorCount);l.totalDownloadedSizePercent&&g.D(m,6,l.totalDownloadedSizePercent);var n=m;break b}catch(tb){}n=void 0}Jd(d,17,Mt,n)}c.streamInLocalStorage&&g.D(d,18,c.streamInLocalStorage);c.streamInInternalStorage&&g.D(d,19,c.streamInInternalStorage);if(c.storageIdStates){b:{var p=
c.storageIdStates,q=new Nt;try{p.storageId&&g.D(q,1,p.storageId);p.D4&&g.D(q,2,WZa[p.D4]);var v=q;break b}catch(tb){}v=void 0}F(d,Nt,20,v)}c.cotn&&g.D(d,22,c.cotn);if(c.additionalVideoClientState){var w=new Lt;F(d,Lt,23,w)}if(c.offlineVideoEntityMigrationState){b:{var y=c.offlineVideoEntityMigrationState,A=new Qt;try{y.isInOfflineStore&&g.D(A,1,y.isInOfflineStore);y.isPlaybackDataEntityPresent&&g.D(A,2,y.isPlaybackDataEntityPresent);y.wasPlaybackDataEntityUsedToFillVideoState&&g.D(A,3,y.wasPlaybackDataEntityUsedToFillVideoState);
y.isTransferEntityPresent&&g.D(A,4,y.isTransferEntityPresent);y.wasTransferEntityUsedToFillVideoState&&g.D(A,5,y.wasTransferEntityUsedToFillVideoState);y.offlineStoreCaptionTrackCount&&g.D(A,6,y.offlineStoreCaptionTrackCount);y.entityStoreCaptionTrackCount&&g.D(A,7,y.entityStoreCaptionTrackCount);y.isMetadataEntityPresent&&g.D(A,8,y.isMetadataEntityPresent);var B=A;break b}catch(tb){}B=void 0}F(d,Qt,24,B)}var E=d;break a}catch(tb){}E=void 0}Jd(b,1,Ot,E)}if(a.offlinePlaylists){a:{var G=a.offlinePlaylists,
H=new Kt;try{G.id&&g.D(H,1,G.id);G.videoIds&&g.xd(H,2,G.videoIds);G.videoCount&&g.D(H,3,G.videoCount);G.successCount&&g.D(H,4,G.successCount);G.failCount&&g.D(H,5,G.failCount);G.pendingCount&&g.D(H,6,G.pendingCount);G.disabledCount&&g.D(H,7,G.disabledCount);G.deletedCount&&g.D(H,8,G.deletedCount);G.wK&&g.D(H,9,zy[G.wK]);G.isPlaylistOwner&&g.D(H,10,G.isPlaylistOwner);G.lastSyncTimeMs&&g.D(H,11,G.lastSyncTimeMs);G.G3&&g.D(H,12,i_a[G.G3]);var I=H;break a}catch(tb){}I=void 0}Jd(b,2,Kt,I)}a.freeDiskSpaceBytes&&
g.D(b,3,a.freeDiskSpaceBytes);a.lastOfflineUsageTimeMs&&g.D(b,4,a.lastOfflineUsageTimeMs);a.lastOfflinePlaybackTimeMs&&g.D(b,5,a.lastOfflinePlaybackTimeMs);a.lastOfflineSaveTimeMs&&g.D(b,6,a.lastOfflineSaveTimeMs);a.lastOfflineDownloadSuccessTimeMs&&g.D(b,7,a.lastOfflineDownloadSuccessTimeMs);a.isBatteryCharging&&g.D(b,8,a.isBatteryCharging);a.hH&&g.D(b,9,yy[a.hH]);a.batteryLevelPercentage&&g.D(b,10,a.batteryLevelPercentage);a.isPostMigrationState&&g.D(b,11,a.isPostMigrationState);if(a.offlineCacheVerificationFailure){a:{var O=
a.offlineCacheVerificationFailure,L=new Dt;try{O.numUncachedVideos&&g.D(L,1,O.numUncachedVideos);O.numTotalCompletedVideos&&g.D(L,2,O.numTotalCompletedVideos);if(O.uncachedVideos){b:{var P=O.uncachedVideos,S=new Et;try{P.videoId&&S.setVideoId(P.videoId);P.itag&&g.D(S,6,P.itag);P.Vr&&g.D(S,2,e_a[P.Vr]);P.isCachedExternally&&g.D(S,3,P.isCachedExternally);P.o3&&g.D(S,4,e_a[P.o3]);P.previousFailureReasonTimestampMs&&g.D(S,5,P.previousFailureReasonTimestampMs);P.VK&&g.D(S,7,Ay[P.VK]);P.blockSizeBytes&&
g.D(S,8,P.blockSizeBytes);if(P.streamVerificationFailedBlocks){c:{var ca=P.streamVerificationFailedBlocks,R=new Ft;try{ca.itag&&g.D(R,1,ca.itag);ca.startingByte&&g.D(R,2,ca.startingByte);var na=R;break c}catch(tb){}na=void 0}Jd(S,9,Ft,na)}P.q3&&g.D(S,10,Ay[P.q3]);P.W3&&g.D(S,11,Ay[P.W3]);P.V3&&g.D(S,12,e_a[P.V3]);var sa=S;break b}catch(tb){}sa=void 0}Jd(L,3,Et,sa)}var Aa=L;break a}catch(tb){}Aa=void 0}F(b,Dt,12,Aa)}if(a.additionalOfflineClientState){a:{var wa=a.additionalOfflineClientState,ta=new Jt;
try{if(wa.mainAppAdditionalOfflineClientState){b:{var Ma=wa.mainAppAdditionalOfflineClientState,Ka=new It;try{if(Ma.downloadRecsVideos){c:{var qa=Ma.downloadRecsVideos,nb=new Gt;try{qa.videoId&&nb.setVideoId(qa.videoId);qa.surrogateVideoId&&g.D(nb,2,qa.surrogateVideoId);var Sb=nb;break c}catch(tb){}Sb=void 0}Jd(Ka,1,Gt,Sb)}if(Ma.smartDownloadVideos){c:{var Ua=Ma.smartDownloadVideos,$a=new Ht;try{Ua.externalVideoId&&g.D($a,1,Ua.externalVideoId);Ua.videoSid&&g.D($a,2,Ua.videoSid);var bc=$a;break c}catch(tb){}bc=
void 0}Jd(Ka,2,Ht,bc)}var Sa=Ka;break b}catch(tb){}Sa=void 0}F(ta,It,1,Sa)}var ab=ta;break a}catch(tb){}ab=void 0}F(b,Jt,13,ab)}return b}catch(tb){}}},NRa={adNotify:function(a,b,c){var d=new Wt;
Dd(d,kq,184,ty,a);c?ry(d,c,b):sy(d,b)},
biscottiBasedDetection:function(a,b,c){var d=new Wt;Dd(d,Hr,439,ty,a);c?ry(d,c,b):sy(d,b)},
adNotifyFilled:function(a,b,c){var d=new Wt;Dd(d,jq,300,ty,a);c?ry(d,c,b):sy(d,b)},
idbTransactionEnded:function(a,b,c){var d=new Wt;Dd(d,gt,352,ty,a);c?ry(d,c,b):sy(d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=new Wt;Dd(d,ht,348,ty,a);c?ry(d,c,b):sy(d,b)},
flowEvent:function(a,b,c){var d=new Wt;Dd(d,Zs,304,ty,a);c?ry(d,c,b):sy(d,b)},
idbQuotaExceeded:function(a,b,c){var d=new Wt;Dd(d,et,351,ty,a);c?ry(d,c,b):sy(d,b)},
idbTransactionAborted:function(a,b,c){var d=new Wt;Dd(d,ft,353,ty,a);c?ry(d,c,b):sy(d,b)},
streamzIncremented:function(a,b,c){var d=new Wt;Dd(d,St,126,ty,a);c?ry(d,c,b):sy(d,b)},
sliEventBatch:function(a,b,c){var d=new Wt;Dd(d,Ur,344,ty,a);c?ry(d,c,b):sy(d,b)},
playbackAssociated:fpa,autoplayTriggered:function(a,b,c){var d=new Wt;Dd(d,Wr,209,ty,a);c?ry(d,c,b):sy(d,b)},
webPlayerApiCalled:function(a,b,c){var d=new Wt;Dd(d,Tt,76,ty,a);c?ry(d,c,b):sy(d,b)},
embedsAdEvent:function(a,b,c){var d=new Wt;Dd(d,Vr,327,ty,a);c?ry(d,c,b):sy(d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=new Wt;Dd(d,Zr,251,ty,a);c?ry(d,c,b):sy(d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=new Wt;Dd(d,Yr,256,ty,a);c?ry(d,c,b):sy(d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=new Wt;Dd(d,Xr,257,ty,a);c?ry(d,c,b):sy(d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=new Wt;Dd(d,bt,332,ty,a);c?ry(d,c,b):sy(d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=new Wt;Dd(d,ct,330,ty,a);c?ry(d,c,b):sy(d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=new Wt;Dd(d,$r,266,ty,a);c?ry(d,c,b):sy(d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=new Wt;Dd(d,dt,293,ty,a);c?ry(d,c,b):sy(d,b)},
adsClientStateChange:function(a,b,c){var d=new Wt;Dd(d,Sq,197,ty,a);c?ry(d,c,b):sy(d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=new Wt;Dd(d,xs,2,ty,a);c?ry(d,c,b):sy(d,b)},
offlineStateSnapshot:function(a,b,c){var d=new Wt;Dd(d,Rt,22,ty,a);c?ry(d,c,b):sy(d,b)}};var ORa=!1,Sy=void 0,Ty=void 0,ura=g.ux;var vra=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Ara={};g.u($y,g.K);$y.prototype.P=function(a,b,c,d,e){c=hu((0,g.Ta)(c,d||this.Ya));c={target:a,name:b,callback:c};var f;e&&Cra()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
$y.prototype.uc=function(a){for(var b=0;b<this.I.length;b++)if(this.I[b]==a){this.I.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
$y.prototype.ea=function(){g.bz(this);g.K.prototype.ea.call(this)};g.Xa(g.cz,g.K);g.cz.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.pg.subscribe(a,b,c)};
g.cz.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.pg.unsubscribe(a,b,c)};
g.cz.prototype.Kg=function(a){return this.isDisposed()?!1:this.pg.Kg(a)};
g.cz.prototype.X=function(a,b){return this.isDisposed()?!1:this.pg.X.apply(this.pg,arguments)};g.u(g.gz,g.cz);g.k=g.gz.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.X("dragend",0,0,null));this.u&&(this.u=!1,this.X("hoverend",0,0,null),iz(this),fz(this))};
g.k.vQ=function(a){iz(this);hz(this,jz("move"),this.tQ);hz(this,jz("out"),this.uQ);hz(this,"touchstart",this.kL);this.j&&hz(this,jz("down"),this.cJ);var b=g.Cx(a);a=Fx(a);this.u=!0;this.X("hoverstart",a.x,a.y,b);this.X("hovermove",a.x,a.y,b)};
g.k.tQ=function(a){var b=g.Cx(a);a=Fx(a);if(this.D){var c=this.D;this.D=null;if(Ex(c)==b&&Hg(Fx(c),a))return}this.X("hovermove",a.x,a.y,b)};
g.k.uQ=function(a){var b=Fx(a),c=Ex(a);try{if(c&&g.sh(this.I,c)){this.D=a;this.X("hovermove",b.x,b.y,c);return}}catch(d){}iz(this);fz(this);this.u=!1;this.X("hoverend",b.x,b.y,c)};
g.k.f_=function(a){this.vQ(a);this.cJ(a)};
g.k.cJ=function(a){if("number"!==typeof a.button||0==a.button){iz(this);this.C.P(document,jz("move"),this.e_);this.C.P(document,jz("up"),this.j_);var b=g.Cx(a);if(g.kf)hz(this,"dragstart",this.RX);else if(g.Gx(a),(g.rG||zl)&&b)a:{for(var c=b;c;){if(uh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=Fx(a);this.X("dragstart",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)}};
g.k.RX=function(a){g.Gx(a)};
g.k.e_=function(a){var b=g.Cx(a);b==document&&(b=null);a=Fx(a);this.X("hovermove",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)};
g.k.j_=function(a){iz(this);this.B=!1;var b=Dx(a),c=g.Cx(a);a=Fx(a);b&&g.sh(this.I,b)?(hz(this,jz("move"),this.tQ),hz(this,jz("out"),this.uQ),hz(this,jz("down"),this.cJ),hz(this,"touchstart",this.kL),this.X("dragend",a.x,a.y,c)):(fz(this),this.u=!1,this.X("dragend",a.x,a.y,c),this.X("hoverend",a.x,a.y,c))};
g.k.kL=function(a){var b=a.changedTouches[0];b&&(iz(this),hz(this,"touchmove",this.f5),hz(this,"touchend",this.SS),hz(this,"touchcancel",this.SS),this.J=b.identifier,a=g.Cx(a),this.u||(this.u=!0,this.X("hoverstart",b.pageX,b.pageY,a)),this.X("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.X("dragstart",b.pageX,b.pageY,a),this.X("dragmove",b.pageX,b.pageY,a)))};
g.k.f5=function(a){var b=Dra(this,a);b&&(this.j&&g.Gx(a),a=g.Cx(a),this.X("hovermove",b.pageX,b.pageY,a),this.j&&this.X("dragmove",b.pageX,b.pageY,a))};
g.k.SS=function(a){var b=Dra(this,a);if(b){iz(this);fz(this);this.u=!1;var c=g.Cx(a);this.j&&(this.N||g.Gx(a),this.B=!1,this.X("dragend",b.pageX,b.pageY,c));this.X("hoverend",b.pageX,b.pageY,c)}};
g.k.ea=function(){this.j&&(g.kf&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");iz(this);g.cz.prototype.ea.call(this)};kz.prototype.clone=function(){var a=new kz,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Na(c)?g.Gf(c):c}return a};var zGa=["att/get"],kHa=["embedded_player"],C_a=["share/get_web_player_share_panel"],D_a=["feedback"],E_a=["notification/modify_channel_preference"],fRa=["player"],F_a=["browse/edit_playlist"],G_a=["subscription/subscribe"],H_a=["subscription/unsubscribe"],iRa=["next","unplugged/watch_next"];var Nra=[{ZI:function(a){return"Cannot read property '"+a.key+"'"},
ID:{Error:[{Vh:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Vh:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Vh:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Vh:/\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"]},{Vh:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Vh:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Vh:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{ZI:function(a){return"Cannot call '"+a.key+"'"},
ID:{TypeError:[{Vh:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Vh:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Vh:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Vh:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Vh:/\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"]},
{Vh:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{ZI:function(a){return a.key+" is not defined"},
ID:{ReferenceError:[{Vh:/(.*) is not defined/,groups:["key"]},{Vh:/Can't find variable: (.*)/,groups:["key"]}]}}];var Ira={Bo:[],rp:[{callback:Fra,weight:500}]};var lz;var sz=new g.Co;var Ora=new Set,Lra=0,Qra=0,Pra=0,Mra=[],Sra=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Ura=1;tz.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};
tz.prototype.getAsJspb=function(){var a=new as;void 0!==this.j.trackingParams?a.xk(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();F(a,as,7,b)}void 0!==this.j.youtubeData&&F(a,Xp,8,this.j.jspbYoutubeData);return a};
tz.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
tz.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};var vz=Date.now().toString();var L3=g.C.ytLoggingDocDocumentNonce_;L3||(L3=g.xz(16),g.Fa("ytLoggingDocDocumentNonce_",L3));var pua=L3;var nDa={QT:0,Jfa:1,Pga:2,bDa:3,vma:4,t0a:5,AEa:6,yOa:7,BMa:8,PNa:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};g.Fa("yt_logging_screen.getRootVeType",eua);g.Fa("yt_logging_screen.getCurrentCsn",g.Bz);g.Fa("yt_logging_screen.getCttAuthInfo",Cz);g.Fa("yt_logging_screen.setCurrentScreen",qua);g.u(Dz,Hw);var tua=new Iw("screen-created",Dz),Hz=[],rua=xua,Iz=0;var hDa={pfa:3611,c6:27686,e6:85013,T6:23462,Y6:157557,Z6:42016,a7:62407,b7:26926,X6:43781,d7:51236,e7:79148,f7:50160,g7:77504,o$:153587,Paa:87907,Qaa:18630,lca:54445,Aca:80935,Cca:152172,bda:105675,cda:150723,dda:37521,eda:147285,fda:47786,pda:98349,tda:123695,Fda:6827,Oda:29434,Cea:7282,Dea:124448,dga:32276,cga:76278,kga:147868,lga:147869,rga:93911,wga:106531,xga:27259,yga:27262,zga:27263,Qga:21759,Rga:27107,Sga:62936,Uga:49568,nha:38408,oha:80637,pha:68727,qha:68728,rha:80353,sha:80356,tha:74610,
uha:45707,vha:83962,wha:83970,xha:46713,yha:89711,zha:74612,Aha:155792,Bha:93265,Cha:74611,Dha:131380,Fha:128979,Gha:139311,Hha:128978,Eha:131391,Iha:105350,Kha:139312,Lha:134800,Jha:131392,Nha:113533,Oha:93252,Pha:99357,Rha:94521,Sha:114252,Tha:113532,Uha:94522,Qha:94583,Vha:88E3,Wha:139580,Xha:93253,Yha:93254,Zha:94387,aia:94388,bia:93255,cia:97424,Mha:72502,dia:110111,eia:76019,gia:117092,hia:117093,fia:89431,iia:110466,jia:77240,kia:60508,lia:148123,mia:148124,oia:137401,pia:137402,qia:137046,
ria:73393,sia:113534,tia:92098,uia:131381,via:84517,wia:83759,xia:80357,yia:86113,zia:72598,Aia:72733,Bia:107349,Cia:124275,Dia:118203,Eia:133275,Fia:152569,Gia:156651,Hia:133274,Iia:133272,Jia:133273,Kia:133276,Lia:144507,Mia:143247,Nia:156652,Oia:143248,Pia:143249,Qia:143250,Ria:143251,Sia:156653,Tia:144401,Via:117431,Uia:133797,Wia:153964,Xia:128572,Yia:133405,Zia:117429,aja:117430,bja:117432,cja:120080,dja:117259,eja:156655,fja:156654,gja:121692,hja:145656,ija:156656,jja:145655,kja:145653,lja:145654,
mja:145657,nja:132972,oja:133051,pja:133658,qja:132971,rja:97615,tja:143359,sja:143356,vja:143361,uja:143358,xja:143360,wja:143357,yja:142303,zja:143353,Aja:143354,Bja:144479,Cja:143355,Dja:31402,Fja:133624,Gja:146477,Hja:133623,Ija:133622,Eja:133621,Jja:84774,Kja:95117,Lja:150497,Mja:98930,Nja:98931,Oja:98932,Pja:153320,Qja:153321,Rja:43347,Sja:129889,Tja:149123,Uja:45474,Vja:100352,Wja:84758,Xja:98443,Yja:117985,Zja:74613,aka:155911,bka:74614,cka:64502,dka:136032,fka:74615,gka:74616,hka:122224,
ika:74617,jka:77820,kka:74618,lka:93278,mka:93274,nka:93275,oka:93276,pka:22110,qka:29433,wla:133798,Ala:132295,Fla:120541,wma:82047,xma:113550,yma:75836,zma:75837,Fma:42352,Pma:84512,Qma:76065,Sma:75989,yna:16623,zna:32594,Ana:27240,Hna:32633,Ooa:74858,dpa:156999,fpa:3945,epa:16989,gpa:45520,hpa:25488,ipa:25492,jpa:25494,Eqa:55760,Fqa:14057,Gqa:18451,Iqa:57204,Jqa:57203,Kqa:17897,Lqa:57205,Mqa:18198,Nqa:17898,Oqa:17909,Pqa:43980,Sqa:46220,kra:11721,mra:147994,Hra:49954,Mra:96369,Nra:3854,Csa:151633,
Psa:56251,bU:159108,ata:25624,bta:152036,Dta:16906,Eta:99999,Gta:68172,Hta:27068,Kua:47973,Mua:72773,Nua:26970,Oua:26971,Pua:96805,Qua:17752,ava:73233,fva:109512,gva:22256,hva:14115,iva:22696,jva:89278,kva:89277,mva:109513,nva:43278,ova:43459,pva:43464,qva:89279,rva:43717,sva:55764,tva:22255,uva:147912,vva:89281,wva:40963,xva:43277,yva:43442,Eva:91824,Hva:120137,Rya:96367,Sya:36850,Tya:72694,Uya:37414,Vya:36851,Zya:124863,Yya:121343,cza:73491,eza:54473,fza:43375,pza:46674,Nza:143815,Oza:139095,Pza:144402,
Qza:149968,Rza:149969,dAa:32473,jAa:72901,kAa:72906,lAa:50947,mAa:50612,nAa:50613,oAa:50942,pAa:84938,qAa:84943,rAa:84939,sAa:84941,tAa:84944,uAa:84940,vAa:84942,wAa:35585,xAa:51926,yAa:79983,zAa:63238,AAa:18921,BAa:63241,CAa:57893,DAa:41182,EAa:135732,FAa:33424,GAa:22207,HAa:42993,IAa:36229,JAa:22206,KAa:22205,LAa:18993,MAa:19001,NAa:18990,OAa:18991,PAa:18997,QAa:18725,RAa:19003,SAa:36874,TAa:44763,UAa:33427,VAa:67793,WAa:22182,XAa:37091,YAa:34650,ZAa:50617,aBa:47261,bBa:22287,cBa:25144,dBa:97917,
fBa:62397,gBa:150871,hBa:150874,iBa:125598,jBa:137935,nBa:36961,oBa:108035,pBa:27426,gCa:27857,hCa:27846,iCa:27854,jCa:69692,kCa:61411,pCa:39299,qCa:38696,rCa:62520,sCa:36382,tCa:108701,uCa:50663,vCa:36387,wCa:14908,xCa:37533,yCa:105443,zCa:61635,ACa:62274,BCa:133818,CCa:65702,DCa:65703,ECa:65701,FCa:76256,UCa:37671,VCa:49953,fDa:36216,gDa:28237,hDa:39553,iDa:29222,jDa:26107,kDa:38050,lDa:26108,nDa:120745,mDa:26109,oDa:26110,pDa:66881,qDa:28236,rDa:14586,FDa:57929,IDa:74723,JDa:44098,QDa:44099,UDa:23528,
VDa:61699,SDa:134104,TDa:134103,WDa:59149,YDa:101951,ZDa:97346,cEa:118051,dEa:95102,eEa:64882,gEa:119505,hEa:63595,kEa:63349,lEa:95101,mEa:75240,nEa:27039,pEa:68823,qEa:21537,rEa:83464,sEa:75707,xEa:83113,yEa:101952,zEa:101953,BEa:79610,gFa:125755,hFa:24402,iFa:24400,jFa:32925,tFa:57173,oFa:156421,WFa:122502,YFa:145268,ZFa:138480,eGa:64423,fGa:64424,cHa:33986,iHa:100828,jHa:129089,BHa:21409,lJa:135155,nJa:135156,qJa:135157,rJa:135158,sJa:158225,tJa:135159,uJa:135160,vJa:135161,DJa:135162,EJa:135163,
CJa:158226,FJa:158227,GJa:135164,HJa:135165,IJa:135166,iJa:11070,jJa:11074,kJa:17880,JJa:14001,gKa:30709,hKa:30707,iKa:30711,jKa:30710,kKa:30708,fKa:26984,lKa:146143,mKa:63648,nKa:63649,wKa:51879,VKa:111059,ZKa:5754,dLa:20445,nLa:151308,oLa:151152,BLa:130975,ALa:130976,TLa:110386,ZLa:113746,uMa:66557,CMa:17310,DMa:28631,HMa:21589,UMa:154946,VMa:68012,WMa:60480,XMa:138664,YMa:141121,ZMa:31571,aNa:141978,fNa:150105,gNa:150106,hNa:150107,iNa:150108,lNa:76980,pNa:41577,qNa:45469,UNa:38669,VNa:13768,WNa:13777,
fOa:141842,gOa:62985,hOa:4724,iOa:59369,jOa:43927,kOa:43928,uOa:12924,xOa:100355,COa:56219,DOa:27669,EOa:10337,BOa:47896,IOa:122629,ROa:139723,QOa:139722,SOa:121258,TOa:107598,UOa:127991,VOa:96639,WOa:107536,XOa:130169,YOa:96661,ZOa:145188,aPa:96658,bPa:116646,cPa:159428,dPa:121122,ePa:96660,fPa:127738,gPa:127083,hPa:155281,iPa:147842,DPa:104443,EPa:96659,FPa:147595,GPa:106442,KPa:134840,PPa:63667,QPa:63668,RPa:63669,SPa:130686,eSa:147036,qSa:78314,rSa:147799,BSa:148649,uTa:55761,vTa:127098,wTa:134841,
xUa:96368,CUa:67374,MUa:48992,hVa:146176,mVa:49956,tVa:31961,uVa:26388,BVa:23811,CVa:5E4,NVa:126250,rWa:96370,NXa:47355,OXa:47356,qZa:37935,tZa:45521,uZa:21760,AZa:83769,DZa:49977,EZa:49974,FZa:93497,GZa:93498,HZa:34325,IZa:140759,JZa:115803,KZa:123707,LZa:100081,MZa:35309,NZa:68314,OZa:25602,PZa:100339,QZa:143516,d_a:59018,e_a:18248,f_a:50625,g_a:9729,h_a:37168,i_a:37169,j_a:21667,k_a:16749,l_a:18635,m_a:39305,n_a:18046,E_a:53969,F_a:8213,X_a:93926,o0a:102852,p0a:110099,q0a:22678,r0a:69076,s0a:137575,
u0a:139224,v0a:100856,y0a:154430,z0a:17736,A0a:3832,E0a:147111,H0a:55759,I0a:64031,o1a:93044,q1a:93045,B1a:34388,X1a:17657,Y1a:17655,Z1a:39579,a2a:39578,b2a:77448,c2a:8196,d2a:11357,e2a:69877,f2a:8197,g2a:156512,h2a:156509,j2a:82039};Mz.prototype.I=function(){};
Mz.prototype.clear=function(){this.u.clear();this.j.clear();this.B.clear()};
La(Mz);var Oz;g.Nz=$f(function(){var a=new Jo;return a.isAvailable()?new g.Go(a):null});
Oz=$f(function(){var a=new Mka;return a.isAvailable()?new g.Go(a):null});var Aua=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Bua=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Eua={};g.u(Yz,g.K);var Mua=!1;g.u(fA,g.K);fA.prototype.iI=function(){var a=this.j().SH("SLOT_TYPE_PLAYER_BYTES",1),b=this.Qa.get().Gf(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.Mb instanceof bA?d.Mb.Uo:void 0;e&&e===b&&(c&&eA("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
fA.prototype.Pi=function(a,b,c,d,e,f){var h=this,l=this.Qa.get().Gf(1);l.Dr?this.Ba.get().Sr():(Zz(this.Qb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Kua(h.Hd.get(),d,e,a,b,f,l,"")}),tXa(this.mG),i0(this.Da.get(),"fetch_bid_for_dclk_status")&&dA("video loaded"))};
fA.prototype.vl=function(){};var M3={},rA=(M3.AD_MARKER="ytp-ad-progress",M3.CHAPTER_MARKER="ytp-chapter-marker",M3.TIME_MARKER="ytp-time-marker",M3);var jSa=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/)"),Pua=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|education)?\\.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/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
kSa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Wua=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|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
Uua=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)|$))"),Rua=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/)"),
lSa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Sua=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)"),Qua=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/.*$)"),
jza=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)"),
iza=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|youtubeeducation\\.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)"),
I_a=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|youtubeeducation)\\.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.sA.prototype.getId=function(){return this.id};
g.sA.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+$ua(this.start)+", "+$ua(this.end)+"]"};
g.sA.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 Zua=1;g.sA.prototype.getId=g.sA.prototype.getId;g.u(wA,g.sA);wA.prototype.deactivate=function(){this.B=!0};
wA.prototype.Bv=function(){return this.end-this.start};var J_a;var K_a=g.rb(),L_a=K_a.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!L_a||2>L_a.length)J_a=void 0;else{var M_a=K_a.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);J_a=M_a&&6==M_a.length?Number(M_a[5].replace("_",".")):0}var yI=J_a,RO=0<=yI;RO&&0<=g.rb().search("Safari")&&g.rb().search("Version");g.u(BA,Za);g.u(CA,Hw);g.u(eva,Hw);var mva=new Iw("aft-recorded",CA),N_a=new Iw("timing-sent",eva);var N3=window,EA=N3.performance||N3.mozPerformance||N3.msPerformance||N3.webkitPerformance||new fva;var lva=!1,oB={'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"},
xva=(0,g.Ta)(EA.clearResourceTimings||EA.webkitClearResourceTimings||EA.mozClearResourceTimings||EA.msClearResourceTimings||EA.oClearResourceTimings||g.Yf,EA);var O3={},rva=(O3.auto_search="LATENCY_ACTION_AUTO_SEARCH",O3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",O3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",O3["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",O3.app_startup="LATENCY_ACTION_APP_STARTUP",O3["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",O3["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",O3["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",O3["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",
O3.browse="LATENCY_ACTION_BROWSE",O3.cast_splash="LATENCY_ACTION_CAST_SPLASH",O3.channels="LATENCY_ACTION_CHANNELS",O3.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",O3["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",O3["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",O3["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",O3["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",O3["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",
O3["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",O3["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",O3["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",O3["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",O3["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",O3["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",O3["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",O3["channel.live_streaming"]=
"LATENCY_ACTION_CREATOR_LIVE_STREAMING",O3.chips="LATENCY_ACTION_CHIPS",O3["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",O3["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",O3["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",O3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",O3.embed="LATENCY_ACTION_EMBED",O3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",O3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",
O3.explore="LATENCY_ACTION_EXPLORE",O3.home="LATENCY_ACTION_HOME",O3.library="LATENCY_ACTION_LIBRARY",O3.live="LATENCY_ACTION_LIVE",O3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",O3.onboarding="LATENCY_ACTION_ONBOARDING",O3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",O3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",O3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",O3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",O3["post.comments"]=
"LATENCY_ACTION_CREATOR_POST_COMMENTS",O3["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",O3.prebuffer="LATENCY_ACTION_PREBUFFER",O3.prefetch="LATENCY_ACTION_PREFETCH",O3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",O3.profile_switcher="LATENCY_ACTION_LOGIN",O3.reel_watch="LATENCY_ACTION_REEL_WATCH",O3.results="LATENCY_ACTION_RESULTS",O3["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",O3.search_ui="LATENCY_ACTION_SEARCH_UI",O3.search_suggest="LATENCY_ACTION_SUGGEST",O3.search_zero_state=
"LATENCY_ACTION_SEARCH_ZERO_STATE",O3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",O3.seek="LATENCY_ACTION_PLAYER_SEEK",O3.settings="LATENCY_ACTION_SETTINGS",O3.store="LATENCY_ACTION_STORE",O3.tenx="LATENCY_ACTION_TENX",O3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",O3.watch="LATENCY_ACTION_WATCH",O3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",O3["watch,watch7"]="LATENCY_ACTION_WATCH",O3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",O3["watch,watch7ad"]="LATENCY_ACTION_WATCH",O3["watch,watch7ad_html5"]=
"LATENCY_ACTION_WATCH",O3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",O3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",O3["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",O3["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",O3["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",O3["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",O3["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",O3["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",O3["video.live_streaming"]=
"LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",O3["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",O3["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",O3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",O3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",O3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",O3),P3={},sva=(P3.ad_allowed="adTypesAllowed",P3.yt_abt="adBreakType",P3.ad_cpn="adClientPlaybackNonce",P3.ad_docid="adVideoId",
P3.yt_ad_an="adNetworks",P3.ad_at="adType",P3.aida="appInstallDataAgeMs",P3.browse_id="browseId",P3.p="httpProtocol",P3.t="transportProtocol",P3.cs="commandSource",P3.cpn="clientPlaybackNonce",P3.ccs="creatorInfo.creatorCanaryState",P3.ctop="creatorInfo.topEntityType",P3.csn="clientScreenNonce",P3.docid="videoId",P3.GetHome_rid="requestIds",P3.GetSearch_rid="requestIds",P3.GetPlayer_rid="requestIds",P3.GetWatchNext_rid="requestIds",P3.GetBrowse_rid="requestIds",P3.GetLibrary_rid="requestIds",P3.is_continuation=
"isContinuation",P3.is_nav="isNavigation",P3.b_p="kabukiInfo.browseParams",P3.is_prefetch="kabukiInfo.isPrefetch",P3.is_secondary_nav="kabukiInfo.isSecondaryNav",P3.nav_type="kabukiInfo.navigationType",P3.prev_browse_id="kabukiInfo.prevBrowseId",P3.query_source="kabukiInfo.querySource",P3.voz_type="kabukiInfo.vozType",P3.yt_lt="loadType",P3.mver="creatorInfo.measurementVersion",P3.yt_ad="isMonetized",P3.nr="webInfo.navigationReason",P3.nrsu="navigationRequestedSameUrl",P3.pnt="performanceNavigationTiming",
P3.prt="playbackRequiresTap",P3.plt="playerInfo.playbackType",P3.pis="playerInfo.playerInitializedState",P3.paused="playerInfo.isPausedOnLoad",P3.yt_pt="playerType",P3.fmt="playerInfo.itag",P3.yt_pl="watchInfo.isPlaylist",P3.yt_pre="playerInfo.preloadType",P3.yt_ad_pr="prerollAllowed",P3.pa="previousAction",P3.yt_red="isRedSubscriber",P3.rce="mwebInfo.responseContentEncoding",P3.rc="resourceInfo.resourceCache",P3.scrh="screenHeight",P3.scrw="screenWidth",P3.st="serverTimeMs",P3.ssdm="shellStartupDurationMs",
P3.br_trs="tvInfo.bedrockTriggerState",P3.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",P3.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",P3.label="tvInfo.label",P3.is_mdx="tvInfo.isMdx",P3.preloaded="tvInfo.isPreloaded",P3.aac_type="tvInfo.authAccessCredentialType",P3.upg_player_vis="playerInfo.visibilityState",P3.query="unpluggedInfo.query",P3.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",P3.yt_vst="videoStreamType",P3.vph="viewportHeight",P3.vpw="viewportWidth",P3.yt_vis=
"isVisible",P3.rcl="mwebInfo.responseContentLength",P3.GetSettings_rid="requestIds",P3.GetTrending_rid="requestIds",P3.GetMusicSearchSuggestions_rid="requestIds",P3.REQUEST_ID="requestIds",P3),tva="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(" "),
Q3={},uva=(Q3.ccs="CANARY_STATE_",Q3.mver="MEASUREMENT_VERSION_",Q3.pis="PLAYER_INITIALIZED_STATE_",Q3.yt_pt="LATENCY_PLAYER_",Q3.pa="LATENCY_ACTION_",Q3.ctop="TOP_ENTITY_TYPE_",Q3.yt_vst="VIDEO_STREAM_TYPE_",Q3),vva="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 V={LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,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_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,
LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,
LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,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_GENERIC_WEB_VIEW:183,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_DOWNLOADS_DATA_ACCESS:180,
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_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,
LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,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_STORE:175,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_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,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_SONG_ANALYTICS:176,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_VIDEO_COPYRIGHT:174,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_STOREFRONT:177,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_EXPERIMENTAL_WATCH_UI:181,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};V[V.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";V[V.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";V[V.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";
V[V.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";V[V.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";V[V.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";V[V.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";V[V.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";V[V.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";V[V.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";
V[V.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";V[V.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";V[V.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";V[V.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";V[V.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";
V[V.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";V[V.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";V[V.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";V[V.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";V[V.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";V[V.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";
V[V.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";V[V.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";V[V.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";V[V.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";V[V.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";V[V.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";
V[V.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";V[V.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";V[V.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";V[V.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";V[V.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";V[V.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";V[V.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";
V[V.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";V[V.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";V[V.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";V[V.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";V[V.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";V[V.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";V[V.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";
V[V.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";V[V.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";V[V.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";V[V.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";V[V.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";
V[V.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";V[V.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";V[V.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";V[V.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";V[V.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";V[V.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";V[V.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";
V[V.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";V[V.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";V[V.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";V[V.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";V[V.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";V[V.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";
V[V.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";V[V.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";V[V.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";V[V.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";V[V.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";V[V.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";V[V.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";
V[V.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";V[V.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";V[V.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";V[V.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";V[V.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";V[V.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";V[V.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";
V[V.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";V[V.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";V[V.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";V[V.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";V[V.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";V[V.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";V[V.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";V[V.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";
V[V.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";V[V.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";V[V.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";V[V.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";V[V.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";V[V.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";
V[V.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";V[V.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";V[V.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";V[V.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";V[V.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";V[V.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";V[V.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
V[V.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";V[V.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";V[V.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";V[V.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";V[V.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";V[V.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";V[V.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";
V[V.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";V[V.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";V[V.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";V[V.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";V[V.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";V[V.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";V[V.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";V[V.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";
V[V.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";V[V.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";V[V.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";V[V.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";V[V.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";V[V.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
V[V.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";V[V.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";V[V.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";V[V.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";V[V.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";
V[V.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";V[V.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";V[V.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";V[V.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
V[V.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";V[V.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";V[V.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";V[V.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";V[V.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";V[V.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";
V[V.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";V[V.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";V[V.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";V[V.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";V[V.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";V[V.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
V[V.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";V[V.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";V[V.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";V[V.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";V[V.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";
V[V.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";V[V.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";V[V.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";V[V.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";V[V.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";
V[V.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";V[V.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";V[V.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";V[V.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";V[V.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";V[V.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";V[V.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";V[V.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";
V[V.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";V[V.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";V[V.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";V[V.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";V[V.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";V[V.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";V[V.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";
V[V.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";V[V.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";V[V.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";V[V.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";V[V.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";V[V.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";V[V.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";V[V.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";
V[V.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";V[V.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";V[V.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";V[V.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";V[V.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";V[V.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";V[V.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";V[V.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";V[V.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";
V[V.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";V[V.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";V[V.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var aB={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};aB[aB.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";aB[aB.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";aB[aB.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var bB={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};bB[bB.CONN_INVALID]="CONN_INVALID";bB[bB.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";bB[bB.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";bB[bB.CONN_WIFI_METERED]="CONN_WIFI_METERED";bB[bB.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";
bB[bB.CONN_DISCO]="CONN_DISCO";bB[bB.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";bB[bB.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";bB[bB.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";bB[bB.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";bB[bB.CONN_WIFI]="CONN_WIFI";bB[bB.CONN_NONE]="CONN_NONE";bB[bB.CONN_UNKNOWN]="CONN_UNKNOWN";bB[bB.CONN_DEFAULT]="CONN_DEFAULT";
var cB={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};cB[cB.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
cB[cB.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";cB[cB.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";cB[cB.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";cB[cB.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";cB[cB.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";cB[cB.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
cB[cB.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";cB[cB.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";cB[cB.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";cB[cB.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";cB[cB.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";cB[cB.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";cB[cB.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";cB[cB.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
cB[cB.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";cB[cB.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";cB[cB.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";cB[cB.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";cB[cB.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";cB[cB.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";cB[cB.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";cB[cB.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
cB[cB.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";cB[cB.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";cB[cB.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";cB[cB.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var dB={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};
dB[dB.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";dB[dB.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";dB[dB.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";dB[dB.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";dB[dB.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";dB[dB.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";dB[dB.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";dB[dB.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var eB={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};eB[eB.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";eB[eB.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";eB[eB.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";eB[eB.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var fB={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
fB[fB.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";fB[fB.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var gB={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};gB[gB.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";gB[gB.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";gB[gB.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
gB[gB.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";gB[gB.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";gB[gB.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var hB={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};hB[hB.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";hB[hB.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";hB[hB.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";hB[hB.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var iB={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};iB[iB.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";iB[iB.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";iB[iB.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var jB={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};jB[jB.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
jB[jB.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";jB[jB.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var yva="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var TA=g.C.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",TA);RA.prototype.tick=function(a,b,c,d){UA(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.T("web_csi_via_jspb")?(d=new Ct,g.D(d,1,a),g.D(d,2,b),a=new Wt,Dd(a,Ct,5,ty,d),sy(a,c)):g.Mv("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
RA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");UA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Mv("latencyActionInfo",a,{cttAuthInfo:c}))};
RA.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));UA(this,"info_"+d+"_"+b)||(g.D(a,2,b),b={cttAuthInfo:c},c=new Wt,Dd(c,zt,7,ty,a),sy(c,b))};
RA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");UA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Mv("latencyActionSpan",a,{cttAuthInfo:c}))};var O_a=window;O_a.ytcsi&&(O_a.ytcsi.info=g.$A,O_a.ytcsi.tick=XA);var OAa={Ama:1,Bna:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var sT=16/9,P_a=[.25,.5,.75,1,1.25,1.5,1.75,2],Q_a=P_a.concat([3,4,5,6,7,8,9,10,15]);var R_a=["h","H"],S_a=["9","("],T_a=["9h","(h"],U_a=["8","*"],V_a=["a","A"],W_a=["o","O"],X_a=["m","M"],Y_a=["mac3","MAC3"],Z_a=["meac3","MEAC3"],R3={},pya=(R3.h=R_a,R3.H=R_a,R3["9"]=S_a,R3["("]=S_a,R3["9h"]=T_a,R3["(h"]=T_a,R3["8"]=U_a,R3["*"]=U_a,R3.a=V_a,R3.A=V_a,R3.o=W_a,R3.O=W_a,R3.m=X_a,R3.M=X_a,R3.mac3=Y_a,R3.MAC3=Y_a,R3.meac3=Z_a,R3.MEAC3=Z_a,R3);g.sB.prototype.getLanguageInfo=function(){return this.Ic};
g.sB.prototype.toString=function(){return this.Ic.name};
g.sB.prototype.getLanguageInfo=g.sB.prototype.getLanguageInfo;var S3,xB;S3={};g.uB=(S3.auto=0,S3.tiny=144,S3.light=144,S3.small=240,S3.medium=360,S3.large=480,S3.hd720=720,S3.hd1080=1080,S3.hd1440=1440,S3.hd2160=2160,S3.hd2880=2880,S3.highres=4320,S3);xB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};tB.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
tB.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
tB.prototype.compose=function(a){if(a.B&&wB(a))return GH;if(a.B||wB(this))return a;if(this.B||wB(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 tB(b,c,!1,c===this.j?this.reason:a.reason)};
tB.prototype.C=function(a){return a.video?Fva(this,a.video.quality):!1};
var $_a=g.vB("auto","hd1080",!1,"l"),uOa=g.vB("auto","large",!1,"l"),GH=g.vB("auto","auto",!1,"p");zB.prototype.Hp=function(a){a=a||GH;for(var b=g.wm(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
zB.prototype.Ey=function(a){a=a||GH;return g.wm(this.videoInfos,function(b){return a.C(b)})};
zB.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var KB={RL:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
Nt:function(a,b){a.splice(0,b)},
dy:function(a){a.reverse()}};g.LB.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.LB.prototype.get=function(a){MB(this);return this.j[a]||null};
g.LB.prototype.pe=function(){this.url||(this.url=Zva(this));return this.url};
g.LB.prototype.clone=function(){var a=new g.LB(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.Gf(this.j);a.url=this.url;return a};
var Yva=[Wka];g.k=SB.prototype;g.k.CF=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.zm(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ia:-1};
g.k.getIngestionTime=function(a){return(a=this.zm(a))?a.ingestionTime:NaN};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ia:-1};
g.k.AI=function(a){return this.getLastSegmentNumber()===a&&!this.u&&0<=a};
g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
g.k.getNumberOfSegments=function(){return this.segments.length};
g.k.getOffset=function(){return 0};
g.k.getSegmentNumberForTime=function(a){return(a=this.zv(a))?a.Ia:-1};
g.k.getSegmentURL=function(a){return(a=this.zm(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.zm(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.zm(a))?a.j:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.zm=function(a){if(this.j&&this.j.Ia===a)return this.j;a=g.kc(this.segments,new RB(a,0,0,0,""),function(b,c){return b.Ia-c.Ia});
return this.j=0<=a?this.segments[a]:null};
g.k.zv=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.kc(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.k.append=function(a){if(a.length)if(a=g.cc(a),this.segments.length){var b=this.segments.length?g.Qb(this.segments).endTime:0,c=a[0].Ia-this.getLastSegmentNumber();1<c&&Naa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.getLocalMaxByterate=function(){return 0};TB.prototype.append=function(a){if(bwa(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);WB(this)}else this.j.push(a);this.totalLength+=a.length};
TB.prototype.split=function(a){for(var b=new TB,c=new TB,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{IC:b,So:c}};
TB.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
TB.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&WB(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 TU=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}(),fC=Array(1024),dC=window.TextDecoder?new TextDecoder:void 0,hC=window.TextEncoder?new TextEncoder:void 0;jC.prototype.skip=function(a){this.j+=a};
jC.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var T3={},a0a=(T3.predictStart="predictStart",T3.start="start",T3["continue"]="continue",T3.stop="stop",T3),iwa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};sC.prototype.cz=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"]||this.data["Is-Ad-Break-Finished"])};
sC.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 U3={},aAa=(U3.STEREO_LAYOUT_UNKNOWN=0,U3.STEREO_LAYOUT_LEFT_RIGHT=1,U3.STEREO_LAYOUT_TOP_BOTTOM=2,U3);var uwa=!1;FC.prototype.Uv=function(){var a=this.pos;this.pos=0;var b=!1;try{JC(this,440786851)&&(this.pos=0,JC(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.rz(c);else throw c;}this.pos=a;return b};TC.prototype.set=function(a,b){this.xi.get(a);this.j[a]=b;this.url=""};
TC.prototype.get=function(a){return this.j[a]||this.xi.get(a)};
TC.prototype.pe=function(){this.url||(this.url=Dwa(this));return this.url};Hwa.prototype.Tj=function(a,b){a.xi===this.j&&(this.j=UC(a,b));a.xi===this.B&&(this.B=UC(a,b))};ZC.prototype.Sf=function(){return!!this.j&&this.index.isLoaded()};
ZC.prototype.Yv=function(){return!1};
ZC.prototype.IM=function(a){return[a]};
ZC.prototype.Dw=function(a){return[a]};aD.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};dD.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
dD.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.Ia!==this.Ia||a.Gb!==this.Gb||a.u!==this.u)};
dD.prototype.isVideo=function(){return!!this.j.info.video};pD.prototype.Am=function(){return this.B?this.B.pe():""};
pD.prototype.Uy=function(){return this.N};
pD.prototype.Ln=function(){return iD(this.j[0])};
pD.prototype.Tj=function(a,b){this.u.Tj(a,b);if(this.B){this.B=UC(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")};
var Twa=!1;g.u(uD,ZC);g.k=uD.prototype;g.k.Wm=function(){return!1};
g.k.Cs=function(){return b0a};
g.k.jz=function(){return!1};
g.k.Yv=function(){return!this.I};
g.k.Mp=function(){return new pD([new dD(1,this,this.initRange,"getMetadataRequestInfo")],this.I)};
g.k.Bu=function(){return null};
g.k.Cx=function(a){this.ep(a);return this.Cs()&&a.u&&!a.Ae?new pD([new dD(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ia,a.startTime,a.duration,a.Gb+a.u,NaN,!0)],this.index.getSegmentURL(a.Ia)):this.fp(lD(a),!1)};
g.k.Dm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.fp(a,!0)};
g.k.eI=function(a){this.j=new Uint8Array(GD(a).buffer)};
g.k.ep=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ia&&this.index.getFirstSegmentNumber()<=a.Ia+1};
g.k.update=function(a,b,c){this.index.append(a);awa(this.index,c);this.index.u=b};
g.k.Sf=function(){return this.Yv()?!0:ZC.prototype.Sf.call(this)};
g.k.fp=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.Pb?this.info.Pb*e:1E3;return new pD([new dD(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.OH=function(){return this.Yv()?0:this.initRange.length};
g.k.VJ=function(){return!1};
var b0a=!1;xD.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new xD,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+vD(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+vD(a,"startNumber")||0,m=d.C=h,n=+vD(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse($wa(vD(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.J=vD(a,"media"));a=c?l-c.Ia:1;d.I=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,v=0;v<=q;v++)if(c&&l<=c.Ia)l++;else{var w=new Ywa(l,b,n,m+p,h);d.j.push(w);var y=w.startSecs;w=e.getAttribute("yt:cuepointTimeOffset");var A=e.getAttribute("yt:cuepointDuration");if(w&&A){w=Number(w);y=-w/f+y;A=Number(A)/f;var B=e.getAttribute("yt:cuepointContext")||null,E=e.getAttribute("yt:cuepointIdentifier")||"",G=e.getAttribute("yt:cuepointEvent")||"";w=new kA(y,A,B,E,a0a[G]||"unknown",w)}else w=
null;w&&d.B.push(w);l++;b+=n;h+=n;m+=n+p}}d.j.length&&(d.u=g.Qb(d.j))}this.I=d.I;this.u=d.u||this.u;g.dc(this.j,d.j);g.dc(this.B,d.B);this.D=d.D;this.J=d.J;-1===this.C&&(this.C=d.getStreamTimeOffset())};
xD.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.u(yD,SB);g.k=yD.prototype;g.k.getFirstSegmentNumber=function(){return this.mm?this.segments.length?this.zv(this.getMinSeekableTime()).Ia:-1:SB.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.xf)return 0;if(!this.mm)return SB.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Qb(this.segments).endTime-this.Pn,0);return 0<this.Xe&&this.zv(a).Ia<this.Xe?this.zm(this.Xe).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return SB.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.mm||a<=this.segments[this.segments.length-1].Ia)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new RB(a,Math.max(0,b.startTime-(b.Ia-a)*this.Zh),this.Zh,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.xf?Math.min(this.Pn,a.startTime):a.startTime:this.xf?Math.min(this.Pn,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.mm?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:SB.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.Rh,Math.max(SB.prototype.getLastSegmentNumber.call(this),this.Om)),b=1E3*this.Pn;b=0<this.Zn&&this.Zn<b;this.xf&&0<this.Pn&&0<this.Om&&!b&&(b=this.zv(this.Pn))&&(a=Math.min(b.Ia-1,a));return a};
g.k.Yr=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.CF=function(a){var b=zD(this,a.Ia);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.xz&&0===a.Ia%(300/this.Zh)){var c=this.segments[0].Ia,d=Math.floor(this.xz/this.Zh);a=a.Ia-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.sC=function(){return this.Om};
g.k.zv=function(a){if(!this.mm)return SB.prototype.zv.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].Ia-Math.ceil((this.segments[0].startTime-a)/this.Zh));else if(a>=b.endTime)b=b.Ia+Math.floor((a-b.endTime)/this.Zh+1);else{b=lc(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.Ia-b.Ia-1))+1)+b.Ia}return this.zm(b)};
g.k.zm=function(a){if(!this.mm)return SB.prototype.zm.call(this,a);if(!this.segments.length)return null;var b=zD(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Zh;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ia-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ia-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ia-d.Ia-1),d=d.endTime+(a-d.Ia-1)*b);return new RB(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.u(BD,uD);g.k=BD.prototype;g.k.jz=function(){return!0};
g.k.Sf=function(){return!0};
g.k.ep=function(a){return this.Cs()&&a.u&&!a.Ae||!a.j.index.AI(a.Ia)};
g.k.Mp=function(){};
g.k.Dm=function(a,b){return"number"!==typeof a||isFinite(a)?uD.prototype.Dm.call(this,a,void 0===b?!1:b):new pD([new dD(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.zk,void 0,this.zk*this.info.Pb)],"")};
g.k.fp=function(a,b){var c=void 0===c?!1:c;if(AD(this.index,a))return uD.prototype.fp.call(this,a,b);var d=this.index.getStartTime(a);return new pD([new dD(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.zk*this.info.Pb,!b)],0<=a?"sq/"+a:"")};g.u(CD,ZC);g.k=CD.prototype;g.k.Wm=function(){return!1};
g.k.Cs=function(){return!1};
g.k.jz=function(){return!1};
g.k.Mp=function(){return new pD([new dD(1,this,void 0,"otfInit")],this.I)};
g.k.Bu=function(){return null};
g.k.Cx=function(a){this.ep(a);return hxa(this,lD(a),!1)};
g.k.Dm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return hxa(this,a,!0)};
g.k.eI=function(a){1===a.info.type&&(this.j||(this.j=ewa(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&ixa(this,a.u))};
g.k.ep=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ia&&this.index.getFirstSegmentNumber()<=a.Ia+1};
g.k.OH=function(){return 0};
g.k.VJ=function(){return!1};g.k=DD.prototype;g.k.getOffset=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.j[a]/this.B};
g.k.getStartTimeInPeriod=function(){return 0};
g.k.getIngestionTime=function(){return NaN};
g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
g.k.getDurationTicks=function(a){return a+1<this.count||this.u?this.j[a+1]-this.j[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
g.k.getFirstSegmentNumber=function(){return 0};
g.k.getLastSegmentNumber=function(){return this.count-1};
g.k.AI=function(a){return this.getLastSegmentNumber()===a&&0<=a};
g.k.getMaxKnownEndTime=function(){return this.u?this.j[this.count]/this.B:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.kc(this.j.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.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.k.setTimebase=function(a){this.B=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.j[0]=b;this.u=!0};
g.k.addSegmentBySize=function(a,b){this.count++;ED(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.j[this.count]=this.j[this.count-1]+b};
g.k.addSegmentByStart=function(a,b){ED(this);this.offsets[this.count]=a;this.j[this.count]=b;this.count++};
g.k.cap=function(a,b){ED(this);this.u=!0;this.j[this.count]=b;this.offsets[this.count]=a};FD.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=GD(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Gb)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=GD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Gb)return 524531317===c||440786851===c}return!0};g.u(JD,ZC);g.k=JD.prototype;g.k.Mp=function(a){var b=new dD(2,this,this.indexRange,"indexInfo"),c=[new dD(1,this,this.initRange,"initInfo"),b];0<this.info.contentLength&&a&&(b=b.range.end+1,a=Math.min(a,this.info.contentLength-b),0<a&&c.push(new dD(4,this,cD(b,a),"tbdRange")));return new pD(c)};
g.k.eI=function(a){if(1===a.info.type){if(this.j)return;this.j=ewa(a.j)}else if(2===a.info.type){if(this.I||0<=this.index.getLastSegmentNumber())return;if(g.HD(this.info)){var b=this.index,c=GD(a);a=a.info.range.start;var d=g.vC(c,0,1936286840);c=rwa(d);b.setTimebase(c.cL);b.setFirstSegmentStart(c.pY+a+d.size,c.VX);a=c.XK.length;for(d=0;d<a;d++)b.addSegmentBySize(c.w3[d],c.XK[d])}else this.I=GD(a)}if(this.info.We()&&this.j&&this.I){a=new DataView(this.j.buffer);b=this.index;d=this.I;c=this.indexRange.end;
var e=new FC(a);a=e;e=a.pos;var f={OS:1E6,PS:1E9,duration:0,oS:0,uK:0};if(JC(a,408125543))if(f.oS=KC(a,!0),f.uK=a.start+a.pos,JC(a,357149030)){for(var h=IC(a);!GC(h);){var l=KC(h,!1);2807729===l?f.OS=MC(h):2807730===l?f.PS=MC(h):17545===l?f.duration=OC(h):NC(h)}a.pos=e;a=f}else a.pos=e,a=null;else a.pos=e,a=null;if(null!==a){b.setTimebase(a.PS/a.OS);e=new FC(d);d=e;h=a.uK;e=d.pos;f=[];if(JC(d,475249515)){for(l=IC(d);JC(l,187);){var m=IC(l);if(JC(m,179)){var n=MC(m);if(JC(m,183)){m=IC(m);for(var p=
h;JC(m,241);)p=MC(m)+h;f.push({OB:p,GX:n})}}}if(0<f.length&&c===f[0].OB)for(c=0;c<f.length;c++)f[c].OB+=1;d.pos=e;c=f}else d.pos=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.OB,d.GX);b.cap(a.oS+a.uK,a.duration)}}this.I=null}};
g.k.IM=function(a){for(var b=this.Dw(a.info),c=a.info.range.start+a.info.Gb,d=a.B,e=[],f=0;f<b.length;f++){var h=VB(a.j,b[f].range.start+b[f].Gb-c,b[f].u);e.push(new FD(b[f],h,d));d=void 0}return e};
g.k.Dw=function(a){for(var b=a.range.start+a.Gb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return KD(this,c,b,a.u).j};
g.k.ep=function(a){hD(a);return this.Sf()?!0:a.range.end+1<this.info.contentLength};
g.k.Bu=function(a,b){this.ep(a);if(!this.Sf())return b=cD(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new aD(b.start,this.info.contentLength-1)),new pD([new dD(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.Dw(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Gb+a.u;3===a.type&&(hD(a),c=a.Ia,d===a.range.end+1&&(c+=1));return KD(this,c,d,b)};
g.k.Cx=function(){return null};
g.k.Dm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return KD(this,a,this.index.getOffset(a),0)};
g.k.Wm=function(){return!0};
g.k.Cs=function(){return!0};
g.k.jz=function(){return!1};
g.k.OH=function(){return this.indexRange.length+this.initRange.length};
g.k.VJ=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};LD.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var V3={},GB=(V3.WIDTH={name:"width",video:!0,valid:640,invalid:99999},V3.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},V3.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},V3.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},V3.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},V3.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},V3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},V3.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},V3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},V3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},V3);var Z={},QD=(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["577"]="9",Z["313"]="9",Z["579"]="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 OD="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ND.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};RD.prototype.We=function(){return 2===this.containerType};
RD.prototype.isEncrypted=function(){return!!this.Td};
RD.prototype.Um=function(){return!!this.audio};
RD.prototype.isVideo=function(){return!!this.video};g.XD.prototype.getName=function(){return this.name};
g.XD.prototype.getId=function(){return this.id};
g.XD.prototype.getIsDefault=function(){return this.isDefault};
g.XD.prototype.toString=function(){return this.name};
g.XD.prototype.getName=g.XD.prototype.getName;g.XD.prototype.getId=g.XD.prototype.getId;g.XD.prototype.getIsDefault=g.XD.prototype.getIsDefault;g.u(g.YD,$y);g.YD.prototype.P=function(a,b,c,d,e){return $y.prototype.P.call(this,a,b,c,d,e)};g.u(mE,g.cz);g.k=mE.prototype;g.k.appendBuffer=function(a,b,c){if(this.Wd.oC()!==this.appendWindowStart+this.start||this.Wd.FH()!==this.appendWindowEnd+this.start||this.Wd.wd()!==this.timestampOffset+this.start)this.Wd.supports(1),this.Wd.BK(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Wd.pE(this.timestampOffset+this.start);this.Wd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Wd.abort()};
g.k.remove=function(a,b){this.Wd.remove(a+this.start,b+this.start)};
g.k.BK=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.VH=function(){return this.timestampOffset+this.start};
g.k.oC=function(){return this.appendWindowStart};
g.k.FH=function(){return this.appendWindowEnd};
g.k.pE=function(a){this.timestampOffset=a};
g.k.wd=function(){return this.timestampOffset};
g.k.yg=function(a){a=this.Wd.yg(void 0===a?!1:a);return lE(a,this.start,this.end)};
g.k.Ph=function(){return this.Wd.Ph()};
g.k.Jp=function(){return this.Wd.Jp()};
g.k.tC=function(){return this.Wd.tC()};
g.k.vL=function(a,b){this.Wd.vL(a,b)};
g.k.supports=function(a){return this.Wd.supports(a)};
g.k.uC=function(){return this.Wd.uC()};
g.k.isView=function(){return!0};
g.k.GE=function(a,b,c){return this.isActive?this.Wd.GE(a,b,c):!1};
g.k.GB=function(){return this.Wd.GB()?this.isActive:!1};
g.k.isLocked=function(){return this.PA&&!this.isActive};
g.k.Ob=function(a){a=this.Wd.Ob(a);a.vw=this.start+"-"+this.end;return a};
g.k.Jy=function(){return this.Wd.Jy()};
g.k.RH=function(){return this.Wd.RH()};
g.k.ea=function(){ez(this.Wd,this.qP);g.cz.prototype.ea.call(this)};var nU=!1;g.u(nE,g.cz);g.k=nE.prototype;g.k.appendBuffer=function(a,b,c){this.CB=!1;c&&(this.bD=c);b&&(b.isEncrypted()&&(this.TP=this.bD),3===b.type&&(this.Je=b));this.kA&&(2<=this.kA.length||1048576<a.length?delete this.kA:this.kA.push(a));var d;(null==(d=this.kc)?0:d.appendBuffer)?this.kc.appendBuffer(a):this.kc?this.kc.append(a):this.Jf&&this.Jf.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.kc?this.kc.abort():this.Jf&&this.Jf.webkitSourceAbort(this.id)}catch(a){}this.bD=this.Je=null};
g.k.remove=function(a,b){this.CB=!1;var c;(null==(c=this.kc)?0:c.remove)&&this.kc.remove(a,b)};
g.k.oC=function(){if(nU&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.kc)?void 0:a.appendWindowStart)||0};
g.k.FH=function(){var a;return(null==(a=this.kc)?void 0:a.appendWindowEnd)||0};
g.k.BK=function(a,b){this.kc&&(nU&&this.isVideo?(this.appendWindowStart=a,this.kc.appendWindowEnd=b):a>this.oC()?(this.kc.appendWindowEnd=b,this.kc.appendWindowStart=a):(this.kc.appendWindowStart=a,this.kc.appendWindowEnd=b))};
g.k.VH=function(){return this.timestampOffset};
g.k.pE=function(a){nU?this.timestampOffset=a:this.supports(1)&&(this.kc.timestampOffset=a)};
g.k.wd=function(){return nU?this.timestampOffset:this.supports(1)?this.kc.timestampOffset:0};
g.k.yg=function(a){if(void 0===a?0:a)return this.CB||this.Ph()||(this.PN=this.yg(!1),this.CB=!0),this.PN;try{return this.kc?this.kc.buffered:this.Jf?this.Jf.webkitSourceBuffered(this.id):fE([0],[Infinity])}catch(b){return fE([],[])}};
g.k.Ph=function(){var a;return(null==(a=this.kc)?void 0:a.updating)||!1};
g.k.Jp=function(){return this.bD};
g.k.tC=function(){return this.TP};
g.k.vL=function(a,b){this.containerType!==a&&(this.supports(4),oE()&&this.kc.changeType(b));this.containerType=a};
g.k.uC=function(){return this.Je};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.kc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.kc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.kc)||!d.remove);case 3:var e,f;return!!((null==(e=this.kc)?0:e.addEventListener)&&(null==(f=this.kc)?0:f.removeEventListener));case 4:return!(!this.kc||!this.kc.changeType);default:return!1}};
g.k.GB=function(){return!this.Ph()};
g.k.isLocked=function(){return!1};
g.k.Ob=function(a){a.to=this.wd();a.up=this.Ph();var b,c=(null==(b=this.kc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.kc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=gE(this.yg())}catch(e){}return a};
g.k.ea=function(){this.supports(3)&&(this.kc.removeEventListener("updateend",this.Sc),this.kc.removeEventListener("error",this.Sc));g.cz.prototype.ea.call(this)};
g.k.GE=function(a,b,c){if(!this.supports(2)||this.Ph())return!1;var d=this.yg(),e=hE(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.Jy=function(){return this.containerType};
g.k.RH=function(){return this.kA};
var zxa=!1;pE.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
pE.prototype.isDisposed=function(){return this.B};
pE.prototype.equals=function(a){return null!==a&&a.j===this.j};
pE.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.u(qE,g.K);g.k=qE.prototype;g.k.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.B};
g.k.wj=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Jf.webkitSourceSetDuration(a))}catch(b){}};
g.k.Rf=function(){try{return"closed"===sE(this)}catch(a){return!0}};
g.k.Ph=function(){return!!(this.j&&this.j.Ph()||this.u&&this.u.Ph())};
g.k.n2=function(){!this.isDisposed()&&rE(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.m2=function(){this.dispose()};var Fxa=/action_display_post/;var Gxa;g.u(vE,g.cz);g.k=vE.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.X2=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.nf=this.u=!0;this.timeline||(this.timeline=new bxa);fxa(this.timeline,a,this.Ha);this.X("refresh");for(a=0;a<c.length;a++){var d=Uxa(this,c[a]),e=this.isLive&&g.HD(d)&&this.La;if(!this.j[d.id]){var f=yE(wD(c[a],"BaseURL").textContent),h=wD(c[a],"Initialization"),l=vD(h,"sourceURL");h=bD(vD(h,"range"));e&&(l="",h=void 0);this.j[d.id]=
new uD(f,d,l,h)}d=this.j[d.id];f=vD(c[a],"id","AdaptationSet");f=""!==f?f:vD(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.j||null;f=l.j;!this.D&&l.getStreamTimeOffset()&&(this.D=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.Pb,p=h.Ia,q=h.startSecs;var v=l.J.split("$$");for(b=0;b<v.length;b++)v[b]=v[b].replace("$RepresentationID$",m),v[b]=v[b].replace("$Number$",p.toString()),v[b]=v[b].replace("$Bandwidth$",
n.toString()),v[b]=v[b].replace("$Time$",q.toString());e.push(new RB(h.Ia,h.startSecs,h.durationSecs,h.j,v.join("$"),null,h.u))}else{l=ec(wD(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;q=f[m];v=void 0;var w=l[m];b=w.getAttribute("media");if(!e&&(w=w.getAttribute("mediaRange"))){var y=w.split("-");y[1]&&0<=Number(y[1])?v=bD(w):b=b+"?range="+w}p.call(n,new RB(q.Ia,q.startSecs,q.durationSecs,q.j,b,v,q.u))}e=h}d.update(e,this.isLive,this.qa)}gxa(this.timeline);
return!0}this.duration=Zwa(vD(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=Uxa(this,f);e=yE(wD(f,"BaseURL").textContent);l=wD(f,"SegmentBase");f=bD(l.attributes.getNamedItem("indexRange").value);l=bD(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new JD(e,d,l,f);if(!d){c=!1;break a}wE(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.wi(this.sourceUrl,{start_seq:Yxa(this).toString()});Wxa(this,a).Wi(function(){})}};
g.k.resume=function(){Vxa(this)};
g.k.Pd=function(){if(this.isManifestless&&this.C&&BE(this))return BE(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.C&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Um()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.getMinSeekableTime=function(){if(this.isManifestless){if(CE(this))return CE(this);if(this.Nc){var a=this.getIngestionTime(this.Pd());if(a&&(a-=this.Nc,0<a))return this.Pd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.k.getStreamTimeOffset=function(){return this.D};
g.k.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 GE=null,dya=!!navigator.mediaCapabilities,Txa={commentary:1,alternate:2,dub:3,main:4};ME.prototype.clone=function(a){return new ME(this.flavor,a,this.u,this.experiments)};
ME.prototype.Ob=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
ME.prototype.zg=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 c0a={},VE=(c0a.playready=["com.youtube.playready","com.microsoft.playready"],c0a.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],c0a),W3={},jOa=(W3.widevine="DRM_SYSTEM_WIDEVINE",W3.fairplay="DRM_SYSTEM_FAIRPLAY",W3.playready="DRM_SYSTEM_PLAYREADY",W3),X3={},d0a=(X3.widevine=1,X3.fairplay=2,X3.playready=3,X3);g.u(WE,g.K);
WE.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.Td)for(var h=g.r(Object.keys(f.Td)),l=h.next();!l.done;l=h.next())if(l=l.value,VE[l])for(var m=g.r(VE[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new ME(l,n,f.Td[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}Ru()&&(this.u["com.youtube.fairplay"]=new ME("fairplay","com.youtube.fairplay","",
this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.j=qya(b,this.useCobaltWidevine,this.K("html5_enable_safari_fairplay"),g.LE(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
WE.prototype.K=function(a){return this.experiments.fb(a)};var DRa={"":"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 e0a={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},Y3;a:{var Z3=g.rb();Z3=Z3.toLowerCase();if(g.ib(Z3,"android")){var f0a=Z3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(f0a){var g0a=parseFloat(f0a[1]);if(100>g0a){Y3=g0a;break a}}var h0a=Z3.match("("+g.uf(e0a).join("|")+")");Y3=h0a?e0a[h0a[0]]:0}else Y3=void 0}var QF=Y3,PF=0<=QF;var mza={RED:"red",p1a:"white"};var kza={J9:"adunit",jma:"detailpage",Rma:"editpage",ana:"embedded",fna:"embedded_unbranded",xxa:"leanback",ULa:"previewpage",vMa:"profilepage",vW:"unplugged",YKa:"playlistoverview",sSa:"sponsorshipsoffer",HPa:"shortspage",lra:"handlesclaiming",bU:"immersivelivepage"};xya.prototype.fb=function(a){return"true"===this.flags[a]};var yya=Promise.resolve(),Bya=window.queueMicrotask?window.queueMicrotask.bind(window):zya;YE.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Wu?a=a||i0a[b]:2.2===QF?a=a||j0a[b]:Pu()&&(a=a||k0a[b]);return!!a};
YE.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):aE(a)};
var j0a={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},k0a={"application/x-mpegURL":"maybe"},i0a={"application/x-mpegURL":"maybe"};aF.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});Iya(this)};
aF.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Cu(a.url,a.options)}};g.u(bF,g.cz);bF.prototype.add=function(a,b){!this.items[a]&&(b.Xx||b.JB||b.IA)&&(this.items[a]=Fca(b),this.X("vast_info_card_add",a))};
bF.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
bF.prototype.get=function(a){return this.items[a]||null};
bF.prototype.isEmpty=function(){return g.Cf(this.items)};var YF={qza:1,rza:2,sza:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Jya=!1,dF,eF,fF,gF,hF;iF.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;)Lya(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(Lya(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var jF=!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 kF;g.mF.prototype.encrypt=function(a,b){var c=this,d,e;return g.z(function(f){if(1==f.j){d=lF();if(!d)return f.return(c.j(a,b));g.ra(f,3);return g.x(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.va(f);g.rz(e);jF=!0;return f.return(c.j(a,b))})};
g.mF.prototype.u=function(a,b,c){var d=this,e,f,h;return g.z(function(l){switch(l.j){case 1:if(d.D){l.Ma(2);break}e=d;return g.x(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.x(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
g.mF.prototype.j=function(a,b){this.B||(this.B=new iF(this.C));Kya(this.B,b);return this.B.encrypt(a)};
g.mF.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.nF.prototype.encrypt=function(a,b){this.j||(this.j=new iF(this.u));Kya(this.j,b);return this.j.encrypt(a)};
g.nF.prototype.decrypt=function(a,b){return this.encrypt(a,b)};oF.prototype.reset=function(){Nya(this);this.update(this.B)};
oF.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,Mya(this,this.I,0));for(;b+64<=c;b+=64)Mya(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var pF=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var l0a;l0a={};g.m0a=g.Qw("yt-idb-pref-storage",{iq:(l0a.prefs={Jn:1},l0a),Mw:!1,upgrade:function(a,b){b(1)&&g.nw(g.iw(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});rF.prototype.dh=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;qF.forEach(function(e,f){d<e||(c.u[f]+=b)})};
rF.prototype.toString=function(){return""};
var qF=[20,100,500,2E3];g.k=Xya.prototype;g.k.isActive=function(){return!0};
g.k.QC=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.UE=a.prototype[e],d.XE=b[e],a.prototype[e]=function(f){return function(){var h=g.za.apply(0,arguments),l=(0,g.U)();h=f.UE.apply(this,h);sF(c,f.XE,(0,g.U)()-l);return h}}(d)),d={UE:d.UE,
XE:d.XE}}};
g.k.Fq=function(a){return new Wya(a)};
g.k.Dp=function(a,b){b=void 0===b?1:b;a instanceof Wya&&(sF(this,a.name,(0,g.U)()-a.startTimeMs,b),a.j=!0)};
g.k.gK=function(a,b){var c=void 0===c?1:c;var d=(0,g.U)();b();sF(this,a,(0,g.U)()-d,c)};
g.k.HO=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<qF.length;++e)if(0<c.u[e])d+="."+qF[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new Vya;return a};
g.k.toString=function(){return""};g.k=tF.prototype;g.k.isActive=function(){return!1};
g.k.QC=function(){};
g.k.Fq=function(){};
g.k.Dp=function(){};
g.k.gK=function(a,b){b()};
g.k.HO=function(){return{}};
g.k.toString=function(){return""};var $3,lX,a4,RT,XRa;$3=new tF;lX=bu("html5_enable_profiler")||bu("html5_onesie_enable_profiler")||bu("html5_offline_encryption_enable_profiler")||0<bu("html5_performance_impact_profiling_timer_ms")?new Xya:new tF;g.lS=bu("html5_enable_profiler")?lX:$3;a4=bu("html5_onesie_enable_profiler")?lX:$3;RT=bu("html5_offline_encryption_enable_profiler")?lX:$3;XRa=bu("html5_performance_impact_profiling_timer_ms")?lX:$3;g.u(uF,g.mF);uF.prototype.j=function(a,b){var c=a4.Fq("oap");b=g.mF.prototype.j.call(this,a,b);a4.Dp(c,Math.ceil(a.length/16));return b};
uF.prototype.u=function(a,b,c){var d=this,e,f;return g.z(function(h){if(1==h.j)return e=a4.Fq("oan2"),g.x(h,g.mF.prototype.u.call(d,a,b,c),2);f=h.u;a4.Dp(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.u(vF,g.nF);vF.prototype.encrypt=function(a,b){var c=a4.Fq("oap");b=g.nF.prototype.encrypt.call(this,a,b);a4.Dp(c,Math.ceil(a.byteLength/16));return b};xF.prototype.lh=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
xF.prototype.Nh=function(){return this.j/(1-Math.pow(this.alpha,this.u))};yF.prototype.lh=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};
yF.prototype.Nh=function(){return this.I?(zF(this,this.B-this.I)+zF(this,this.B)+zF(this,this.B+this.I))/3:zF(this,this.B)};g.u(gza,g.K);var lza="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),qza={uda:"cbrand",Dda:"cbr",Eda:"cbrver",wta:"c",zta:"cver",yta:"ctheme",xta:"cplayer",sDa:"cmodel",bFa:"cnetwork",bJa:"cos",cJa:"cosver",qKa:"cplatform"};g.u(eG,g.K);g.k=eG.prototype;g.k.K=function(a){return this.experiments.fb(a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.hG(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.UF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Wu&&(a=Wla())&&(b.ebc=a));return g.wi(d,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.hG(this)+"/embed/"+b;d&&(b=g.wi(b,{list:d}));d=c.width;c=c.height;b=g.Vg(b);return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+((null!=a?a:"YouTube video player")+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.bE&&!Wu&&74<=wma()||g.pB&&g.yc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var tza=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"];g.k=CG.prototype;g.k.zg=function(){return this.j};
g.k.Dx=function(){return null};
g.k.JM=function(){var a=this.Dx();return a?(a=g.nu(a.j),Number(a.expire)):NaN};
g.k.vK=function(){};
g.k.getHeight=function(){return this.j.video.height};uza.prototype.Se=function(){xza(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.Ic){if(e.Ic.getIsDefault()){c=e.Ic.getId();break a}c||(c=e.Ic.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Ic||e.Ic.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 h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Ic){p=f.Ic;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=EG(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(wza(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=n0a,d=(h=d.Ic)?'#EXT-X-MEDIA:URI="'+EG(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?n0a:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(wza(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.gx&&(h+=",VIDEO-RANGE="+e.gx),a.push(h),a.push(EG(this,e.url,"")));return a.join("\n")};
var n0a="text";g.u(FG,CG);FG.prototype.JM=function(){return this.expiration};
FG.prototype.Dx=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Se();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new pE(a)}return this.u};g.u(GG,CG);GG.prototype.Dx=function(){return new pE(this.u.pe())};
GG.prototype.vK=function(){this.u=QB(this.u)};g.u(HG,CG);HG.prototype.Dx=function(){return new pE(this.u)};g.k=g.IG.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.pe=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.JG(this)+" - "+this.vssId};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Jza={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Kza={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Lza=/^(\d*)_((\d*)_?(\d*))$/;var Nza={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Oza={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var b4={},RAa=(b4.ALWAYS=1,b4.BY_REQUEST=3,b4.UNKNOWN=void 0,b4),c4={},bAa=(c4.COLOR_PRIMARIES_BT709="bt709",c4.COLOR_PRIMARIES_BT2020="bt2020",c4.COLOR_PRIMARIES_UNKNOWN=null,c4.COLOR_PRIMARIES_UNSPECIFIED=null,c4),d4={},Qza=(d4.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",d4.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",d4.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",d4.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",d4.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,d4.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,d4),e4={},QG=(e4.FAIRPLAY="fairplay",e4.PLAYREADY="playready",e4.WIDEVINE="widevine",e4.CLEARKEY=null,e4.FLASHACCESS=null,e4.UNKNOWN=null,e4.WIDEVINE_CLASSIC=null,e4),f4={},WAa=(f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",f4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",f4);RG.prototype.toString=function(){return this.type+this.id};g.TG.prototype.If=function(a){a=a||"hqdefault.jpg";var b=this.Zf[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.zE)return iG(this.Oa,this.zE,a)};
g.TG.prototype.Hm=function(){return this.Oa.getVideoUrl(this.videoId,this.playlistId)};g.UG.prototype.If=function(a){a||(a="hqdefault.jpg");var b=this.Zf[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:iG(this.Oa,this.videoId,a)};
g.UG.prototype.Hm=function(){return this.watchUrl||this.Oa.getVideoUrl(this.videoId)};WG.prototype.getState=function(){return this.store.getState()};
WG.prototype.dispatch=function(a){return this.store.dispatch(a)};
WG.prototype.subscribe=function(a){return this.store.subscribe(a)};
WG.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
WG.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var mAa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,flowStateEntity:252,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,mainDownloadsListEntity:164,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,
markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,
offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,refresh:148,settingEntity:297,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},lAa={},o0a=g.r(Object.entries(mAa)),p0a=o0a.next();!p0a.done;p0a=o0a.next()){var q0a=g.r(p0a.value),r0a=q0a.next().value,s0a=q0a.next().value,t0a=r0a,u0a=s0a;u0a&&(lAa[u0a]=t0a)};var g4;g4={};g.v0a=(g4.INVALID_ENCODER_VERSION="Invalid encoder version",g4.KEY_CREATION_FAILED="Failed to create encoder key",g4.UNKNOWN_DECODE_ERROR="Failed to decode PES data",g4.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",g4.WRONG_DATA_TYPE="Encoder cannot process the data type",g4);var fAa;
fAa=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{Rka(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var v=f[q],w=l[v],y=(0,c[v])(w,m);if("undefined"===typeof y)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+v+'" 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[v]=
y;n=n||y!==w}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return oAa(a,b)}});
g.TH=new WG;var pAa=["APP_STATE","PI"];var h4={},tAa=g.Qw("yt-player-local-media",{iq:(h4.index={Jn:2},h4.media={Jn:2},h4.captions={Jn:5},h4),Mw:!1,upgrade:function(a,b){b(2)&&(g.iw(a,"index"),g.iw(a,"media"));b(5)&&g.iw(a,"captions");b(6)&&(jw(a,"metadata"),jw(a,"playerdata"))},
version:5});pH.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
pH.prototype.get=function(a){return this.j.get(a)};
pH.prototype.remove=function(a){this.j.remove(a)};var qH=void 0;qAa("LMS",function(){return g.z(function(a){return a.return(g.rH())})});var vH,yAa;vH=0;yAa=!1;g.BAa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;qAa("LMDB",function(){var a,b;return g.z(function(c){if(1==c.j)return g.x(c,g.Cw(),2);if(3!=c.j){a=c.u;if(!a)throw g.aw("edd");return g.x(c,g.uH(a),3)}b=c.u;return c.return(g.kw(b,["index","media","captions"],{mode:"readonly",Ub:!0},function(d){var e={};d=[g.ow(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
xna(d.objectStore("media")),xna(d.objectStore("captions"))];return g.cw.all(d).then(function(f){var h=g.r(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:CAa(f||[]),captions:h}})}))})});g.u(yH,g.cz);yH.prototype.ea=function(){this.j&&(this.j=this.j.onload=null);g.cz.prototype.ea.call(this)};g.k=g.CH.prototype;g.k.getHeight=function(){return this.height};
g.k.UO=aa(2);g.k.jB=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.pe=function(a){var b=this.C;b=b.replace("$N",this.B);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.wi(b,{sigh:this.signature}));return qA(b)};
g.k.kB=function(a){var b=this.jB()-1;return g.Cg(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.Cu=function(){return this.frameCount-1};
g.k.DF=function(){return this.frameCount?0:-1};
g.k.KM=function(){};g.u(DH,yH);DH.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.I(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
DH.prototype.I=function(a,b,c,d){return new g.CH(a,b,c,d)};g.u(EH,g.CH);g.k=EH.prototype;g.k.jB=function(){return this.u.getNumberOfSegments()};
g.k.kB=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.k.Cu=function(){return this.u.getLastSegmentNumber()};
g.k.DF=function(){return this.u.getFirstSegmentNumber()};
g.k.KM=function(a){this.u=a};g.u(FH,DH);FH.prototype.u=function(a,b){return DH.prototype.u.call(this,"$N|"+a,b)};
FH.prototype.I=function(a,b,c){return new EH(a,b,c,this.isLive)};g.u(g.HH,g.cz);g.k=g.HH.prototype;g.k.R=function(){return this.Oa};
g.k.K=function(a){return this.Oa.K(a)};
g.k.cg=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Ed)||!a.Eb)};
g.k.TQ=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.TQ,this),this.bO(-1))};
g.k.bO=function(a){if(!this.isLivePlayback||!this.N||"fairplay"!=this.N.flavor){var b=Qxa(this.j,this.hF);if(0<b.length){if(ZH(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.X("cuepointupdated",b,a);this.hF+=b.length;c=ZH(this,"html5_log_all_cuepoints")||2<=this.Oa.V;if(OH(this)&&c)for(b=g.r(b),d=b.next();!d.done;d=b.next())c=d.value,this.ma("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,
id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.wH.start=this.Jx,this.wH.end=c+3)}}};
g.k.hj=function(){var a={};this.u&&(a.fmt=this.u.itag,this.D&&this.D.itag!=this.u.itag&&(a.afmt=this.D.itag));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Ei&&(a.infringe=1);this.jh&&(a.splay=1);var b=eI(this);b&&(a.live=b);this.Dt&&(a.sautoplay=1);this.cn&&(a.autoplay=1);this.Fu&&(a.sdetail=this.Fu);this.Y&&(a.partnerid=this.Y);this.osid&&(a.osid=this.osid);return a};
g.k.Ii=function(){if(this.cotn)return null;var a=g.nG(this.Oa)||this.K("web_l3_storyboard");if(!this.Di)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Di=new DH(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=Bca(this.j.j).index)&&(this.Di=new FH(b.spec,this.j.isLive,c,a))}else this.Gu?this.Di=new DH(this.Gu,this.lengthSeconds,void 0,!1,a):this.Qq&&this.j&&
(b=Bca(this.j.j).index)&&(this.Di=new FH(this.Qq,this.j.isLive,b,a));return this.Di};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Gu||this.Qq};
g.k.Pd=function(){return this.j&&!isNaN(this.j.Pd())?this.j.Pd():OH(this)?0:this.lengthSeconds};
g.k.getMinSeekableTime=function(){return this.j&&!isNaN(this.j.getMinSeekableTime())?this.j.getMinSeekableTime():0};
g.k.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.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Ak)};
g.k.isLoaded=function(){return IH(this)&&!this.Pe&&!this.Rl};
g.k.If=function(a){if(30==this.Y)return(a=this.Zf["default.jpg"])?a:this.videoId?g.wi("//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.Zf[a];return b||this.Oa.N||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:iG(this.Oa,this.videoId,a)};
g.k.nf=function(){return this.isLivePlayback||this.xf||this.Li||!(!this.liveUtcStartSeconds||!this.Vj)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.xf&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.B?0<this.B.getAvailableAudioTracks().length?this.B.getAvailableAudioTracks():this.Oq||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!UD(this.D))return g.Ub(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Il;
if(this.Oq){if(!this.Vl)for(var b=g.r(this.Oq),c=b.next();!c.done;c=b.next())if(c=c.value,c.Ic.getIsDefault()){this.Vl=c;break}return this.Vl||this.Il}return this.Il};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.Hm=function(){return this.watchUrl?this.watchUrl:this.Oa.getVideoUrl(this.videoId)};
g.k.yI=function(){return!!this.j&&(Ixa(this.j)||Jxa(this.j)||Kxa(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.JK=function(){return this.Ik||this.Ne};
g.k.sA=function(){return this.Ng||this.Ne};
g.k.sG=function(){return ZH(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.ma=function(a,b,c){this.X("ctmp",a,b,c)};
g.k.hK=function(a,b,c){this.X("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.ea=function(){g.cz.prototype.ea.call(this);delete this.Nk;this.Gs=null;delete this.i4;delete this.accountLinkingConfig;delete this.j;this.B=this.playerResponse=this.watchNextResponse=null;this.Bk=this.adaptiveFormats="";delete this.botguardData;this.fu={};this.Dd=this.suggestions=this.Pk=null};BI.prototype.iz=function(){return!1};
BI.prototype.va=function(){return function(){return null}};var JI=null;g.u(II,g.cz);II.prototype.Iy=function(a){return this.j.hasOwnProperty(a)?this.j[a].Iy():{}};
g.Fa("ytads.bulleit.getVideoMetadata",function(a){return KI().Iy(a)});
g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=KI();c=UBa(c);null!==c&&d.X(c,{queryId:a,viewabilityString:b})});g.u(QI,BI);g.k=QI.prototype;g.k.Tv=function(){return!0};
g.k.Zq=function(){return!1};
g.k.isSkippable=function(){return null!=this.ra};
g.k.Nf=function(){return this.J};
g.k.getVideoUrl=function(){return null};
g.k.iz=function(){return!0};g.u(XI,BI);XI.prototype.Tv=function(){return!0};
XI.prototype.Zq=function(){return!1};
XI.prototype.iz=function(){return!0};
XI.prototype.va=function(){return function(){return g.eh("video-ads")}};$Ba.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var PUa={d6:"FINAL",DT:"AD_BREAK_LENGTH",t9:"AD_CPN",A9:"AH",E9:"AD_MT",H9:"ASR",L9:"AW",Nfa:"NM",Ofa:"NX",Pfa:"NY",NT:"CONN",Wga:"CPN",Mma:"DV_VIEWABILITY",Lna:"ERRORCODE",Una:"ERROR_MSG",Xna:"EI",aU:"GOOGLE_VIEWABILITY",Gsa:"IAS_VIEWABILITY",Fva:"LACT",ZV:"LIVE_TARGETING_CONTEXT",Hza:"I_X",Iza:"I_Y",HCa:"MT",XCa:"MIDROLL_POS",YCa:"MIDROLL_POS_MS",dDa:"MOAT_INIT",eDa:"MOAT_VIEWABILITY",mW:"P_H",PKa:"PV_H",QKa:"PV_W",nW:"P_W",mLa:"TRIGGER_TYPE",cOa:"SDKV",qW:"SLOT_POS",YUa:"SURVEY_LOCAL_TIME_EPOCH_S",
XUa:"SURVEY_ELAPSED_MS",xW:"VIS",h0a:"VIEWABILITY",n0a:"VED",yW:"VOL",x0a:"WT",zW:"YT_ERROR_CODE"};var hCa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];cJ.prototype.send=function(a,b,c){try{iCa(this,a,b,c)}catch(d){}};g.u(dJ,cJ);dJ.prototype.j=function(){return this.Kr?g.wG(g.uI(this.Kr)):Iu("")};
dJ.prototype.u=function(){return this.Kr?this.Kr.R().pageId:""};var vfa=eaa(["attributionsrc"]);
eJ.prototype.send=function(a,b,c){try{var d=new g.Cj(a);if("1"===d.u.get("ase")&&"video_10s_engaged_view"===d.u.get("label")){var e=document.createElement("img");xfa(e,a+"&asr=1")}var f=a.match(oi);if("https"===f[1])var h=a;else f[1]="https",h=li("https",f[2],f[3],f[4],f[5],f[6],f[7]);a=h;var l=fka(a);d=[];tu(a)&&(d.push({headerType:"USER_AUTH"}),d.push({headerType:"PLUS_PAGE_ID"}),d.push({headerType:"VISITOR_ID"}),d.push({headerType:"EOM_VISITOR_ID"}));this.wr.send({baseUrl:a,scrubReferrer:l,headers:d},
b,c)}catch(m){}};g.u(kCa,g.K);g.u(vJ,g.cz);g.k=vJ.prototype;g.k.Iy=function(){return{}};
g.k.hS=function(){};
g.k.gg=function(a){this.Fr();this.X(a)};
g.k.Fr=function(){qCa(this,this.ra,3);this.ra=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.Wy=function(){var a=this.j;fJ(a)||!oJ(a,"impression")&&!oJ(a,"start")||oJ(a,"abandon")||oJ(a,"complete")||oJ(a,"skip")||rJ(a,"pause");this.C||(a=this.j,fJ(a)||!oJ(a,"unmuted_impression")&&!oJ(a,"unmuted_start")||oJ(a,"unmuted_abandon")||oJ(a,"unmuted_complete")||rJ(a,"unmuted_pause"))};
g.k.Xy=function(){this.qa||this.N||this.fl()};
g.k.Zi=function(){jJ(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();fJ(a)||(nCa(a,0,!0),oCa(a,0,0,!0),iJ(a,"unmuted_complete"))}};
g.k.Im=function(){var a=this.j;!oJ(a,"impression")||oJ(a,"skip")||oJ(a,"complete")||nJ(a,"abandon");this.C||(a=this.j,oJ(a,"unmuted_impression")&&!oJ(a,"unmuted_complete")&&nJ(a,"unmuted_abandon"))};
g.k.bI=function(){var a=this.j;gJ(a)?iJ(a,"skip"):!oJ(a,"impression")||oJ(a,"abandon")||oJ(a,"complete")||iJ(a,"skip")};
g.k.fl=function(){if(!this.N){var a=this.nC();this.j.macros.AD_CPN=a;a=this.j;if(gJ(a)){var b=a.j.getCurrentTime(2,!1);mJ(a,"impression",b,0)}else iJ(a,"impression");iJ(a,"start");fJ(a)||a.j.isFullscreen()&&nJ(a,"fullscreen");this.N=!0;this.C=this.G.isMuted()||0==this.G.getVolume();this.C||(a=this.j,iJ(a,"unmuted_impression"),iJ(a,"unmuted_start"),fJ(a)||a.j.isFullscreen()&&nJ(a,"unmuted_fullscreen"))}};
g.k.Jm=function(a){a=a||"";var b="",c="",d="";CI(this.G)&&(b=this.G.zb(2).state,this.G.Qd()&&(c=this.G.Qd().aj(),null!=this.G.Qd().ag()&&(d=this.G.Qd().ag())));var e=this.j;e.macros=bJ(e.macros,gCa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));iJ(e,"error");this.C||(e=this.j,e.macros=bJ(e.macros,gCa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),iJ(e,"unmuted_error"))};
g.k.Ag=function(){};
g.k.MR=function(){this.X("adactiveviewmeasurable")};
g.k.NR=function(){this.X("adfullyviewableaudiblehalfdurationimpression")};
g.k.OR=function(){this.X("adoverlaymeasurableimpression")};
g.k.PR=function(){this.X("adoverlayunviewableimpression")};
g.k.QR=function(){this.X("adoverlayviewableendofsessionimpression")};
g.k.RR=function(){this.X("adoverlayviewableimmediateimpression")};
g.k.SR=function(){this.X("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.Fr(),this.u.unsubscribe("adactiveviewmeasurable",this.MR,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.NR,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.OR,this),this.u.unsubscribe("adoverlayunviewableimpression",this.PR,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.QR,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.RR,this),this.u.unsubscribe("adviewableimpression",
this.SR,this),delete this.u.j[this.ad.I],g.cz.prototype.dispose.call(this))};
g.k.nC=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.zO=function(){return""};g.u(wJ,BI);wJ.prototype.Tv=function(){return!0};
wJ.prototype.Zq=function(){return!1};g.u(xJ,GI);g.u(yJ,vJ);g.k=yJ.prototype;g.k.lB=function(){0<this.B&&this.fl()};
g.k.fl=function(){var a=this;this.qc=new g.Zn(function(){a.Zi();for(var b=g.r(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.gg("adended")},this.B,this);
g.M(this,this.qc);this.qc.start();rCa(this,[new xJ(this.D.j,this.macros)]);vJ.prototype.fl.call(this)};
g.k.Im=function(){vJ.prototype.Im.call(this);this.gg("adabandoned")};
g.k.Zi=function(){vJ.prototype.Zi.call(this)};
g.k.gg=function(a){this.qc&&this.qc.stop();vJ.prototype.gg.call(this,a)};g.u(zJ,BI);zJ.prototype.Tv=function(){return!0};
zJ.prototype.Zq=function(){return!1};g.u(AJ,BI);AJ.prototype.Tv=function(){return!0};
AJ.prototype.Zq=function(){return!1};tCa.prototype.create=function(a,b){return a instanceof QI?this.C.create(a,b):a instanceof wJ?this.j.create(a,b):a instanceof AJ?this.B.create(a,b):a instanceof zJ?this.u.create(a,b):null};g.u(BJ,vJ);g.k=BJ.prototype;g.k.Im=function(){vJ.prototype.Im.call(this);this.gg("adabandoned")};
g.k.Wy=function(){vJ.prototype.Wy.call(this);this.X("adpause",2)};
g.k.Xy=function(){vJ.prototype.Xy.call(this);this.X("adplay",1)};
g.k.fl=function(){vJ.prototype.fl.call(this);this.B.stop();this.D.P(this.G,g.uA("bltplayback"),this.hV);var a=new g.sA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.le([a],2);this.X("adplay",1)};
g.k.Zi=function(){vJ.prototype.Zi.call(this);this.gg("adended")};
g.k.Jm=function(a){vJ.prototype.Jm.call(this,a);this.gg("aderror")};
g.k.lB=function(){EI(this.G,!1);var a=this.I.u||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.B.start();this.G.playVideo(2);this.G.Ka("onAdIntroStateChange",1)};
g.k.gg=function(a){this.B.stop();EI(this.G,!0);"adabandoned"!=a&&this.G.Ka("onAdComplete");this.G.Ka("onAdEnd");this.X(a);this.G.Ka("onAdIntroStateChange",0)};
g.k.hV=function(a){"bltcompletion"==a.getId()&&(this.G.Af("bltplayback",2),jJ(this.j,this.getDuration()))};var PSa=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.u(EJ,GI);g.u(FJ,vJ);g.k=FJ.prototype;g.k.lB=function(){if(this.J){var a=this.B.j;if(!DJ(a)){g.rz(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.r(this.J.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;DCa(d.j(),c);ECa(d.j(),c);d=d.j();d=g.r(d.Md);for(var e=d.next();!e.done;e=d.next())e.value.uj(c)}}0>=this.V&&(g.qz(Error("durationMs was specified incorrectly with a value of: "+this.V)),this.Zi());this.fl();this.G.addEventListener("progresssync",this.Y)};
g.k.Im=function(){vJ.prototype.Im.call(this);this.gg("adabandonedreset",!0)};
g.k.fl=function(){var a=this.G.R();mB("apbs",void 0,"video_to_ad");g.$A("ad_at","0_0","video_to_ad");vJ.prototype.fl.call(this);this.D=a.K("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.I=this.D+this.V/1E3;g.cG(a)?this.G.Ka("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):rCa(this,[new EJ(this.B.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Bz(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.Mv("adNotify",{clientScreenNonce:b,
adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.W=!0;b=this.B.j;if(!DJ(b)){g.rz(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;FCa(d.j(),e);SZ(d.j(),e,f)}}g.W(this.G.zb(1),512)&&(g.rz(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||
"",b=g.Bz(),c=this.B.j.videoAdBreakOffsetMsInt64,b&&g.Mv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Zi())};
g.k.Zi=function(){vJ.prototype.Zi.call(this);this.gg("adended",!0)};
g.k.Jm=function(a){g.rz(new g.Rv("Player error during adNotify.",{errorCode:a}));vJ.prototype.Jm.call(this,a);this.gg("aderror",!0)};
g.k.gg=function(a,b){(void 0===b?0:b)||g.rz(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.Y);this.Fr();xCa(this,a);"adended"===a||"aderror"===a?this.X("adnotifyexitednormalorerror"):this.X(a)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.Y);xCa(this);vJ.prototype.dispose.call(this)};
g.k.Fr=function(){g.cG(this.G.R())?this.G.Ka("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):vJ.prototype.Fr.call(this)};IJ.prototype.sendAdsPing=function(a){this.B.send(a,yCa(this),{})};
IJ.prototype.Ff=function(a){var b=this;if(a){var c=yCa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.u(JJ,vJ);g.k=JJ.prototype;g.k.Iy=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.B.u,isPlaying:SBa(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.lB=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Nf();a&&b&&this.G.R().Y.add(b,{Xx:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Bga(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.fg("//tpc.googlesyndication.com/sodar/%{path}");g.rz(new g.Rv("Load Sodar Error.",d instanceof dg,d.constructor===dg,{Message:e.message,"Escaped injector basename":g.Vg(c.siub),"BG vm basename":c.bgub}));if(d.constructor===dg)throw e;}}catch(e){g.qz(e)}EI(this.G,!1);a=
YBa(this.B);b=this.G.R();a.iv_load_policy=b.isMobile||g.cG(b)||g.nG(b)?3:1;b=this.G.getVideoData(1);b.Ah&&(a.ctrl=b.Ah);b.Wh&&(a.ytr=b.Wh);b.Kn&&(a.ytrcc=b.Kn);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Ej&&(a.vss_credentials_token_type=b.Ej),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.X("adunstarted",-1);this.V?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))};
g.k.Wy=function(){vJ.prototype.Wy.call(this);this.X("adpause",2)};
g.k.Xy=function(){vJ.prototype.Xy.call(this);this.X("adplay",1)};
g.k.fl=function(){vJ.prototype.fl.call(this);this.I.stop();this.W.P(this.G,g.uA("bltplayback"),this.iV);var a=new g.sA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.le([a],2);a=NJ(this);this.D.va=a;if(this.G.isMuted()){a=this.j;var b=this.G.isMuted();gJ(a)||iJ(a,b?"mute":"unmute")}this.X("adplay",1);if(null!==this.J){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=BCa(this);for(var c=this.B,d=ACa(this),e=g.r(this.J.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Nf(),q=l.getVideoUrl();p&&n.push(new RY(p));q&&n.push(new SY(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new UY(q)),(q=q.elementId)&&n.push(new cZ(q))):eA("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new VY(p));l.j.adNextParams&&n.push(new FY(l.j.adNextParams||""));(p=l.qa)&&n.push(new GY(p));(p=f.Qa.get().Gf(2))?(n.push(new KY({channelId:p.Ek,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new LY(p.isListed))):eA("Expected meaningful PlaybackData on ad started.");n.push(new NY(l.B));n.push(new jZ(l.u));n.push(new TY(a));n.push(new fZ({current:this}));p=l.Ha;null!=p.kind&&n.push(new MY(p));(p=l.Ea)&&n.push(new wZ(p));void 0!==m&&n.push(new xZ(m));f.j?eA(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):CCa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.G.Ka("onAdStart",
NJ(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.k.iV=function(a){"bltcompletion"==a.getId()&&(this.G.Af("bltplayback",2),jJ(this.j,this.getDuration()),MJ(this,"adended"))};
g.k.Zi=function(){vJ.prototype.Zi.call(this);this.gg("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.k.Im=function(){vJ.prototype.Im.call(this);this.gg("adabandoned")};
g.k.eE=function(){var a=this.j;fJ(a)||nJ(a,"clickthrough");this.C||(a=this.j,fJ(a)||nJ(a,"unmuted_clickthrough"))};
g.k.Rz=function(){this.bI()};
g.k.bI=function(){vJ.prototype.bI.call(this);this.gg("adended")};
g.k.Jm=function(a){vJ.prototype.Jm.call(this,a);this.gg("aderror")};
g.k.gg=function(a){this.I.stop();EI(this.G,!0);"adabandoned"!=a&&this.G.Ka("onAdComplete");MJ(this,a);this.G.Ka("onAdEnd",NJ(this));this.X(a)};
g.k.Fr=function(){var a=this.G.R();g.cG(a)&&(g.nG(a)||a.K("enable_topsoil_wta_for_halftime")||a.K("enable_topsoil_wta_for_halftime_live_infra")||g.cG(a))?this.G.Ka("onAdInfoChange",null):vJ.prototype.Fr.call(this)};
g.k.hS=function(){this.CZ&&this.G.playVideo()};
g.k.CZ=function(){return 2==this.G.getPlayerState(2)};
g.k.zO=function(a,b){if(!Number.isFinite(a))return g.qz(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.qz(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=YBa(this.B);d=this.G.Uu(d,"",2,c,a,b);a+c>b&&this.G.Xw(d,b-a);return d};
g.k.dispose=function(){SBa(this.G)&&!this.V&&this.G.stopVideo(2);MJ(this,"adabandoned");vJ.prototype.dispose.call(this)};OJ.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={iy:null,ZP:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.ZP))if(b.ZP=c,b.iy){if(c<b.iy.end){a:{c=b.iy;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start||c.end<=a?null:a}null!==a&&(b.iy.end=a,this.u.SQ(a))}}else if(a=HCa(a,
this.B))c=a.uZ,b.iy=a.FX,this.u.GJ(c)};
OJ.prototype.updateTime=function(){};RJ.prototype.eh=function(a){var b=this.j;g.Dh(function(){return b.eh(a,1)})};g.k=TJ.prototype;g.k.Yu=function(a,b,c,d,e){var f=this;PCa(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.Ue=!1;f.u=!1;f.C=!b&&0===c})};
g.k.PK=function(){var a=this.G.getVideoData(1);if(!this.G.K("html5_no_video_to_ad_on_preroll")||null!=a&&a.La)this.u=!1,a={},!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId}),ZA("video_to_ad",a)};
g.k.QK=function(){this.u=!1;var a={};!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ZA("ad_to_ad",a)};
g.k.Ow=function(){this.u=!1;var a={};!this.G.K("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ZA("ad_to_video",a);this.G.K("html5_csi_delay_pbresume")&&(this.G.ej().u=this.G.getCurrentTime(1));this.G.K("send_csi_info_for_ad_to_video_killswitch")||OCa(this)};
g.k.yK=function(){if(this.Ue&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(this.G.K("html5_no_video_to_ad_on_preroll")?mB("apbs",void 0,this.actionType):XA("apbs",void 0,this.actionType),g.T("finalize_all_timelines")))){var a=this.actionType;WA(a);PA(a);VA(a)}};
g.k.reset=function(){return new TJ(this.G)};var i4={},j4=(i4.BUFFERING="buffering-mode",i4.CUED="cued-mode",i4.ENDED="ended-mode",i4.PAUSED="paused-mode",i4.PLAYING="playing-mode",i4.SEEKING="seeking-mode",i4.UNSTARTED="unstarted-mode",i4);var w0a,k4,SCa;
w0a={k$:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Qca:"AUTHENTICATION_MALFORMED",Rca:"AUTHENTICATION_MISSING",gda:"BAD_REQUEST",Tda:"CAST_SESSION_DEVICE_MISMATCHED",Uda:"CAST_SESSION_VIDEO_MISMATCHED",Vda:"CAST_TOKEN_EXPIRED",Wda:"CAST_TOKEN_FAILED",Xda:"CAST_TOKEN_MALFORMED",sea:"CGI_PARAMS_MALFORMED",tea:"CGI_PARAMS_MISSING",kma:"DEVICE_FALLBACK",Mna:"GENERIC_WITH_LINK_AND_CPN",Nna:"ERROR_HDCP",Sna:"LICENSE",Vna:"VIDEO_UNAVAILABLE",Dqa:"FORMAT_UNAVAILABLE",Uqa:"GEO_FAILURE",
nsa:"HTML5_AUDIO_RENDERER_ERROR",qsa:"GENERIC_WITHOUT_LINK",rsa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ssa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",tsa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Fta:"INVALID_DRM_MESSAGE",zMa:"PURCHASE_NOT_FOUND",AMa:"PURCHASE_REFUNDED",dNa:"RENTAL_EXPIRED",rNa:"RETRYABLE_ERROR",sOa:"SERVER_ERROR",DSa:"STOPPED_BY_ANOTHER_PLAYBACK",yTa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",zTa:"STREAMING_NOT_ALLOWED",ATa:"STREAM_LICENSE_NOT_FOUND",wVa:"TOO_MANY_REQUESTS",
xVa:"TOO_MANY_REQUESTS_WITH_LINK",zVa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",AVa:"TOO_MANY_STREAMS_PER_USER",a_a:"UNSUPPORTED_DEVICE",C_a:"VIDEO_FORBIDDEN",H_a:"VIDEO_NOT_FOUND"};k4={};
g.HO=(k4.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.",k4.DEVICE_FALLBACK="Sorry, this video is not available on this device.",k4.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",k4.LICENSE="Sorry, there was an error licensing this video.",k4.VIDEO_UNAVAILABLE=
"Video unavailable",k4.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",k4.GEO_FAILURE="This video isn't available in your country.",k4.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",k4.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",k4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",k4.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",
k4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",k4.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",k4.PURCHASE_NOT_FOUND="This video requires payment.",k4.PURCHASE_REFUNDED="This video's purchase has been refunded.",k4.RENTAL_EXPIRED="This video's rental has expired.",k4.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",k4.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
k4.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",k4.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",k4.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",k4.SERVER_ERROR="There was an internal server error. Please try again later.",k4.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",k4.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
k4.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",k4.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",k4.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",k4.TOO_MANY_REQUESTS="Please log in to watch this video.",k4.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",k4.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
k4.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",k4.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",k4.VIDEO_FORBIDDEN="Access to this video is forbidden.",k4.VIDEO_NOT_FOUND="This video can not be found.",k4);
SCa={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"};UJ.prototype.then=function(a,b){return this.promise.then(a,b)};
UJ.prototype.resolve=function(a){this.u(a)};
UJ.prototype.reject=function(a){this.j(a)};g.u(VJ,g.K);g.k=VJ.prototype;g.k.mB=function(){return this.u};
g.k.Tu=function(a){var b="";a&&(WCa(this,a),b=a.j);if(!this.Hf()||b)b&&this.Hf()!==b&&(this.qB(b),delete this.B,this.C&&(this.C.reject(),delete this.C)),x0a||a&&a.u||this.load(),this.N||(this.addEventListener("volumechange",this.dO),this.N=!0)};
g.k.ls=function(){if(this.B){var a=this.B;this.B=void 0;return a}a=this.tf();a=window.MediaSource?new qE(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new qE(new window.WebKitMediaSource,void 0,!1):new qE(void 0,a,!1);this.Tu(a.yz);return a};
g.k.playVideo=function(){var a=this;this.Tg()&&this.seekTo(0);!this.Hf()&&this.u&&(g.gu(Error("playVideo without src")),this.qB(this.u.j),this.u.u||this.load());var b=this.play();!b&&y0a&&RO&&7<=(yI||0)&&g.Foa(this,"playing",function(){g.xu(function(){VCa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.aj()&&(z0a&&RO&&4>yI&&(a=Math.max(.1,a)),this.pB(a))};
g.k.stopVideo=function(){var a=this;if(!this.B)if(A0a){if(!this.C){var b=new UJ;b.then(void 0,function(){});
this.C=b;B0a&&this.pause();g.xu(function(){a.C===b&&(YJ(a),b.resolve())},200)}}else YJ(this)};
g.k.Iv=function(){var a=this.Sg();return 0<kE(a)&&this.getDuration()?jE(a,this.getCurrentTime()):0};
g.k.gs=function(){var a=this.getDuration();return Infinity===a?1:a?this.Iv()/a:0};
g.k.Ob=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:gE(this.qs(),",",3),vbu:gE(this.Sg()),vpa:""+ +this.Hn(),vsk:""+ +this.Cg(),ven:""+ +this.Tg(),vpr:""+this.getPlaybackRate(),vrs:""+this.aj(),vns:""+this.xC(),vec:""+this.ag(),vemsg:this.kf(),vvol:""+this.getVolume(),vdom:""+ +this.xI(),vsrc:""+ +!!this.Hf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Na(a,b,!1,this);this.oH(a)};
g.k.removeEventListener=function(a,b){this.D.uc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.C&&"pause"===a.type?!1:this.D.dispatchEvent(a)};
g.k.lH=function(){this.J=!1};
g.k.iH=function(){this.J=!0;this.Hw(!0)};
g.k.dO=function(){this.J&&!this.wC()&&this.Hw(!0)};
g.k.equals=function(a){return!!a&&a.tf()===this.tf()};
g.k.ea=function(){this.N&&this.removeEventListener("volumechange",this.dO);A0a&&YJ(this);g.K.prototype.ea.call(this)};
var x0a=!1,YCa=!0,y0a=!0,z0a=!0,A0a=!1,B0a=!1;g.k=g.$J.prototype;g.k.getData=function(){return this.stateData};
g.k.Oc=function(){return g.W(this,8)&&!g.W(this,512)&&!g.W(this,64)&&!g.W(this,2)};
g.k.isCued=function(){return g.W(this,64)&&!g.W(this,8)&&!g.W(this,4)};
g.k.isError=function(){return g.W(this,128)};
g.k.isSuspended=function(){return g.W(this,512)};
g.k.lz=function(){return g.W(this,64)&&g.W(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.u(jK,g.cz);g.k=jK.prototype;g.k.zs=function(){var a=this.u;return a.u instanceof QI||a.u instanceof XI||a.u instanceof RI};
g.k.wF=function(){return this.u.u.Zq()};
g.k.zM=function(){return this.u.j};
g.k.xF=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.k.AM=function(){return YI(this.u)};
g.k.fP=function(a){if(!xA(a)){this.V&&(this.qa=this.G.isAtLiveHead(),this.ra=Math.ceil(g.Wa()/1E3));var b=new RJ(this.kh);a=JCa(a);b.eh(a)}this.BM()};
g.k.OP=function(){return!0};
g.k.oz=function(){return this.J instanceof QI};
g.k.BM=function(){var a=this.kh;this.OP()&&(a.u&&mK(a,!1),a.u=this,this.zs()&&DEa(a));this.D.PK();this.BR()};
g.k.BR=function(){this.J?this.Ex(this.J):nK(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.lk(0);nK(this,b)};
g.k.FQ=function(){this.onAdEnd()};
g.k.D_=function(){iJ(this.j.j,"active_view_measurable")};
g.k.G_=function(){var a=this.j.j;fJ(a)||qJ(a)||iJ(a,"active_view_fully_viewable_audible_half_duration")};
g.k.J_=function(){};
g.k.K_=function(){};
g.k.L_=function(){};
g.k.M_=function(){};
g.k.P_=function(){var a=this.j.j;fJ(a)||qJ(a)||iJ(a,"active_view_viewable")};
g.k.E_=function(){var a=this.j.j;fJ(a)||qJ(a)||iJ(a,"audio_audible")};
g.k.F_=function(){var a=this.j.j;fJ(a)||qJ(a)||iJ(a,"audio_measurable")};
g.k.NO=function(){return this.oz()?[this.zC()]:[]};
g.k.bd=function(a){if(null!==this.j){this.Y||(a=new g.sJ(a.state,new g.$J),this.Y=!0);var b=a.state;if(g.uJ(a,2))this.j.Zi();else{var c=a;(this.G.R().experiments.fb("html5_bulleit_handle_gained_playing_state")?c.state.Oc()&&!c.jq.Oc():c.state.Oc())?(this.D.yK(),this.j.Xy()):b.isError()?this.j.Jm(b.getData().errorCode):g.uJ(a,4)&&(this.W||this.j.Wy())}if(null!==this.j){if(g.uJ(a,16)&&(b=this.j.j,!(fJ(b)||.5>b.j.getCurrentTime(2,!1)&&!b.j.R().K("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;if(c.iz()){var d=
b.B.G.R().K("html5_dai_enable_active_view_creating_completed_adblock");cka(c.I,d)}b.ad.D.seek=!0}0>tJ(a,4)&&!(0>tJ(a,2))&&(b=this.j,c=b.j,fJ(c)||rJ(c,"resume"),b.C||(b=b.j,fJ(b)||rJ(b,"unmuted_resume")));!this.G.R().experiments.fb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.uJ(a,512)&&!g.hK(a.state)&&this.D.Ow()}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?$Ca(this):!1};
g.k.resume=function(){this.j&&this.j.hS()};
g.k.Bp=function(){this.j&&this.j.gg("adended")};
g.k.ym=function(){this.Bp()};
g.k.lk=function(a){this.kh.lk(a)};
g.k.jV=function(a){this.kh.j.Ka("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.Ag(a)};
g.k.LO=function(){return 0};
g.k.MO=function(){return 1};
g.k.nL=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a<lK(this)&&this.G.Gr(a,this.u.j.end)};
g.k.Ex=function(a){g.af(this.j);this.j=a=this.qr.create(a,aJ(eCa(this.u)),this.u.j.j);this.OI(a);a.qa?a.Jm("ui_unstable"):a.lB();aDa(this,!1)};
g.k.OI=function(a){a.subscribe("adabandoned",g.Va(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Va(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.D_,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.FQ,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.G_,this);a.subscribe("adoverlaymeasurableimpression",this.J_,this);a.subscribe("adoverlayunviewableimpression",this.K_,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.L_,this);a.subscribe("adoverlayviewableimmediateimpression",this.M_,this);a.subscribe("adpause",this.gI,this);a.subscribe("adplay",this.gI,this);a.subscribe("adunstarted",this.gI,this);a.subscribe("onAdUxUpdate",this.jV,this);a.subscribe("adviewableimpression",this.P_,this);a.subscribe("adaudioaudible",this.E_,this);a.subscribe("adaudiomeasurable",this.F_,this)};
g.k.gI=function(a){this.lk(a)};
g.k.zC=function(){return this.J};
g.k.isLiveStream=function(){return this.V};
g.k.reset=function(){return new jK(this.kh,this.G,this.D.reset(),this.u,this.Nn,this.uv,this.qr,this.daiEnabled)};
g.k.ea=function(){g.af(this.j);this.j=null;g.cz.prototype.ea.call(this)};fDa.prototype.create=function(a){return(a.u instanceof RI?this.B:""===a.D?this.j:this.u)(a)};oK.prototype.I=function(a){this.client=a};
oK.prototype.mO=function(a,b){b=void 0===b?{}:b;var c,d=null==(c=g.av(null==a?void 0:a.commandMetadata,YYa))?void 0:c.rootVe;if(d){c=g.av(null==a?void 0:a.commandMetadata,o_a);if(null==c?0:c.parentTrackingParams){var e=g.uz(c.parentTrackingParams);if(c.parentCsn)var f=c.parentCsn}else b.vX?e=b.vX:a.clickTrackingParams&&(e=g.uz(a.clickTrackingParams));a:{c=g.av(a,g.VG);a=g.av(a,d_a);if(c){if(a=gDa(c,"VIDEO")){a={token:a,videoId:c.videoId};break a}}else if(a&&(c=gDa(a,"PLAYLIST"))){a={token:c,playlistId:a.playlistId};
break a}a=void 0}b=Object.assign({},{cttAuthInfo:a,parentCsn:f},b);kDa(this,d,e,b)}else g.rz(new g.Rv("Error: Trying to create a new screen without a rootVeType",a))};
oK.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Bz(void 0===c?0:c))?(wua(this.client,c,g.uz(a),b),b=!0):b=!1:b=!1;return b};rK.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Rm.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)};
rK.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];oDa(this,b)};var C0a=window.location.hostname.split(".").slice(-2).join("."),l4;tK.getInstance=function(){l4=g.Ha("yt.clientLocationService.instance");l4||(l4=new tK,g.Fa("yt.clientLocationService.instance",l4));return l4};
g.k=tK.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(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)};
g.k.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.Q("INNERTUBE_CLIENT_NAME")?(this.localStorage=sK(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Lu("YT_CL",JSON.stringify({loctok:a}),15552E3,C0a,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=sK(this))&&this.localStorage.remove("yt-location-playability-token"):g.Nu("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.Q("INNERTUBE_CLIENT_NAME")&&(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})})};
g.k.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};vK.prototype.qC=function(a,b){a={};var c=ai([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.Q("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.T("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c),"INNERTUBE_HOST_OVERRIDE"in $t||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in $t&&(a["X-Goog-PageId"]=g.Q("DELEGATED_SESSION_ID")));return a};var xK;g.u(wK,vK);wK.prototype.qC=function(a,b){a=vK.prototype.qC.call(this,a,b);return Object.assign({},a,this.Bt)};var CDa=/[&\?]action_proxy=1/,BDa=/[&\?]token=([\w-]*)/,DDa=/[&\?]video_id=([\w-]*)/,EDa=/[&\?]index=([\d-]*)/,FDa=/[&\?]m_pos_ms=([\d-]*)/,IDa=/[&\?]vvt=([\w-]*)/,wDa="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(" "),GDa="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(" "),yDa={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"},zDa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},HDa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};zK.prototype.dw=function(a){this.player.ej().tick(a)};
zK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return BK(this,a,b);var d=1===this.j;d&&this.dw("a_bid_s");var e=rDa();if(null!==e)return d&&this.dw("a_bid_f"),BK(this,a,b,e);e=sDa();d&&Lh(e,function(){c.dw("a_bid_f")});
return e.then(function(f){return BK(c,a,b,f)})};
zK.prototype.reset=function(){this.u=this.j=1};g.u(CK,g.cz);g.k=CK.prototype;g.k.zM=function(){return this.j.j};
g.k.xF=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.k.AM=function(){return YI(this.j)};
g.k.zs=function(){return!1};
g.k.wF=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.fP=function(a){var b=this;eA("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.xF()||(c=JCa(a));this.j.B=1;Lh(this.C.fetch(this.j.D,{gy:this.j.C||void 0,Od:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=JDa(b,d);var f=b.B;f.j&&d.isEmpty&&NCa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.PP||(b.j.B=2,(new RJ(b.u)).eh(e),d.isEmpty||Iua(b.I,d.In))}},function(){(new RJ(b.u)).eh(c);
var d=b.B;d.j&&NCa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.xF()&&RK(b.u)})}};
g.k.BM=function(){};
g.k.nL=function(){};g.u(DK,BI);DK.prototype.Tv=function(){return!0};
DK.prototype.Zq=function(){return!1};var MDa=Object.freeze([wJ,zJ,XI,DK,QI]);g.u(EK,jK);g.k=EK.prototype;g.k.NO=function(){for(var a=this.B.j,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.k.OP=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Tv()})};
g.k.oz=function(){return this.I instanceof QI||this.I instanceof zJ};
g.k.BR=function(){this.daiEnabled?CI(this.G)&&$Ca(this):LDa(this)};
g.k.Ex=function(a){var b=KDa(a);this.I&&b&&this.N!==b&&(b?DEa(this.kh):FEa(this.kh),this.N=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
jK.prototype.Ex.call(this,a)};
g.k.OI=function(a){var b=this;jK.prototype.OI.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void nK(b)})};
g.k.ym=function(){this.C=this.B.j.length;this.j&&this.j.gg("adended");nK(this)};
g.k.Bp=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.lk(0),a?nK(this,b):LDa(this))};
g.k.FQ=function(){if(1==this.B.u)this.I instanceof AJ&&g.rz(Error("AdNotify error with FailureMode.TERMINATING")),nK(this);else this.onAdEnd()};
g.k.zC=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.k.zs=function(){return this.N};
g.k.wF=function(){return this.B.j.every(function(a){return a.Zq()})};
g.k.reset=function(){return new EK(this.kh,this.G,this.D.reset(),this.u,this.Nn,this.uv,this.qr,this.daiEnabled)};
g.k.LO=function(){return this.C};
g.k.MO=function(){return this.B.j.length};NDa.prototype.JO=function(){return this.j};g.u(ODa,RI);g.u(QDa,RI);RDa.prototype.create=function(a,b){function c(h){return new QI(h,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new QDa(f,c,this.j):null!=a?new ODa(a,c):null};SDa.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 h=b,l=new Oua(h.B,h.u,h.daiEnabled,h.C),m=h.jf;m&&(l.jf=new kA(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.j));h.j&&(l.j=h.j);l.visible=h.visible;h=l;h.jf=f;e.push(TDa(this,a[0],c,h));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(TDa(this,d.value,c,b)),c++;return e};g.u(FK,g.K);FK.prototype.addEventListener=function(a,b){this.j=b};
FK.prototype.removeEventListener=function(){this.j=null};
g.u(GK,g.K);GK.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
GK.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.u(WDa,g.K);var HK=null,IK=null,JK=null,KK=null;g.Fa("yt.www.ads.eventcache.getLastCompanionData",function(){return HK});
g.Fa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Fa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return IK});
g.Fa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return JK});
g.Fa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return KK});var iEa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.u(NK,g.K);NK.prototype.ea=function(){this.Ee.clear();g.K.prototype.ea.call(this)};
NK.prototype.Ff=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)};
NK.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&jEa(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?fEa(this,e):"confirmDialogEndpoint"===d?gEa(this,e):iEa.hasOwnProperty(d)||jEa(this,d,e,b,c)}};g.u(PK,TJ);g.k=PK.prototype;g.k.Yu=function(){};
g.k.PK=function(){};
g.k.QK=function(){};
g.k.Ow=function(){};
g.k.yK=function(){};
g.k.reset=function(){return new PK(this.G)};g.u(oEa,g.K);g.u(QK,g.cz);g.k=QK.prototype;g.k.iI=function(){return!xEa(this,BEa(this))};
g.k.nC=function(){return this.va};
g.k.ea=function(){this.Y=!0;g.bz(this.C);if(DI(this.j)){var a=rEa(this.j);a.removeEventListener("updateKevlarOrC3Companion",XDa);a.removeEventListener("updateEngagementPanelAction",YDa);a.removeEventListener("changeEngagementPanelVisibility",ZDa);window.removeEventListener("yt-navigate-start",$Da);KK=JK=IK=HK=null}a=g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())EEa(this,b.value);mK(this,!1);this.rr.clear();this.V=[];this.J.clear();g.af(this.W);this.W=new Map;g.af(this.I);this.I=new Map;
this.B.clear();g.cz.prototype.ea.call(this)};
g.k.tJ=function(a){if(a instanceof wA&&!a.B&&(!bva(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.W(this.j.zb(1),32))this.J.add(a);else{var b=this.B.get(a);b&&((this.j.R().experiments.fb("enable_eviction_protection_for_bulleit")?this.u?this.u.wF():1:1)?b.fP(a):a.deactivate())}};
g.k.u0=function(a){a instanceof wA&&(a.B&&(a.B=!1),this.J.delete(a))};
g.k.GJ=function(){};
g.k.SQ=function(a){var b=1E3*a;this.u&&this.u.nL(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.nL(b);g.sc(this.Ha.j,1E3*a)};
g.k.Zm=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.oz()&&a.G.Fc().playVideo());break;case "control_pause":this.u&&(a=this.u,a.oz()&&a.G.Fc().pauseVideo())}};
g.k.lV=function(a){this.u&&this.u.bd(a)};
g.k.Z_=function(a){0>tJ(a,16)&&(this.J.forEach(this.tJ,this),this.J.clear())};
g.k.K2=function(){if(this.u)this.u.onVideoDataChange()};
g.k.N2=function(){if(CI(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&sCa(b.j,a)}};
g.k.B_=function(){this.Ra=!0;if(this.u){var a=this.u;a.j&&a.j.Im()}};
g.k.N_=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.O2=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.G.isMuted();gJ(b)||iJ(b,c?"mute":"unmute");a.C||(b=a.G.isMuted(),iJ(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.D0=function(a){if(this.u){var b=this.u.j,c=b.j;fJ(c)||nJ(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,fJ(b)||nJ(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.eh=function(a,b){this.j.eh(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.rr.delete(b),this.B.delete(b)};
g.k.D5=function(){for(var a=[],b=g.r(this.rr),c=b.next();!c.done;c=b.next())c=c.value,xA(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||MX(b,"cuerangemarkersupdated",a)};
g.k.lk=function(a){this.j.lk(a);switch(a){case 1:this.OC=1;break;case 0:this.OC=0}};
g.k.MK=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.N:!1};
g.k.Bp=function(){this.u&&this.u.zs()&&this.u.Bp()};
g.k.ym=function(){this.u&&this.u.zs()&&this.u.ym()};
g.k.fC=function(){};
g.k.LB=function(){};
g.k.Wb=function(a){if(this.u){var b=this.u;b.j&&sCa(b.j,a)}};
g.k.executeCommand=function(a,b,c){this.ub.executeCommand(a,b,AEa(this,void 0===c?null:c))};
g.k.isDaiEnabled=function(){return!1};
g.k.JO=function(){return this.qa};
g.k.KO=function(){return this.Ea};g.u(SK,g.K);SK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)};
g.u(TK,SK);g.u(IEa,g.K);var KEa=1;g.u(g.VK,g.K);g.k=g.VK.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.F;var c=a.L,d=a.Ca;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.F);g.rG&&(a.T||(a.T={}),a.T.focusable="false")}else e=g.mh(a.F);if(c){if(c=WK(this,e,"class",c))XK(this,e,"class",c),this.Lc[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Lc[f.value]=e;XK(this,e,"class",d.join(" "))}d=a.Z;c=a.S;if(d)b=WK(this,e,"child",d),void 0!==b&&e.appendChild(g.nh(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=WK(this,e,"child",f),null!=f&&e.appendChild(g.nh(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Nb&&(h=UK(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.ph(e,f,d++))}if(a=a.T)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],XK(this,b,c,"string"===typeof f?
WK(this,b,c,f):f);return e};
g.k.ya=function(a){return this.Lc[a]};
g.k.xa=function(a,b){"number"===typeof b?g.ph(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.qh(this.element)};
g.k.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Ja(c,a[c])};
g.k.Ja=function(a,b){(a=this.Ne["{{"+a+"}}"])&&XK(this,a[0],a[1],b)};
g.k.ea=function(){this.Lc={};this.Ne={};this.detach();g.K.prototype.ea.call(this)};g.u(g.X,g.VK);g.k=g.X.prototype;g.k.Sd=function(a,b){this.Ja(b||"content",a)};
g.k.show=function(){this.tb||(g.yl(this.element,"display",""),this.tb=!0)};
g.k.hide=function(){this.tb&&(g.yl(this.element,"display","none"),this.tb=!1)};
g.k.lc=function(a){this.ra=a};
g.k.Na=function(a,b,c){return this.P(this.element,a,b,c)};
g.k.P=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.k.uc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;uh(a);a.focus()};
g.k.ea=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.VK.prototype.ea.call(this)};g.u(g.ZK,g.X);g.ZK.prototype.subscribe=function(a,b,c){return this.Ua.subscribe(a,b,c)};
g.ZK.prototype.unsubscribe=function(a,b,c){return this.Ua.unsubscribe(a,b,c)};
g.ZK.prototype.Kg=function(a){return this.Ua.Kg(a)};
g.ZK.prototype.X=function(a){return this.Ua.X.apply(this.Ua,[a].concat(g.t(g.za.apply(1,arguments))))};var D0a=new WeakSet;g.u($K,g.ZK);g.k=$K.prototype;g.k.bind=function(a){if(!this.Ya&&a.renderer){var b=this.api.R().K("enable_macro_substitution_on_html5")?{}:Object.assign({},HEa(this.api),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Ya=a;this.element.setAttribute("id",this.Ya);this.ub&&g.ho(this.element,this.ub);this.V=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Ai(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.ZK.prototype.hide.call(this);null!=this.J&&this.Ta(this.element,!1)};
g.k.show=function(){g.ZK.prototype.show.call(this);if(!this.Cb){this.Cb=!0;var a=this.V&&this.V.impressionCommand;a&&this.kE(a,null)}null!=this.J&&this.Ta(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!D0a.has(a)){var b=this.element;this.api.Nm(b)&&this.tb&&this.api.qb(b,this.j);D0a.add(a)}if(a=this.V&&this.V.clickCommand)a=this.LR(a),this.kE(a,this.OO())};
g.k.LR=function(a){return a};
g.k.OO=function(){return null};
g.k.oV=function(a){var b=this.Y;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=JEa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.N=Infinity,b.V=Infinity):(b.N=c.clientX,b.V=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.nV=function(a){var b=this.Y;a=a.changedTouches.item(0);if(Lb()&&!(0<=g.qb(Kaa(),8))||a&&Math.pow(a.clientX-b.N,2)+Math.pow(a.clientY-b.V,2)>Math.pow(5,2))b.C=!0};
g.k.mV=function(a){if(this.Y){var b=this.Y,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&JEa(b,c)&&(b.W=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.kE=function(a){this.api.R().K("enable_macro_substitution_on_html5")?(0<Object.keys(this.macros).length&&g.rz(new g.Rv("There are non-empty macros passed to the runCommand method.",{componentType:this.componentType})),this.layoutId?this.Wa.executeCommand(a,this.layoutId):g.qz(new g.Rv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))):AL(this.Wa,a,this.macros)};
g.k.Ai=function(a,b){this.api.Ai(a,this);this.api.xk(a,b)};
g.k.Ta=function(a,b){this.api.Nm(a)&&this.api.Ta(a,b,this.j)};
g.k.ea=function(){this.clear(null);this.uc(this.gb);for(var a=g.r(this.qa),b=a.next();!b.done;b=a.next())this.uc(b.value);g.ZK.prototype.ea.call(this)};g.u(oL,$K);
oL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.rz(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.ho(this.element,a);null!=b.text&&(a=g.zA(b.text),g.fb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.ZK({F:"span",L:"ytp-ad-button-text",Z:a}),g.M(this,this.C),this.C.xa(this.element)));this.api.R().K("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.fb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=nL(b.icon),null!=b&&(this.B=new g.ZK({F:"span",L:"ytp-ad-button-icon",S:[b]}),g.M(this,this.B)),this.D?g.ph(this.element,this.B.element,0):this.B.xa(this.element))}};
oL.prototype.clear=function(){this.hide()};
oL.prototype.onClick=function(a){$K.prototype.onClick.call(this,a);a=g.r(eFa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(b,this.layoutId):g.qz(Error("Missing layoutId for button.")):AL(this.Wa,b,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.u(pL,g.K);pL.prototype.ea=function(){this.u&&g.Bx(this.u);this.j.clear();qL=null;g.K.prototype.ea.call(this)};
pL.prototype.register=function(a,b){b&&this.j.set(a,b)};
var qL=null;g.u(sL,$K);
sL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.qz(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new oL(this.api,this.bb,this.layoutId,this.j,this.Wa),g.M(this,this.button),this.button.init(FI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.zA(a)),this.button.xa(this.element),this.I&&!g.go(this.button.element,"ytp-ad-clickable")&&g.ho(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.ZK({F:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.ZK({F:"div",L:"ytp-ad-hover-text-callout"}),b.xa(this.B.element),g.M(this,b)),g.M(this,this.B),this.B.xa(this.element),b=rL(a),g.ph(this.B.element,b,0)),this.show())};
sL.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();$K.prototype.hide.call(this)};
sL.prototype.show=function(){this.button&&this.button.show();$K.prototype.show.call(this)};g.u(uL,$K);
uL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&tL(a)||"";g.fb(c)?(this.api.R().K("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.rz(Error("Found AdImage without valid image URL")):(this.u?g.yl(this.element,"backgroundImage","url("+c+")"):fh(this.element,{src:c}),fh(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),
this.show())};
uL.prototype.clear=function(){this.hide()};g.u(vL,$K);g.k=vL.prototype;g.k.hide=function(){$K.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;$K.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.qz(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.qz(Error("ConfirmDialogRenderer.cancelLabel was not set.")):iFa(this,b):g.qz(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.bz(this.u);this.hide()};
g.k.qJ=function(){this.hide()};
g.k.EF=function(){var a=this.B.cancelEndpoint;a&&(this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(a,this.layoutId):g.qz(Error("Missing layoutId for confirm dialog.")):AL(this.Wa,a,this.macros));this.hide()};
g.k.rJ=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(a,this.layoutId):g.qz(Error("Missing layoutId for confirm dialog.")):AL(this.Wa,a,this.macros));this.hide()};g.u(wL,$K);g.k=wL.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.qz(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.qz(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.ho(this.C,a)}a={};b.defaultText?
(c=g.zA(b.defaultText),g.fb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Kl(this.va,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.W.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=nL(b.defaultIcon),this.Ja("untoggledIconTemplateSpec",c),b.toggledIcon?(this.N=!0,c=nL(b.toggledIcon),this.Ja("toggledIconTemplateSpec",c)):(g.Kl(this.I,!0),g.Kl(this.D,!1)),g.Kl(this.u,!1)):g.Kl(this.W,!1);g.Cf(a)||this.update(a);b.isToggled&&
(g.ho(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));xL(this);this.P(this.element,"change",this.LM);this.show()}};
g.k.onClick=function(a){0<this.qa.length&&(this.toggleButton(!this.isToggled()),this.LM());$K.prototype.onClick.call(this,a)};
g.k.LM=function(){g.N(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.r(jFa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(b,this.layoutId):g.qz(Error("Missing layoutId for toggle button.")):AL(this.Wa,b,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);xL(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.N(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;xL(this)};
g.k.isToggled=function(){return this.u.checked};g.u(yL,$y);yL.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 yA&&this.C(b)}};g.u(zL,$K);g.k=zL.prototype;g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.qz(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.rz(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.rz(Error("AdFeedbackRenderer.title was not set.")),nFa(this,b)):g.qz(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Jx(this.I);Jx(this.N);this.D.length=0;this.hide()};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();$K.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;$K.prototype.show.call(this);this.I.focus()};
g.k.NQ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.X("a");this.hide()};
g.k.J2=function(){this.hide()};
oFa.prototype.isChecked=function(){return this.B.checked};g.u(BL,vL);BL.prototype.qJ=function(a){vL.prototype.qJ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
BL.prototype.EF=function(a){vL.prototype.EF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
BL.prototype.rJ=function(a){vL.prototype.rJ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.X("b")};g.u(CL,$K);g.k=CL.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.qz(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.rz(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new oL(this.api,this.bb,this.layoutId,this.j,this.Wa,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.M(this,
this.u),this.u.init(FI("button"),a,this.macros),this.u.xa(this.element);b.title&&(a=g.zA(b.title),this.Ja("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=rL(a[c]);if(!g.fb(d.textContent)){var e=lh("LI");e.appendChild(d);this.Ea.appendChild(e)}}else g.Kl(this.Ea,!1);b.dialogMessage&&(a=rL(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.zA(b.confirmLabel),this.Ja("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.rz(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?pFa(this,a):c&&qFa(this,c),this.C=new oL(this.api,this.bb,this.layoutId,this.j,this.Wa,["ytp-ad-info-dialog-mute-button"],"button",!0),g.M(this,this.C),this.C.init(FI("button"),b,this.macros),this.C.Na("click",this.Z0,this),
this.C.xa(this.Ra)));rFa(this)}};
g.k.clear=function(){Jx(this.N);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();$K.prototype.hide.call(this);this.W&&this.W.focus()};
g.k.show=function(){this.u&&this.u.show();this.C&&this.C.show();if(!this.Ha){for(var a=g.r(this.I&&this.I.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(b,this.layoutId):g.qz(Error("Missing layoutId for ad info dialog.")):AL(this.Wa,b,this.macros);this.Ha=!0}this.W=document.activeElement;$K.prototype.show.call(this);this.N.focus()};
g.k.MM=function(){if(this.I&&this.I.confirmServiceEndpoint){var a=this.I.confirmServiceEndpoint;this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(a,this.layoutId):g.qz(Error("Missing layoutId for ad info dialog.")):AL(this.Wa,a,this.macros)}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.X("d");this.hide()};
g.k.Z0=function(){var a=this.B?this.B:this.D;a&&!a.tb&&(this.hide(),a.show())};g.u(DL,sL);DL.prototype.init=function(a,b,c){sL.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(uFa(this,a,c),this.show())};
DL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();sL.prototype.hide.call(this)};
DL.prototype.show=function(){this.button&&this.button.show();sL.prototype.show.call(this)};
DL.prototype.clear=function(){this.hide()};g.u(EL,$K);
EL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.th(this.element,aL(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?tL(a):"",c=(c=this.api.getVideoData(1))&&c.Xl,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"}(a=g.Wg(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
EL.prototype.isTemplated=function(){return this.u.isTemplated||!1};
EL.prototype.clear=function(){this.hide()};var yFa={seekableStart:0,seekableEnd:1,current:0};g.u(GL,$K);GL.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.r(f);f=h.next().value;h=ha(h);return a.apply(f,h)}
function d(f){f=g.r(f);f.next();f=ha(f);return b(e,f)}
b=void 0===b?Fka:b;var e=g.Ra(a);return function(){var f=g.za.apply(0,arguments),h=this||g.C,l=RYa.get(h);l||(l={},RYa.set(h,l));return Vaa(l,[this].concat(g.t(f)),c,d)}})(function(a){var b=g.mh("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.mh("DIV");g.Il(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.qh(b);return a});g.u(g.JL,g.K);g.k=g.JL.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.KE(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.tb||(KL(this,!0),this.state=1,a?this.delay.start(a):this.KE()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.tb&&(KL(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.KE=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:KL(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();KL(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.KE()};
g.k.ea=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.K.prototype.ea.call(this)};g.u(LL,GL);g.k=LL.prototype;
g.k.init=function(a,b,c){GL.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.qz(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ra&&g.ho(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.va=null==a||0===a?this.u.Bv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(FI("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Xl&&b.thumbnail?this.I.init(FI("ad-image"),b.thumbnail,c):this.N.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.I.hide();IL(this);GL.prototype.hide.call(this)};
g.k.show=function(){HL(this);this.B.show();this.C.show();this.I.show();GL.prototype.show.call(this)};
g.k.qt=function(){this.hide()};
g.k.xq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ha&&a>=this.va?(this.W.hide(),this.Ha=!0,this.X("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.va-a)/1E3)),a!=this.La&&(FL(this.C,{TIME_REMAINING:String(a)}),this.La=a)))}};g.u(NL,GL);g.k=NL.prototype;
g.k.init=function(a,b,c){GL.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.fb(g.Wg(d[0].url))&&(d[0].url=a.profilePicture)}else g.rz(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(FI("ad-image"),b.image,c);
this.W.init(FI("ad-text"),b.headline,c);this.N.init(FI("ad-text"),b.description,c);this.B.init(FI("button"),b.actionButton.buttonRenderer,c);this.I=b.actionButton.buttonRenderer.navigationEndpoint;this.api.VC()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.OM.bind(this));this.va=b.startMs||0;HL(this)}else g.qz(Error("FlyoutCtaRenderer has no valid action button."));else g.qz(Error("FlyoutCtaRenderer has no description AdText."));else g.qz(Error("FlyoutCtaRenderer has no headline AdText."));
else g.rz(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){GL.prototype.onClick.call(this,a);this.api.pauseVideo();!g.sh(this.B.element,a.target)&&this.I&&(this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(this.I,this.layoutId):g.qz(Error("Missing layoutId for flyout cta.")):AL(this.Wa,this.I,this.macros))};
g.k.xq=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.va&&(IL(this),g.jo(this.element,"ytp-flyout-cta-inactive"),this.api.R().K("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.removeAttribute("tabIndex"))}};
g.k.qt=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.OM.bind(this))};
g.k.show=function(){this.B&&this.B.show();GL.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();GL.prototype.hide.call(this)};
g.k.OM=function(a){"hidden"==a?this.show():this.hide()};g.u(OL,$K);g.k=OL.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(FI("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(FI("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.P(this.element,"change",this.PM),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(b,this.layoutId):
g.qz(Error("Missing layoutId for instream user sentiment.")):AL(this.Wa,b,this.macros)};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();$K.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();$K.prototype.show.call(this)};
g.k.PM=function(){oka(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Ka("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.qa.length&&this.PM();$K.prototype.onClick.call(this,a)};g.u(PL,g.K);g.k=PL.prototype;g.k.ea=function(){this.reset();g.K.prototype.ea.call(this)};
g.k.reset=function(){g.bz(this.C);this.I=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.J.play())};
g.k.start=function(){this.reset();this.C.P(this.B,"mouseover",this.qV,this);this.C.P(this.B,"mouseout",this.pV,this);this.j?this.j.start():(this.I=this.u=!0,g.yl(this.B,{opacity:this.V}))};
g.k.qV=function(){this.u&&(this.u=!1,this.J.play());this.D.stop();this.j&&this.j.stop()};
g.k.pV=function(){this.I?this.D.start():this.j&&this.j.start()};
g.k.HN=function(){this.u||(this.u=!0,this.N.play(),this.I=!0)};g.u(QL,GL);g.k=QL.prototype;
g.k.init=function(a,b,c){GL.prototype.init.call(this,a,b,c);this.N=b;this.va=wFa(this);if(!b||g.Cf(b))g.qz(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Cf(b.message))g.qz(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=nL(a);null==b?g.qz(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.ZK({F:"button",Ca:["ytp-ad-skip-button","ytp-button"],S:[{F:"span",
L:"ytp-ad-skip-button-icon",S:[b]}]}),g.M(this,this.I),this.I.xa(this.C.element),this.B=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa,"ytp-ad-skip-button-text"),this.B.init(FI("ad-text"),this.N.message,c),g.M(this,this.B),g.ph(this.I.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.R();!(0<this.qa.length)&&c.isMobile&&(JF?0:"ontouchstart"in document.documentElement&&(Lga()||Hk()))&&(this.uc(this.gb),d&&this.uc(d),this.qa=[this.P(this.element,"touchstart",this.oV,this),this.P(this.element,
"touchmove",this.nV,this),this.P(this.element,"touchend",this.mV,this)])}};
g.k.clear=function(){this.W.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();IL(this);GL.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.Gx(a),GL.prototype.onClick.call(this,a),this.X("j"),this.Ha||!this.va))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.LR=function(a){if(!this.Ha)return this.va&&eA("SkipButton click commands not pruned while ALC exist"),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&&vFa(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.OO=function(){return"skip"};
g.k.kE=function(a,b){b=AEa(this.bb,b);this.api.R().K("enable_macro_substitution_on_html5")?(b=dCa(this.macros,!1,b),this.layoutId?f_(this.Wa,a,this.layoutId,b):g.qz(Error("Missing layoutId for skip button."))):AL(this.Wa,a,this.macros,b)};
g.k.show=function(){this.W.start();this.C.show();this.B&&this.B.show();HL(this);GL.prototype.show.call(this)};
g.k.qt=function(){this.X("k")};
g.k.xq=function(){};g.u(RL,GL);g.k=RL.prototype;
g.k.init=function(a,b,c){GL.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};(a=g.Cf(a)?null:a)?(this.N=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new LL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u,"countdown_next_to_thumbnail"==g.LE(this.api.R().experiments,"preskip_button_style_ads_backend")&&bG(this.api.R())),this.B.init(FI("preskip-component"),a,c),ML(this.B),g.M(this,this.B),this.B.xa(this.element)):
b.skipOffsetMilliseconds&&(this.N=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Cf(b)?null:b;null==b?g.qz(Error("SkipButtonRenderer was not set in player response.")):(this.C=new QL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u,this.W),this.C.init(FI("skip-button"),b,c),g.M(this,this.C),this.C.xa(this.element),this.show())};
g.k.show=function(){this.I&&this.C?this.C.show():this.B&&this.B.show();HL(this);GL.prototype.show.call(this)};
g.k.qt=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();IL(this);GL.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();IL(this);GL.prototype.hide.call(this)};
g.k.xq=function(){1E3*this.u.getProgressState().current>=this.N&&xFa(this,!0)};g.u(SL,oL);SL.prototype.init=function(a,b,c){oL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.zA(b.text),a=!g.fb(a));a?null==b.navigationEndpoint?g.rz(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.rz(Error("Button style was not a link-style type in renderer,")):this.show():g.rz(Error("No visit advertiser text was present in the renderer."))};g.u(TL,$K);TL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);a=b.text;g.fb(aL(a))?g.rz(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.R(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa),a.init(FI("simple-ad-badge"),b,c),a.xa(this.element),g.M(this,a)),this.show())};
TL.prototype.clear=function(){this.hide()};g.u(UL,GI);g.u(VL,g.cz);g.k=VL.prototype;g.k.Bv=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Sc.uc(this.j)};
g.k.Wb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.X("h")};
g.k.getProgressState=function(){return this.u};
g.k.bd=function(a){g.uJ(a,2)&&this.X("g")};g.u(WL,g.cz);g.k=WL.prototype;g.k.Bv=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.timer.start())};
g.k.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.k.Wb=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.bb&&this.bb.Wb(this.B.current);this.X("h");a&&this.X("g")};
g.k.getProgressState=function(){return this.B};g.u(ZL,GL);g.k=ZL.prototype;g.k.init=function(a,b,c){GL.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){iu(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new EL(this.api,this.bb,this.layoutId,this.j,this.Wa);this.B.init(FI("ad-text"),a,{});this.B.xa(this.element);g.M(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){IL(this);GL.prototype.hide.call(this)};
g.k.qt=function(){this.hide()};
g.k.xq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.u instanceof VL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof WL?a.seekableEnd:this.api.getDuration(2,!1))-a.current,FL(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.XL(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){HL(this);GL.prototype.show.call(this)};g.u($L,EL);$L.prototype.onClick=function(a){EL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.u(eM,g.ZK);eM.prototype.Wb=function(){var a=this.u.getProgressState();this.xc.style.width=100*dM(new aM(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
eM.prototype.onStateChange=function(){g.UF(this.api.R())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Wb,this),this.Wb()):-1!==this.j&&(this.hide(),this.u.Kg(this.j),this.j=-1))};g.u(fM,$K);
fM.prototype.init=function(a,b,c,d){$K.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new RL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u,this.N),c.xa(this.I),c.init(FI("skip-button"),a.skipAdRenderer,this.macros),g.M(this,c)):a.adPreviewRenderer&&(c=new LL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u,!1),c.xa(this.I),c.init(FI("ad-preview"),a.adPreviewRenderer,this.macros),ML(c),g.M(this,c)));b.brandInteractionRenderer&&(a=
b.brandInteractionRenderer.brandInteractionRenderer,c=new OL(this.api,this.bb,this.layoutId,this.j,this.Wa),c.xa(this.W),c.init(FI("instream-user-sentiment"),a,this.macros),g.M(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new NL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u),g.M(this,c),c.xa(this.D),c.init(FI("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 TL(this.api,this.bb,this.layoutId,this.j,this.Wa,!0),g.M(this,c),c.xa(this.B),c.init(FI("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 ZL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u,d),g.M(this,d),d.xa(this.B),d.init(FI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new DL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.element),g.M(this,a),a.xa(this.B),a.init(FI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=zFa(this)&&this.C?this.C:this.B))&&(a=new SL(this.api,this.bb,this.layoutId,this.j,this.Wa),g.M(this,a),a.xa(d),a.init(FI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.R())&&!RF(b)&&
"3"==b.controlsType&&(b=new eM(this.api,this.u),b.xa(this.va),g.M(this,b));this.api.R().K("enable_updated_html5_player_focus_style")&&g.ho(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
fM.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.Wx);var tM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var mM=Symbol("injectionDeps");kM.prototype.toString=function(){return"InjectionToken("+this.name+")"};
JFa.prototype.resolve=function(a){return a instanceof lM?nM(this,a.key,[],!0):nM(this,a,[])};var DM;var m4={},LFa=(m4.WEB_UNPLUGGED="^unplugged/",m4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",m4.WEB_UNPLUGGED_OPS="^unplugged/",m4.WEB_UNPLUGGED_PUBLIC="^unplugged/",m4.WEB_CREATOR="^creator/",m4.WEB_KIDS="^kids/",m4.WEB_EXPERIMENTS="^experiments/",m4.WEB_MUSIC="^music/",m4.WEB_REMIX="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",m4);qM.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?tM:c;var d={context:g.uK(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.pM(this.B());(e=null==(f=g.av(a.commandMetadata,YYa))?void 0:f.apiUrl)&&(b=e);f=Bma(bv(b));a=g.T("kevlar_response_command_processor_page")?Object.assign({},{command:a},void 0):Object.assign({},void 0);d={input:f,Aq:cv(f),Rm:d,config:a};d.config.Ar?d.config.Ar.identity=c:d.config.Ar={identity:c};return d}g.qz(new g.Rv("Error: Failed to create Request from Command.",
a))};
g.da.Object.defineProperties(qM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.u(rM,qM);rM.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Aq:cv("/getDatasyncIdsEndpoint","GET"),Rm:{}}};
rM.prototype.B=function(){return[]};
rM.prototype.j=function(){};
rM.prototype.u=function(){};var E0a={},NFa=(E0a.GET_DATASYNC_IDS=oM(rM),E0a);var SFa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" "),UFa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var XFa=new kM("INNERTUBE_TRANSPORT_TOKEN");g.u(vM,qM);vM.prototype.B=function(){return G_a};
vM.prototype.j=function(a){return g.av(a,s_a)||void 0};
vM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.da.Object.defineProperties(vM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.u(wM,qM);wM.prototype.B=function(){return H_a};
wM.prototype.j=function(a){return g.av(a,q_a)||void 0};
wM.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.da.Object.defineProperties(wM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.u(xM,qM);xM.prototype.B=function(){return D_a};
xM.prototype.j=function(a){return g.av(a,xIa)||void 0};
xM.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.da.Object.defineProperties(xM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.u(yM,qM);yM.prototype.B=function(){return E_a};
yM.prototype.j=function(a){return g.av(a,p_a)||void 0};
yM.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.u(zM,qM);zM.prototype.B=function(){return F_a};
zM.prototype.j=function(a){return g.av(a,n_a)||void 0};
zM.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.u(AM,qM);AM.prototype.B=function(){return C_a};
AM.prototype.j=function(a){return g.av(a,c_a)};
AM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var IFa=new kM("NETWORK_SLI_TOKEN");BM.prototype.fetch=function(a,b){var c=this,d,e;return g.z(function(f){c.j&&(d=mi(g.pi(5,zi(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.T("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.rz(h)}))):f.return(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.rz(h)}))})};
BM.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.rz(new g.Rv("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
BM[mM]=[new lM];var WFa=new kM("NETWORK_MANAGER_TOKEN");var CM;FM.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.lw)f.onreadystatechange=function(p){c.lw(f,p)};
var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.r(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.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)})};
FM.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.rz(new g.Rv("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.rz(new g.Rv("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var ZFa=[],SM=!1;TM.getInstance=function(){var a=g.Ha("ytglobal.storage_");a||(a=new TM,g.Fa("ytglobal.storage_",a));return a};
TM.prototype.estimate=function(){var a,b,c;return g.z(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(bGa()):d.return()})};
g.Fa("ytglobal.storageClass_",TM);Kv.prototype.vz=function(a){this.handleError(a)};
Kv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.T("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.T("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":dGa(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.k=UM.prototype;
g.k.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&&(e=a.interpreterSafeScript,g.fg("From proto message. b/166824318"),e=Tca(e.privateDoNotAccessOrElseSafeScriptWrappedValue||"").toString());a.interpreterSafeUrl&&(f=a.interpreterSafeUrl,g.fg("From proto message. b/166824318"),d=g.ig(f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());fGa(this,e,d,a.program,b,c)}else g.rz(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return!!this.Vy()};
g.k.getState=function(){return this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;var b=this.Vy();if(b){var c={by:a};if(b.WB)throw Error("Already disposed");a=Vi();var d;null!=(d=b.Hr)&&d.u.j.Yq("/client_streamz/bg/fsc",d.fh);d=b.S4([c.by,c.q4]);var e;null!=(e=b.Hr)&&e.B.dh(Vi()-a,e.fh);b=d}else b=null;return b};
g.k.dispose=function(){this.ea()};
g.k.ea=function(){this.HK(null);this.Qc(8)};
g.k.Vy=function(){return this.j};
g.k.HK=function(a){g.af(this.j);this.j=a};
g.k.Qc=function(a){this.state=a};g.u(WM,UM);WM.prototype.ea=function(){this.Qc(8)};
WM.prototype.Vy=function(){return hGa()};
WM.prototype.HK=function(a){g.af(hGa());g.Fa("yt.abuse.playerAttLoader",a)};var XM,ZM;g.VM=new WM;XM=0;ZM=[];var lGa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var vGa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},wGa={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"},xGa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},uGa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},sGa={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"},tGa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.u(gN,g.K);gN.prototype.ea=function(){this.N=this.u=this.B=this.I=this.j=this.J=this.D=this.C=void 0};var n4={},DGa=(n4["api.invalidparam"]=2,n4.auth=150,n4["drm.auth"]=150,n4["heartbeat.net"]=150,n4["heartbeat.servererror"]=150,n4["heartbeat.stop"]=150,n4["html5.unsupportedads"]=5,n4["fmt.noneavailable"]=5,n4["fmt.decode"]=5,n4["fmt.unplayable"]=5,n4["html5.missingapi"]=5,n4["html5.unsupportedlive"]=5,n4["drm.unavailable"]=5,n4);var FGa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.u(jN,g.K);g.k=jN.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.J[a],f=d;if(e)if(c&&mA(c,I_a))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.R();d.Kl&&!this.state.N.has(a)&&(this.state.N.add(a),g.Mv("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.rz(Error('Dangerous call to "'+a+
'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.J[a]&&b&&mA(b,I_a))};
g.k.getBandwidthEstimate=function(){return DF(this.app.R().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.oN(this.app);b&&(a={gpu:(0,g.bW)(),d:a},b.handleError(new zG("feedback",a)))};
g.k.getApiInterface=function(){return Array.from(this.state.C)};
g.k.getInternalApiInterface=function(){return g.uf(this.state.j)};
g.k.SW=function(a,b){if("string"===typeof b){var c=function(){var d=g.za.apply(0,arguments);g.Ha(b).apply(window,d)};
this.state.I[b]=c}else c=b;this.app.Rn.subscribe(a,c)};
g.k.A3=function(a,b){if("string"===typeof b){var c=this.state.I[b];g.Df(this.state.I,b);b=c}this.app.Rn.unsubscribe(a,b)};
g.k.getPlayerState=function(){return hSa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekTo=function(a,b,c){this.j&&cY(this.app,!0,this.playerType);gY(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.app.ej().D.j=(0,g.U)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&cY(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.oN(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.wd()&&(l=h.getStreamTimeOffset());gY(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.oN(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.oN(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&gY(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Bh.volume};
g.k.setVolume=function(a){LGa(this,a)};
g.k.isMuted=function(){return this.app.Bh.muted};
g.k.mute=function(){MGa(this)};
g.k.unMute=function(){NGa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().C&&(a.pfp={enableIma:this.app.R().jh&&this.app.Wc().allowImaMonetization,autoplay:sI(this.app.Wc()),mutedAutoplay:this.app.Wc().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&cY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.ze()){var b=oO(this.app.ob());if(!uXa(b)){b.Zm("control_play");return}if(vXa(b))return}3===a?wN(this.app.ob()).Zm("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.ze()){var b=oO(this.app.ob());if(!uXa(b)){b.Zm("control_pause");return}}3===a?wN(this.app.ob()).Zm("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.U.Yb&&a.Sa.X("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.oN(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.R();if(a.Ed){var b=a.u||a.K("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.Rl?Q_a:P_a}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.oN(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.oN(this.app,this.playerType);return a?(a=g.Pk(a.Hp(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.oN(this.app,this.playerType);return a?g.Pk(a.Hp(),function(b){return b.qualityLabel}):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.Za().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.Za().resize()};
g.k.channelSubscribed=function(){this.Ka("SUBSCRIBE",this.app.Wc().Ek)};
g.k.channelUnsubscribed=function(){this.Ka("UNSUBSCRIBE",this.app.Wc().Ek)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.oN(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.oN(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=ySa(this.app);b&&(b.u=a,b.Fa())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=ySa(this.app);b&&(g.N(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.cf(b,g.$O(b.B.pc(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.oN(this.app,this.playerType);a&&a.rf("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.R().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.R().Ll=a};
g.k.setLivingRoomAppMode=function(a){this.app.R().livingRoomAppMode=fv("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,HYa)};
g.k.setEnablePrivacyFilter=function(a){this.app.R().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return this.app.Wc().DI};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.jO(this.app.ob()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.jO(this.app.ob()))&&a.loaded&&a.x5()};
g.k.loadVideoById=function(a,b,c){a&&(a=iN(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&cY(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=iN(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=EGa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&cY(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=EGa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.R();if(a.N)return"";var b=this.app.Wc(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.R();if(a.N)return"";var b=this.app.Wc();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Wc().videoId,this.app.Za().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return eY(this.app,a,b,c)};
g.k.addUtcCueRange=function(a,b,c,d,e){return oSa(this.app,a,b,c,d,e)};
g.k.removeCueRange=function(a){return pSa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&cY(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.j&&cY(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&cY(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&cY(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.AY=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.XN(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.ob();return"captions"===a?(a=g.jO(d))&&a.xg(b,c):null};
g.k.getOption=function(a,b,c){var d=g.oN(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.R().u?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.ob();if("captions"===a){var c;return(null==(c=g.jO(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.jO(b)&&a.push("captions"),a)};
g.k.DY=function(a){a=void 0===a?this.playerType:a;var b=this.cP(a);if(a=g.oN(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.ra;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Yg(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Yg(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.b6;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=ABa(a);b.paidContentOverlayDurationMs=dI(a);a.j&&AB(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.cP=function(a){a=void 0===a?this.playerType:a;var b=JGa(this,a);if(a=g.oN(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.Li;b.isManifestless=OH(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);WH(a)&&(b.isEncrypted=!0);if(a.B)for(var c=g.r(a.B.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==
(e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.showVideoInfo=function(){ZRa(this.app,!0)};
g.k.hideVideoInfo=function(){ZRa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.oN(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.W(a,128)&&5===hN(b.errorCode))};
g.k.getSphericalProperties=function(){var a=g.yN(this.app.ob());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.yN(this.app.ob());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.R().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.oN(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.z(function(l){return 1==l.j?(f=rO(e.app.ob()))?g.x(l,f.eK([a],b,c,d),3):l.Ma(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.z(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){if(this.K("web_player_autonav_use_server_provided_state")){var b;if(null==(b=this.app.Wc())?0:PH(b))return}uSa(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.oN(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.oN(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.oN(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.R().Y.add(a,{JB:b,IA:c})};
g.k.updateLastActiveTime=function(){Lx()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.R().rk!==a&&(this.app.R().rk=a,(a=g.oN(this.app,this.playerType))&&tX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.jO(this.app.ob()).nT(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.jO(this.app.ob());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.jO(this.app.ob());a&&a.RS()};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.ze()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.oN(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Ii();if(!c)return null;b=c.levels[b];return b?(a=g.BH(b,a))?{column:a.column,columns:a.columns,height:a.Rs,row:a.row,rows:a.rows,url:a.url,width:a.Az}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Ii();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.wd();return b.kB(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Ii();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Cu(),minFrameIndex:b.DF()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Ii();return a?a.levels.length:0};
g.k.kY=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.oN(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Il};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&wN(this.app.ob()).Zm("control_set_audio_track",a);var b=g.oN(this.app,this.playerType);if(b&&!b.isDisposed()&&!g.W(b.playerState,128)){var c;if(null==(c=b.videoData.B)?0:c.j)b.Ga.setAudioTrack(a);else if(uRa(b)){a:{c=b.mediaElement.audioTracks();for(var d=0;d<c.length;++d){var e=c[d];if(e.label===a.Ic.getName()){if(e.enabled){c=!1;break a}c=e.enabled=!0;break a}}c=void 0}c&&b.ma("hlsaudio",{id:a.id})}else{a:if(c=b.videoData,c.D&&!UD(c.D)||
a==c.Vl||!c.zc||0>=c.zc.length)c=!1;else{d=g.r(c.zc);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof FG)){c=!1;break a}var f=a.Ic.getId();e.B&&(vza(e.B,f),e.u=null)}c.Vl=a;c=!0}c&&iX(b)&&(b.X("internalaudioformatchange",b.videoData,!0),b.ma("hlsaudio",{id:a.id}))}}};
g.k.lY=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.oN(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.oN(this.app,this.playerType);return a&&a.getVideoData().u?yB(a.Ke?OV(a.Wg,a.Ke,a.Zr()):GH):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.oN(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.jO(this.app.ob());return a?a.CY():null};
g.k.resetSubtitlesUserSettings=function(){g.jO(this.app.ob()).I3()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.Za().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.wf();return this.app.getVisibilityState(this.Bg(),this.isFullscreen()||RF(this.app.R()),a,this.isInline(),this.app.Vv(),this.app.Sv())};
g.k.isMutedByMutedAutoplay=function(){return this.app.Bz};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.Za().setInternalSize(new g.Qg(a,b))};
g.k.wd=function(){var a=g.oN(this.app);return a?a.wd():0};
g.k.wf=function(){return this.app.wf()};
g.k.Bg=function(){var a=g.oN(this.app,this.playerType);return!!a&&a.Bg()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.R().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.K("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.XN(b).videoId||(a.index=b.index)):RX(this.app,{list:a.list,index:a.index,playlist_length:d.length});ZN(this.app.getPlaylist(),a);this.Ka("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.oN(this.app,this.playerType||1);c&&g.KH(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){$F(this.app.R(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.sO(this.app.ob());d&&d.ri()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.X("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.Za().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.oN(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.oN(this.app,this.playerType);c&&g.rRa(c,g.vB(a,b||a,!0,"m"),!0)};
g.k.onAdUxClicked=function(a,b){this.X("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.k.dispatchReduxAction=function(a){g.TH.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Dd.includes(e)||(c.Dd.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Zb(c.Dd,e)&&(d=!0)});
d&&this.X("updatemarkervisibility")};
g.k.X=function(a){var b=g.za.apply(1,arguments);this.app.R().C&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Rn.X.apply(this.app.Rn,[a].concat(g.t(b)));this.app.Ho.X.apply(this.app.Ho,[a].concat(g.t(b)))};
g.k.Ka=function(a){var b=g.za.apply(1,arguments);this.app.Rn.X.apply(this.app.Rn,[a].concat(g.t(b)));this.app.Ho.X.apply(this.app.Ho,[a].concat(g.t(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.logImaAdEvent=function(a,b){this.app.R().jh&&this.app.Wc().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Bea(this.app.R().loaderUrl),eventType:a,youtubeHost:g.qi(this.app.R().qa)||""},g.Mv("embedsAdEvent",a))};
g.k.K=function(a){return this.app.R().K(a)};
g.k.ea=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.K.prototype.ea.call(this)};g.u(rN,jN);g.k=rN.prototype;g.k.addCueRange=function(a,b,c,d,e){return eY(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return hSa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){gY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){gY(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.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):jN.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=wN(this.app.ob()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):jN.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return wN(this.app.ob()).getProgressState();var b=this.app.getVideoData(),c=(g.oN(this.app,a)||g.oN(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=RGa(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=RGa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var h=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Iv(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.oN(p,c))?(c=PX(p,c),c=$X(p,oS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.cg(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:h,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.qN(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.qN(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.qN(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.qN(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.Za().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.Wy();this.app.wk(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.rz(c)}
var b=this.app.R();if(b.externalFullscreen){if(!g.oG(b))return this.isFullscreen()?Yy(window.document.documentElement):Vy(window.document.documentElement).catch(a)}else if(g.Wy()||b.I)return this.isFullscreen()?Yy(Xy()):"3"!==b.controlsType&&g.Wy()?Vy(this.app.Za().element).catch(a):(b=this.app.Qd().tf())?Vy(b).catch(a):Promise.reject(Error("Media element missing"));this.Ka("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=oO(this.app.ob());a&&a.created&&a.destroy();(a=g.oN(this.app))&&a.stopVideo();(a=this.app.ob().ge.get("endscreen"))&&a.wZ()&&g.vN(this.app.Sa,!0)};
g.k.stopVideo=function(){var a=this.app.R();!a.K("disable_new_pause_state3")&&jG(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():jN.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.oN(this.app,this.playerType).Ob(!0)};
g.k.toggleSubtitles=function(){var a=g.jO(this.app.ob());a&&a.c5()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.yN(this.app.ob());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.yN(this.app.ob());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){LGa(this,a,b)};
g.k.mute=function(a){MGa(this,a)};
g.k.unMute=function(a){NGa(this,a)};
g.k.mutedAutoplay=function(){this.K("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.sO(this.app.ob());b&&!b.loaded&&b.load()}jN.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.sO(this.app.ob());b&&b.loaded&&b.unload()}jN.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.ob();switch(a){case "ad":return(a=oO(d))&&a.xg&&a.xg(b,c);case "kids":return(a=pO(d))&&a.xg(b,c);case "remote":return(a=wN(d))&&a.xg(b,c);case "unplugged":return(a=g.qO(d))&&a.xg(b,c);case "annotations_module":return(a=g.sO(d))&&a.xg(b,c);case "creatorendscreen":return(a=tO(d))&&a.xg(b,c)}return jN.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.ob();switch(a){case "ad":var c,d;return(null==(c=oO(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=wN(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.sO(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=tO(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.qO(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var v,w;return(null==(v=pO(b))?void 0:null==(w=v.getOptions)?void 0:w.call(v))||null}if(!a){a=jN.prototype.getOptions.call(this);if(!a)return a;oO(b)&&a.push("ad");wN(b)&&a.push("remote");g.sO(b)&&a.push("annotations_module");tO(b)&&a.push("creatorendscreen");g.qO(b)&&a.push("unplugged");pO(b)&&a.push("kids");return a}return jN.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.Za().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.qN(this);a&&a.un()};
g.k.setCenterCrop=function(a){this.app.Za().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var PGa="BASE_URL BASE_YT_URL adformat adaptive_fmts 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(" "),
QGa="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.u(g.tN,rN);g.k=g.tN.prototype;g.k.Gl=function(a,b,c,d,e,f,h){return this.app.Gl(a,b,c,d,e,f,h)};
g.k.Dy=function(){return this.app.Dy()};
g.k.Gp=aa(4);g.k.ob=function(){return this.app.ob()};
g.k.Ve=function(){var a=this.ob().ge.get("endscreen");return!!a&&a.Ve()};
g.k.getRootNode=function(){return this.Za().element};
g.k.R=function(){return this.app.R()};
g.k.Jv=aa(6);g.k.Cm=function(a){return this.app.Cm(a)};
g.k.Em=function(){return this.settingsMenu};
g.k.Py=function(){return this.FF};
g.k.zb=function(a){return this.app.zb(a)};
g.k.Za=function(){return this.app.Za()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.oN(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Rd))b=void 0;else{var d=a.getCurrentTime();b=b.yp?void 0:null==(c=JS(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.Ii=function(a){return this.app.Ii(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.oN(this.app);return a?a.isHdr():!1};
g.k.nz=function(){return this.app.nz()};
g.k.Jw=function(a){this.app.Jw(a)};
g.k.fg=function(a,b,c,d,e){this.app.Kf(a,b,c,d,e)};
g.k.Po=function(a,b){this.app.Po(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){wN(this.app.ob()).Zm("control_play");return}if(2===this.getPresentingPlayerType()){var b=oO(this.app.ob());if(b&&vXa(b))return}}catch(c){g.qz(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.oN(this.app,a).stopVideo()};
g.k.Jo=function(a){g.oN(this.app,a).Jo()};
g.k.addEventListener=function(a,b){this.app.Ho.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Ho.unsubscribe(a,b)};
g.k.X=function(a){rN.prototype.X.call.apply(rN.prototype.X,[this,a].concat(g.t(g.za.apply(1,arguments))))};
g.k.lk=function(a){this.app.lk(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.Hp=function(){var a={},b=g.oN(this.app).Hp();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.Ey=function(){return g.oN(this.app).Ey()};
g.k.My=aa(10);g.k.hE=function(a){this.app.hE(a);a&&uSa(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.Ny=aa(12);g.k.wl=aa(16);g.k.dw=function(a,b){this.ob().dw(a,b)};
g.k.ri=function(){var a=g.sO(this.ob());return!!a&&a.ri()};
g.k.nm=function(){var a=g.sO(this.ob());return!!a&&a.nm()};
g.k.setCardsVisible=function(a,b,c){var d=g.sO(this.ob());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.X("changeProductsInVideoVisibility",a)};
g.k.Gw=aa(17);g.k.Rt=function(){var a=g.oN(this.app);a&&a.Rt()};
g.k.oA=function(a){this.Ka("onVideoAreaChange");this.Ka(a?"onShowControls":"onHideControls")};
g.k.Sj=function(a,b){var c=g.qN(this);if(c)return c.Sj(a,b);a=this.app.Za().Ji();return new g.vl(0,0,a.width,a.height)};
g.k.Pp=function(){return this.app.Pp()};
g.k.kz=function(){var a=this.ob().ge.get("heartbeat");return!!a&&a.kz()};
g.k.cg=function(){var a=this.R();if(a.Ea||a.disableSeek)return!1;a=g.oN(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.iI(b)||2===this.getPresentingPlayerType()&&!this.app.ze()||a.Km()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.gz=function(){var a;return(null==(a=g.oN(this.app))?void 0:a.gz)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Dq=function(){var a=g.oN(this.app);a&&a.Dq()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.le=function(a,b,c){this.app.Px(a,b,c)};
g.k.eh=function(a,b){this.app.bE(a,b)};
g.k.Af=function(a,b){var c=this.app,d=g.oN(c,b);d&&(a=d.Ih.Af(a),b&&c.getPresentingPlayerType()!==b||MX(c,"cuerangesremoved",a))};
g.k.rf=function(a,b){(b=g.oN(this.app,b))&&b.rf(a)};
g.k.Km=function(){var a=g.oN(this.app);return a?a.Km():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Cg(a,0,100);nN(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){nN(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){nN(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.Qd=function(){return this.app.Qd()};
g.k.ej=function(){return this.app.ej()};
g.k.Hi=function(a){return this.app.Hi(a)};
g.k.getBandwidthEstimate=function(){return DF(this.R().schedule)};
g.k.rb=function(a,b,c,d){this.R().Ua&&this.app.Vp.rb(a,b,c,void 0===d?!1:d)};
g.k.Ai=function(a,b,c){this.R().Ua&&this.app.Vp.Ai(a,b,void 0===c?!1:c)};
g.k.xk=function(a,b){this.R().Ua&&this.app.Vp.xk(a,b)};
g.k.qb=function(a,b){this.R().Ua&&this.app.Vp.click(a,b)};
g.k.Ta=function(a,b,c){if(this.R().Ua){var d=this.app.Vp;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Bz(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Jz(e,[f]):g.Kz(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Gz(e,f,c),d.B.add(a))}};
g.k.Nm=function(a){return this.R().Ua?this.app.Vp.Nm(a):!1};
g.k.Fc=function(){return g.oN(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Io=function(){this.app.Io()};
g.k.ey=function(a,b){return this.app.ey(a,b)};
g.k.pn=function(a){this.app.pn(a)};
g.k.SI=function(){this.app.SI()};
g.k.Uu=function(a,b,c,d,e,f,h){return this.app.Uu(a,b,c,d,e,f,h)};
g.k.ez=function(a,b,c,d,e,f,h){return this.app.ez(a,b,c,d,e,f,h)};
g.k.rq=function(a){this.app.rq(a)};
g.k.Gr=function(a,b){b=void 0===b?Infinity:b;this.app.Gr(void 0===a?-1:a,b)};
g.k.Xw=function(a,b,c){this.app.Xw(a,b,c)};
g.k.Kp=function(){return this.app.Kp()};
g.k.ZB=function(a,b,c){this.app.ZB(a,b,void 0===c?0:c)};
g.k.Wv=function(){return this.app.Wv()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.ze=function(){return this.app.ze()};
g.k.aq=function(a,b,c){return this.app.aq(a,b,c)};
g.k.ma=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.oN(this.app,d))||e.ma(a,b,c)};
g.k.qE=function(){return this.app.qE()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.lJ=function(a,b){this.X("aduxmouseover",a,b)};
g.k.kJ=function(a,b){this.X("aduxmouseout",a,b)};
g.k.FJ=function(a,b){this.X("muteadaccepted",a,b)};
g.k.VC=function(){return this.app.Za().VC()};
g.k.Kw=function(a){this.app.Za().Kw(a)};
g.k.zl=function(){var a=g.oN(this.app);return a?a.zl():!1};
g.k.EK=function(a){this.app.EK(a)};g.u(g.CN,g.ZK);g.k=g.CN.prototype;g.k.show=function(){var a=this.qh();g.ZK.prototype.show.call(this);this.va&&(this.J.P(window,"blur",this.Ib),this.J.P(document,"click",this.rV));a||this.X("show",!0)};
g.k.hide=function(){var a=this.qh();g.ZK.prototype.hide.call(this);VGa(this);a&&this.X("show",!1)};
g.k.od=function(a,b){this.u=a;this.V.show();b?(this.N||(this.N=this.J.P(this.G,"appresize",this.EN)),this.EN()):this.N&&(this.J.uc(this.N),this.N=void 0)};
g.k.EN=function(){var a=g.qN(this.G);this.u&&a.nt(this.element,this.u)};
g.k.Ib=function(){var a=this.qh();VGa(this);this.V.hide();a&&this.X("show",!1)};
g.k.rV=function(a){var b=Dx(a);b&&(g.sh(this.element,b)||this.u&&g.sh(this.u,b)||!g.YL(a))||this.Ib()};
g.k.qh=function(){return this.tb&&4!==this.V.state};g.u(EN,g.CN);EN.prototype.od=function(){g.CN.prototype.od.call(this);this.dialog.focus()};g.u(g.FN,g.ZK);g.FN.prototype.Ig=function(a){this.Ja("label",a)};
g.FN.prototype.Ja=function(a,b){g.ZK.prototype.Ja.call(this,a,b);this.X("size-change")};g.u(IN,g.FN);IN.prototype.lc=function(a){this.u&&this.G.Ta(this.element,this.j&&a)};
IN.prototype.C=function(){var a,b,c=null==(a=this.G.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.G.getVideoData())?void 0:d.accountLinkingConfig;var e;this.Ig(JN(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new EN(this.G,JN(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),JN(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),JN(null==a?void 0:null==(l=a.menuData)?
void 0:l.confirmButtonText));g.M(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.G.xk(this.element,d);this.ib.Bc(this);this.j=!0}else!c&&this.j&&(this.ib.Bf(this),this.j=!1)};
IN.prototype.onClick=function(){this.u&&this.G.qb(this.element);this.ib.Ib();this.B&&this.B.od()};g.u(KN,g.K);KN.prototype.K=function(a){return this.api.K(a)};g.u(LN,KN);LN.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.aQ=b};
LN.prototype.setAccountLinkState=function(a){this.api.getVideoData().aQ=a;this.api.Rt()};
LN.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.X("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.u(MN,g.FN);MN.prototype.onClick=function(){this.setValue(!this.checked);this.X("select",this.checked)};
MN.prototype.getValue=function(){return this.checked};
MN.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.u(NN,MN);NN.prototype.Fa=function(a){a?this.j||(this.ib.Bc(this),this.j=!0):this.j&&(this.ib.Bf(this),this.j=!1);this.j&&this.setValue(WGa())};
NN.prototype.ea=function(){this.j&&this.ib.Bf(this);MN.prototype.ea.call(this)};g.u(ON,KN);ON.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Fa(a);this.api.X("onCinematicSettingsVisibilityChange",a)};g.u(YGa,KN);g.u(PN,KN);PN.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=WD(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=XH(a);BB(a,e,[]);d=[];e=g.r(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===CB(a,f,this.api.R().j)&&d.push(f);b=b.concat($Ga(d,!1,c))}a=this.api.Ey();b=b.concat($Ga(a,!0,c));c=[];a={};b=g.r(b);for(e=b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(c.push(e),a[d]=!0);
return c};g.u(QN,KN);QN.prototype.ea=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);KN.prototype.ea.call(this)};
QN.prototype.DH=function(a){var b=this;return g.z(function(c){return b.j?c.return(b.j.ready().then(function(){return cHa(b,a)})):c.return(Promise.reject("web po not ready"))})};g.u(dHa,g.K);RN.prototype.pJ=function(){this.u=(0,g.U)()};
RN.prototype.reset=function(){this.j=this.u=NaN};
RN.prototype.uJ=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.U.K("web_player_csi_ctt_killswitch")&&a.I&&(c.cttAuthInfo={token:a.I,videoId:a.videoId});ZA("seek",c);g.$A("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||XA("pl_ss",this.u,"seek");XA(b,(0,g.U)(),"seek")}this.reset()}};TN.prototype.reset=function(){VA(this.timerName)};
TN.prototype.tick=function(a,b){XA(a,b,this.timerName)};
TN.prototype.To=function(a){var b=this.timerName;lB(a,b)?a=!1:(XA(a,void 0,b),a=!0);return a};
TN.prototype.info=function(a,b){g.$A(a,b,this.timerName)};g.u(VN,g.cz);g.k=VN.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Lm=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.u++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.u++}this.X("shuffle")};
g.k.If=function(a){a=a||"hqdefault.jpg";var b=this.Zf[a];if(b||this.Oa.N||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.B.length)return iG(this.Oa,this.B[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.xu(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Hm=function(){return this.Oa.getVideoUrl(g.XN(this).videoId,this.getPlaylistId())};
g.k.ea=function(){this.j=null;g.bf(this.items);g.cz.prototype.ea.call(this)};var $N=new Map;g.u(g.bO,g.cz);g.k=g.bO.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.xg=function(){};
g.k.xj=function(){return!0};
g.k.ea=function(){this.loaded&&this.unload();g.cz.prototype.ea.call(this)};
g.k.Ob=function(){return{}};
g.k.getOptions=function(){return[]};g.u(g.eO,g.K);g.k=g.eO.prototype;g.k.Zp=aa(20);g.k.cw=function(){};
g.k.Vo=function(){};
g.k.rs=function(){return""};
g.k.YJ=aa(21);g.k.ea=function(){this.Vo();g.K.prototype.ea.call(this)};g.u(g.fO,g.eO);g.fO.prototype.Zp=aa(19);g.fO.prototype.cw=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.dO(this.u,c.value);a()};
g.fO.prototype.rs=function(a,b){var c=a.pe(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Qu()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.LG(a));return ou(c,d)};
g.fO.prototype.Vo=function(){this.j&&this.j.abort()};g.F0a=new Map;g.u(g.hO,g.eO);g.hO.prototype.Zp=aa(18);
g.hO.prototype.cw=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.CP&&(d.asrs=1);c=ou(c,d);this.Vo();this.j=g.Cu(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),v=l.getAttribute("id"),w="true"===l.getAttribute("lang_default"),y="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.dO(b.u,new g.IG({languageCode:m,languageName:n,name:p,kind:q,id:v,is_servable:!0,is_translateable:y,vss_id:l,is_default:w}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.hO.prototype.rs=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.LG(a));return c=ou(c,b)};
g.hO.prototype.Vo=function(){this.j&&this.j.abort()};g.u(iO,g.K);g.k=iO.prototype;g.k.UB=function(){mO(this)&&(0<this.B&&this.vr?g.$n(this.vr):this.TB());xHa(this)&&(lO(this,"captions",!0),lO(this,"endscreen"),this.XG(),lO(this,"creatorendscreen",!0))};
g.k.sA=function(){return this.G.getVideoData().sA()};
g.k.JK=function(){return this.G.getVideoData().JK()};
g.k.kO=function(){var a=this.ge.get("heartbeat");lO(this,"heartbeat",!1,!0,this.kO);!a&&this.ge.has("heartbeat")&&this.G.X("offlineslatestatechange")};
g.k.XG=function(){lO(this,"annotations_module",!0,void 0,this.XG);var a=this.ge.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.TB=function(){if(!this.ge.get("ad"))try{kO(this)?lO(this,"ad",!1,!0,this.TB):this.G.rf("ad")}catch(a){this.G.rf("ad"),g.qz(a)}};
g.k.ej=function(){return this.j};
g.k.XH=function(){var a={},b=g.jO(this);b&&Object.assign(a,b.XH());return a};
g.k.dw=function(a,b){Object.assign(this.j,a||null);Object.assign(this.VB,b||null)};
g.k.ea=function(){g.K.prototype.ea.call(this);nO(this,1,!0);for(var a=g.r(Object.entries(DHa)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&$N.delete(b)}this.D.clear()};
var o4={},DHa=(o4.ad="ad.js",o4.annotations_module="annotations_module.js",o4.attribution="attribution.js",o4.creatorendscreen="annotations_module.js",o4.embed="embed.js",o4.endscreen="endscreen.js",o4.heartbeat="heartbeat.js",o4.inline_preview="inline_preview.js",o4.kids="kids.js",o4.remote="remote.js",o4.miniplayer="miniplayer.js",o4.music="music.js",o4.offline="offline.js",o4.captions="captions.js",o4.unplugged="unplugged.js",o4.ux="ux.js",o4.webgl="webgl.js",o4.ypc="ypc.js",o4.ypc_clickwrap="ypc_clickwrap.js",
o4.yto="yto.js",o4);g.u(uO,g.df);uO.prototype.preventDefault=function(){g.df.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
uO.prototype.stopPropagation=function(){g.df.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.u(g.vO,VJ);g.k=g.vO.prototype;g.k.er=function(){return!0};
g.k.isView=function(){return!1};
g.k.mK=function(){return!1};
g.k.tf=function(){return this.j};
g.k.Hf=function(){return this.j.src};
g.k.qB=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.cE=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.hs=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.Hn=function(){return this.j.paused};
g.k.Cg=function(){return this.j.seeking};
g.k.Tg=function(){return this.j.ended};
g.k.wC=function(){return this.j.muted};
g.k.Hw=function(a){eE();this.j.muted=a};
g.k.qs=function(){return this.j.played||fE([],[])};
g.k.Sg=function(){try{var a=this.j.buffered}catch(b){}return a||fE([],[])};
g.k.Qy=function(){return this.j.seekable||fE([],[])};
g.k.nB=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.j.currentTime};
g.k.pB=function(a){this.j.currentTime=a};
g.k.getDuration=function(){return this.j.duration};
g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.k.pause=function(){this.j.pause()};
g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.aj=function(){return this.j.readyState};
g.k.xC=function(){return this.j.networkState};
g.k.ag=function(){return this.j.error?this.j.error.code:null};
g.k.kf=function(){return this.j.error?this.j.error.message:""};
g.k.oB=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.k.Bg=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Dq=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;cE()?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():dE()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Np=function(){var a=this.j;return new g.Gg(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Jl(this.j)};
g.k.setSize=function(a){g.Il(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){eE();this.j.volume=a};
g.k.oH=function(a){this.I[a]||(this.j.addEventListener(a,this.listener),this.I[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.Qx=aa(23);g.k.zA=aa(25);g.k.AA=aa(27);g.k.ev=aa(29);g.k.yy=function(){return Yy(this.j)};
g.k.hp=function(a){g.ho(this.j,a)};
g.k.getStyle=function(a){return g.Al(this.j,a)};
g.k.xI=function(){return g.sh(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.ea=function(){for(var a=g.r(Object.keys(this.I)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.I[b]);VJ.prototype.ea.call(this)};g.u(xO,g.cz);g.k=xO.prototype;g.k.g_=function(a){a=Fx(a);if(!Hg(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;wO(this,b,!0)}};
g.k.h_=function(){this.I&&wO(this,8,!0);wO(this,2,!1)};
g.k.pD=function(a){var b=Fx(a);Hg(b,this.C)||(this.C=b,(a=g.Cx(a))&&this.HB(a)&&(wO(this,4,!0),this.j.uc(this.B),this.B=this.j.P(this.target,"mouseover",this.eJ),this.J=this.j.P(this.target,"mouseout",this.eJ)))};
g.k.eJ=function(a){a=Ex(a);a&&this.HB(a)||(this.C=new g.Gg(NaN,NaN),EHa(this))};
g.k.DZ=function(){wO(this,1,!0)};
g.k.sY=function(a){a=g.Cx(a);a instanceof Element&&!(0<a.tabIndex)||wO(this,1,!0)};
g.k.sQ=function(){this.I=!0;this.j.uc(this.D);this.D=this.j.P(document,"mouseup",this.i_)};
g.k.i_=function(){this.I=!1;wO(this,8,!1);this.j.uc(this.D);this.D=this.j.P(this.target,"mousedown",this.sQ)};
g.k.US=function(a){if(a=(a=a.changedTouches)&&a[0])this.qa=a.identifier,this.j.uc(this.N),this.N=this.j.P(this.target,"touchend",this.e5,void 0,!0),wO(this,1024,!0)};
g.k.e5=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.qa){var d=c;break}}d&&(this.j.uc(this.N),this.N=this.j.P(this.target,"touchstart",this.US,void 0,!0),wO(this,1024,!1))};
g.k.un=function(){wO(this,2,!0)};
g.k.resize=function(){g.bE&&EHa(this)};
g.k.toString=function(){return g.cz.prototype.toString.call(this)};g.u(g.yO,g.X);
g.yO.prototype.Fa=function(){var a=this.api.getVideoData(),b=this.api.R();if(a.C&&(a.Ua||b.pfpChazalUi))var c=b.pfpChazalUi?[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{F:"path",L:"ytp-dni-large-play-button-bg",T:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",T:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{F:"path",L:"ytp-dni-large-play-button-bg",T:{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"}},{F:"path",T:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.D?(g.N(this.element,"ytp-touch-device",b.isMobile),c=[b.D?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{F:"path",L:"ytp-large-play-button-bg",T:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",T:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{F:"path",L:"ytp-large-play-button-bg",
T:{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"}},{F:"path",T:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{F:"path",L:"ytp-large-play-button-bg",
T:{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"}},{F:"path",T:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Ja("largePlayButtonChildren",c);a.C&&(a.Ua||b.pfpChazalUi)&&(a=a.Ua?a.Ua:"#1f1f1f",this.ya("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.u(g.zO,g.X);g.k=g.zO.prototype;g.k.show=function(){var a=this;this.tb||(this.B.P(this.api,"videodatachange",function(){g.$n(a.j)}),this.B.P(this.api,"videoplayerreset",function(){g.$n(a.j)}));
g.X.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.bz(this.B);g.X.prototype.hide.call(this)};
g.k.xb=function(){g.$n(this.j)};
g.k.onStateChange=function(a){var b=this.api.R();b.K("disable_new_pause_state3")&&jG(b)&&(a=a.state.isCued()&&!a.jq.isCued()||g.xN(this.api)&&g.W(a.state,2),g.yl(this.element,"transition-delay",a?"2s":""));g.$n(this.j)};
g.k.T2=function(){g.$n(this.j)};
g.k.sV=function(){this.u.stop();this.hide();g.$n(this.j)};
g.k.Fa=function(){var a=this.api.zb();if(3===this.api.getPresentingPlayerType()&&(a.Oc()||g.W(a,4)))var b=!0;else(b=this.api.ob().ge.get("ypc"))&&b.GD?b=!0:(b=this.api.R(),b=g.W(a,2)&&g.uN(this.api)&&b.Pe?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.R().K("disable_new_pause_state3"),b=!(!g.W(a,2)||g.uN(this.api)||b&&this.api.Dy())||g.W(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.E5(this.api.getPlaylist(),a)):
(this.u.hide(),g.W(a,1)||this.u.stop())};
g.k.E5=function(){for(var a,b=g.r(g.za.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.HH&&!c.videoId)){a=this.api.Za().getPlayerSize();var d=g.kG(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.If("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.If("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.If("sddefault.jpg")||c.If("hqdefault.jpg")||c.If("mqdefault.jpg"))break;if(a=c.If("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.u(g.FO,g.X);g.FO.prototype.resize=function(){};
g.FO.prototype.u=function(a){var b=this;JHa(this);var c=a.rH,d=this.api.R();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Sd(IO(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Hm(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.Sd(g.GO(a.errorMessage)):this.Sd(IO(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.wi(c,{hl:a})),this.Sd(IO(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Yb&&!d.u&&IHa(this,function(e){if(g.AO(e,b.api,!jG(b.api.R()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Ka("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var HHa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.u(JO,g.YD);JO.prototype.wh=function(){NHa(this)};
JO.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.R(),d=[],e="";if(!c.N){var f=LHa(this);c.K("enable_web_media_session_metadata_fix")&&g.VF(c)&&f?(d=MHa(f.thumbnailDetails),f.album&&(e=g.zA(f.album))):d=[{src:b.If("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}NHa(this);KHa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.xN(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
KO(this,"nexttrack",b);KO(this,"previoustrack",c)}};
JO.prototype.ea=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())KO(this,b.value,null);g.YD.prototype.ea.call(this)};g.u(LO,g.X);g.k=LO.prototype;g.k.onClick=function(a){g.AO(a,this.G,!0);this.G.qb(this.element)};
g.k.onVideoDataChange=function(a,b){PHa(this,b);this.Zd&&QHa(this,this.Zd)};
g.k.bd=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&PHa(this,b);this.j&&QHa(this,a.state);this.Zd=a.state};
g.k.od=function(){this.C.show();this.G.X("paidcontentoverlayvisibilitychange",!0);this.G.Ta(this.element,!0)};
g.k.Ib=function(){this.C.hide();this.G.X("paidcontentoverlayvisibilitychange",!1);this.G.Ta(this.element,!1)};g.u(MO,g.X);MO.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.X.prototype.hide.call(this)};
MO.prototype.onStateChange=function(a){this.Qc(a.state)};
MO.prototype.Qc=function(a){if(g.W(a,128))var b=!1;else{var c;b=(null==(c=this.api.Fc())?0:c.Yp)?!1:g.W(a,16)||g.W(a,1)?!0:!1}b?this.j.start():this.hide()};
MO.prototype.u=function(){this.message.style.display="block"};g.u(NO,g.CN);NO.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(RHa(this),this.od()):(this.j&&this.qb(),this.Ib()))};
NO.prototype.wh=function(a){this.api.isMutedByMutedAutoplay()&&g.uJ(a,2)&&this.Ib()};
NO.prototype.onClick=function(){this.api.unMute();this.qb()};
NO.prototype.qb=function(){this.clicked||(this.clicked=!0,this.api.qb(this.element))};g.u(g.PO,g.YD);g.k=g.PO.prototype;g.k.init=function(){var a=this.api,b=a.zb();this.MC=a.getPlayerSize();this.Sb(b);this.vn();this.xb()};
g.k.onVideoDataChange=function(a,b){var c=this.KI!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.MC=a.getPlayerSize());c&&(this.KI=b.videoId,c=this.Xd,c.ra=b&&0<b.Oe.length?5E3:3E3,wO(c,512,!0),this.vn())};
g.k.q1=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.Cq=function(){var a=this.api.ri()&&this.api.nm();return this.SB||a||this.lI};
g.k.Dk=function(){var a=!this.Cq();g.N(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.HB=function(a){try{if(!g.sh(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!uh(a);)a=a===this.api.getRootNode()?null:g.rh(a);return!!a};
g.k.ul=function(a){var b=this.api.getRootNode();g.N(b,"ytp-autohide",a);g.N(b,"ytp-autohide-active",!0);this.IN.start(a?250:100);a&&(this.EE=!1,g.jo(b,"ytp-touch-mode"));this.VG=!a;this.api.oA(!a)};
g.k.mJ=function(){var a=this.api.getRootNode();g.N(a,"ytp-autohide-active",!1)};
g.k.V1=function(){this.iL=!0};
g.k.U1=function(a){if(this.api.R().K("player_doubletap_to_seek")||!this.api.R().K("embeds_web_enable_mobile_touch_fix_killswitch")&&this.api.R().I)this.iL=!1,this.jL&&this.uc(this.jL),0===this.Dz&&SO(this,a)?(this.KC(),this.XB.start(),this.jL=this.P(this.api.Za(),"touchmove",this.V1,void 0,!0)):this.XB.stop();THa(this)&&SO(this,a)&&(!this.api.R().I||this.api.R().K("embeds_web_enable_mobile_touch_fix_killswitch"))&&OO(this);var b=this.IE.qh();if(IF&&UHa(this,a))b&&g.Gx(a);else if(this.Xd.u||!this.api.K("web_player_drag_on_autohide_killswitch")||
QO(this,Dx(a))||this.IE.qh()||(this.api.zb().isCued(),g.Gx(a)),this.EE=!0,g.ho(this.api.getRootNode(),"ytp-touch-mode"),this.Xd.un(),this.api.R().K("player_doubletap_to_seek")&&(b=this.api.zb(),!(!this.api.cg()||g.W(b,2)&&g.uN(this.api)||g.W(b,64)))){b=Date.now()-this.WP;this.Dz+=1;if(350>=b){this.py=!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.Dz-1);0<d&&d<b?(this.zw(-1,
d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.zw(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Gx(a)}this.WP=Date.now();this.fS.start()}};
g.k.Q1=function(a){if(!UHa(this,a)){if(!THa(this)&&SO(this,a)&&!this.XB.isActive()){if(g.oG(this.api.R())&&this.api.zb().isCued()){var b=void 0===b?{}:b;WA();PA();VA();HA(!1);b.cttAuthInfo&&(IA().cttAuthInfo=b.cttAuthInfo);au("TIMING_AFT_KEYS",[]);b.R2a?YA({loadType:"hot"}):YA({loadType:"warm"});au("TIMING_ACTION","");delete g.Q("TIMING_INFO",{}).yt_lt;XA("_start",b.startTime,void 0);b=["pbs","pbu"];OA("").info.actionType="watch";b&&au("TIMING_AFT_KEYS",b);au("TIMING_ACTION","watch");if(g.T("web_csi_via_jspb")){b=
g.Q("TIMING_INFO",{});var c=new zt;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;switch(d){case "GetBrowse_rid":var f=new At;g.D(f,1,d);g.D(f,2,String(e));Bt(c,f);break;case "GetGuide_rid":f=new At;g.D(f,1,d);g.D(f,2,String(e));Bt(c,f);break;case "GetHome_rid":f=new At;g.D(f,1,d);g.D(f,2,String(e));Bt(c,f);break;case "GetPlayer_rid":f=new At;g.D(f,1,d);g.D(f,2,String(e));Bt(c,f);break;case "GetSearch_rid":f=new At;g.D(f,1,d);g.D(f,
2,String(e));Bt(c,f);break;case "GetSettings_rid":f=new At;g.D(f,1,d);g.D(f,2,String(e));Bt(c,f);break;case "GetTrending_rid":f=new At;g.D(f,1,d);g.D(f,2,String(e));Bt(c,f);break;case "GetWatchNext_rid":f=new At;g.D(f,1,d);g.D(f,2,String(e));Bt(c,f);break;case "yt_red":g.D(c,14,!!e);break;case "yt_ad":g.D(c,9,!!e)}}kB(c);c=new zt;c=g.D(c,25,!0);c=g.D(c,1,V[QA(g.Q("TIMING_ACTION"))]);(b=g.Q("PREVIOUS_ACTION"))&&g.D(c,13,V[QA(b)]);(b=g.Q("CLIENT_PROTOCOL"))&&g.D(c,33,b);(b=g.Q("CLIENT_TRANSPORT"))&&
g.D(c,34,b);(b=g.Bz())&&"UNDEFINED_CSN"!==b&&g.D(c,4,b);b=nB();1!==b&&-1!==b||g.D(c,6,!0);b=JA();a:{d=kva();for(e=0;e<d.length;e++)if("cold"===Md(d[e],3)){d=!0;break a}d=!1}if(d&&(g.D(c,3,"cold"),Cva(b),b=Eva(),0<b.length))for(b=g.r(b),d=b.next();!d.done;d=b.next())d=d.value,e=new xt,g.D(e,1,d),Jd(c,83,xt,e);kB(c)}else{b=g.Q("TIMING_INFO",{});for(c in b)b.hasOwnProperty(c)&&g.$A(c,b[c]);c={isNavigation:!0,actionType:QA(g.Q("TIMING_ACTION"))};if(b=g.Q("PREVIOUS_ACTION"))c.previousAction=QA(b);if(b=
g.Q("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.Q("CLIENT_TRANSPORT"))c.transportProtocol=b;(b=g.Bz())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=nB();if(1===b||-1===b)c.isVisible=!0;b=JA();if("cold"===b.yt_lt&&(c.loadType="cold",Cva(b),b=Eva(),0<b.length))for(c.resourceInfo=[],b=g.r(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});YA(c)}c=JA();b=LA();if("cold"===c.yt_lt||"cold"===b.loadType){d=DA();e=KA();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)h in e||
XA(h,d[h]);h={};d=!1;e=g.r(Object.keys(c));for(f=e.next();!f.done;f=e.next())f=f.value,(f=wva(f,c[f]))&&!ova(LA(),f)&&(Wz(b,f),Wz(h,f),d=!0);d&&YA(h)}HA(!0);h=g.Q("TIMING_ACTION");g.Ha("ytglobal.timingready_")&&h&&lB("_start")&&gva()&&nva()}OO(this);g.Gx(a)}this.py&&(this.py=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Mv("embedsRequestStorageAccessResult",{resolved:!0});lya(!0);Uy();window.location.reload()},function(){g.Mv("embedsRequestStorageAccessResult",{resolved:!1});
a.Sw()})};
g.k.KC=function(){};
g.k.Ht=function(){};
g.k.zw=function(){};
g.k.iK=function(){};
g.k.Sw=function(){var a=this.api.zb();g.W(a,2)&&g.uN(this.api)||(g.fK(a)?this.api.pauseVideo():(this.api.SI(),this.api.playVideo(),this.Mn&&document.activeElement===this.Mn.C.element&&this.api.getRootNode().focus()))};
g.k.R1=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!QO(this,Dx(a)))if(a=this.api.R(),this.api.R().K("player_doubletap_to_seek")&&this.py)this.py=!1;else if(a.gb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Zy(d)})}catch(d){this.Zy(d)}};
g.k.Zy=function(a){String(a).includes("fullscreen error")?g.rz(a):g.qz(a)};
g.k.S1=function(a){VHa(this,.3,a.scale);g.Gx(a)};
g.k.T1=function(a){VHa(this,.1,a.scale)};
g.k.xb=function(){var a=this.api.Za().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Xd.resize();g.N(b,"ytp-fullscreen",this.api.isFullscreen());g.N(b,"ytp-large-width-mode",c);g.N(b,"ytp-small-mode",this.Dg());g.N(b,"ytp-tiny-mode",this.XC());g.N(b,"ytp-big-mode",this.Qf());this.vf&&this.vf.resize(a)};
g.k.wh=function(a){this.Sb(a.state);this.vn()};
g.k.qA=aa(30);g.k.MH=function(){var a=!!this.KI&&!this.api.Ve()&&!this.PJ,b=2===this.api.getPresentingPlayerType(),c=this.api.R();if(b){if(KXa&&c.K("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=oO(this.api.ob());return a&&b.MK()}return a&&(c.Jk||this.api.isFullscreen()||c.Kb)};
g.k.vn=function(){var a=this.MH();this.Tm!==a&&(this.Tm=a,g.N(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Sb=function(a){var b=a.isCued()||this.api.Km()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.lL&&this.uc(this.lL),this.lL=this.P(this.api.Za(),"touchstart",this.U1,void 0,b));var c=a.Oc()&&!g.W(a,32)||this.api.kz();wO(this.Xd,128,!c);c=3===this.api.getPresentingPlayerType();wO(this.Xd,256,c);c=this.api.getRootNode();if(g.W(a,2))var d=[j4.ENDED];else d=[],g.W(a,8)?d.push(j4.PLAYING):g.W(a,4)&&d.push(j4.PAUSED),g.W(a,1)&&!g.W(a,32)&&d.push(j4.BUFFERING),g.W(a,32)&&
d.push(j4.SEEKING),g.W(a,64)&&d.push(j4.UNSTARTED);g.qc(this.jG,d)||(g.ko(c,this.jG),this.jG=d,g.io(c,d));d=this.api.R();var e=g.W(a,2);a:{var f=this.api.R();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.W(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:vXa(oO(this.api.ob())))||g.MF(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.N(c,"ytp-hide-controls",!f);g.N(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.lI);g.W(a,128)&&!g.MF(d)?(this.vf||
(this.vf=new g.FO(this.api),g.M(this,this.vf),g.AN(this.api,this.vf.element,4)),this.vf.u(a.getData()),this.vf.show()):this.vf&&(this.vf.dispose(),this.vf=null)};
g.k.Wk=function(){return this.api.ri()&&this.api.nm()?(this.api.setCardsVisible(!1,!1),!0):this.api.Ve()?(g.vN(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.lI=a;this.Dk()};
g.k.Qf=function(){return!1};
g.k.Dg=function(){return!this.Qf()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.XC=function(){return this.Dg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.mz=function(){var a=this.api.R();if(!g.MF(a)||!a.K("embeds_enable_allow_watch_again_endscreen_for_eligible_shorts")||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.W||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.MC;var b;return!(null==(b=this.api.getVideoData())||!b.isShortsEligible)&&a.width<=a.height};
g.k.Uj=function(){return this.EE};
g.k.Em=function(){return null};
g.k.Py=function(){return null};
g.k.Sj=function(){var a=this.api.Za().getPlayerSize();return new g.vl(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.nt=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.Za().oA(a)};
g.k.un=function(){};
g.k.aP=function(){return null};g.u(TO,g.cz);g.k=TO.prototype;g.k.Bv=function(){return 1E3*this.api.getDuration(this.Fl,!1)};
g.k.stop=function(){this.j&&this.Sc.uc(this.j)};
g.k.Wb=function(){var a=this.api.getProgressState(this.Fl);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.R().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Fl,!1)};this.X("h")};
g.k.getProgressState=function(){return this.u};
g.k.bd=function(a){g.uJ(a,2)&&this.X("g")};g.u(UO,g.X);UO.prototype.onClick=function(){this.G.Ka("BACK_CLICKED")};g.u(g.VO,g.X);g.VO.prototype.show=function(){g.X.prototype.show.call(this);g.$n(this.j)};
g.VO.prototype.hide=function(){this.u.stop();g.X.prototype.hide.call(this)};
g.VO.prototype.Ht=function(a){a?g.W(this.G.zb(),64)||WO(this,jL(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?WO(this,cFa(),"Stop live playback"):WO(this,YEa(),"Pause"))};g.u(ZO,g.X);g.k=ZO.prototype;g.k.od=function(){this.G.R().K("player_new_info_card_format")&&g.go(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.MF(this.G.R())||(this.u.show(),g.Wx("iv-button-shown"))};
g.k.Ib=function(){g.Wx("iv-button-hidden");this.u.hide()};
g.k.qh=function(){return this.tb&&4!==this.u.state};
g.k.ea=function(){this.j&&this.j();g.X.prototype.ea.call(this)};
g.k.J0=function(){g.Wx("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.ri();var b=g.go(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Wx("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.nm(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.u(aP,g.X);g.k=aP.prototype;g.k.hT=function(){this.G.ri()&&this.G.nm()&&this.qh()&&this.Ib()};
g.k.ZK=function(){this.Ib();!this.G.ri()&&this.G.R().K("enable_error_corrections_infocards_icon_web")&&this.Gh.Ib();g.Wx("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.G.Ka("innertubeCommand",this.onClickCommand):this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.tV=function(){g.Wx("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.w2=function(a){this.G.R().K("player_new_info_card_format")&&!g.MF(this.G.R())?this.Gh.Ib():this.G.R().K("enable_error_corrections_infocards_icon_web")&&this.Gh.od();this.j||!a||this.G.nm()||this.u&&this.u.isActive()||(this.od(a),g.Wx("iv-teaser-shown"))};
g.k.od=function(a){this.onClickCommand=a.onClickCommand;this.Ja("text",a.teaserText);this.element.setAttribute("dir",g.wo(a.teaserText));this.C.show();this.u=new g.Zn(function(){g.ho(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.K("player_new_info_card_format")&&!g.MF(this.G.R())&&this.Gh.Ib();this.yL()},0,this);
this.u.start();YO(this.Gh,!1);this.j=new g.Zn(this.Ib,580+a.durationMs,this);this.j.start();this.D.push(this.Na("mouseover",this.RM,this));this.D.push(this.Na("mouseout",this.QM,this))};
g.k.yL=function(){if(!this.G.R().K("player_new_info_card_format")&&g.MF(this.G.R())&&this.tb){var a=this.Gh.element.offsetLeft,b=g.eh("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Gh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.uX=function(){g.MF(this.G.R())&&this.V.Dg()&&this.tb&&this.N.start()};
g.k.RM=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()};
g.k.QM=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()};
g.k.X0=function(){this.j&&this.j.stop()};
g.k.W0=function(){this.Ib()};
g.k.ek=function(){this.Ib()};
g.k.Ib=function(){!this.j||this.B&&this.B.isActive()||(g.Wx("iv-teaser-hidden"),this.C.hide(),g.jo(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Zn(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.uc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);YO(this.Gh,!0);!this.G.ri()&&this.G.R().K("enable_error_corrections_infocards_icon_web")&&this.Gh.Ib()},330,this),this.B.start())};
g.k.qh=function(){return this.tb&&4!==this.C.state};
g.k.ea=function(){var a=this.G.getRootNode();a&&g.jo(a,"ytp-cards-teaser-shown");g.bf(this.u,this.B,this.j);g.X.prototype.ea.call(this)};var p4={},bP=(p4.BUTTON="ytp-button",p4.TITLE_NOTIFICATIONS="ytp-title-notifications",p4.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",p4.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",p4.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",p4);g.u(cP,g.X);cP.prototype.onClick=function(){this.api.qb(this.element);var a=!this.j;this.Ja("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Ja("pressed",a);YHa(this,a)};g.u(g.eP,g.X);g.eP.prototype.u=function(){g.ho(this.element,"ytp-sb-subscribed")};
g.eP.prototype.B=function(){g.jo(this.element,"ytp-sb-subscribed")};g.u(fP,g.X);g.k=fP.prototype;g.k.nK=function(){bIa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.uH=function(){if($Ha(this)&&!this.isExpanded()){this.Ja("flyoutUnfocusable","false");this.Ja("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Ta(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.rk&&a.subscribed&&(this.u.show(),this.api.Ta(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.NG=function(){this.Ja("flyoutUnfocusable","true");this.Ja("channelTitleFocusable","-1");this.B&&this.B.start()};
g.k.Fa=function(){var a=this.api.getVideoData(),b=this.api.R(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Cd&&!!a.profilePicture:g.MF(b)&&(c=!!a.videoId&&!!a.Cd&&!!a.profilePicture&&!(a.C&&b.pfpChazalUi)&&!b.B&&!(b.I&&200>this.api.getPlayerSize().width));var d=g.vG(this.api.R())+a.Cd;g.MF(b)&&(d=cIa(this,d));var e=a.Cd,f=a.profilePicture;b=g.MF(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var h=this.api.R();e=
g.vG(h)+e;g.MF(h)&&(e=cIa(this,e));this.J!==f&&(this.j.style.backgroundImage="url("+f+")",this.J=f);this.Ja("channelLink",e);this.Ja("channelLogoLabel",g.HJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.ho(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.jo(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Ta(this.j,c&&this.ra);this.subscribeButton&&(this.subscribeButton.channelId=a.Ek);this.Ja("expandedTitle",a.expandedTitle);this.Ja("channelTitleLink",d);this.Ja("expandedSubtitle",
a.expandedSubtitle)};g.u(gP,g.ZK);gP.prototype.PQ=function(){this.X("size-change")};
gP.prototype.focus=function(){this.content.focus()};
gP.prototype.JQ=function(){this.X("back")};g.u(g.hP,gP);g.hP.prototype.Bc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.kc(this.items,a,eIa);if(0<=b)return;b=~b;g.ic(this.items,b,0,a);g.ph(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.EJ,this);this.menuItems.X("size-change")};
g.hP.prototype.Bf=function(a){a.unsubscribe("size-change",this.EJ,this);this.isDisposed()||(g.Zb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.X("size-change"))};
g.hP.prototype.EJ=function(){this.menuItems.X("size-change")};
g.hP.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.u(jP,g.FN);jP.prototype.j=function(a){g.Hx(a)||39!==g.Ix(a)||(this.element.click(),g.Gx(a))};g.u(lP,g.X);g.k=lP.prototype;g.k.show=function(){g.X.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.Ja("userInfoFocusable","0");this.Ja("userInfoFocusable2","0")};
g.k.hide=function(){g.X.prototype.hide.call(this);this.Ja("userInfoFocusable","-1");this.Ja("userInfoFocusable2","-1")};
g.k.uV=function(a){var b=Dx(a),c=g.sh(this.closeButton.element,b),d=g.sh(this.element,b);a=this.j&&g.sh(this.j,b)&&g.YL(a);b&&(d||a)&&!c||this.hide()};
g.k.vV=function(){g.jM(function(){window.location.reload()},"user_info_panel",g.gG(this.Sa.R()))};
g.k.Fa=function(){var a=this.Sa.R();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.Li};this.Ja("icon",ZEa());this.Ja("watchingAsUsername",g.HJ("Watching as $USER_NAME",a));this.Ja("watchingAsEmail",g.HJ("($USER_EMAIL)",a))};g.u(mP,g.hP);g.k=mP.prototype;g.k.t0=function(){DO(this.qv.element)};
g.k.E0=function(){oP(this,this.G.getDebugText(!0))&&WO(this.Ec,bL())};
g.k.F0=function(){oP(this,this.G.getVideoEmbedCode())&&WO(this.Ec,TEa());this.G.qb(this.Zk.element);gM("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.G0=function(){oP(this,this.G.getVideoUrl(!0,!0))&&WO(this.Ec,gL());this.G.qb(this.getVideoUrl.element);gM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.H0=function(){oP(this,this.G.getVideoUrl(!1,!0))&&WO(this.Ec,gL());this.G.qb(this.dl.element);gM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Xj)||b.setValue(a)};
g.k.Q0=function(){this.G.setLoopVideo(this.Xj.getValue());this.ib.Ib();this.G.qb(this.Xj.element)};
g.k.M1=function(a){this.G.reportPlaybackIssue();if(g.AO(a,this.G,!jG(this.G.R()))){a=this.G;var b=a.app.getFeedbackProductData();a.Ka("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.ib.Ib()};
g.k.g2=function(){this.G.isVideoInfoVisible()?this.G.hideVideoInfo():this.G.showVideoInfo();this.ib.Ib()};
g.k.f2=function(){this.yk&&(this.KA||(this.KA=new lP(this.G,this.yk.element),g.M(this,this.KA),g.AN(this.G,this.KA.element,4)),this.KA.show(),this.ib.Ib(),this.G.qb(this.yk.element))};
g.k.onVideoDataChange=function(a,b){this.GK(b)};
g.k.GK=function(a){var b=this.G.R(),c=2===this.G.getPresentingPlayerType(),d=!c||a.isListed;d=!b.N&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.u&&(b.fmt=a.u.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Y&&(b.partnerid=a.Y),b=g.wi("//support.google.com/googleplay/",b));g.YK(this.Zk,d&&a.allowEmbed);g.YK(this.getVideoUrl,d);g.YK(this.dl,d&&!a.isLivePlayback);
this.iA.Sd(b,"href");var e;null==(e=this.Xj)||g.YK(e,!a.isLivePlayback&&!c);var f;null==(f=this.yk)||g.YK(f,!c)};
g.k.lc=function(a){g.hP.prototype.lc.call(this,a);this.G.Ta(this.Zk.element,a);this.G.Ta(this.getVideoUrl.element,a);this.G.Ta(this.dl.element,a);this.Xj&&this.G.Ta(this.Xj.element,a);this.yk&&this.G.Ta(this.yk.element,a)};g.u(g.pP,g.CN);g.k=g.pP.prototype;g.k.show=function(){g.CN.prototype.show.call(this);this.Zw()};
g.k.hide=function(){g.CN.prototype.hide.call(this);1<this.j.length&&g.rP(this)};
g.k.Zw=function(){hIa(this);this.tb&&(gIa(this),g.Il(this.element,this.size))};
g.k.Ti=function(){var a=this.j.pop();qP(this,a,this.j[this.j.length-1],!0)};
g.k.wV=function(a){if(!g.Hx(a))switch(g.Ix(a)){case 27:this.Ib();g.Gx(a);break;case 37:1<this.j.length&&this.Ti();g.Gx(a);break;case 39:g.Gx(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.ea=function(){g.CN.prototype.ea.call(this);this.C&&this.C.dispose();this.I&&this.I.dispose()};g.u(g.sP,g.pP);g.k=g.sP.prototype;g.k.yV=function(a){var b=Dx(a);if(!(b&&(wh(b,"a")||wh(b,null,"ytp-no-contextmenu"))||this.tb)){var c;this.Y=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Gg(a.clientX,a.clientY):new g.Gg(0,0);this.W.start()}};
g.k.rR=function(){this.W.stop()};
g.k.D2=function(){this.open(this.Y)};
g.k.show=function(){this.D||(this.D=new mP(this.G,this.qa,this,this.Ec),g.M(this,this.D),g.nP(this,this.D));this.D.onLoopChange(this.G.getLoopVideo());g.pP.prototype.show.call(this);this.G.Ta(this.element,!0);this.D.lc(!0);this.element.tabIndex=-1;this.element.focus()};
g.k.hide=function(){jIa(this);g.pP.prototype.hide.call(this);this.G.Ta(this.element,!1);this.D&&this.D.lc(!1)};
g.k.o0=function(a){var b=Dx(a);this.tb||b&&(wh(b,"a")||wh(b,null,"ytp-no-contextmenu"))||(g.Gx(a),this.open(Fx(a)))};
g.k.od=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Gg(b.x,b.y))}g.pP.prototype.od.call(this,a)};
g.k.open=function(a){kIa(this);var b=this.G.getVideoData();g.N(this.element,"ytp-dni",b.C);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.pP.prototype.od.call(this);var c=document.body;b=new ol(0,Infinity,Infinity,0);var d=ah(c);for(var e=d.j.body,f=d.j.documentElement,h=Cda(d.j);c=Eha(c);)if(!(g.Dc&&0==c.clientWidth||g.kf&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Cl(c,"overflow")){var l=g.Gl(c),m=new g.Gg(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=Bda(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<
d.top||a.y>=d.bottom)&&(e&=-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));
d=new g.vl(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.El(this.element,new g.Gg(d.left,d.top));g.bz(this.B);this.B.P(document,"contextmenu",this.z0);this.B.P(this.G,"fullscreentoggled",this.onFullscreenToggled);this.B.P(this.G,"pageTransition",this.xV)};
g.k.z0=function(a){if(!g.Hx(a)){var b=Dx(a);g.sh(this.element,b)||this.Ib();this.G.R().disableNativeContextMenu&&g.Gx(a)}};
g.k.onFullscreenToggled=function(){this.Ib();kIa(this)};
g.k.xV=function(){this.Ib()};g.u(g.tP,g.X);g.tP.prototype.onClick=function(){var a=this,b,c,d,e;return g.z(function(f){if(1==f.j)return b=a.api.R(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.x(f,mIa(a,e),2);f.u&&lIa(a);a.api.qb(a.element);g.pa(f)})};
g.tP.prototype.Fa=function(){var a=this.api.R(),b=this.api.getVideoData();this.Ja("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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.Ja("title-attr","Copy link");var c=this.api.Za().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.Yl&&!(b.C&&a.pfpChazalUi);g.N(this.element,"ytp-copylink-button-visible",this.visible);g.YK(this,this.visible);vP(this.tooltip);this.api.Ta(this.element,this.visible&&this.ra)};
g.tP.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Ta(this.element,this.visible&&a)};
g.tP.prototype.ea=function(){g.X.prototype.ea.call(this);g.jo(this.element,"ytp-copylink-button-visible")};g.u(wP,g.X);g.k=wP.prototype;g.k.show=function(){g.X.prototype.show.call(this);g.$n(this.j)};
g.k.hide=function(){this.u.stop();g.jo(this.element,"ytp-chapter-seek");g.jo(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)};
g.k.zw=function(a,b,c,d){this.Aw(a,d)};
g.k.Aw=function(a,b){g.bo(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.jo(this.element,"ytp-chapter-seek");this.Ja("chapterSeekText","");a=g.HJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Ja("seekTime",a)};
g.k.dE=function(a,b){g.bo(this.j);this.u.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);g.ho(this.element,"ytp-chapter-seek");this.Ja("chapterSeekText",b);this.Ja("seekTime","")};g.u(xP,g.X);g.k=xP.prototype;g.k.show=function(){g.X.prototype.show.call(this);g.$n(this.u)};
g.k.hide=function(){this.B.stop();g.jo(this.element,"ytp-chapter-seek");g.jo(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)};
g.k.zw=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.G.qb(e);g.bo(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.Za().getPlayerSize().height;e=this.G.Za().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 h=2.5*f;f=h/2;var l=this.ya("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=
h+"px";1===a?(a=this.G.Za().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.ya("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");nIa(this,d)};
g.k.Aw=function(a,b){var c=this.G.Za().getPlayerSize();g.bo(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.ho(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";nIa(this,b)};
g.k.dE=function(a,b){g.bo(this.u);this.B.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);this.j.style.width="0";this.j.style.height="0";g.ho(this.element,"ytp-chapter-seek");this.Ja("seekText",b);this.Ja("seekTime","")};var G0a={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(G0a).reduce(function(a,b){a[G0a[b]]=b;return a},{});
var H0a={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(H0a).reduce(function(a,b){a[H0a[b]]=b;return a},{});
var I0a={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(I0a).reduce(function(a,b){a[I0a[b]]=b;return a},{});var J0a,K0a;J0a=[{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"}];K0a=[{option:0,text:yP(0)},{option:.25,text:yP(.25)},{option:.5,text:yP(.5)},{option:.75,text:yP(.75)},{option:1,text:yP(1)}];
g.CP=[{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:J0a},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:yP(.5)},{option:-1,text:yP(.75)},{option:0,text:yP(1)},{option:1,text:yP(1.5)},{option:2,
text:yP(2)},{option:3,text:yP(3)},{option:4,text:yP(4)}]},{option:"background",text:"Background color",options:J0a},{option:"backgroundOpacity",text:"Background opacity",options:K0a},{option:"windowColor",text:"Window color",options:J0a},{option:"windowOpacity",text:"Window opacity",options:K0a},{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:yP(.25)},{option:.5,text:yP(.5)},{option:.75,text:yP(.75)},{option:1,text:yP(1)}]}];g.u(g.BP,g.YD);g.k=g.BP.prototype;
g.k.lP=function(a){var b=!1,c=g.Ix(a),d=Dx(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.R();g.Hx(a)?(e=!1,h=!0):l.Ng&&(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);XO(this.Ec,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);XO(this.Ec,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.cg()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.cg()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&AP(this,!0);(b||h)&&this.Xd.un();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Gx(a);l.C&&(a={keyCode:g.Ix(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Hx(a),fullscreen:this.api.isFullscreen()},this.api.Ka("onKeyPress",a))};
g.k.mP=function(a){this.handleGlobalKeyUp(g.Ix(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.yN(this.api.ob());c&&(c=c.Eq)&&c.tb&&(c.hP(a),b=!0);9===a&&(AP(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.R();if(e.Ng)return h;var l=g.yN(this.api.ob());if(l&&(l=l.Eq)&&l.tb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.gP(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&oka(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){l=this.api.getVideoData();var m,n;f=null==(m=this.xc)?void 0:null==
(n=m.u)?void 0:n.isEnabled;m=l?l.oi:[];n=tT?d:c;switch(a){case 80:b&&!e.Ea&&(WO(this.Ec,aFa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Ea&&(WO(this.Ec,hL(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.cg()&&(this.api.startSeekCsiAction(),this.j?this.j.Aw(-1,10):WO(this.Ec,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.cg()&&(this.api.startSeekCsiAction(),this.j?this.j.Aw(1,10):WO(this.Ec,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.cg()&&(this.api.startSeekCsiAction(),n?(n=qIa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.dE(-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(this.j?this.j.Aw(-1,5):WO(this.Ec,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.cg()&&(this.api.startSeekCsiAction(),n?(n=pIa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.dE(1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(null!=this.j?this.j.Aw(1,5):WO(this.Ec,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),XO(this.Ec,this.api.getVolume(),!1)):(this.api.mute(),XO(this.Ec,0,!0));h=!0;break;case 32:case 75:e.Ea||(f?this.xc.zH():(h=!g.fK(this.api.zb()),this.Ec.Ht(h),h?this.api.playVideo():this.api.pauseVideo()),h=!0);break;case 190:b?e.Ed&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),WHa(this.Ec,!1),h=!0):this.api.cg()&&(tIa(this,1),h=!0);break;case 188:b?e.Ed&&(h=this.api.getPlaybackRate(),
this.api.setPlaybackRate(h-.25,!0),WHa(this.Ec,!0),h=!0):this.api.cg()&&(tIa(this,-1),h=!0);break;case 70:FHa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:f?(this.xc.EO(),h=!0):this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.jO(this.api.ob())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),XHa(this.Ec,!e||e&&!e.displayName),h=!0);break;case 79:DP(this,"textOpacity");break;case 87:DP(this,"windowOpacity");break;case 187:case 61:DP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:DP(this,"fontSizeIncrement",!0,!0)}var p;b||c||d||(48<=a&&57>=a?p=a-48:96<=a&&105>=a&&(p=a-96));null!=p&&this.api.cg()&&
(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.Xd.un()}return h};
g.k.ea=function(){g.bo(this.B);g.YD.prototype.ea.call(this)};g.u(EP,g.X);EP.prototype.Fa=function(){var a=g.MF(this.G.R())&&g.xN(this.G)&&g.W(this.G.zb(),128),b=this.G.getPlayerSize();this.visible=this.j.Dg()&&!a&&240<=b.width&&!(this.G.getVideoData().C&&this.G.R().pfpChazalUi);g.N(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&vP(this.tooltip);this.G.Ta(this.element,this.visible&&this.ra)};
EP.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.G.Ta(this.element,this.visible&&a)};
EP.prototype.ea=function(){g.X.prototype.ea.call(this);g.jo(this.element,"ytp-overflow-button-visible")};g.u(FP,g.CN);g.k=FP.prototype;g.k.zV=function(a){a=Dx(a);g.sh(this.element,a)&&(g.sh(this.j,a)||g.sh(this.closeButton,a)||DN(this))};
g.k.Ib=function(){g.CN.prototype.Ib.call(this);this.tooltip.Nj(this.element)};
g.k.show=function(){this.tb&&this.G.X("OVERFLOW_PANEL_OPENED");g.CN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");uIa(this,!0)};
g.k.hide=function(){g.CN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");uIa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.qh()&&DN(this)};
g.k.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.tb){b.focus();break}};g.u(HP,g.X);HP.prototype.onClick=function(a){g.AO(a,this.api)&&this.api.playVideoAt(this.index)};g.u(IP,g.CN);g.k=IP.prototype;g.k.show=function(){g.CN.prototype.show.call(this);this.B.P(this.api,"videodatachange",this.GF);this.B.P(this.api,"onPlaylistUpdate",this.GF);this.GF()};
g.k.hide=function(){g.CN.prototype.hide.call(this);g.bz(this.B);this.updatePlaylist(null)};
g.k.GF=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.iE=function(){var a=this.playlist,b=a.u;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 HP(this.api,a,d);this.j.push(e);e.xa(this.items)}this.selected=this.j[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.C2=function(a){var b=this.api.getVideoUrl(!0);g.BO(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.iE,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.iE,this);var b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.HJ(c,d),playlisturl:this.api.getVideoUrl(!0)});this.iE()}else this.tb&&this.hide();
else this.playlist&&this.iE()};
g.k.focus=function(){this.selected.focus()};
g.k.ea=function(){this.hide();g.CN.prototype.ea.call(this)};g.u(JP,g.X);
JP.prototype.Fa=function(){var a=g.MF(this.api.R());g.N(this.element,"ytp-playlist-menu-button-tiny",400>this.api.Za().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.HJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.HJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.tb||(this.show(),vP(this.tooltip)),this.visible=!0,this.lc(!0)):
this.tb&&(this.hide(),this.lc(!1),vP(this.tooltip))};
JP.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Ta(this.element,this.visible&&a)};
JP.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Fa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Fa,this);this.Fa()};g.u(KP,g.X);g.k=KP.prototype;g.k.s0=function(){this.C?NP(this):LP(this)};
g.k.r0=function(){this.C?(OP(this),this.I=!0):LP(this)};
g.k.C_=function(){this.D=!0;MP(this,1);this.G.X("promotooltipacceptbuttonclicked",this.acceptButton);OP(this);this.u&&this.G.qb(this.acceptButton)};
g.k.y0=function(){this.D=!0;MP(this,2);OP(this);this.u&&this.G.qb(this.dismissButton)};
g.k.AV=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.N){var b=!0,c=g.eh("ytp-ad-overlay-ad-info-dialog-container"),d=Dx(a);if(this.B&&d&&g.sh(this.B,d))this.B=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=yIa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.sh(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.sh(this.element,d))}this.j&&this.tb&&!c&&(!d||b&&g.YL(a))&&(this.D=!0,OP(this))}}};
g.k.xb=function(){this.I||(this.j||(this.j=vIa(this)),NP(this))};
var wIa={"ytp-settings-button":g.lL()};g.u(PP,g.X);PP.prototype.onStateChange=function(a){this.Qc(a.state)};
PP.prototype.Qc=function(a){g.YK(this,g.W(a,2))};
PP.prototype.onClick=function(){this.G.zb();this.G.playVideo()};g.u(g.QP,g.X);g.k=g.QP.prototype;g.k.onClick=function(){var a=this.api.R(),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(this.oP)}catch(e){e instanceof Error&&this.oP(e)}else this.j.Wk(),DN(this.u,this.element,!1);this.api.qb(this.element)};
g.k.Fa=function(){var a=this.api.R(),b=this.api.getVideoData(),c=g.MF(a)&&g.xN(this.api)&&g.W(this.api.zb(),128);this.Ja("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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.Yl||c||b.C&&a.pfpChazalUi;c=this.api.Za().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.N(this.element,"ytp-share-button-visible",this.visible);g.YK(this,this.visible);vP(this.tooltip);this.api.Ta(this.element,this.visible&&this.ra)};
g.k.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Ta(this.element,this.visible&&a)};
g.k.ea=function(){g.X.prototype.ea.call(this);g.jo(this.element,"ytp-share-button-visible")};
g.k.oP=function(a){"InvalidStateError"!==a.name&&"AbortError"!==a.name&&("NotAllowedError"===a.name?(this.j.Wk(),DN(this.u,this.element,!1)):g.qz(a))};g.u(g.RP,g.CN);g.k=g.RP.prototype;g.k.BV=function(a){a=Dx(a);g.sh(this.D,a)||g.sh(this.closeButton,a)||DN(this)};
g.k.Ib=function(){g.CN.prototype.Ib.call(this);this.tooltip.Nj(this.element)};
g.k.show=function(){var a=this.tb;g.CN.prototype.show.call(this);this.Fa();a||this.api.Ka("onSharePanelOpened")};
g.k.PZ=function(){this.tb&&this.Fa()};
g.k.Fa=function(){var a=this;g.ho(this.element,"ytp-share-panel-loading");g.jo(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&uM(this.api.Cm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.jo(a.element,"ytp-share-panel-loading"),AIa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.XF(this.api.R())&&(b=g.wi(b,g.aN({},"emb_share")));this.Ja("link",b);this.Ja("linkText",b);this.Ja("shareLinkWithUrl",g.HJ("Share link $URL",{URL:b}));DO(this.B)};
g.k.onFullscreenToggled=function(a){!a&&this.qh()&&DN(this)};
g.k.focus=function(){this.B.focus()};
g.k.ea=function(){g.CN.prototype.ea.call(this);zIa(this)};g.u(UP,g.X);g.k=UP.prototype;g.k.nJ=function(){};
g.k.oJ=function(){};
g.k.uA=function(){return!0};
g.k.x4=function(){if(this.expanded){this.qa.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.qa.hide();this.Ya=34+a;g.N(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Ya)+"px";this.Y.start()};
g.k.aY=function(){this.badge.element.style.width=(this.expanded?this.Ya:34)+"px";this.Ha.start()};
g.k.B5=function(){g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Dj=function(){this.uA()?this.N.show():this.N.hide();BIa(this)};
g.k.CV=function(){this.enabled=!1;this.Dj()};
g.k.A5=function(){this.Dj()};
g.k.g0=function(a){this.Ra=1===a;this.Dj();g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.C0=function(){g.N(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Dj()};g.u(VP,UP);g.k=VP.prototype;g.k.ea=function(){WP(this);UP.prototype.ea.call(this)};
g.k.nJ=function(a){a.target!==this.dismissButton.element&&(DIa(this,!1),this.G.Ka("innertubeCommand",this.onClickCommand))};
g.k.oJ=function(){this.B=!0;DIa(this,!0);this.Dj()};
g.k.t1=function(a){this.Ea=a;this.Dj()};
g.k.j1=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.va&&(this.V=a,a||(a=3+this.G.getCurrentTime(),this.le(a)))};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.V=this.va=this.u=this.J=!1,WP(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.G.xk(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.xk(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.zA(a.text);var h;if(c=null==(h=a.dismissButton)?void 0:h.a11yLabel)this.Ua=g.zA(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;dI(b)?this.V=this.va=!0:this.le()}CIa(this);TP(this);this.Dj()};
g.k.uA=function(){return!this.Ea&&this.enabled&&!this.B&&!this.eb.Dg()&&!this.Ra&&!this.V&&(this.u||this.j)};
g.k.zf=function(a){(this.u=a)?(SP(this),TP(this,!1)):(WP(this),this.W.start());this.Dj()};
g.k.le=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.sA(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.sA(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.le(b)};g.u(XP,g.CN);XP.prototype.show=function(){g.CN.prototype.show.call(this);this.j.start()};
XP.prototype.hide=function(){g.CN.prototype.hide.call(this);this.j.stop()};
XP.prototype.Qp=function(a,b){"dataloaded"===a&&((this.bf=b.bf,this.Kd=b.Kd,isNaN(this.bf)||isNaN(this.Kd))?this.B&&(this.G.Af("intro"),this.G.removeEventListener(g.uA("intro"),this.I),this.G.removeEventListener(g.vA("intro"),this.D),this.G.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.G.addEventListener(g.uA("intro"),this.I),this.G.addEventListener(g.vA("intro"),this.D),this.G.addEventListener("onShowControls",this.C),a=new g.sA(this.bf,this.Kd,{priority:9,namespace:"intro"}),
this.G.le([a]),this.B=!0))};g.u(YP,g.X);YP.prototype.onClick=function(){this.G.Dq()};
YP.prototype.Fa=function(){var a=!0;g.MF(this.G.R())&&(a=a&&480<=this.G.Za().getPlayerSize().width);g.YK(this,a);this.Ja("icon",this.G.Bg()?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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"}}]}:{F:"svg",
T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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 zv("yt.autonav");g.u(ZP,g.X);g.k=ZP.prototype;
g.k.Fx=function(){var a;if(a=3!==this.G.getPresentingPlayerType()&&g.BN(this.G)&&400<=this.G.Za().getPlayerSize().width)a=this.Wc(),a=this.G.R().K("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.t5;if(a)this.j||(this.j=!0,g.YK(this,this.j),this.G.R().K("web_player_autonav_toggle_always_listen")||EIa(this),a=this.Wc(),this.SM(a.autonavState),this.G.Ta(this.element,this.j));else if(this.j=!1,g.YK(this,this.j),!this.G.R().K("web_player_autonav_toggle_always_listen")){this.G.R().K("web_player_autonav_toggle_always_listen");a=
g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.uc(b.value)}};
g.k.SM=function(a){GIa(this)?this.isChecked=1!==a:((a=1!==a)||(g.rv.getInstance(),a=g.T("web_autonav_allow_off_by_default")&&!g.tv(0,141)&&g.Q("AUTONAV_OFF_BY_DEFAULT")?!1:!g.tv(0,140)),this.isChecked=a);FIa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.hE(this.isChecked?2:1);FIa(this);if(GIa(this)){var a=this.Wc().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.G.Ka("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.G.Ka("innertubeCommand",a.onDisabledCommand)}this.G.qb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.ya("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};
g.k.Wc=function(){var a;this.G.R().K("web_player_autonav_toggle_app_video_data_killswitch")||(a=1);return this.G.getVideoData(a)};g.u(g.aQ,g.X);g.aQ.prototype.ea=function(){this.ctx=null;g.X.prototype.ea.call(this)};g.u(bQ,g.X);bQ.prototype.onClick=function(){this.G.Ka("innertubeCommand",this.j)};
bQ.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
bQ.prototype.I=function(){this.B.disabled=null==this.j;g.N(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.Wb()};g.u(cQ,bQ);cQ.prototype.onClickCommand=function(a){g.av(a,SH)&&this.Wb()};
cQ.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.V5)?void 0:c.command;bQ.prototype.I.call(this)};
cQ.prototype.Wb=function(){var a="",b=this.C.j,c=this.G.getLoopRange();c=!this.G.K("web_repeating_chapters")&&c||"clips"===(null==c?void 0:c.type);if(1<b.length&&!c){a=1E3*this.G.getProgressState().current;c=zP(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.u)this.G.Ka("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;bQ.prototype.J.call(this,a)};g.u(g.dQ,g.X);g.dQ.prototype.bd=function(a){g.W(a.state,32)?eQ(this,this.api.Ii()):this.tb&&(g.W(a.state,16)||g.W(a.state,1))||this.j.hide()};
g.dQ.prototype.Vd=function(){var a=this.api.zb();(g.W(a,32)||g.W(a,16))&&fQ(this)};
g.dQ.prototype.D=function(){this.B=NaN;fQ(this)};
g.dQ.prototype.hide=function(){this.u&&eQ(this,null);g.X.prototype.hide.call(this)};g.u(gQ,g.X);gQ.prototype.onClick=function(){this.Sa.qb(this.element);this.Sa.Ka("onFullerscreenEduClicked")};
gQ.prototype.Fa=function(){this.Sa.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Sa.Ta(this.element,this.Sa.isFullscreen()&&!this.u)};g.u(g.hQ,g.X);g.k=g.hQ.prototype;g.k.onClick=function(){var a=this;if(this.G.R().gb||this.G.R().I){this.G.qb(this.element);try{this.G.toggleFullscreen().catch(function(b){a.Zy(b)})}catch(b){this.Zy(b)}}else DN(this.message,this.element,!0)};
g.k.Zy=function(a){String(a).includes("fullscreen error")?g.rz(a):g.qz(a);this.xJ()};
g.k.xJ=function(){this.disable();this.message.od(this.element,!0)};
g.k.Eo=function(){Xy()===this.G.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.pX=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.xJ()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=xx(["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.CN(this.G,{F:"div",Ca:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"},S:[b[0],{F:"a",T:{href:"https://support.google.com/youtube/answer/6276924",
target:this.G.R().J},Z:b[2]},b[4]]},100,!0);this.message.hide();g.M(this,this.message);this.message.subscribe("show",function(c){a.u.xv(a.message,c)});
g.AN(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Fa=function(){var a=FHa(this.G),b=this.G.R().I&&250>this.G.getPlayerSize().width;g.YK(this,a&&!b);this.G.Ta(this.element,this.tb)};
g.k.wk=function(a){if(a){var b={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"g",L:"ytp-fullscreen-button-corner-2",S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-3",S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-0",S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{F:"g",
L:"ytp-fullscreen-button-corner-1",S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=EO(this.G,"Exit full screen","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"g",L:"ytp-fullscreen-button-corner-0",S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-1",S:[{F:"path",
Nb:!0,L:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-2",S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-3",S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=EO(this.G,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});vP(this.u.pc())};
g.k.ea=function(){this.message||((0,this.j)(),this.j=null);g.X.prototype.ea.call(this)};g.u(iQ,bQ);iQ.prototype.onClickCommand=function(a){g.av(a,b_a)&&this.Wb()};
iQ.prototype.updateVideoData=function(){var a,b;this.j=null==(a=IIa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;bQ.prototype.I.call(this)};
iQ.prototype.Wb=function(){var a="",b=this.C.N,c,d=null==(c=IIa(this))?void 0:c.headerTitle;c=d?g.zA(d):"";d=this.G.getLoopRange();d=!this.G.K("web_repeating_chapters")&&d||"clips"===(null==d?void 0:d.type);1<b.length&&!d&&(a=1E3*this.G.getProgressState().current,d=oIa(b,a),a=null!=d?b[d].title:c,null!=d&&d!==this.currentIndex&&(this.G.Ka("innertubeCommand",b[d].onActiveCommand),this.currentIndex=d));bQ.prototype.J.call(this,a)};g.u(jQ,g.X);jQ.prototype.onClick=function(){this.G.Ka("onCollapseMiniplayer");this.G.qb(this.element)};
jQ.prototype.Fa=function(){this.visible=!this.G.isFullscreen();g.YK(this,this.visible);this.G.Ta(this.element,this.visible&&this.ra)};
jQ.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.G.Ta(this.element,this.visible&&a)};g.u(kQ,g.X);kQ.prototype.onVideoDataChange=function(a){this.Fa("newdata"===a)};
kQ.prototype.Fa=function(a){var b=this.G.getVideoData(),c=b.Oe,d=this.G.zb();d=(g.fK(d)||g.W(d,4))&&0<c.length;g.YK(this,d);a&&(this.j=!0);if(d){this.j&&g.$n(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.HJ("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.If("default.jpg")});vP(this.tooltip)}else this.u.stop()};
kQ.prototype.B=function(){uP(this.tooltip,this.element,"More cameras available");this.j=!1};g.u(lQ,g.CN);g.k=lQ.prototype;g.k.show=function(){var a=this.tb;g.CN.prototype.show.call(this);a||(this.B.P(this.api,"presentingplayerstatechange",this.Fa),this.B.P(this.api,"videodatachange",this.Fa),this.Fa())};
g.k.hide=function(){this.B&&(g.bz(this.B),g.CN.prototype.hide.call(this))};
g.k.Fa=function(){var a=this,b=this.api.getVideoData(),c=b.Oe,d,e={};for(d=0;d<c.length;e={PE:e.PE},d++){var f=this.j[d];f||(f=new g.X({F:"button",Ca:["ytp-multicam-menu-item","ytp-button"],T:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{F:"div",L:"ytp-multicam-menu-item-title",Z:"{{cameraName}}"}]}),e.PE=d,f.Na("click",function(n){return function(){var p=n.PE,q=a.api.getVideoData(),v=a.api,w=q.Oe[p];p=g.oN(v.app,1).getVideoData();q=v.getCurrentTime();w.id===p.videoId?(w=g.oN(v.app,
1),g.oN(v.app)!==w&&(v.app.Io(),p.isLivePlayback||v.seekTo(q))):v.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.bN}}}},4)}}(e)),f.xa(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=iG(this.api.R(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.zb();b=c.length||!b.isLoaded();g.fK(d)||g.W(d,4)||b||!this.qh()||DN(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Oe,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.ea=function(){g.bf(this.j);g.CN.prototype.ea.call(this)};g.u(mQ,g.K);mQ.prototype.j=function(){var a=(0,g.U)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.yo(L0a,a));1>a&&this.delay.start()};
var L0a=new g.xo(0,0,.4,0,.2,1,1,1),NIa=/[0-9.-]+|[^0-9.-]+/g;g.u(g.oQ,g.X);g.k=g.oQ.prototype;g.k.TM=function(a){this.visible=300<=a.width;g.YK(this,this.visible);this.G.Ta(this.element,this.visible&&this.ra)};
g.k.Y0=function(){this.G.R().va?this.G.isMuted()?this.G.unMute():this.G.mute():DN(this.message,this.element,!0);this.G.qb(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.R();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.W;isNaN(f)?QIa(this,a):nQ(this.qa,function(l){QIa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.N;isNaN(h)?RIa(this,d):nQ(this.V,function(l){RIa(c,h+(c.C-h)*l)},250);
this.C=d}e.va&&(e=EO(this.G,"Mute","m"),d=EO(this.G,"Unmute","m"),this.Ja("title",b?d:e),vP(this.tooltip))};
g.k.lc=function(a){g.X.prototype.lc.call(this,a);this.G.Ta(this.element,this.visible&&a)};
var OIa=["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"],PIa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.u(pQ,g.X);pQ.prototype.onClick=function(){this.G.togglePictureInPicture()};g.u(g.qQ,g.X);g.qQ.prototype.onStateChange=function(a){this.Qc(a.state);a=g.W(a.state,2);qG(this.G.R())&&(!this.u&&!a||this.u&&a?(this.hide(),this.G.Ta(this.element,!1)):(this.show(),this.G.Ta(this.element,!0)))};
g.qQ.prototype.Qc=function(a){var b=g.iI(this.G.getVideoData()),c=!1;g.fK(a)?a=b?4:2:g.W(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=EO(this.G,"Pause","k");break;case 3:b="Replay";break;case 1:b=EO(this.G,"Play","k");break;case 4:b="Stop live playback"}3===a?this.update({title:b,icon:SIa(a)}):(this.update({title:b}),(b=SIa(a))&&this.j&&3!==this.j?MIa(this.transition,this.element,b):this.Ja("icon",b));vP(this.tooltip);this.j=a}};
g.qQ.prototype.onVideoDataChange=function(){g.N(this.element,"ytp-play-button-playlist",g.xN(this.G))};
g.qQ.prototype.Sw=function(a){this.G.qb(this.element);if(g.fK(this.G.zb()))this.G.pauseVideo();else{if(this.G.wf()&&this.G.zb().isCued()){var b={},c;!this.G.K("web_player_csi_ctt_killswitch")&&(null==(c=this.G.getVideoData())?0:c.I)&&(b.cttAuthInfo={token:this.G.getVideoData().I,videoId:this.G.getVideoData().videoId});ZA("direct_playback",b)}this.G.ej().timerName="direct_playback";this.G.playVideo()}!this.G.R().K("miniplayer_disable_play_button_click_focus_killswitch")&&this.G.wf()&&a&&"click"===
a.type&&this.element.blur()};g.u(g.sQ,g.X);g.k=g.sQ.prototype;g.k.onVideoDataChange=function(){TIa(this);this.C&&(this.uc(this.C),this.C=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.P(this.G,"progresssync",this.EV);this.B=UIa(this);rQ(this);this.HF(this.G.Za().getPlayerSize())};
g.k.HF=function(a){a=void 0===a?this.G.Za().getPlayerSize():a;var b,c="clips"===(null==(b=this.G.getLoopRange())?void 0:b.type);a=(g.xN(this.G)||this.j&&g.BN(this.G)||VIa(this))&&!c&&(this.j||400<=a.width);g.YK(this,a);this.G.Ta(this.element,a)};
g.k.onClick=function(a){this.G.qb(this.element);var b=!0;this.I?b=g.AO(a,this.G):g.Gx(a);b&&(this.j&&5===this.G.getPresentingPlayerType()?this.G.X("ytoprerollinternstitialnext"):this.j?this.G.nextVideo(!0):this.B?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.EV=function(){var a=UIa(this);a!==this.B&&(this.B=a,rQ(this))};
g.k.ea=function(){this.u&&(this.u(),this.u=null);TIa(this);g.X.prototype.ea.call(this)};g.u(tQ,g.X);g.k=tQ.prototype;g.k.GV=function(a){this.JF(a.pageX);this.IF(a.pageX+a.deltaX);uQ(this)};
g.k.JF=function(a){this.N=a};
g.k.IF=function(a){if(!isNaN(this.N)&&0<this.thumbnails.length&&(this.J=a-this.N,0<this.thumbnails.length&&0!==this.J))if(this.u=this.I+this.J,a=ZIa(this,this.u),this.u<=this.C/2&&this.u>=YIa(this)){this.api.seekTo(a,!1);g.yl(this.B,"transform","translateX("+this.u+"px)");var b=g.XL(a),c=g.HJ("Seek to $PROGRESS",{PROGRESS:g.XL(a,!0)});this.update({ariamin:0,ariamax:Math.floor(this.api.getDuration()),arianow:Math.floor(a),arianowtext:c,seekTime:b})}else this.u=this.I};
g.k.FV=function(){var a=300>(0,g.U)()-this.qa;if(5>Math.abs(this.J)&&!a){this.qa=(0,g.U)();a=this.N+this.J;var b=this.C/2-a;this.JF(a);this.IF(a+b);uQ(this);this.api.qb(this.B)}uQ(this)};
g.k.mw=function(){vQ(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(ZIa(this,this.u));this.api.playVideo();a&&this.api.qb(this.playButton)};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.va=this.api.getCurrentTime(),g.N(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Y=this.P(this.element,"wheel",this.GV),this.Ta(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.N(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Y&&this.uc(this.Y);this.Ta(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.W=!1};
g.k.Ta=function(a){this.api.Ta(this.element,a);this.api.Ta(this.B,a);this.api.Ta(this.dismissButton,a);this.api.Ta(this.playButton,a)};
g.k.ea=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.X.prototype.ea.call(this)};
g.u(WIa,g.X);g.u(wQ,g.X);g.u($Ia,g.X);g.u(xQ,g.X);cJa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.j=b-c-d;this.position=g.Cg(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.u(BQ,g.X);g.u(g.DQ,g.ZK);g.k=g.DQ.prototype;
g.k.jT=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Af("timedMarkerCueRange");EQ(this);for(var c=g.r(b.Dd),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Nc[d])?void 0:e.markers;if(f){a=g.r(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new BQ;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0:
h.innertubeCommand)?l:void 0;gJa(this,e)}FQ(this,this.N);a=this.N;e=this.Oe;f=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=rIa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.le(f);this.cf=this.Nc[d];a=!0}}b.kQ=this.N;g.N(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.xb=function(){g.GQ(this);KQ(this);FQ(this,this.N);var a;null==(a=this.u)||vQ(a,this.api.getCurrentTime())};
g.k.onClickCommand=function(a){if(a=g.av(a,SH)){var b=a.key;a.isVisible&&b&&HQ(this,b)}};
g.k.B2=function(a){this.api.Ka("innertubeCommand",this.Oe[a.id])};
g.k.Wb=function(){KQ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.aE()};
g.k.IV=function(a){if(!g.Hx(a)){var b=!1;switch(g.Ix(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.Gx(a)}};
g.k.Qp=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.OY=function(){this.Qp("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(zI(a)||NQ(this)?this.rd=!1:this.rd=a.allowLiveDvr,g.N(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!zI(a))));sJa(this,this.api.cg());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;QQ(this);for(LQ(this,this.Y,this.Eb);0<this.I.length;)this.I.pop().dispose();this.heatMarkersDecorations=[];this.Yb={};var d;null==(d=this.u)||d.reset();VQ(this)}else this.aE();g.VR(this.tooltip)}if(a){b=a.watchNextResponse;
var e;d=!this.api.K("web_repeating_chapters")&&this.sb||"clips"===(null==(e=this.sb)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=e.iJ,e=null!=e.multiMarkersPlayerBarRenderer||null!=b&&0<b.length||0<e.Pq.length;if(e&&!d){e=this.api.getVideoData();b=e.multiMarkersPlayerBarRenderer;d=!1;if(null==b?0:b.markersMap){d=this.api.getVideoData();var f;d.wt=(null==(f=b.visibleOnLoad)?void 0:f.key)||d.wt;f=g.r(b.markersMap);for(b=f.next();!b.done;b=f.next())b=b.value,b.key&&b.value&&
(this.Yb[b.key]=b.value,b.value.onChapterRepeat&&(d.Z5=b.value.onChapterRepeat));null!=d.wt&&HQ(this,d.wt);d=!0}if(this.api.R().K("web_key_moments_markers")&&0<e.Pq.length){f=g.TH.getState().entities;b=g.r(e.Pq);for(c=b.next();!c.done;c=b.next()){c=c.value;var h=void 0,l=null==(h=f.macroMarkersListEntity?f.macroMarkersListEntity[c]||null:null)?void 0:h.markersList;h=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(h=l)?void 0:h.markerType)&&(this.Nc[c]=l)}d=this.jT()||d}!d&&(f=e.iJ)&&(fJa(this,f),e.oi=this.j,
eJa(this));kJa(this,null);a.aN&&0===this.I.length&&(a=a.aN,e=a.key,a.isVisible&&e&&HQ(this,e))}else dJa(this),EQ(this)}KQ(this)};
g.k.HV=function(a){this.W&&!g.W(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.W.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.W(a.state,8)&&this.api.pauseVideo()};
g.k.UM=function(a){var b=!!this.sb!==!!a,c=this.sb;this.sb=a;kJa(this,c);this.api.K("web_repeating_chapters")&&"clips"!==(null==a?void 0:a.type)&&a||(a?(this.Ja("clipstarticon",XEa()),this.Ja("clipendicon",XEa()),this.Ja("clipstarttitle",null),this.Ja("clipendtitle",null)):(this.Ja("clipstarticon",SEa()),this.Ja("clipendicon",REa()),this.Ja("clipstarttitle","Watch full video"),this.Ja("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),!0),g.GQ(this)),QQ(this));LQ(this,
this.Y,this.Eb)};
g.k.w1=function(a,b,c){var d=g.Gl(this.element),e=JQ(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=dM(this.B,Number(c.getAttribute("data-position")),0)*e+g.Gl(this.xc).x);this.Cb.x=a-d.x;this.Cb.y=b-d.y;a=JQ(this);c=PQ(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:zI(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.va,m=dM(this.B,m)*JQ(this).j+b,a.position=m),
b=this.B.u;NQ(this)&&(b=this.B.u);m=f||g.XL(this.rd?c-this.B.j:c-b);b=a.position+this.rg;c-=this.api.wd();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.Ii()){if(1<this.j.length){n=OQ(this,this.Cb.x,!0);if(!this.sb)for(d=0;d<this.j.length;)g.N(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.I.length)for(d=0;d<this.j.length;d++)g.N(this.I[d].element,"ytp-heatmap-hover",d===n)}if(0<this.N.length)for(n=this.Cb.x,d=g.r(this.N),e=d.next();!e.done;e=d.next())e=e.value,h=IQ(this,e.timeRangeStartMillis/
(1E3*this.B.j),JQ(this)),g.N(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.K("web_key_moments_markers")?this.cf?(n=oIa(this.N,1E3*c),n=null!=n?this.N[n].title:""):(n=zP(this.j,1E3*c),n=this.j[n].title):(n=zP(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=zP(this.j,1E3*c);this.eb=lJa(this,c,d)?d:lJa(this,c,d+1)?d+1:-1;g.N(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.eb&&1<this.j.length);d=!1;
e=g.r(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.XL(h.decorationTimeMillis/1E3),d=!0)}this.Kd!==d&&(this.Kd=d,this.api.Ta(this.Fd,this.Kd));g.N(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.D-a.position&&(d=2);this.api.R().I&&(l-=10);
this.I.length&&this.I[0].isValid&&(l-=14*(this.C?2:1),this.Ha||(this.Ha=!0,this.api.Ta(this.qa,this.Ha)));var q;if(CQ(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.V)){var v;l-=(null==(v=this.u)?0:v.isEnabled)?RQ(this):this.V}q=void 0;CQ(this)&&(q="Pull up for precise seeking",this.api.Ta(this.og,!0));OJa(this.tooltip,b,c,m,!!f,l,n,d,q)}else OJa(this.tooltip,b,c,m,!!f,l);g.ho(this.api.getRootNode(),"ytp-progress-bar-hover");jJa(this)};
g.k.v1=function(){g.VR(this.tooltip);g.jo(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ha&&(this.Ha=!1,this.api.Ta(this.qa,this.Ha))};
g.k.u1=function(a,b){CQ(this)&&this.u&&(this.u.W?vQ(this.u,this.api.getCurrentTime()):XIa(this.u),this.u.show(),g.N(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.J&&(this.J.dispose(),this.J=null);this.Ld=b;1<this.j.length&&-1!==this.eb?this.api.seekTo(this.j[this.eb].startTime/1E3,!1):this.api.seekTo(PQ(this,JQ(this)),!1);g.ho(this.element,"ytp-drag");(this.Pe=g.fK(this.api.zb()))&&this.api.pauseVideo()};
g.k.z1=function(){var a=this;if(CQ(this)&&this.u){var b=RQ(this);this.V>=.5*b?(this.u.enable(),vQ(this.u,this.api.getCurrentTime()),rJa(this,b)):VQ(this)}else if(this.Bd=0,g.jo(this.element,"ytp-pull-ui"),g.jo(this.element,"ytp-pulling"),this.J&&(this.J.dispose(),this.J=null),0<this.V){var c=(0,g.U)();this.J=new g.Xn(function(){var f=a.V,h=JQ(a).position,l=1-Math.pow(1-((0,g.U)()-c)/200,3);h+=l*(a.Y*a.D-h);if(0>l||1<l)l=1;mJa(a,(1-l)*f,h,a.Y);1>l&&a.J.start();a.La&&(a.La=!1,a.api.Ta(a.gb,a.La))});
this.J.start()}if(g.W(this.api.zb(),32)||3===this.api.getPresentingPlayerType()){var d;if(null==(d=this.u)?0:d.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.eb)this.api.seekTo(this.j[this.eb].startTime/1E3);else{b=PQ(this,JQ(this));this.api.seekTo(b);d=g.r(this.heatMarkersDecorations);for(var e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.qb(this.Fd)}g.jo(this.element,"ytp-drag");
this.Pe&&!g.W(this.api.zb(),2)&&this.api.playVideo()}}};
g.k.A1=function(a,b){var c=this,d=!1,e=!1;a=JQ(this);1===this.j.length&&!CQ(this)&&3600<=bM(this.B)&&(mJa(this,this.Ld-b-10,a.position,a.B),e=!0,d=this.V>.1*(this.C?60:40),a=JQ(this));g.N(this.element,"ytp-pull-ui",e);d&&g.ho(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Bd!==d&&(this.Bd=d,this.J&&(this.J.dispose(),this.J=null),d)){var f=(0,g.U)();this.J=new g.Xn(function(){var l=c.D*(c.Ya-1);c.va=g.Cg(c.va+c.Bd*((0,g.U)()-f)*.3,0,l);MQ(c);c.api.seekTo(PQ(c,
JQ(c)),!1);0<c.va&&c.va<l&&c.J.start()});
this.J.start()}a=PQ(this,a);this.api.seekTo(a,!1);var h;CQ(this)&&(null==(h=this.u)?0:h.W)&&(h=RQ(this),b=this.Ld-b-10,this.u.isEnabled&&(b=h+b,vQ(this.u,a)),this.V=g.Cg(b,0,h),rJa(this,this.V))};
g.k.MQ=function(){this.sb||(this.Ja("clipstarticon",QEa()),this.Ja("clipendicon",QEa()),g.ho(this.element,"ytp-clip-hover"))};
g.k.LQ=function(){this.sb||(this.Ja("clipstarticon",SEa()),this.Ja("clipendicon",REa()),g.jo(this.element,"ytp-clip-hover"))};
g.k.aE=function(){this.clipStart=0;this.clipEnd=Infinity;QQ(this);LQ(this,this.Y,this.Eb)};
g.k.lT=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.Ra[c]){var d=g.mh("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ra[c]=b;this.Mc[c]=d;g.fo(d,b.style);nJa(this,c);this.api.R().K("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else qJa(this,b)};
g.k.B3=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())qJa(this,b.value)};
g.k.EO=function(a){if(this.u){var b=this.u;a=null!=a;b.api.seekTo(b.va);b.api.playVideo();a&&b.api.qb(b.dismissButton);VQ(this)}};
g.k.zH=function(a){this.u&&(this.u.play(null!=a),VQ(this))};
g.k.ea=function(){sJa(this,!1);g.ZK.prototype.ea.call(this)};g.u(WQ,g.X);WQ.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
WQ.prototype.Fa=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.YK(this,a&&400<=this.G.Za().getPlayerSize().width);this.G.Ta(this.element,this.tb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.Ja("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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.Ja("icon",g.PEa())}g.N(this.element,"ytp-remote-button-active",this.isActive())}};
WQ.prototype.u=function(){this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.ib.BE(this.element);this.G.qb(this.element)};g.u(XQ,g.X);XQ.prototype.j=function(a){g.YK(this,this.u&&400<=a.width)};
XQ.prototype.B=function(){var a=this.ib;a.tb?a.Ib():a.od(this.element)};g.u(YQ,g.FN);YQ.prototype.onClick=function(){this.ib.Ib()};g.u($Q,YQ);$Q.prototype.onClick=function(){YQ.prototype.onClick.call(this);this.G.Ka("onCollapseMiniplayer");this.G.qb(this.element)};
$Q.prototype.Fa=function(){var a=!this.G.isFullscreen();ZQ(this,a);this.G.Ta(this.element,this.j)};g.u(aR,YQ);aR.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
aR.prototype.Fa=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);ZQ(this,a&&!this.G.isFullscreen());this.G.Ta(this.element,this.j);var b=1;a&&this.isActive()&&(b=2);if(this.B!==b)switch(this.B=b,b){case 1:this.Ja("icon",{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},S:[{F:"path",Nb:!0,T:{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.Ja("icon",{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},S:[{F:"path",Nb:!0,T:{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"}}]})}};
aR.prototype.onClick=function(){YQ.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.C.BE(this.element);this.G.qb(this.element)};g.u(bR,YQ);bR.prototype.onClick=function(){YQ.prototype.onClick.call(this);hY(this.G.app);this.G.qb(this.element)};
bR.prototype.Fa=function(){var a=this.G.nz()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType();ZQ(this,a);this.j&&(a=this.G.isWidescreen(),this.isWidescreen!==a&&(HN(this,a?{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},S:[{F:"path",Nb:!0,T:{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"}}]}:{F:"svg",T:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},S:[{F:"path",Nb:!0,T:{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.Ja("title",a?"Default view":"Theater mode")));this.G.Ta(this.element,this.j)};g.u(cR,g.pP);cR.prototype.od=function(a){0<this.md.items.length&&g.pP.prototype.od.call(this,a)};
cR.prototype.Bc=function(a){this.md.Bc(a);a=this.Mo;a.u=0<this.md.items.length;a.j(a.G.Za().getPlayerSize())};
cR.prototype.Bf=function(a){this.tb&&1>=this.md.items.length&&this.hide();this.md.Bf(a);a=this.Mo;a.u=0<this.md.items.length;a.j(a.G.Za().getPlayerSize())};
cR.prototype.BE=function(){};g.u(dR,g.X);dR.prototype.j=function(a){var b=400;this.G.R().I&&(b=200);a=this.u&&a.width>=b;g.YK(this,a);this.G.Ta(this.element,a)};
dR.prototype.B=function(){if(this.ib.tb)this.ib.Ib();else{var a=g.jO(this.G.ob());a&&!a.loaded&&(a.xg("tracklist",{includeAsr:!0}).length||a.load());this.G.qb(this.element);this.ib.od(this.element)}};
dR.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.zN(this.G),e=c&&!!g.yN(this.G.ob());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.N(this.element,"ytp-hdr-quality-badge",a);g.N(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.N(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.N(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.N(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.N(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.N(this.element,"ytp-3d-badge",!a&&e&&d)};g.u(fR,MN);fR.prototype.isLoaded=function(){var a=g.sO(this.G.ob());return void 0!==a&&a.loaded};
fR.prototype.Fa=function(){void 0!==g.sO(this.G.ob())&&3!==this.G.getPresentingPlayerType()?this.j||(this.ib.Bc(this),this.j=!0):this.j&&(this.ib.Bf(this),this.j=!1);this.setValue(this.isLoaded())};
fR.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.X("annotationvisibility",a)};
fR.prototype.ea=function(){this.j&&this.ib.Bf(this);MN.prototype.ea.call(this)};g.u(g.gR,g.FN);g.k=g.gR.prototype;g.k.open=function(){g.nP(this.ib,this.u)};
g.k.Hj=function(a){uJa(this);this.options[a].element.setAttribute("aria-checked","true");this.Sd(this.Rk(a));this.B=a};
g.k.DG=function(a,b,c){var d=this;b=new g.FN({F:"div",Ca:["ytp-menuitem"],T:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{F:"div",Ca:["ytp-menuitem-label"],Z:"{{label}}"}]},b,this.Rk(a,!0));b.Na("click",function(){d.Mg(a)});
return b};
g.k.enable=function(a){this.C?a||(this.C=!1,this.Du(!1)):a&&(this.C=!0,this.Du(!0))};
g.k.Du=function(a){a?this.ib.Bc(this):this.ib.Bf(this)};
g.k.Mg=function(a){this.X("select",a)};
g.k.Rk=function(a){return a.toString()};
g.k.JV=function(a){g.Hx(a)||39!==g.Ix(a)||(this.open(),g.Gx(a))};
g.k.ea=function(){this.C&&this.ib.Bf(this);g.FN.prototype.ea.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.u(iR,g.gR);iR.prototype.Fa=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.hR(this,g.Pk(a,this.D)),this.tracks=g.uc(a,this.D,this),this.j.Sd(a.length?" ("+a.length+")":""),this.X("size-change"),this.Hj(this.D(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
iR.prototype.Mg=function(a){g.gR.prototype.Mg.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.ib.Ti()};
iR.prototype.D=function(a){return a.toString()};g.u(jR,MN);
jR.prototype.u=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.BN(this.G))this.j||(this.ib.Bc(this),this.j=!0,this.B.push(this.P(this.G,"videodatachange",this.u)),this.B.push(this.P(this.G,"videoplayerreset",this.u)),this.B.push(this.P(this.G,"onPlaylistUpdate",this.u)),this.B.push(this.P(this.G,"autonavchange",this.C)),a=this.G.getVideoData(),this.C(a.autonavState),this.G.Ta(this.element,this.j));else if(this.j){this.ib.Bf(this);this.j=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.uc(b.value)}};
jR.prototype.C=function(a){this.setValue(1!==a)};
jR.prototype.onSelect=function(a){this.G.hE(a?2:1);this.j&&(this.G.Ta(this.element,this.j),this.G.qb(this.element))};
jR.prototype.ea=function(){this.j&&this.ib.Bf(this);MN.prototype.ea.call(this)};g.u(kR,g.X);kR.prototype.onClick=function(){this.ib.Ib()};
kR.prototype.Ig=function(a){this.Ja("label",a);this.Mo.Ja("title",a)};g.u(lR,kR);lR.prototype.onClick=function(){kR.prototype.onClick.call(this);this.G.Ka("onCollapseMiniplayer");this.G.qb(this.element)};
lR.prototype.Fa=function(){var a=!this.G.isFullscreen();g.YK(this,a);this.G.Ta(this.element,a)};g.u(mR,g.gR);g.k=mR.prototype;
g.k.Gx=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a){this.J=this.G.Hp();a=this.G.getAvailableQualityLevels();if(this.j){var b=this.G;var c=b.state.j.getAvailableQualityData.apply(b.state.j,g.t([]));b=[];c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.D[d.quality]=d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto");a=b}g.SGa(this.G)&&g.TGa(this.G)&&a.unshift("missing-qualities");UGa(this.G)&&a.unshift("inline-survey");g.hR(this,a);b=this.G.getVideoData().cotn?
!0:!1;c=!g.lG(this.G.R())||!(void 0===b?0:b);b=this.u;c=void 0===c?!1:c;c=void 0===c?!1:c;b.tP&&(b=b.ya("ytp-panel-footer"),g.N(b,"ytp-panel-hide-footer",c));if(a.length){this.VM();this.enable(!0);return}}this.enable(!1)};
g.k.VM=function(){var a=this.G.getPreferredQuality();this.options[a]&&(this.I=this.G.getPlaybackQuality(),this.Hj(a),"auto"===a&&this.Sd(this.Rk(a)))};
g.k.Mg=function(a){if("missing-qualities"!==a){g.gR.prototype.Mg.call(this,a);if(this.j){var b=this.D[a];if(b=(b=b&&b.paygatedQualityDetails)&&b.endpoint){this.G.Ka("innertubeCommand",b);return}}this.G.setPlaybackQuality(a);this.ib.Ib();this.Gx()}};
g.k.open=function(){g.gR.prototype.open.call(this);this.G.qb(this.element)};
g.k.DG=function(a,b,c){var d=this;if("inline-survey"!==a){var e=this.D[a];e=(e=e&&e.paygatedQualityDetails)&&e.veType;b=g.gR.prototype.DG.call(this,a,b,c);e&&this.G.rb(b.element,this,e,!0);return b}a=[{F:"span",Z:"Looks good?"}];c={};e=g.r([!0,!1]);for(var f=e.next();!f.done;c={WA:c.WA},f=e.next())c.WA=f.value,f=new g.X({F:"span",L:"ytp-menuitem-inline-survey-response",S:[c.WA?g.fL():UEa()],T:{tabindex:"0",role:"button"}}),f.Na("click",function(h){return function(){var l=h.WA,m=g.oN(d.G.app);m&&(m.ma("iqsr",
{tu:l}),m.getVideoData().JL=!0);d.ib.Ib();d.Gx()}}(c)),a.push(f);
return new g.FN({F:"div",L:"ytp-menuitem",T:{"aria-disabled":"true"},S:[{F:"div",Ca:["ytp-menuitem-label"],S:a}]},b)};
g.k.Rk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{F:"a",T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.R().J},Z:"Missing options?"};if("inline-survey"===a)return"";var c=this.j?[xJa(this,a,b)]:[wJa(this,a)];var d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(xJa(this,this.I,b,["ytp-menu-label-secondary"])):c.push(wJa(this,this.I,["ytp-menu-label-secondary"])));return{F:"div",S:c}};g.u(nR,kR);nR.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
nR.prototype.Fa=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.YK(this,a);this.G.Ta(this.element,this.tb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b)switch(this.j=b,b){case 1:this.Ja("icon",OEa());break;case 2:this.Ja("icon",{F:"svg",T:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},S:[{F:"path",T:{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"}}]})}};
nR.prototype.onClick=function(){kR.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.ib.BE(this.element);this.G.qb(this.element)};g.u(oR,g.ZK);oR.prototype.addButton=function(a){this.element.appendChild(a.element)};
oR.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.u(pR,kR);pR.prototype.onClick=function(){kR.prototype.onClick.call(this);hY(this.G.app);this.G.qb(this.element)};
pR.prototype.Fa=function(){g.YK(this,this.G.nz()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.tb){var a=this.G.isWidescreen();this.isWidescreen!==a&&(this.Mo.Ja("icon",a?{F:"svg",T:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},S:[{F:"path",T:{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"}}]}:dFa()),this.Ig(EO(this.G,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.G.Ta(this.element,this.tb)};g.u(qR,g.X);g.k=qR.prototype;g.k.init=function(){this.Ft(this.j);this.Ja("minvalue",this.minimumValue);this.Ja("maxvalue",this.maximumValue)};
g.k.MV=function(a){if(!g.Hx(a)){switch(g.Ix(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Ft(this.j+b);g.Gx(a)}};
g.k.KV=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Ft(b);g.Gx(a)};
g.k.LV=function(a){a=(a-g.Gl(this.u).x)/this.J*this.range+this.minimumValue;this.Ft(a)};
g.k.Ft=function(a,b){b=void 0===b?"":b;a=g.Cg(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ja("valuenow",a);this.Ja("valuetext",b);this.N.style.left=(a-this.minimumValue)/this.range*(this.J-this.W)+"px";this.j=a};
g.k.focus=function(){this.Y.focus()};g.u(sR,qR);sR.prototype.V=function(){this.G.setPlaybackRate(this.j,!0)};
sR.prototype.Ft=function(a){qR.prototype.Ft.call(this,a,tR(this,a).toString());this.B&&(rR(this),this.qa())};
sR.prototype.va=function(){var a=this.G.getPlaybackRate();tR(this,this.j)!==a&&(this.Ft(a),rR(this))};g.u(uR,g.ZK);uR.prototype.focus=function(){this.j.focus()};g.u(yJa,gP);g.u(vR,g.gR);g.k=vR.prototype;g.k.Rk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Fa=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);BJa(this)};
g.k.Du=function(a){g.gR.prototype.Du.call(this,a);a?(this.J=this.P(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),BJa(this),zJa(this,this.G.getPlaybackRate())):(this.uc(this.J),this.J=null)};
g.k.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||AJa(this,b);zJa(this,a)};
g.k.Mg=function(a){g.gR.prototype.Mg.call(this,a);a===this.j?this.G.setPlaybackRate(this.D,!0):this.G.setPlaybackRate(Number(a),!0);this.ib.Ti()};g.u(xR,g.gR);g.k=xR.prototype;g.k.Hj=function(a){g.gR.prototype.Hj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Rk=function(a){return this.getOption(a).text||""};
g.k.Mg=function(a){g.gR.prototype.Mg.call(this,a);this.X("settingChange",this.setting,this.settings[a].option)};g.u(yR,g.hP);yR.prototype.Jg=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.eq[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Hj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
yR.prototype.Ri=function(a,b){this.X("settingChange",a,b)};g.u(zR,g.gR);zR.prototype.getKey=function(a){return a.languageCode};
zR.prototype.Rk=function(a){return this.languages[a].languageName||""};
zR.prototype.Mg=function(a){this.X("select",a);this.G.qb(this.element);g.rP(this.ib)};g.u(AR,g.gR);g.k=AR.prototype;g.k.getKey=function(a){return g.Cf(a)?"__off__":a.displayName};
g.k.Rk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Mg=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.$M(this.G.R(),this.G.getVideoData()),g.iM(a)):(this.G.qb(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.gR.prototype.Mg.call(this,a),this.ib.Ti())};
g.k.Fa=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.IB;var c,d=!(null==(c=this.G.getVideoData())||!g.wI(c));c={};if(a||b){if(a){var e=this.G.getOption("captions","track");c=this.G.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.uc(c,this.getKey,this);d=g.Pk(c,this.getKey);if(f.length&&!g.Cf(e)){var h=e.translationLanguage;if(h&&h.languageName){var l=h.languageName;
h=f.findIndex(function(m){return m.languageName===l});
Uaa(f,h)}DJa(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.hR(this,d);this.Hj(f);e&&e.translationLanguage?this.j.Hj(this.j.getKey(e.translationLanguage)):uJa(this.j);a&&this.D.Jg(this.G.getSubtitlesUserSettings());this.J.Sd(c&&c.length?" ("+c.length+")":"");this.X("size-change");this.G.Ta(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.NV=function(a){var b=this.G.getOption("captions","track");b=g.Gf(b);b.translationLanguage=this.j.languages[a];this.G.setOption("captions","track",b)};
g.k.Ri=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}EJa(this,!0);this.I.start();this.D.Jg(this.G.getSubtitlesUserSettings())};
g.k.e2=function(a){a||g.bo(this.I)};
g.k.ea=function(){g.bo(this.I);g.gR.prototype.ea.call(this)};g.u(BR,g.pP);g.k=BR.prototype;g.k.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;var a=new mR(this.G,this);g.M(this,a);a=new AR(this.G,this);g.M(this,a);this.G.R().B||(a=new fR(this.G,this),g.M(this,a));this.G.R().Ed&&(a=new vR(this.G,this),g.M(this,a));this.G.R().rd&&!this.G.R().K("web_player_move_autonav_toggle")&&(a=new jR(this.G,this),g.M(this,a));a=new iR(this.G,this);g.M(this,a);this.G.X("settingsMenuInitialized");eR(this.settingsButton,this.md.items.length)}};
g.k.Bc=function(a){this.initialize();this.md.Bc(a);eR(this.settingsButton,this.md.items.length)};
g.k.Bf=function(a){this.tb&&1>=this.md.items.length&&this.hide();this.md.Bf(a);eR(this.settingsButton,this.md.items.length)};
g.k.od=function(a){this.initialize();0<this.md.items.length&&g.pP.prototype.od.call(this,a)};
g.k.show=function(){g.pP.prototype.show.call(this);g.ho(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.pP.prototype.hide.call(this);g.jo(this.G.getRootNode(),"ytp-settings-shown")};
g.k.zf=function(a){this.G.Ta(this.element,a);this.G.X("settingsMenuVisibilityChanged",a)};
g.k.BE=function(a){if(this.qh())this.Ib();else{this.initialize();a:{var b=g.r(this.md.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.od(a));this.od(a)}};g.u(CR,g.X);CR.prototype.onClick=function(){hY(this.G.app);this.G.qb(this.element)};
CR.prototype.Fa=function(){g.YK(this,this.G.nz()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.tb){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{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.Ja("icon",b):MIa(this.transition,this.element,b);this.isWidescreen=a;b=EO(this.G,"Default view","t");var c=EO(this.G,"Theater mode","t");this.Ja("title",a?b:c);vP(this.tooltip)}}this.G.Ta(this.element,this.tb)};g.u(g.DR,g.X);g.DR.prototype.onClick=function(){if(null!=g.jO(this.G.ob())&&(this.G.toggleSubtitles(),this.G.qb(this.element),!this.isEnabled())){var a=!1,b=g.tv(g.rv.getInstance(),65);g.pG(this.G.R())&&null!=b&&(a=!b);a&&this.G.R().K("web_player_nitrate_promo_tooltip")&&this.G.X("showpromotooltip",this.element)}};
g.DR.prototype.j=function(a){var b,c;null==(b=g.qN(this.G))||null==(c=b.Em())||c.od(a)};
g.DR.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.DR.prototype.Fa=function(){var a=null!=g.jO(this.G.ob()),b=300;this.G.R().I&&(b=480);var c=this.G.R();if(c.K("web_player_unavailable_subtitles_button_killswitch")||c.D)this.Ja("title",EO(this.G,"Subtitles/closed captions","c")),c=a;else{if(a){var d;null==(d=this.ya("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","1");this.Ja("title",EO(this.G,"Subtitles/closed captions","c"))}else{var e;null==(e=this.ya("ytp-subtitles-button-icon"))||e.setAttribute("fill-opacity","0.3");this.Ja("title",
"Subtitles/closed captions unavailable")}c=!0}vP(this.tooltip);c=c&&this.G.Za().getPlayerSize().width>=b;g.YK(this,c);this.G.Ta(this.element,c);a&&this.Ja("pressed",this.isEnabled())};g.u(g.FR,g.X);g.k=g.FR.prototype;
g.k.Wb=function(){var a=this.api.Za().getPlayerSize().width,b=this.J;this.api.R().I&&(b=400);b=a>=b&&(!HR(this)||!g.W(this.api.zb(),64));g.YK(this,b);g.N(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.R().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);GR(this)&&(c-=this.sb.startTimeMs/1E3);c=g.XL(c);this.B!==c&&(this.Ja("currenttime",c),this.B=c);b=GR(this)?
g.XL((this.sb.endTimeMs-this.sb.startTimeMs)/1E3):g.XL(this.api.R().K("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Ja("duration",b),this.C=b)}a=a.isAtLiveHead;!HR(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.Wb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Sd(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.$O(this.tooltip,
this.liveBadge.element)));a=this.api.getLoopRange();b=this.sb!==a;this.sb=a;b&&ER(this)};
g.k.onLoopRangeChange=function(a){var b=this.sb!==a;this.sb=a;b&&(this.Wb(),ER(this))};
g.k.P2=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.R().K("enable_topsoil_wta_for_halftime")||this.api.R().K("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Wb();ER(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Cb;this.u=zI(a);this.isPremiere=a.isPremiere;g.N(this.element,"ytp-live",HR(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.ea=function(){this.j&&this.j();g.X.prototype.ea.call(this)};g.u(KR,g.X);g.k=KR.prototype;g.k.Eo=function(){var a=this.j.Qf();this.C!==a&&(this.C=a,JR(this,this.api.getVolume(),this.api.isMuted()))};
g.k.WM=function(a){g.YK(this,350<=a.width)};
g.k.QV=function(a){if(!g.Hx(a)){var b=g.Ix(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.Cg(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Gx(a))}};
g.k.OV=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.Cg(b/10,-10,10));g.Gx(a)};
g.k.l2=function(){IR(this,this.u,!0,this.B,this.j.Uj());this.V=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.PV=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Gl(this.N).x;this.api.setVolume(100*g.Cg((a-c/2)/(b-c),0,1))};
g.k.j2=function(){IR(this,this.u,!1,this.B,this.j.Uj());0===this.volume&&(this.api.mute(),this.api.setVolume(this.V))};
g.k.onVolumeChange=function(a){JR(this,a.volume,a.muted)};
g.k.cO=function(){IR(this,this.u,this.isDragging,this.B,this.j.Uj())};
g.k.ea=function(){g.X.prototype.ea.call(this);g.jo(this.J,"ytp-volume-slider-active")};g.u(g.LR,g.X);g.LR.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).C,b=this.api.R();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.YK(this,this.visible);this.api.Ta(this.element,this.visible&&this.ra);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ja("url",a));b.B&&(this.j&&(this.uc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.ho(this.element,"no-link"))};
g.LR.prototype.onClick=function(a){var b=this.api.R(),c=this.api.getVideoUrl(!g.YL(a),!1,!0,!0);if(g.MF(b)||g.XF(b)){var d={};b.ra&&g.MF(b)&&g.bN(d,b.loaderUrl);c=g.wi(c,g.aN(d,"emb_logo"))}g.BO(c,this.api,a);this.api.qb(this.element)};
g.LR.prototype.xb=function(){var a={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{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.XF(this.api.R())){var b=this.ya("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{F:"svg",T:{fill:"none",height:"24",width:"24"},S:[{F:"circle",T:{cx:"12",cy:"12",fill:"red",r:"12"}},{F:"ellipse",T:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",T:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{F:"svg",T:{viewBox:"0 0 80 24"},S:[{F:"ellipse",T:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{F:"ellipse",T:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",T:{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.N(b,"ytp-youtube-music-logo-icon-only",c)}this.Ja("logoSvg",a)};
g.LR.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Ta(this.element,this.visible&&a)};g.u(MR,g.YD);g.k=MR.prototype;g.k.Vd=function(){this.xc.Wb();this.ai.Wb()};
g.k.ul=function(){this.KF();if(this.Xd.u){this.Vd();var a;null==(a=this.N)||a.show()}else{g.VR(this.xc.tooltip);var b;null==(b=this.N)||b.hide()}};
g.k.Ts=function(){this.Vd();this.ye.start()};
g.k.KF=function(){var a=!this.G.R().isMobile&&300>g.tJa(this.xc)&&this.G.zb().Oc()&&!!window.requestAnimationFrame,b=!a;this.Xd.u||(a=b=!1);b?this.J||(this.J=this.P(this.G,"progresssync",this.Vd)):this.J&&(this.uc(this.J),this.J=null);a?this.ye.isActive()||this.ye.start():this.ye.stop()};
g.k.xb=function(){var a=this.B.Qf(),b=this.G.Za().getPlayerSize(),c=NR(this),d=Math.max(b.width-2*c,100);if(this.Ra!==b.width||this.La!==a){this.Ra=b.width;this.La=a;var e=JJa(this);this.j.element.style.width=e+"px";this.j.element.style.left=c+"px";g.UQ(this.xc,c,e,a);this.B.pc().LF=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-OR(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.rB=e;c.Zw();this.KF();!this.G.R().K("html5_player_bottom_linear_gradient")&&this.G.R().K("html5_player_dynamic_bottom_gradient")&&
g.$P(this.Ua,b.height)};
g.k.onVideoDataChange=function(){var a=this.G.getVideoData();this.qa.style.background=a.C?a.Ua:"";g.YK(this.W,a.cG)};g.u(PR,UP);g.k=PR.prototype;g.k.nJ=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Ka("innertubeCommand",this.onClickCommand),this.B=!0,this.N.hide())};
g.k.oJ=function(){this.B=!0;this.N.hide()};
g.k.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,QR(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.J=this.enabled=!0;this.text=(b=a.title)?g.zA(b):"View Chapters";var c=g.av(a.trigger,dBa);if(c){b=[];var d=c.timeRangeStartMillis;c=c.timeRangeEndMillis;null!=d&&null!=c&&b.push(new g.sA(d,c,{priority:9,namespace:"suggested_action_button_visible"}));this.G.le(b)}this.onClickCommand=a.tapCommand;CIa(this);TP(this);this.Dj()}};
g.k.uA=function(){return!this.B&&this.enabled&&(this.u||this.j)};
g.k.zf=function(a){this.B||((this.u=a)?SP(this):(QR(this),this.W.start()),this.Dj())};
g.k.ea=function(){QR(this);UP.prototype.ea.call(this)};var q4={},RR=(q4.CHANNEL_NAME="ytp-title-channel-name",q4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",q4.LINK="ytp-title-link",q4.SESSIONLINK="yt-uix-sessionlink",q4.SUBTEXT="ytp-title-subtext",q4.TEXT="ytp-title-text",q4.TITLE="ytp-title",q4);g.u(SR,g.X);SR.prototype.onClick=function(a){this.api.qb(this.element);var b=this.api.R(),c=this.api.getVideoUrl(!g.YL(a),!1,!0);if(g.MF(b)){var d={};b.ra&&g.bN(d,b.loaderUrl);c=g.wi(c,g.aN(d,"emb_title"))}g.BO(c,this.api,a)};
SR.prototype.Fa=function(){var a=this.api.getVideoData(),b=this.api.R();this.Ja("title",a.title);KJa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Cd&&c.profilePicture?(this.Ja("channelLink",c.Cd),this.Ja("channelName",c.author),this.Ja("channelTitleFocusable","0")):KJa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Kb;g.N(this.link,RR.FULLERSCREEN_LINK,c);b.N||!a.videoId||c||a.C&&b.pfpChazalUi||b.B?this.j&&(this.Ja("url",
null),this.uc(this.j),this.j=null):(this.Ja("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.P(this.link,"click",this.onClick)));b.B&&this.Ja("channelName",g.MF(b)?a.expandedTitle:a.author)};g.u(g.TR,g.X);g.k=g.TR.prototype;g.k.VQ=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,MJa(this,a))};
g.k.JZ=function(){GAa(this.j,this.B,160*this.scale)};
g.k.Ol=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.V);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.V);a.addEventListener("focus",this.C);PJa(this);break;case 3:PJa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.VQ,this),this.j=null),this.api.removeEventListener("videoready",this.W),this.Y.stop()}this.type=null;this.J&&this.D.hide()};
g.k.Nj=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.sh(arguments[a],this.u)&&this.Ol()};
g.k.ea=function(){null!=this.type&&this.Ol();this.j&&this.j.dispose();g.X.prototype.ea.call(this)};g.u(g.WR,g.X);g.k=g.WR.prototype;g.k.sB=function(){var a=this.G.getPlayerSize(),b=this.G.R(),c=this.G.getVideoData(),d=g.MF(b)&&g.xN(this.G)&&g.W(this.G.zb(),128);this.visible=b.Jl&&240<=a.width&&!c.isAd()&&c.zi&&!d&&!(c.C&&b.pfpChazalUi);g.YK(this,this.visible);this.icon&&TJa(this,this.icon);this.G.Ta(this.element,this.visible&&this.ra)};
g.k.Nf=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.qb(this.element);var b=this.G.R(),c=this.Nf();b.authUser?QJa(this):this.G.qE()?this.G.requestStorageAccess(function(){g.Mv("embedsItpWatchLaterResult",{accepted:!0});Uy();RJa(a,c)},function(){g.Mv("embedsItpWatchLaterResult",{accepted:!1});
SJa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):RJa(this,c)};
g.k.RV=function(){this.isRequestPending=this.j=!1;this.Fa(2)};
g.k.Fa=function(a,b){var c=this.G.R();TJa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.HJ("Added as $USER_NAME",a):g.HJ("Watch later as $USER_NAME",a),image:uG(c)})):this.update({title:"Watch later",image:null});vP(this.tooltip)};
g.k.lc=function(a){g.X.prototype.lc.call(this,a);this.G.Ta(this.element,this.visible&&a)};g.u(YR,g.PO);g.k=YR.prototype;g.k.pc=function(){return this.tooltip};
g.k.aP=function(){return this.Lf};
g.k.Ap=function(a,b){b?this.wm=a:this.wm=null;this.Dk()};
g.k.xv=function(a,b){if(b)this.gq.push(a);else for(b=this.gq.length;0<=b;b--)if(this.gq[b]===a){this.gq.splice(b,1);break}wO(this.Xd,64,0<this.gq.length)};
g.k.Cq=function(){this.api.ri()&&this.api.nm();return!!this.wm||UJa(this)||g.PO.prototype.Cq.call(this)};
g.k.Dk=function(){var a=!this.Cq(),b=a&&this.api.ri()&&!g.W(this.api.zb(),2)&&!(this.api.getVideoData().C&&this.api.R().pfpChazalUi)&&!this.api.R().B,c=this.As&&g.xN(this.api)&&g.W(this.api.zb(),128);a||c?(this.gL.show(),this.hL.show()):(this.gL.hide(),this.hL.hide(),this.tooltip.Nj(this.Aj.element));b?this.Gh.od():this.Gh.Ib();this.Lf&&IJa(this.Lf,this.V2||!a);g.PO.prototype.Dk.call(this)};
g.k.nt=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Jl(a),h=d||this.Lf&&g.sh(this.Lf.j.element,b),l=d=null;null!=c&&h||(d=g.Jl(b),l=g.Hl(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Lf,d=NR(b),l=JJa(b),h=this.api.Za().getPlayerSize().height,c=g.Cg(c,d,d+l-f.width),f=h-OR(b)-f.height):g.sh(this.Aj.element,b)?(b=this.api.Za().getPlayerSize().width,c=g.Cg(c,12,b-f.width-12),f=this.Qf()?this.MG:this.LG,"gvn"===this.api.R().playerStyle&&(f+=
20),this.As&&(f-=this.Qf()?26:18)):(b=this.api.Za().getPlayerSize(),c=g.Cg(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.ul=function(a){a&&(this.tooltip.Nj(this.Aj.element),this.Lf&&this.tooltip.Nj(this.Lf.j.element));this.RC&&(g.N(this.contextMenu.element,"ytp-autohide",a),g.N(this.contextMenu.element,"ytp-autohide-active",!0));g.PO.prototype.ul.call(this,a)};
g.k.mJ=function(){g.PO.prototype.mJ.call(this);this.RC&&(g.N(this.contextMenu.element,"ytp-autohide-active",!1),this.RC&&(this.contextMenu.hide(),this.yh&&this.yh.hide()))};
g.k.Sj=function(a,b){var c=this.api.Za().getPlayerSize();c=new g.vl(0,0,c.width,c.height);if(a||this.Xd.u&&!this.Cq()){if(this.api.R().Jk||b)a=this.Qf()?this.MG:this.LG,c.top+=a,c.height-=a;this.Lf&&(c.height-=OR(this.Lf))}return c};
g.k.Eo=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.R().externalFullscreen||(b.parentElement.insertBefore(this.iC.element,b),b.parentElement.insertBefore(this.hC.element,b.nextSibling))):g.gu(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.iC.detach(),this.hC.detach());this.xb();this.vn()};
g.k.Qf=function(){var a=this.api.R();return this.api.isFullscreen()&&!a.I||!1};
g.k.showControls=function(a){this.SB=!a;this.Dk()};
g.k.xb=function(){var a=this.Qf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.N(this.contextMenu.element,"ytp-big-mode",a);this.Dk();if(this.Dg()&&this.yh)this.Yi&&GP(this.yh,this.Yi),this.shareButton&&GP(this.yh,this.shareButton),this.Hh&&GP(this.yh,this.Hh);else{if(this.yh){a=this.yh;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Yi&&!g.sh(this.di.element,this.Yi.element)&&this.Yi.xa(this.di.element);this.shareButton&&!g.sh(this.di.element,
this.shareButton.element)&&this.shareButton.xa(this.di.element);this.Hh&&!g.sh(this.di.element,this.Hh.element)&&this.Hh.xa(this.di.element)}this.vn();g.PO.prototype.xb.call(this)};
g.k.MH=function(){if(UJa(this)&&!g.xN(this.api))return!1;var a=this.api.getVideoData();return!g.MF(this.api.R())||2===this.api.getPresentingPlayerType()||!this.Jh||((a=this.Jh||a.Jh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.av(a.videoDetails,CBa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.PO.prototype.MH.call(this):!1};
g.k.vn=function(){g.PO.prototype.vn.call(this);this.api.Ta(this.title.element,!!this.Tm);this.uw&&this.uw.lc(!!this.Tm);this.channelAvatar.lc(!!this.Tm);this.overflowButton&&this.overflowButton.lc(this.Dg()&&!!this.Tm);this.shareButton&&this.shareButton.lc(!this.Dg()&&!!this.Tm);this.Yi&&this.Yi.lc(!this.Dg()&&!!this.Tm);this.Hh&&this.Hh.lc(!this.Dg()&&!!this.Tm);if(!this.Tm){this.tooltip.Nj(this.Aj.element);for(var a=0;a<this.HA.length;a++){var b=this.HA[a];b.qh()&&b.Ib()}}};
g.k.Sb=function(a){this.Lf&&IJa(this.Lf,this.Cq());this.Dk();g.PO.prototype.Sb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.uo?this.uo.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.uo?this.uo.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Wk=function(){if(this.contextMenu.tb)return this.contextMenu.Ib(),!0;if(this.gq.length)return this.gq[this.gq.length-1].Ib(),!0;if(this.wm)return this.wm.Ib(),!0;this.Lf&&this.tooltip.Nj(this.Lf.j.element);return g.PO.prototype.Wk.call(this)};
g.k.pA=function(a,b){this.YI=b;this.xv(a,b);this.qT()};
g.k.qT=function(){var a=this.YI||this.contextMenu.qh();this.AG!==a&&(this.AG=a,this.api.Ka("onAutonavPauseRequest",this.AG))};
g.k.tY=function(){ZR(this,this.api.getRootNode(),!0).focus()};
g.k.uY=function(){ZR(this,this.api.getRootNode(),!1).focus()};
g.k.Em=function(){return this.Lf&&this.Lf.settingsMenu};
g.k.Py=function(){return this.Lf&&this.Lf.u};
g.k.un=function(){this.Xd.un()};
g.k.KC=function(){this.Ec.hide()};
g.k.Ht=function(a){this.Ec.Ht(!g.fK(a))};
g.k.zw=function(a,b,c,d){this.qy.zw(a,b,c,d)};
g.k.iK=function(a,b){this.qy.dE(a,b)};
g.k.q0=function(){VJa(this,!0)};
g.k.S0=function(a){VJa(this,!1,a)};g.u(g.$R,g.bO);g.$R.prototype.xj=function(){return!1};
g.$R.prototype.create=function(){var a=this.player.R();g.VF(a)&&a.isMobile?this.chrome=new g.PO(this.player):this.chrome=new YR(this.player);g.M(this,this.chrome);this.chrome.init();this.player.rf("ux")};
g.$R.prototype.Av=function(){return this.chrome};g.u(bS,g.K);bS.prototype.u=function(a,b){if(b){b=b instanceof g.LB?b:cS(this,b);var c;(null==(c=this.j.get(a))?void 0:NB(c.location))!==NB(b)&&this.j.set(a,new gS(b,a))}else this.j.delete(a)};
bS.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.z(function(q){switch(q.j){case 1:b=a.j.get(0);g.ra(q,2);var v;if(v=b&&!a.B)v=NB(b.location),v=a.B===eS(v);if(v){q.Ma(4);break}return g.x(q,fS(a,a.B?2:0),5);case 5:if(c=q.u)a.u(0,c),PB(c)&&a.u(1,QB(c));case 4:g.ua(q,3);break;case 2:d=g.va(q);g.rz(d);if(!a.B){q.Ma(3);break}a.B=!1;return g.x(q,a.load(),7);case 7:return q.return();case 3:if(!a.U.experiments.fb("html5_onesie_probe_ec_hosts")){q.Ma(0);break}g.ra(q,9);e=a;f=e.u;h=3;return g.x(q,
fS(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.u,n=4,g.x(q,fS(a,2),12);case 12:m.call(l,n,q.u);g.ua(q,0);break;case 9:p=g.va(q),g.rz(p),g.pa(q)}})};
bS.prototype.J=function(){var a=this,b,c,d,e,f,h,l;return g.z(function(m){if(1==m.j){g.$n(a.N);b=g.TE(a.U.experiments,"html5_onesie_prewarm_max_lact_ms");if(Px()>=b)return m.return();if(!a.U.K("html5_onesie_host_racing_during_prewarming"))return(c=a.j.get(0))&&$Ja(a,c),m.Ma(0);d=g.TE(a.U.experiments,"html5_onesie_prewarm_cooldown_ms");e=a.j.values();f=g.r(e);h=f.next()}if(4!=m.j){if(h.done)return m.Ma(0);l=h.value;if(a.isDisposed())return m.return();$Ja(a,l);return d?g.x(m,XJa(d),4):m.Ma(4)}h=f.next();
return m.Ma(3)})};
gS.prototype.start=function(){this.startTimestamp=(0,g.U)()};
gS.prototype.end=function(){this.endTimestamp=(0,g.U)()};var iS=[],PRa=!1;g.bW=$f(function(){var a="";try{var b=g.mh("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.u(g.jS,VJ);g.k=g.jS.prototype;g.k.isView=function(){return!0};
g.k.mK=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Sg(),c=jE(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.qs=function(){return lE(this.mediaElement.qs(),this.start,this.end)};
g.k.Sg=function(){return lE(this.mediaElement.Sg(),this.start,this.end)};
g.k.Qy=function(){return lE(this.mediaElement.Qy(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.k.pB=function(a){this.mediaElement.pB(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.k.play=function(){if(this.mK()){this.mediaElement.getCurrentTime();try{this.mediaElement.pB(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.Ob=function(){var a=VJ.prototype.Ob.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.k.mB=function(){return this.mediaElement.mB()};
g.k.Tu=function(a){this.mediaElement.Tu(a)};
g.k.ls=function(){return this.mediaElement.ls()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.lH=function(){this.mediaElement.lH()};
g.k.iH=function(){this.mediaElement.iH()};
g.k.er=function(){return this.mediaElement.er()};
g.k.tf=function(){return this.mediaElement.tf()};
g.k.Hf=function(){return this.mediaElement.Hf()};
g.k.qB=function(a){this.mediaElement.qB(a)};
g.k.cE=function(){this.mediaElement.cE()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.hs=function(){return this.mediaElement.hs()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.Hn=function(){return this.mediaElement.Hn()};
g.k.Cg=function(){return this.mediaElement.Cg()};
g.k.Tg=function(){return this.mediaElement.Tg()};
g.k.wC=function(){return this.mediaElement.wC()};
g.k.Hw=function(a){this.mediaElement.Hw(a)};
g.k.nB=function(){return this.mediaElement.nB()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.aj=function(){return this.mediaElement.aj()};
g.k.xC=function(){return this.mediaElement.xC()};
g.k.ag=function(){return this.mediaElement.ag()};
g.k.kf=function(){return this.mediaElement.kf()};
g.k.oB=function(){return this.mediaElement.oB()};
g.k.Bg=function(){return this.mediaElement.Bg()};
g.k.Dq=function(){return this.mediaElement.Dq()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Np=function(){return this.mediaElement.Np()};
g.k.getSize=function(){return this.mediaElement.getSize()};
g.k.setSize=function(a){this.mediaElement.setSize(a)};
g.k.getVolume=function(){return this.mediaElement.getVolume()};
g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.k.Qx=aa(22);g.k.zA=aa(24);g.k.AA=aa(26);g.k.ev=aa(28);g.k.yy=function(){return this.mediaElement.yy()};
g.k.hp=function(a){this.mediaElement.hp(a)};
g.k.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.k.xI=function(){return this.mediaElement.xI()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.oH=function(a){this.mediaElement.oH(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.u(kS,g.K);g.k=kS.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.zr=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.B)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.r(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Qd()){f=gKa(this.j,this.u,this.Cl);h=hKa(this);c=h.HX;e=h.AQ;d=h.qO;h=h.zQ;if(!this.I){var l=1E3*this.u.gj(),m=this.j.gj();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.fA(l,m,a);
this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Kf(b,f)):2===this.status.status?oKa(this):(a=this.j.ls())&&(a.j||a.u)&&(!rE(a)&&g.Qu()?this.Kf("mse_closed"):b.j&&IB(b.j)&&a.u&&!a.u.tC()?this.Kf("encr_upgrade"):(b=this.j.Qd(),b.Tg()?this.Kf("elem_ended"):0>e?this.Kf("next_player_future"):(this.D=d,this.B=Cxa(a,c,d,!0),this.C=Cxa(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.ma("gaplessPrep",{cpn:a}),nS(this.j,this.B),this.j.setMediaElement(iKa(b,c,d,!this.j.getVideoData().isAd())),
mS(this,2),oKa(this))))}else this.Kf("no-elem")};
g.k.Eu=function(a){var b=a===nKa(this).vS,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;iE(a.yg(),d-.01)&&(mS(this,4),c.isActive=!1,c.PA=c.PA||c.isActive,this.u.ma("sbh",{}),b.isActive=!0,b.PA=b.PA||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&mS(this,5)}};
g.k.aR=function(){4<=this.status.status&&6>this.status.status&&this.Kf("player-reload-after-handoff")};
g.k.Kf=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){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.yd(new zG("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Cl,msg:a})));a=this.j;a.videoData.Ea=!1;c&&JV(a);a.Ga&&FNa(a.Ga)}this.qn.reject(void 0);this.dispose()}};
g.k.ea=function(){mKa(this);this.j.unsubscribe("newelementrequired",this.aR,this);if(this.B){var a=this.B.u;this.B.j.Wd.unsubscribe("updateend",this.Eu,this);a.Wd.unsubscribe("updateend",this.Eu,this)}g.K.prototype.ea.call(this)};
g.k.bd=function(a){g.uJ(a,128)&&this.Kf("player-error-event")};g.u(pS,g.K);pS.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");qS(this)};
pS.prototype.Wv=function(){return!this.j};
pS.prototype.ea=function(){qS(this);g.K.prototype.ea.call(this)};g.u(vS,g.cz);g.k=vS.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:sKa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.wk=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.zf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.zf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.zf())};
g.k.Iw=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.zf())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.zf())};
g.k.Bg=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.Fv=function(){return this.fullscreen};
g.k.wf=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return sKa()};
g.k.Vv=function(){return this.pictureInPicture};
g.k.Sv=function(){return this.u};
g.k.zf=function(){this.X("visibilitychange");var a=this.getVisibilityState(this.Bg(),this.isFullscreen(),this.wf(),this.isInline(),this.Vv(),this.Sv());a!==this.D&&this.X("visibilitystatechange");this.D=a};
g.k.ea=function(){vKa(this.C);g.cz.prototype.ea.call(this)};g.u(g.zS,g.K);g.k=g.zS.prototype;
g.k.onCueRangeEnter=function(a){this.Yb+=1;this.Ea.push(a);var b=a.getId(),c=""===b;this.Ld&&this.Yb>=this.Ld&&c&&(this.Yb=0,mV(this.oa,{reason:"avDesyncWorkaround"}));this.ub.add(a.u);c||this.oa.ma("sdai",{enterAdCueRange:1});if(this.Ya&&!this.j){this.Ya=!1;if(!c){var d=this.u.get(b);d&&(this.U.K("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.oa.getCurrentTime(),HS(this,{Od:a,isAd:!0,ao:!0,hg:c,adCpn:b},{isAd:!1,ao:!1,hg:c})),this.api.X("serverstitchedvideochange",d.Dc,d.gp),this.oa.ma("sdai",
DS(this,"midab",d)),this.Oj=1)}this.I=!1}else if(this.j){if(this.j.ao)this.oa.ma("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.hg,cpn:b,currentTime:this.oa.getCurrentTime()}),this.U.K("web_player_same_transition_fallback_killswitch")||(d=this.oa.getCurrentTime(),a={Od:a,isAd:!c,ao:!0,hg:d,adCpn:b},b={Od:this.j.Od,isAd:this.j.isAd,ao:!1,hg:d,adCpn:this.j.adCpn},this.j.Od&&this.ub.delete(this.j.Od.u),HS(this,a,b));else{if(this.j.Od===a){this.oa.ma("sdai",{same_cue_range_pair_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.hg,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.oa.ma("sdai",{dchtsc:b});this.j=void 0;return}a={Od:a,isAd:!c,ao:!0,hg:this.oa.getCurrentTime(),adCpn:b};HS(this,a,this.j)}this.j=void 0;this.I=!1}else this.j={Od:a,isAd:!c,ao:!0,hg:this.oa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.U.K("web_player_same_transition_fallback_killswitch")||this.ub.has(a.u)){this.ub.delete(a.u);this.Ea=this.Ea.filter(function(d){return d!==a});
this.Ya&&(this.I=this.Ya=!1,this.oa.ma("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.ao){if(this.j.Od===a){this.oa.ma("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.hg,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.oa.ma("sdai",{dchtsc:b});this.j=void 0;return}c={Od:a,isAd:!c,ao:!1,hg:this.oa.getCurrentTime(),adCpn:b};HS(this,this.j,c)}else this.oa.ma("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.hg,upcomingCpn:b,contentCpn:this.oa.getVideoData().clientPlaybackNonce,currentTime:this.oa.getCurrentTime()});this.j=void 0;this.I=!1}else this.j={Od:a,isAd:!c,ao:!1,hg:this.oa.getCurrentTime(),adCpn:b};this.U.K("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.oa.getCurrentTime()<this.oa.al()&&wS(this,Infinity))}else this.oa.ma("sdai",{ignore_single_exit:1})};
g.k.isAdPlaying=function(a){return this.yp?!1:yS(this)?!!this.V:!!JS(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.I=!0;if(void 0===b?0:b)wS(this,a);else{b=this.api.Fc();var d=b===this.gb?this.Kb:null;KS(this,!1);this.yc=a;null!=c&&this.Lc.start(c);b&&(this.Kb=d||b.getPlayerState(),CX(b),this.gb=b)}};
g.k.ea=function(){KS(this,!1);MS(this);GKa(this);g.K.prototype.ea.call(this)};
g.k.IK=function(a){this.Nc=a;this.oa.ma("sdai",{swebm:a})};
g.k.Tj=function(a,b,c){if(c&&b){var d=this.Ha.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.LB(c);this.La&&this.oa.ma("sdai",{hdlredir:1,itag:b,seg:a,hostport:NB(c)});d.locations.set(e,c)}}};
g.k.Uy=function(a,b,c,d){var e=3===d;a=IKa(this,a,b,d,c);if(!a)return QS(this,b,e),null;e=a.Jj;var f;b=(null==(f=OS(this,b-1,d))?void 0:f.Qr)||"";f=wF(a.ssdaiAdsConfig||"")||void 0;f={d4:{lG:e?LKa(this,e):[],UW:f,Qr:b,t4:a.wA}};return lH(f,xKa)};
g.k.Am=function(a,b,c,d){var e=Number(c.split(";")[0]),f=3===d;a=IKa(this,a,b,d,c);this.La&&this.oa.ma("sdai",{gdu:1,seg:b,itag:e,pb:""+!!a});if(!a)return QS(this,b,f),null;a.locations||(a.locations=new Map);if(!a.locations.has(e)){var h,l,m=null==(h=a.videoData.getPlayerResponse())?void 0:null==(l=h.streamingData)?void 0:l.adaptiveFormats;if(!m)return this.oa.ma("sdai",{gdu:"noadpfmts",seg:b,itag:e}),QS(this,b,f),null;h=m.find(function(A){return A.itag===e});
if(!h||!h.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:e,fullitag:c,itags:""};if(!this.U.K("html5_ssdai_log_missing_itags_killswitch")){var n=[];a=g.r(m);for(var p=a.next();!p.done;p=a.next())n.push(p.value.itag);c.itags=n.join(",")}this.oa.ma("sdai",c);QS(this,b,f);return null}m=!this.U.K("html5_ssdai_decipher_killswitch");a.locations.set(e,new g.LB(h.url,m))}m=a.locations.get(e);if(!m)return this.oa.ma("sdai",{gdu:"nourl",seg:b,itag:e}),QS(this,b,f),null;m=new TC(m);this.Nc&&(m.get("dvc")?
this.oa.ma("sdai",{dvc:m.get("dvc")||""}):m.set("dvc","webm"));this.U.experiments.fb("ssdai_return_original_content")&&m.set("dairoc","1");var q;(h=null==(q=OS(this,b-1,d))?void 0:q.Qr)&&m.set("daistate",h);a.wA&&b>=a.wA&&m.set("skipsq",""+a.wA);(h=this.oa.getVideoData().clientPlaybackNonce)&&m.set("cpn",h);q=[];a.Jj&&(q=LKa(this,a.Jj),0<q.length&&m.set("acpns",q.join(",")));f||this.Ha.set(b,a);f=null;if(!this.U.K("web_player_ssdai_acpns_aids_logging_killswitch")){f=m.get("aids");var v,w;if(((null==
(v=f)?void 0:null==(w=v.split(","))?void 0:w.length)||0)!==q.length)if(a.Jj){var y;this.oa.ma("sdai",{acpns_aids_nm:1,ids:NKa(this,a.Jj).join("_"),acpns:q.join("_"),aids:null==(y=f)?void 0:y.replace(/,/g,"_"),cpn:h,trackType:d})}else this.oa.ma("sdai",{acpns_aids_nm:"noAdBreakId",cpn:h})}d=m.pe();2048<(null==d?void 0:d.length)&&this.oa.ma("sdai",{urltoolong:1,sq:b,itag:e,len:d.length});this.La?(d&&(v=a.cpn,p=a.Jj,PKa(this,v,p),p&&!this.Cb.has(p)&&(v=MKa(this,v,p),w=OKa(this,p),this.oa.ma("sdai",{iofa:v}),
this.oa.ma("sdai",{noawnzd:w-v}),this.oa.ma("sdai",{acpns:q.join("."),aids:null==(n=f)?void 0:n.replace(/,/g,".")}),this.Cb.add(p))),this.oa.ma("sdai",{gdu:"v",seg:b,itag:c,ast:a.Ac.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId})):!this.U.K("web_player_ssdai_all_acpns_aids_logging_killswitch")&&d&&(b=a.Jj)&&!this.Cb.has(b)&&(this.oa.ma("sdai",{acpns:q.join("."),aids:null==(p=f)?void 0:p.replace(/,/g,"."),vids:NKa(this,b).join("."),abid:b}),this.Cb.add(b));return d};
g.k.OK=function(a,b){if(a=NS(this,a,b)){var c=a.Jj;if(c){this.oa.ma("sdai",{skipadonsq:b,abid:c,acpn:a.cpn,avid:a.videoData.videoId});c=this.N.get(c);if(!c)return;c=g.r(c);for(var d=c.next();!d.done;d=c.next())d.value.wA=b}this.J=a.cpn;JKa(this)}};
g.k.pK=function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())b.value.wA=NaN;JKa(this);this.J=""};
g.k.JA=aa(32);
g.k.KJ=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Ua.set(a,{Qr:m,Ox:l}):this.qa.set(a,{Qr:m,Ox:l}));if(h){if(d.length&&e.length)for(this.J&&this.J===d[0]&&this.oa.ma("sdai",{skipfail:1,sq:a,acpn:this.J}),a=b+this.Un(),h=g.r(d.entries()),l=h.next();!l.done;l=h.next()){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.gp=null!=n.gp?Math.min(n.gp,l):l}if(!yS(this))if(d.length&&e.length)for(b=1E3*(b+this.Un()),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.oa.getVideoData().clientPlaybackNonce)PS(this,b,b+f,!1),b+=f;else if(this.Cd.has(c)||(this.oa.ma("sdai",{adCpnFromEmsg:1}),this.Cd.add(c)),(a=this.C.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(h=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=DKa(b,b+f,c),this.C.set(c,a),this.oa.ma("sdai",{newAdCR:1,cpn:c,startTime:a.start,endTime:a.end}),h=!0),b=a.end,PS(this,a.start,a.end,!0),h)for(this.oa.addCueRange(a),c=this.oa.zy("serverstitchedcuerange",
36E5),c=g.r(c),f=c.next();!f.done;f=c.next())this.C.delete(f.value.getId())}else 5!==c&&4!==c||PS(this,1E3*(b+this.Un()),1E3*(b+this.Un())+5E3,!1)}};
g.k.Gy=aa(34);g.k.Un=function(){return this.oa.Un()};
g.k.vz=function(a){this.oa.ma("timelineerror",{e:a})};
g.k.Yy=function(a){this.Y&&this.W&&this.Ra.push(this.W);!this.U.K("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.W&&this.Mc.push(this.W);this.W=null;this.oa.Yy(a)};
g.k.aI=function(a){if(this.yp||a.identifier&&this.Fd.has(a.identifier))this.La&&this.oa.ma("sdai",{startnoad:a.identifier}),CS(this);else if(Nl(this.Ra,function(c){return c.identifier===a.identifier}))this.oa.ma("sdai",{timedoutcp:1}),this.ra.start(0);
else if(!this.U.K("web_player_skip_fetched_cuepoint_killswitch")&&Nl(this.Mc,function(c){return c.identifier===a.identifier}))this.oa.ma("sdai",{fetchedcp:1}),CS(this);
else if(this.ra.isActive()){var b;this.oa.ma("sdai",{racingcp:(null==(b=this.W)?void 0:b.identifier)+"_"+a.identifier})}else this.Bd=(new Date).getTime()/1E3,this.La&&this.oa.ma("sdai",{adf:1}),this.Y=!1,this.ra.start(),this.W=a,this.qa.clear(),this.Ua.clear(),this.va.clear(),this.U.K("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.Ha.clear(),this.Eb=[]};
g.k.Nv=function(a,b){a=NS(this,a,b);if(!this.U.experiments.fb("disable_ssdai_on_errors")||!a||this.yp)return!1;this.yp=!0;0<this.Oj&&(this.Oj=0,this.V=null,this.api.X("serverstitchedvideochange"));a=this.oa;b={reason:"disablessdai",sq:b};"disablessdai"===b.reason&&(a.videoData.PL=!0);a.yd(new zG("qoe.restart",b));JV(a,!0);return!0};
g.k.us=function(){this.oa.ma("sdai",{rstdaist:1});this.qa.clear();this.Ua.clear();this.va.clear()};
g.k.rq=function(a){this.Fd.add(a);var b;(null==(b=this.W)?void 0:b.identifier)===a&&CS(this)};
g.k.JJ=function(a,b,c,d){if(yS(this)){var e=this.oa.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?ES(this):this.u.get(a),h=b===e?ES(this):this.u.get(b);f&&h?(c=this.I?c:d,GS(this.oa,f,h,c,d,this.I,!!this.J),this.J="",b===e?(this.eb=1E3*c,this.Oj=0,this.V=null,this.oa.ma("sdai",{adchg:this.Oj}),this.api.X("serverstitchedvideochange")):(this.eb=0,this.Oj++,this.V=h,this.oa.ma("sdai",{adchg:this.Oj,apid:this.V.Dc,acpn:this.V.cpn}),this.api.X("serverstitchedvideochange",h.Dc,
h.gp))):this.oa.ma("sdai",{unknowntrans:"1",old:a,"new":b});this.I=!1}}};
g.k.mq=function(a){var b=oO(this.api.ob());return b?b.mq(a):!1};
var BKa=0;g.u(RS,g.K);g.k=RS.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Fc()){var b=this.I.get(a);b?WKa(this,b.target,b.Cl,a):this.yd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Cp.Od===a})){var c=b.Cp,d=c.target;
c=c.Cl;d?WKa(this,d,c,a):VKa(this,b.Vc,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.J;VS(this);if(a){if(!US(this,a)){var b=this.api.Fc();this.yd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Fc().addCueRange(a.Cp.Od)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)QKa(this,a);else{b=this.api.Fc();var d=b===this.C?this.D:null;XS(this,!1);this.V=a;null!=c&&this.N.start(c);b&&(this.D=d||b.getPlayerState(),CX(b),this.C=b)}};
g.k.wh=function(a){g.uJ(a,128)&&ZKa(this)};
g.k.isManifestless=function(){return OH(this.j.getVideoData())};
g.k.ea=function(){XS(this,!1);ZS(this);g.K.prototype.ea.call(this)};
g.k.yd=function(a,b){this.j.yd(new zG(a,b))};
var RKa=0;var aLa="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.u(bT,g.K);bT.prototype.get=function(a){$S(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
bT.prototype.set=function(a,b,c){this.remove(a,!0);$S(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.U)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&cT(this,c,!0);aT(this)};
bT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(cT(this,c,b),g.$b(this.data,function(d){return d.key===a}),aT(this))};
bT.prototype.ea=function(){var a=this;g.K.prototype.ea.call(this);this.data.forEach(function(b){cT(a,b,!0)});
this.data=[]};g.eT.prototype.info=function(){};
var eLa=new Map;g.u(fT,g.K);fT.prototype.rC=function(a){if(a)return this.u.get(a)};
fT.prototype.ea=function(){dT(this.j);dT(this.u);g.K.prototype.ea.call(this)};g.u(gT,g.Co);gT.prototype.X=function(a){var b=g.za.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.Co.prototype.X.call.apply(g.Co.prototype.X,[this,a].concat(g.t(b.shift())))}finally{this.D.delete(a)}return c};hT.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
hT.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)};
hT.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.u(iT,g.K);iT.prototype.start=function(){this.u.start()};
iT.prototype.stop=function(){this.u.stop()};
iT.prototype.clear=function(){for(var a=g.r(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
iT.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 lT(M0a.has(b)));this.j.get(b).update(c())}this.u.start()};
var M0a=new Set(["networkactivity"]);lT.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
lT.prototype.clear=function(){this.buffer.clear();this.j=0};g.u(mT,g.K);mT.prototype.ea=function(){g.K.prototype.ea.call(this);this.j=null;this.u&&this.u.disconnect()};g.N0a=$f(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var r4;r4={};g.nT=(r4.STOP_EVENT_PROPAGATION="html5-stop-propagation",r4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",r4.IV_DRAWER_OPEN="ytp-iv-drawer-open",r4.MAIN_VIDEO="html5-main-video",r4.VIDEO_CONTAINER="html5-video-container",r4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",r4.HOUSE_BRAND="house-brand",r4);g.u(oT,g.X);g.k=oT.prototype;g.k.hp=function(){g.io(this.element,g.za.apply(0,arguments))};
g.k.Xh=function(){this.Jb&&(this.Jb.removeEventListener("focus",this.wJ),g.qh(this.Jb),this.Jb=null)};
g.k.fH=function(){this.isDisposed();var a=this.app.R();a.Nk||this.hp("tag-pool-enabled");a.D&&this.hp(g.nT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.hp("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Yb&&(this.QG=g.Ux("yt-dom-content-change",this.resize,this));this.P(window,"orientationchange",this.resize,this);this.P(window,"resize",this.resize,this)};
g.k.oA=function(a){this.JC=!a;pT(this)};
g.k.resize=function(){if(this.Jb){var a=this.Ji();if(!a.isEmpty()){var b=!g.Rg(a,this.xw.getSize()),c=nLa(this);b&&(this.xw.width=a.width,this.xw.height=a.height);a=this.app.R();(c||b||a.Yb)&&this.app.Sa.X("resize",this.getPlayerSize())}}};
g.k.Qp=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Jb){var b=this.app.R();Wu&&(this.Jb.setAttribute("x-webkit-airplay","allow"),a.title?this.Jb.setAttribute("title",a.title):this.Jb.removeAttribute("title"));sBa(a)?this.Jb.setAttribute("disableremoteplayback",""):this.Jb.removeAttribute("disableremoteplayback");this.Jb.setAttribute("controlslist","nodownload");b.im&&a.videoId&&(this.Jb.poster=a.If("default.jpg"))}b=g.fI(a,"yt:bgcolor");this.Zx.style.backgroundColor=b?b:"";this.aJ=iv(g.fI(a,"yt:stretch"));this.bJ=
iv(g.fI(a,"yt:crop"),!0);g.N(this.element,"ytp-dni",a.C);this.resize()};
g.k.setGlobalCrop=function(a){this.YH=iv(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.ZN=a;this.resize()};
g.k.wk=function(){};
g.k.getPlayerSize=function(){var a=this.app.R(),b=this.app.Sa.isFullscreen();if(b&&Pu())return new g.Qg(window.outerWidth,window.outerHeight);if(b||a.Tl){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.wz&&this.wz.media===a||(this.wz=window.matchMedia(a));var c=this.wz&&this.wz.matches}if(c)return new g.Qg(window.innerWidth,window.innerHeight)}else if(!isNaN(this.Cy.width)&&!isNaN(this.Cy.height))return this.Cy.clone();return new g.Qg(this.element.clientWidth,
this.element.clientHeight)};
g.k.Ji=function(){var a=this.app.R().K("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.TE(this.app.R().experiments,"player_underlay_min_player_width");return a&&this.XJ&&b.width>c?new g.Qg(b.width*g.TE(this.app.R().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.aJ)?lLa(this):this.aJ};
g.k.getVideoContentRect=function(a){var b=this.Ji();a=mLa(this,b,this.getVideoAspectRatio(),a);return new g.vl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Kw=function(a){this.XJ=a;this.resize()};
g.k.VC=function(){return this.OD};
g.k.onMutedAutoplayChange=function(){pT(this)};
g.k.setInternalSize=function(a){g.Rg(this.Cy,a)||(this.Cy=a,this.resize())};
g.k.ea=function(){this.QG&&g.Vx(this.QG);this.Xh();g.X.prototype.ea.call(this)};g.k=oLa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Bz();c&&a.visualElement&&g.Lz(c,a.visualElement,b)};
g.k.rb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=cua(c);a.visualElement=c;var f=g.Bz(),h=g.Az();f&&h&&g.Fz(void 0,f,h,[c]);g.cf(b,function(){pLa(e,a)});
d&&this.u.add(a)};
g.k.Ai=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.cf(b,function(){pLa(d,a)});
c&&this.u.add(a)};
g.k.mO=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,kDa(pK(),a),qLa(this))};
g.k.xk=function(a,b){this.elements.has(a);b&&(a.visualElement=g.uz(b))};
g.k.Nm=function(a){return this.elements.has(a)};g.u(uT,g.X);
uT.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.u(wT,g.X);g.k=wT.prototype;g.k.show=function(){g.X.prototype.show.call(this);this.Fa()};
g.k.hide=function(){g.X.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.Fa()};
g.k.Fa=function(){var a=(0,g.U)(),b=this.Sa.getStatsForNerds();vT(this.j,b.bandwidth_samples);vT(this.C,b.network_activity_samples);vT(this.B,b.live_latency_samples);vT(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.U)()-a?5E3:500;this.delay.start(a)};xT.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
xT.prototype.getPlaybackRate=function(){return this.playbackRate};BT.prototype.seek=function(a){a!==this.u&&(this.seekCount=0);this.u=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.kc,e=vLa(this,this.videoTrack,a,this.videoTrack.kc);d=vLa(this,this.audioTrack,this.policy.qa?a:e,d);a=Math.max(a,e,d);this.D=!0;this.j.isManifestless&&(tLa(this.videoTrack,b),tLa(this.audioTrack,c));return a};
BT.prototype.Cg=function(){return this.D};
var uLa=2/24;ALa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.U)()};g.u(GT,g.cz);g.k=GT.prototype;
g.k.DJ=function(a,b,c,d){if(this.C&&(this.policy.Ix||d)){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.Ox);this.C.KJ(a.Ia,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.V.has(a.Ia)){c=a.startTime;d=[];e=g.r(b.j.entries());for(f=e.next();!f.done;f=e.next())h=g.r(f.value),f=h.next().value,h=h.next().value,l=c,c=l+b.u[f],d.push({startTime:l,endTime:c,adCpn:h});this.V.set(a.Ia,d)}this.policy.Ld&&(c=this.ra&&a.Ia===this.ra.Ia+1,this.ra=a,d=this.j&&a.Ia===this.j.Ia+1,d=this.j&&c&&d&&
"stop"!==this.j.jf.event&&"predictStart"!==this.j.jf.event,e=a.jf||null,f=this.I.j.index.getLastSegmentNumber()<=a.Ia,h=this.N.isManifestless&&this.policy.im,e?(this.j={jf:e,Ia:a.Ia,cz:!!b},f?HT(this,e,a.Ia):h&&(c?d?HT(this,e,a.Ia):"continue"===e.event||"stop"===e.event?GLa(this,a):HT(this,e,a.Ia):HT(this,e,a.Ia))):d&&GLa(this,a))}};
g.k.CJ=function(a,b,c){var d=this.I.j.index.getLastSegmentNumber()<=b;this.j={jf:a,Ia:b,cz:c};d&&HT(this,a,b)};
g.k.us=function(){this.C&&this.C.us()};
g.k.ma=function(a,b){this.Ga.ma(a,b)};
g.k.zl=function(a,b){var c=this.I.j.index.getSegmentNumberForTime(a),d;if(d=0<=c){var e;d=(null==(e=OS(b.kd,c,2))?void 0:e.Qr)||""}if(d)return b.OK(a,c),FLa(this,a,a,c),this.ma("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.ma("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};
g.k.Lv=function(a){var b="",c=this.I.j.index.getSegmentNumberForTime(a);if(c=this.V.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};HLa.prototype.Ww=function(a){var b=this.policy.N;this.policy.N=KE(a,{},this.I);if(b!==this.policy.N){LT(this,this.j);NT(this);var c,d;b>this.policy.N&&(null==(c=this.B)?0:TD(c.info))&&(null==(d=this.nextVideo)||!TD(d.info))&&(this.N=!0)}};ST.prototype.dispose=function(){this.Y=!0};
ST.prototype.isDisposed=function(){return this.Y};
g.u(ZT,Error);cU.prototype.skip=function(a){this.offset+=a};
cU.prototype.getOffset=function(){return this.offset};gU.prototype.dj=function(){this.u=[];jU(this);fU(this)};
gU.prototype.Vi=function(a){this.La=this.u.shift().info;a.info.equals(this.La)};
gU.prototype.Um=function(){return!!this.I.info.audio};
gU.prototype.getDuration=function(){return this.I.index.getMaxKnownEndTime()};g.k=pU.prototype;g.k.IH=function(){return 0};
g.k.sC=function(){return null};
g.k.SO=function(){return null};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.ag=function(){return this.lastError};
g.k.onStateChange=function(){};
g.k.Qc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.hq=function(a){a&&this.state<a?this.Qc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.info.j[0].j.D=!1;this.Qc(-1)};
g.k.TH=function(){return 0};qU.prototype.Nw=function(){if(!this.sf.length)return[];var a=this.sf;this.sf=[];this.C=g.Qb(a).info;return a};
qU.prototype.uq=function(){return this.sf};g.u(CT,pU);g.k=CT.prototype;g.k.onStateChange=function(){this.isDisposed()&&(PW(this.qe,this.formatId),this.j.dispose())};
g.k.Cv=function(){var a=CNa(this.qe,this.formatId),b;var c=(null==(b=this.qe.ke.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.qe.ke.get(this.formatId))?void 0:d.BB)||0;var e;d=(null==(e=this.qe.ke.get(this.formatId))?void 0:e.sf.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.qe.Tg(this.formatId)}};
g.k.PO=function(){return 0};
g.k.Es=function(){return!0};
g.k.Nw=function(){this.Xn();this.HC=!0;return this.Fe.Nw()};
g.k.uq=function(){this.Xn();return this.Fe.uq()};
g.k.ww=function(){var a,b;return!!(null==(a=this.Fe)?0:null==(b=a.uq())?0:b.length)||this.qe.rh(this.formatId)};
g.k.Xn=function(){for(;this.qe.rh(this.formatId);){var a=this.Fe,b=this.qe.Vi(this.formatId),c=this.qe.ke.get(this.formatId);rU(a,b,c.Rf&&!c.sf.totalLength&&tMa(this.qe,this.formatId))}};g.k=tU.prototype;g.k.Gg=function(){return fMa(this.C)};
g.k.Vi=function(a){this.C.Vi(a);this.Pb=Math.max(this.Pb,a.info.j.info.Pb||0)};
g.k.getDuration=function(){return this.j.index.getMaxKnownEndTime()};
g.k.dj=function(){DT(this);this.C.dj()};
g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ia:!1};g.k=GU.prototype;g.k.lw=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.nw()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.tq())};
g.k.ws=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.Fy=function(){return+this.getResponseHeader("content-length")};
g.k.bl=function(){return this.B};
g.k.dA=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.rh=function(){return 0<this.j.totalLength};
g.k.Vi=function(){var a=this.j;this.j=new TB;return a};
g.k.Gg=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Qw=function(){return!0};
g.k.WD=function(){return this.C};
g.k.kf=function(){return""};g.k=KMa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.ws=function(){return!0};
g.k.Fy=function(){return this.range.length};
g.k.bl=function(){return this.loaded};
g.k.dA=function(){return!!this.loaded};
g.k.rh=function(){return!!this.u.totalLength};
g.k.Vi=function(){var a=this.u;this.u=new TB;return a};
g.k.Gg=function(){return this.u};
g.k.Qw=function(){return!0};
g.k.WD=function(){return!!this.error};
g.k.kf=function(){return this.error};var LMa=0;g.k=HU.prototype;g.k.Xr=function(){this.Y||(this.Y=this.callbacks.Xr?this.callbacks.Xr():1);return this.Y};
g.k.WC=function(){return this.nj?1!==this.Xr():!1};
g.k.nw=function(){this.La=this.now();this.callbacks.nw()};
g.k.Vs=function(a,b){JU(this,a,b);50>a-this.C&&LU(this)||PMa(this,a,b);this.callbacks.Vs(a,b)};
g.k.tq=function(){this.callbacks.tq()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.Es=function(){return this.u>this.ED&&MU(this,this.u)};
g.k.now=function(){return(0,g.U)()};g.k=PU.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.V);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.Y,this.onError).then(void 0,Lv)};
g.k.onDone=function(){this.isDisposed()||this.callbacks.tq()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.ws=function(){return!!this.D};
g.k.bl=function(){return this.u};
g.k.Fy=function(){return+this.getResponseHeader("content-length")};
g.k.dA=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.rh=function(){return!!this.j.totalLength};
g.k.Vi=function(){this.rh();var a=this.j;this.j=new TB;return a};
g.k.Gg=function(){this.rh();return this.j};
g.k.isDisposed=function(){return this.I};
g.k.abort=function(){this.fn&&this.fn.cancel().catch(function(){});
this.B&&this.B.abort();this.I=!0};
g.k.Qw=function(){return!0};
g.k.WD=function(){return this.J};
g.k.kf=function(){return this.errorMessage};QU.prototype.feed=function(a){for(UB(this.j,a);;){var b=0;b=g.r(VMa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(VMa(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).So.split(c);c=b.So;this.callbacks.tR(a,b.IC);this.j=c}};
QU.prototype.dispose=function(){this.j=new TB};g.k=RU.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.tq()}};
g.k.lw=function(){2===this.xhr.readyState&&this.callbacks.nw()};
g.k.Vd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.Vs((0,g.U)(),a.loaded))};
g.k.ws=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return iu(Error("Could not read XHR header "+a)),""}};
g.k.Fy=function(){return+this.getResponseHeader("content-length")};
g.k.bl=function(){return this.u};
g.k.dA=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.rh=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.Vi=function(){this.rh();var a=this.response;this.response=void 0;return new TB([new Uint8Array(a)])};
g.k.Gg=function(){this.rh();return new TB([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Qw=function(){return!1};
g.k.WD=function(){return!1};
g.k.kf=function(){return""};g.u(VU,pU);g.k=VU.prototype;g.k.pe=function(){return this.Cf.pe()};
g.k.Cv=function(){var a=IU(this.timing);a.shost=NB(this.Cf.xi);this.Fg&&(a.rc=this.Fg.toString());a.itag=this.info.j[0].j.info.itag;a.ml=""+ +this.info.j[0].j.Sf();a.sq=""+this.info.j[0].Ia;this.Cf&&(a.ifi=""+ +PB(this.info.u.C));410!==this.Fg&&500!==this.Fg&&503!==this.Fg||(a.fmt_unav="true");var b,c=null==(b=this.xhr)?void 0:b.kf();c&&(a.msg=c);this.yA&&(a.smb="1");this.Fe&&(b=this.Fe.uq(),b.length&&jxa(b[0],a));this.info.Am()&&(a.sdai="1");return a};
g.k.PO=function(){return TMa(this.timing)};
g.k.kf=function(){return this.xhr.kf()||""};
g.k.Es=function(){return this.isComplete()||this.timing.Es()};
g.k.Vs=function(){!this.isDisposed()&&this.xhr&&(this.Fg=this.xhr.status,this.ww()?this.hq(2):!this.wP&&this.Es()&&(this.hq(),this.wP=!0))};
g.k.nw=function(){if(!this.isDisposed()&&this.xhr){if(!this.fv&&this.xhr.ws()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.fv=((0,g.U)()-a)/1E3}this.xhr.ws()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.St&&!kya()&&g.Pz("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.Om=a||this.Om;this.Zn=b||this.Zn}};
g.k.tq=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.gE.stop(),this.Fg=a.status,a=lNa(this,a),5===a?UU(this):this.Qc(a))};
g.k.canRetry=function(){this.isDisposed();var a=SU(this),b=this.info.Am()?this.policy.Mt:this.policy.cf;return a.timedOut<this.policy.Qq&&a.j<b};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Eh?WU(this):this.timing.deactivate())};
g.k.E3=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.U)(),b=!1;LU(this.timing)?(a=this.timing.V,NMa(this.timing),this.timing.V-a>=.8*this.Bw?(this.Ko++,b=this.Ko>=this.policy.Ll):this.Ko=0):(b=this.timing,b.nj&&OU(b,b.now()),a-=b.N,this.policy.zi&&0<a&&(this.Ko+=1),b=Gwa(SU(this),this.policy,!1)*this.policy.Il,b=a>1E3*b);this.Ko&&this.callback&&this.callback(this,this.state);b?mNa(this,!1):this.gE.start()}};
g.k.dispose=function(){pU.prototype.dispose.call(this);this.gE.dispose();this.policy.Eh||WU(this)};
g.k.Nw=function(){if(!this.uq().length)return[];this.HC=!0;return this.Fe.Nw()};
g.k.ww=function(){if(1>this.state)return!1;if(this.Fe&&this.Fe.sf.length)return!0;var a;return(null==(a=this.xhr)?0:a.rh())?!0:!1};
g.k.uq=function(){this.Xn(!1);return this.Fe?this.Fe.uq():[]};
g.k.Xn=function(a){if(a||this.xhr.ws()&&this.xhr.rh()&&!kNa(this)&&!this.jt){if(!this.Fe){var b;this.xhr.Qw()?b=qD(this.info):b=this.xhr.bl();this.Fe=new qU(this.info.j,b)}for(;this.xhr.rh();)this.Uw?this.Uw.feed(this.xhr.Vi()):rU(this.Fe,this.xhr.Vi(),a&&!this.xhr.rh())}};
g.k.tR=function(a,b){switch(a){case 21:a=b.split(1).So;rU(this.Fe,a,!1);break;case 22:this.cT=!0;break;case 43:if(a=cH(new YG(b),1))this.info.Tj(this.Cf,a),this.dT=!0}};
g.k.bl=function(){return this.xhr.bl()};
g.k.IH=function(){return this.fv};
g.k.Xr=function(){return this.WC()?2:1};
g.k.WC=function(){if(!this.policy.C.Xi||!isNaN(this.info.Of)&&0<this.info.Of)return!1;if(!this.xhr.ws())return!0;var a=this.xhr;a.Fy()?a=!1:(a=a.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);return!a||isNaN(this.info.Of)&&(a=this.xhr.getResponseHeader("x-head-seqnum"))&&Number(a)>this.info.j[0].Ia?!1:!0};
g.k.TH=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.sC=function(){this.xhr&&(this.Om=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Om};
g.k.SO=function(){this.xhr&&(this.Zn=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Zn};g.u(XU,g.K);
XU.prototype.Nv=function(a){var b=a.info.j[0].j,c=a.ag();if(OB(b.u.j)){var d=g.Cc(a.kf());this.Ga.ma("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ia;var e=DLa(this.B,a.info.j[0].C,d);"net.badstatus"===c&&(this.J+=1);if(a.canRetry()){if(!(a.info.u.u>=this.policy.Mt&&this.u&&a.info.Am()&&"net.badstatus"===a.ag()&&this.u.Nv(e,d))){d=(b.info.video&&1<b.u.u||410===a.Fg||500===a.Fg||503===a.Fg)&&!QT(this.D)&&!OB(b.u.j);e=a.Cv();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Ga.handleError(c,
e);this.isDisposed()||(d&&PT(this.D,b),EU(f,a),this.Ga.Ij())}}else b=1,this.u&&a.info.Am()&&"net.badstatus"===a.ag()&&this.u.Nv(e,d)&&(b=0),this.j.isLive&&"net.badstatus"===a.ag()&&this.J<=2*this.policy.cf?(bya(this.j),this.policy.Js||!this.j.xf&&!this.j.isPremiere?!this.policy.Js&&this.j.C?this.Ga.oa.seekTo(this.j.Kb,{re:"badStatusWorkaround",jp:!0}):QNa(this.Ga):this.Ga.oa.seekTo(0,{re:"badStatusWorkaround"})):this.Ga.handleError(c,a.Cv(),b)};
XU.prototype.ea=function(){this.C=null;this.N="";g.K.prototype.ea.call(this)};
var $U=2/24;tNa.prototype.clear=function(){this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};g.u(g.gV,g.K);g.k=g.gV.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.oa.vD(OLa(this.je));if(this.j.isManifestless){if(this.policy.Vj){b=Tva(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.B=b)}sNa(this.B)}this.C&&vNa(this.C,this.videoTrack.j);this.policy.ra&&qB()&&this.ma("streaming",{ac:!!window.AbortController||rB()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.V&&(DNa(this,this.videoTrack),DNa(this,this.audioTrack),jQa(this.V),delete this.V);
c?(this.policy.Ne?(this.Ea=c,iV(this,c)):iV(this,!1),g.$n(this.fD)):(a=0===this.currentTime,dV(this.B,this.videoTrack,this.videoTrack.j,a),dV(this.B,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Wi(function(){}),this.timing.tick("gv"));
(this.j.Xe||this.j.Rh||this.j.Kb||this.j.yc||this.j.Nc)&&this.ma("minMaxSq",{minSq:this.j.Xe,maxSq:this.j.Rh,minDvrTime:this.j.Kb,maxDvrTime:this.j.yc,startWalltime:this.j.Nc})};
g.k.resume=function(){if(this.isSuspended||this.Xv){this.jH=this.Xv=this.isSuspended=!1;try{this.Ij()}catch(a){g.qz(a)}}};
g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.je;b.u=b.C.j[a.id];b.J=b.u;a=new KT(b.J,b.B,"m");lV(this.oa,a.reason,a.audio.info);mV(this.oa)}};
g.k.setPlaybackRate=function(a){a!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(a)};
g.k.UH=function(){return this.oa.UH()};
g.k.AC=function(){return this.oa.AC()};
g.k.Yk=function(){return this.oa.Yk()};
g.k.MJ=function(a){this.oa.MJ(a)};
g.k.Ij=function(){kV(this);if(this.mediaSource&&rE(this.mediaSource)&&!this.mediaSource.Ph()){var a=vU(this.videoTrack);a=this.policy.Ok&&a&&hD(a);this.j.isManifestless&&this.j.C&&BE(this.j)?(this.I=BE(this.j),this.mediaSource.wj(this.I)):FE(this.j)&&!a?isNaN(this.I)?(this.I=this.currentTime+3600,this.mediaSource.wj(this.I)):this.I<=this.currentTime+1800&&(this.I=Math.max(this.I+1800,this.currentTime+3600),this.mediaSource.wj(this.I)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.I)||this.I!==a)&&0<a&&(this.mediaSource.wj(a),this.I=a))}if(!this.isDisposed())if(AE(this.j)&&this.j.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.j.Fg.toString()},1);else if(!this.j.u||!DMa(this.videoTrack)&&!DMa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Ya?a=!1:(this.dj(),this.oa.seekTo(Infinity,{re:"checkLoaderTracksSync",jp:!0}),a=!0),!a){kV(this);try{xU(this.videoTrack);if(this.isDisposed())return;
xU(this.audioTrack);if(this.isDisposed())return}catch(e){rNa(this,e,{origin:"pollSlice"})}this.j.isManifestless&&(EMa(this.videoTrack),EMa(this.audioTrack),yLa(this.D),(a=this.videoTrack.Gg())&&a.u&&(a=a.u.D&&!this.policy.On,this.ma(a===this.policy.C.Xi?"strm":"strmbug",{strm:a,sfmp4:this.policy.C.Xi,dfs:this.policy.On},!0)));if(this.mediaSource)ENa(this);else if(this.policy.j){(a=this.videoTrack.Gg())&&this.videoTrack.Vi(a);var b=this.audioTrack.Gg();b&&this.audioTrack.Vi(b);zU(this.videoTrack)&&
zU(this.audioTrack)||(a||b)&&nV(this)}hV(this);dV(this.B,this.videoTrack,this.videoTrack.j,!1);dV(this.B,this.audioTrack,this.audioTrack.j,!1);a=this.videoTrack;var c=this.audioTrack;if((!this.mediaSource||rE(this.mediaSource)&&!this.policy.gb)&&!this.D.Cg()&&FU(a)&&a.j.Sf()&&this.je.N){b=this.currentTime;var d=this.N;c=zT(d,a.j.info.Pb,c.j.info.Pb,0);d=BF(d.schedule)+c/DF(d.schedule);b+=Math.max(d,d+10-c/a.j.info.Pb);a:{if(a.B.length){if(a.B[0].info.j[0].startTime<=b)break a;DT(a)}d=a.C;for(c=d.u.length-
1;0<=c;c--)d.u[c].info.startTime>b&&d.u.pop();a.B.length?a.u=g.Qb(g.Qb(a.B).info.j):a.C.u.length?a.u=hU(a.C).info:a.u=vU(a);a.u&&b<a.u.startTime&&(a.W=0,a.j.Sf()?a.u=a.j.Dm(b,!0).j[0]:a.u=null)}}nNa(this.B,this.videoTrack,this.audioTrack);nNa(this.B,this.audioTrack,this.videoTrack);this.policy.Ul&&this.ra&&!this.isSuspended&&dza(this.schedule)&&(MNa(this,this.ra),this.ra="");this.C&&(a=this.C,a.C?(b=a.I+a.policy.Ki,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.Kd)),a=Math.max(0,1E3*b-Date.now())):a=
NaN,isNaN(a)||g.$n(this.Ra,a));g.$n(this.Ha)}};
g.k.SV=function(a){var b=this;if(this.policy.Lc&&this.mediaSource){var c=a===this.mediaSource.j,d=a.uC();d&&(d.Gb&&!d.Ae||this.ma("sbu",a.Ob({a:c})),d.Ae&&!a.Ph()&&setTimeout(function(){var e=a.yg(),f=hE(e,d.startTime+$U),h=hE(e,b.currentTime);(0>f||f!==h)&&b.ma("sbu_mismatch",{b:gE(e),c:b.currentTime,s:nD(d)})},0))}this.Ij()};
g.k.V_=function(a){if(this.mediaSource){var b=vU(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.RH())for(var c=0;c<a.length;c++)this.ma("appendedbuffer",{i:c,b:g.Bc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=mD(b));this.handleError("fmt.unplayable",a,1)}};
g.k.jw=function(a){this.oa.jw(a)};
g.k.DJ=function(a,b,c){this.j.isManifestless&&oMa(this,b,c,!!a.info.video,!0)};
g.k.CJ=function(a,b,c,d){a.info.video&&this.u.CJ(b,c,d)};
g.k.Sy=aa(8);g.k.seek=function(a){if(this.isDisposed())return Jh();if(this.videoTrack.J||this.audioTrack.J)return Jh("seeking to head");kV(this);this.B.V=(0,g.U)();hV(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&mV(this.oa,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.D.seek(a);JT(this.u,a,b);nV(this);return Ih(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.JH=function(){return this.audioTrack.j.info.j};
g.k.KH=function(){return this.videoTrack.j.info.j};
g.k.ea=function(){try{jV(this),DT(this.audioTrack),DT(this.videoTrack),g.K.prototype.ea.call(this)}catch(a){g.qz(a)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=AG(c);"fmt.unplayable"===a&&this.j.isLive&&(this.policy.ra=!1);b=new zG(a,b,c);g.Ra(this);yG(b.details);this.oa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.Ob=function(){var a=vU(this.audioTrack),b=vU(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.D.Cg(),lmf:this.je.j.isLocked(),lbw:CF(this.schedule).toFixed(3),lhd:BF(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.Nh()||0)).toFixed(3),laa:a?nD(a):"",lva:b?nD(b):"",lar:this.audioTrack.u?nD(this.audioTrack.u):"",lvr:this.videoTrack.u?nD(this.videoTrack.u):"",laq:""+AU(this.audioTrack),lvq:""+AU(this.videoTrack)};this.mediaSource&&!this.mediaSource.Rf()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=gE(this.mediaSource.j.yg()),a.lvb=gE(this.mediaSource.u.yg()));this.W&&(a.lapt=((0,g.U)()-this.W).toFixed(0),a.lapr=INa(this));return a};
g.k.dj=function(){try{this.audioTrack.dj(),this.videoTrack.dj()}catch(a){g.qz(a)}this.policy.j=""};
g.k.GH=function(){return yT(this.N)};
g.k.ma=function(a,b,c){this.oa.ma(a,b,void 0===c?!1:c)};
g.k.Nf=function(){return this.oa.Nf()};
g.k.jp=function(a,b){a/=b;isNaN(this.timestampOffset)&&qV(this,a-Math.min(a,this.policy.vg));return(a-this.timestampOffset)*b};
g.k.Cg=function(){return this.D.Cg()};
g.k.us=function(){this.u.us()};
g.k.Ww=function(a){this.je.Ww(a)};
g.k.zl=function(a,b){return this.J&&this.u.zl(a,this.J)?(qV(this,this.timestampOffset-b),nV(this),!0):!1};
g.k.Lv=function(a){return this.u.Lv(a)};g.k=g.rV.prototype;g.k.Am=function(a,b,c,d){return this.kd.Am(a,b,c,d)};
g.k.Uy=function(a,b,c,d){return this.kd.Uy(a,b,c,d)};
g.k.aI=function(a){this.kd.aI(a)};
g.k.Nv=function(a,b){return this.kd.Nv(a,b)};
g.k.us=function(){this.kd.us()};
g.k.OK=function(a,b){this.kd.OK(a,b)};
g.k.pK=function(){this.kd.pK()};
g.k.Gy=aa(33);g.k.Tj=function(a,b,c){this.kd.Tj(a,b,c)};
g.k.JA=aa(31);g.k.KJ=function(a,b,c,d,e,f,h,l,m){this.kd.KJ(a,b,c,d,e,f,h,l,m)};
g.k.IK=function(a){this.kd.IK(a)};
g.k.JJ=function(a,b,c,d){this.kd.JJ(a,b,c,d)};
g.k.mq=function(a){return this.kd.mq(a)};g.u(sV,g.cz);g.u(tV,sV);tV.prototype.I=function(a,b){if(a&&b){var c=1*Number(yi(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.Cf(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.$n(this.u))}};
tV.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.X;for(var d=this.B,e=this.j[c].match(oi),f=[],h=g.r(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Tg(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 $T(d,"fairplay",!0))}this.j={}};
tV.prototype.ea=function(){this.j={};sV.prototype.ea.call(this)};var s4={},ZNa=(s4.DRM_TRACK_TYPE_AUDIO="AUDIO",s4.DRM_TRACK_TYPE_SD="SD",s4.DRM_TRACK_TYPE_HD="HD",s4.DRM_TRACK_TYPE_UHD1="UHD1",s4);g.u(VNa,g.K);g.u(vV,g.cz);g.k=vV.prototype;g.k.qq=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=PE(b.u)?d:c;d=new Uint8Array(PE(b.u)?c:d);PE(b.u)&&mOa(d);c=g.Bc(d,4);mOa(d);d=g.Bc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),kOa(this,","),uV(this,{onkeystatuschange:1}),this.status="kc",this.X("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.X("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.X("ctmp","provf",{et:a.toFixed(3)})));AG(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.va&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ea=function(){this.j={};g.cz.prototype.ea.call(this)};
g.k.Ob=function(){var a={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.qa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.zg=function(){var a=this.D.join();if(wV(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.k.pe=function(){return this.url};g.u(zV,g.K);g.k=zV.prototype;g.k.TV=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.qq=function(){this.J&&this.J(this.j.keyStatuses)};
g.k.iR=function(a){this.D&&this.D(a.message,"license-request")};
g.k.hR=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.gR=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,hu(function(c){pOa(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 Iu()};
g.k.ea=function(){this.j&&this.j.close();this.element=null;g.K.prototype.ea.call(this)};g.u(AV,g.K);g.k=AV.prototype;g.k.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))});
OE(this.j)?this.B=new (NE())(this.j.keySystem):QE(this.j)?(this.B=new (NE())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(az(this.D,this.element,["keymessage","webkitkeymessage"],this.WV),az(this.D,this.element,["keyerror","webkitkeyerror"],this.VV),az(this.D,this.element,["keyadded","webkitkeyadded"],this.UV));return null};
g.k.setServerCertificate=function(){return"widevine"===this.j.flavor&&this.j.Hk&&this.u.setServerCertificate?this.u.setServerCertificate(this.j.Hk):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();RE(this.j)&&(c=qOa(c,this.j.Ya));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new zV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},hu(function(f){pOa(e,"t.generateRequest",f)}));
return e}if(OE(this.j))return sOa(this,c);if(QE(this.j))return rOa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new zV(this.element,this.j,c,null,null)};
g.k.WV=function(a){var b=BV(this,a);b&&b.iR(a)};
g.k.VV=function(a){var b=BV(this,a);b&&b.hR(a)};
g.k.UV=function(a){var b=BV(this,a);b&&b.gR(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.ea=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.K.prototype.ea.call(this);delete this.element};g.u(CV,g.K);
CV.prototype.init=function(){var a=this,b,c;return g.z(function(d){if(1==d.j)return g.yl(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.B,document.body.appendChild(a.j),a.C.P(a.j,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.x(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new AV(a.j,
a.B);g.M(a,a.u);a.u.attach();g.pa(d)})};
CV.prototype.I=function(a){if(!this.isDisposed()){var b=new Uint8Array(a.initData);a=new $T(b,a.initDataType);var c=RNa(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){});
e&&(g.M(this,e),this.D.push(e),bOa(e,function(f){nOa(f,e.j,c,d)},function(){},function(){},function(){}))}};
CV.prototype.ea=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.K.prototype.ea.call(this)};g.u(DV,sV);
DV.prototype.I=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.U)();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.X("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?tOa(this,a):(this.j.push({time:b+c,info:a}),g.$n(this.u,c))}};
DV.prototype.ea=function(){this.j=[];sV.prototype.ea.call(this)};EV.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
EV.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
EV.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
EV.prototype.findIndex=function(a){return g.Vb(this.keys,function(b){return g.qc(a,b)})};g.u(GV,g.cz);g.k=GV.prototype;g.k.XV=function(a){this.ji({onecpt:1});a.initData&&yOa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.b1=function(a){this.ji({onndky:1});yOa(this,a.initData,a.contentType)};
g.k.jw=function(a){this.ji({onneedkeyinfo:1});this.U.K("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));xOa(this,a)};
g.k.DN=function(a){this.B.push(a);HV(this)};
g.k.createSession=function(a){var b=zOa(this)?cMa(a):g.Bc(a.initData);this.u.get(b);this.ra=!0;a=new vV(this.videoData,this.U,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.KQ,this);a.subscribe("keystatuseschange",this.qq,this);a.subscribe("licenseerror",this.uD,this);a.subscribe("newlicense",this.cR,this);a.subscribe("newsession",this.dR,this);a.subscribe("sessionready",this.pR,this);a.subscribe("fairplay_next_need_key_info",this.UQ,this);dOa(a,this.C)};
g.k.cR=function(a){this.isDisposed()||(this.ji({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.X("heartbeatparams",a)))};
g.k.dR=function(){this.isDisposed()||(this.ji({newlcssn:1}),this.B.shift(),this.ra=!1,HV(this))};
g.k.pR=function(){if(OE(this.j)&&(this.ji({onsnrdy:1}),this.Ea--,0===this.Ea)){var a=this.W;a.element.msSetMediaKeys(a.B)}};
g.k.qq=function(a){if(!this.isDisposed()){!this.va&&this.videoData.K("html5_log_drm_metrics_on_key_statuses")&&(AOa(this),this.va=!0);this.ji({onksch:1});if(!wV(a)&&g.yw&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(wV(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(!wV(a)||c)b=a.D;b=g.Wb(b,"UHD2")||g.Wb(b,"UHD2HDR")?
"highres":g.Wb(b,"UHD1")||g.Wb(b,"UHD1HDR")?"hd2160":g.Wb(b,"HD")||g.Wb(b,"HDHDR")?"hd1080":g.Wb(b,"HD720")||g.Wb(b,"HD720HDR")?"hd720":"large"}a:{c=g.vB("auto",b,!1,"l");if(this.videoData.Gi){if(this.N.equals(c))break a}else if(Fva(this.N,b))break a;this.N=c;this.X("qualitychange");this.ji({updtlq:b})}this.X("keystatuseschange",a)}};
g.k.KQ=function(a,b){this.isDisposed()||this.X("ctmp",a,b)};
g.k.UQ=function(a,b){this.isDisposed()||this.X("fairplay_next_need_key_info",a,b)};
g.k.uD=function(a,b,c,d){this.isDisposed()||(this.videoData.K("html5_log_drm_metrics_on_error")&&AOa(this),this.X("licenseerror",a,b,c,d))};
g.k.Zr=function(){return this.N};
g.k.ea=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.KQ,this),b.unsubscribe("keystatuseschange",this.qq,this),b.unsubscribe("licenseerror",this.uD,this),b.unsubscribe("newlicense",this.cR,this),b.unsubscribe("newsession",this.dR,this),b.unsubscribe("sessionready",this.pR,this),b.unsubscribe("fairplay_next_need_key_info",this.UQ,this),b.dispose();
this.u.clear();FV(this.I);FV(this.J);this.heartbeatParams=null;g.cz.prototype.ea.call(this)};
g.k.Ob=function(){for(var a={systemInfo:this.j.Ob(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Ob());return a};
g.k.zg=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.zg()+(this.D?"/KR":"")};
g.k.ji=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(yG(a),(xG(this.U)||b)&&this.X("ctmp","drmlog",a))};g.u(KV,g.K);KV.prototype.YC=function(){return this.u};
KV.prototype.handleError=function(a){var b=this;FOa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!MV(this,a.errorCode,a.details))&&!HOa(this,a))if(AG(a.severity)){var c,d=null==(c=this.oa.Ga)?void 0:c.je.j;if("net.badstatus"===a.errorCode&&(1===a.severity||a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.Oa.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.oa.fg(a.errorCode,
a.severity,e,yG(a.details),f)}else this.oa.X("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.yd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.U)(),aS(a,"manifest",function(h){b.D=!0;b.ma("pathprobe",h)},function(h){b.yd(h.errorCode,h.details)}))};
KV.prototype.ma=function(a,b){this.oa.hc.ma(a,b)};
KV.prototype.yd=function(a,b){b=yG(b);this.oa.hc.yd(a,b)};NV.prototype.setPlaybackRate=function(a){this.playbackRate=a};
NV.prototype.K=function(a){return this.U.K(a)};g.u(QV,g.K);QV.prototype.bd=function(a){YOa(this);this.playerState=a.state;0<=this.B&&g.uJ(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
QV.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(O0a)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
QV.prototype.send=function(){if(!(this.C||0>this.u)){YOa(this);var a=g.sS(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.W(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.W(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.W(this.playerState,16)||g.W(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.W(this.playerState,1)&&g.W(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.W(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.W(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.W(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=DRa[eI(this.j.videoData)];a:switch(this.j.U.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.U.Ne+
36E5<(0,g.U)();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.cI(this.j.videoData),isGapless:this.j.videoData.Ea,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.Mv("html5PlayerHealthEvent",b);this.j.K("html5_health_to_qoe")&&
(b.muted=a,this.J(b));this.C=!0;this.dispose()}};
QV.prototype.ea=function(){this.C||this.send();g.K.prototype.ea.call(this)};
var O0a=/\bnet\b/;var $Oa=window;var ZOa=/[?&]cpn=/;g.u(g.WV,g.K);g.k=g.WV.prototype;g.k.QY=function(){var a=g.sS(this.j);XV(this,a)};
g.k.Ky=function(){return this.va};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.sS(this.j),-1<["PL","B","S"].indexOf(this.Zd)&&(!g.Cf(this.u)||a>=this.C+30)&&(g.VV(this,a,"vps",[this.Zd]),this.C=a),!g.Cf(this.u))){7E3===this.sequenceNumber&&g.rz(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){ZV(this,a);var b=a,c=this.j.oa.Ty(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.ub,h=e&&!this.Kb;d>c.totalVideoFrames||5E3<f?fPa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||h)&&g.VV(this,b,"df",[f]);this.ub=d;this.Kb=e;!this.j.U.K("disable_webgl_reporting")&&0<this.N&&(g.VV(this,a,"glf",[this.N]),this.N=0);a={};this.j.videoData.u&&(a.fmt=this.j.videoData.u.itag,(b=this.j.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.j.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.V&&(a.addocid=this.V);this.j.videoData.cotn&&(a.cotn=this.j.videoData.cotn);a.el=qI(this.j.videoData);a.content_v=rI(this.j.videoData);a.ns=this.j.U.Ha;
a.fexp=this.j.U.experiments.experimentIds.toString();a.cl=(467558535).toString();(b=this.j.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=eI(this.j.videoData))&&(a.live=b);WH(this.j.videoData)&&(a.drm=1,this.j.videoData.N&&(a.drm_system=d0a[this.j.videoData.N.flavor]||0),this.j.videoData.dK&&(a.drm_product=this.j.videoData.dK));ru()&&this.j.videoData.I&&(a.ctt=this.j.videoData.I,a.cttype=this.j.videoData.Ej,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.PL&&(a.dai_fallback="1")):this.j.videoData.Dc?a.dai="cs":this.j.videoData.QL&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.j.K("html5_log_server_url_param")&&this.j.videoData.aS){if(b=this.j.videoData.aS,a&&b)for(c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Mc.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.j.videoData.videoId,a.ei=this.j.videoData.eventId;
g.If(a,this.j.U.deviceParams);a=g.wi("//"+this.j.U.Pk+"/api/stats/qoe",a);c=b="";d=g.r(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.rz(new g.Rv("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?c+=e:b+=e);cPa(this,a+b,c.replace(/ /g,"%20"))}this.u={}}};
g.k.eA=function(a){0<a&&(this.u.aft=[a.toString()])};
g.k.tS=function(){if(this.j.videoData.N){var a=this.j.videoData.N;aW(this,"eme-"+(a.keySystemAccess?"final":OE(a)?"ms":RE(a)?"ytfp":QE(a)?"safarifp":"nonfinal"))}};
g.k.bd=function(a){var b=a.state,c=g.sS(this.j);a=this.getPlayerState(a.state);a!==this.Zd&&(c<this.C||("PL"===this.Zd?this.playTimeSecs+=c-this.C:"B"===this.Zd&&this.ra&&(this.ra=!1,this.rebufferTimeSecs+=c-(g.TE(this.j.U.experiments,"html5_disable_last_state_change")?this.C:this.Ya),!this.Ra&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.j.oa.Mz(),this.u.qoealert=["1"],this.Ra=!0)),"B"!==a||"PL"!==this.Zd&&"PB"!==this.Zd||(this.ra=!0),this.C=c),"PL"===this.Zd&&("B"===a||"S"===a)||xG(this.j.U)?
ZV(this,c):(this.Ua||"PL"!==a||(this.Ua=!0,YV(this,c,this.j.oa.Ry())),XV(this,c)),"PL"===a&&g.$n(this.yc),g.VV(this,c,"vps",[a]),this.Zd=a,this.C=this.Ya=c,this.D=!0);a=b.getData();g.W(b,128)&&a&&ePa(this,c,a.errorCode,a.bC,a.VR);(g.W(b,2)||g.W(b,128))&&this.reportStats(c);b.Oc()&&!this.I&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.I=!0);$V(this)};
g.k.Sz=function(a){var b=g.sS(this.j);g.VV(this,b,"vfs",[a.j.id,a.u,this.Yb,a.reason]);this.Yb=a.j.id;var c=this.j.oa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.kG();1<d&&c.push(d);g.VV(this,b,"view",c)}this.La||(xG(this.j.U)&&aW(this,"rqs"),this.j.videoData.j&&AB(this.j.videoData.j)&&(this.u.preload=["1"]));this.D=this.La=!0;"m"===a.reason&&100===++this.Nc&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.VV(this,b,"vps",[this.Zd]);this.reportStats(b)};
g.k.Kz=function(a){var b=g.sS(this.j);a.j.id!==this.Ea&&(g.VV(this,b,"afs",[a.j.id,this.Ea,a.reason]),this.Ea=a.j.id)};
g.k.oq=aa(37);g.k.nq=aa(40);g.k.onPlaybackRateChange=function(a){var b=g.sS(this.j);a&&a!==this.Eb&&(g.VV(this,b,"rate",[a]),this.Eb=a);this.reportStats(b)};
g.k.wl=aa(15);g.k.getPlayerState=function(a){if(g.W(a,128))return"ER";if(g.W(a,2048))return"B";if(g.W(a,512))return"SU";if(g.W(a,16)||g.W(a,32))return"S";if(g.fK(a)&&g.W(a,64))return"B";var b=P0a[iK(a)];g.cG(this.j.U)&&"B"===b&&3===this.j.oa.getVisibilityState()&&(b="SU");"B"===b&&g.W(a,4)&&(b="PB");return b};
g.k.ea=function(){g.K.prototype.ea.call(this);window.clearInterval(this.eb)};
g.k.ma=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.zc.indexOf(a);e||this.zc.push(a);if(!c||!e){b="string"!==typeof b?yG(b):b;b=gPa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.sS(this.j);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.u.ctmp=d;$V(this);return f}};
g.k.fA=function(a,b,c){this.J={R3:Number(this.ma("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),BQ:a,z3:b,isAd:c}};
g.k.zt=function(a,b,c){g.VV(this,g.sS(this.j),"ad_playback",[a,b,c])};
var t4={},P0a=(t4[5]="N",t4[-1]="N",t4[3]="B",t4[0]="EN",t4[2]="PA",t4[1]="PL",t4);iPa.prototype.update=function(){if(this.N){var a=this.j.oa.getCurrentTime()||0;this.j.U.K("html5_vss_media_time_killswitch")||(a=this.j.oa.gj()||0);var b=g.sS(this.j);if(a!==this.u||lPa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||lPa(this,a,b))){var d=this.j.hj();c=d.volume;var e=c!==this.W;d=d.muted;d!==this.V?(this.V=d,c=!0):(!e||0<=this.D||(this.W=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(eW(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};fW.prototype.send=function(a){var b=this;if(!this.Ra){var c=hW(this),d=g.wi(this.uri,c);this.V&&!this.U.K("html5_simplify_pings")?qPa(this,d):gW(this,a).then(function(e){b.V&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});UV(d,e,{token:b.J,eL:b.eb,mdxEnvironment:b.mdxEnvironment},b.U,a,b.ra,b.isFinal&&b.Oe||b.qa||b.B&&b.Pe)});
this.Ra=!0}};
fW.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var u4={},oPa=(u4.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,u4.LIVING_ROOM_APP_MODE_MAIN=1,u4.LIVING_ROOM_APP_MODE_KIDS=2,u4.LIVING_ROOM_APP_MODE_MUSIC=3,u4.LIVING_ROOM_APP_MODE_UNPLUGGED=4,u4.LIVING_ROOM_APP_MODE_GAMING=5,u4),v4={},nPa=(v4.EMBEDDED_PLAYER_MODE_UNKNOWN=0,v4.EMBEDDED_PLAYER_MODE_DEFAULT=1,v4.EMBEDDED_PLAYER_MODE_PFP=2,v4.EMBEDDED_PLAYER_MODE_PFL=3,v4);g.u(jW,g.K);g.k=jW.prototype;g.k.Vd=function(){this.u.update();var a;if(a=this.j.videoData.isLoaded()&&this.j.videoData.ub&&this.B&&!this.W)a=this.u,a=(a.j.U.K("html5_vss_media_time_killswitch")?a.I+a.j.oa.getCurrentTime()-a.B:a.I+a.j.oa.gj()-a.B)>=this.j.videoData.ub;a&&(this.B&&this.j.videoData.ub&&(a=kW(this,"delayplay"),a.Ld=!0,a.send(),this.W=!0),rPa(this))};
g.k.bd=function(a){this.isDisposed()||(g.W(a.state,2)?(this.currentPlayerState="paused",g.uJ(a,2)&&this.B&&pW(this).send()):g.W(a.state,8)?(this.currentPlayerState="playing",this.B&&isNaN(this.D)&&lW(this,!1)):this.currentPlayerState="paused")};
g.k.ea=function(){g.K.prototype.ea.call(this);oW(this);jPa(this.u)};
g.k.Ob=function(){return hW(kW(this,"playback"))};
g.k.Yw=function(){this.j.videoData.J.eventLabel=qI(this.j.videoData);this.j.videoData.J.playerStyle=this.j.U.playerStyle;this.j.videoData.og&&(this.j.videoData.J.feature="pyv");this.j.videoData.J.vid=this.j.videoData.videoId;var a=this.j.videoData.J;var b=this.j.videoData;b=b.isAd()||!!b.og;a.isAd=b};
g.k.Hi=function(a){var b=kW(this,"engage");b.N=a;return mPa(b,wPa(this.j))};vPa.prototype.isEmpty=function(){return this.endTime===this.startTime};rW.prototype.K=function(a){return this.U.K(a)};
var xPa={other:1,none:2,wifi:3,cellular:7};g.u(g.sW,g.K);g.k=g.sW.prototype;g.k.bd=function(a){if(g.uJ(a,1024)||g.uJ(a,512)||g.uJ(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.I||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.nh){var c;null==(c=this.B.get(this.nh))||c.bd(a)}else this.j&&this.j.bd(a);this.qoe&&this.qoe.bd(a);this.C.bd(a)};
g.k.Vd=function(){if(this.u.videoData.enableServerStitchedDai&&this.nh){var a;null==(a=this.B.get(this.nh))||a.Vd()}else this.j&&this.j.Vd()};
g.k.yd=function(a,b){this.qoe&&fPa(this.qoe,a,b);this.C.onError(a)};
g.k.Sz=function(a){this.qoe&&this.qoe.Sz(a)};
g.k.Kz=function(a){this.qoe&&this.qoe.Kz(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.oq=aa(36);g.k.ma=function(a,b,c){this.qoe&&this.qoe.ma(a,b,c)};
g.k.fA=function(a,b,c){this.qoe&&this.qoe.fA(a,b,c)};
g.k.eA=function(a){this.qoe&&this.qoe.eA(a)};
g.k.zt=function(a,b,c){this.qoe&&this.qoe.zt(a,b,c)};
g.k.nq=aa(39);g.k.wl=aa(14);g.k.Ky=function(){if(this.qoe)return this.qoe.Ky()};
g.k.Ob=function(){if(this.u.videoData.enableServerStitchedDai&&this.nh){var a;null==(a=this.B.get(this.nh))||a.Ob()}else if(this.j)return this.j.Ob();return{}};
g.k.Hi=function(a){return this.j?this.j.Hi(a):function(){}};
g.k.Yw=function(){this.j&&this.j.Yw()};g.u(tW,g.K);g.k=tW.prototype;g.k.le=function(a,b){this.Pl();b&&2E3<=this.j.array.length&&this.zy("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.sc(b.array,c,b.j)}this.u=NaN;this.Pl()};
g.k.eh=function(a){1E4<a.length&&g.rz(new g.Rv("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)});
KPa(this.j,b);this.Pl()}};
g.k.zy=function(a,b){var c=(isNaN(this.u)?g.W(this.D(),2)?0x8000000000000:1E3*this.N():this.u)-b;b=this.Yk().filter(function(d){return d.namespace===a&&d.end<c});
this.eh(b);return b};
g.k.Yk=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.array=[];this.B=[];this.Pl()};
g.k.Af=function(a){var b=this.Yk().filter(function(c){return c.namespace===a});
this.eh(b);return b};
g.k.bd=function(a){this.started&&(this.Pl(),g.W(a.jq,16)&&(a=JPa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.pH=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.tH=function(a){var b=[];if(!a.length)return b;a.sort(g.tA);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.k.Pl=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.IP(),this.J=!1,a--;this.D().Oc()&&(a=JPa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.Y(),this.C.start(a)))}};
g.k.IP=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.W(a,32)&&this.W.start();for(var b=g.W(this.D(),2)?0x8000000000000:1E3*this.N(),c=g.W(a,2),d=[],e=[],f=g.r(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.tH(e));f=e=null;c?(a=HPa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=IPa(this.j)):a=this.u<=b&&gK(a)?GPa(this.j,this.u,b):HPa(this.j,b);
d=d.concat(this.pH(a));e&&(d=d.concat(this.tH(e)));f&&(d=d.concat(this.pH(f)));this.u=b;LPa(this,d)}};
g.k.ea=function(){this.B=[];this.j.array=[];g.K.prototype.ea.call(this)};
g.lS.QC(tW,{le:"crmacr",pH:"crmncr",tH:"crmxcr",IP:"crmis",eh:"crmrcr"});g.u(xW,g.cz);xW.prototype.oo=function(){return this.J};
xW.prototype.al=function(){return Math.max(this.N()-RPa(this,!0),this.videoData.getMinSeekableTime())};g.u(CW,g.K);CW.prototype.bd=function(){g.$n(this.B)};
CW.prototype.D=function(){var a=this,b=this.oa.Qd(),c=this.oa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.W(c,8)&&g.W(c,16),h=this.oa.Pp().isBackground()||c.isSuspended();DW(this,this.va,f&&!h,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.j)&&0<this.j&&XCa(b,this.j);var l=!d||10<Math.abs(d-this.j);DW(this,this.Ea,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var m=f&&iE(b.Sg(),this.j);f=this.oa.Ga;l=!f||!f.policy.Dd;var n=function(){b.seekTo(a.j+.001)};
DW(this,this.Y,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return JV(a.oa)};
DW(this,this.ra,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=gK(c);m=g.hK(c);var q=b.Sg(),v=hE(q,d);UPa(this,b,q,d,h,p,m);var w=0<=v&&q.end(v)>d+5;w=p&&m&&w;DW(this,this.J,w&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");DW(this,this.N,w&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var y=f.getCurrentTime();n=b.qs();n=xxa(n,y);n=!f.Cg()&&d===n;DW(this,this.Ua,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(y)},"seek_to_loader")}n={};
if(!this.U.K("html5_watchdog_log_extrainfo_killswitch")){w=hE(q,Math.max(d-3.5,0));var A=0<=w&&d>q.end(w)-1.1,B=0<=w&&w+1<q.length?q.start(w+1)-q.end(w):9999;n.mindex=v;n.disIndex=w;n.isdisc=0<=w&&A&&11>B;n.close2edge=A;n.gapsize=B;n.buflen=q.length}DW(this,this.V,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},"timeout",n);
q=c.isSuspended();q=g.Wb(this.oa.hk,"ad")&&!q;DW(this,this.I,q,!q,"qoe.start15s",function(){a.oa.rf("ad")},"ads_preroll_timeout");
q=this.oa.getVideoData();v=.5>d-this.C;n=q.isAd()&&p&&!m&&v;p=function(){var E=a.oa,G=E.Qg.Fc();(!G||!E.videoData.isAd()||G.getVideoData().Dc!==E.getVideoData().Dc)&&E.videoData.ze||E.fg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+E.videoData.videoId)};
DW(this,this.Ha,n,!n,"ad.rebuftimeout",p,"skip_slow_ad");m=q.isAd()&&m&&iE(b.Sg(),d+5)&&v;DW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");DW(this,this.Ra,g.fK(c)&&g.W(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
DW(this,this.W,!!f&&!f.mediaSource&&g.fK(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
CW.prototype.yd=function(a,b,c){b=this.Ob(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.oa.yd(new zG(a,b));this.u[a]=!0};
CW.prototype.Ob=function(a){a=Object.assign(this.oa.Ob(!0),a.Ob());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};
AW.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
AW.prototype.Ob=function(){var a={},b=(0,g.U)();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.u(FW,g.K);g.k=FW.prototype;g.k.setMediaElement=function(a){g.bz(this.La);(this.mediaElement=a)?(fQa(this),EW(this)):HW(this)};
g.k.bd=function(a){this.W.bd(a);this.K("html5_exponential_memory_for_sticky")&&(a.state.Oc()?g.$n(this.Y):this.Y.stop());if(this.mediaElement)if(8===a.jq.state&&gK(a.state)&&g.hK(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Sg();var c=this.K("manifestless_post_live_ufph")||this.K("manifestless_post_live")?hE(b,Math.max(a-3.5,0)):hE(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.Ua-c)||(this.oa.ma("seekover",{b:gE(b,
"_"),cmt:a}),this.Ua=c,this.seekTo(c,{ys:!0,re:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.La&&0<this.videoData.limitedPlaybackDurationInSeconds&&kX(this.oa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&eQa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.gj=function(){return this.getCurrentTime()-this.wd()};
g.k.al=function(){return this.u?this.u.al():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return zW(this.u,a)};
g.k.oo=function(){return!!this.u&&this.u.oo()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.aT?!1:c.aT;var d=void 0===c.bT?0:c.bT,e=void 0===c.ys?!1:c.ys,f=void 0===c.fL?0:c.fL,h=void 0===c.re?"":c.re;if(void 0===c.jp?0:c.jp)a+=this.wd();if(c=!!(!this.K("html5_ssdai_skipad_seek_killswitch")&&a<this.qa&&this.Ga)){this.oa.ma("sdai",{skipad:0,t:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstskp:this.qa.toFixed(3)});this.qa=NaN;this.timestampOffset-=1E3;var l;if(null!=(l=this.Ga)){qV(l,l.timestampOffset-1E3);var m=l.j,n=new Set;
for(v in m.j){var p=m.j[v].index,q=p.Yr();q&&!n.has(q)&&(q.startTime+=1E3,q.endTime=q.startTime+q.duration,n.add(q));p.segments.length&&(q=p.segments[p.segments.length-1],p.segments=[],p.segments.push(q))}l.J&&l.J.pK();JT(l.u,0,0,!0)}}var v=a;(l=!isFinite(v)||(this.u?zW(this.u,v):v>=this.Pd())||!g.iI(this.videoData))||this.oa.ma("seeknotallowed",{st:v,mst:this.Pd()});if(!l)return this.B&&(this.B=null,KW(this)),Ih(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.N)return this.D;h&&(v=a,(2<=
this.U.V||this.K("html5_log_seek_reasons"))&&this.oa.ma("seekreason",{reason:h,tgt:v}));this.N&&HW(this);this.D||(this.D=new UJ);a&&!isFinite(a)&&GW(this,!1);if(h=!c)h=a,h=JW(this)&&!(this.mediaElement&&0<this.mediaElement.aj()&&0<WJ(this.mediaElement))||OH(this.videoData)&&this.getMinSeekableTime()===this.Pd(!1)?!1:isFinite(h)?!0:OH(this.videoData)?!1:!0;h&&(a=dQa(this,a,e));a&&!isFinite(a)&&GW(this,!1);this.C=a;this.Ea=f;this.j=a;this.u&&(e=this.u,f=a,SPa(e,f,!1),TPa(e,f));e=this.oa;f=a;e.jd.C=
f;h=e.Ux;h.mediaTime=f;h.j=!0;b&&CX(e);e.Qn&&f>e.videoData.endSeconds&&isFinite(f)&&wX(e);f<e.Pd()-.01&&(h=cK(e.playerState,2),g.W(h,8)&&(h=cK(h,4)),e.Sb(h));e.X("SEEK_TO",e,f);this.D&&(b?d&&this.Ha.start(d):(this.N=!0,YPa(this)));(b=this.oa.Qn)&&a>b.start&&wX(this.oa);return this.D};
g.k.Pd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Pd();var b;if(!this.K("html5_linear_live_max_seekable_killswitch")&&zI(this.videoData)&&(null==(b=this.mediaElement)?0:b.Hn())&&this.videoData.j)return a=this.getCurrentTime(),OBa(1E3*this.getIngestionTime(a))+a;if(OH(this.videoData)&&this.videoData.Li&&this.videoData.j)return this.videoData.j.Pd()+this.timestampOffset;if(this.videoData.B&&this.videoData.B.j){if(!a&&this.u)return this.u.al();a=this.videoData.Pd();this.policy.j&&
this.mediaElement&&(a=Math.max(a,ZCa(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?Ru()?OBa(this.mediaElement.nB().getTime()):WJ(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(zI(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.k.ea=function(){IW(this,null);this.W.dispose();g.K.prototype.ea.call(this)};
g.k.Ob=function(){var a={};this.Ga&&Object.assign(a,this.Ga.Ob());this.mediaElement&&Object.assign(a,this.mediaElement.Ob());return a};
g.k.zl=function(a){var b=this;this.oa.ma("sdai",{skipad:1,t:a.toFixed(3)});this.qa=a;this.C=this.j=a+=1;KW(this).then(function(c){cQa(b,c)},function(){HW(b)})};
g.k.LJ=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return OH(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.wd=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)};
g.k.gs=function(){if(!this.mediaElement)return 0;if(jI(this.videoData)){var a=ZCa(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.Pd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.gs()};
g.k.vD=function(a){this.I&&(this.I.j=a.audio.index)};
g.k.K=function(a){return this.U&&this.U.K(a)};LW.prototype.isFinished=function(){return this.finished};
LW.prototype.start=function(){this.started=!0};
LW.prototype.reset=function(){this.finished=this.started=!1};MW.prototype.encrypt=function(a){(0,g.U)();return(new vF(this.j.j)).encrypt(a,this.iv)};
MW.prototype.decrypt=function(a,b){(0,g.U)();return(new vF(this.j.j)).decrypt(a,b)};g.u(NW,g.K);g.k=NW.prototype;g.k.rh=function(a){var b;return!(null==(b=this.ke.get(a))||!b.sf.totalLength)};
g.k.Vi=function(a){a=this.ke.get(a);var b=a.sf;a.BB+=b.totalLength;a.sf=new TB;return b};
g.k.Rf=function(a){return this.ke.get(a).Rf};
g.k.Tg=function(a){return this.ke.get(a).Tg};
g.k.hq=function(){for(var a=g.r(this.ke.values()),b=a.next();!b.done;b=a.next())b=b.value,b.aK&&(b.Vd&&b.Vd(),b.aK=!1)};
g.k.Pz=function(a){(a=this.ke.get(a))&&!a.Tg&&(a.Tg=!0)};
g.k.ea=function(){g.K.prototype.ea.call(this);for(var a=g.r(this.ke.keys()),b=a.next();!b.done;b=a.next())OW(this,b.value);this.ke.clear()};QW.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Yj.Rc("omd_s");c=new Uint8Array(16);lF()?d=new uF(a):e=new vF(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ma(3);break}f=b.j.shift();if(!d){h=e.decrypt(YB(f.buffer),c);m.Ma(4);break}return g.x(m,d.decrypt(YB(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new TB([l]);mQa(b.Yj.Gd,
f.UK,n);m.Ma(2);break;case 3:b.Yj.Rc("omdf"),b.Yj.Rc("omd_c"),SW(b),b.u=!1,b.Yj.BJ(),g.pa(m)}})};
QW.prototype.enqueue=function(a,b,c){this.j.push({UK:a,buffer:b,isEncrypted:c});this.u||SW(this)};var tQa=!!Uint8Array.prototype.copyWithin,TW=[],UW=[],pQa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],WW=[],VW=[],YW=[],XW=[];var bX,Q0a=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),w4={},MQa=(w4.a=1,w4.o=3,w4.meac3=5,w4.mac3=7,w4),x4={},LQa=(x4["1h"]=8,x4["9h"]=4,x4["1"]=8,x4["9"]=4,x4.h=2,x4),AQa=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247","244"],["137","136"]],CQa=[["140"],["251"]],y4={},yQa=(y4["302"]=["409","410"],y4["298"]=["384","376"],y4["247"]="274 357 358 317 273 318 280 279".split(" "),y4["136"]="145 224 225 144 222 223 143 142".split(" "),
y4["140"]=["149"],y4),z4={},xQa=(z4["398"]=["397","396","395","394"],z4["247"]=["244","243","242"],z4["136"]=["135","134","133","160"],z4["251"]=["250"],z4),R0a={},HQa=(R0a["140"]={numChannels:2},R0a["251"]={audioSampleRate:48E3,numChannels:2},R0a),A4={},GQa=(A4["337"]={width:3840,height:2160,bitrate:3E7,fps:30},A4["336"]={width:2560,height:1440,bitrate:15E6,fps:30},A4["335"]={width:1920,height:1080,bitrate:75E5,fps:30},A4["702"]={width:7680,height:4320,bitrate:4E7,fps:60},A4["701"]={width:3840,height:2160,
bitrate:2E7,fps:60},A4["700"]={width:2560,height:1440,bitrate:1E7,fps:60},A4["315"]={width:3840,height:2160,bitrate:2E7,fps:60},A4["308"]={width:2560,height:1440,bitrate:1E7,fps:60},A4["303"]={width:1920,height:1080,bitrate:5E6,fps:60},A4["302"]={width:1280,height:720,bitrate:25E5,fps:60},A4["299"]={width:1920,height:1080,bitrate:75E5,fps:60},A4["298"]={width:1280,height:720,bitrate:35E5,fps:60},A4["571"]={width:7680,height:4320,bitrate:3E7,fps:60},A4["401"]={width:3840,height:2160,bitrate:15E6,fps:60},
A4["400"]={width:2560,height:1440,bitrate:75E5,fps:60},A4["399"]={width:1920,height:1080,bitrate:2E6,fps:60},A4["398"]={width:1280,height:720,bitrate:1E6,fps:60},A4["313"]={width:3840,height:2160,bitrate:8E6,fps:30},A4["271"]={width:2560,height:1440,bitrate:4E6,fps:30},A4["248"]={width:1920,height:1080,bitrate:2E6,fps:30},A4["247"]={width:1280,height:720,bitrate:15E5,fps:30},A4["137"]={width:1920,height:1080,bitrate:4E6,fps:30},A4["136"]={width:1280,height:720,bitrate:3E6,fps:30},A4),B4={},vQa=(B4["133"]=
240,B4["134"]=360,B4["135"]=480,B4["136"]=720,B4["137"]=1080,B4["242"]=240,B4["243"]=360,B4["244"]=480,B4["247"]=720,B4["248"]=1080,B4["298"]=720,B4["299"]=1080,B4["302"]=720,B4["303"]=1080,B4["395"]=240,B4["396"]=360,B4["397"]=480,B4["398"]=720,B4["399"]=1080,B4),C4={},FQa=(C4["1"]='video/mp4; codecs="av01.0.08M.08"',C4["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',C4["9"]='video/webm; codecs="vp9"',C4["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',C4.h='video/mp4; codecs="avc1.64001e"',
C4.o='audio/webm; codecs="opus"',C4.a='audio/mp4; codecs="mp4a.40.2"',C4);g.k=IQa.prototype;g.k.BJ=function(){this.Gd.BJ()};
g.k.feed=function(a,b){var c=b.totalLength;switch(a){case 10:a=dH(b,cNa);var d=a.Y2,e=!1;switch(d){case 0:this.C=!a.FR.xZ;this.iv=a.FR.iv;break;case 2:break;case 23:var f=this.Gd;a=a.ZZ;f.Rc("omp_r");a.videoId&&(f.vt=a.videoId);f.vt!==f.videoData.videoId&&(f.videoData.Y5=f.vt,f.ma("ompp","vid."+f.vt));f.XI=!0;break;case 24:a=this.Gd;a.Rc("omp_c");a.XI=!1;a.Cw=!1;null!=(c=a.qe||(null==(f=a.Tf)?void 0:f.get(a.vt)))&&(c.j=!0);dX(a);break;default:e=!0}this.Gd.jj&&this.Gd.ma("ombup","id.10;pt."+d+";len."+
b.totalLength+(e?";ignored.1":""));this.u=d;break;case 11:JQa(this,b);break;case 20:f=new YG(b);var h={hZ:aH(f,1),videoId:cH(f,2),itag:aH(f,3),lmt:aH(f,4),xtags:cH(f,5),Y3:aH(f,6),Uv:gAa(f,8),nE:aH(f,9),v2a:aH(f,10),startMs:aH(f,11),durationMs:aH(f,12),mE:aH(f,14),c3a:aH(f,17)};var l=h.hZ,m=h.itag,n=h.Uv;a=h.Y3;c=h.nE;var p=h.startMs,q=h.durationMs;f=this.Gd.K("html5_onesie_ads");var v=h.videoId;f=((void 0===f?0:f)?(v||"")+";":"")+h.itag+";"+(h.lmt||0)+";"+(h.xtags||"");m=Q0a.has(QD[""+m]);n&&this.Rc(m?
"oais_r":"ovis_r");n=void 0!==this.j[f];this.Gd.jj&&this.Gd.ma("ombup","id.20;len."+b.totalLength+";hid."+l+";fid"+f);this.B[l]=f;n?(d=this.j[f].headers,d.push(h),h.mE&&2===d.length&&(b=this.Gd,d=d[0].mE+d[1].mE,e={ON:null!=a?a:-1,nE:null!=c?c:-1,startTimeMs:null!=p?p:-1,durationMs:null!=q?q:-1},null!=(a=RW(b,f))&&(c=a.ke.get(f),c.Xk=d,e&&(0>=e.ON||0>=e.nE||0>=e.durationMs||0>e.startTimeMs?PW(a,f):c.lQ.push(e))),dX(b))):(this.j[f]={sP:!1,Um:m,headers:[h]},b=this.Gd,b.Tf?(e=f.split(";")[0],b.Tf.has(e)||
(a=new NW(b),b.Tf.set(e,a),g.M(b,a)),null==(d=b.Tf.get(e))||kQa(d,f,m)):null==(e=b.qe)||kQa(e,f,m));break;case 21:KQa(this,b,!1);break;case 12:KQa(this,b,!0);break;case 22:this.Pz(b);break;case 37:b=dH(b,YMa);if(b.zG||b.AL)f=this.Gd,f.Wr=b,b.videoId&&f.IO.set(b.videoId,b);break;default:this.Gd.jj&&this.Gd.ma("ombup","id."+a+";len."+c+";ignored.1")}};
g.k.Pz=function(a){var b=aC(a,0);this.Gd.jj&&this.Gd.ma("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.Gd.Pz(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].mE||nQa(this.queue,a))};
g.k.HJ=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,v,w;return g.z(function(y){switch(y.j){case 1:c.Gd.HJ();d=YB(a);if(!b){f=d;y.Ma(2);break}return g.x(y,TQa(c.Gd,d,c.iv),3);case 3:f=y.u;case 2:e=f;if(!c.Gd.enableCompression){y.Ma(4);break}return g.x(y,uQa(e),5);case 5:e=y.u,c.Gd.ma("decompression",{ds:"DecompressionStream"in window});case 4:try{h=dH(e,hNa)}catch(A){return l=A instanceof Error?{name:A.name,message:A.message}:{},l.webcrypto=""+ +!!lF(),l.enc=""+ +c.C,m=new zG("onesie.response.parse",
l),y.return(Promise.reject(m))}if(1!==h.onesieProxyStatus)return n={st:h.onesieProxyStatus,webcrypto:""+ +!!lF(),textencoder:""+ +!!g.C.TextEncoder},p=new zG("onesie.response.badproxystatus",n),y.return(Promise.reject(p));if(200!==h.httpStatus)return q={st:h.httpStatus},v=new zG("onesie.response.badstatus",q),y.return(Promise.reject(v));w=g.gC(h.body);return y.return(w)}})};
g.k.Rc=function(a){this.Gd.Rc(a)};
g.k.To=function(a){return this.Gd.To(a)};g.u(eX,g.K);g.k=eX.prototype;g.k.Rc=function(a){this.oa.Rc(a)};
g.k.To=function(a){return this.oa.To(a)};
g.k.tR=function(a,b){this.Yj.feed(a,b)};
g.k.vJ=function(){this.Rc("orfb");this.TC=!0;if(UQa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.bl(),rt:(1E3*TMa(this.hn)).toFixed(),shost:g.qi(this.pw),trigger:"o1"};this.ma("pathprobe",yG(a))}};
g.k.HJ=function(){this.Rc("orpr");this.Rc("opr_r");this.vP=!0};
g.k.BJ=function(){if(this.Tf)for(var a=g.r(this.Tf.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Tf.get(b.value))||c.hq()}else null==(a=this.qe)||a.hq()};
g.k.ma=function(a,b,c){this.oa.ma(a,b,void 0===c?!1:c)};
g.k.Pz=function(a){var b;null==(b=RW(this,a))||b.Pz(a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,v,w,y,A,B,E;return g.z(function(G){switch(G.j){case 1:a.ow.start();a.Rc("ogpd");a.Rc("or_i");if(b=RQa(a.videoData,a.Sp)){G.Ma(2);break}return g.x(G,SQa(a.videoData,a.Sp),3);case 3:b=G.u;case 2:if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new zG("onesie.unavailable.hotconfig",c),a.fail(d),G.return(a.qn);a.pS=NB(b);f=g.wG(g.uI(a.videoData));h=f.getValue();G.Ma(4);break;case 5:h=G.u;case 4:l=h;var H=a.playerRequest,I=a.U,
O=a.videoData,L=eS(a.pS);L=void 0===L?!1:L;var P=I.zi,S="https://youtubei.googleapis.com/youtubei/"+P.innertubeApiVersion+"/player";P.uI&&l||(S=S+"?key="+P.innertubeApiKey);P=[{name:"Content-Type",value:"application/json"}];l&&P.push({name:"Authorization",value:"Bearer "+l});P.push({name:"User-Agent",value:g.rb()});g.Q("EOM_VISITOR_DATA")?P.push({name:"X-Goog-EOM-Visitor-Id",value:g.Q("EOM_VISITOR_DATA")}):(O=O.visitorData||g.Q("VISITOR_DATA"))&&P.push({name:"X-Goog-Visitor-Id",value:O});(I=g.LE(I.experiments,
"debug_sherlog_username"))&&P.push({name:"X-Youtube-Sherlog-Username",value:I});H=gwa(JSON.stringify(H));m={url:S,httpHeaders:P,postBody:H,proxiedByTrustedBandaid:L,skipResponseEncryption:L};g.ra(G,6);if(!lF()){P=a.U;I=a.videoData;O=a.oa.getPlayerSize();var ca=a.oa.getVisibilityState();L=a.bH.onesieUstreamerConfig;S=null==(n=a.videoData.gN)?void 0:n.QA;var R=a.CD,na=lH(m,gNa);H={encryptedClientKey:R.j.encryptedClientKey,serializeResponseAsJson:!0,enableAdPlacementsPreroll:P.K("html5_onesie_ads"),
enableCompressionResponseOnly:OQa(P,!!m.skipResponseEncryption)};m.skipResponseEncryption?H.unencryptedOnesieInnertubeRequest=na:(na=R.encrypt(na),H.encryptedOnesieInnertubeRequest=na,(0,g.U)(),na=Qya(new Pya(R.j.B),na,R.iv),H.hmac=na,H.iv=R.iv);P=NQa(P,I,O,ca);e={vI:H,eO:P,onesieUstreamerConfig:L,QA:S};G.Ma(8);break}return g.x(G,QQa(m,a.CD,a.U,a.videoData,a.oa.getPlayerSize(),a.oa.getVisibilityState(),a.bH.onesieUstreamerConfig,null==(p=a.videoData.gN)?void 0:p.QA),9);case 9:e=G.u;case 8:g.ua(G,
7);break;case 6:return q=g.va(G),a.logger.info("Failed to create OnesieRequestProto."),a.fail(q),G.return(a.qn);case 7:return a.enableCompression=e.vI.enableCompressionResponseOnly,a.Rc("osor"),v=pHa(),w=lH(e,eNa),y={method:"POST",body:w,headers:{"Content-Type":"text/plain",Referer:location.origin}},A=a.K("html5_onesie_media_capabilities"),L=b,H=a.videoData,S=WQa(a),P=A,P=void 0===P?!1:P,L.set("ack","1"),L.set("cpn",H.clientPlaybackNonce),L.set("opr","1"),I=H.R(),I.K("html5_onesie_ads")||(L.set("oaad",
"0"),L.set("oavd","0")),L.set("por","1"),lF()||L.set("onem","1"),0<H.startSeconds&&I.K("html5_onesie_nonzero_playback_start")&&(L.set("osts",""+H.startSeconds),L.set("osbr","1"),L.set("osnz","1")),P||(S?(H=S.audio,L.set("pvi",S.video.join(",")),L.set("pai",H.join(",")),qB()||L.set("osh","1")):(L.set("oad","0"),L.set("ovd","0"),L.set("oaad","0"),L.set("oavd","0"))),a.jj&&a.ma("ombrs","1"),B=a.oa.R().schedule,a.hn=new HU(a,{wi:B,mH:a.jj}),b.set("rn",""+a.hn.requestNumber),a.pw=b.pe(),OMa(a.hn,a.pw),
a.Rc("ocs"),a.Rc("or_p"),qB()?rB()?a.xhr=new GU(a.pw,v,a.hn,y):a.xhr=new PU(a.pw,v,a.hn,y):a.xhr=new RU(a.pw,a.hn,y),a.wR.start(),a.jj&&(null==(E=a.Sp)?0:E.D)&&a.ma("ombhr",a.Sp.D),G.return(a.qn)}})};
g.k.nw=function(){this.Rc("orh_r")};
g.k.Vs=function(){!this.TC&&this.xhr.bl()&&this.vJ();this.Xn()};
g.k.tq=function(){this.Xn();if(!this.isDisposed()){var a=XQa(this),b=this.xhr;a.rc=b.status;if(b.kf()){var c="onesie.net";a.msg=b.kf()}else 400<=b.status?c="onesie.net.badstatus":b.dA()?this.vP||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new zG(c,a)):(this.Rc("orf"),this.Rc("or_fs"),QMa(this.hn,(0,g.U)(),b.bl(),0),this.jj&&this.ma("rqs",a));this.jj&&this.ma("ombre","ok."+ +!c);this.Cw=!1;dX(this);cX(this.Yj);this.ow.stop();var d;
if(c=null==(d=this.Sp)?void 0:bKa(d))for(d=0;d<c.length;d++)this.ma("pathprobe",c[d])}};
g.k.K=function(a){return this.U.K(a)};
g.k.WZ=function(){if(UQa(this)&&this.Sp&&(!this.TC||this.K("html5_onesie_probe_ec_hosts"))){var a=this.Sp;if(a.U.experiments.fb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:NB(b.location);c&&dS(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:NB(d.location))&&dS(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:NB(e.location))&&dS(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:NB(c.location))&&dS(a,d,"o3",this)}}};
g.k.pP=function(){this.logger.info("Onesie request timed out");this.Cw=!1;if(!dX(this)){var a=XQa(this);a.timeout="1";this.fail(new zG("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=BG(a);this.SC?this.oa.yd(a):(this.qn.reject(a),this.SC=!0);cX(this.Yj);this.ow.stop();this.Rc("ore");this.Rc("or_fe");var c,d;null==(c=this.Sp)||null==(d=bKa(c))||d.forEach(function(e){b.ma("pathprobe",e)});
this.dispose()};
g.k.ea=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();cX(this.Yj);this.Uw.dispose();g.K.prototype.ea.call(this)};
g.k.Xn=function(){try{var a=this.xhr;102400<a.bl()&&!this.JP&&(this.Rc("or100k"),this.JP=!0);for(var b={};a.rh();){var c=a.Vi();b.SE=c.totalLength;this.jj&&this.ma("ombrss","len."+b.SE);this.Uw.feed(c);b={SE:b.SE}}if(this.Tf)for(var d=g.r(this.Tf.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Tf.get(e.value))||a.hq();else{var f;null==(f=this.qe)||f.hq()}}catch(h){this.fail(h)}};var bRa=!1;g.u(g.jX,g.cz);g.k=g.jX.prototype;g.k.ea=function(){this.dS();this.SD.stop();window.clearInterval(this.KD);vKa(this.zf);this.visibility.unsubscribe("visibilitystatechange",this.zf);zPa(this.hc);g.af(this.hc);qX(this);g.Vn.Tk(this.ut);this.Xh();this.Ke=null;g.af(this.videoData);g.af(this.Uk);g.bf(this.u_);this.Qn=null;g.cz.prototype.ea.call(this)};
g.k.eA=function(a){this.hc.eA(a)};
g.k.zt=function(a,b,c,d){this.hc.zt(a,b,c);this.K("html5_log_media_perf_info")&&this.ma("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.JH=function(){var a;return null==(a=this.Ga)?void 0:a.JH()};
g.k.KH=function(){var a;return null==(a=this.Ga)?void 0:a.KH()};
g.k.getVideoData=function(){return this.videoData};
g.k.R=function(){return this.U};
g.k.Pp=function(){return this.visibility};
g.k.Qd=function(){return this.mediaElement};
g.k.KG=function(){if(this.videoData.isLoaded()){var a=this.Uk;0<g.TE(a.Oa.experiments,"html5_player_min_build_cl")&&467558535<g.TE(a.Oa.experiments,"html5_player_min_build_cl")&&GOa(a,"oldplayer");pRa(this)}else this.videoData.Pe||this.videoData.Rl?this.Yp&&g.cG(this.U)&&this.videoData.isLivePlayback||(this.videoData.Pe?rBa(this.videoData):(a=this.hc,a.qoe&&(a=a.qoe,aW(a,"protected"),a.j.videoData.N?a.tS():a.j.videoData.subscribe("dataloaded",a.tS,a)),nBa(this.videoData))):!this.videoData.qa&&this.kX&&
oRa(this)};
g.k.Jv=aa(5);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.W(this.getPlayerState(),128)||(this.X("internalAbandon"),this.xK(!0),zPa(this.hc),g.af(this.hc),g.Vn.Tk(this.ut));var a;null==(a=this.U.Ei)||a.flush()};
g.k.Rt=function(){yPa(this.hc)};
g.k.fg=function(a,b,c,d,e,f){var h,l;g.Af(w0a,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+aGa());b={errorCode:a,errorDetail:e,errorMessage:l||g.HO[h]||"",rH:h,Vk:f||"",VR:d,bC:b};this.videoData.errorCode=hN(a).toString();oX(this,"dataloaderror");this.Sb(aK(this.playerState,128,b));g.Vn.Tk(this.ut);qX(this);this.Jo()};
g.k.rf=function(a){this.hk=this.hk.filter(function(b){return a!==b});
this.Go.started&&pX(this)};
g.k.Km=function(){var a;(a=!!this.hk.length)||(a=this.Ih.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.oo=function(){return this.jd.oo()};
g.k.Oc=function(){return this.playerState.Oc()};
g.k.lz=function(){return this.playerState.lz()&&this.videoData.Sq};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Ke){var a=this.Ke;a=a.videoData.Lu.compose(a.videoData.ZS);a=yB(a)}else a="auto";return a};
g.k.My=aa(9);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.tf()===this.mediaElement.tf()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.bz(this.bx),this.mediaElement=a,ARa(this),this.jd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Xh();if(!this.playerState.isError()){var b=cK(this.playerState,512);g.W(b,8)&&!g.W(b,2)&&(b=bK(b,1));a.isView()&&(b=cK(b,64));this.Sb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);
ARa(this);this.jd.setMediaElement(this.mediaElement);this.K("html5_prewarm_media_source")&&!this.Uk.qz&&UCa(this.mediaElement)}};
g.k.Xh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.jd.C=c);this.jd.setMediaElement(null);AX(this);this.Ga&&(nV(this.Ga),BX(this,b));this.Ns.stop();if(this.mediaElement&&(!this.Go.started||this.playerState.isError()||g.W(this.playerState,2)||this.Sb(bK(this.playerState,512)),this.mediaElement)){g.bz(this.bx);if(a||!this.mediaElement.isView())this.mediaElement.stopVideo(),FX(this);this.mediaElement=null}}};
g.k.playVideo=function(){var a=this,b,c,d,e,f;return g.z(function(h){if(1==h.j){if(!a.K("html5_clear_globalcache_killswitch")){var l=window.google_image_requests;l&&10<l.length&&(window.google_image_requests=l.slice(-10))}if(g.W(a.playerState,128))return h.return();if(a.Uk.YC())return a.X("signatureexpired"),h.return();a.mediaElement&&(l=a.hc,RV(l.C),l.qoe&&cW(l.qoe));vX(a);g.W(a.playerState,64)&&a.Sb(bK(a.playerState,8));return a.Go.isFinished()&&a.mediaElement?a.Ke||!a.Uz?h.Ma(2):g.x(h,a.Uz,2):
h.return()}if(!a.videoData.B)return a.videoData.isLivePlayback&&!g.$E(a.U.j,!0)?(b="html5.unsupportedlive",c=2):(b=WH(a.videoData)?"fmt.unplayable":"fmt.noneavailable",c=1),g.rz(Error("selectableFormats")),a.fg(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),h.return();if(a.Bg()&&a.videoData.B.j)return h.return(nX(a));if(hI(a.videoData)){d=a.getCurrentTime()<a.getMinSeekableTime()-15;e=g.iI(a.videoData)&&g.W(a.playerState,4);(f=!a.K("html5_dompaused_unpause_killswitch")&&g.W(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.oo()&&a.seekTo(Infinity,{re:"videoplayer_peggedToLive"});if(l=g.W(a.playerState,256)&&a.videoData.La)l=a.jd,l=l.N&&!isFinite(l.j);if(l)return a.Sb(dK(a.playerState,8,4)),h.return()}g.W(a.playerState,4)&&g.W(a.playerState,16)&&a.Sb(dK(a.playerState,9,4));if(iX(a))return FRa(a),h.return();EX(a);g.pa(h)})};
g.k.Hp=function(){if(!this.Ke)return[];var a=OV(this.Wg,this.Ke,this.Zr());return this.Ke.j.Hp(a)};
g.k.Ey=function(){if(!this.Ke)return[];var a=OV(this.Wg,this.Ke,this.Zr());return this.Ke.j.Ey(a)};
g.k.Zr=function(){var a=this.xe?this.xe.Zr():UH(this.videoData)&&this.videoData.j&&IB(this.videoData.j)?this.videoData.Gi?GH:uOa:GH;this.qK&&(a=a.compose($_a));return a};
g.k.rC=function(){if(this.K("html5_apply_ustreamer_cap_per_video_id")){var a=this.Nf(),b=this.Qg.Wc().videoId;return this.Qg.Qs.rC(a)||this.Qg.Qs.rC(b)}return this.K("html5_remove_ustreamer_cap_from_non_onesie_ads")?this.videoData.Wr:this.videoData.Wr||this.Qg.Wc().Wr};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.j?yB(this.videoData.Lu):xB[HE()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.qg!==a&&(this.ma("toggle51",{pref:a}),this.videoData.qg=a,g.Pz("yt-player-audio51",a,2592E3),LV(this))};
g.k.getUserAudio51Preference=function(){var a=1;mG(this.U)&&this.K("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.Qz("yt-player-audio51"))?b:a};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(uRa(this)){var a=wRa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.ls=function(){return this.mediaSource};
g.k.jw=function(a){this.qw.set(a.initData,a);this.xe&&(this.xe.jw(a),this.K("html5_eme_loader_sync")||this.qw.remove(a.initData))};
g.k.MJ=function(a){this.videoData.Fk=g.vB("auto",a,!1,"u");hX(this)};
g.k.vD=function(a){yX(this,a.reason,a.video.info,a.audio.info);this.jd.vD(a)};
g.k.wD=function(a){this.X("localmediachange",a)};
g.k.Ww=function(){var a;null==(a=this.Ga)||a.Ww(this.U)};
g.k.YC=function(){return this.Uk.YC()};
g.k.handleError=function(a){this.Uk.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.W(this.playerState,64)||g.W(this.playerState,2))&&!a)if(g.W(this.playerState,8))this.Sb(dK(this.playerState,4,8));else if(this.lz())iX(this);else return;g.W(this.playerState,128)||(a?this.Sb(bK(this.playerState,256)):this.Sb(dK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.iI(this.videoData)&&this.Ga&&BX(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Ga&&(BX(this,!1),this.Ga.dj())};
g.k.Jo=function(a){a=void 0===a?!1:a;var b;null==(b=this.mediaElement)||b.stopVideo();FX(this);qX(this);g.W(this.playerState,128)||(a?this.Sb(cK(cK(bK(this.playerState,4),8),16)):this.Sb(aK(this.playerState)));this.videoData.videoId&&this.U.Y.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.W(this.playerState,2)&&iX(this);if(this.kd){var c=this.kd;isFinite(a)&&a<c.oa.al()?c.isLiveNow=!1:c.isLiveNow=!0}this.jd.seekTo(a,b);this.K("html5_cuerange_synconseek_killswitch")||this.Ih.Pl()};
g.k.getCurrentTime=function(){return this.jd.getCurrentTime()};
g.k.gj=function(){return this.jd.gj()};
g.k.al=function(){return this.jd.al()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.wd())};
g.k.Iv=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Iv());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){var a;return(null==(a=this.videoData.j)?0:a.getIngestionTime)?this.videoData.j.getIngestionTime(this.getCurrentTime()-this.wd()):this.K("html5_disable_limit_ingestion_tvos")&&!Ru()||!this.mediaElement||!(a=this.mediaElement.nB())||(a=a.getTime(),isNaN(a))?NaN:a/1E3+this.getCurrentTime()};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.wd():this.Pd()?this.Pd():0};
g.k.Ry=function(){var a=new DPa;if(this.Ga){var b=this.U.schedule;a.j=b.V;a.C=b.Y;a.bandwidthEstimate=DF(b);a.u={d:BF(b).toFixed(2),st:(1E9*(b.j.Nh()||0)).toFixed(2),bw:b.B.Nh().toFixed(0),abw:b.I.Nh().toFixed(0),v50:zF(b.u,.5).toFixed(2),v92:zF(b.u,.92).toFixed(2),v96:zF(b.u,.96).toFixed(2),v98:zF(b.u,.98).toFixed(2)};b=this.Ga;if(b.mediaSource&&!b.mediaSource.Rf()&&(a.Cr=BU(b.videoTrack),a.B=BU(b.audioTrack),b.policy.Yb)){var c=AU(b.videoTrack),d=AU(b.audioTrack),e=gE(b.mediaSource.u.yg(),"_",5),
f=gE(b.mediaSource.j.yg(),"_",5);Object.assign(a.u,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=yT(b.N)}else this.mediaElement&&(a.Cr=XJ(this.mediaElement));a.D=this.isAtLiveHead()&&this.Oc()?gX(this):NaN;return a};
g.k.gs=function(){return this.mediaElement?g.iI(this.videoData)?1:jI(this.videoData)?this.isAtLiveHead()||this.oo()?1:this.jd.gs():this.mediaElement.gs():0};
g.k.Ob=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.hc.Ob());this.mediaElement&&(Object.assign(b,this.mediaElement.Ob()),Object.assign(b,this.Ty()));this.Ga&&Object.assign(b,this.Ga.Ob());this.xe&&(b.drm=JSON.stringify(this.xe.Ob()));b.state=this.playerState.state.toString(16);g.W(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.Km()&&(b.prerolls=this.hk.join(","));this.videoData.Lc&&(b.ismb=this.videoData.Lc);"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.Qg.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&DE(this.videoData.j)&&(b.segduration=DE(this.videoData.j)),a=this.jd,b.lat=a.I?gLa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Ld.toFixed(3);if(a=g.xX(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=HE();b.release_version="youtube.player.web_20220814_00_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Px([a])};
g.k.removeCueRange=function(a){this.Ih.eh([a])};
g.k.zy=function(a,b){return this.Ih.zy(a,b)};
g.k.Px=function(a,b){this.Ih.le(a,b)};
g.k.bE=function(a){this.Ih.eh(a)};
g.k.Yk=function(){return this.Ih.Yk()||[]};
g.k.Bg=function(){return this.visibility.Bg()};
g.k.Dq=function(){this.mediaElement&&this.mediaElement.Dq()};
g.k.M2=function(){oX(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.NJ=function(a){var b=a.target.Hf();if(this.mediaElement&&this.mediaElement.Hf()&&this.mediaElement.Hf()===b){IRa(this,a.type);switch(a.type){case "error":var c=ZJ(this.mediaElement)||"";if("capability.changed"===c){nX(this);return}if(0<this.mediaElement.ag()&&MV(this.Uk,c,{msg:this.mediaElement.kf()}))return;if(this.isBackground()&&4===this.mediaElement.ag()){this.Jo();rX(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.mediaSource||0<
c)&&1!==c&&this.wj(c);break;case "ratechange":this.Ga&&this.Ga.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Ih;c.started=!0;c.Pl();this.hc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":KRa(this);this.X("onLoadedMetadata");BRa(this);break;case "loadstart":BRa(this);break;case "progress":case "suspend":this.Wb();this.X("onLoadProgress",this,this.gs());break;case "playing":UN(this.Bb,"plev");this.tK&&(this.tK=!1,this.isAtLiveHead()||this.seekTo(Infinity,{re:"videoplayer_onPlaying"}));
break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.aj();if(c&&(!this.rD||d))return;this.rD=this.rD||!!this.mediaElement.getCurrentTime();DX(this);this.Wb();if(!this.mediaElement||this.mediaElement.Hf()!==b)return;this.X("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.qs().length&&0===this.mediaElement.Sg().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&
this.Ga)return;break;case "resize":KRa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.X("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.KN&&g.W(this.playerState,8)&&!g.W(this.playerState,1024)&&0===this.getCurrentTime()&&g.Zv){rX(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Hf()===b){this.X("videoelementevent",a);b=this.playerState;if(!g.W(b,128)){c=this.Ux;var e=this.mediaElement;d=b.state;e=e?e:a.target;var f=e.getCurrentTime();
if(!g.W(b,64)||"ended"!==a.type&&"pause"!==a.type){var h=e.Tg()||1<f&&1.1>Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Tg();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.W(b,4)&&!uW(c,f);if(l||h&&f)0<e.xC()&&e.Hf()&&(d=14);else switch(a.type){case "error":ZJ(e)&&(d|=128);break;case "pause":g.W(b,256)?(d^=256)||(d=64):g.W(b,32)||g.W(b,2)||g.W(b,4)||(d=4,g.W(b,1)&&g.W(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1093;uW(c,e.getCurrentTime())&&(d&=-2);g.W(b,1)&&vW(c,e.getCurrentTime(),
(0,g.U)(),XJ(e))&&(d|=1);break;case "seeking":d|=16;g.W(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.W(b,2)||(d|=1);vW(c,e.getCurrentTime(),(0,g.U)(),XJ(e));break;case "timeupdate":h=g.W(b,16),l=g.W(b,4),(g.W(b,8)||h)&&!l&&uW(c,e.getCurrentTime())&&(d=8),vW(c,e.getCurrentTime(),(0,g.U)(),XJ(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,e=ZJ(d),h=1,e?("capability.changed"===e&&(h=2),l="GENERIC_WITHOUT_LINK",f=d.Ob(),f.mediaElem="1",/AUDIO_RENDERER/.test(d.kf())&&(l="HTML5_AUDIO_RENDERER_ERROR"),
d={errorCode:e,errorMessage:g.HO[l]||"",rH:l,VR:yG(f),bC:h}):d=null);b=aK(b,c,d)}!g.W(this.playerState,1)&&g.W(b,1)&&GX(this,"evt"+a.type);this.Sb(b)}}};
g.k.Q_=function(a){a="available"===a.j.availability;a!==this.gz&&(this.gz=a,this.X("airplayavailabilitychange"))};
g.k.R_=function(){var a=(0,g.U)(),b=this.mediaElement.Bg();this.ma("airplay",{ia:b});if(!this.K("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.aD)||!(2E3>a-this.aD))this.aD=a,b!==this.Bg()&&(a=this.visibility,a.j!==b&&(a.j=b,a.zf()),this.ma("airplay",{rbld:b}),LV(this)),this.X("airplayactivechange")};
g.k.Yy=function(a){if(this.Ga){var b=this.Ga,c=b.u,d=b.currentTime,e=Date.now()-c.W;c.W=NaN;c.ma("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&FLa(c,d,c.D,c.B);IT(c,4,"adf");nV(b)}};
g.k.Wb=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){$Pa(this.jd,this.Oc());var c=this.getCurrentTime();this.Ga&&(g.W(this.playerState,4)&&g.iI(this.videoData)||ONa(this.Ga,c));5<c&&(this.jd.C=c);var d=g.Fv();d?g.Vn.Tk(this.ut):g.zu(this.ut);var e=this.mediaElement.Hn();if((g.hK(this.playerState)||!e||zI(this.videoData))&&!g.W(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.W(b.playerState,128)){xG(b.U)&&g.TE(b.U.experiments,"html5_log_rebuffer_events")&&
IRa(b,"pfx");var h=b.getCurrentTime(),l=XJ(b.mediaElement),m=g.W(b.playerState,8),n=uW(b.Ux,h),p=vW(b.Ux,h,(0,g.U)(),l);m&&n?b.Sb(cK(b.playerState,1)):m&&p?(m=b.getDuration(),n=hI(b.videoData),(b.K("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-h)?(b.ma("setended",{ct:h,bh:l,dur:m,live:n}),n&&b.K("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.hs()?b.seekTo(0,{re:"videoplayer_loop"}):tS(b))):(g.hK(b.playerState)||GX(b,"progress_fix"),b.Sb(bK(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-
b.qz)/1E3,n=b.getDuration(),h>n-1&&b.ma("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.W(b.playerState,4)&&g.hK(b.playerState)&&5<XJ(b.mediaElement)&&b.Sb(cK(b.playerState,1)));b.Wb()}};
0===this.mediaElement.qs().length?this.ut=d?g.Vn.Fh(f,100):g.xu(f,100):this.ut=d?g.Vn.Fh(f,500):g.xu(f,500)}this.videoData.Jx=c;!a&&this.Oc()&&ERa(this);ROa(this.Wg,this.Ke,this.Qd(),this.isBackground())&&hX(this);SOa(this.Wg,this.videoData.u)&&(this.hc.yd("qoe.restart","droprate."+this.Wg.J),Eya(this.U.j),LV(this));this.X("progresssync",this,a);!this.K("html5_progress_event_linear_paused_killswitch")&&e&&zI(this.videoData)&&this.X("onVideoProgress",this,this.getCurrentTime())}};
g.k.FY=function(){this.fg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.Ky=function(){return this.hc.Ky()};
g.k.GH=function(){return this.Ga?this.Ga.GH():DF(this.U.schedule,!0)};
g.k.qX=function(){g.hK(this.playerState)&&POa(this.Wg,this.Ke)&&hX(this)};
g.k.Sb=function(a){if(!g.eK(this.playerState,a)){var b=new g.sJ(a,this.playerState);this.playerState=a;JRa(this);var c=!this.ND.length;this.ND.push(b);var d=this.mediaElement&&this.mediaElement.Cg();if(g.uJ(b,1)&&!g.W(b.jq,16)&&!d&&g.W(this.playerState,8)&&!g.W(this.playerState,64)&&this.Ga){d=this.Ga;d.Xv=!0;if(d.policy.pg&&d.J){var e={rebuf:d.Xv,ct:d.currentTime.toFixed(3)},f=d.B;f.N&&(e.ccr=f.N);f.C&&(e.sq=f.C.info.j[0].Ia,e.itag=f.C.info.j[0].j.info.id,e.mt=f.C.info.j[0].C.toFixed(3),e.st=f.C.state,
(f=f.C.ag())&&(e.err=f));d.ma("sdai",e)}this.mediaElement&&5<=XJ(this.mediaElement)&&((d=g.TE(this.U.experiments,"html5_non_network_rebuffer_duration_ms"))?this.DQ.start(d):POa(this.Wg,this.Ke)&&hX(this))}(d=g.TE(this.U.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.W(a,1)&&(g.W(a,8)||g.W(a,16))?this.kG.start(d):this.kG.stop();(0>tJ(b,8)||g.uJ(b,1024))&&this.Ns.stop();!g.uJ(b,8)||this.videoData.La||g.W(b.state,1024)||this.Ns.start();g.W(b.state,8)&&0>tJ(b,16)&&!g.W(b.state,32)&&!g.W(b.state,
2)&&this.playVideo();g.W(b.state,2)&&jI(this.videoData)&&(this.wj(this.getCurrentTime()),this.Wb(!0));g.uJ(b,2)&&this.xK(!0);g.uJ(b,128)&&this.Jo();this.videoData.j&&this.videoData.isLivePlayback&&!this.kT&&(0>tJ(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.uJ(b,8)&&this.videoData.j.resume());this.jd.bd(b);this.hc.bd(b);if(c&&!this.isDisposed())try{for(var h=g.r(this.ND),l=h.next();!l.done;l=h.next()){var m=l.value;this.Ih.bd(m);this.X("statechange",m)}}finally{this.ND.length=0}}};
g.k.Mz=function(){this.videoData.isLivePlayback||this.X("connectionissue")};
g.k.IJ=function(){this.Bb.tick("qoes")};
g.k.uD=function(a,b,c,d){a:{var e=this.Uk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=AG(b);"drm.keyerror"===a&&this.xe&&1<this.xe.u.keys.length&&96>e.C&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())IOa(e,a);else{if(e.oa.fg(a,b,d,c),BOa(e,{detail:c}))break a}else e.yd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ma("retrydrm",{sessionLimitExhausted:1}),e.C++,HRa(e.oa))}};
g.k.L0=function(){var a=this,b=g.TE(this.U.experiments,"html5_license_constraint_delay"),c=$u();b&&c?(b=new g.Zn(function(){tX(a);oX(a)},b),g.M(this,b),b.start()):(tX(this),oX(this))};
g.k.Oz=function(a){this.X("heartbeatparams",a)};
g.k.qq=function(a){this.ma("keystatuses",xV(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.K("html5_drm_check_all_key_error_states")){var d=lOa(b,c);d=wV(a)?yV(a,d):a.D.includes(d)}else{a:{b=lOa(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.Y&&d;c&&!b?IOa(this.Uk):d||yV(a,"AUDIO")&&yV(a,"SD")||(a=xV(a),this.qK?(this.X("drmoutputrestricted"),
this.K("html5_report_fatal_drm_restricted_error_killswitch")||this.fg("drm.keyerror",2,void 0,"info."+a)):(this.qK=!0,this.yd(new zG("qoe.restart",Object.assign({},{retrydrm:1},a))),uX(this),HRa(this)))};
g.k.O0=function(){if(!this.videoData.La&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.aj()&&5<=XJ(this.mediaElement)&&this.videoData.B&&this.videoData.B.j&&(this.Sb(bK(this.playerState,1)),GX(this,"load_soft_timeout"),this.X("playbackstalledatstart"),a="1");JRa(this);if(this.K("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},this.Km()&&(a.prerolls=this.hk.join(",")),this.Ga&&Object.assign(a,this.Ga.Ob()),this.mediaElement&&Object.assign(a,this.mediaElement.Ob());
else{var b=this.videoData.B;a={restartmsg:a,mfmt:UH(this.videoData)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Td&&!this.xe?"1":"0",mfmtinfo:this.videoData.u?"0":"1",prerolls:this.Km()?this.hk.join(","):"0"};if(this.xe){b=a;var c=this.xe;if(0>=c.u.size){var d="ns;";c.V||(d+="nr;");c=d+="ql."+c.B.length}else c=xV(c.u.values().next().value),c=yG(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Ga)?void 0:e.Ob())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0:
f.Ob())||{})}this.hc.yd("qoe.start15s",yG(a));this.X("loadsofttimeout")}};
g.k.wj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,oX(this))};
g.k.xK=function(a){var b=this;a=void 0===a?!1:a;if(!this.zB){lB("att_s","player_att")||mB("att_s",void 0,"player_att");var c=new g.oGa(this.videoData);if("c1a"in c.j&&!g.VM.isInitialized()&&(mB("att_wb",void 0,"player_att"),2===this.wG&&.01>Math.random()&&g.rz(Error("Botguard not available after 2 attempts")),!a&&5>this.wG)){g.$n(this.xG);this.wG++;return}if("c1b"in c.j){var d=BPa(this.hc);d&&rGa(c).then(function(e){e&&!b.zB&&d?(mB("att_f",void 0,"player_att"),d(e),b.zB=!0):mB("att_e",void 0,"player_att")},
function(){mB("att_e",void 0,"player_att")})}else(a=g.pGa(c))?(mB("att_f",void 0,"player_att"),APa(this.hc,a),this.zB=!0):mB("att_e",void 0,"player_att")}};
g.k.Pd=function(a){return this.jd.Pd(void 0===a?!1:a)};
g.k.getMinSeekableTime=function(){return this.jd.getMinSeekableTime()};
g.k.wd=function(){return this.jd?this.jd.wd():0};
g.k.getStreamTimeOffset=function(){return this.jd?this.jd.getStreamTimeOffset():0};
g.k.Un=function(){var a=0;this.U.K("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.wd():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&PV(this.Wg,null==(b=this.videoData.B)?void 0:b.videoInfos)&&(this.Wg.setPlaybackRate(a),uX(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.mediaElement)){var b=pJ(this);b&&0<b.videoHeight&&(a=MD(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.k.Yw=function(){this.hc.Yw()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.hc;c.j?(c=kW(c.j,"engage"),c.N=a,c.send(b)):b&&b()};
g.k.Hi=function(a){return this.hc.Hi(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return hI(this.videoData)&&(this.rP||b)?this.jd.isAtLiveHead(a):!1};
g.k.Kp=function(){var a=this.Pd(),b=this.getCurrentTime(),c;(c=!hI(this.videoData))||(c=this.jd,c=!(c.u&&c.u.B));return c||this.oo()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.wl=aa(13);g.k.oq=aa(35);g.k.nq=aa(38);g.k.Ty=function(){return this.mediaElement?this.mediaElement.oB():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&this.mediaElement.setLoop(a)};
g.k.hs=function(){return this.mediaElement?this.mediaElement.hs():this.loop};
g.k.LJ=function(a){this.ma("timestamp",{t:a.toString()});this.jd.LJ(a)};
g.k.Rc=function(a){this.Bb.tick(a)};
g.k.To=function(a){return this.Bb.To(a)};
g.k.ma=function(a,b,c){this.hc.ma(a,b,void 0===c?!1:c)};
g.k.hK=function(a,b,c){this.hc.ma(a,b,void 0===c?!1:c)};
g.k.yd=function(a){this.hc.yd(a.errorCode,yG(a.details))};
g.k.fA=function(a,b,c){this.hc.fA(a,b,c)};
g.k.getPlayerSize=function(){return this.vA.getPlayerSize()};
g.k.Ji=function(){return this.vA.Ji()};
g.k.ej=function(){return this.Bb};
g.k.K=function(a){return this.U.K(a)};
g.k.vG=function(){if(ZH(this.videoData,"html5_set_debugging_opt_in")){var a=g.rv.getInstance();g.tv(0,183)||(uv(0,183,!0),a.save())}};
g.k.dS=function(){if(g.fK(this.playerState)){var a=lX.HO();0!==Object.keys(a).length&&this.hc.ma("profile",a)}this.SD.start()};
g.k.zl=function(){var a=this.getCurrentTime(),b=a-this.wd(),c=this.mediaElement?kE(this.mediaElement.Sg()):0;c=Math.floor(Math.max(c-b,0))+100;var d;return(null==(d=this.Ga)?0:d.zl(b,c))?(this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),this.jd.zl(a),!0):!1};
g.k.UH=function(){return this.U.Oe||""};
g.k.Nf=function(){return this.videoData.videoId};
g.k.Lv=function(a){return this.Ga?this.Ga.Lv(a):""};
g.k.AC=function(){return this.Qg.Ws};g.u(g.JX,g.K);g.JX.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Ra(a),e=D4[d];if(e){try{e.dispose()}catch(h){g.qz(h)}D4[d]=null}var f=new g.JX(a,b,c);g.cf(f,function(){D4[d]=null;f.eT&&f.eT()});
return D4[d]=f}catch(h){throw g.qz(h),h.stack;}};
g.k=g.JX.prototype;g.k.Pp=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Cm=function(){this.wI||(this.wI=g.EM(yK(),YFa()));return this.wI};
g.k.isVideoInfoVisible=function(){return!(!this.Gk||!this.Gk.tb)};
g.k.Xh=function(){if(this.mediaElement){this.hx&&(this.events.uc(this.hx),this.hx=null);g.bz(this.cq);this.Fb&&this.Fb.Xh(!0);this.template.Xh();try{this.K("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.cE()}catch(a){g.rz(a)}this.mediaElement=null}};
g.k.Fc=function(){return this.Fb};
g.k.Io=function(){this.Fb!==this.kb&&uS(this,this.kb)};
g.k.ey=function(a,b,c){var d=this,e=this.Bb;2===a&&(e=new TN(this.U));return new g.jX(this.U,a,e,this.template,function(f){return d.Ho.X.apply(d.Ho,[f].concat(g.t(g.za.apply(1,arguments))))},function(){return d.Sa.getVisibilityState()},this.visibility,this,b,c)};
g.k.ZD=function(){if(!KX(this)){var a=oO(this.wc);a&&!a.created&&kO(this.wc)&&a.create()}};
g.k.setIsExternalPlaylist=function(a){this.Kh=ev(!1,a)};
g.k.W_=function(){KX(this)||this.pn(5)};
g.k.o1=function(a){if(!KX(this)){rSa(this);var b=a.getPlayerState();a.lz()?this.pauseVideo():g.fK(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return $D(a)};
g.k.R=function(){return this.U};
g.k.getVideoData=function(){return this.Fb.getVideoData()};
g.k.Sy=aa(7);g.k.Wc=function(){return this.kb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.oN(this,a);return a?g.wI(a.getVideoData())?1:(a=a.Qd())?a.gs():0:0};
g.k.Za=function(){return this.template};
g.k.ob=function(){return this.wc};
g.k.ej=function(){return this.Bb};
g.k.Jw=function(a){var b=g.oN(this,1);b&&tS(b,a)};
g.k.hj=function(){var a=this.wc.XH();a.fs=this.Sa.isFullscreen();a.volume=Math.round(this.Sa.getVolume());a.muted=this.Sa.isMuted()?1:0;a.mos=a.muted;if(this.U.K("html5_enable_embedded_player_visibility_signals")&&g.MF(this.U)){if(this.BL){var b=this.BL;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.kG();1<c&&b.push(c);a.size=b.join(":")}}this.Fb===this.kb&&this.sb&&(a.clipid=
this.sb.postId);return a};
g.k.x3=function(){BGa(this.getVideoData(),this.U,this.Cm())};
g.k.addBgVersionChangeCallback=function(a){ZM.push(a)};
g.k.DH=function(a){var b=this;return g.z(function(c){return b.GR?c.return(b.GR.DH(a)):c.return(Promise.reject("web po not available"))})};
g.k.EK=function(a){this.GR=a};
g.k.lk=function(a){1===a&&(this.Bb.tick("vr"),this.Jq||(this.Jq=Ow(N_a,this.QQ,this)),CRa(this.Fb),fHa(this.Bb,this.Fb.getVideoData(),qSa(this)),this.wc.UB());var b=this.U;(tG(b)&&b.C||g.UF(b))&&(this.ze()||this.Sa.Ka("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Fb===this.kb&&this.Fb.hs()!==a&&(this.Fb.setLoop(a),this.Sa.Ka("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Fb.hs()};
g.k.setLoopRange=function(a){var b=!1;!!this.sb!==!!a?b=!0:this.sb&&a&&(b=this.sb.startTimeMs!==a.startTimeMs||this.sb.endTimeMs!==a.endTimeMs||this.sb.postId!==a.postId||this.sb.type!==a.type);if(b){this.kb.Ih.Af("applooprange");if(a)b=new g.sA(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.kb.addCueRange(b);else{this.Wc().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.sb)?void 0:c.type)||isNaN(Number(null==(d=this.sb)?void 0:d.loopCount))||(b={loopCount:String(this.sb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.Mv("repeatChapterLoopEvent",b))}this.sb=a;this.Sa.Ka("onLoopRangeChange",a||void 0);this.Fb===this.kb&&(this.lE(),this.Fb.Rt())}};
g.k.getLoopRange=function(){return this.sb};
g.k.lE=function(){this.sb&&this.Fb===this.kb&&(fSa(this,this.kb.getCurrentTime())?this.sb.loopCount=0:gSa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=SRa(this,a),this.kb.getPlaybackRate()!==a&&(this.kb.setPlaybackRate(a),b&&!this.U.u&&g.Pz("yt-player-playback-rate",a),this.Sa.Ka("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return wN(this.wc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.oN(this):g.oN(this,a);if(!a)return 0;if(b){if(c&&this.Rd&&(b=this.Rd.eb/1E3,0!==b))return b;a=QX(this,a);return $X(this,a.getCurrentTime(),a)}c&&this.Rd?(b=this.Rd,a=a.getCurrentTime(),yS(b)?(b=JS(b,1E3*a))&&b.gp&&(a-=b.gp):(b=EKa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.Iv=function(){var a=g.oN(this);if(!a)return 0;a=QX(this,a);return $X(this,a.Iv(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.oN(this):g.oN(this,a);if(!a)return 0;if(this.K("enable_linear_player_handling")&&c.hasProgressBarBoundaries()&&!d){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),h;c=Number(null==(h=c.progressBarEndPosition)?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=PX(this,a),$X(this,b.getDuration(),b);d&&this.Rd?(b=this.Rd,d=a.getCurrentTime(),
b=yS(b)?b.V?b.V.durationMs/1E3:0:(b=JS(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.oN(this,a);if(!a)return 0;a=PX(this,a);return $X(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.oN(this,a);return b?this.ze(b)?(b=PX(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.fH=function(){this.template.fH();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Zy(this.template.element))&&this.events.P(this.template,a,this.onFullscreenChange);this.events.P(window,"resize",this.O1)};
g.k.getDebugText=function(a){var b=this.kb.Ob(a);if(this.Fb&&this.Fb!==this.kb){for(var c=this.Fb.Ob(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=zda("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.eh("video-ads");f?(wSa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.eh("videoAdUiSkipContainer"),l=g.eh("ytp-ad-skip-button-container"),m=h||l;m?(wSa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+Sg(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.Np().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.bW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Sa.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.R().experiments.experimentIds.join(", ")},b=this.zb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(KX(this))return 3;var b;return a&&(null==(b=this.Rd)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.oN(this).getPlayerType()};
g.k.zb=function(a){return 3===this.getPresentingPlayerType()?wN(this.wc).Zd:g.oN(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.NJ=function(a){switch(a.type){case "loadedmetadata":UN(this.Bb,"fvb");UN(this.Bb,"fvb_r");this.jE.start();a=g.r(this.Fw);for(var b=a.next();!b.done;b=a.next())b=b.value,oSa(this,b.id,b.J5,b.I5,void 0,!1);this.Fw=[];break;case "loadstart":UN(this.Bb,"gv");break;case "progress":case "timeupdate":2<=kE(a.target.Sg())&&UN(this.Bb,"l2s");break;case "playing":g.rG&&this.jE.start();if(g.cG(this.U))a=!1;else{b=g.yN(this.ob());a="none"===this.mediaElement.getStyle("display")||0===Sg(this.mediaElement.getSize());
var c=qT(this.template),d=this.Fb.getVideoData(),e=g.VF(this.U)||g.XF(this.U);d=VH(d);b=!c||b||e||d||this.U.Bd;a=a&&!b}a&&(this.Fb.ma("hidden",{},!0),this.getVideoData().Yb||(this.getVideoData().Yb=1,this.bR(null),this.Fb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Sa.Ka("onLoadProgress",b)};
g.k.o2=function(){this.Sa.X("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=QX(this,a);b=$X(this,a.getCurrentTime(),a);this.Sa.Ka("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Sa.Ka("onAutoplayBlocked")};
g.k.C1=function(){this.Sa.X("progresssync")};
g.k.Y_=function(a){if(1===this.getPresentingPlayerType()){g.uJ(a,1)&&!g.W(a.state,64)&&this.Wc().isLivePlayback&&this.kb.isAtLiveHead()&&1<this.Sa.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.uJ(a,2)){if(this.sb&&this.sb.endTimeMs>=1E3*(this.getDuration()-1)){gSa(this);return}bSa(this)}if(g.W(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Sa.Ka("onError",hN(b.errorCode));this.Sa.Ka("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.rH});6048E5<(0,g.U)()-this.U.Ne&&this.Sa.Ka("onReloadRequired")}b={};if(a.state.Oc()&&!g.hK(a.state)&&!lB("pbresume","ad_to_video")&&lB("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);YA(b,"ad_to_video");if(this.K("html5_csi_delay_pbresume")){if(lB("plev","ad_to_video")&&!isNaN(this.Bb.u))if(b=1E3*(this.getCurrentTime()-this.Bb.u),0>b){var d;null==(d=g.oN(this))||
d.ma("csir",{ossms:b})}else if(1E5<b){var e;null==(e=g.oN(this))||e.ma("csir",{oslms:b})}else d=(0,g.U)()-b,XA("pbresume",d,"ad_to_video"),this.Bb.u=NaN}else XA("pbresume",void 0,"ad_to_video");this.wc.UB()}this.Sa.X("applicationplayerstatechange",a)}};
g.k.vR=function(a){3!==this.getPresentingPlayerType()&&this.Sa.X("presentingplayerstatechange",a)};
g.k.wh=function(a){NX(this,iK(a.state));g.W(a.state,1024)&&this.Sa.isMutedByMutedAutoplay()&&(nN(this,{muted:!1,volume:this.Bh.volume},!1),XX(this,!1))};
g.k.U_=function(a,b,c){"newdata"===a&&HX(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,type:"clips"})};
g.k.Kz=function(){this.Sa.Ka("onPlaybackAudioChange",this.Sa.getAudioTrack().Ic.name)};
g.k.Sz=function(a){var b=this.Fb.getVideoData();a===b&&this.Sa.Ka("onPlaybackQualityChange",a.u.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.kb&&(this.U.vg=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Rd?this.Rd=new g.zS(this.Sa,this.U,this.kb):!this.getVideoData().enableServerStitchedDai&&this.Rd&&(this.Rd.dispose(),this.Rd=null);if("newdata"===a)nO(this.wc,2),this.Sa.X("videoplayerreset",b);else{if(!this.mediaElement)return;if("dataloaded"===a)if(this.Fb===this.kb){if($F(c.Oa,c.kN),!this.kb.getPlayerState().isError()){var d=KX(this);this.Wc().isLoaded();d&&this.pn(6);
dSa(this);mO(this.wc)||this.ZD()}}else dSa(this);if(1===b.getPlayerType()&&(this.U.va&&vSa(this),this.getVideoData().isLivePlayback&&!this.U.gm&&this.Kf("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(c.og||c.TF||c.mu||c.nu||c.BT||c.J.focEnabled||c.J.rmktEnabled||this.getVideoData().Gs){d=this.Vu;var e=this.getVideoData(),f=this.kb;fN(d,"part2viewed",1,0x8000000000000,f);fN(d,"engagedview",Math.max(1,1E3*e.ub),0x8000000000000,f);e.isLivePlayback||(e=1E3*e.lengthSeconds,fN(d,"videoplaytime25",
.25*e,e,f),fN(d,"videoplaytime50",.5*e,e,f),fN(d,"videoplaytime75",.75*e,e,f),fN(d,"videoplaytime100",e,0x8000000000000,f),fN(d,"conversionview",e,0x8000000000000,f),fN(d,"videoplaybackstart",1,e,f),fN(d,"videoplayback2s",2E3,e,f),fN(d,"videoplayback10s",1E4,e,f))}if(c.hasProgressBarBoundaries()){var h;d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.getIngestionTime())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.TD.progressEndBoundary,
(null==d?void 0:d.start)!==h&&(d&&this.bE([d]),h=new g.sA(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.kb.addCueRange(h),this.TD.progressEndBoundary=h))}}this.Sa.X("videodatachange",a,c,b.getPlayerType())}this.Sa.Ka("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.lE();(a=c.lA)?this.Vp.mO(a,c.clientPlaybackNonce):qLa(this.Vp)};
g.k.bv=function(){RX(this,null);this.Sa.Ka("onPlaylistUpdate")};
g.k.HQ=function(a){var b=a.getId(),c=this.Wc(),d=!this.isInline();if(!c.inlineMetricEnabled||d){if("part2viewed"===b){if(c.tN&&g.Ww(c.tN),c.TF&&iY(this,c.TF),c.mu)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.r(c.mu),h=f.next();!h.done;h=f.next())iY(this,g.Sn(h.value,e))}else"conversionview"===b?this.kb.Yw():"engagedview"===b&&c.og&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.Ww(g.Sn(c.og,e)));c.uN&&(e=a.getId(),e=ou(c.uN,{label:e}),g.Ww(e));switch(b){case "videoplaytime25":c.qN&&
iY(this,c.qN);c.WF&&jY(this,c.WF);c.LN&&g.Ww(c.LN);break;case "videoplaytime50":c.rN&&iY(this,c.rN);c.XF&&jY(this,c.XF);c.aO&&g.Ww(c.aO);break;case "videoplaytime75":c.sN&&iY(this,c.sN);c.YF&&jY(this,c.YF);c.tO&&g.Ww(c.tO);break;case "videoplaytime100":c.pN&&iY(this,c.pN),c.VF&&jY(this,c.VF),c.vN&&g.Ww(c.vN)}(e=this.getVideoData().Gs)&&mSa(this,e,a.getId())&&mSa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.nu)?void 0:l.j;m&&iY(this,m);
break;case "videoplayback2s":(l=null==(m=c.nu)?void 0:m.B)&&iY(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.nu)?void 0:n.u)&&iY(this,l)}this.kb.removeCueRange(a)};
g.k.B1=function(a){delete this.TD[a.getId()];this.kb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,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==(h=a.watchNextResponse)?void 0:null==(l=h.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),d=g.av(c,g.VG),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}b=g.av(a,g.VG);this.K("enable_linear_player_handling")&&b&&this.Sa.Ka("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.pn=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(NX(this,-1),NX(this,5)),this.appState=a,this.Sa.X("appstatechange",a))};
g.k.Kf=function(a,b,c,d,e){this.kb.fg(a,b,c,d,e)};
g.k.Po=function(a,b){this.kb.handleError(new zG(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.oN(this,a);if(!c)return!1;a=PX(this,c);c=QX(this,c);return a!==c?a.isAtLiveHead($X(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Kp=function(){var a=g.oN(this);return a?PX(this,a).Kp():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.oN(this,d))2===this.appState&&VX(this),this.ze(d)?ZX(this)?this.Rd.seekTo(a,b,c):this.kd.seekTo(a,b,c):d.seekTo(a,{aT:!b,bT:c,re:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.mw=function(){this.Sa.Ka("SEEK_COMPLETE")};
g.k.Z1=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.W(a.getPlayerState(),512)||VX(this):this.Sa.Ka("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Sa.X("airplayactivechange");this.U.K("html5_external_airplay_events")&&this.Sa.Ka("onAirPlayActiveChange",this.Sa.Bg())};
g.k.onAirPlayAvailabilityChange=function(){this.Sa.X("airplayavailabilitychange");this.U.K("html5_external_airplay_events")&&this.Sa.Ka("onAirPlayAvailabilityChange",this.Sa.gz())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Fb)||a.Dq()};
g.k.pJ=function(){this.Sa.X("beginseeking")};
g.k.uJ=function(){this.Sa.X("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.oN(this,a))?PX(this,a).getVideoData().getStoryboardFormat():null};
g.k.Ii=function(a){return(a=g.oN(this,a))?PX(this,a).getVideoData().Ii():null};
g.k.ze=function(a){a=a||this.Fb;var b=!1;if(a){a=a.getVideoData();if(ZX(this))a=a===this.Rd.oa.getVideoData();else a:if(b=this.kd,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.Dc===c.value.Dc){a=!0;break a}a=!1}b=a}return b};
g.k.Uu=function(a,b,c,d,e,f,h){var l=ZX(this),m;null==(m=g.oN(this))||m.ma("appattl",{sstm:this.Rd?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?CKa(this.Rd,a,b,c,d,e,f,h):UKa(this.kd,a,c,d,e,f)};
g.k.ez=function(a,b,c,d,e,f,h){ZX(this)&&CKa(this.Rd,a,b,c,d,e,f,h);return""};
g.k.rq=function(a){var b;null==(b=this.Rd)||b.rq(a)};
g.k.Gr=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;ZX(this)?this.U.K("web_player_ssdai_prevent_clearing_timeline_killswitch")&&MS(this.Rd,a,b):ZS(this.kd,a,b)};
g.k.Xw=function(a,b,c){if(ZX(this)){var d=this.Rd,e=d.zc.get(a);e?(void 0===c&&(c=e.Vc),e.durationMs=b,e.Vc=c,d.U.K("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&FKa(d,e)):d.vz("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.kd;e=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Dc===a){e=h;break}e?(void 0===c&&(c=e.Vc),$Ka(d,e,b,c)):SS(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.ze();a=new g.HH(this.U,a);d&&(a.Dc=d);c=void 0===c?Infinity:c;d=b||this.Fb.getPlayerType();(b=YX(this,d,a,!0))||(b=OX(this,d,a));2===d&&this.kb&&(a=b.getVideoData(),this.kb.zt(a.clientPlaybackNonce,a.Mc||"",a.breakType||0,a.Ld));this.ZB(b,c)};
g.k.ZB=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.oN(this);e&&(PX(this,e).kT=!0);qKa(this.ex,a,b,c).then(function(){d.Sa.Ka("onQueuedVideoLoaded")},function(){})};
g.k.Wv=function(){return this.ex.Wv()};
g.k.clearQueue=function(){this.ex.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1;this.K("fetch_bid_for_dclk_status")&&g.Cv(g.Ev(),function(){dA("player")});
var h=new g.HH(this.U,a),l;eHa(this.Bb,null!=(l=h.va)?l:"");this.Bb.To("pl_i");this.K("web_player_early_cpn")&&h.clientPlaybackNonce&&this.Bb.info("cpn",h.clientPlaybackNonce);if(!this.K("web_player_load_video_context_killswitch")&&e){for(;h.Wj.length&&h.Wj[0].isExpired();)h.Wj.shift();f=h.Wj.length-1;f=0<f&&e.u(h.Wj[f])&&e.u(h.Wj[f-1]);h.Wj.push(e)}c||(a&&WN(a)?(jG(this.U)&&!this.Kh&&(a.fetch=0),RX(this,a)):this.playlist&&RX(this,null),a&&this.setIsExternalPlaylist(a.external_list),jG(this.U)&&!this.Kh&&
SX(this));a=this.aq(h,b,d);f&&this.Kf("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.Wj.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=jv(a);if(!this.Xz.get(b+"_"+d+"_"+e)){a=new g.HH(this.U,a);e&&(a.Dc=e);e=b+"_"+a.videoId+"_"+a.Dc;if(d=this.Fb){d=this.Fb.getPlayerType();var f=this.Fb.getVideoData().videoId,h=this.Fb.getVideoData().Dc;d=e===d+"_"+f+"_"+h}d?(g.rS(this.Fb,!0),a.dispose()):(a.cf=!0,a=OX(this,b,a),1===b&&mG(this.U)||g.rS(a,!0),this.Xz.set(e,a,c||3600))}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.wc;a=a.G.R().showMiniplayerUiWhenMinimized?a.ge.get("miniplayer"):void 0;a&&(this.wf()?a.load():a.unload());this.Sa.X("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.wc;a=a.G.R().showInlinePreviewUi?a.ge.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Sa.Ka("onInlinePreviewModeChange"))};
g.k.Iw=function(a){var b=this.U.K("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.U.nk&&this.U.K("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.BH&&b?this.BH.start():this.SN():this.visibility.Iw(a)};
g.k.SN=function(){var a,b=null==(a=this.mediaElement)?void 0:a.tf();b&&Yy(b).catch(function(c){return g.rz(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.W1=function(){"picture-in-picture"===this.mediaElement.tf().webkitPresentationMode?this.Iw(!0):this.Iw(!1)};
g.k.togglePictureInPicture=function(){var a=g.oN(this);a&&a.togglePictureInPicture()};
g.k.aq=function(a,b,c){b=void 0===b?1:b;lB("_start",this.Bb.timerName)||(XA("_start",void 0,this.Bb.timerName),this.Bb.info("srt",0));var d=YX(this,b,a,!1);d?a.dispose():(d=OX(this,b,a,c),this.K("html5_onesie")&&mX(d)&&g.rS(d),this.jE.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),uS(this,d));d===this.kb&&(this.U.vg=a.oauthToken);if(!mX(d))return!1;if(d===this.kb)return this.pn(1),VX(this);vX(d);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&WN(a))if(this.Fs=!0,RX(this,a),(a=g.XN(this.playlist))&&a.isValid())dY(this,a,b);else this.playlist.onReady(function(){UX(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.bv();var d=new g.HH(this.U,a);!g.MF(this.U)||this.U.N||1!==b||d.isAd()||d.Mc?dY(this,d,b):(this.Fc().getVideoData().qa=!0,lHa(d,a?a:{}).then(function(e){dY(c,e,b)}),d.dispose())}};
g.k.Gl=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(OF(this.U)||g.nG(this.U))return b=b||{},b.lact=Px(),b.vis=this.Sa.getVisibilityState(),this.Sa.Ka("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;gHa(this.Bb);this.Bb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&!this.K("web_player_watch_endpoint_param_killswitch")&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,
1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Fs=!0;nSa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Fs=!1;nSa(this,a,b,c,d)};
g.k.Dy=function(){if(this.Sa.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;jG(this.U)&&!this.Kh&&SX(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.Gp=aa(3);
g.k.nextVideo=function(a,b){var c=this.kb.getVideoData(),d;c=b?g.AI(c):null==(d=c.suggestions)?void 0:d[0];g.BN(this.Sa)&&c?this.Gl(c.videoId,b?c.vy:c.sessionData,c.playlistId,b,void 0,c.JN||void 0):this.Kh?this.Sa.Ka("onPlaylistNext"):3===this.getPresentingPlayerType()?wN(this.wc).nextVideo():this.playlist&&(jG(this.U)&&!this.Sa.isFullscreen()?bY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&YN(this.playlist,hHa(this.playlist)),this.playlist.loaded?(a=b&&this.U.K("html5_player_autonav_logging"),this.aq(g.XN(this.playlist,
void 0,b,a),1)):this.Fs=!1))};
g.k.previousVideo=function(a){this.Kh?this.Sa.Ka("onPlaylistPrevious"):3===this.getPresentingPlayerType()?wN(this.wc).QD():this.playlist&&(jG(this.U)&&!this.Sa.isFullscreen()?bY(this,"yt.www.watch.lists.prev"):(this.playlist.Lm(a)&&YN(this.playlist,iHa(this.playlist)),this.playlist.loaded?this.aq(g.XN(this.playlist),1):this.Fs=!1))};
g.k.playVideoAt=function(a){this.Kh?this.Sa.Ka("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.aq(g.XN(this.playlist,a),1):this.Fs=!1,YN(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Ny=aa(11);g.k.S_=function(a){this.Sa.Ka("onCueRangeEnter",a.getId())};
g.k.T_=function(a){this.Sa.Ka("onCueRangeExit",a.getId())};
g.k.Px=function(a,b,c){var d=g.oN(this,b);d&&(d.Px(a,c),b&&this.getPresentingPlayerType()!==b||MX(this,"cuerangesadded",a))};
g.k.bE=function(a,b){var c=g.oN(this,b);c&&(c.bE(a),b&&this.getPresentingPlayerType()!==b||MX(this,"cuerangesremoved",a))};
g.k.X_=function(){var a=this;this.getPresentingPlayerType();this.Jq||(this.Jq=Ow(N_a,this.QQ,this));fHa(this.Bb,this.Fb.getVideoData(),qSa(this));IX(this)&&this.U.u&&"embedded"===qI(this.Wc())&&this.eQ&&.01>Math.random()&&g.Mv("autoplayTriggered",{intentional:this.HP});this.eQ=!1;this.wc.UB();this.K("web_player_defer_ad")&&(this.vr?g.$n(this.vr):this.ZD());this.Sa.Ka("onPlaybackStartExternal");this.U.K("mweb_client_log_screen_associated");(function(){var c=g.Bz(a.nS||(a.wf()?3:0));if(c&&"UNDEFINED_CSN"!==
c)if(a.U.K("il_via_jspb")){var d=new jt,e=a.getVideoData().clientPlaybackNonce;g.D(d,1,e).Xf(c);a.U.K("web_playback_associated_ve")&&a.getVideoData().ra&&(e=g.uz(a.getVideoData().ra),g.Gz(c,e),c=e.getAsJspb(),F(d,as,2,c));if(a.U.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new kt;if(null==c?0:c.enqueueingVe)if(null==c?0:c.enqueueingVe.trackingParams){var f=g.uz(c.enqueueingVe.trackingParams);f=f.getAsJspb();F(e,as,1,f)}else g.rz(new g.Rv("Cannot map enqueueingVe from a client VE "));
(null==c?0:c.enqueueingCsn)&&g.D(e,2,c.enqueueingCsn);(null==c?0:c.clientEnqueueingTimeMs)&&g.D(e,3,Number(c.clientEnqueueingTimeMs));F(d,kt,4,e)}c={};a.K("web_playback_associated_log_ctt")&&a.getVideoData().I&&(c.cttAuthInfo={token:a.getVideoData().I,videoId:a.getVideoData().videoId});fpa(d,c)}else d={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.U.K("web_playback_associated_ve")&&a.getVideoData().ra&&(e=g.uz(a.getVideoData().ra),g.Gz(c,e),d.playbackVe=e.getAsJson()),a.U.K("kevlar_playback_associated_queue")&&
a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo),c={},a.K("web_playback_associated_log_ctt")&&a.getVideoData().I&&(c.cttAuthInfo={token:a.getVideoData().I,videoId:a.getVideoData().videoId}),g.Mv("playbackAssociated",d,c);else g.rz(new g.Rv("CSN Missing or undefined during playback association"))})();
var b={};!this.K("web_player_csi_ctt_killswitch")&&this.getVideoData().I&&(b.cttAuthInfo={token:this.getVideoData().I,videoId:this.getVideoData().videoId});ZA("player_att",b);this.getVideoData().botguardData&&(g.lG(this.U)||"MWEB"===aG(this.U)?g.Cv(g.Ev(),function(){WX(a)}):WX(this));
this.lE()};
g.k.zJ=function(){this.Sa.X("internalAbandon");this.K("html5_ad_module_cleanup_killswitch")||aY(this)};
g.k.QQ=function(a){a=a.j;!isNaN(a)&&0<a&&this.kb&&this.kb.eA(a)};
g.k.onApiChange=function(){this.U.C&&this.Fb?this.Sa.Ka("onApiChange",this.Fb.getPlayerType()):this.Sa.Ka("onApiChange")};
g.k.V0=function(){var a=this.mediaElement;a={volume:g.Cg(Math.floor(100*a.getVolume()),0,100),muted:a.wC()};a.muted||XX(this,!1);this.Bh=g.Gf(a);this.Sa.Ka("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Sa.Ka("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=fY(this);this.wk(a?1:0);tSa(this,!!a)};
g.k.wk=function(a){var b=!!a,c=!!this.Fv()!==b;this.visibility.wk(a);this.template.wk(b);this.K("html5_media_fullscreen")&&!b&&this.mediaElement&&fY(this)===this.mediaElement.tf()&&this.mediaElement.yy();this.template.resize();c&&this.Bb.tick("fsc");c&&(this.Sa.X("fullscreentoggled",b),a=this.Wc(),b={fullscreen:b,videoId:a.HI||a.videoId,time:this.getCurrentTime()},this.Sa.getPlaylistId()&&(b.listId=this.Sa.getPlaylistId()),this.Sa.Ka("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.Fv=function(){return this.visibility.Fv()};
g.k.O1=function(){this.Fb&&(0!==this.Fv()&&1!==this.Fv()||this.wk(fY(this)?1:0),this.U.nk&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.yy())};
g.k.N0=function(a){3!==this.getPresentingPlayerType()&&this.Sa.X("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.oN(this,a))2===this.appState?VX(this):(null!=this.Gk&&this.Gk.tb&&this.Gk.start(),g.W(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.oN(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.kb.getVideoData(),b=new g.HH(this.U,{video_id:a.HI||a.videoId,oauth_token:a.oauthToken});b.Zf=g.Gf(a.Zf);this.cancelPlayback(6);dY(this,b,1);null!=this.Gk&&this.Gk.stop()};
g.k.cancelPlayback=function(a,b){Nw(this.Jq);this.Jq=0;var c=g.oN(this,b);c&&(2===b&&1===c.getPlayerType()&&PBa(this.Wc())?c.ma("canclpb",{r:"no_adpb_ssdai"}):(this.U.K("html5_high_res_logging")&&c.ma("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Fb&&nO(this.wc,a),1===b&&(c.stopVideo(),aY(this)),c.Jo(),MX(this,"cuerangesremoved",c.Yk()),c.Ih.reset(),this.ex&&c.isGapless()&&(c.Xh(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.oN(this,b))&&this.U.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Hi=function(a){var b=g.oN(this);return b&&this.U.enabledEngageTypes.has(a.toString())?b.Hi(a):null};
g.k.updatePlaylist=function(){jG(this.U)?SX(this):g.MF(this.U)&&TX(this);this.Sa.Ka("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.zS=a;this.CI=b;this.Sa.X("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.CI};
g.k.wf=function(){return this.visibility.wf()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Vv=function(){return this.visibility.Vv()};
g.k.Sv=function(){return this.visibility.Sv()};
g.k.nz=function(){return this.zS};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return wN(this.wc).getAdState();if(!this.ze()){var a=oO(this.ob());if(a)return a.getAdState()}return-1};
g.k.N1=function(a){var b=this.template.getVideoContentRect();wl(this.XP,b)||(this.XP=b,this.Fb&&tX(this.Fb),this.kb&&this.kb!==this.Fb&&tX(this.kb),1===this.Fv()&&this.Tz&&tSa(this,!0));this.LI&&g.Rg(this.LI,a)||(this.Sa.X("appresize",a),this.LI=a)};
g.k.cg=function(){return this.Sa.cg()};
g.k.h2=function(){2===this.getPresentingPlayerType()&&this.kd.isManifestless()&&!this.K("web_player_manifestless_ad_signature_expiration_killswitch")?ZKa(this.kd):(this.Rd&&(MS(this.Rd),aY(this)),aSa(this,"signature"))};
g.k.bR=function(){this.Xh();LX(this)};
g.k.d1=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Sa.Ka("onPlayerRequestAuthFailed")};
g.k.Mz=function(){this.Sa.Ka("CONNECTION_ISSUE")};
g.k.Oz=function(a){this.Sa.X("heartbeatparams",a)};
g.k.hE=function(a){this.Sa.Ka("onAutonavChangeRequest",1!==a)};
g.k.Qd=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.U.Bd=a;this.Fb&&(this.Fb.Rt(),this.U.va&&vSa(this))};
g.k.f1=function(){var a=g.oN(this);if(a){var b=!this.Sa.kz();(a.rP=b)||a.Ns.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.U.K("html5_suspend_loader")&&a.Ga&&(b?a.Ga.resume():BX(a,!0));a.U.K("html5_fludd_suspend")&&(g.W(a.playerState,2)||b?g.W(a.playerState,512)&&b&&a.Sb(cK(a.playerState,512)):a.Sb(bK(a.playerState,512)));a=a.hc;a.qoe&&(a=a.qoe,g.VV(a,g.sS(a.j),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Sa.Ka("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Sa.Ka("onDrmOutputRestricted")};
g.k.vG=function(){this.K("html5_skip_empty_load")&&(x0a=!0);YCa=this.K("html5_ios_force_seek_to_zero_on_stop");y0a=this.K("html5_ios7_force_play_on_stall");z0a=this.K("html5_ios4_seek_above_zero");A0a=this.K("html5_use_async_stopVideo");B0a=this.K("html5_pause_for_async_stopVideo");zxa=this.K("html5_retain_source_buffer_appends_for_debugging");this.K("html5_mediastream_applies_timestamp_offset")&&(nU=!0);this.K("html5_dont_override_default_sample_desc_index")&&(uwa=!0);var a=g.TE(this.U.experiments,
"html5_cobalt_override_quic");a&&cKa(0<a);Error.stackTraceLimit=25;var b=g.TE(this.U.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
b0a=this.K("html5_live_partial_response_resumable");Twa=this.K("html5_onesie_nonzero_playback_start");this.K("html5_fill_isTypeSupported_capability_cache_earlier")&&Cya(this.U.j);this.K("html5_onesie_cast")};
g.k.SI=function(){this.HP=!0};
g.k.ea=function(){this.wc.dispose();this.kd.dispose();this.Rd&&this.Rd.dispose();this.kb.dispose();this.Xh();g.bf(tf(this.Qt),this.playlist);Nw(this.Jq);this.Jq=0;g.K.prototype.ea.call(this)};
g.k.K=function(a){return this.U.K(a)};
g.k.qE=function(){return this.tA};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.nS=a};
g.k.seekToChapterWithAnimation=function(a){var b=this,c,d=null==(c=pN(this.ob()))?void 0:c.Av();if(d instanceof g.PO&&!(0>a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.oi)&&a<c.length)for(e=g.r(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.index===a){zSa(this,d,c.startTime,c.title);return}if(this.K("web_key_moments_markers")){var f;(e=null==(f=this.getVideoData())?void 0:f.kQ)&&a<e.length&&e.forEach(function(h,l){l===a&&zSa(b,d,h.timeRangeStartMillis,h.title)})}}};
g.k.downloadVideo=function(a,b){var c=this,d,e,f;return g.z(function(h){if(1==h.j){d=rO(c.wc);if(!d)return h.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.x(h,d.eK([a],"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=h.u;return h.return(f[0])})};
g.k.pauseVideoDownload=function(a){var b=rO(this.wc);b&&b.RJ(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.z(function(d){return(c=rO(b.wc))?d.return(c.jA(a)):d.return(Promise.reject())})};
g.k.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=rO(this.wc);return b?b.YD(a):Promise.reject()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=rO(this.wc);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.deleteVideos=function(a){var b=rO(this.wc);return b?b.eK(a,"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.k.deleteAllVideos=function(){var a=rO(this.wc);return a?a.deleteAll():Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=rO(this.wc);return a?a.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Sa,b=g.oN(this),c=a.getVideoData(),d=a.Qd(),e=d.tf(),f=b.Ty(),h=b.SK,l=8*kT(h,"bandwidth")/1024,m=kT(h,"networkactivity")/1024,n=kT(h,"bufferhealth");if(b.xe){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.xe.j.zg()+"/"+yB(b.Zr());p+="/"+b.xe.zg()}else p="";var q=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),w=gE(d.Sg(),",",3),y="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(y+="SS");y+="DAI, ";a:{if(b.kd){if(b.kd.yp){var A=
"D,";break a}A=b.kd.Oj;if(0<A){A="AD"+A+", ";break a}}A=""}A&&(y+=A)}if(c.fetchType){switch(c.fetchType){case "onesie":A="o";break;case "gp":A="gp";break;default:A="gvi"}y+="vd:"+A+", "}y+="s:"+q+" t:"+v+" b:"+w+" ";d.Cg()&&(y+="S");d.Hn()&&(y+="P");d.Tg()&&(y+="E");a.isOrchestrationLeader()&&(y+=" L");(d=b.Ky())&&(y+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.wH;d&&d>q.start&&d<q.end&&(y+=" as");d=y;y=g.kG();q=g.zN(a).rZ;v=c.B&&!c.B.j?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){A=
0;for(var B="",E=0;10>E;E++)if(A=(A<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var G="",H=0;6>H;H++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(A&31)+G,A>>=5;B+=G}w=B.substr(0,4)+" "+B.substr(4,4)+" "+B.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:d,
bandwidth_style:v,network_activity_style:v,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<y?"*"+y.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=NBa(c);var I;m=(null==(I=c.D)?0:I.audio.j)?"DRC":Math.round(a*f)+"%";I=Math.round(a)+"% / "+m;a=c.Ld.toFixed(1);isFinite(Number(a))&&(I+=" (content loudness "+
a+"dB)");l.volume=I;l.resolution=e.videoWidth+"x"+e.videoHeight;if(I=c.u)if(e=I.video)a=e.fps,1<a&&(l.resolution+="@"+a),(a=g.xX(b))&&a.video&&(l.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(l.resolution+="@"+a.video.fps)),l.codecs=hLa(I),!c.D||I.audio&&I.video?I.xQ&&(l.codecs+=" / "+I.xQ+"A"):l.codecs+=" / "+hLa(c.D),e.u||e.primaries?(I=e.u||"unknown","smpte2084"===I?I+=" (PQ)":"arib-std-b67"===I&&(I+=" (HLG)"),l.color=I+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style=
"display:none";e=c.isLivePlayback;I=c.xf;l.live_mode_style=e||I?"":"display:none";l.live_latency_style=e?"":"display:none";if(I)l.live_mode="Post-Live"+(OH(c)?" Manifestless":"");else if(e){I=kT(h,"livelatency");l.live_latency_secs=I.toFixed(2)+"s";e=OH(c)?"Manifestless, ":"";c.Li&&(e+="Windowed, ");a="Uncertain";if(0<=I&&120>I)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a=
"Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(I=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+I.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=jT(h,"bandwidth");l.network_activity_samples=jT(h,"networkactivity");l.live_latency_samples=jT(h,
"livelatency");l.buffer_health_samples=jT(h,"bufferhealth");b=g.wI(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";ZH(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220814_00_RC00",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.sb&&this.sb.postId?(a=this.U.getVideoUrl(a),a=zi(a,"v"),a.replace("/watch","/clip/"+this.sb.postId)):this.U.getVideoUrl(a,b,c,d,e)};
var D4={};g.Fa("yt.player.Application.create",g.JX.create);g.Fa("yt.player.Application.createAlternate",g.JX.create);Hra(mz(),{Bo:[{zz:/Unable to load player module/,weight:20},{zz:/Failed to fetch/,weight:500},{zz:/XHR API fetch failed/,weight:10},{zz:/JSON parsing failed after XHR fetch/,weight:10},{zz:/Retrying OnePlatform request/,weight:10}]});var S0a=g.Ha("ytcsi.tick");S0a&&S0a("pe");var CSa=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"]]),ASa=new Map([["normal",{At:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{At:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{At:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{At:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{At:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{At:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{At:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var T0a={eNa:"replaceUrlMacros",kIa:"onAboutThisAdPopupClosed",Moa:"executeCommand"};tY.prototype.Bm=function(){return"adLifecycleCommand"};
tY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Dh(function(){b.controller.Bp()});
break;case "END_LINEAR_AD_PLACEMENT":g.Dh(function(){b.controller.ym()});
break;case "FILL_ABOVE_FEED_SLOT":g.Dh(function(){a.elementId&&b.controller.fC(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.Dh(function(){b.controller.LB()})}};
tY.prototype.Yn=function(a){this.handle(a)};uY.prototype.Bm=function(){return"clearCueRangesCommand"};
uY.prototype.handle=function(){var a=this.UG();g.Dh(function(){a.eh(Array.from(a.rr))})};
uY.prototype.Yn=function(a){this.handle(a)};vY.prototype.Bm=function(){return"muteAdEndpoint"};
vY.prototype.handle=function(a){HSa(this,a)};
vY.prototype.Yn=function(a,b){HSa(this,a,b)};wY.prototype.Bm=function(){return"openPopupAction"};
wY.prototype.handle=function(){};
wY.prototype.Yn=function(a){this.handle(a)};xY.prototype.Bm=function(){return"pingingEndpoint"};
xY.prototype.handle=function(){};
xY.prototype.Yn=function(a){this.handle(a)};yY.prototype.Bm=function(){return"urlEndpoint"};
yY.prototype.handle=function(a,b){b=Object.assign({},b);if(i0(this.LD,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")){var c=this.xl.Gf(2);c&&(b.AD_CPN=c.clientPlaybackNonce)}a=g.Sn(a.url,b);"1"===(new g.Cj(a)).u.get("ase")?g.iM(a,void 0,void 0,a+"&asr=1"):g.iM(a)};
yY.prototype.Yn=function(a,b,c){if(i0(this.LD,"enable_macro_substitution_on_html5")){var d=this.handle;var e=this.Pa.get(),f=L_(e.u.get(),b);f?b=x0(e,y0(f),f,void 0,c):(eA("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});d.call(this,a,b)}else this.handle(a,{})};zY.prototype.Bm=function(){return"adPingingEndpoint"};
zY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.wr.send(a,b,c)};
zY.prototype.Yn=function(a,b,c){z0(this.Pa.get(),a,b,void 0,c)};AY.prototype.Bm=function(){return"changeEngagementPanelVisibilityAction"};
AY.prototype.handle=function(a){this.G.Ka("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
AY.prototype.Yn=function(a){this.handle(a)};BY.prototype.Bm=function(){return"loggingUrls"};
BY.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.jk.send(d.baseUrl,b,c,d.headers)};
BY.prototype.Yn=function(a,b,c){a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,i0(this.LD,"enable_macro_substitution_on_html5")?z0(this.Pa.get(),d.baseUrl,b,d.headers,c):z0(this.Pa.get(),d.baseUrl,b,d.headers)};g.u(JSa,g.K);CY.prototype.get=function(){return this.value};
g.u(DY,CY);DY.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.u(EY,CY);EY.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.u(FY,CY);FY.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.u(GY,CY);GY.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.u(HY,CY);HY.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.u(IY,CY);IY.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.u(JY,CY);JY.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.u(KY,CY);KY.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.u(LY,CY);LY.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.u(MY,CY);MY.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.u(NY,CY);NY.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.u(OY,CY);OY.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.u(PY,CY);PY.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.u(QY,CY);QY.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.u(RY,CY);RY.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.u(SY,CY);SY.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.u(TY,CY);TY.prototype.getType=function(){return"metadata_type_content_cpn"};
g.u(UY,CY);UY.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.u(VY,CY);VY.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.u(WY,CY);WY.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.u(XY,CY);XY.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.u(YY,CY);YY.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.u(ZY,CY);ZY.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.u($Y,CY);$Y.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.u(aZ,CY);aZ.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.u(bZ,CY);bZ.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.u(cZ,CY);cZ.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.u(dZ,CY);dZ.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.u(eZ,CY);eZ.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.u(fZ,CY);fZ.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.u(gZ,CY);gZ.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.u(hZ,CY);hZ.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.u(iZ,CY);iZ.prototype.getType=function(){return"metadata_type_cue_point"};
g.u(jZ,CY);jZ.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.u(kZ,CY);kZ.prototype.getType=function(){return"metadata_type_player_vars"};
g.u(lZ,CY);lZ.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.u(mZ,CY);mZ.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.u(nZ,CY);nZ.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.u(oZ,CY);oZ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.u(pZ,CY);pZ.prototype.getType=function(){return"metadata_type_dai"};
g.u(qZ,CY);qZ.prototype.getType=function(){return"metadata_type_ad_intro"};
g.u(rZ,CY);rZ.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.u(sZ,CY);sZ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.u(tZ,CY);tZ.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.u(uZ,CY);uZ.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.u(vZ,CY);vZ.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.u(wZ,CY);wZ.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.u(xZ,CY);xZ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.u(yZ,CY);yZ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.u(zZ,CY);zZ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.u(AZ,CY);AZ.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.u(BZ,CY);BZ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.u(CZ,CY);CZ.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.u(DZ,CY);DZ.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.u(EZ,CY);EZ.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.u(FZ,CY);FZ.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};var YSa=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.u(GZ,g.K);g.k=GZ.prototype;g.k.SH=function(a,b){return this.j.SH(a,b)};
g.k.Qi=function(a,b){H_(this.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.r(this.Md),d=c.next();!d.done;d=c.next())d.value.Qi(a,b)};
g.k.Vf=function(a){if(JZ(this.j,a)){KJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Vf(a);for(var b=g.r(this.Md),c=b.next();!c.done;c=b.next())c.value.Vf(a);LSa(this,a)}};
g.k.Wf=function(a){if(JZ(this.j,a)){KJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Wf(a);for(var b=g.r(this.Md),c=b.next();!c.done;c=b.next())c.value.Wf(a);JZ(this.j,a)&&KZ(this.j,a).D&&HZ(this,a,!1)}};
g.k.zD=function(a){KJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);JZ(this.j,a)&&(this.j.zD(a),HZ(this,a,!1))};
g.k.Kc=function(a,b){if(JZ(this.j,a)){LZ(this.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Md),d=c.next();!d.done;d=c.next())d.value.Kc(a,b)}};
g.k.hd=function(a,b,c){if(JZ(this.j,a)){LZ(this.dc,BSa(c),a,b);this.j.hd(a,b);for(var d=g.r(this.Md),e=d.next();!e.done;e=d.next())e.value.hd(a,b,c);(c=XZ(this.j,a))&&b.layoutId===c.layoutId&&VSa(this,a,!1)}};
g.k.eg=function(a,b,c){eA(c,a,b,void 0,c.yr);HZ(this,a,!0)};
g.k.ea=function(){var a=XSa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())HZ(this,b.value,!1);g.K.prototype.ea.call(this)};WSa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.u(MZ,Za);g.u($Z,g.K);g.k=$Z.prototype;g.k.SH=function(a,b){b=WZ(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.k.Th=function(a){a=KZ(this,a);"not_scheduled"!==a.j&&YZ(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.By=function(a){a=KZ(this,a);a.C="fill_requested";a.J.By()};
g.k.Vf=function(a){a=KZ(this,a);"enter_requested"!==a.j&&YZ(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.zD=function(a){KZ(this,a).C="fill_canceled"};
g.k.Wf=function(a){a=KZ(this,a);"exit_requested"!==a.j&&YZ(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.hd=function(a,b){a=KZ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&YZ(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.u(c_,g.K);c_.prototype.B=function(){return this.u};g.u(d_,g.K);d_.prototype.get=function(){this.isDisposed()&&eA("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};e_.prototype.executeCommand=function(a,b){OK(this.j(),a,b)};
e_.prototype.Ff=function(a,b){aEa(this.j(),a,b)};g.u(G_,g.K);g.u(J_,g.K);J_.prototype.onCueRangeEnter=function(){};
J_.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Tb.get().removeCueRange(a),Zz(this.Qb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Ab.get();d=hA(d.Va.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Mb:c.Mb?xUa(c.slotId,d,c.Mb):void 0,Vb:yUa(c.slotId,d,c.Vb),Zb:yUa(c.slotId,d,c.Zb)})]},c.slotId))};
J_.prototype.Pi=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Tb.get().removeCueRange(b);this.j.clear()};
J_.prototype.vl=function(){};g.u(K_,g.K);g.k=K_.prototype;g.k.Th=function(){};
g.k.vj=function(a){var b=this;g.Cv(g.Ev(),function(){var c=b.j.get(a);c&&eA("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.t(c)).map(function(d){return d.layoutType})})},0)};
g.k.Vf=function(){};
g.k.uj=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.sj=function(a,b){this.yj.has(a)&&this.yj.get(a)===b&&eA("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)):eA("Trying to unscheduled a Layout that was not scheduled.",a,b)}else eA("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Kc=function(a,b){this.yj.set(a,b)};
g.k.hd=function(a){this.yj.delete(a)};
g.k.Qi=function(){};Z_.prototype.clone=function(a){var b=this;return new Z_(function(){return b.triggerId},a)};$_.prototype.clone=function(a){var b=this;return new $_(function(){return b.triggerId},a)};a0.prototype.clone=function(a){var b=this;return new a0(function(){return b.triggerId},a)};b0.prototype.clone=function(a){var b=this;return new b0(function(){return b.triggerId},a)};c0.prototype.clone=function(a){var b=this;return new c0(function(){return b.triggerId},a)};d0.prototype.clone=function(a){var b=this;return new d0(function(){return b.triggerId},a)};g.u(h0,g.K);h0.prototype.logEvent=function(a){H_(this,a)};
h0.prototype.u=function(){var a=this.Da.get();return(g.cG(a.G.R())?a.G.R().K("html5_enable_ads_client_monitoring_log_tv"):!0)&&!this.Da.get().G.R().K("html5_disable_client_tmp_logs")};g.u(j0,h0);j0.prototype.u=function(){var a=h0.prototype.u.call(this),b=i0(this.Da.get(),"disable_pacf_logging_for_memory_limited_tv")?this.j.get().u():!0;var c=this.Da.get();c=g.cG(c.G.R())?c.G.R().K("use_session_based_sampling")?c.j:c.G.R().K("sample_pacf_events_on_tv")?Math.random()<g.TE(c.G.R().experiments,"tv_pacf_logging_sample_rate"):!0:!0;return a&&b&&c};k0.prototype.clear=function(){this.j.clear()};g.u(l0,g.K);g.k=l0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.Pi=function(a,b,c,d,e,f,h){if(""===a)eA("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.G.R().K("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ba.get().Pi(a,b,c,d,e,f,h);this.Qa.get().Pi(a,b,c,d,e,f,h);var l;null==(l=this.Ie)||l.get().Pi(a,b,c,d,e,f,h);this.u.Pi(a,b,c,d,e,f,h);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.Pi(a,b,c,d,e,f,h)}};
g.k.zJ=function(){this.j&&this.vl(this.j)};
g.k.vl=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.vl(a)};g.u(m0,g.K);m0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?eA("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new IUa(a,b,c,d,f),this.j.set(a.id,{Od:a,listener:e,Fl:h}),this.G.le([a],h))};
m0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?GUa(this,b):eA("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
m0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
m0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.u(IUa,g.sA);n0.prototype.lk=function(a){this.G.lk(a)};
n0.prototype.Ka=function(a){this.G.Ka.apply(this.G,[a].concat(g.t(g.za.apply(1,arguments))))};g.k=r0.prototype;g.k.Mf=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.G.R().K("html5_dai_enable_active_view_creating_completed_adblock"),cka(a,b),{};b=pCa(b);if(null===b||this.G.R().K("enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return{};var c=this.G.Fc();c=c&&(this.G.R().K("enable_server_stitched_dai")||2===c.getPlayerType())&&pJ(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ba.get().isFullscreen()};return Rn(b,a,c)};
g.k.Iz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Iz()};
g.k.Hz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Hz()};
g.k.Jz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Jz()};
g.k.Fz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Fz()};
g.k.Gz=function(a){var b;null==(b=this.j.get(a.queryId))||b.Gz()};g.u(v0,cJ);v0.prototype.j=function(){return this.B()};
v0.prototype.u=function(){return this.C()};w0.prototype.Hi=function(){var a=this.G.Fc();return a&&(a=a.Hi(1))?a:null};
w0.prototype.Qh=function(a,b){"string"===typeof b?this.G.getVideoData(1).hK(a,b):this.G.getVideoData(1).ma(a,b)};g.u(D0,g.K);g.k=D0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.Pi=function(){this.qG.clear();this.NI=null;this.G.R().K("html5_clear_timeline_storage_killswitch")||this.zd.get().clear()};
g.k.vl=function(){};
g.k.Gf=function(a){var b=this.G.getVideoData(a);return b?QUa(this,b,a||this.G.getPresentingPlayerType(!0)):null};
g.k.L2=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Qh("ads_ssm_vdc_s",{pt:c,dvt:a});(p0(this.Da.get())||this.Da.get().G.R().K("html5_debug_client_stitched"))&&"dataloaded"!==a||RUa(this,b,c)};
g.k.b2=function(a,b){void 0!==a&&(this.NI=a,void 0===b?eA("Expected ad video start time on SS video changed"):this.qG.set(a,b));var c=this.G.getPresentingPlayerType(!0),d=this.G.getVideoData(c);this.G.getVideoData(1).ma("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:b});d?RUa(this,d,c):eA("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.ea=function(){this.listeners.length=0;this.Pr=null;g.K.prototype.ea.call(this)};
g.k.Qh=function(a,b){this.G.getVideoData(1).ma(a,b)};g.u(E0,g.K);g.k=E0.prototype;g.k.Pi=function(){var a=this;this.Sr=ag(function(){a.G.isDisposed()||a.G.rf("ad",1)})};
g.k.vl=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.OQ=function(){};
g.k.playVideo=function(){this.G.playVideo()};
g.k.pauseVideo=function(){this.G.pauseVideo()};
g.k.resumeVideo=function(a){this.po(a)&&this.G.playVideo()};
g.k.po=function(a){return 2===this.G.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Qa.get().NI;return 2!==a||b||null===c?this.G.getCurrentTime(a,b):F0(this,c)};
g.k.getVolume=function(){return this.G.getVolume()};
g.k.isMuted=function(){return this.G.isMuted()};
g.k.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.G.getPlayerState(a)};
g.k.isFullscreen=function(){return this.G.isFullscreen()};
g.k.isAtLiveHead=function(){return this.G.isAtLiveHead()};
g.k.Kw=function(a){this.G.Kw(a)};
g.k.D1=function(){var a=this.G.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.r(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.Oi(b)}else if(1===a&&q0(this.Da.get()))for(c=g.r(this.RB),a=c.next();!a.done;a=c.next())a.value.OQ(b)};
g.k.s1=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.tj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Ug=function(){for(var a=this.G.wf(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ug(a)};
g.k.xb=function(){for(var a=this.G.Za().Ji(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.pj(a)};
g.k.dk=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.dk(a)};g.u(WUa,g.K);I0.prototype.addListener=function(a){this.listeners.add(a)};
I0.prototype.removeListener=function(a){this.listeners.delete(a)};K0.prototype.By=function(){var a=this;ZUa(this.j,function(){var b=lY(a.slot.Aa,"metadata_type_ad_break_request_data");return a.Qe.get().fetch({rT:b.getAdBreakUrl,pO:new g.sA(b.YR,b.XR),gy:lY(a.slot.Aa,"metadata_type_cue_point")})},function(){aVa(a)},function(b){b=b.In;
2<=b.length&&eA("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(h=c.renderer)||!h.instreamVideoAdRenderer)})||aVa(a)})};
K0.prototype.FG=function(){$Ua(this.j)};L0.prototype.By=function(){var a=this;ZUa(this.j,function(){var b=lY(a.slot.Aa,"metadata_type_ad_break_request_data");return a.Qe.get().fetch({rT:b.getAdBreakUrl,pO:new g.sA(b.YR,b.XR)})})};
L0.prototype.FG=function(){$Ua(this.j)};M0.prototype.By=function(){NSa(this.callback,this.slot,lY(this.slot.Aa,"metadata_type_fulfilled_layout"))};
M0.prototype.FG=function(){IZ(this.callback,this.slot,new BA("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};O0.prototype.Se=function(a,b){return N0(b,{me:["metadata_type_fulfilled_layout"]})?new M0(a,b):this.j(a,b)};g.u(P0,O0);
P0.prototype.j=function(a,b){if(N0(b,{me:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new K0(a,b,this.Qe,this.jb,this.vb,this.Da,this.De);if(N0(b,{me:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new L0(a,b,this.Qe,this.jb,this.vb,this.Da);throw new BA("Unsupported slot with type: "+b.slotType+" and client metadata: "+mY(b.Aa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(Q0,O0);Q0.prototype.j=function(a,b){throw new BA("Unsupported slot with type: "+b.slotType+" and client metadata: "+mY(b.Aa)+" in DefaultFulfillmentAdapterFactory.");};g.k=bVa.prototype;g.k.Xc=function(){return this.slot};
g.k.yb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.eg(this.slot,a,new MZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=lY(a.Aa,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Kc(this.slot,a),Jua(this.j,this.slot,b)):eA("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Yf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new MZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.hd(this.slot,a,b)};S0.prototype.Se=function(a,b,c,d){if(R0(d,{me:["metadata_type_ad_break_response_data"],yf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new bVa(a,c,d,this.j);throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};T0.prototype.Mf=function(a,b){b=void 0===b?!1:b;var c=(this.B.get(a)||[]).concat();if(b=b&&PI(a)){var d=this.B.get(b);d&&c.push.apply(c,g.t(d))}X0(this,a,c);this.j.add(a);b&&this.j.add(b)};g.k=dVa.prototype;g.k.Xc=function(){return this.slot};
g.k.yb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new MZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Kc(this.slot,a),W0(this.u,"impression"),o1(this.j,a.layoutId))};
g.k.Yf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new MZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.hd(this.slot,a,b)};$0.prototype.Se=function(a,b,c,d){if(R0(d,eVa()))return new dVa(a,c,d,this.Pa,this.j);throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(b1,g.cz);g.k=b1.prototype;g.k.Xc=function(){return this.u.slot};
g.k.yb=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.fI=function(){};
g.k.dI=function(){};
g.k.cI=function(){};
g.k.FC=function(){};
g.k.startRendering=function(a){var b=this;a1(this.u,a,function(){return void b.tE()})};
g.k.tE=function(){this.B.get().tE(this.j)};
g.k.Yf=function(a,b){var c=this;a1(this.u,a,function(){var d=c.B.get();IVa(d,c.j,3);c.j=[];c.callback.hd(c.slot,a,b)})};
g.k.ea=function(){this.B.get().removeListener(this);g.cz.prototype.ea.call(this)};
g.da.Object.defineProperties(b1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.u(gVa,GI);g.u(e1,b1);g.k=e1.prototype;g.k.Ag=function(a,b){d1("action-companion",a,this.J.get().yj,this.Pa.get(),this.C,this.D,this.Xc(),this.yb(),b)};
g.k.startRendering=function(a){c1(this.I,this.Xc(),this.yb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new gVa(b,c,d,e,f)},this.j);
b1.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?W0(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Pa.get().Hi():eA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.ea=function(){this.gf().Md.delete(this);b1.prototype.ea.call(this)};g.u(f1,b1);f1.prototype.init=function(){b1.prototype.init.call(this);var a=lY(this.layout.Aa,"metadata_type_ad_action_interstitial_renderer"),b=V0(this.C);this.j.push(new xJ(a,b,this.layout.layoutId,{adsClientData:this.layout.vc},!0,!0))};
f1.prototype.startRendering=function(a){b1.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
f1.prototype.Ag=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=lY(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&lVa(a,this.Xc(),this.layout)}};
f1.prototype.ea=function(){b1.prototype.ea.call(this)};g.u(g1,b1);g.k=g1.prototype;g.k.init=function(){b1.prototype.init.call(this);var a=lY(this.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.vc},c=!lY(this.layout.Aa,"metadata_type_player_bytes_callback").UC;this.j.push(new UL(a,this.layout.layoutId,lY(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.kq=function(){this.C||this.Ba.get().resumeVideo(2)};
g.k.startRendering=function(a){b1.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.D.Su=this};
g.k.Yf=function(a,b){b1.prototype.Yf.call(this,a,b);sXa(this.D,this)};
g.k.Ag=function(a){if(qUa(this.I.get(),this.J))switch(a){case "visit-advertiser":this.Pa.get().G.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.Ba.get().resumeVideo(2);break;case "ad-info-icon-button":(this.C=this.Ba.get().po(2))||this.Ba.get().pauseVideo();break;case "visit-advertiser":this.Ba.get().pauseVideo();lY(this.layout.Aa,"metadata_type_player_bytes_callback").eE();
break;case "skip-button":if(a=lY(this.layout.Aa,"metadata_type_player_bytes_callback"),a.UC)a.Rz(this.Xc(),this.layout);else{var b;(a=null==(b=lY(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&lVa(a,this.Xc(),this.layout)}}};
g.k.ea=function(){b1.prototype.ea.call(this)};i1.prototype.Se=function(a,b,c,d){if(a=h1(a,c,d,this.Xb,this.Ba,this.Pa,this.u,this.j))return a;throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u(j1,g.K);g.k=j1.prototype;g.k.init=function(){var a=lY(this.yb().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Up()};
g.k.release=function(){var a=lY(this.yb().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.zq()};
g.k.startRendering=function(a){a.layoutId!==this.yb().layoutId?this.callback.eg(this.Xc(),a,new MZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.yb().layoutId+("and LayoutType: "+this.yb().layoutType))):(this.Ba.get().addListener(this),this.gf().Md.add(this),this.Da.get().G.R().experiments.fb("html5_load_empty_player_in_media_break_sub_lra")||UUa(this.Ba.get()),this.Nd.get().PK(),this.Gq(a))};
g.k.Yf=function(a,b){this.mI=!0;this.Hq(a,b);this.Ba.get().G.Io();this.oe.get().G.cueVideoByPlayerVars({},2);a=s0(this.Ba.get(),1);g.W(a,4)&&!g.W(a,2)&&this.Ba.get().playVideo();this.Ba.get().removeListener(this);this.mI&&this.jQ()};
g.k.hd=function(a,b){b.layoutId===this.yb().layoutId&&(this.mI=!1,this.gf().Md.delete(this))};
g.k.tj=function(a,b){if(a.state.isError()){var c,d;this.eg(null==(c=a.state.getData())?void 0:c.errorCode,new MZ("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.jR(a)};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.dk=function(){};g.u(k1,j1);g.k=k1.prototype;g.k.Xc=function(){return this.slot};
g.k.yb=function(){return this.layout};
g.k.Up=function(){if(1>=this.u.length)throw new BA("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=lY(this.yb().Aa,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),QZ(this.B,this.slot,b.yb()),RZ(this.B,this.slot,b.yb())};
g.k.zq=function(){var a=lY(this.yb().Aa,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,LJ(this.B,this.slot,b.yb()),b.release()};
g.k.Zs=function(a,b){var c=this.u[this.j];b.layoutId!==l1(c,a,b)?eA("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Zs()};
g.k.Ct=function(a,b){var c=this.u[this.j];b.layoutId!==l1(c,a,b)?eA("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Ct()};
g.k.Rz=function(a,b){var c=this.u[this.j];b.layoutId!==l1(c,a,b)?eA("onSkipRequested for a PlayerBytes layout that is not currently active",c.Xc(),c.yb(),{requestingSlot:a,requestingLayout:b}):n1(this,c.Xc(),c.yb(),"skipped")};
g.k.Gq=function(){-1===this.j&&m1(this,this.j+1)};
g.k.s2=function(a,b){SZ(this.B,a,b)};
g.k.Hq=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.Yf(a.yb(),b),this.D=function(){c.callback.hd(c.slot,c.layout,b)}):this.callback.hd(this.slot,this.layout,b)};
g.k.Kc=function(a,b){var c=this.u[this.j];c&&c.Kc(a,b)};
g.k.hd=function(a,b,c){j1.prototype.hd.call(this,a,b,c);var d=this.u[this.j];d&&d.hd(a,b,c)};
g.k.jQ=function(){var a=this.u[this.j];a&&a.EC()};
g.k.Oi=function(a){var b=this.u[this.j];b&&b.Oi(a)};
g.k.jR=function(a){var b=this.u[this.j];b&&b.tj(a)};
g.k.eg=function(a,b){-1===this.j&&(this.callback.Kc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.Cz(a,b):eA("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.yb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.k.Ug=function(a){var b=this.u[this.j];b&&b.Ug(a)};
g.k.pj=function(a){var b=this.u[this.j];b&&b.pj(a)};
g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.k.u2=function(a,b,c){n1(this,a,b,c)};
g.k.t2=function(a,b){n1(this,a,b,"error")};g.u(s1,g.K);g.k=s1.prototype;g.k.Xc=function(){return this.slot};
g.k.yb=function(){return this.layout};
g.k.init=function(){var a=lY(this.layout.Aa,"metadata_type_video_length_seconds"),b=lY(this.layout.Aa,"metadata_type_active_view_traffic_type");MI(this.layout.Rb)&&t0(this.Db.get(),this.layout.layoutId,b,a,this);B0(this.Pa.get(),this);this.Up()};
g.k.release=function(){MI(this.layout.Rb)&&u0(this.Db.get(),this.layout.layoutId);C0(this.Pa.get(),this);this.zq()};
g.k.Zs=function(){};
g.k.Ct=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new MZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.j="rendering_start_requested",TBa(this.df.get(),1)?(this.D(-1),this.Gq(a),this.Yu(!1)):this.Cz("ui_unstable",new MZ("Failed to render media layout because ad ui unstable.")))};
g.k.Kc=function(a,b){if(b.layoutId===this.layout.layoutId){this.j="rendering";this.C=this.Ba.get().isMuted()||0===this.Ba.get().getVolume();t1(this,"impression");t1(this,"start");if(this.Ba.get().isMuted()){v1(this,"mute");var c;a=(null==(c=r1(this))?void 0:c.muteCommands)||[];this.Hb.get().Ff(a,this.layout.layoutId)}if(this.Ba.get().isFullscreen()){this.Mf("fullscreen");var d;c=(null==(d=r1(this))?void 0:d.fullscreenCommands)||[];this.Hb.get().Ff(c,this.layout.layoutId)}this.Nd.get().yK();this.D(1);
this.XQ();var e;d=(null==(e=r1(this))?void 0:e.impressionCommands)||[];this.Hb.get().Ff(d,this.layout.layoutId)}};
g.k.Cz=function(a,b){this.ra={OE:3,MA:"load_timeout"===a?402:400,errorMessage:b.message};t1(this,"error");var c;a=(null==(c=r1(this))?void 0:c.errorCommands)||[];this.Hb.get().Ff(a,this.layout.layoutId);this.callback.eg(this.slot,this.layout,b)};
g.k.EC=function(){this.J()};
g.k.iP=function(){if("rendering"===this.j){v1(this,"pause");var a,b=(null==(a=r1(this))?void 0:a.pauseCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId);this.D(2)}};
g.k.jP=function(){if("rendering"===this.j){v1(this,"resume");var a,b=(null==(a=r1(this))?void 0:a.resumeCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId)}};
g.k.Yf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.eg(this.slot,a,new MZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if("rendering_stop_requested"!==this.j){this.j="rendering_stop_requested";this.N=b;if(i0(this.Da.get(),"html5_track_termination_during_request"))switch(b){case "normal":t1(this,"complete");break;case "skipped":t1(this,"skip");break;case "abandoned":Z0(this.u,
"impression")&&t1(this,"abandon")}this.Hq(a,b)}};
g.k.hd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.j="not_rendering",this.N=void 0,(a="normal"!==c||this.position+1===this.Y)&&this.Yu(a),this.YQ(c),this.D(0),c){case "abandoned":if(Z0(this.u,"impression")){i0(this.Da.get(),"html5_track_termination_during_request")||t1(this,"abandon");var d,e=(null==(d=r1(this))?void 0:d.abandonCommands)||[];this.Hb.get().Ff(e,this.layout.layoutId)}break;case "normal":i0(this.Da.get(),"html5_track_termination_during_request")||t1(this,"complete");
d=(null==(e=r1(this))?void 0:e.completeCommands)||[];this.Hb.get().Ff(d,this.layout.layoutId);break;case "skipped":i0(this.Da.get(),"html5_track_termination_during_request")||t1(this,"skip");var f;d=(null==(f=r1(this))?void 0:f.skipCommands)||[];this.Hb.get().Ff(d,this.layout.layoutId)}};
g.k.Hv=function(){return this.layout.layoutId};
g.k.EH=function(){return this.ra};
g.k.tj=function(a){if("not_rendering"!==this.j){this.W||(a=new g.sJ(a.state,new g.$J),this.W=!0);var b=2===this.Ba.get().getPresentingPlayerType();"rendering_start_requested"===this.j?b&&p1(a)&&this.V():b?g.uJ(a,2)?this.XM():(p1(a)?this.D(1):g.uJ(a,4)&&!g.uJ(a,2)&&this.iP(),0>tJ(a,4)&&!(0>tJ(a,2))&&this.jP()):this.EC()}};
g.k.Iz=function(){if("rendering"===this.j){W0(this.u,"active_view_measurable");var a,b=(null==(a=r1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId)}};
g.k.Hz=function(){if("rendering"===this.j){W0(this.u,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=r1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId)}};
g.k.Jz=function(){if("rendering"===this.j){W0(this.u,"active_view_viewable");var a,b=(null==(a=r1(this))?void 0:a.activeViewViewableCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId)}};
g.k.Fz=function(){if("rendering"===this.j){W0(this.u,"audio_audible");var a,b=(null==(a=r1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId)}};
g.k.Gz=function(){if("rendering"===this.j){W0(this.u,"audio_measurable");var a,b=(null==(a=r1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId)}};
g.k.Yu=function(a){this.Nd.get().Yu(lY(this.layout.Aa,"metadata_type_ad_placement_config").kind,a,this.position,this.Y,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.j)if(a){this.Mf("fullscreen");var b,c=(null==(b=r1(this))?void 0:b.fullscreenCommands)||[];this.Hb.get().Ff(c,this.layout.layoutId)}else this.Mf("end_fullscreen"),b=(null==(c=r1(this))?void 0:c.endFullscreenCommands)||[],this.Hb.get().Ff(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.j)if(this.Ba.get().isMuted()){v1(this,"mute");var a,b=(null==(a=r1(this))?void 0:a.muteCommands)||[];this.Hb.get().Ff(b,this.layout.layoutId)}else v1(this,"unmute"),a=(null==(b=r1(this))?void 0:b.unmuteCommands)||[],this.Hb.get().Ff(a,this.layout.layoutId)};
g.k.Ug=function(){};
g.k.pj=function(){};
g.k.dk=function(){};
g.k.Mf=function(a){i0(this.Da.get(),"av_call_once_per_event_pair")?this.u.Mf(a,!this.C):(this.u.Mf(a),this.C||(a=PI(a))&&this.u.Mf(a))};g.u(w1,s1);g.k=w1.prototype;g.k.Up=function(){};
g.k.zq=function(){var a=this.Pa.get();a.xE===this&&(a.xE=null);this.timer.stop()};
g.k.Gq=function(){UUa(this.Ba.get());this.Pa.get().xE=this;lB("pbp")||lB("pbs")||mB("pbp");lB("pbp","watch")||lB("pbs","watch")||mB("pbp",void 0,"watch");this.V()};
g.k.XQ=function(){rVa(this)};
g.k.XM=function(){};
g.k.Zs=function(){this.timer.stop();s1.prototype.iP.call(this)};
g.k.Ct=function(){rVa(this);s1.prototype.jP.call(this)};
g.k.Gv=function(){return lY(this.yb().Aa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Hq=function(){this.timer.stop()};
g.k.Wb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.Ql+=b;this.Ql>=this.Gv()?(this.Ql=this.Gv(),u1(this,this.Ql/1E3,!0),x1(this,this.Ql),this.J()):(u1(this,this.Ql/1E3),x1(this,this.Ql))};
g.k.YQ=function(){};
g.k.Oi=function(){};g.u(y1,s1);g.k=y1.prototype;g.k.Up=function(){lY(this.yb().Aa,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=lY(this.yb().Aa,"metadata_type_shrunken_player_bytes_config")};
g.k.zq=function(){lY(this.yb().Aa,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.Tb.get().removeCueRange(this.B);this.B=void 0;this.I.dispose()};
g.k.Gq=function(a){var b=lY(a.Aa,"metadata_type_ad_video_id"),c=lY(a.Aa,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.qf.get().G.R().Y.add(b,{Xx:c});(b=lY(a.Aa,"metadata_type_sodar_extension_data"))&&XUa(this.ue.get(),b);VUa(this.Ba.get(),!1);(b=this.Da.get().G.R().experiments.fb("html5_load_ads_instead_of_cue"))?(c=this.oe.get(),a=lY(a.Aa,"metadata_type_player_vars"),c.G.loadVideoByPlayerVars(a,!1,2)):(c=this.oe.get(),a=lY(a.Aa,"metadata_type_player_vars"),c.G.cueVideoByPlayerVars(a,
2));this.I.start();b||this.oe.get().G.playVideo(2)};
g.k.XQ=function(){this.I.stop();this.B="adcompletioncuerange:"+this.yb().layoutId;this.Tb.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Qa.get().Gf(2))?void 0:a.clientPlaybackNonce)||"")||eA("Media layout confirmed started, but ad CPN not set.");this.fd.get().Ka("onAdStart",this.adCpn)};
g.k.XM=function(){this.J()};
g.k.Gv=function(){var a;return null==(a=this.Qa.get().Gf(2))?void 0:a.playbackDurationMs};
g.k.eE=function(){this.u.Mf("clickthrough")};
g.k.Hq=function(){this.I.stop();VUa(this.Ba.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ba.get().Kw(!1)};
g.k.onCueRangeEnter=function(a){a!==this.B?eA("Received CueRangeEnter signal for unknown layout.",this.Xc(),this.yb(),{cueRangeId:a}):(this.Tb.get().removeCueRange(this.B),this.B=void 0,a=lY(this.yb().Aa,"metadata_type_video_length_seconds"),u1(this,a,!0),i0(this.Da.get(),"av_call_early_terminal_event")?t1(this,"complete"):W0(this.u,"complete"))};
g.k.YQ=function(a){"abandoned"!==a&&this.fd.get().Ka("onAdComplete");this.fd.get().Ka("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Oi=function(a){"rendering"===this.j&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ba.get().Kw(!0),u1(this,a))};g.u(z1,j1);g.k=z1.prototype;g.k.Xc=function(){return this.j.Xc()};
g.k.yb=function(){return this.j.yb()};
g.k.Up=function(){this.j.init()};
g.k.zq=function(){this.j.release()};
g.k.Zs=function(){this.j.Zs()};
g.k.Ct=function(){this.j.Ct()};
g.k.Rz=function(a,b){eA("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Xc(),this.yb(),{requestingSlot:a,requestingLayout:b})};
g.k.Gq=function(a){this.j.startRendering(a)};
g.k.Hq=function(a,b){this.j.Yf(a,b)};
g.k.Kc=function(a,b){this.j.Kc(a,b)};
g.k.hd=function(a,b,c){j1.prototype.hd.call(this,a,b,c);this.j.hd(a,b,c);b.layoutId===this.yb().layoutId&&this.Nd.get().Ow()};
g.k.jQ=function(){this.j.EC()};
g.k.Oi=function(a){this.j.Oi(a)};
g.k.jR=function(a){this.j.tj(a)};
g.k.eg=function(a,b){this.j.Cz(a,b)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Ug=function(a){this.j.Ug(a)};
g.k.pj=function(a){this.j.pj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};A1.prototype.Se=function(a,b,c,d){if(a=uVa(a,b,c,d,this.gf,this.j,this.Pa,this.Db,this.ue,this.oe,this.Qa,this.Ba,this.Tb,this.Nd,this.fd,this.df,this.Hb,this.qf,this.Da))return a;throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.u(B1,g.K);g.k=B1.prototype;g.k.ZQ=function(a){if(!this.j){var b;null==(b=this.De)||b.get().rq(a.identifier);return!1}vVa(this,this.j,a);return!0};
g.k.RQ=function(){};
g.k.Pi=function(a){this.j&&this.j.contentCpn!==a&&(eA("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.vl=function(a){this.j&&this.j.contentCpn!==a&&eA("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.k.ea=function(){g.K.prototype.ea.call(this);this.j=null};g.u(C1,g.K);g.k=C1.prototype;g.k.Kc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&CJ(b,this.B)){var d=this.Qa.get().Gf(2),e=this.j(b,d||void 0,this.Da.get().G.R().experiments.fb("enable_post_ad_perception_survey_in_tvhtml5"));e?Zz(this.Qb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[AUa(c.Ab.get(),e.contentCpn,e.Tw,function(h){return c.u(h.slotId,"core",e,rY(c.vb.get(),h))},e.BP)];
e.instreamAdPlayerUnderlayRenderer&&LUa(c.Da.get())&&f.push(wVa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):eA("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.Vf=function(){};
g.k.uj=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.hd=function(){};var y2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=AVa.prototype;g.k.init=function(){};
g.k.Xc=function(){return this.slot};
g.k.aC=function(){this.callback.Vf(this.slot)};
g.k.cC=function(){this.callback.Wf(this.slot)};
g.k.release=function(){};E1.prototype.Se=function(a,b){return new AVa(a,b)};g.k=BVa.prototype;g.k.init=function(){};
g.k.Xc=function(){return this.slot};
g.k.aC=function(){G0(this.Ba.get(),"ad-showing");this.callback.Vf(this.slot)};
g.k.cC=function(){this.callback.Wf(this.slot);H0(this.Ba.get(),"ad-showing")};
g.k.release=function(){};g.k=CVa.prototype;g.k.init=function(){};
g.k.Xc=function(){return this.slot};
g.k.aC=function(){G0(this.Ba.get(),"ad-showing");G0(this.Ba.get(),"ad-interrupting");this.u=this.Ba.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Vf(this.slot)};
g.k.cC=function(){H0(this.Ba.get(),"ad-showing");H0(this.Ba.get(),"ad-interrupting");var a=this.u?Infinity:this.Ba.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ba.get().G.seekTo(a,void 0,void 0,1);this.callback.Wf(this.slot)};
g.k.release=function(){};g.k=DVa.prototype;g.k.init=function(){};
g.k.Xc=function(){return this.slot};
g.k.aC=function(){G0(this.Ba.get(),"ad-showing");G0(this.Ba.get(),"ad-interrupting");this.callback.Vf(this.slot)};
g.k.cC=function(){this.Ba.get().Sr();H0(this.Ba.get(),"ad-showing");H0(this.Ba.get(),"ad-interrupting");this.callback.Wf(this.slot)};
g.k.release=function(){this.Ba.get().Sr()};F1.prototype.Se=function(a,b){if(aA(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new BVa(a,b,this.Ba);if(b.Mb instanceof I_&&aA(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new CVa(a,b,this.Ba);if(aA(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new DVa(a,b,this.Ba);throw new BA("Unsupported slot with type "+b.slotType+" and client metadata: "+(mY(b.Aa)+" in PlayerBytesSlotAdapterFactory."));};g.u(H1,g.K);H1.prototype.j=function(a){for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof p_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Df===a&&b.push(d)}b.length?TZ(this.MF(),b):eA("Mute requested but no registered triggers can be activated.")};g.u(I1,H1);g.k=I1.prototype;g.k.Ag=function(a,b){if(b)if("survey-submit"===a)EVa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof p_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Df===b&&a.push(d)}a.length&&TZ(this.MF(),a)}else"survey-single-select-answer-button"===a&&EVa(this,b)};
g.k.fI=function(a){H1.prototype.j.call(this,a)};
g.k.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof q_||b instanceof p_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Lb.set(b.triggerId,new G1(a,b,c,d))};
g.k.Ck=function(a){this.Lb.delete(a.triggerId)};
g.k.dI=function(){};
g.k.cI=function(){};
g.k.FC=function(){};g.u(J1,g.K);g.k=J1.prototype;
g.k.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof Z_||b instanceof $_||b instanceof a0||b instanceof b0||b instanceof c0||b instanceof d0||b instanceof N_||b instanceof V_||b instanceof o_||b instanceof x_||b instanceof M_||b instanceof U_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new G1(a,b,c,d);this.Lb.set(b.triggerId,a);b instanceof
c0&&this.D.has(b.hh)&&TZ(this.j(),[a]);b instanceof Z_&&this.B.has(b.hh)&&TZ(this.j(),[a]);b instanceof V_&&this.u.has(b.Df)&&TZ(this.j(),[a])};
g.k.Ck=function(a){this.Lb.delete(a.triggerId)};
g.k.Th=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof c0&&a.slotId===d.trigger.hh&&b.push(d);0<b.length&&TZ(this.j(),b)};
g.k.vj=function(a){this.D.delete(a.slotId);for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof d0&&e.hh===a.slotId&&b.push(d)}0<b.length&&TZ(this.j(),b)};
g.k.uj=function(a){for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof N_&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&TZ(this.j(),b)};
g.k.Vf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof Z_&&a.slotId===d.trigger.hh&&b.push(d);0<b.length&&TZ(this.j(),b)};
g.k.Wf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof $_)a.slotId===d.trigger.hh&&b.push(d);else if(d.trigger instanceof U_){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Df)&&b.push(d)}0<b.length&&TZ(this.j(),b)};
g.k.fk=function(a){for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof a0&&a.slotId===d.trigger.hh&&b.push(d);0<b.length&&TZ(this.j(),b)};
g.k.gk=function(a){for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof b0&&a.slotId===d.trigger.hh&&b.push(d);0<b.length&&TZ(this.j(),b)};
g.k.rj=function(a,b){this.I.add(b.layoutId)};
g.k.sj=function(a,b){this.I.delete(b.layoutId)};
g.k.Kc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Lb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof V_)b.layoutId===e.trigger.Df&&c.push(e);else if(e.trigger instanceof M_){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof U_&&(f=e.trigger,b.layoutId===f.Df&&this.C.has(f.slotId)&&c.push(e));0<c.length&&TZ(this.j(),c)};
g.k.hd=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Lb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof o_&&b.layoutId===e.trigger.Df&&a.push(e),e.trigger instanceof x_){var f=e.trigger;b.layoutId===f.Df&&f.j.includes(c)&&a.push(e)}0<a.length&&TZ(this.j(),a)};
g.k.Qi=function(){};
g.k.Pi=function(){this.C.clear()};
g.k.vl=function(){};g.u(K1,g.K);K1.prototype.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof bA||b instanceof s_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Lb.set(b.triggerId,new G1(a,b,c,d))};
K1.prototype.Ck=function(a){this.Lb.delete(a.triggerId)};
K1.prototype.Pi=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.r(this.Lb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof bA&&l.trigger.Uo===a&&f.push(l);e.call(d,b,g.t(f));b.push.apply(b,g.t(FVa(this.Lb,a,!1,c)));b.length&&TZ(this.j(),b)};
K1.prototype.vl=function(a){var b=[];b.push.apply(b,g.t(FVa(this.Lb,a,!0,!1)));b.length&&TZ(this.j(),b)};g.u(M1,g.K);g.k=M1.prototype;
g.k.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(L1(b))this.Lb.set(b.triggerId,{bundle:new G1(a,b,c,d),Or:e});else if(b instanceof I_||b instanceof W_)N1(this,a,b,c,d,e,b.El.start,b.El.end,b.Uo,b.visible);else if(b instanceof X_)N1(this,a,b,c,d,e,b.El.start,b.El.end,b.Uo,!1);else if(b instanceof T_)N1(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Uo,b.visible);else throw new BA("Incorrect TriggerType: Tried to register trigger of type "+
b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Ck=function(a){var b=this.Lb.get(a.triggerId);b&&this.Tb.get().removeCueRange(b.Or);this.Lb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=GVa(this,a))if(a=this.Lb.get(a))if(g.W(s0(this.Ba.get()),32))this.j.add(a.Or);else{var c=null==a?void 0:a.bundle.trigger;b=b?c instanceof Q_:c instanceof O_;(c instanceof I_||c instanceof W_||c instanceof T_||c instanceof P_||b)&&TZ(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=GVa(this,a))if(a=this.Lb.get(a))this.j.delete(a.Or),a.bundle.trigger instanceof X_&&TZ(this.u(),[a.bundle])};
g.k.tj=function(a){if(0>tJ(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Kc=function(a,b){a=g.r(this.Lb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.bundle.trigger;c=c.Or;if(L1(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ba.get().getCurrentTimeSec(1,!1);d instanceof P_?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.Tb.get().addCueRange(c,d,e,!1,this)}}};
g.k.hd=function(a,b,c){var d=this;a={};for(var e=g.r(this.Lb.values()),f=e.next();!f.done;a={jx:a.jx,Bn:a.Bn},f=e.next())f=f.value,a.Bn=f.bundle.trigger,a.jx=f.Or,L1(a.Bn)&&a.Bn.layoutId===b.layoutId?HUa(this.Tb.get(),a.jx):a.Bn instanceof W_&&a.Bn.layoutId===b.layoutId&&"user_cancelled"===c&&(this.Tb.get().removeCueRange(a.jx),g.Cv(g.Ev(),function(h){return function(){d.Tb.get().addCueRange(h.jx,h.Bn.El.start,h.Bn.El.end,h.Bn.visible,d)}}(a)))};
g.k.Qi=function(){};
g.k.Oi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ug=function(){};
g.k.pj=function(){};
g.k.onVolumeChange=function(){};
g.k.dk=function(){};g.u(O1,g.K);g.k=O1.prototype;g.k.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof t_||b instanceof Y_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Lb.set(b.triggerId,new G1(a,b,c,d))};
g.k.Ck=function(a){this.Lb.delete(a.triggerId)};
g.k.Bp=function(){};
g.k.ym=function(){};
g.k.Kc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?eA("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)};
g.k.hd=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?eA("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.k.Wf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?eA("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.LB=function(){null!=this.j&&o1(this,this.j)};
g.k.fC=function(a){if(null===this.u){for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof Y_&&d.trigger.slotId===a&&b.push(d);b.length&&TZ(this.B(),b)}};g.u(P1,g.K);g.k=P1.prototype;g.k.Qi=function(a,b){for(var c=[],d=g.r(this.Lb.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&&TZ(this.j(),c)};
g.k.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof rUa))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Lb.set(b.triggerId,new G1(a,b,c,d))};
g.k.Ck=function(a){this.Lb.delete(a.triggerId)};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Kc=function(){};
g.k.hd=function(){};g.u(Q1,g.K);Q1.prototype.ea=function(){this.Xm.get().removeListener(this);g.K.prototype.ea.call(this)};g.u(R1,g.K);R1.prototype.ea=function(){this.Be.get().removeListener(this);g.K.prototype.ea.call(this)};S1.prototype.fetch=function(a){var b=a.pO;return this.lr.fetch(a.rT,{gy:void 0===a.gy?void 0:a.gy,Od:b}).then(function(c){return HVa(c,b)})};g.u(T1,g.K);g.k=T1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.tE=function(a){IVa(this,a,1)};
g.k.onAdUxClicked=function(a,b){U1(this,function(c){c.Ag(a,b)})};
g.k.lJ=function(a){U1(this,function(b){b.dI(a)})};
g.k.kJ=function(a){U1(this,function(b){b.cI(a)})};
g.k.O_=function(a){U1(this,function(b){b.FC(a)})};g.u(V1,g.K);g.k=V1.prototype;
g.k.Pi=function(){this.C=new OJ(this,KUa(this.Da.get()));this.u=new PJ;var a=this.G.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.G.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.sJ,this),b.subscribe("cuepointupdated",this.sJ,this),this.j=b)}this.FE.length=0;var d;b=(null==(d=a.j)?void 0:Qxa(d,0))||[];d=g.r(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.mq(b)&&eA("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.vl=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.GJ=function(a){this.FE.push(a);for(var b=!1,c=g.r(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.ZQ(a)||b;this.B=b};
g.k.SQ=function(a){g.sc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.RQ(a)};
g.k.mq=function(a){KVa(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a};
g.k.sJ=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.nG(this.G.R())){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,KVa(this,c),b?this.C.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&this.GJ(c)}};
g.k.ea=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.sJ,this),this.j=null);this.listeners.length=0;this.FE.length=0;g.K.prototype.ea.call(this)};Y1.prototype.addListener=function(a){this.listeners.push(a)};
Y1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=MVa.prototype;g.k.Xc=function(){return this.slot};
g.k.yb=function(){return this.layout};
g.k.init=function(){this.Ba.get().addListener(this);this.Ba.get().RB.push(this)};
g.k.release=function(){this.Ba.get().removeListener(this);SUa(this.Ba.get(),this)};
g.k.startRendering=function(a){this.callback.Kc(this.slot,a)};
g.k.Yf=function(a,b){this.callback.hd(this.slot,a,b)};
g.k.dk=function(a){switch(a.id){case "part2viewed":W0(this.j,"start");break;case "videoplaytime25":W0(this.j,"first_quartile");break;case "videoplaytime50":W0(this.j,"midpoint");break;case "videoplaytime75":W0(this.j,"third_quartile");break;case "videoplaytime100":W0(this.j,"complete");break;case "engagedview":if(!q0(this.Da.get())){W0(this.j,"progress");break}cVa(this.j)||W0(this.j,"progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:eA("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.pj=function(){};
g.k.Ug=function(){};
g.k.onFullscreenToggled=function(){};
g.k.tj=function(){};
g.k.Oi=function(){};
g.k.OQ=function(a){q0(this.Da.get())&&cVa(this.j)&&Y0(this.j,1E3*a,!1)};NVa.prototype.Se=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.r(U0()),f=e.next();!f.done;f=e.next())b.push(f.value);if(R0(d,{me:b,yf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new MVa(a,c,d,this.Ba,this.Pa,this.Da);throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=Z1.prototype;g.k.Xc=function(){return this.slot};
g.k.yb=function(){return this.layout};
g.k.init=function(){this.Ie.get().addListener(this);this.Ba.get().addListener(this);this.Up();var a=lY(this.layout.Aa,"metadata_type_layout_enter_ms"),b=lY(this.layout.Aa,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Qa.get().Pr)?void 0:c.clientPlaybackNonce;c=this.layout.vc.adClientDataEntry;A0(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Ie.get();e=QJ(e.u,a,b);null!==e&&(A0(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.De.get().Gr(e,b))};
g.k.release=function(){this.zq();this.Ie.get().removeListener(this);this.Ba.get().removeListener(this)};
g.k.startRendering=function(){this.Gq();this.callback.Kc(this.slot,this.layout)};
g.k.Yf=function(a,b){this.Hq(b);null!==this.driftRecoveryMs&&($1(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(OVa(this)-lY(this.layout.Aa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ba.get().G.Kp()).toString()}),this.driftRecoveryMs=null);this.callback.hd(this.slot,this.layout,b)};
g.k.ZQ=function(){return!1};
g.k.RQ=function(a){var b=lY(this.layout.Aa,"metadata_type_layout_enter_ms"),c=lY(this.layout.Aa,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;A0(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Qa.get().Pr)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.vc.adClientDataEntry}});this.De.get().Gr(a,c)}};
g.k.Oi=function(a){this.GQ(a);a=this.Ba.get().getCurrentTimeSec(2,!0);if(qUa(this.D.get(),this.layout.layoutId)){var b=lY(this.layout.Aa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=OVa(this),e=this.Ba.get().G.Kp(),f=Math.min(a+e,d/1E3);f<=a?$1(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):($1(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.Ba.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.Ug=function(){};
g.k.pj=function(){};
g.k.onVolumeChange=function(){};
g.k.dk=function(){};g.u(a2,Z1);g.k=a2.prototype;g.k.Up=function(){this.Qa.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Pa.get().Qh("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.zq=function(){this.Qa.get().removeListener(this);this.u=null;this.C.forEach(function(a){a.release()})};
g.k.Gq=function(){if(this.u)eA("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Qa.get().Pr)?void 0:a.layoutId;QVa(this,b)}};
g.k.Hq=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.Kj)||e.Yf(null==(b=this.u)?void 0:null==(c=b.Kj)?void 0:c.yb(),a);this.u=null};
g.k.fR=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Pa.get().Qh("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.Kj)?void 0:d.yb().layoutId))}var e;if(this.u&&(null==(e=this.u.Kj)?void 0:e.yb().layoutId)!==a){var f,h;null==(h=this.u.Kj)||h.Yf(null==(f=this.u.Kj)?void 0:f.yb(),"normal");QVa(this,a)}};
g.k.GQ=function(){};
g.k.tj=function(){};
g.k.onFullscreenToggled=function(){};g.k=aWa.prototype;g.k.Xc=function(){return this.slot};
g.k.yb=function(){return this.layout};
g.k.init=function(){var a=this;lY(this.layout.Aa,"metadata_type_player_bytes_callback_ref").current=this;this.Dc=RVa(this.slot,this.layout,lY(this.layout.Aa,"metadata_type_player_vars"),lY(this.layout.Aa,"metadata_type_layout_enter_ms"),lY(this.layout.Aa,"metadata_type_layout_exit_ms"),1E3*lY(this.layout.Aa,"metadata_type_video_length_seconds"),this.De.get(),this.zd.get(),function(){var e=Object,f=e.assign,h=e2(a.layout);var l=lY(a.slot.Aa,"metadata_type_fulfilled_layout");l=Object.assign({},e2(l),
{adPlacementConfig:lY(l.Aa,"metadata_type_ad_placement_config"),subLayouts:lY(l.Aa,"metadata_type_sub_layouts").map(e2)});return f.call(e,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},h,{compositeLayout:l,hasSurveyOverlay:$z(a.layout.Aa,"metadata_type_survey_overlay"),surveyOverlay:lY(a.layout.Aa,"metadata_type_survey_overlay")})},this.Pa.get());
this.Ba.get().addListener(this);var b=lY(this.layout.Aa,"metadata_type_video_length_seconds"),c=lY(this.layout.Aa,"metadata_type_active_view_traffic_type"),d=MI(this.layout.Rb);this.Da.get().G.R().experiments.fb("html5_disable_lidar")&&this.Pa.get().Qh("ads_av","lid."+this.layout.layoutId+";enab."+d);d&&t0(this.Db.get(),this.layout.layoutId,c,b,this);QZ(this.callback,this.slot,this.layout);RZ(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ba.get().removeListener(this);MI(this.layout.Rb)&&u0(this.Db.get(),this.layout.layoutId);this.Da.get().G.R().K("html5_unschedule_dai_media_sublayout_killswitch")||LJ(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;$z(this.layout.Aa,"metadata_type_survey_overlay")&&this.Pa.get().Qh("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)eA("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:$z(this.layout.Aa,"metadata_type_survey_overlay"),surveyOverlay:lY(this.layout.Aa,"metadata_type_survey_overlay")});else{this.u={ol:null,mA:!1};this.Da.get().G.R().experiments.fb("html5_disable_sodar_for_tvhtml5")||SVa(this.slot,this.layout,
this.ue.get());W0(this.j,"start");if(p0(this.Da.get())){var b=s0(this.Ba.get()),c=lY(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ba.get().getCurrentTimeSec(2,!1);TVa(this.j,this.u.ol,b,c,d,function(){return void cWa(a,"teois")})}SZ(this.callback,this.slot,this.layout);
$z(this.layout.Aa,"metadata_type_survey_overlay")&&this.Pa.get().Qh("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Yf=function(a,b){var c=this;if(this.u){if(p0(this.Da.get()))if(null===this.Dc)eA("Unexpected media sub layout exited without a timeline playback ID");else{a=lY(this.layout.Aa,"metadata_type_video_length_seconds");var d=F0(this.Ba.get(),this.Dc);this.j.D=d;c2(this.j,null,this.u.ol,a,d,function(e){return void bWa(c,e,"fue")})}this.u=null;
GJ(this.callback,this.slot,this.layout,b)}else eA("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Cz=function(){};
g.k.EC=function(){};
g.k.Oi=function(a){var b=this;if(this.u){if(Z0(this.j,"impression")){var c=s0(this.Ba.get()),d=lY(this.layout.Aa,"metadata_type_video_length_seconds");d2(this.j,c,a,this.u.ol,d,function(e){return void bWa(b,e,"tpaqe")})}this.u.ol=a}};
g.k.tj=function(a){var b=this;if(this.u){p0(this.Da.get())||this.u.mA||(this.u.mA=!0,a=new g.sJ(a.state,new g.$J));var c=lY(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ba.get().getCurrentTimeSec(2,!1);b2(this.j,this.u.ol,a,c,d,!p0(this.Da.get()),function(){return void cWa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){UVa(this.j,a)};
g.k.Ug=function(){};
g.k.pj=function(){};
g.k.Rz=function(a,b){var c;a=this.Pa.get();var d=a.Qh,e="ti."+Z0(this.j,"impression")+";ts."+Z0(this.j,"skip")+";hp.",f;var h=!(null==(f=this.j.B.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+lY(this.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Qa.get().Gf(2))?void 0:c.clientPlaybackNonce)+";sl."+(lY(b.Aa,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));Z0(this.j,"impression")&&W0(this.j,"skip");this.De.get().zl()||eA("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Kc=function(){};
g.k.hd=function(){};
g.k.Zs=function(){};
g.k.Ct=function(){};
g.k.eE=function(){VVa(this.j)};
g.k.Iz=function(){WVa(this.j)};
g.k.Hz=function(){XVa(this.j)};
g.k.Jz=function(){YVa(this.j)};
g.k.Fz=function(){ZVa(this.j)};
g.k.Gz=function(){$Va(this.j)};
g.k.dk=function(){};g.u(f2,Z1);g.k=f2.prototype;
g.k.Up=function(){var a=this;lY(this.layout.Aa,"metadata_type_player_bytes_callback_ref").current=this;var b=lY(this.layout.Aa,"metadata_type_layout_enter_ms"),c=lY(this.layout.Aa,"metadata_type_layout_exit_ms");this.Dc=RVa(this.slot,this.layout,lY(this.layout.Aa,"metadata_type_player_vars"),b,c,1E3*lY(this.layout.Aa,"metadata_type_video_length_seconds"),this.De.get(),this.zd.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:lY(a.layout.Aa,"metadata_type_ad_placement_config")}},
this.Pa.get());
var d=lY(this.layout.Aa,"metadata_type_video_length_seconds"),e=lY(this.layout.Aa,"metadata_type_active_view_traffic_type");MI(this.layout.Rb)&&t0(this.Db.get(),this.layout.layoutId,e,d,this)};
g.k.zq=function(){MI(this.layout.Rb)&&u0(this.Db.get(),this.layout.layoutId)};
g.k.Gq=function(){var a=this;if(this.u)eA("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={ol:null,mA:!1},SVa(this.slot,this.layout,this.ue.get()),W0(this.j,"start"),p0(this.Da.get())){var b=s0(this.Ba.get()),c=lY(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ba.get().getCurrentTimeSec(2,!1);TVa(this.j,this.u.ol,b,c,d,function(){return void dWa(a,"teois")})}};
g.k.Hq=function(){var a=this;if(this.u){if(p0(this.Da.get()))if(null===this.Dc)eA("Unexpected single media layout exited without a timeline playback ID");else{var b=lY(this.layout.Aa,"metadata_type_video_length_seconds"),c=F0(this.Ba.get(),this.Dc);this.j.D=c;c2(this.j,null,this.u.ol,b,c,function(d){return void eWa(a,d,"fue")})}this.u=null}else eA("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.GQ=function(a){var b=this;if(this.u){if(Z0(this.j,"impression")){var c=s0(this.Ba.get()),d=lY(this.layout.Aa,"metadata_type_video_length_seconds");d2(this.j,c,a,this.u.ol,d,function(e){return void eWa(b,e,"tpaqe")})}this.u.ol=a}};
g.k.tj=function(a){var b=this;if(this.u){p0(this.Da.get())||this.u.mA||(this.u.mA=!0,a=new g.sJ(a.state,new g.$J));var c=lY(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ba.get().getCurrentTimeSec(2,!1);b2(this.j,this.u.ol,a,c,d,!p0(this.Da.get()),function(){return void dWa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){UVa(this.j,a)};
g.k.eE=function(){VVa(this.j)};
g.k.Iz=function(){WVa(this.j)};
g.k.Hz=function(){XVa(this.j)};
g.k.Jz=function(){YVa(this.j)};
g.k.Fz=function(){ZVa(this.j)};
g.k.Gz=function(){$Va(this.j)};g2.prototype.Se=function(a,b,c,d){if($z(c.Aa,"metadata_type_dai")){var e=lY(d.Aa,"metadata_type_ad_placement_config");R0(d,{me:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),yf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new T0(d.Rb,this.Pa,e,d.layoutId,null),e=new f2(a,c,d,this.Qa,this.De,this.zd,this.Ie,this.Ba,e,this.Pa,this.ue,this.j,this.Db,this.Da)):
e=null;if(e)return e;a:{var f=lY(d.Aa,"metadata_type_sub_layouts"),h=lY(d.Aa,"metadata_type_ad_placement_config");if(R0(d,{me:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],yf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=lY(l.Aa,"metadata_type_media_sub_layout_index");if(!R0(l,{me:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
yf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new T0(l.Rb,this.Pa,h,l.layoutId,m);e.push(new aWa(b,c,l,this.De,m,this.Ba,this.zd,this.Db,this.ue,this.Da,this.Pa,this.Qa))}b=new T0(d.Rb,this.Pa,h,d.layoutId);a=new a2(a,c,d,this.Qa,this.De,this.Ie,this.Ba,b,this.Pa,this.j,e)}else a=null}if(a)return a}else if(a=uVa(a,b,c,d,this.gf,this.u,this.Pa,this.Db,this.ue,this.oe,this.Qa,this.Ba,this.Tb,this.Nd,this.fd,this.df,this.Hb,this.qf,this.Da))return a;throw new MZ("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+mY(d.Aa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.u(h2,g.K);h2.prototype.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof B_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Lb.set(b.triggerId,new G1(a,b,c,d))};
h2.prototype.Ck=function(a){this.Lb.delete(a.triggerId)};g.u(j2,g.K);
j2.prototype.qk=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new BA("Tried to re-register the trigger.");a=new G1(a,b,c,d);if(a.trigger instanceof wUa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof r_)this.B.set(a.trigger.triggerId,a);else throw new BA("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&TZ(this.C(),[a])};
j2.prototype.Ck=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
j2.prototype.fR=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.t(fWa(this.B,this.j)));null!=a&&b.push.apply(b,g.t(fWa(this.u,a)));this.j=a;b.length&&TZ(this.C(),b)}};g.k=k2.prototype;g.k.Uu=function(a,b,c,d,e,f,h){return this.G.Uu(a,b,c,d,e,f,h)};
g.k.Gr=function(a,b){this.G.Gr(a,b)};
g.k.Xw=function(a,b,c){this.G.Xw(a,b,c)};
g.k.rq=function(a){this.G.rq(a)};
g.k.ez=function(a,b,c,d,e,f,h){this.G.ez(a,b,c,d,e,f,h)};
g.k.zl=function(){return this.G.zl()};g.u(gWa,GI);g.u(l2,b1);g.k=l2.prototype;g.k.Ag=function(a,b){d1("image-companion",a,this.J.get().yj,this.Pa.get(),this.C,this.D,this.Xc(),this.yb(),b)};
g.k.startRendering=function(a){c1(this.I,this.Xc(),this.yb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new gWa(b,c,d,e,f)},this.j);
b1.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?W0(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Pa.get().Hi():eA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.ea=function(){this.gf().Md.delete(this);b1.prototype.ea.call(this)};g.u(iWa,GI);g.u(m2,b1);g.k=m2.prototype;g.k.Ag=function(a,b){d1("shopping-companion",a,this.J.get().yj,this.Pa.get(),this.C,this.D,this.Xc(),this.yb(),b)};
g.k.startRendering=function(a){c1(this.I,this.Xc(),this.yb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new iWa(b,c,d,e,f)},this.j);
b1.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?W0(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Pa.get().Hi():eA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.ea=function(){this.gf().Md.delete(this);b1.prototype.ea.call(this)};g.u(kWa,GI);g.u(n2,b1);g.k=n2.prototype;g.k.Ag=function(a,b){d1("ads-engagement-panel",a,this.J.get().yj,this.Pa.get(),this.C,this.D,this.Xc(),this.yb(),b)};
g.k.startRendering=function(a){c1(this.I,this.Xc(),this.yb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new kWa(b,c,d,e,f)},this.j);
b1.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?W0(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Pa.get().Hi():eA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.hd=function(){};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.ea=function(){this.gf().Md.delete(this);b1.prototype.ea.call(this)};mWa.prototype.Se=function(a,b,c,d){if(R0(d,lWa()))return new n2(a,c,d,this.Xb,this.Pa,this.gf,this.Db,this.j);if(R0(d,hVa()))return new e1(a,c,d,this.Xb,this.Pa,this.gf,this.Db,this.j);if(R0(d,hWa()))return new l2(a,c,d,this.Xb,this.Pa,this.gf,this.Db,this.j);if(R0(d,jWa()))return new m2(a,c,d,this.Xb,this.Pa,this.gf,this.Db,this.j);throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.u(o2,GI);g.u(p2,b1);p2.prototype.init=function(){b1.prototype.init.call(this);var a=lY(this.layout.Aa,"metadata_type_player_underlay_renderer");this.j.push(new o2(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.vc}))};
p2.prototype.Ag=function(){};
p2.prototype.startRendering=function(a){b1.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
p2.prototype.ea=function(){b1.prototype.ea.call(this)};nWa.prototype.Se=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(U0()),f=e.next();!f.done;f=e.next())b.push(f.value);if(R0(d,{me:b,yf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new p2(a,c,d,this.Xb);throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.u(oWa,GI);g.u(q2,b1);q2.prototype.startRendering=function(a){var b=V0(this.C),c={adsClientData:this.layout.vc};this.j.push(new oWa(lY(this.layout.Aa,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.yb().layoutId,c));b1.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
q2.prototype.Ag=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=lY(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Rz(this.slot,this.layout):eA("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
q2.prototype.ea=function(){b1.prototype.ea.call(this)};var s2=new g.Qg(320,63);g.u(rWa,GI);g.u(u2,b1);g.k=u2.prototype;g.k.Oi=function(){};
g.k.tj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ug=function(a){a&&i2(this.C,this.layout)};
g.k.pj=function(a){var b=t2(this.layout);if(this.J=pWa(a,TUa(this.Ba.get())))b.onErrorCommand&&this.Hb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),i2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Hv=function(){return this.yb().layoutId};
g.k.EH=function(){return this.J};
g.k.Ag=function(a){this.D.Ag(a);"in_video_overlay_close_button"===a&&i2(this.C,this.layout)};
g.k.FC=function(a){"invideo-overlay"===a&&i2(this.C,this.layout)};
g.k.kq=function(){this.D.kq()};
g.k.startRendering=function(a){b1.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.I.Su=this};
g.k.Yf=function(a,b){b1.prototype.Yf.call(this,a,b);sXa(this.I,this)};
g.k.init=function(){b1.prototype.init.call(this);B0(this.Pa.get(),this);this.Ba.get().addListener(this);this.j.push(new rWa(t2(this.layout),V0(this.N),this.layout.layoutId,{adsClientData:this.layout.vc}))};
g.k.release=function(){b1.prototype.release.call(this);this.Ba.get().removeListener(this);C0(this.Pa.get(),this)};
g.k.dk=function(){};g.u(v2,b1);g.k=v2.prototype;g.k.init=function(){b1.prototype.init.call(this);B0(this.Pa.get(),this);this.Ba.get().addListener(this);this.j.push(new rWa(t2(this.layout),V0(this.V),this.layout.layoutId,{adsClientData:this.layout.vc}))};
g.k.kq=function(){this.D.kq()};
g.k.startRendering=function(a){b1.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.I.Su=this};
g.k.Yf=function(a,b){b1.prototype.Yf.call(this,a,b);sXa(this.I,this)};
g.k.Ag=function(a){this.D.Ag(a);"in_video_overlay_close_button"===a&&i2(this.C,this.layout)};
g.k.dI=function(a){if("invideo-overlay"===a){a=yWa(this.N,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.FC=function(a){"invideo-overlay"===a&&i2(this.C,this.layout)};
g.k.cI=function(a){if("invideo-overlay"===a){a=yWa(this.N,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Oi=function(){};
g.k.tj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ug=function(a){a&&i2(this.C,this.layout)};
g.k.pj=function(a){var b=t2(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=TUa(this.Ba.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Xb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Qg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Qg(0,0)}if(this.J=pWa(a,d,c))b.onErrorCommand&&this.Hb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),i2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Hv=function(){return this.yb().layoutId};
g.k.EH=function(){return this.J};
g.k.release=function(){b1.prototype.release.call(this);this.Ba.get().removeListener(this);C0(this.Pa.get(),this)};
g.k.dk=function(){};w2.prototype.Ag=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ba.get().po(1))||this.Ba.get().pauseVideo())};
w2.prototype.kq=function(){this.j||this.Ba.get().resumeVideo(1)};g.u(uWa,b1);g.k=uWa.prototype;g.k.startRendering=function(a){var b=this;a1(this.u,a,function(){b.j.push(new EJ(lY(b.layout.Aa,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.vc));b.tE();b.callback.Kc(b.slot,a);g.W(s0(b.Ba.get(),1),512)&&b.callback.eg(b.Xc(),b.yb(),new MZ("player is stuck during adNotify"))})};
g.k.Oi=function(){};
g.k.tj=function(a){if(a.state.isError()){var b;this.callback.eg(this.Xc(),this.yb(),new MZ("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.getData())?void 0:b.errorCode}))}};
g.k.onFullscreenToggled=function(){};
g.k.Ug=function(){};
g.k.pj=function(){};
g.k.onVolumeChange=function(){};
g.k.dk=function(){};
g.k.Ag=function(){};g.u(vWa,GI);g.u(wWa,b1);g.k=wWa.prototype;g.k.init=function(){b1.prototype.init.call(this);this.Ba.get().addListener(this)};
g.k.startRendering=function(a){var b=lY(this.layout.Aa,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new vWa(b,this.layout.layoutId,{adsClientData:this.layout.vc}));b1.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
g.k.Kc=function(){};
g.k.Ag=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=lY(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Zs(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Ct(this.slot,this.layout):eA("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.pj=function(a){450>a.width&&i2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Oi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ug=function(){};
g.k.tj=function(){};
g.k.dk=function(){};
g.k.ea=function(){b1.prototype.ea.call(this)};
g.k.release=function(){b1.prototype.release.call(this);this.Ba.get().removeListener(this)};xWa.prototype.Se=function(a,b,c,d){if(b=h1(a,c,d,this.Xb,this.Ba,this.Pa,this.C,this.j))return b;if(R0(d,tWa()))return new v2(c,d,this.Pa,this.Db,this.Xb,a,this.u,this.B,this.Ba,this.Hb,this.Da,this.j,new w2(this.Ba));if(R0(d,sWa()))return new u2(c,d,this.Pa,this.Db,this.Xb,a,this.u,this.Ba,this.Hb,this.Da,this.j,new w2(this.Ba));if(R0(d,{me:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],yf:["LAYOUT_TYPE_SURVEY"]}))return new wWa(c,d,a,this.Xb,this.u,this.Ba,this.Da);if(R0(d,{me:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],yf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new q2(c,d,a,this.Xb,this.Pa);if(R0(d,{me:["metadata_type_valid_ad_message_renderer"],yf:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}))return new uWa(c,d,a,this.Xb,this.Ba,this.Da);throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.u(x2,g.K);g.k=x2.prototype;g.k.qk=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new BA("Tried to register duplicate trigger for slot.");if(!(b instanceof w_))throw new BA("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Lb.set(b.triggerId,new G1(a,b,c,d));a=this.j.has(b.Df)?this.j.get(b.Df):new Set;a.add(b);this.j.set(b.Df,a)};
g.k.Ck=function(a){this.Lb.delete(a.triggerId);if(!(a instanceof w_))throw new BA("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.Df))b.delete(a),0===b.size&&this.j.delete(a.Df)};
g.k.Th=function(){};
g.k.vj=function(){};
g.k.uj=function(){};
g.k.Vf=function(){};
g.k.Wf=function(){};
g.k.fk=function(){};
g.k.gk=function(){};
g.k.rj=function(){};
g.k.sj=function(){};
g.k.Qi=function(){};
g.k.Kc=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={kx:a.kx},d=b.next())a.kx=d.value,d=new g.Zn(function(e){return function(){var f=c.Lb.get(e.kx.triggerId);TZ(c.B(),[f])}}(a),a.kx.durationMs),d.start(),this.u.set(a.kx.triggerId,d)}};
g.k.hd=function(){};g.u(zWa,g.K);AWa.prototype.Se=function(a,b,c,d){if(b=h1(a,c,d,this.Xb,this.Ba,this.Pa,this.C,this.j))return b;if(R0(d,tWa()))return new v2(c,d,this.Pa,this.Db,this.Xb,a,this.u,this.B,this.Ba,this.Hb,this.Da,this.j,new w2(this.Ba));if(R0(d,sWa()))return new u2(c,d,this.Pa,this.Db,this.Xb,a,this.u,this.Ba,this.Hb,this.Da,this.j,new w2(this.Ba));throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.u(BWa,g.K);g.u(CWa,g.K);g.u(DWa,g.K);g.u(z2,g1);z2.prototype.startRendering=function(a){g1.prototype.startRendering.call(this,a);lY(this.layout.Aa,"metadata_ad_video_is_listed")&&(a=lY(this.layout.Aa,"metadata_type_ad_info_ad_metadata"),this.Sk.get().G.Ka("onAdMetadataAvailable",a))};FWa.prototype.Se=function(a,b,c,d){if(R0(d,EWa()))return new z2(a,c,d,this.Xb,this.Ba,this.Pa,this.u,this.Sk,this.j);throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.u(GWa,g.K);HWa.prototype.Se=function(a,b,c,d){if(R0(d,EWa()))return new z2(a,c,d,this.Xb,this.Ba,this.Pa,this.u,this.Sk,this.j);if(a=h1(a,c,d,this.Xb,this.Ba,this.Pa,this.u,this.j))return a;throw new MZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+mY(d.Aa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.u(IWa,g.K);g.u(KWa,g.K);KWa.prototype.B=function(){return this.u};B2.prototype.fC=function(a){this.lm.fC(a)};
B2.prototype.LB=function(){try{this.lm.LB()}catch(a){}};
B2.prototype.Bp=function(){this.j().Bp()};
B2.prototype.ym=function(){this.j().ym()};g.u(LWa,yL);
LWa.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.Ka("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.Ka("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Ka("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.Ka("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Ka("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Ka("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.Ka("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Ka("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Ka("updateEngagementPanelAction",b.addAction);this.j.Ka("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Ka("changeEngagementPanelVisibility",b.hideAction),this.j.Ka("updateEngagementPanelAction",b.removeAction)}};g.u(MWa,GL);g.k=MWa.prototype;g.k.init=function(a,b,c){GL.prototype.init.call(this,a,b,c);g.yl(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){IL(this);GL.prototype.hide.call(this)};
g.k.show=function(){HL(this);GL.prototype.show.call(this)};
g.k.qt=function(){this.hide()};
g.k.xq=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.yl(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.u(NWa,$K);g.k=NWa.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.qz(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.fb(g.Wg(e[0].url))&&(e[0].url=d.profilePicture,g.fb(g.Wg(d.profilePicture))&&dLa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.fb(g.Wg(e[0].url))&&(e[0].url=d.If());e=b.headline;null!=e&&g.fb(g.Wg(e.text))&&(e.text=d.author)}this.api.R().K("web_rounded_thumbnails")&&this.api.R().K("web_modern_ads")&&this.W.classList.add("ytp-ad-action-interstitial-image-container-circular");this.D.init(FI("ad-image"),
b.image,c);this.N.init(FI("ad-text"),b.headline,c);this.I.init(FI("ad-text"),b.description,c);this.va.init(FI("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button"];this.api.R().K("web_modern_buttons")&&this.api.R().K("web_modern_ads")&&d.push("ytp-ad-action-interstitial-action-button-rounded");this.actionButton=new oL(this.api,this.bb,this.layoutId,this.j,this.Wa,d);g.M(this,this.actionButton);this.actionButton.xa(this.La);this.actionButton.init(FI("button"),b.actionButton.buttonRenderer,
c);this.navigationEndpoint=b.navigationEndpoint;this.api.R().isMobile||(this.C.P(this.W,"click",this.sH,this),this.C.P(this.Ha,"click",this.sH,this),this.C.P(this.Ea,"click",this.sH,this));this.u=this.LK?new VL(this.api,a):new WL(a);g.M(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new QL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u,this.rE),g.M(this,this.skipButton),this.skipButton.xa(this.element),this.skipButton.init(FI("skip-button"),a,c)):b.nonskippableOverlayRenderer&&
(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new LL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u,!1),g.M(this,this.B),this.B.xa(this.element),this.B.init(FI("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new MWa(this.api,this.bb,this.layoutId,this.j,this.Wa,this.u),g.M(this,c),c.xa(this.element),c.init(FI("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.qz(Error("AdActionInterstitialRenderer has no navigation endpoint."));
else g.qz(Error("AdActionInterstitialRenderer has no button."));else g.qz(Error("AdActionInterstitialRenderer has no background AdImage."));else g.qz(Error("AdActionInterstitialRenderer has no description AdText."));else g.qz(Error("AdActionInterstitialRenderer has no headline AdText."));else g.qz(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.bz(this.C);this.hide()};
g.k.show=function(){OWa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();$K.prototype.show.call(this)};
g.k.hide=function(){OWa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();$K.prototype.hide.call(this)};
g.k.sH=function(){this.navigationEndpoint&&(this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(this.navigationEndpoint,this.layoutId):g.qz(Error("Missing layoutId for ad action interstitial.")):AL(this.Wa,this.navigationEndpoint,this.macros))};var TWa={iconType:"CLOSE"},D2=new g.Qg(320,63);g.u(SWa,$K);g.k=SWa.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.D=b;this.N=g.cc(this.D.onClickCommands||[]);this.va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.eh("ytp-ad-overlay-ad-info-button-container",this.C.element),VWa(this,b),a=XWa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.eh("ytp-ad-overlay-ad-info-button-container",this.B.element),
VWa(this,b),a=YWa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.eh("ytp-ad-overlay-ad-info-button-container",this.u.element),VWa(this,b),a=ZWa(this,a.imageOverlayAdContentRenderer)):(g.qz(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),$Wa(this,!0))};
g.k.clear=function(){$Wa(this,!1);this.Ha.reset();this.W=0;this.C.hide();this.Ta(this.C.element,!1);this.B.hide();this.Ta(this.B.element,!1);this.u.hide();this.Ta(this.u.element,!1);this.hide();this.dispose()};
g.k.z2=function(){this.La&&(this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(this.La,this.layoutId):g.qz(Error("Missing layoutId for invideo_overlay_ad.")):AL(this.Wa,this.La,this.macros));this.api.pauseVideo()};
g.k.ek=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())b=b.value,this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?this.Wa.executeCommand(b,this.layoutId):g.qz(Error("Missing layoutId for invideo_overlay_ad.")):AL(this.Wa,b,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.H_=function(){this.Ra||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.FJ=function(){this.Ra||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.FJ("invideo-overlay")};
g.k.I_=function(a){a.target===this.I&&g.eh("ytp-ad-button",this.eb.element).click()};g.u(aXa,GL);g.k=aXa.prototype;g.k.init=function(a,b,c){GL.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(FI("ad-text"),d,c);this.messageText.xa(this.B.element);this.I.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){bXa(this,!1);GL.prototype.hide.call(this);this.B.hide();this.messageText.hide();IL(this)};
g.k.show=function(){bXa(this,!0);GL.prototype.show.call(this);HL(this);this.B.show();this.messageText.show()};
g.k.qt=function(){this.hide()};
g.k.xq=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.I.hide(),this.N=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.W&&(FL(this.messageText,{TIME_REMAINING:String(a)}),this.W=a)))}};g.u(cXa,$K);g.k=cXa.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,{});if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer){this.C.init(FI("ad-image"),b.image,c);this.B.init(FI("ad-text"),b.headline,c);this.D.init(FI("ad-text"),b.description,c);a=["ytp-ad-underlay-action-button"];this.api.R().K("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue");this.actionButton=new oL(this.api,this.bb,this.layoutId,this.j,
this.Wa,a);if(b.backgroundColor){a=this.element;var d=b.backgroundColor;d&=16777215;var e=[(d&16711680)>>16,(d&65280)>>8,d&255];d=e[0];var f=e[1];e=e[2];d=Number(d);f=Number(f);e=Number(e);if(d!=(d&255)||f!=(f&255)||e!=(e&255))throw Error('"('+d+","+f+","+e+'") is not a valid RGB color');f=d<<16|f<<8|e;d=16>d?"#"+(16777216|f).toString(16).slice(1):"#"+f.toString(16);g.yl(a,"background-color",d)}g.M(this,this.actionButton);this.actionButton.xa(this.I);this.actionButton.init(FI("button"),b.actionButton.buttonRenderer,
c);b=g.TE(this.api.R().experiments,"player_underlay_video_width_fraction");this.api.R().K("place_shrunken_video_on_left_of_player")?(c=this.u,g.jo(c,"ytp-ad-underlay-left-container"),g.ho(c,"ytp-ad-underlay-right-container"),g.yl(this.u,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.u,g.jo(c,"ytp-ad-underlay-right-container"),g.ho(c,"ytp-ad-underlay-left-container"));g.yl(this.u,"width",Math.round(100*(1-b-.04))+"%");this.api.VC()&&this.show();this.api.addEventListener("playerUnderlayVisibilityChange",
this.UL.bind(this));this.api.addEventListener("resize",this.nP.bind(this))}else g.qz(Error("InstreamAdPlayerUnderlayRenderer has no button."));else g.qz(Error("InstreamAdPlayerUnderlayRenderer has no description AdText."));else g.qz(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText."));else g.qz(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){dXa(!0);this.actionButton&&this.actionButton.show();$K.prototype.show.call(this)};
g.k.hide=function(){dXa(!1);this.actionButton&&this.actionButton.hide();$K.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.UL.bind(this));this.api.removeEventListener("resize",this.nP.bind(this));this.hide()};
g.k.onClick=function(a){$K.prototype.onClick.call(this,a);this.actionButton&&g.sh(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.UL=function(a){"transitioning"===a?(this.u.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.u.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.u.classList.remove("ytp-ad-underlay-clickable"))};
g.k.nP=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.yl(this.B.element,"font-size",a.width/40+"px")};g.u(E2,$K);
E2.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new oL(this.api,this.bb,this.layoutId,this.j,this.Wa,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.xa(this.answer),a.init(FI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new wL(this.api,this.bb,this.layoutId,this.j,this.Wa,
["ytp-ad-survey-answer-toggle-button"]),this.u.xa(this.answer),g.M(this,this.u),this.u.init(FI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
E2.prototype.kE=function(a){this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?(g.rz(Error("Non-empty macros passed by Answer to the runCommand method.")),f_(this.Wa,a,this.layoutId,this.macros)):g.qz(new g.Rv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType})):AL(this.Wa,a,this.macros)};
E2.prototype.clear=function(){this.hide()};g.u(eXa,$K);eXa.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new wL(this.api,this.bb,this.layoutId,this.j,this.Wa,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.xa(this.u),this.button.init(FI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.u(F2,oL);F2.prototype.init=function(a,b,c){oL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.zA(b.text),a=!g.fb(b));a||g.rz(Error("No submit text was present in the renderer."))};
F2.prototype.onClick=function(a){this.X("l");oL.prototype.onClick.call(this,a)};g.u(G2,$K);
G2.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new RL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.C,!0),c.xa(this.I),c.init(FI("skip-button"),a,this.macros),g.M(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new LL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.C,!1),c.xa(this.I),c.init(FI("ad-preview"),a,this.macros),ML(c),g.M(this,c),this.u=c);null==this.u&&g.qz(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new F2(this.api,this.bb,this.layoutId,this.j,this.Wa),c.xa(this.submitButton),c.init(FI("survey-submit"),a,this.macros),g.M(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new TL(this.api,this.bb,this.layoutId,this.j,this.Wa,!0),c.xa(this.D),c.init(FI("simple-ad-badge"),a,this.macros),g.M(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new ZL(this.api,this.bb,this.layoutId,this.j,this.Wa,
this.C,void 0),c.xa(this.D),c.init(FI("ad-duration-remaining"),a,this.macros),g.M(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new DL(this.api,this.bb,this.layoutId,this.j,this.Wa,this.element),g.M(this,a),a.xa(this.D),a.init(FI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
G2.prototype.clear=function(){this.hide()};g.u(H2,$K);H2.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);hXa(this)};
H2.prototype.show=function(){this.C=g.Wa();$K.prototype.show.call(this)};
H2.prototype.bS=function(){};g.u(iXa,H2);g.k=iXa.prototype;g.k.init=function(a,b,c){var d=this;H2.prototype.init.call(this,a,b,c);b.questionText&&g.th(this.questionText,g.zA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&fXa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&jXa(this,a,c);b.surveyAdQuestionCommon&&gXa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.P(this.element,"change",this.onChange);this.show()};
g.k.bS=function(){kXa(this,!1);this.D.B.subscribe("l",this.v2,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.u?lXa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),kXa(this,!0))};
g.k.v2=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.Hf(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=xi(e.baseUrl,a));return e});
return d});
if(b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.api.R().K("enable_macro_substitution_on_html5")?this.layoutId?f_(this.Wa,c,this.layoutId,this.macros):g.qz(Error("Missing layoutId for multi_select_question.")):AL(this.Wa,c,this.macros)}};
g.k.clear=function(){this.api.R().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(I2,H2);I2.prototype.init=function(a,b,c){var d=this;H2.prototype.init.call(this,a,b,c);b.questionText&&g.th(this.questionText,g.zA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&fXa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?gXa(this,b.surveyAdQuestionCommon):g.qz(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
I2.prototype.clear=function(){this.api.R().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(J2,$K);
J2.prototype.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new I2(d.api,d.bb,d.layoutId,d.j,d.Wa);f.xa(d.u);f.init(FI("survey-question-single-select"),e,c);d.questions.push(f);g.M(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new iXa(d.api,d.bb,d.layoutId,d.j,d.Wa),f.xa(d.u),
f.init(FI("survey-question-multi-select"),e,c),d.questions.push(f),g.M(d,f))});
this.show()};
J2.prototype.clear=function(){this.api.R().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.u(K2,$K);
K2.prototype.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;"number"!==typeof a||0>a?g.qz(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a)):b.timeoutCommands?b.text?b.ctaButton&&b.ctaButton.buttonRenderer?b.brandImage?b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape?(this.layoutId||g.qz(Error("Missing layoutId for survey interstitial.")),nXa(this.interstitial,
b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape),nXa(this.logoImage,b.brandImage),g.th(this.text,g.zA(b.text)),this.actionButton=new oL(this.api,this.bb,this.layoutId,this.j,this.Wa,["ytp-ad-survey-interstitial-action-button"]),g.M(this,this.actionButton),this.actionButton.xa(this.B),this.actionButton.init(FI("button"),b.ctaButton.buttonRenderer,c),this.actionButton.show(),this.u=new VL(this.api,1E3*a),this.u.subscribe("g",function(){d.transition.hide()}),g.M(this,this.u),this.P(this.element,
"click",function(e){var f=e.target===d.interstitial;
e=d.actionButton.element.contains(e.target);if(f||e)if(d.transition.hide(),f)d.api.onAdUxClicked(d.componentType,d.layoutId)}),this.transition.show(100)):g.qz(Error("SurveyTextInterstitialRenderer has no landscape background image.")):g.qz(Error("SurveyTextInterstitialRenderer has no brandImage.")):g.qz(Error("SurveyTextInterstitialRenderer has no button.")):g.qz(Error("SurveyTextInterstitialRenderer has no text.")):g.qz(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
K2.prototype.clear=function(){this.hide()};
K2.prototype.show=function(){oXa(!0);$K.prototype.show.call(this)};
K2.prototype.hide=function(){oXa(!1);$K.prototype.hide.call(this)};var U0a="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.u(L2,yL);
L2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!U0a.includes(d))switch(a.actionType){case 1:a=this.J();var e=this.api,f=this.Wa,h=c.layoutId,l=c.j,m=c instanceof xJ?c.LK:!1,n=c instanceof xJ||c instanceof UL?c.rE:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new SWa(e,a,h,l,f);break;case "player-overlay":a=new fM(e,a,h,l,f,new TO(e),n);break;case "survey":a=new J2(e,a,h,l,f);break;case "ad-action-interstitial":a=new NWa(e,a,h,l,
f,m,n);break;case "survey-interstitial":a=new K2(e,a,h,l,f);break;case "ad-message":a=new aXa(e,a,h,l,f,new TO(e,1));break;case "player-underlay":a=new cXa(e,a,h,l,f);break;default:a=null}if(!a){g.rz(Error("No UI component returned from ComponentFactory for type: "+d));break}g.yf(this.u,b)?g.rz(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof o2?this.B?this.B.append(a.rK):g.qz(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.rK);
break;case 2:b=pXa(this,a);if(null==b)break;b.bind(c);break;case 3:c=pXa(this,a),null!=c&&(g.af(c),g.yf(this.u,b)?g.Df(this.u,b):g.rz(Error("Ad UI component does not exist: "+b)))}};
L2.prototype.ea=function(){g.bf(Object.values(this.u));this.u={};yL.prototype.ea.call(this)};g.u(qXa,g.bO);g.k=qXa.prototype;g.k.create=function(){try{rXa(this),this.load(),this.created=!0,rXa(this)}catch(a){eA(a instanceof Error?a:String(a))}};
g.k.load=function(){g.bO.prototype.load.call(this);var a=A2(this.j).oh;Nua(a.G.R().K("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){eA(l instanceof Error?l:String(l))}var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.nf()||!1;a=wXa(f,a,e,h,A2(this.j).il);f=c&&c.clientPlaybackNonce||"";c=c&&c.Dr||!1;h=1E3*this.player.getDuration(1);this.bb=new QK(this,this.player,this.lr,b,A2(this.j));wEa(this.bb,a.Vx);this.j.j.lq.Pi(f,h,c,a.HD,a.HD.concat(a.Vx),e,d);RK(this.bb)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.lq.vl(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.bO.prototype.unload.call(this);Nua(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){eA(b instanceof Error?b:String(b))}if(null!==this.bb){var a=this.bb;this.bb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.lr.reset()};
g.k.xj=function(){return!1};
g.k.MK=function(){return null===this.bb?!1:this.bb.MK()};
g.k.Zm=function(a){null!==this.bb&&this.bb.Zm(a)};
g.k.getAdState=function(){return this.bb?this.bb.OC:-1};
g.k.getOptions=function(){return Object.values(T0a)};
g.k.xg=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=$I(this.player),Object.assign(b,a.l2a),this.bb&&!b.AD_CPN&&(b.AD_CPN=this.bb.nC()),a=g.Sn(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.kq(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.k.mq=function(a){var b;return!(null==(b=this.j.j.Ie)||!b.get().mq(a))};
g.k.kq=function(a){a.isMuted&&lEa(this.bb,A2(this.j).Mi,A2(this.j).Zj,a.layoutId);this.Su&&this.Su.kq()};
g.k.executeCommand=function(a){A2(this.j).Wa.executeCommand(a.command,a.layoutId)};g.aO("ad",qXa);var yXa=g.Dc&&xXa();g.u(g.M2,g.X);g.M2.prototype.onClick=function(){this.G.Ka("onExpandMiniplayer")};})(_yt_player);
