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

    Copyright The Closure Library Authors.
    SPDX-License-Identifier: Apache-2.0
   */
   'use strict';var ba,da,aaa,ha,ia,ka,la,oa,qa,ra,ua,va,wa,xa,ya,baa,caa,za,Aa,daa,Ba,Ca,Da,Ea,Ia,Ja,faa,gaa,Ra,Sa,Ta,haa,Ua,iaa,Ya,Za,gb,ib,lb,kaa,qb,yb,laa,Eb,Fb,maa,Lb,Hb,naa,Jb,oaa,paa,qaa,Tb,Vb,Yb,ac,bc,cc,dc,fc,jc,kc,nc,uc,vc,wc,yc,xc,Ac,Bc,Cc,Dc,Ec,Fc,Gc,Pc,Rc,Nc,Kc,Uc,Vc,Xc,Zc,Wc,$c,ad,bd,cd,fd,hd,id,jd,kd,ld,md,nd,od,pd,sd,td,ud,wd,yd,xd,Ad,vaa,zd,Bd,vd,Dd,Ed,Fd,Cd,Gd,Id,Nd,Kd,Od,Qd,Rd,yaa,Pd,Sd,Td,Vd,Ud,Wd,Xd,Yd,Zd,zaa,ae,be,ce,ee,fe,ge,he,Aaa,ie,Baa,je,Caa,ke,le,oe,pe,re,se,te,Daa,ye,Ae,
   Be,De,Faa,Ee,Fe,Ge,He,Je,Le,Gaa,Ie,Qe,Re,Oe,Iaa,Me,Ke,Ve,Ze,$e,af,bf,cf,df,Jaa,ff,jf,kf,nf,pf,qf,Maa,rf,vf,Bf,Cf,Ff,Paa,Df,Qaa,Taa,Uaa,Lf,Of,Vaa,Waa,Nf,Xaa,Rf,Uf,Vf,Wf,$f,bg,eg,fg,gg,jg,kg,lg,mg,$aa,aba,qg,rg,xg,yg,Ag,zg,Cg,Fg,Eg,Dg,bba,og,Pg,Og,Rg,Qg,ng,Tg,dba,Ug,Vg,Xg,eba,bh,dh,fh,gh,ih,jh,kh,mh,fba,gba,oh,rh,nh,ph,eh,lh,iba,uh,sh,th,wh,hba,vh,Ah,Bh,Ch,Dh,jba,Eh,Fh,kba,Gh,Hh,Ih,Jh,Kh,Lh,oba,Mh,pba,Nh,Oh,Ph,Qh,Rh,Sh,Vh,Wh,Xh,sba,Yh,$h,uba,bi,ci,di,ei,fi,ji,ki,li,mi,ni,oi,pi,qi,si,ui,vi,xi,yi,zi,
   wba,xba,yba,Ei,Ci,Ji,Di,Ki,Ii,Mi,Aba,Bba,Hi,Ni,Cba,Oi,Pi,Qi,Ri,Si,Ti,Ui,dj,ij,hj,jj,kj,Hba,Gba,lj,Iba,mj,nj,oj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Fj,Lba,Kba,Ij,Kj,Lj,Jj,Hj,Gj,Mj,Nj,Oj,Qj,Pj,Vj,Wj,Yj,Oba,Xj,bk,dk,ck,Mba,Pba,gk,ik,jk,kk,lk,mk,nk,ok,pk,qk,rk,Qba,sk,tk,uk,vk,wk,xk,yk,Gk,Sba,Hk,Ik,Jk,Fk,Kk,Tba,Vba,Uba,Wba,Yba,Lk,Mk,Zba,Nk,Ok,$ba,aca,Qk,Rk,Uk,Vk,Wk,Xk,Yk,$k,al,bca,bl,cca,dca,cl,eca,fca,el,fl,gl,dl,jl,kl,hca,ica,jca,il,hl,lca,ll,mca,ml,nl,ol,pl,ql,rl,sl,nca,tl,ul,vl,oca,pca,
   wl,yl,xl,Al,Bl,Cl,Dl,El,Gl,Fl,Hl,Il,sca,uca,vca,xca,Kl,Ll,Ml,Nl,Ol,Ql,Rl,Wl,Xl,$l,yca,cm,bm,dm,zca,lm,om,mm,Bca,nm,pm,qm,sm,rm,Cca,tm,Eca,Dca,Fca,Bm,Cm,Gca,Em,Fm,Gm,Dm,Hm,Hca,Im,Ica,Jca,Km,Lm,Nca,Mm,Nm,Om,Pm,Oca,Rm,Tm,Wm,Zm,an,Ym,Xm,bn,Pca,cn,dn,en,fn,Rca,ln,mn,nn,Tca,on,pn,qn,rn,sn,tn,un,Uca,wn,xn,yn,An,zn,Bn,Cn,Dn,En,Fn,Gn,Hn,In,Jn,Kn,Vca,Ln,Mn,Wca,Nn,On,Xca,Qn,Yca,Rn,Sn,Zca,$ca,Tn,Un,Wn,Yn,Zn,$n,ao,bo,Vn,Xn,bda,co,eo,go,fo,cda,dda,eda,ho,io,jo,ko,ida,jda,kda,lda,mda,mo,no,nda,oo,oda,pda,po,qo,
   ro,qda,so,uo,vo,wo,xo,yo,zo,Ao,Bo,Co,rda,sda,Do,tda,Fo,Eo,Io,Jo,Ho,Bfa,Mfa,Lfa,Mo,Nfa,Ofa,Pfa,Rfa,Qfa,No,Oo,Po,Sfa,Ro,So,Tfa,Ufa,To,Uo,Vo,Wo,Vfa,Xo,Yo,Xfa,Zo,Yfa,$o,bp,ap,cp,dp,fp,$fa,op,Zfa,pp,aga,qp,cga,dga,sp,up,vp,wp,xp,tp,yp,zp,Ep,Fp,Cp,ega,gga,hga,Hp,Ip,Jp,Kp,iga,Lp,Mp,Np,Op,Pp,Qp,Rp,Sp,Vp,Up,kga,lga,Wp,Yp,Tp,Xp,jga,Zp,$p,nga,oga,pga,qga,dq,eq,fq,aq,gq,hq,mga,rga,sga,jq,iq,kq,mq,xga,tga,yga,qq,rq,sq,tq,uq,to,zga,vq,Aga,Bga,Cga,Dga,Ega,xq,yq,zq,Aq,Cq,Eq,Jga,Hq,Iq,Mq,Kga,Nq,Oq,Uq,Zq,Yq,Vq,Wq,
   Xq,cr,br,Lga,er,fr,hr,Nga,jr,kr,lr,Sga,Oga,qr,Xga,rr,sr,Zga,vr,wr,xr,yr,$ga,Br,Cr,Dr,Er,Gr,Hr,Ir,Jr,Lr,Mr,Nr,Or,Pr,bha,Rr,cha,Sr,dha,Ur,Wr,Xr,gha,hha,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,zs,As,Ds,Bs,Es,iha,Hs,Is,Ks,Ls,Ns,Qs,Rs,Ps,Ss,Ts,Us,Js,pt,Ws,nha,rt,vt,oha,At,zt,qha,rha,sha,Et,tha,uha,Bt,Gt,Ft,vha,It,Jt,Kt,Qt,Rt,St,Ut,Vt,Xt,Yt,Zt,au,bu,cu,eu,gu,hu,Tt,iu,ku,ju,wha,nu,ou,pu,qu,tu,uu,vu,wu,yha,zha,Du,Eu,Fu,Aha,Ku,Lu,Mu,Ou,Bha,Qu,Ru,Nu,Uu,Xu,Wu,Vu,Zu,bv,$u,
   Cha,lv,kv,Eha,Fha,qv,tv,uv,Iha,Hha,nv,Ev,Fv,Gv,Lv,Mv,Jv,Nv,Pv,Rv,Sv,Kha,Tv,Vv,Lha,bw,cw,fw,ew,gw,hw,jw,kw,lw,mw,Pha,Qha,ow,pw,rw,tw,qw,uw,Rha,vw,ww,xw,yw,zw,Bw,Cw,Sha,Tha,Dw,Hw,Iw,Aw,Jw,Vha,Ew,Wha,Lw,Xha,Fw,Kw,Mw,Gw,Uha,Ow,Pw,Yha,Qw,Rw,Nw,Zha,Sw,Tw,Uw,Vw,Ww,Yw,Zw,$w,$ha,aia,bia,dx,fx,gx,cia,dia,eia,fia,gia,hx,hia,jx,ix,mx,iia,lx,kx,ox,nx,px,qx,sx,jia,xx,wx,rx,yx,kia,zx,lia,Bx,Dx,Ex,Fx,Gx,Hx,mia,nia,Cx,Ix,pia,qia,Kx,Lx,Mx,Nx,sia,ria,Ox,Qx,Px,uia,Xx,Yx,via,Ux,wia,Rx,Vx,Tx,Sx,Wx,xia,cy,dy,zia,yia,Cia,
   Aia,Fia,Gia,Eia,fy,iy,jy,Iia,hy,ky,ly,ny,oy,ry,sy,py,Kia,ty,uy,Lia,wy,yy,zy,Oia,By,Cy,Pia,Qia,Ria,Fy,Tia,Uia,Via,Hy,Wia,Yia,Iy,Zia,Jy,Ky,Yv,gja,Oy,hja,ija,jja,Py,lja,Hz,mja,pja,sja,qja,Rz,Qz,tja,Pz,Sz,Tz,wja,yja,Xz,Yz,Aja,T,Zz,$z,aA,bA,cA,dA,Bja,eA,fA,gA,hA,Gja,Ija,Kja,Mja,Nja,jA,Pja,Qja,pA,qA,Rja,Sja,rA,uA,vA,Tja,xA,Uja,AA,zA,BA,Vja,CA,DA,wA,EA,Wja,Zja,$ja,FA,GA,HA,aka,IA,JA,LA,MA,bka,gka,NA,hka,jka,OA,RA,QA,UA,TA,mka,VA,WA,lka,nka,XA,PA,oka,pka,ZA,$A,aB,bB,cB,dB,fB,gB,iB,qka,jB,mB,nB,lB,uka,yka,
   rB,tka,ska,sB,zka,Aka,Bka,wB,xB,Cka,Dka,yB,vB,Fka,Eka,zB,Gka,AB,BB,Hka,CB,DB,EB,FB,GB,HB,IB,JB,KB,LB,Ika,MB,OB,Kka,Lka,NB,Mka,Nka,PB,Oka,SB,Pka,TB,VB,Qka,UB,WB,Rka,YB,Tka,$B,aC,fC,Vka,cC,hC,jC,Wka,lC,eC,iC,gC,Xka,mC,Yka,nC,Zka,bC,dC,Uka,kC,oC,$ka,ala,pC,bla,dla,ela,qC,fla,sC,gla,rC,tC,hla,uC,vC,wC,xC,yC,ila,AC,jla,kla,BC,CC,DC,EC,lla,zC,FC,mla,nla,GC,HC,IC,JC,ola,pla,LC,qla,MC,NC,rla,sla,OC,tla,ula,yla,zla,vla,wla,xla,PC,RC,QC,SC,TC,Ala,Bla,UC,VC,WC,Cla,XC,YC,ZC,Dla,Ela,$C,Fla,aD,Gla,bD,cD,Hla,Ila,
   Jla,Kla,Mla,Lla,eD,Nla,Ola,Pla,fD,gD,hD,Qla,jD,iD,nD,oD,pD,qD,rD,Rla,sD,lD,Sla,tD,vD,wD,Tla,xD,yD,zD,AD,BD,CD,DD,ED,Ula,FD,GD,Vla,HD,ID,LD,MD,ND,OD,PD,Wla,QD,RD,SD,Xla,Yla,TD,UD,wka,qB,bma,cma,dma,ema,fma,gma,kB,hma,VD,lma,kma,jma,WD,ima,nma,XD,rma,oma,pma,tma,uma,$D,sma,vma,aE,bE,cE,wma,xma,yma,dE,ZD,zma,Ama,Bma,eE,Cma,Dma,Ema,gE,fE,Fma,Gma,Hma,hE,Ima,Jma,Lma,xka,vka,iE,kE,mE,nE,oE,pE,lE,sE,Nma,uE,Pma,vE,Rma,Qma,Oma,Sma,Tma,Uma,wE,rka,xE,Vma,oB,Wma,zE,AE,Xma,Yma,Zma,$ma,ana,BE,bna,CE,DE,cna,EE,dna,
   GE,ena,HE,IE,JE,KE,fna,gna,hna,jna,LE,kna,ina,ME,NE,OE,PE,lna,QE,RE,oF,jF,pna,una,pF,sF,tF,bF,Ana,SE,vna,kF,mF,wF,AF,rna,Bna,ZE,DF,YE,tna,EF,nna,nF,zna,GF,HF,Dna,Ena,IF,Fna,Gna,Hna,Ina,JF,Jna,Ona,Nna,Kna,Mna,Lna,KF,Pna,LF,Qna,Rna,MF,OF,PF,Una,Vna,TF,UF,Wna,VF,WF,Xna,Yna,$na,coa,doa,eoa,ZF,ioa,koa,loa,moa,aoa,goa,hoa,noa,ooa,soa,uoa,dG,eG,voa,xoa,yoa,zoa,Aoa,Goa,gG,Hoa,Joa,Ioa,Koa,kG,Loa,hG,lG,mG,Moa,oG,Qoa,Noa,Poa,vG,xG,cpa,Yoa,tG,BG,bpa,dpa,CG,epa,fpa,DG,Woa,hpa,gpa,qG,uG,wG,npa,jpa,opa,kpa,lpa,
   mpa,ppa,EG,qpa,rpa,GG,HG,JG,pG,AG,Zoa,Ooa,apa,$oa,LG,tpa,ipa,SG,TG,UG,VG,wpa,WG,xpa,YG,XG,Xoa,ypa,spa,zG,zpa,Toa,sG,Soa,woa,bH,cH,Bpa,dH,rH,sH,uH,tH,vH,Cpa,Dpa,wH,yH,Epa,Fpa,Hpa,Gpa,zH,AH,Ipa,Jpa,BH,Kpa,CH,DH,EH,FH,GH,HH,Lpa,IH,Mpa,JH,LH,Ppa,KH,Qpa,Npa,Opa,Rpa,Spa,MH,NH,OH,PH,QH,RH,Upa,Vpa,WH,VH,Ypa,Xpa,Zpa,ZH,Wpa,$H,SH,aI,YH,XH,UH,TH,aqa,cI,eI,gI,hI,cqa,iI,bqa,jI,kI,lI,mI,nI,oI,dqa,pI,eqa,qI,gqa,sI,hqa,iqa,jqa,mqa,kqa,lqa,nqa,tI,oqa,pqa,qqa,rqa,sqa,uI,vI,wI,xI,yI,zI,AI,BI,CI,DI,EI,FI,GI,HI,II,JI,
   KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,ZI,$I,aJ,bJ,cJ,dJ,eJ,fJ,gJ,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,qJ,rJ,sJ,uqa,tqa,wqa,xqa,vqa,tJ,yqa,uJ,vJ,wJ,yJ,zqa,xJ,zJ,AJ,BJ,Aqa,EJ,FJ,Bqa,Gqa,GJ,Hqa,HJ,IJ,Iqa,JJ,Jqa,Kqa,Mqa,Nqa,Oqa,LJ,KJ,Lqa,MJ,Rqa,Pqa,Qqa,Tqa,Uqa,NJ,Vqa,Sqa,OJ,PJ,Yqa,Zqa,QJ,$qa,ara,RJ,TJ,UJ,VJ,WJ,ZJ,aK,bK,bra,cra,cK,era,fra,dK,gra,fK,hra,ira,gK,hK,jra,kra,iK,mra,lra,jK,pra,kK,qra,lK,mK,nK,pK,rra,sra,tra,ura,vra,qK,sK,zra,Cra,wra,tK,Mra,Lra,uK,Ora,Nra,Qra,Rra,Tra,Sra,Ura,Vra,Wra,Xra,vK,wK,Yra,
   Zra,$ra,bsa,csa,dsa,esa,fsa,DK,hsa,isa,BK,CK,gsa,jsa,ksa,EK,nsa,lsa,psa,osa,qsa,$pa,rsa,ssa,tsa,usa,FK,zsa,wsa,xsa,ysa,Asa,GK,Bsa,Dsa,Esa,Csa,HK,Fsa,eK,Hsa,Isa,dra,Gsa,IK,JK,Jsa,Ksa,Lsa,KK,MK,Nsa,NK,QK,Osa,RK,Psa,Qsa,SK,Ssa,Tsa,Usa,Vsa,Wsa,Xsa,Ysa,XK,Zsa,YK,$sa,ata,bta,cta,dta,bL,cL,dL,eta,eL,fta,gL,hta,gta,hL,iL,jL,kL,ita,lL,mL,jta,nL,oL,nta,kta,mta,lta,ota,pL,qL,pta,qta,rta,sta,rL,tta,vta,uta,sL,tL,uL,vL,wL,yL,zL,AL,BL,CL,wta,DL,EL,yta,xta,FL,zta,GL,HL,IL,JL,KL,NL,OL,PL,QL,RL,SL,TL,UL,Bta,Dta,Cta,
   VL,Gta,Hta,Jta,Kta,Mta,ZL,Nta,$L,aM,bM,cM,Pta,eM,Rta,Qta,Tta,Sta,fM,gM,hM,iM,jM,kM,lM,oM,Uta,Wta,Xta,qM,Yta,Xv,$ta,Zta,rM,bua,aua,dua,cua,eua,gua,hua,jua,kua,oua,nua,pua,wM,qua,zM,xM,AM,yM,vsa,rua,sua,tua,uua,FM,EM,xua,HM,Aua,QM,RM,Bua,SM,TM,Cua,Dua,VM,WM,Eua,Lua,Mua,Pua,Nua,Qua,Rua,Sua,Tua,Vua,gN,Zua,jN,ava,Yua,bva,cva,iN,$ua,kN,lN,mN,JM,nN,CM,pN,fva,dva,eva,qN,tN,hva,sN,vN,iva,jva,yN,zN,AN,EN,lva,mva,FN,GN,nva,ova,pva,qva,HN,rva,sva,IN,tva,uva,KN,LN,vva,ON,xva,QN,MN,yva,zva,wva,RN,SN,VN,Ava,UN,
   XN,WN,ZN,aO,Bva,dO,Cva,Fva,Dva,hO,iO,Gva,lO,mO,nO,oO,qO,Iva,Hva,Jva,sO,Lva,Kva,Mva,Nva,Ova,Pva,yO,zO,Qva,AO,BO,Rva,Sva,CO,FO,Uva,Tva,GO,HO,IO,Vva,JO,KO,LO,MO,Wva,NO,OO,Xva,PO,Yva,$va,Zva,UO,SO,TO,awa,bwa,cwa,VO,WO,XO,YO,ZO,dwa,bP,ewa,dP,eP,fP,hP,iP,jP,kP,fwa,iwa,lP,gwa,hwa,mwa,nwa,nP,pwa,owa,qwa,rwa,swa,pP,rP,twa,vwa,uwa,sP,tP,uP,vP,wwa,xwa,ywa,zwa,Awa,yP,Cwa,Bwa,Ewa,AP,Fwa,FP,Hwa,Iwa,CP,zP,BP,HP,Lwa,IP,EP,Dwa,Kwa,GP,Gwa,Jwa,Mwa,Nwa,DP,KP,LP,MP,NP,Pwa,QP,RP,SP,TP,UP,VP,Qwa,WP,YP,XP,ZP,$P,Rwa,aQ,Swa,
   Uwa,Twa,bQ,cQ,Vwa,dQ,eQ,Wwa,fQ,Xwa,gQ,Ywa,hQ,Zwa,lQ,kQ,oQ,nQ,$wa,mQ,rQ,axa,bxa,sQ,tQ,uQ,vQ,xQ,cxa,bO,gxa,wO,dxa,qQ,fxa,xO,exa,hxa,jxa,ixa,kxa,lxa,BQ,mxa,CQ,nxa,EQ,FQ,GQ,HQ,IQ,JQ,KQ,pxa,LQ,MQ,NQ,OQ,QQ,qxa,rxa,RQ,SQ,TQ,UQ,$Q,vxa,wxa,yxa,aR,bR,cR,Axa,Cxa,Bxa,dR,Exa,Fxa,Gxa,Hxa,Ixa,Jxa,eR,fR,gR,Kxa,hR,Mxa,Nxa,Oxa,Pxa,Qxa,Rxa,jR,kR,mR,nR,oR,Uxa,lR,Vxa,pR,Sxa,Txa,Wxa,qR,rR,sR,tR,Yxa,Zxa,uR,vR,Xxa,xR,aya,dya,cya,eya,fya,gya,yR,zR,AR,BR,hya,FR,iya,jya,kya,GR,lya,HR,IR,JR,LR,qya,nya,oya,KR,mya,sya,rya,uya,
   vya,wya,xya,yya,MR,tya,NR,OR,PR,zya,QR,Aya,RR,SR,Dya,Eya,Bya,Cya,TR,UR,Hya,Iya,Gya,Kya,VR,Nya,Oya,Pya,Lya,Qya,Mya,Sya,Tya,WR,YR,Uya,Vya,Wya,Xya,Yya,$R,aS,Zya,$ya,aza,bS,dza,cza,cS,eza,dS,kza,gza,fza,bza,iza,jza,lza,mza,nza,oza,pza,rza,qza,sza,tza,uza,vza,wza,eS,Aza,xza,Bza,fS,Cza,Eza,Fza,Dza,gS,Gza,hS,Jza,Kza,Iza,Hza,jS,yza,zza,Pza,Qza,Rza,Sza,lS,Tza,iS,Lza,Nza,Oza,Xza,Uza,Wza,Yza,Zza,Vza,$za,aAa,bAa,nS,cAa,dAa,fAa,gAa,hAa,iAa,jAa,rS,kAa,lAa,mAa,sS,tS,uS,vS,rAa,uAa,sAa,oAa,xS,nAa,tAa,AS,wAa,vAa,BS,
   yAa,AAa,BAa,zAa,ES,CAa,GAa,HAa,LS,MS,NS,IAa,GS,OS,QS,JAa,JS,SS,KAa,TS,LAa,US,RS,NAa,OAa,PAa,QAa,RAa,HS,EAa,VS,WS,WAa,XS,XAa,YAa,UAa,ZS,ZAa,$S,SAa,bT,VAa,$Aa,aT,YS,aBa,cT,bBa,dBa,fT,dT,gT,eT,hT,iT,eBa,jT,kT,lT,mT,fBa,nT,gBa,pT,iBa,jBa,kBa,XT,NT,qT,lBa,mBa,nBa,oBa,bU,cU,dU,pBa,qBa,rBa,eU,sBa,gU,tBa,fU,hU,iU,uBa,wBa,ABa,xBa,yBa,zBa,BBa,nU,oU,CBa,EBa,FBa,GBa,pU,qU,LBa,MBa,NBa,vU,wU,OBa,xU,KBa,PBa,rU,HBa,QBa,sU,tU,IBa,JBa,uU,RBa,SBa,TBa,foa,joa,zU,AU,VBa,UBa,BU,CU,DU,WBa,XBa,YBa,EU,ZBa,$Ba,FU,aCa,GU,HU,
   bCa,IU,dCa,JU,iCa,LU,lU,cCa,kCa,NU,gCa,hCa,fCa,MU,KU,eCa,jCa,oCa,mCa,lCa,PU,pCa,QU,qCa,RU,SU,rCa,sCa,tCa,uCa,vCa,UU,VU,WU,XU,YU,ZU,yCa,zCa,kU,mU,CCa,bV,cV,DBa,fV,aV,DCa,$U,ACa,BCa,gV,hV,ECa,eV,jU,dV,FCa,GCa,HCa,iV,JCa,ICa,jV,kV,OCa,NCa,mV,lV,QCa,oV,nV,RCa,LCa,qV,PCa,MCa,pV,rV,SCa,TCa,sV,vV,VCa,tV,ZCa,uV,$Ca,wV,XCa,WCa,aDa,xV,bDa,cDa,fDa,eDa,dDa,yV,gDa,jDa,kDa,DV,EV,mDa,nDa,GV,HV,JV,qDa,KV,rDa,BV,lDa,tDa,uDa,wDa,nCa,NV,vDa,IV,oDa,xDa,yDa,zDa,ADa,hDa,CV,AV,FV,BDa,CDa,QV,RV,DDa,EDa,FDa,HDa,GDa,SV,IDa,
   KDa,JDa,MDa,UV,QDa,NDa,PDa,RDa,VV,VDa,TDa,UDa,XDa,YDa,ZDa,WV,TV,$Da,SDa,aEa,XV,bEa,ODa,cEa,YV,ZV,dEa,fEa,gEa,$V,eEa,aW,bW,hEa,cW,dW,eW,fW,jEa,mEa,lEa,kEa,hW,nEa,gW,oEa,jW,lW,pEa,sEa,qEa,rEa,tEa,vEa,uEa,wEa,xEa,mW,zEa,BEa,AEa,CEa,DEa,yEa,EEa,GEa,IEa,JEa,FEa,KEa,LEa,NEa,MEa,OEa,HEa,nW,PEa,QEa,REa,SEa,UEa,oW,pW,WEa,sW,tW,ZEa,uW,$Ea,aFa,vW,XEa,bFa,cFa,dFa,yW,eFa,gFa,fFa,hFa,zW,AW,iFa,BW,kFa,CW,DW,mFa,FW,EW,nFa,HW,lFa,IW,oFa,GW,pFa,JW,qFa,YEa,xW,sFa,tFa,uFa,vFa,wFa,xFa,yFa,zFa,BFa,CFa,DFa,AFa,EFa,FFa,
   GFa,LW,HFa,IFa,MW,NW,JFa,KFa,LFa,PW,NFa,RW,OFa,PFa,QW,OW,MFa,UW,TW,QFa,VW,SW,RFa,XW,VFa,$W,WFa,TFa,YW,XFa,aX,UFa,YFa,bX,$Fa,WW,aGa,bGa,ZFa,cGa,ZW,dGa,eGa,SFa,cX,dX,eX,fX,gX,fGa,hX,TU,xCa,gGa,hGa,iDa,wCa,iX,iGa,jGa,kGa,mGa,nGa,oGa,pGa,qGa,rGa,jX,tGa,kX,uGa,vGa,wGa,mX,nX,oX,pX,qX,rX,sX,xGa,tX,yGa,CGa,AGa,zGa,HGa,GGa,FGa,uX,sGa,lX,IGa,NGa,LGa,OGa,MGa,JGa,PGa,KGa,RGa,vX,TGa,UGa,VGa,bI,AX,WGa,kS,ZGa,DAa,$Ga,BX,kW,aHa,IX,DX,DS,YGa,KX,MV,OV,LX,Mza,GX,HX,LV,eHa,dHa,bHa,EX,MX,gHa,yS,hHa,iW,xAa,OX,PS,XGa,CX,
   iHa,kHa,jHa,lHa,PX,qAa,mHa,nHa,cHa,wX,oHa,QX,FX,xX,pHa,RX,zS,qHa,SX,KS,rHa,sHa,tHa,pAa,NX,fHa,sDa,AHa,wHa,DHa,vHa,EHa,FHa,YX,aY,JHa,GHa,IHa,cY,HHa,dY,eY,LHa,TX,VX,zHa,kY,MHa,jY,XX,NHa,OHa,CHa,nY,PHa,QHa,UX,gY,hY,fY,qY,VHa,bY,mY,rY,sY,WHa,iY,KHa,pY,RHa,tY,XHa,YHa,ZHa,BM,$Ha,lY,uY,bIa,ZX,vY,$X,cIa,dIa,yHa,oY,eIa,xHa,wY,xY,hBa,fIa,yY,zY,AY,gIa,BY,CY,DY,EY,FY,GY,iIa,hIa,HY,jIa,IY,Wz,X,JY,lIa,LY,nIa,KY,oIa,NY,pIa,OY,MY,PY,QY,Dqa,Eqa,fqa,SY,rIa,aZ,Fqa,bZ,CJ,ZY,cZ,vIa,wIa,xIa,yIa,qIa,zIa,RY,AIa,BIa,fZ,WY,
   eZ,kZ,gZ,UY,CIa,TY,sIa,dZ,hZ,mZ,XY,YY,jZ,iZ,EIa,nZ,oZ,FIa,pZ,Y,GIa,HIa,KIa,LIa,PIa,qZ,QIa,MIa,RIa,rZ,sZ,tZ,TIa,WIa,UIa,ZIa,gJa,fJa,$Ia,hJa,bJa,cJa,aJa,kJa,mJa,pJa,qJa,sJa,tJa,xJa,FZ,uJa,AJa,yJa,CJa,HZ,xja,DJa,KZ,Uz,MZ,NZ,uja,OZ,FJa,GJa,GZ,DZ,vZ,yZ,PZ,QZ,zZ,HJa,YIa,wZ,xZ,CZ,IJa,JJa,RZ,KJa,SZ,LJa,IZ,BZ,AZ,uZ,nJa,rJa,EZ,vJa,iJa,dJa,TZ,UZ,VZ,MJa,WZ,XZ,YZ,ZZ,$Z,a_,b_,c_,IIa,d_,JIa,OJa,NJa,SIa,oJa,PJa,BJa,QJa,RJa,lJa,XIa,VIa,OIa,NIa,eJa,wJa,zJa,jJa,TJa,e_,SJa,f_,DJ,VY,tIa,LZ,g_,h_,i_,UJa,j_,k_,l_,lZ,$Y,
   VJa,JZ,m_,WJa,n_,p_,q_,r_,s_,YJa,u_,v_,w_,XJa,t_,ZJa,$Ja,x_,Vz,dKa,cKa,y_,z_,o_,eKa,fKa,A_,B_,gKa,C_,D_,hKa,iKa,jKa,kKa,E_,lKa,F_,G_,H_,I_,J_,K_,mKa,L_,M_,N_,O_,P_,Q_,R_,S_,nKa,oKa,pKa,T_,U_,V_,W_,qKa,X_,rKa,Y_,sKa,Z_,tKa,$_,a0,b0,c0,d0,e0,uKa,g0,h0,vKa,wKa,xKa,j0,i0,l0,m0,k0,o0,yKa,zKa,bKa,n0,p0,AKa,q0,CKa,BKa,r0,s0,EJa,DKa,t0,EKa,u0,GKa,HKa,FKa,IKa,v0,JKa,KKa,LKa,w0,x0,y0,MKa,z0,A0,B0,NKa,C0,D0,OKa,E0,f0,F0,G0,Cqa,H0,PKa,I0,QKa,J0,K0,RKa,SKa,L0,M0,N0,TKa,O0,UKa,P0,Q0,WKa,VKa,XKa,YKa,ZKa,R0,S0,T0,
   $Ka,aLa,bLa,cLa,dLa,eLa,fLa,gLa,U0,V0,hLa,iLa,W0,X0,Y0,Z0,jLa,$0,a1,kLa,b1,lLa,mLa,c1,nLa,oLa,d1,e1,pLa,f1,g1,i1,qLa,j1,k1,l1,rLa,m1,sLa,n1,o1,tLa,p1,uLa,q1,vLa,wLa,xLa,yLa,zLa,s1,ALa,BLa,CLa,DLa,ELa,t1,u1,FLa,v1,w1,x1,y1,GLa,z1,HLa,ILa,JLa,C1,KLa,LLa,MLa,NLa,D1,B1,OLa,F1,PLa,G1,QLa,H1,I1,J1,K1,L1,RLa,TLa,SLa,ULa,M1,VLa,WLa,N1,XLa,O1,P1,Q1,YLa,ZLa,R1,$La,S1,aMa,T1,bMa,cMa,dMa,vja,eMa,fMa,aa,fa,ea,Fi,Ma,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
   g.ca=function(a,b){return aa[a]=b};
   da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
   aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
   ha=function(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
   ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
   return a};
   g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
   ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
   g.v=function(a){return a instanceof Array?a:ka(g.r(a))};
   la=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
   g.w=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.le=b.prototype};
   oa=function(){this.K=!1;this.D=null;this.u=void 0;this.i=1;this.C=this.J=0;this.Z=this.B=null};
   qa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
   ra=function(a,b){a.B={UJ:b,fL:!0};a.i=a.J||a.C};
   g.A=function(a,b,c){a.i=c;return{value:b}};
   g.sa=function(a){a.i=0};
   ua=function(a,b,c){a.J=b;void 0!=c&&(a.C=c)};
   va=function(a,b){a.i=b;a.J=0};
   wa=function(a){a.J=0;var b=a.B.UJ;a.B=null;return b};
   xa=function(a){a.Z=[a.B];a.J=0;a.C=0};
   ya=function(a,b){var c=a.Z.splice(0)[0];(c=a.B=a.B||c)?c.fL?a.i=a.J||a.C:void 0!=c.fb&&a.C<c.fb?(a.i=c.fb,a.B=null):a.i=a.C:a.i=b};
   baa=function(a){this.i=new oa;this.u=a};
   caa=function(a,b){qa(a.i);var c=a.i.D;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
   a.i.return(b);return Aa(a)};
   za=function(a,b,c,d){try{var e=b.call(a.i.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.i.K=!1,e;var f=e.value}catch(h){return a.i.D=null,ra(a.i,h),Aa(a)}a.i.D=null;d.call(a.i,f);return Aa(a)};
   Aa=function(a){for(;a.i.i;)try{var b=a.u(a.i);if(b)return a.i.K=!1,{value:b.value,done:!1}}catch(c){a.i.u=void 0,ra(a.i,c)}a.i.K=!1;if(a.i.B){b=a.i.B;a.i.B=null;if(b.fL)throw b.UJ;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
   daa=function(a){this.next=function(b){qa(a.i);a.i.D?b=za(a,a.i.D.next,b,a.i.S):(a.i.S(b),b=Aa(a));return b};
   this.throw=function(b){qa(a.i);a.i.D?b=za(a,a.i.D["throw"],b,a.i.S):(ra(a.i,b),b=Aa(a));return b};
   this.return=function(b){return caa(a,b)};
   this[Symbol.iterator]=function(){return this}};
   g.B=function(a,b){b=new daa(new baa(b));na&&a.prototype&&na(b,a.prototype);return b};
   Ba=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{NK:e,EO:f}}return{NK:-1,EO:void 0}};
   Ca=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
   e[Symbol.iterator]=function(){return e};
   return e};
   Da=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+""};
   Ea=function(a){return a?a:Array.prototype.fill};
   g.Fa=function(a,b,c){a=a.split(".");c=c||g.D;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.Ga=function(a,b){a=a.split(".");b=b||g.D;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
   g.Ha=function(){};
   Ia=function(a){a.Qe=void 0;a.getInstance=function(){return a.Qe?a.Qe:a.Qe=new a}};
   Ja=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
   g.Ka=function(a){var b=Ja(a);return"array"==b||"object"==b&&"number"==typeof a.length};
   g.La=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
   g.Na=function(a){return Object.prototype.hasOwnProperty.call(a,Ma)&&a[Ma]||(a[Ma]=++eaa)};
   faa=function(a,b,c){return a.call.apply(a.bind,arguments)};
   gaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
   g.E=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.E=faa:g.E=gaa;return g.E.apply(null,arguments)};
   g.Oa=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.Pa=function(){return Date.now()};
   g.Qa=function(a,b){function c(){}
   c.prototype=b.prototype;a.le=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.jg=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)}};
   Ra=function(a){return a};
   Sa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Sa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.dR=b)};
   Ta=function(a,b){var c=Sa.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(Sa,this,d+a[e])};
   haa=function(){};
   Ua=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
   g.Va=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return b};
   iaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
   g.Wa=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
   g.Xa=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
   Ya=function(a,b){return 0==a.lastIndexOf(b,0)};
   Za=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
   g.$a=function(a){return/^[\s\xa0]*$/.test(a)};
   gb=function(a,b){if(b)a=a.replace(ab,"&amp;").replace(bb,"&lt;").replace(cb,"&gt;").replace(db,"&quot;").replace(eb,"&#39;").replace(fb,"&#0;");else{if(!jaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ab,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(bb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(cb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(db,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(eb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(fb,"&#0;"))}return a};
   ib=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
   g.nb=function(a,b){var c=0;a=jb(String(a)).split(".");b=jb(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.pb=function(a){return a[a.length-1]};
   kaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
   g.tb=function(a,b,c){b=qb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
   qb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
   g.ub=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
   g.wb=function(a,b){return 0<=vb(a,b)};
   g.xb=function(a){return 0==a.length};
   yb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
   g.Ab=function(a,b){b=vb(a,b);var c;(c=0<=b)&&g.zb(a,b);return c};
   g.zb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
   g.Bb=function(a,b){b=qb(a,b,void 0);0<=b&&g.zb(a,b)};
   laa=function(a,b){var c=0;kaa(a,function(d,e){b.call(void 0,d,e,a)&&g.zb(a,e)&&c++})};
   g.Cb=function(a){return Array.prototype.concat.apply([],arguments)};
   g.Db=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[]};
   Eb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ka(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.Gb=function(a,b,c,d){Array.prototype.splice.apply(a,Fb(arguments,1))};
   Fb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
   maa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.La(e)?"o"+g.Na(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
   g.Kb=function(a,b,c){return Hb(a,c||Jb,!1,b)};
   Lb=function(a,b){return Hb(a,b,!0,void 0,void 0)};
   Hb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
   g.Mb=function(a,b){a.sort(b||Jb)};
   naa=function(a,b){var c=Jb;g.Mb(a,function(d,e){return c(b(d),b(e))})};
   g.Ob=function(a,b){if(!g.Ka(a)||!g.Ka(b)||a.length!=b.length)return!1;for(var c=a.length,d=oaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
   Jb=function(a,b){return a>b?1:a<b?-1:0};
   oaa=function(a,b){return a===b};
   g.Pb=function(a,b,c){c=g.Kb(a,b,c);0>c&&g.Gb(a,-(c+1),0,b)};
   g.Rb=function(a,b,c){var d={};(0,g.Qb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
   return d};
   paa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
   qaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
   Tb=function(a){var b=Sb;return b?b.brands.some(function(c){return(c=c.brand)&&-1!=c.indexOf(a)}):!1};
   Vb=function(a){return-1!=g.Ub.indexOf(a)};
   g.Wb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
   g.Xb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
   Yb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
   g.Zb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
   ac=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
   bc=function(a){for(var b in a)return b};
   cc=function(a){for(var b in a)return a[b]};
   dc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
   g.ec=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
   fc=function(a,b){return null!==a&&b in a};
   g.gc=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
   jc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
   kc=function(a,b){return(b=jc(a,b,void 0))&&a[b]};
   g.lc=function(a){for(var b in a)return!1;return!0};
   g.mc=function(a){for(var b in a)delete a[b]};
   nc=function(a,b,c){return null!==a&&b in a?a[b]:c};
   g.oc=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.pc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
   g.qc=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.qc(a[c]);return b};
   g.tc=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<rc.length;f++)c=rc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
   uc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
   vc=function(){var a=Sb;return!!a&&0<a.brands.length};
   wc=function(){return vc()?Tb("Firefox"):Vb("Firefox")||Vb("FxiOS")};
   yc=function(){return vc()?Tb("Safari"):Vb("Safari")&&!(xc()||(Sb?0:Vb("Coast"))||(Sb?0:Vb("Opera"))||(Sb?0:Vb("Edge"))||(vc()?Tb("Edge"):Vb("Edg/"))||(vc()?Tb("Opera"):Vb("OPR"))||wc()||(vc()?Tb("Silk"):Vb("Silk"))||Vb("Android"))};
   xc=function(){return vc()?Tb("Chromium"):(Vb("Chrome")||Vb("CriOS"))&&!(Sb?0:Vb("Edge"))};
   Ac=function(){return Vb("iPhone")&&!Vb("iPod")&&!Vb("iPad")};
   Bc=function(){return Ac()||Vb("iPad")||Vb("iPod")};
   Cc=function(){var a=g.Ub,b="";Vb("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Bc()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Vb("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):ib(g.Ub,"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):Vb("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):Vb("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||
   ""};
   Dc=function(a){Dc[" "](a);return a};
   Ec=function(a,b){try{return Dc(a[b]),!0}catch(c){}return!1};
   Fc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
   Gc=function(){var a=g.D.document;return a?a.documentMode:void 0};
   g.Ic=function(a){return Fc(raa,a,function(){return 0<=g.nb(Hc,a)})};
   g.Jc=function(a){return Number(saa)>=a};
   g.Mc=function(a,b){void 0===b&&(b=0);Kc();b=Lc[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("")};
   Pc=function(a){var b=[];Nc(a,function(c){b.push(c)});
   return b};
   Rc=function(a){!g.Qc||g.Ic("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Nc(a,function(f){d[e++]=f});
   return d.subarray(0,e)};
   Nc=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Sc[n];if(null!=p)return p;if(!g.$a(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
   Kc();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))}};
   Kc=function(){if(!Sc){Sc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Lc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Sc[f]&&(Sc[f]=e)}}}};
   Uc=function(a,b,c){return b===c?Tc||(Tc=new Uint8Array(0)):taa?a.slice(b,c):new Uint8Array(a.subarray(b,c))};
   Vc=function(a){return a.constructor===Uint8Array?a:a.constructor===ArrayBuffer?new Uint8Array(a):a.constructor===Array?new Uint8Array(a):a.constructor===String?Rc(a):a instanceof Uint8Array?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0)};
   Xc=function(a,b,c,d){d=void 0===d?{}:d;d=void 0===d.Bl?!1:d.Bl;this.u=null;this.i=this.B=this.C=0;this.D=!1;this.Bl=d;a&&Wc(this,a,b,c)};
   Zc=function(a,b,c,d){if(Yc.length){var e=Yc.pop();d&&(e.Bl=d.Bl);a&&Wc(e,a,b,c);return e}return new Xc(a,b,c,d)};
   Wc=function(a,b,c,d){a.u=Vc(b);a.C=void 0!==c?c:0;a.B=void 0!==d?a.C+d:a.u.length;a.i=a.C};
   $c=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.u[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.u[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.i++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.D=!0};
   ad=function(a){var b=a.u,c=b[a.i+0],d=c&127;if(128>c)return a.i+=1,d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,d>>>0;a.i+=5;128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&a.i++;return d};
   bd=function(a){var b={},c=void 0===b.oD?!1:b.oD;this.K={Bl:void 0===b.Bl?!1:b.Bl};this.oD=c;this.i=Zc(a,void 0,void 0,this.K);this.J=this.i.i;this.u=this.D=this.C=-1;this.B=!1};
   cd=function(a){var b=a.i;(b=b.i==b.B)||(b=a.B)||(b=a.i,b=b.D||0>b.i||b.i>b.B);if(b)return!1;a.J=a.i.i;b=ad(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.D=b;a.C=b>>>3;a.u=c;return!0};
   fd=function(a){switch(a.u){case 0:if(0!=a.u)fd(a);else{for(a=a.i;a.u[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.u?fd(a):a.i.advance(8);break;case 2:if(2!=a.u)fd(a);else{var b=ad(a.i);a.i.advance(b)}break;case 5:5!=a.u?fd(a):a.i.advance(4);break;case 3:b=a.C;do{if(!cd(a)){a.B=!0;break}if(4==a.u){a.C!=b&&(a.B=!0);break}fd(a)}while(1);break;default:a.B=!0}};
   hd=function(a){var b=ad(a.i);a=a.i;var c=a.i;a.i+=b;a=a.u;var d;if(uaa)(d=gd)||(d=gd=new TextDecoder("utf-8",{fatal:!1})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,h,l,m;c<b;)h=a[c++],128>h?e.push(h):224>h?c>=b?e.push(65533):(l=a[c++],194>h||128!==(l&192)?(c--,e.push(65533)):e.push((h&31)<<6|l&63)):240>h?c>=b-1?e.push(65533):(l=a[c++],128!==(l&192)||224===h&&160>l||237===h&&160<=l||128!==((d=a[c++])&192)?(c--,e.push(65533)):e.push((h&15)<<12|(l&63)<<6|d&63)):244>=h?c>=b-2?e.push(65533):
   (l=a[c++],128!==(l&192)||0!==(h<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,e.push(65533)):(h=(h&7)<<18|(l&63)<<12|(d&63)<<6|m&63,h-=65536,e.push((h>>10&1023)+55296,(h&1023)+56320))):e.push(65533),8192<=e.length&&(f=Ua(f,e),e.length=0);d=Ua(f,e)}return d};
   id=function(a){var b=ad(a.i);a=a.i;if(0>b||a.i+b>a.u.length)a.D=!0,b=new Uint8Array(0);else{var c=a.Bl?a.u.subarray(a.i,a.i+b):Uc(a.u,a.i,a.i+b);a.i+=b;b=c}return b};
   jd=function(){this.i=new Uint8Array(64);this.u=0};
   kd=function(a,b){for(;127<b;)a.push(b&127|128),b>>>=7;a.push(b)};
   ld=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};
   md=function(){this.B=[];this.u=0;this.i=new jd};
   nd=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
   od=function(a){nd(a,a.i.end())};
   pd=function(a){var b=a.u+a.i.length();if(0===b)return new Uint8Array(0);b=new Uint8Array(b);for(var c=a.B,d=c.length,e=0,f=0;f<d;f++){var h=c[f];0!==h.length&&(b.set(h,e),e+=h.length)}c=a.i;d=c.u;0!==d&&(b.set(c.i.subarray(0,d),e),c.u=0);a.B=[b];return b};
   sd=function(a,b,c){if(null!=c&&null!=c){kd(a.i,8*b);a=a.i;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));qd=b;rd=d;c=qd;for(b=rd;0<b||127<c;)a.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.push(c)}};
   td=function(a,b,c){null!=c&&(c=Vc(c),kd(a.i,8*b+2),kd(a.i,c.length),od(a),nd(a,c))};
   ud=function(a,b,c,d){if(null!=c){kd(a.i,8*b+2);od(a);var e=a.u;b=a.B.length-1;d(c,a);od(a);kd(a.i,a.u+a.i.length()-e);c=a.i.end();a.u+=c.length;a.B.splice(1+b,0,c)}};
   wd=function(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)&&!vd(a)};
   yd=function(a,b){if(null!=a)return Array.isArray(a)||wd(a)?xd(a,b):b(a)};
   xd=function(a,b){if(Array.isArray(a)){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]=yd(a[d],b);Array.isArray(a)&&a.IS&&zd(c);return c}c={};for(d in a)c[d]=yd(a[d],b);return c};
   Ad=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":return vd(a)?g.Mc(a):a;default:return a}};
   vaa=function(a){return vd(a)?new Uint8Array(a):a};
   zd=function(a){Array.isArray(a)&&!Object.isFrozen(a)&&Object.defineProperties(a,waa);return a};
   Bd=function(a){return null==a||vd(a)?a:"string"===typeof a?Rc(a):null};
   vd=function(a){return xaa&&null!=a&&a instanceof Uint8Array};
   Dd=function(a,b){this.i=a;this.B=b;this.map={};this.u=!0;if(0<this.i.length){for(a=0;a<this.i.length;a++){b=this.i[a];var c=b[0];this.map[c.toString()]=new Cd(c,b[1])}this.u=!0}};
   Ed=function(a,b){return a.B?(b.i||(b.i=new a.B(b.value),a.isFrozen()&&null(b.i)),b.i):b.value};
   Fd=function(a){a=a.map;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};
   Cd=function(a,b){this.key=a;this.value=b;this.i=void 0};
   Gd=function(a){this.u=0;this.i=a};
   Id=function(a,b){Hd=b;a=new a(b);Hd=null;return a};
   Nd=function(a,b,c){var d=Hd;Hd=null;a||(a=d);d=this.constructor.WS;a||(a=d?[d]:[]);this.C=d?0:-1;this.i=null;this.u=a;a:{d=this.u.length;a=d-1;if(d&&(d=this.u[a],wd(d))){this.D=a-this.C;this.B=d;break a}void 0!==b&&-1<b?(this.D=Math.max(b,a+1-this.C),this.B=null):this.D=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)a=c[b],a<this.D?(a+=this.C,(d=this.u[a])?zd(d):this.u[a]=Jd):(Kd(this),(d=this.B[a])?zd(d):this.B[a]=Jd)};
   Kd=function(a){var b=a.D+a.C;a.u[b]||(a.B=a.u[b]={})};
   Od=function(a,b,c){return-1===b?null:(void 0===c?0:c)||b>=a.D?a.B?a.B[b]:void 0:a.u[b+a.C]};
   Qd=function(a,b){var c=void 0===c?!1:c;var d=Od(a,b,c);null==d&&(d=Jd);d===Jd&&(d=zd([]),Pd(a,b,d,c));return d};
   Rd=function(a,b,c){a=Od(a,b);return null==a?c:a};
   yaa=function(a,b,c){a.i||(a.i={});if(b in a.i)return a.i[b];var d=Od(a,b);d||(d=zd([]),Pd(a,b,d));c=new Dd(d,c);return a.i[b]=c};
   Pd=function(a,b,c,d){(void 0===d?0:d)||b>=a.D?(Kd(a),a.B[b]=c):a.u[b+a.C]=c;return a};
   Sd=function(a,b,c){var d=void 0===d?!1:d;return Pd(a,b,zd(c||[]),d)};
   Td=function(a,b,c,d){c!==d?Pd(a,b,c):Pd(a,b,void 0);return a};
   Vd=function(a,b,c,d){(c=Ud(a,c))&&c!==b&&null!=d&&(a.i&&c in a.i&&(a.i[c]=void 0),Pd(a,c,void 0));return Pd(a,b,d)};
   Ud=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=Od(a,e)&&(0!==c&&Pd(a,c,void 0),c=e)}return c};
   Wd=function(a,b,c,d,e){if(-1===c)return null;a.i||(a.i={});!a.i[c]&&(e=Od(a,c,void 0===e?!1:e),d||e)&&(a.i[c]=new b(e));return a.i[c]};
   Xd=function(a,b,c){a.i||(a.i={});var d=a.i[c];if(!d){var e=Qd(a,c);d=[];for(var f=0;f<e.length;f++)d[f]=new b(e[f]);a.i[c]=d}return d};
   Yd=function(a,b,c){var d=void 0===d?!1:d;a.i||(a.i={});var e=c?c.oh(!1):c;a.i[b]=c;return Pd(a,b,e,d)};
   Zd=function(a,b,c){var d=void 0===d?!1:d;if(c){var e=zd([]);for(var f=0;f<c.length;f++)e[f]=c[f].oh(!1);a.i||(a.i={});a.i[b]=c}else a.i&&(a.i[b]=void 0),e=Jd;return Pd(a,b,e,d)};
   zaa=function(a,b){return Ad(b)};
   ae=function(a){$d=!0;try{return JSON.stringify(a.toJSON(),zaa)}finally{$d=!1}};
   be=function(a,b){b.J&&(a.J=b.J.slice());var c=b.i;if(c){b=b.B;var d={},e;for(e in c){var f=c[e];if(f){var h=!(!b||!b[e]),l=+e;if(Array.isArray(f)){if(f.length)for(h=Xd(a,f[0].constructor,l),l=0;l<Math.min(h.length,f.length);l++)be(h[l],f[l])}else f instanceof Dd?f.B&&(d.AB=yaa(a,l,f.B),f.forEach(function(m){return function(n,p){return be(m.AB.get(p),n)}}(d))):(h=Wd(a,f.constructor,l,0,h))&&be(h,f)}d={AB:d.AB}}}};
   ce=function(a,b,c){return Rd(a,b,void 0===c?0:c)};
   ee=function(a,b,c){c=Ud(a,de)===c?c:-1;return Wd(a,b,c)};
   fe=function(a,b){if(a=a.J){od(b);for(var c=0;c<a.length;c++)nd(b,a[c])}};
   ge=function(a,b){if(4==b.u)return!1;var c=b.J;fd(b);b.oD||(b=Uc(b.i.u,c,b.i.i),(c=a.J)?c.push(b):a.J=[b]);return!0};
   he=function(a){Nd.call(this,a)};
   Aaa=function(a,b){td(b,1,Od(a,1));td(b,2,Od(a,2));fe(a,b)};
   ie=function(a){Nd.call(this,a)};
   Baa=function(a,b){td(b,1,Od(a,1));td(b,2,Od(a,2));fe(a,b)};
   je=function(a){Nd.call(this,a)};
   Caa=function(a,b){td(b,1,Od(a,1));td(b,2,Od(a,2));fe(a,b)};
   ke=function(a){Nd.call(this,a)};
   g.H=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
   function h(m){try{l(b["throw"](m))}catch(n){e(n)}}
   function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)}
   l((b=b.apply(a,void 0)).next())})};
   le=function(a,b){var c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b instanceof Error?(this.message=b.message,this.stack=null!==(c=b.stack)&&void 0!==c?c:""):(this.message=String(b),this.stack="");Object.setPrototypeOf(this,le.prototype)};
   g.me=function(a,b,c){this.C=a;this.D=b;this.i=this.B=a;this.J=c||0};
   g.ne=function(a){a.i=Math.min(a.D,2*a.i);a.B=Math.min(a.D,a.i+(a.J?Math.round(a.J*(Math.random()-.5)*2*a.i):0));a.u++};
   oe=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){switch(m.i){case 1:e=new g.me(b.QK,b.HL),h=1;case 2:if(!(h<=b.CN)){m.fb(4);break}ua(m,5);return g.A(m,a(h),7);case 7:return m.return(m.u);case 5:return f=l=wa(m),g.A(m,new Promise(function(n){setTimeout(n,e.getValue())}),8);
   case 8:g.ne(e);case 3:h++;m.fb(2);break;case 4:throw f;}})})};
   pe=function(a){this.oJ=a};
   re=function(a,b,c){this.u=a;this.C=b;this.i=c||[];this.Br=new Map};
   se=function(a,b){re.call(this,a,3,b)};
   te=function(a,b){re.call(this,a,2,b)};
   g.ue=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
   g.ve=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ka(d)?g.ve.apply(null,d):g.ue(d)}};
   g.I=function(){this.Yh=this.Yh;this.wh=this.wh};
   g.J=function(a,b){g.we(a,g.Oa(g.ue,b))};
   g.we=function(a,b){a.Yh?b():(a.wh||(a.wh=[]),a.wh.push(b))};
   g.xe=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
   Daa=function(a){var b=g.Ga("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.D.$googDebugFname||b}catch(h){e="Not available",c=!0}b=ye(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,ze[c])c=ze[c];else{c=String(c);if(!ze[c]){var f=/function\s+([^\(]+)/m.exec(c);ze[c]=f?f[1]:"[Anonymous]"}c=ze[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}};
   ye=function(a,b){b||(b={});b[Ae(a)]=!0;var c=a.stack||"";(a=a.dR)&&!b[Ae(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=ye(a,b));return c};
   Ae=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
   Be=function(a,b){g.xe.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.i=null;a&&this.init(a,b)};
   De=function(a){return!(!a||!a[Ce])};
   Faa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ae=e;this.key=++Eaa;this.Sw=this.iy=!1};
   Ee=function(a){a.Sw=!0;a.listener=null;a.proxy=null;a.src=null;a.Ae=null};
   Fe=function(a){this.src=a;this.listeners={};this.i=0};
   Ge=function(a,b){var c=b.type;c in a.listeners&&g.Ab(a.listeners[c],b)&&(Ee(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
   He=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Sw&&f.listener==b&&f.capture==!!c&&f.Ae==d)return e}return-1};
   Je=function(a,b,c,d,e){if(d&&d.once)return Ie(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Je(a,b[f],c,d,e);return null}c=Ke(c);return De(a)?a.Qa(b,c,g.La(d)?!!d.capture:!!d,e):Le(a,b,c,!1,d,e)};
   Le=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.La(e)?!!e.capture:!!e,l=Me(a);l||(a[Ne]=l=new Fe(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Gaa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Haa||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Oe(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Pe++;return c};
   Gaa=function(){function a(c){return b.call(a.src,a.listener,c)}
   var b=Iaa;return a};
   Ie=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ie(a,b[f],c,d,e);return null}c=Ke(c);return De(a)?a.Hz(b,c,g.La(d)?!!d.capture:!!d,e):Le(a,b,c,!0,d,e)};
   Qe=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Qe(a,b[f],c,d,e);else d=g.La(d)?!!d.capture:!!d,c=Ke(c),De(a)?a.jc(b,c,d,e):a&&(a=Me(a))&&(b=a.Ev(b,c,d,e))&&Re(b)};
   Re=function(a){if("number"!==typeof a&&a&&!a.Sw){var b=a.src;if(De(b))Ge(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Oe(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Pe--;(c=Me(b))?(Ge(c,a),0==c.i&&(c.src=null,b[Ne]=null)):Ee(a)}}};
   Oe=function(a){return a in Se?Se[a]:Se[a]="on"+a};
   Iaa=function(a,b){if(a.Sw)a=!0;else{b=new Be(b,this);var c=a.listener,d=a.Ae||a.src;a.iy&&Re(a);a=c.call(d,b)}return a};
   Me=function(a){a=a[Ne];return a instanceof Fe?a:null};
   Ke=function(a){if("function"===typeof a)return a;a[Te]||(a[Te]=function(b){return a.handleEvent(b)});
   return a[Te]};
   g.Ue=function(){g.I.call(this);this.B=new Fe(this);this.qb=this;this.La=null};
   Ve=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.Sw&&h.capture==c){var l=h.listener,m=h.Ae||h.src;h.iy&&Ge(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
   Ze=function(a,b){this.B=a;this.C=b;this.u=0;this.i=null};
   $e=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.i,a.i=b)};
   af=function(a){return function(){return a}};
   bf=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
   cf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
   df=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
   Jaa=function(a,b){var c=0;return function(d){g.D.clearTimeout(c);var e=arguments;c=g.D.setTimeout(function(){a.apply(b,e)},50)}};
   ff=function(){if(void 0===ef){var a=null,b=g.D.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ra,createScript:Ra,createScriptURL:Ra})}catch(c){g.D.console&&g.D.console.error(c.message)}ef=a}else ef=a}return ef};
   jf=function(a,b){this.i=a===gf&&b||"";this.u=hf};
   kf=function(a){return a instanceof jf&&a.constructor===jf&&a.u===hf?a.i:"type_error:Const"};
   g.lf=function(a){return new jf(gf,a)};
   nf=function(a,b){this.i=b===mf?a:"";this.Ck=!0};
   pf=function(a,b){this.i=b===of?a:""};
   qf=function(a){return a instanceof pf&&a.constructor===pf?a.i:"type_error:TrustedResourceUrl"};
   Maa=function(a,b){var c=kf(a);if(!Kaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Laa,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 jf?kf(d):encodeURIComponent(String(d))});
   return rf(a)};
   rf=function(a){var b=ff();a=b?b.createScriptURL(a):a;return new pf(a,of)};
   g.tf=function(a,b){this.i=b===sf?a:""};
   g.uf=function(a){return a instanceof g.tf&&a.constructor===g.tf?a.i:"type_error:SafeUrl"};
   vf=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Naa);return b&&Oaa.test(b[1])?new g.tf(a,sf):null};
   g.yf=function(a){a instanceof g.tf||(a="object"==typeof a&&a.Ck?a.Hh():String(a),a=wf.test(a)?new g.tf(a,sf):vf(a));return a||xf};
   g.zf=function(a,b){if(a instanceof g.tf)return a;a="object"==typeof a&&a.Ck?a.Hh():String(a);if(b&&/^data:/i.test(a)&&(b=vf(a)||xf,b.Hh()==a))return b;wf.test(a)||(a="about:invalid#zClosurez");return new g.tf(a,sf)};
   Bf=function(a,b){this.i=b===Af?a:"";this.Ck=!0};
   Cf=function(a){return a instanceof Bf&&a.constructor===Bf?a.i:"type_error:SafeStyle"};
   Ff=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(Df).join(" "):Df(d),b+=c+":"+d+";")}return b?new Bf(b,Af):Ef};
   Paa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Cf(d)}
   var c="";Array.prototype.forEach.call(arguments,b);return c?new Bf(c,Af):Ef};
   Df=function(a){if(a instanceof g.tf)return'url("'+g.uf(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof jf?kf(a):Qaa(String(a));if(/[{;}]/.test(a))throw new Ta("Value does not allow [{;}], got: %s.",[a]);return a};
   Qaa=function(a){var b=a.replace(Gf,"$1").replace(Gf,"$1").replace(Hf,"url");if(Raa.test(b)){if(Saa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Taa(a))return"zClosurez"}else return"zClosurez";return Uaa(a)};
   Taa=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};
   Uaa=function(a){return a.replace(Hf,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
   b=g.yf(d).Hh();return c+f+b+f+e})};
   Lf=function(a,b,c){this.i=c===Kf?a:"";this.u=b;this.Ck=this.jE=!0};
   g.Mf=function(a){return a instanceof Lf&&a.constructor===Lf?a.i:"type_error:SafeHtml"};
   Of=function(a){if(a instanceof Lf)return a;var b="object"==typeof a,c=null;b&&a.jE&&(c=a.Rr());return Nf(gb(b&&a.Ck?a.Hh():String(a)),c)};
   Vaa=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=Of(f),e.push(g.Mf(f).toString()),f=f.Rr(),0==d?d=f:0!=f&&d!=f&&(d=null))}
   var c=Of(Pf),d=c.Rr(),e=[];a.forEach(b);return Nf(e.join(g.Mf(c).toString()),d)};
   Waa=function(a){return Vaa(Array.prototype.slice.call(arguments))};
   Nf=function(a,b){var c=ff();a=c?c.createHTML(a):a;return new Lf(a,b,Kf)};
   g.Qf=function(a,b){kf(a);kf(a);return Nf(b,null)};
   Xaa=function(a,b){kf(a);kf(a);return new Bf(b,Af)};
   Rf=function(a,b){kf(a);kf(a);return rf(b)};
   g.Sf=function(a,b){if(Yaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Mf(b)};
   g.Tf=function(a,b){b=b instanceof g.tf?b:g.zf(b);a.href=g.uf(b)};
   Uf=function(a,b,c,d){a=a instanceof g.tf?a:g.zf(a);b=b||g.D;c=c instanceof jf?kf(c):c||"";return void 0!==d?b.open(g.uf(a),c,d):b.open(g.uf(a),c)};
   Vf=function(){a:{var a=g.D.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Zaa.test(a))break a;a=""}return a};
   Wf=function(a,b){return a+Math.random()*(b-a)};
   g.Xf=function(a,b,c){return Math.min(Math.max(a,b),c)};
   g.Yf=function(a,b){a%=b;return 0>a*b?a+b:a};
   g.Zf=function(a,b,c){return a+c*(b-a)};
   $f=function(a,b){return 1E-6>=Math.abs(a-b)};
   g.ag=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
   bg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
   g.cg=function(a,b){this.width=a;this.height=b};
   g.dg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
   eg=function(a){return a.width*a.height};
   fg=function(a){return encodeURIComponent(String(a))};
   gg=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
   g.hg=function(a){return a=gb(a,void 0)};
   g.ig=function(a){return null==a?"":String(a)};
   jg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
   kg=function(a){var b=Number(a);return 0==b&&g.$a(a)?NaN:b};
   lg=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
   mg=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
   $aa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
   aba=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};
   qg=function(a){return a?new ng(og(a)):pg||(pg=new ng)};
   rg=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
   g.sg=function(a,b){return(b||document).getElementsByTagName(String(a))};
   g.ug=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.tg(document,"*",a,b)};
   g.vg=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.tg(c,"*",a,b)[0]||null}return a||null};
   g.tg=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};
   xg=function(a,b){g.Wb(b,function(c,d){c&&"object"==typeof c&&c.Ck&&(c=c.Hh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:wg.hasOwnProperty(d)?a.setAttribute(wg[d],c):Ya(d,"aria-")||Ya(d,"data-")?a.setAttribute(d,c):a[d]=c})};
   yg=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.cg(a.clientWidth,a.clientHeight)};
   Ag=function(a){var b=zg(a);a=a.parentWindow||a.defaultView;return g.Qc&&g.Ic("10")&&a.pageYOffset!=b.scrollTop?new g.ag(b.scrollLeft,b.scrollTop):new g.ag(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
   zg=function(a){return a.scrollingElement?a.scrollingElement:g.Bg||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
   Cg=function(a){return a?a.parentWindow||a.defaultView:window};
   Fg=function(a,b,c){var d=arguments,e=document,f=d[1],h=Dg(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):xg(h,f));2<d.length&&Eg(e,h,d,2);return h};
   Eg=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.Ka(f)||g.La(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.La(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.Qb(h?g.Db(f):f,e)}}};
   g.Gg=function(a){return Dg(document,a)};
   Dg=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
   g.Hg=function(a){return document.createTextNode(String(a))};
   g.Ig=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
   g.Jg=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
   g.Kg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
   bba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
   g.Lg=function(a){var b;if(cba&&!(g.Qc&&g.Ic("9")&&!g.Ic("10")&&g.D.SVGElement&&a instanceof g.D.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.La(b)&&1==b.nodeType?b:null};
   g.Mg=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};
   og=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
   g.Ng=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.Ig(a);var c=og(a);a.appendChild(c.createTextNode(String(b)))}};
   Pg=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")||Og(a)):a.hasAttribute("tabindex")&&Og(a))&&g.Qc){var c;"function"!==typeof a.getBoundingClientRect||g.Qc&&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};
   Og=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
   Rg=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Qg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.wb(f.className.split(/\s+/),c))},!0,d)};
   Qg=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null};
   ng=function(a){this.i=a||g.D.document||document};
   Tg=function(a){"function"!==typeof g.D.setImmediate||g.D.Window&&g.D.Window.prototype&&(Sb||!Vb("Edge"))&&g.D.Window.prototype.setImmediate==g.D.setImmediate?(Sg||(Sg=dba()),Sg(a)):g.D.setImmediate(a)};
   dba=function(){var a=g.D.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Vb("Presto")&&(a=function(){var e=g.Gg("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.E)(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&&!(Sb?0:Vb("Trident")||Vb("MSIE"))){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.lJ;c.lJ=null;e()}};
   return function(e){d.next={lJ:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.D.setTimeout(e,0)}};
   Ug=function(a){g.D.setTimeout(function(){throw a;},0)};
   Vg=function(){this.u=this.i=null};
   Xg=function(){this.next=this.scope=this.i=null};
   g.ah=function(a,b){Yg||eba();Zg||(Yg(),Zg=!0);$g.add(a,b)};
   eba=function(){if(g.D.Promise&&g.D.Promise.resolve){var a=g.D.Promise.resolve(void 0);Yg=function(){a.then(bh)}}else Yg=function(){Tg(bh)}};
   bh=function(){for(var a;a=$g.remove();){try{a.i.call(a.scope)}catch(b){Ug(b)}$e(ch,a)}Zg=!1};
   dh=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
   fh=function(a){this.i=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Ha)try{var b=this;a.call(void 0,function(c){eh(b,2,c)},function(c){eh(b,3,c)})}catch(c){eh(this,3,c)}};
   gh=function(){this.next=this.context=this.onRejected=this.u=this.i=null;this.B=!1};
   ih=function(a,b,c){var d=hh.get();d.u=a;d.onRejected=b;d.context=c;return d};
   jh=function(a){if(a instanceof fh)return a;var b=new fh(g.Ha);eh(b,2,a);return b};
   kh=function(a){return new fh(function(b,c){c(a)})};
   mh=function(a,b,c){lh(a,b,c,null)||g.ah(g.Oa(b,a))};
   fba=function(a){return new fh(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],mh(e,b,c)})};
   gba=function(a){return new fh(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],mh(m,g.Oa(f,l),h);
   else b(e)})};
   oh=function(a,b){b=ih(b,b,void 0);b.B=!0;nh(a,b);return a};
   g.qh=function(a,b){return ph(a,null,b,void 0)};
   rh=function(a,b){if(0==a.i)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.i&&1==d?rh(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):sh(c),th(c,e,3,b)))}a.B=null}else eh(a,3,b)};
   nh=function(a,b){a.u||2!=a.i&&3!=a.i||uh(a);a.C?a.C.next=b:a.u=b;a.C=b};
   ph=function(a,b,c,d){var e=ih(null,null,null);e.i=new fh(function(f,h){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
   e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof vh?h(l):f(m)}catch(n){h(n)}}:h});
   e.i.B=a;nh(a,e);return e.i};
   eh=function(a,b,c){0==a.i&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.i=1,lh(c,a.Z,a.Y,a)||(a.K=c,a.i=b,a.B=null,uh(a),3!=b||c instanceof vh||hba(a,c)))};
   lh=function(a,b,c,d){if(a instanceof fh)return nh(a,ih(b||g.Ha,c||null,d)),!0;if(dh(a))return a.then(b,c,d),!0;if(g.La(a))try{var e=a.then;if("function"===typeof e)return iba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
   iba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
   function h(m){l||(l=!0,c.call(e,m))}
   var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
   uh=function(a){a.J||(a.J=!0,g.ah(a.S,a))};
   sh=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
   th=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.i)b.i.B=null,wh(b,c,d);else try{b.B?b.u.call(b.context):wh(b,c,d)}catch(e){xh.call(null,e)}$e(hh,b)};
   wh=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
   hba=function(a,b){a.D=!0;g.ah(function(){a.D&&xh.call(null,b)})};
   vh=function(a){Sa.call(this,a)};
   g.yh=function(a,b){g.Ue.call(this);this.Vf=a||1;this.vx=b||g.D;this.eJ=(0,g.E)(this.sX,this);this.vL=g.Pa()};
   g.zh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.E)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.E)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.D.setTimeout(a,b||0)};
   Ah=function(a,b){var c=null;return g.qh(new fh(function(d,e){c=g.zh(function(){d(b)},a);
   -1==c&&e(Error("Failed to schedule timer."))}),function(d){g.D.clearTimeout(c);
   throw d;})};
   Bh=function(a){this.K=a;this.i=new Map;this.J=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.yh(this.flushInterval);this.u.Qa("tick",this.PN,!1,this);this.D=!1};
   Ch=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.PN()};
   Dh=function(a,b){return a.J.has(b)?void 0:a.i.get(b)};
   jba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
   Eh=function(a){this.i=a;this.i.UI("/client_streamz/po/w/rl",{dn:3,cn:"mn"},{dn:2,cn:"ac"},{dn:2,cn:"sc"},{dn:3,cn:"rk"})};
   Fh=function(a){this.i=a;this.i.UI("/client_streamz/po/w/el",{dn:3,cn:"en"},{dn:3,cn:"rk"})};
   kba=function(a){this.i=a;this.i.YQ("/client_streamz/po/w/cec",{dn:2,cn:"ec"},{dn:3,cn:"rk"})};
   Gh=function(a){Nd.call(this,a,-1,lba)};
   Hh=function(a){Nd.call(this,a,-1,mba)};
   Ih=function(a){Nd.call(this,a)};
   Jh=function(a){Nd.call(this,a)};
   Kh=function(a){Nd.call(this,a,-1,nba)};
   Lh=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==
   c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
   oba=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
   function b(q){for(var t=h,u=0;64>u;u+=4)t[u/4]=q[u]<<24|q[u+1]<<16|q[u+2]<<8|q[u+3];for(u=16;80>u;u++)q=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],G=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var F=z^x&(y^z);var C=1518500249}else F=x^y^z,C=1859775393;else 60>u?(F=x&y|z&(x|y),C=2400959708):(F=x^y^z,C=3395469782);F=((q<<5|q>>>27)&4294967295)+F+G+C+t[u]&4294967295;G=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
   e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+G&4294967295}
   function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var u=[],x=0,y=q.length;x<y;++x)u.push(q.charCodeAt(x));q=u}t||(t=q.length);u=0;if(0==n)for(;u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64;for(;u<t;)if(f[n++]=q[u++],p++,64==n)for(n=0,b(f);u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64}
   function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var x=24;0<=x;x-=8)q[t++]=e[u]>>x&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,vR:function(){for(var q=d(),t="",u=0;u<q.length;u++)t+="0123456789ABCDEF".charAt(Math.floor(q[u]/16))+"0123456789ABCDEF".charAt(q[u]%16);return t}}};
   Mh=function(a,b,c){var d=String(g.D.location.href);return d&&a&&b?[b,pba(Lh(d),a,c||null)].join(" "):null};
   pba=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Qb(d,function(l){e.push(l)}),Nh(e.join(" "));
   var f=[],h=[];g.Qb(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.Qb(d,function(l){e.push(l)});
   a=Nh(e.join(" "));a=[c,a];g.xb(h)||a.push(h.join(""));return a.join("_")};
   Nh=function(a){var b=oba();b.update(a);return b.vR().toLowerCase()};
   Oh=function(a){this.i=a||{cookie:""}};
   Ph=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=jb(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}};
   Qh=function(a){return!!qba.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
   Rh=function(a){a=void 0===a?!1:a;var b=g.D.__SAPISID||g.D.__APISID||g.D.__3PSAPISID||g.D.__OVERRIDE_SID;Qh(a)&&(b=b||g.D.__1PSAPISID);if(b)return!0;var c=new Oh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Qh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
   Sh=function(a,b,c,d){(a=g.D[a])||(a=(new Oh(document)).get(b));return a?Mh(a,c,d):null};
   Vh=function(a,b){b=void 0===b?!1:b;var c=Lh(String(g.D.location.href)),d=[];if(Rh(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.D.__SAPISID:g.D.__APISID;e||(e=new Oh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Mh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Qh(b)&&((b=Sh("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Sh("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return 0==
   d.length?null:d.join(" ")};
   Wh=function(a){Nd.call(this,a,-1,rba)};
   Xh=function(){};
   g.Zh=function(a){var b=[];Yh(new sba,a,b);return b.join("")};
   sba=function(){};
   Yh=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),Yh(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),$h(d,c),c.push(":"),Yh(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":$h(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);}}};
   $h=function(a,b){b.push('"',a.replace(tba,function(c){var d=ai[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),ai[c]=d);return d}),'"')};
   uba=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"}};
   bi=function(){};
   ci=function(){};
   di=function(a){if(!a.B&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.B=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.B};
   ei=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};
   fi=function(a){return a?decodeURI(a):a};
   g.hi=function(a,b){return b.match(gi)[a]||null};
   g.ii=function(a){return fi(g.hi(3,a))};
   ji=function(a){a=a.match(gi);return ei(a[1],null,a[3],a[4])};
   ki=function(a){a=a.match(gi);return ei(null,null,null,null,a[5],a[6],a[7])};
   li=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?gg(e):"")}}};
   mi=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
   ni=function(a,b){return b?a?a+"&"+b:b:a};
   oi=function(a,b){if(!b)return a;a=mi(a);a[1]=ni(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
   pi=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)pi(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+fg(b)))};
   qi=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)pi(a[b],a[b+1],c);return c.join("&")};
   g.ri=function(a){var b=[],c;for(c in a)pi(c,a[c],b);return b.join("&")};
   si=function(a,b){var c=2==arguments.length?qi(arguments[1],0):qi(arguments,1);return oi(a,c)};
   g.ti=function(a,b){b=g.ri(b);return oi(a,b)};
   ui=function(a,b,c){c=null!=c?"="+fg(c):"";return oi(a,b+c)};
   vi=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};
   xi=function(a,b){var c=a.search(wi),d=vi(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 gg(a.substr(d,e-d))};
   yi=function(a,b){for(var c=a.search(wi),d=0,e,f=[];0<=(e=vi(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(vba,"$1")};
   zi=function(a,b,c){return ui(yi(a,b),b,c)};
   wba=function(a,b){a=mi(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)});
   a[1]=ni(d.join("&"),g.ri(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
   g.Ai=function(a){g.Ue.call(this);this.headers=new Map;this.Ea=a||null;this.D=!1;this.Aa=this.i=null;this.Ua=this.Z="";this.u=0;this.C="";this.J=this.Ja=this.Y=this.Ka=!1;this.K=0;this.ma=null;this.Ra="";this.ya=this.S=!1};
   xba=function(a,b,c,d,e,f,h){var l=new g.Ai;Bi.push(l);b&&l.Qa("complete",b);l.Hz("ready",l.iR);f&&(l.K=Math.max(0,f));h&&(l.S=h);l.send(a,c,d,e)};
   yba=function(a){return g.Qc&&g.Ic(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
   Ei=function(a,b){a.D=!1;a.i&&(a.J=!0,a.i.abort(),a.J=!1);a.C=b;a.u=5;Ci(a);Di(a)};
   Ci=function(a){a.Ka||(a.Ka=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
   Ji=function(a){if(a.D&&"undefined"!=typeof Fi)if(a.Aa[1]&&4==g.Gi(a)&&2==a.getStatus())Hi(a,"Local request error detected and ignored");else if(a.Y&&4==g.Gi(a))g.zh(a.GM,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){Hi(a,"Request complete");a.D=!1;try{if(Ii(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Gi(a)?a.i.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";Ci(a)}}finally{Di(a)}}};
   Di=function(a,b){if(a.i){Ki(a);var c=a.i,d=a.Aa[0]?g.Ha:null;a.i=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
   Ki=function(a){a.i&&a.ya&&(a.i.ontimeout=null);a.ma&&(g.D.clearTimeout(a.ma),a.ma=null)};
   Ii=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.hi(1,String(a.Z)),!a&&g.D.self&&g.D.self.location&&(a=g.D.self.location.protocol,a=a.substr(0,a.length-1)),b=!zba.test(a?a.toLowerCase():"");c=b}return c};
   g.Gi=function(a){return a.i?a.i.readyState:0};
   g.Li=function(a){try{return a.i?a.i.responseText:""}catch(b){return""}};
   Mi=function(a){try{if(!a.i)return null;if("response"in a.i)return a.i.response;switch(a.Ra){case "":case "text":return a.i.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.i)return a.i.mozResponseArrayBuffer}return null}catch(b){return null}};
   Aba=function(a){return a.i&&a.isComplete()?a.i.getAllResponseHeaders()||"":""};
   Bba=function(a){var b={};a=Aba(a).split("\r\n");for(var c=0;c<a.length;c++)if(!g.$a(a[c])){var d=aba(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 Yb(b,function(h){return h.join(", ")})};
   Hi=function(a,b){return b+" ["+a.Ua+" "+a.Z+" "+a.getStatus()+"]"};
   Ni=function(a){Nd.call(this,a)};
   Cba=function(){var a=new Ni,b=document.documentElement.getAttribute("lang");return Pd(a,5,b)};
   Oi=function(a){Nd.call(this,a)};
   Pi=function(a){Nd.call(this,a,31,Dba)};
   Qi=function(a){Nd.call(this,a,17,Eba)};
   Ri=function(a){var b=Date.now().toString();return Pd(a,4,b)};
   Si=function(a,b){return Zd(a,3,b)};
   Ti=function(a,b){return Pd(a,14,b)};
   Ui=function(a){Nd.call(this,a,6,Fba)};
   dj=function(a){Nd.call(this,a)};
   ij=function(a,b,c,d,e,f,h,l,m,n,p){g.Ue.call(this);var q=this;this.Y="";this.u=[];this.Za="";this.eb=this.Ka=-1;this.Ra=!1;this.S=this.C=null;this.K=0;this.vb=1;this.timeoutMillis=0;this.Ea=!1;g.Ue.call(this);this.kb=a;this.Ua=b||g.Ha;this.D=new Qi;this.jb=d;this.Ja=p;this.zb=g.Oa(Wf,0,1);this.ya=e||null;this.Z=c||null;this.Aa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ya=f||!1;!this.Ya&&(g.ej&&g.Ic(65)||g.fj&&g.Ic(45)||g.gj&&g.Ic(12)||Bc()&&g.nb(Cc(),12));a=Pd(new Oi,
   1,1);f||(f=Cba(),Yd(a,11,f));Yd(this.D,1,a);Pd(this.D,2,this.kb);this.J=new g.me(1E4,3E5,.1);this.i=new g.yh(this.J.getValue());g.J(this,this.i);Je(this.i,"tick",bf(hj(this,n)),!1,this);this.ma=new g.yh(6E5);g.J(this,this.ma);Je(this.ma,"tick",bf(hj(this,n)),!1,this);this.Aa||this.ma.start();this.Ya||(Je(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.zD()}),Je(document,"pagehide",this.zD,!1,this))};
   hj=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};
   jj=function(a){a.ya||(a.ya=.01>a.zb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ya};
   kj=function(a,b){a.J=new g.me(1>b?1:b,3E5,.1);a.i.setInterval(a.J.getValue())};
   Hba=function(a){Gba(a,function(b,c){b=ui(b,"format","json");b=Cg().navigator.sendBeacon(b,ae(c));a.Ea&&!b&&(a.Ea=!1);return b})};
   Gba=function(a,b){if(0!==a.u.length){var c=yi(jj(a),"format");c=si(c,"auth",a.Ua(),"authuser",a.Z||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=Si(Ri(a.D.clone()),e);0===d&&Ti(f,a.K);if(!b(c,f))break;a.u=a.u.slice(e.length)}a.i.enabled&&a.i.stop();a.K=0}};
   lj=function(){g.xe.call(this,"event-logged",void 0)};
   Iba=function(a,b,c){xba(a.url,function(d){d=d.target;Ii(d)?b(g.Li(d)):c(d.getStatus())},a.requestType,a.body,a.uq,a.timeoutMillis,a.withCredentials)};
   mj=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=Iba;this.i=""};
   nj=function(){var a="",b=!1,c="1";a=void 0===a?"":a;c=void 0===c?"":c;var d=new mj;d.i="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.i=d.Oe()};
   oj=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
   pj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
   qj=function(){};
   rj=function(a){this.qm=a;this.C=new nj;this.i=new Bh(this.C);this.clientError=new kba(this.i);this.u=new Fh(this.i);this.B=new Eh(this.i)};
   sj=function(a){Nd.call(this,a)};
   tj=function(a){Nd.call(this,a)};
   uj=function(a){Nd.call(this,a)};
   vj=function(a){Nd.call(this,a)};
   wj=function(a){Nd.call(this,a)};
   xj=function(a,b,c){this.i=a;this.B=b;this.u=c};
   yj=function(a,b,c){c=void 0===c?{}:c;this.PW=a;this.i=c;this.u=b};
   zj=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.u=e};
   Aj=function(a,b,c){c=void 0===c?{}:c;return new xj(b,a,c)};
   Bj=function(a){Nd.call(this,a)};
   Cj=function(a){Nd.call(this,a)};
   Dj=function(a){Nd.call(this,a)};
   Ej=function(a){Nd.call(this,a,-1,Jba)};
   Fj=function(a,b){this.K=a.kT;this.S=b;this.i=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&Kba(this)};
   Lba=function(a,b){Je(a.i,"complete",function(){if(Ii(a.i)){var c=g.Li(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.S(c)}catch(f){Gj(a,new pj(13,"Error when deserializing response data: "+c));return}c=oj(a.i.getStatus());Hj(a,Ij(a));0==c?Jj(a,d):Gj(a,new pj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Li(a.i);var e={};d?(e=Kj(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+
   a.i.u+", error: "+a.i.getLastError());Hj(a,Ij(a));Gj(a,new pj(d,c,e))}})};
   Kba=function(a){a.K.gm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c);Jj(a,d)}catch(e){Gj(a,new pj(13,"Error when deserializing response data: "+c))}}if("2"in b)for(b=Kj(a,b["2"]),c=0;c<a.J.length;c++)a.J[c](b)});
   a.K.gm("end",function(){Hj(a,Ij(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
   a.K.gm("error",function(){if(0!=a.u.length){var b=a.i.u;0!==b||Ii(a.i)||(b=6);switch(b){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:c=oj(a.i.getStatus());break;default:c=14}Hj(a,Ij(a));Gj(a,new pj(c,uba(b)+", error: "+a.i.getLastError()))}})};
   Ij=function(a){var b={},c=Bba(a.i);Object.keys(c).forEach(function(d){b[d]=c[d]});
   return b};
   Kj=function(a,b){var c=2,d={};try{var e=Id(Ej,b?JSON.parse(b):null);c=ce(e,1);var f=Rd(e,2,"");Xd(e,Dj,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.i&&404===a.i.getStatus()?(c=5,f="Not Found: "+String(a.i.Z)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
   Lj=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
   Jj=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
   Hj=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
   Gj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
   Mj=function(a){this.D=a.SX||null;this.B=a.iX||!1};
   Nj=function(a,b){g.Ue.call(this);this.ya=a;this.K=b;this.J=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.u=null;this.ma="GET";this.Y="";this.i=!1;this.S=this.C=this.D=null};
   Oj=function(a){a.C.read().then(a.YR.bind(a)).catch(a.nz.bind(a))};
   Qj=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;Pj(a)};
   Pj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
   g.Rj=function(a,b){this.i=this.S=this.C="";this.B=null;this.D=this.K="";this.J=!1;var c;a instanceof g.Rj?(this.J=void 0!==b?b:a.J,g.Sj(this,a.C),this.S=a.S,g.Tj(this,a.i),g.Uj(this,a.B),this.K=a.getPath(),Vj(this,a.u.clone()),this.D=a.D):a&&(c=String(a).match(gi))?(this.J=!!b,g.Sj(this,c[1]||"",!0),this.S=Wj(c[2]||""),g.Tj(this,c[3]||"",!0),g.Uj(this,c[4]),this.K=Wj(c[5]||"",!0),Vj(this,c[6]||"",!0),this.D=Wj(c[7]||"")):(this.J=!!b,this.u=new Xj(null,this.J))};
   g.Sj=function(a,b,c){a.C=c?Wj(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
   g.Tj=function(a,b,c){a.i=c?Wj(b,!0):b};
   g.Uj=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};
   Vj=function(a,b,c){b instanceof Xj?(a.u=b,Mba(a.u,a.J)):(c||(b=Yj(b,Nba)),a.u=new Xj(b,a.J))};
   g.Zj=function(a,b,c){a.u.set(b,c)};
   g.ak=function(a){return a instanceof g.Rj?a.clone():new g.Rj(a,void 0)};
   Wj=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
   Yj=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Oba),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
   Oba=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
   Xj=function(a,b){this.u=this.i=null;this.B=a||null;this.C=!!b};
   bk=function(a){a.i||(a.i=new Map,a.u=0,a.B&&li(a.B,function(b,c){a.add(gg(b),c)}))};
   dk=function(a,b){bk(a);b=ck(a,b);return a.i.has(b)};
   g.ek=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.i.set(ck(a,b),g.Db(c)),a.u=a.u+c.length)};
   ck=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
   Mba=function(a,b){b&&!a.C&&(bk(a),a.B=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.ek(this,e,c))},a));
   a.C=b};
   Pba=function(a){var b="";g.Wb(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
   return b};
   g.fk=function(a){g.I.call(this);this.u=a;this.i={}};
   gk=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)gk(a,b,c[h],d,e,f);else{b=Ie(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.i[b.key]=b}return a};
   g.hk=function(a){g.Wb(a.i,function(b,c){this.i.hasOwnProperty(c)&&Re(b)},a);
   a.i={}};
   ik=function(){this.B=!0;this.u=0;this.i=""};
   jk=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
   kk=function(){this.J=null;this.K=[];this.C=this.i=this.B=this.u=this.Z=0;this.D=null;this.S=0};
   lk=function(a,b,c,d){a.u=3;a.J="The stream is broken @"+a.Z+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.J);};
   mk=function(){this.i=null;this.u=0;this.B=new ik;this.C=new kk};
   nk=function(a,b,c){a.i="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.i);};
   ok=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
   pk=function(a){this.Z=null;this.J=[];this.C="";this.ma=[];this.B=this.u=0;this.K=!1;this.S=0;this.ya=/[\\"]/g;this.i=this.D=0;this.Y=!(!a||!a.uR)};
   qk=function(a,b,c){a.D=3;a.Z="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.Z);};
   rk=function(){this.D=this.B=null;this.u=this.i=0;this.C=[];this.J=!1};
   Qba=function(a){var b=a.i?a.i.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new rk:new pk:b.startsWith("application/x-protobuf")?(a=a.i?a.i.getResponseHeader("Content-Transfer-Encoding"):null)?"base64"==a.toLowerCase()?new mk:null:new kk:null};
   sk=function(a){this.i=a;this.u=null;this.C=this.B=0;this.Z=!1;this.D=this.K=this.J=null;this.S=new g.fk(this);this.S.Qa(this.i,"readystatechange",this.Y)};
   tk=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
   uk=function(a){g.hk(a.S);if(a.i){var b=a.i;a.i=null;b.abort();b.dispose()}};
   vk=function(a){this.B=a;a=(0,g.E)(this.gU,this);this.B.D=a;a=(0,g.E)(this.QV,this);this.B.K=a;this.u={};this.i={}};
   wk=function(a,b){for(var c={},d=0;d<a.length;c={vB:c.vB},d++)c.vB=a[d],b.forEach(function(e){return function(f){try{f(e.vB)}catch(h){}}}(c))};
   xk=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
   (c=a.i[b])&&c.forEach(function(d){d()});
   a.i[b]=[]};
   yk=function(a){a=void 0===a?{}:a;this.D=a.uba||g.Ga("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ga("withCredentials",a)||!1;this.C=a.rba||[];this.J=a.vba||[];this.i=a.yba;this.B=a.wba||!1};
   Gk=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Fk(function(h){return new Rba(function(l,m){var n={},p=Sba(a,h,f);p.gm("error",function(q){return m(q)});
   p.gm("metadata",function(q){n=q});
   p.gm("data",function(q){var t=n;t=void 0===t?{}:t;l(new yj(q,h.Yy(),t))})})},a.J).call(a,Aj(e,c,d)).then(function(h){return h.PW})};
   Sba=function(a,b,c){var d=b.Yy(),e=b.getMetadata(),f=Hk(a,!0);a=Ik(a,e,f,c+d.getName());c=Jk(f,d.u,!1);Lba(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.i(b.i);f.send(a,"POST",b);return c};
   Hk=function(a,b){b=a.B&&!b;return a.i||b?new g.Ai(new Mj({SX:a.i,iX:b})):new g.Ai};
   Ik=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.S=!0;if(a.D)a=d,g.lc(b)?d=a:(b=Pba(b),"string"===typeof a?d=ui(a,fg("$httpHeaders"),b):(g.Zj(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d};
   Jk=function(a,b,c){if(c)if(a.isActive(),!g.Qc||g.Jc(10)){c=new sk(a);var d=new vk(c)}else d=null;return new Fj({xhr:a,kT:d},b)};
   Fk=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
   return c};
   Kk=function(){var a={format:"jspb"};this.i=new yk(a)};
   Tba=function(a,b,c){this.content=a;this.i=b;this.u=c};
   Vba=function(a){var b=new Kk,c={"X-Goog-Api-Key":"AIzaSyBydTmf06EmN2pis9ljY6qe2XY0Rn8uK0k"};return new Uba(b,a,function(){return c})};
   Uba=function(a,b,c){this.client=a;this.qm=b;this.i=c};
   Wba=function(a){return g.H(a,function c(){var d,e=this,f,h,l;return g.B(c,function(m){if(1==m.i)return d=new sj,Td(d,1,e.qm,""),f=e.i(),g.A(m,e.client.create(d,f),2);h=m.u;l=Wd(h,vj,1);if(!l)throw Error("Missing field");return m.return(l)})})};
   Yba=function(a,b){return g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){if(1==m.i){f=e.i();var n=new Bj;n=Td(n,1,e.qm,"");h=Td(n,2,b,"");n=Gk(e.client.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",h,f||{},Xba);return g.A(m,n,2)}l=m.u;return m.return(new Tba(Bd(Rd(l,1,"")),ce(l,3),ce(l,2)))})})};
   Lk=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
   Mk=function(a){this.i=!1;if(a.challenge instanceof vj){var b=Rd(a.challenge,4,"");a=Rd(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new Lk;this.u=c.promise;g.r((0,g.D[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({aR:d,eX:e})})},!0)).next();
   c.promise.then(function(){})};
   Zba=function(a){return Rf(g.lf("From proto message. b/12014412"),Od(a,4)||"")};
   Nk=function(){};
   Ok=function(a){this.i=a};
   $ba=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
   aca=function(){var a,b;if(void 0===Pk)try{Pk=null!==(b=null===(a=$ba())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c},
   createScript:function(c){return c},
   createScriptURL:function(c){return c}}))&&void 0!==b?b:null}catch(c){Pk=null}return Pk};
   Qk=function(a){this.isValid=a};
   Rk=function(a){return new Qk(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
   Uk=function(a,b){b=void 0===b?Sk:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Qk&&d.isValid(a))return new Ok(a,Tk)}};
   Vk=function(){};
   Wk=function(a){this.i=a};
   Xk=function(a){if(a instanceof Nk)if(a instanceof Ok)a=a.i;else throw Error("");else a=g.uf(a);return a};
   Yk=function(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document,d=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
   g.Zk=function(a,b){a.src=qf(b);Yk(a)};
   $k=function(a,b){return a.parseFromString(g.Mf(b),"text/xml")};
   al=function(){this.i={};this.u=null};
   bca=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return bl(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,h){bl(b,c).then(function(){a.u=d;f()},function(l){delete a.i[d];
   h(l)})}));
   return a.i[d]};
   bl=function(a,b){return b?cca(b):a?dca(a):Promise.resolve()};
   cca=function(a){return new Promise(function(b,c){var d=g.Gg("SCRIPT"),e=Zba(a);g.Zk(d,e);d.onload=function(){g.Kg(d);b()};
   d.onerror=function(){g.Kg(d);c(Error("EWLS"))};
   (g.sg("HEAD")[0]||document.documentElement).appendChild(d)})};
   dca=function(a){return new Promise(function(b){var c=g.Gg("SCRIPT");if(a){var d=Od(a,6);if(null===d||void 0===d)var e=null;else{var f=null===(e=aca())||void 0===e?void 0:e.createScript(d);e=new Wk(null!==f&&void 0!==f?f:d,Tk)}}else e=null;if(e instanceof Vk)if(e instanceof Wk)e=e.i;else throw Error("");else e=e instanceof nf&&e.constructor===nf?e.i:"type_error:SafeScript";c.textContent=e;Yk(c);(g.sg("HEAD")[0]||document.documentElement).appendChild(c);g.Kg(c);b()})};
   cl=function(a){this.i=a};
   eca=function(a){a.My=Vba(a.qm);a.qM=function(){};
   a.onError=function(){};
   return new dl(a)};
   fca=function(a){switch(a){case 1:return 8;case 2:return 9;case 3:case 0:return 0;default:return 0}};
   el=function(){g.I.apply(this,arguments)};
   fl=function(a,b,c){el.call(this);this.D=a;this.J=b;this.C=c;this.i=0};
   gl=function(a){el.call(this);this.i=a};
   dl=function(a){var b=this;this.NF=!1;this.Vu=void 0;var c=Date.now();this.My=a.My;this.qM=a.qM;this.onError=a.onError;this.logger=a.jba?new qj:new rj(a.qm);this.xz=new g.yh;this.xz.Qa("tick",function(){hl(b,2)});
   this.LL=il(this);this.LL.then(function(d){b.Vu=d;b.logger.cw("r",Date.now()-c)}).catch(function(d){b.onError(d,"Init failed")})};
   jl=function(a,b,c){a.logger.Iz(b);return new le(b,c)};
   kl=function(a,b,c){return g.H(a,function e(){var f=this,h;return g.B(e,function(l){h=f;return l.return(oe(function(m){return g.H(h,function p(){var q,t=this;return g.B(p,function(u){q=b();t.logger.CL(c,m,q);return u.return(q)})})},gca))})})};
   hca=function(a){return g.H(a,function c(){var d=this,e,f,h;return g.B(c,function(l){switch(l.i){case 1:return e=d,g.A(l,kl(d,function(){return Wba(e.My)},"c"),2);
   case 2:f=l.u;ua(l,3);al.i||(al.i=new al);var m=bca(al.i,Wd(f,tj,1),Wd(f,uj,2),Rd(f,3,""));return g.A(l,m,5);case 5:return l.return(new Mk({challenge:f}));case 3:throw h=wa(l),jl(d,2,h);}})})};
   ica=function(a,b){return g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){switch(m.i){case 1:return f=e,ua(m,2),g.A(m,b.snapshot({}),4);case 4:h=m.u;va(m,3);break;case 2:throw l=wa(m),jl(e,3,l);case 3:return m.return(kl(e,function(){return g.H(f,function p(){var q=this;return g.B(p,function(t){return t.return(Yba(q.My,h))})})},"g"))}})})};
   jca=function(a,b){return g.H(a,function d(){var e,f=this,h,l;return g.B(d,function(m){if(1==m.i)return e=Date.now(),f.xz.stop(),g.A(m,ica(f,b),2);h=m.u;if(h.i){var n=window.webpocb;if(void 0===n)throw jl(f,4,Error(""));n=n(h.content);n=new fl(b,n,h.i)}else n=new gl(h.content);l=n;f.xz.setInterval(1E3*h.u);f.xz.start();f.logger.cw("g",Date.now()-e);return m.return(l)})})};
   il=function(a){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){e=d;return f.return(oe(function(){return g.H(e,function l(){var m,n,p=this,q,t;return g.B(l,function(u){switch(u.i){case 1:return m=Date.now(),g.A(u,hca(p),2);case 2:return q=u.u,p.logger.cw("c",Date.now()-m),ua(u,3),g.A(u,jca(p,q),5);case 5:n=u.u;va(u,4);break;case 3:throw t=wa(u),q.dispose(),t;case 4:return u.return(n)}})})},kca))})})};
   hl=function(a,b){g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){if(1==l.i){if(e.NF)return l.return();e.NF=!0;l.J=0;l.C=2;f=e.Vu;f.u=b;h=il(e);return g.A(l,h,4)}2!=l.i&&(e.Vu=l.u,f.dispose());xa(l);e.NF=!1;return ya(l,0)})})};
   lca=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.i=/[?&]adurl=([^&]*)/.exec(a))&&this.i[1]){try{var c=decodeURIComponent(this.i[1])}catch(d){c=null}this.u=c}};
   ll=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.hg(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=qg(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Maa(g.lf("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.hg(a)+".js"});g.Zk(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
   mca=function(a){var b={};g.Qb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.i(e)||(b[d]=null)):b[d]=c});
   laa(a,function(c){return null===b[c.event]})};
   ml=function(){this.Zc=0;this.i=!1;this.u=-1;this.Qp=!1;this.nh=0};
   nl=function(){this.u=null;this.i=!1};
   ol=function(a){nl.call(this);this.B=a};
   pl=function(){nl.call(this)};
   ql=function(){nl.call(this)};
   rl=function(){this.i={};this.u=!0;this.B={}};
   sl=function(a,b,c){a.i[b]||(a.i[b]=new ol(c));return a.i[b]};
   nca=function(a){a.i.queryid||(a.i.queryid=new ql)};
   tl=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
   ul=function(a,b){if(fc(a.B,b))return a.B[b];if(a=a.i[b])return a.getValue()};
   vl=function(a){var b={},c=g.Xb(a.i,function(d){return d.i});
   g.Wb(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.i&&null!==d.u?String(d.u):"";0<d.length&&(b[e]=d)},a);
   return b};
   oca=function(a){a=vl(a);var b=[];g.Wb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
   return b};
   pca=function(){this.i=this.Mn=null};
   wl=function(){};
   yl=function(){if(!xl())throw Error();};
   xl=function(){return!(!zl||!zl.performance)};
   Al=function(a){return a?a.passive&&qca()?a:a.capture||!1:!1};
   Bl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Al(d)),!0):!1};
   Cl=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Al(void 0))};
   Dl=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
   El=function(){};
   Gl=function(){return Sb?Sb.mobile:!Fl()&&(Vb("iPod")||Vb("iPhone")||Vb("Android")||Vb("IEMobile"))};
   Fl=function(){return Sb?!Sb.mobile&&(Vb("iPad")||Vb("Android")||Vb("Silk")):Vb("iPad")||Vb("Android")&&!Vb("Mobile")||Vb("Silk")};
   Hl=function(a){try{return!!a&&null!=a.location.href&&Ec(a,"foo")}catch(b){return!1}};
   Il=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
   sca=function(){var a=[];Il(rca,function(b){a.push(b)});
   return a};
   uca=function(a){return(a=tca.exec(a))&&a[0]||""};
   vca=function(){var a=Jl;if(!a)return"";var b=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
   xca=function(){var a=Kl("IFRAME"),b={};g.Qb(wca(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
   return b};
   Kl=function(a,b){b=void 0===b?document:b;a=String(a);var c;"application/xhtml+xml"===(null==(c=b)?void 0:c.contentType)&&(a=a.toLowerCase());return b.createElement(a)};
   Ll=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Hl(a)&&(b=a);return b};
   Ml=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
   Nl=function(a){return a.right-a.left};
   Ol=function(a,b,c){b instanceof g.ag?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
   g.Pl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
   Ql=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.Sl=function(a,b,c){if("string"===typeof b)(b=Rl(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Rl(c,d);f&&(c.style[f]=e)}};
   Rl=function(a,b){var c=Tl[b];if(!c){var d=lg(b);c=d;void 0===a.style[d]&&(d=(g.Bg?"Webkit":Ul?"Moz":g.Qc?"ms":null)+$aa(d),void 0!==a.style[d]&&(c=d));Tl[b]=c}return c};
   g.Vl=function(a,b){var c=a.style[lg(b)];return"undefined"!==typeof c?c:a.style[Rl(a,b)]||""};
   Wl=function(a,b){var c=og(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
   Xl=function(a,b){return Wl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
   g.Zl=function(a,b,c){if(b instanceof g.ag){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Yl(d,!1);a.style.top=g.Yl(b,!1)};
   $l=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
   yca=function(a){if(g.Qc&&!g.Jc(8))return a.offsetParent;var b=og(a),c=Xl(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=Xl(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.am=function(a){var b=og(a),c=new g.ag(0,0);var d=b?og(b):document;d=!g.Qc||g.Jc(9)||"CSS1Compat"==qg(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=$l(a);b=Ag(qg(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
   cm=function(a,b){var c=new g.ag(0,0),d=Cg(og(a));if(!Ec(d,"parent"))return c;do{var e=d==b?g.am(a):bm(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.em=function(a,b){a=dm(a);b=dm(b);return new g.ag(a.x-b.x,a.y-b.y)};
   bm=function(a){a=$l(a);return new g.ag(a.left,a.top)};
   dm=function(a){if(1==a.nodeType)return bm(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ag(a.clientX,a.clientY)};
   g.fm=function(a,b,c){if(b instanceof g.cg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Yl(b,!0);a.style.height=g.Yl(c,!0)};
   g.Yl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
   g.gm=function(a){var b=zca;if("none"!=Xl(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};
   zca=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Bg&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=$l(a),new g.cg(a.right-a.left,a.bottom-a.top)):new g.cg(b,c)};
   g.hm=function(a,b){a.style.display=b?"":"none"};
   lm=function(){if(im&&!Hl(jm)){var a="."+km.domain;try{for(;2<a.split(".").length&&!Hl(jm);)km.domain=a=a.substr(a.indexOf(".")+1),jm=window.parent}catch(b){}Hl(jm)||(jm=window)}return jm};
   om=function(a){a=a||mm();for(var b=new nm(g.D.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Aca.test(f.url)&&(c=f);if(f.url&&!f.rE){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Bca(b,e,c)};
   mm=function(){var a=g.D,b=[],c=null;do{var d=a;if(Hl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new nm(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.D;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.rE=!0);return b};
   Bca=function(a,b,c){this.i=a;this.u=b;this.B=c};
   nm=function(a,b){this.url=a;this.rE=!!b;this.depth=null};
   pm=function(){this.B="&";this.u={};this.C=0;this.i=[]};
   qm=function(a,b){var c={};c[a]=b;return[c]};
   sm=function(a,b,c,d,e){var f=[];Il(a,function(h,l){(h=rm(h,b,c,d,e))&&f.push(l+"="+h)});
   return f.join(b)};
   rm=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(rm(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(sm(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
   Cca=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};
   tm=function(a,b){this.i=a;this.depth=b};
   Eca=function(){function a(l,m){return null==l?m:l}
   var b=mm(),c=Math.max(b.length-1,0),d=om(b);b=d.i;var e=d.u,f=d.B,h=[];f&&h.push(new tm([f.url,f.rE?2:0],a(f.depth,1)));e&&e!=f&&h.push(new tm([e.url,2],0));b.url&&b!=f&&h.push(new tm([b.url,0],a(b.depth,c)));d=g.ym(h,function(l,m){return h.slice(0,h.length-m)});
   !b.url||(f||e)&&b!=f||(e=uca(b.url))&&d.push([new tm([e,1],a(b.depth,c))]);d.push([]);return g.ym(d,function(l){return Dca(c,l)})};
   Dca=function(a,b){g.zm(b,function(e){return 0<=e.depth});
   var c=Am(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(c+2);
   d[0]=a;g.Qb(b,function(e){return d[e.depth+1]=e.i});
   return d};
   Fca=function(){var a=Eca();return g.ym(a,function(b){return rm(b)})};
   Bm=function(a){var b="Qe";if(a.Qe&&a.hasOwnProperty(b))return a.Qe;var c=new a;a.Qe=c;a.hasOwnProperty(b);return c};
   Cm=function(){this.u=new El;this.i=xl()?new yl:new wl};
   Gca=function(){Dm();var a=zl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof zl.setInterval&&"function"===typeof zl.clearInterval&&"function"===typeof zl.setTimeout&&"function"===typeof zl.clearTimeout)};
   Em=function(a){Dm();var b=lm()||zl;b.google_image_requests||(b.google_image_requests=[]);var c=Kl("IMG",b.document);c.src=a;b.google_image_requests.push(c)};
   Fm=function(){Dm();return Fca()};
   Gm=function(){};
   Dm=function(){return Bm(Gm).getContext()};
   Hm=function(a){Nd.call(this,a)};
   Hca=function(a){this.B=a;this.i=-1;this.u=this.C=0};
   Im=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.i)return b.apply(null,g.v(d));try{return a.i=a.B.i.now(),b.apply(null,g.v(d))}finally{a.C+=a.B.i.now()-a.i,a.i=-1,a.u+=1}}};
   Ica=function(a,b){this.u=a;this.B=b;this.i=new Hca(a)};
   Jca=function(){};
   Km=function(){this.B=void 0;this.u=this.J=0;this.D=-1;this.featureSet=new rl;sl(this.featureSet,"mv",Kca).i=!0;sl(this.featureSet,"omid",Jm);sl(this.featureSet,"epoh",Jm).i=!0;sl(this.featureSet,"epph",Jm).i=!0;sl(this.featureSet,"umt",Jm).i=!0;sl(this.featureSet,"phel",Jm).i=!0;sl(this.featureSet,"phell",Jm).i=!0;sl(this.featureSet,"oseid",Lca).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new pl);a.i.sloi.i=!0;sl(this.featureSet,"ovms",Mca).i=!0;sl(this.featureSet,"xdi",Jm).i=!0;sl(this.featureSet,
   "amp",Jm).i=!0;sl(this.featureSet,"prf",Jm).i=!0;sl(this.featureSet,"gtx",Jm).i=!0;sl(this.featureSet,"mvp_lv",Jm).i=!0;sl(this.featureSet,"ssmol",Jm).i=!0;this.i=new Ica(Dm(),this.featureSet);this.C=!1;this.flags=new Jca};
   Lm=function(){return Bm(Km)};
   Nca=function(){var a="https:";zl&&zl.location&&"http:"===zl.location.protocol&&(a="http:");this.u=a;this.i=.01;this.B=Math.random()};
   Mm=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.i))try{if(c instanceof pm)var f=c;else f=new pm,Il(c,function(l,m){var n=f,p=n.C++;l=qm(m,l);n.i.push(p);n.u[p]=l});
   var h=f.Xd(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");h&&Em(h)}catch(l){}};
   Nm=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};
   Om=function(){var a=g.D.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Pa()};
   Pm=function(){var a=void 0===a?g.D:a;return(a=a.performance)&&a.now?a.now():null};
   Oca=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
   Rm=function(){var a=lm();this.events=[];this.u=a||g.D;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.i=Qm()||(null!=b?b:1>Math.random())};
   Tm=function(a){a&&Sm&&Qm()&&(Sm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Sm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
   Wm=function(){var a=Um;this.i=Vm;this.TJ="jserror";this.nG=!0;this.FC=null;this.u=this.IE;this.Lb=void 0===a?null:a};
   Zm=function(a,b,c,d){return Im(Lm().i.i,function(){try{if(a.Lb&&a.Lb.i){var e=a.Lb.start(b.toString(),3);var f=c();a.Lb.end(e)}else f=c()}catch(m){var h=a.nG;try{Tm(e);var l=new Xm(Ym(m));h=a.u(b,l,void 0,d)}catch(n){a.IE(217,n)}if(!h)throw m;}return f})()};
   an=function(a,b,c){var d=$m;return Im(Lm().i.i,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Zm(d,a,function(){return b.apply(void 0,f)},c)})};
   Ym=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
   Xm=function(a){Nm.call(this,Error(a),{message:a})};
   bn=function(){var a=lm();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Um.disable())};
   Pca=function(a){$m.FC=function(b){g.Qb(a,function(c){c(b)})}};
   cn=function(a,b){return Zm($m,a,b,void 0)};
   dn=function(a,b){return an(a,b,void 0)};
   en=function(a,b,c,d){$m.IE(a,b,c,d)};
   fn=function(){return Date.now()-Qca};
   Rca=function(){var a=Lm().B,b=0<=gn?fn()-gn:-1,c=hn?fn()-jn:-1,d=0<=kn?fn()-kn:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];en(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
   ln=function(a,b,c){var d=new Ml(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.i=d;this.u=c};
   mn=function(a,b,c,d,e,f,h){this.C=a;this.B=b;this.J=c;this.i=d;this.D=e;this.u=f;this.K=h};
   nn=function(a){var b=a!==a.top,c=a.top===Ll(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),ac(Sca,function(h){return"function"===typeof f[h]})||(e=1));
   return{rj:f,compatibility:e,fX:d}};
   Tca=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
   on=function(a,b,c,d){var e=void 0===e?!1:e;c=an(d,c,void 0);Bl(a,b,c,{capture:e})};
   pn=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.cg(b.innerWidth,b.innerHeight)).round():yg(b||window).round()}catch(d){return new g.cg(-12245933,-12245933)}};
   qn=function(a,b,c){try{a&&(b=b.top);var d=pn(a,b,void 0===c?!1:c),e=Ag(qg(b.document).i);if(-12245933==d.width){var f=d.width;var h=new Ml(f,f,f,f)}else h=new Ml(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new Ml(-12245933,-12245933,-12245933,-12245933)}};
   rn=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
   sn=function(a){return new Ml(a.top,a.right,a.bottom,a.left)};
   tn=function(a){var b=a.top||0,c=a.left||0;return new Ml(b,c+(a.width||0),b+(a.height||0),c)};
   un=function(a){return null!=a&&0<=a&&1>=a};
   Uca=function(){var a=g.Ub;return a?vn("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return ib(a,b)})||ib(a,"OMI/")&&!ib(a,"XiaoMi/")?!0:ib(a,"Presto")&&ib(a,"Linux")&&!ib(a,"X11")&&!ib(a,"Android")&&!ib(a,"Mobi"):!1};
   wn=function(){this.B=!Hl(zl.top);this.isMobileDevice=Fl()||Gl();var a=mm();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.ii(a[a.length-1].url)||"":"";this.i=new Ml(0,0,0,0);this.C=new g.cg(0,0);this.D=new g.cg(0,0);this.K=new Ml(0,0,0,0);this.J=0;this.S=!1;this.u=!(!zl||!nn(zl).rj);this.update(zl)};
   xn=function(a,b){b&&b.screen&&(a.C=new g.cg(b.screen.width,b.screen.height))};
   yn=function(a,b){var c=a.i?new g.cg(Nl(a.i),a.i.getHeight()):new g.cg(0,0);b=void 0===b?zl:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,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 t=new g.cg(e,d)}catch(u){t=new g.cg(-12245933,-12245933)}a.D=t};
   An=function(){var a=zn();if(0<a.J||a.S)return!0;a=Dm().u.isVisible();var b=0===Dl(km);return a||b};
   zn=function(){return Bm(wn)};
   Bn=function(a){this.B=a;this.u=0;this.i=null};
   Cn=function(a,b,c){this.B=a;this.La=void 0===c?"na":c;this.D=[];this.Zd=!1;this.C=new ln(-1,!0,this);this.i=this;this.S=b;this.Y=this.Z=!1;this.Ea="uk";this.Aa=!1;this.J=!0};
   Dn=function(a,b){g.wb(a.D,b)||(a.D.push(b),b.hs(a.i),b.En(a.C),b.Rk()&&(a.Z=!0))};
   En=function(a){a=a.i;a.wH();a.vH();var b=zn();b.K=qn(!1,a.B,b.isMobileDevice);yn(zn(),a.B);a.C.i=a.tK()};
   Fn=function(a){a.Z=a.D.length?vn(a.D,function(b){return b.Rk()}):!1};
   Gn=function(a){var b=g.Db(a.D);g.Qb(b,function(c){c.En(a.C)})};
   Hn=function(a){var b=g.Db(a.D);g.Qb(b,function(c){c.hs(a.i)});
   a.i!=a||Gn(a)};
   In=function(a,b,c,d){this.element=a;this.i=new Ml(0,0,0,0);this.C=new Ml(0,0,0,0);this.u=b;this.featureSet=c;this.ma=d;this.Y=!1;this.timestamp=-1;this.K=new mn(b.C,this.i,new Ml(0,0,0,0),0,0,fn(),0)};
   Jn=function(a){this.D=!1;this.i=a;this.C=g.Ha};
   Kn=function(a,b,c){this.B=void 0===c?0:c;this.u=a;this.i=null==b?"":b};
   Vca=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
   Ln=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
   Mn=function(){this.B=0;this.i=[];this.u=!1};
   Wca=function(a,b){(0,g.Qb)(b.i,function(c){a.add(c.u,c.i,Vca(c))})};
   Nn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Il(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
   return a};
   On=function(a){var b=Xca;a.u&&(g.Mb(a.i,function(c,d){return Ln(d,c)?1:Ln(c,d)?-1:0}),a.u=!1);
   return Am(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
   Xca=function(a){var b=a.u;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.wb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
   Qn=function(a){var b=void 0===b?!0:b;this.i=new Mn;void 0!==a&&Wca(this.i,a);b&&this.i.add("v",Pn,-16)};
   Yca=function(a){var b=[],c=[];g.Wb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
   return b.concat(c)};
   Rn=function(){if(Pn&&"unreleased"!==Pn)return Pn};
   Sn=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Rn();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);Em(a)};
   Zca=function(){this.i=0};
   $ca=function(a,b,c){(0,g.Qb)(a.B,function(d){var e=a.i;if(!d.i&&(d.B(b,c),d.C())){d.i=!0;var f=d.u(),h=new Mn;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=Bm(Zca);h.add("i",d.i++);h.add("adk",e);Nn(h,f);e=new Qn(h);Sn(e)}})};
   Tn=function(){this.u=this.B=this.C=this.i=0};
   Un=function(a){this.u=a=void 0===a?ada:a;this.i=g.ym(this.u,function(){return new Tn})};
   Wn=function(a,b){return Vn(a,function(c){return c.i},void 0===b?!0:b)};
   Yn=function(a,b){return Xn(a,b,function(c){return c.i})};
   Zn=function(a,b){return Vn(a,function(c){return c.B},void 0===b?!0:b)};
   $n=function(a,b){return Xn(a,b,function(c){return c.B})};
   ao=function(a,b){return Xn(a,b,function(c){return c.u})};
   bo=function(a){g.Qb(a.i,function(b){b.u=0})};
   Vn=function(a,b,c){a=g.ym(a.i,function(d){return b(d)});
   return c?a:bda(a)};
   Xn=function(a,b,c){var d=g.ub(a.u,function(e){return b<=e});
   return-1==d?0:c(a.i[d])};
   bda=function(a){return g.ym(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
   co=function(){this.u=new Un;this.La=new Tn;this.ma=this.K=-1;this.Ya=1E3;this.Za=new Un([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ea=this.ya=-1};
   eo=function(a,b){return Zn(a.u,void 0===b?!0:b)};
   go=function(a,b){b=fo(b);return 0===b?0:fo(a)/b};
   fo=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
   cda=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.Lg(a)||a){var d=og(a),e=d&&Cg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
   dda=function(a,b,c){if(!a||!b)return!1;b=Ol(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=lm();Hl(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Tca(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=og(c))&&b.defaultView&&b.defaultView.frameElement)&&cda(b,a);d=a===c;a=!d&&a&&Qg(a,function(e){return e===c});
   return!(b||d||a)};
   eda=function(a,b,c,d){return zn().B?!1:0>=Nl(a)||0>=a.getHeight()?!0:c&&d?cn(208,function(){return dda(a,b,c)}):!1};
   ho=function(a,b,c){g.I.call(this);this.position=fda.clone();this.Oz=this.cz();this.GE=-2;this.tX=Date.now();this.gO=-1;this.lastUpdateTime=b;this.Fz=null;this.Dy=!1;this.Zz=null;this.opacity=-1;this.requestSource=c;this.tO=this.KE=g.Ha;this.Sg=new pca;this.Sg.Mn=a;this.Sg.i=a;this.zs=!1;this.pp={UE:null,SE:null};this.NN=!0;this.lx=null;this.qs=this.GS=!1;Lm().J++;this.vf=this.PD();this.bO=-1;this.Kd=null;this.CS=!1;a=this.featureSet=new rl;sl(a,"od",gda);sl(a,"opac",Jm).i=!0;sl(a,"sbeos",Jm).i=!0;
   sl(a,"prf",Jm).i=!0;sl(a,"mwt",Jm).i=!0;sl(a,"iogeo",Jm);(a=this.Sg.Mn)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(hda&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+mg()):a.getAttribute("data-"+mg()))&&(zn().u=!0);1==this.requestSource?tl(this.featureSet,"od",1):tl(this.featureSet,"od",0)};
   io=function(a,b){b!=a.qs&&(a.qs=b,a=zn(),b?a.J++:0<a.J&&a.J--)};
   jo=function(a,b){if(a.Kd){if(b.getName()===a.Kd.getName())return;a.Kd.dispose();a.Kd=null}b=b.create(a.Sg.i,a.featureSet,a.Rk());if(b=null!=b&&b.NB()?b:null)a.Kd=b};
   ko=function(a,b,c){if(!a.Fz||-1==a.lastUpdateTime||-1===b.u||-1===a.Fz.u)return 0;a=b.u-a.Fz.u;return a>c?0:a};
   ida=function(a,b,c){if(a.Kd){a.Kd.Qm();var d=a.Kd.K,e=d.C,f=e.i;if(null!=d.J){var h=d.B;a.Zz=new g.ag(h.left-f.left,h.top-f.top)}f=a.VA()?Math.max(d.i,d.D):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.oK(d);a.Fz=d;a.Pa(f,b,c,!1,h,e,d.K)}};
   jda=function(a){if(a.Dy&&a.lx){var b=1==ul(a.featureSet,"od"),c=zn().i,d=a.lx,e=a.Kd?a.Kd.getName():"ns",f=new g.cg(Nl(c),c.getHeight());c=a.VA();a={hX:e,Zz:a.Zz,QX:f,VA:c,Zc:a.vf.Zc,KX:b};if(b=d.u){b.Qm();e=b.K;f=e.C.i;var h=null,l=null;null!=e.J&&f&&(h=e.B,h=new g.ag(h.left-f.left,h.top-f.top),l=new g.cg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.D):e.i;c={hX:b.getName(),Zz:h,QX:l,VA:c,KX:!1,Zc:e}}else c=null;c&&$ca(d,a,c)}};
   kda=function(a,b,c){b&&(a.KE=b);c&&(a.tO=c)};
   g.lo=function(){};
   lda=function(){this.C=this.i=this.B=this.u=this.D=0};
   mda=function(a){var b={};var c=g.Pa()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
   mo=function(){ml.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
   no=function(a){return un(a.volume)&&0<a.volume};
   nda=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.i={};for(var b in this.u)0<this.u[b][1]&&(this.i[b]=0);this.B=0};
   oo=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
   oda=function(a){var b=g.ec(a.u),c=0,d;for(d in a.i)g.wb(b,d)&&1==a.i[d]&&(c+=a.u[d][1],a.i[d]=2);return c};
   pda=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.u[c][1]}return b};
   po=function(){this.i=this.u=0};
   qo=function(){co.call(this);this.B=new Tn;this.Ja=this.Z=this.Aa=0;this.S=-1;this.eb=new Tn;this.D=new Tn;this.i=new Un;this.J=this.C=-1;this.Y=new Tn;this.Ya=2E3;this.Ka=new po;this.Ua=new po;this.Ra=new po};
   ro=function(a,b,c){var d=a.Ja;hn||c||-1==a.S||(d+=b-a.S);return d};
   qda=function(){this.i=!1};
   so=function(a,b){this.i=!1;this.u=a;this.S=b;this.B=0};
   uo=function(a,b){return a.C(b)?(b=to(a.S,a.u,b),a.B|=b,0==b):!1};
   vo=function(a,b,c,d){In.call(this,a,b,c,d)};
   wo=function(a,b,c){In.call(this,null,a,b,c);this.J=a.isActive();this.D=0};
   xo=function(a){return[a.top,a.left,a.bottom,a.right]};
   yo=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;ho.call(this,b,c,d);this.mD=0;this.zf={};this.jf=new nda;this.FO={};this.Gf="";this.Ua=null;this.kb=!1;this.i=[];this.cq=e;this.J=f;this.C=null;this.B=-1;this.Ja=this.Z=void 0;this.ma=this.Y=0;this.Ea=-1;this.Za=this.Ya=!1;this.Aa=this.K=this.u=this.Ct=this.eb=0;new Un;this.Ka=this.La=0;this.Ra=-1;this.xg=0;this.S=g.Ha;this.ya=[this.cz()];this.jb=2;this.Hq={};this.Hq.pause="p";this.Hq.resume="r";this.Hq.skip="s";this.Hq.mute="m";this.Hq.unmute=
   "um";this.Hq.exitfullscreen="ef";this.D=null};
   zo=function(a){0!=a.xg&&(a.xg=3)};
   Ao=function(a){return void 0===a?a:Number(a)?rn(a,3):0};
   Bo=function(a,b){return a.ya[null!=b&&b<a.ya.length?b:a.ya.length-1]};
   Co=function(a){var b=!!ul(Lm().featureSet,"umt");return a.Z||!b&&!a.Ja?0:1};
   rda=function(a,b){a.Yl()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.S(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Y;var d=c-a.Y,e=0;0<=d?(a.ma+=b,a.Ka+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.La+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Ra&&0<d&&(a.Ra=0<=kn?fn()-kn:-1);a.Y=c;return e};
   sda=function(a,b){vn(a.J,function(c){return c.u==b.u})||a.J.push(b)};
   Do=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.Ea?b>=a.Ea:!1:!1};
   tda=function(a){var b=rn(a.vf.Zc,2),c=a.jf.B,d=a.vf,e=Bo(a),f=Ao(e.C),h=Ao(e.J),l=Ao(d.volume),m=rn(e.K,2),n=rn(e.ma,2),p=rn(d.Zc,2),q=rn(e.ya,2),t=rn(e.Ea,2);d=rn(d.nh,2);a=a.yn().clone();a.round();e=eo(e,!1);return{PX:b,Tv:c,Pz:f,Lz:h,Hu:l,Qz:m,Mz:n,Zc:p,Rz:q,Nz:t,nh:d,position:a,Xz:e}};
   Fo=function(a,b){Eo(a.i,b,function(){return{PX:0,Tv:void 0,Pz:-1,Lz:-1,Hu:-1,Qz:-1,Mz:-1,Zc:-1,Rz:-1,Nz:-1,nh:-1,position:void 0,Xz:[]}});
   a.i[b]=tda(a)};
   Eo=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
   Io=function(a,b,c){var d=a.FO[b];if(null!=d)return d;d=Bfa(a,b);var e=jc(Go,function(f){return f==b});
   a=Ho(a,d,d,c,Cfa[Go[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
   Jo=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
   Ho=function(a,b,c,d,e){if(a.zs)return{"if":0};var f=a.yn().clone();f.round();var h=zn(),l=Lm(),m=a.Xg(),n=a.Kd?a.Kd.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.tX;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Wn(m.u,!1);p.mtos=eo(m);p.mcvt=m.La.B;p.ps=void 0;f=ro(m,fn(),a.Yl());p.vht=f;p.mut=m.eb.B;p.a=Ao(a.vf.volume);p.mv=Ao(m.J);p.fs=a.qs?1:0;p.ft=m.Y.i;p.at=m.D.i;p.as=0<m.C?1:0;p.atos=Wn(m.i);p.ssb=Wn(m.Za,!1);p.amtos=Zn(m.i,!1);p.uac=a.eb;p.vpt=m.B.i;"nio"==n&&(p.nio=1,p.avms=
   "nio");p.gmm="4";p.gdr=Do(a,m.B.i,!0)?1:0;p.efpf=a.jb;if("gsv"==n||"nis"==n)n=a.Kd,0<n.D&&(p.nnut=n.D);p.tcm=Co(a);p.nmt=a.La;p.bt=a.Ka;p.pst=a.Ra;p.vpaid=a.Z;p.dur=a.B;p.vmtime=a.Y;p.is=a.jf.B;1<=a.i.length&&(p.i0=a.i[0].Tv,p.a0=[a.i[0].Hu],p.c0=[a.i[0].Zc],p.ss0=[a.i[0].nh],n=a.i[0].position,p.p0=n?xo(n):void 0);2<=a.i.length&&(p.i1=a.i[1].Tv,p.a1=Jo(a.i[1].Pz,a.i[1].Hu,a.i[1].Lz),p.c1=Jo(a.i[1].Qz,a.i[1].Zc,a.i[1].Mz),p.ss1=Jo(a.i[1].Rz,a.i[1].nh,a.i[1].Nz),n=a.i[1].position,p.p1=n?xo(n):void 0,
   p.mtos1=a.i[1].Xz);3<=a.i.length&&(p.i2=a.i[2].Tv,p.a2=Jo(a.i[2].Pz,a.i[2].Hu,a.i[2].Lz),p.c2=Jo(a.i[2].Qz,a.i[2].Zc,a.i[2].Mz),p.ss2=Jo(a.i[2].Rz,a.i[2].nh,a.i[2].Nz),n=a.i[2].position,p.p2=n?xo(n):void 0,p.mtos2=a.i[2].Xz);4<=a.i.length&&(p.i3=a.i[3].Tv,p.a3=Jo(a.i[3].Pz,a.i[3].Hu,a.i[3].Lz),p.c3=Jo(a.i[3].Qz,a.i[3].Zc,a.i[3].Mz),p.ss3=Jo(a.i[3].Rz,a.i[3].nh,a.i[3].Nz),n=a.i[3].position,p.p3=n?xo(n):void 0,p.mtos3=a.i[3].Xz);p.cs=pda(a.jf);b&&(p.ic=oda(a.jf),p.dvpt=m.B.u,p.dvs=ao(m.u,.5),p.dfvs=
   ao(m.u,1),p.davs=ao(m.i,.5),p.dafvs=ao(m.i,1),c&&(m.B.u=0,bo(m.u),bo(m.i)),a.Tp()&&(p.dtos=m.Aa,p.dav=m.Z,p.dtoss=a.mD+1,c&&(m.Aa=0,m.Z=0,a.mD++)),p.dat=m.D.u,p.dft=m.Y.u,c&&(m.D.u=0,m.Y.u=0));p.ps=[h.D.width,h.D.height];p.bs=[Nl(h.i),h.i.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.Ct&&(p.vds=a.Ct);if(0<a.J.length||a.cq)b=g.Db(a.J),a.cq&&b.push(a.cq),p.pings=g.ym(b,function(q){return q.toString()});
   b=g.ym(g.Ko(a.J,function(q){return q.D()}),function(q){return q.getId()});
   maa(b);p.ces=b;a.u&&(p.vmer=a.u);a.K&&(p.vmmk=a.K);a.Aa&&(p.vmiec=a.Aa);p.avms=a.Kd?a.Kd.getName():"ns";a.Kd&&g.tc(p,a.Kd.xn());d?(p.c=rn(a.vf.Zc,2),p.ss=rn(a.vf.nh,2)):p.tth=fn()-Lo;p.mc=rn(m.ma,2);p.nc=rn(m.K,2);p.mv=Ao(m.J);p.nv=Ao(m.C);p.lte=rn(a.GE,2);d=Bo(a,e);eo(m);p.qmtos=eo(d);p.qnc=rn(d.K,2);p.qmv=Ao(d.J);p.qnv=Ao(d.C);p.qas=0<d.C?1:0;p.qi=a.Gf;p.avms||(p.avms="geo");p.psm=m.Ka.i;p.psv=m.Ka.getValue();p.psfv=m.Ua.getValue();p.psa=m.Ra.getValue();l=oca(l.featureSet);l.length&&(p.veid=l);
   a.D&&g.tc(p,mda(a.D));return p};
   Bfa=function(a,b){if(g.wb(Dfa,b))return!0;var c=a.zf[b];return void 0!==c?(a.zf[b]=!0,!c):!1};
   Mfa=function(){this.i={};var a=Cg();Mo(this,a,document);var b=Lfa();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Mo(this,c,c.document);Mo(this,a.top,a.top.document)}}catch(d){}};
   Lfa=function(){var a=document.documentElement;try{if(!Hl(Cg().top))return"2";var b=[],c=Cg(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"}};
   Mo=function(a,b,c){on(c,"mousedown",function(){return Nfa(a)},301);
   on(b,"scroll",function(){return Ofa(a)},302);
   on(c,"touchmove",function(){return Pfa(a)},303);
   on(c,"mousemove",function(){return Qfa(a)},304);
   on(c,"keydown",function(){return Rfa(a)},305)};
   Nfa=function(a){g.Wb(a.i,function(b){1E5<b.B||++b.B})};
   Ofa=function(a){g.Wb(a.i,function(b){1E5<b.i||++b.i})};
   Pfa=function(a){g.Wb(a.i,function(b){1E5<b.i||++b.i})};
   Rfa=function(a){g.Wb(a.i,function(b){1E5<b.u||++b.u})};
   Qfa=function(a){g.Wb(a.i,function(b){1E5<b.C||++b.C})};
   No=function(){this.i=[];this.u=[]};
   Oo=function(a,b){return g.tb(a.i,function(c){return c.Gf==b})};
   Po=function(a,b){return b?g.tb(a.i,function(c){return c.Sg.Mn==b}):null};
   Sfa=function(a,b){return g.tb(a.u,function(c){return 2==c.yk()&&c.Gf==b})};
   Ro=function(){var a=Qo;return 0==a.i.length?a.u:0==a.u.length?a.i:g.Cb(a.u,a.i)};
   So=function(a,b){a=1==b.yk()?a.i:a.u;var c=qb(a,function(d){return d==b});
   return-1!=c?(a.splice(c,1),b.Kd&&b.Kd.Pt(),b.dispose(),!0):!1};
   Tfa=function(a){var b=Qo;if(So(b,a)){switch(a.yk()){case 0:var c=function(){return null};
   case 2:c=function(){return Sfa(b,a.Gf)};
   break;case 1:c=function(){return Oo(b,a.Gf)}}for(var d=c();d;d=c())So(b,d)}};
   Ufa=function(a,b){var c=Qo;a=g.Ko(a,(void 0===b?0:b)?function(d){return!Oo(c,d.Gf)}:function(d){return!Po(c,d.Sg.Mn)});
   c.i.push.apply(c.i,g.v(a))};
   To=function(a){var b=Qo,c=[];g.Qb(a,function(d){vn(b.i,function(e){return e.Sg.Mn===d.Sg.Mn&&e.Gf===d.Gf})||(b.i.push(d),c.push(d))})};
   Uo=function(){this.i=this.u=null};
   Vo=function(a,b){function c(d,e){b(d,e)}
   if(null==a.u)return!1;a.i=g.tb(a.u,function(d){return null!=d&&d.xH()});
   a.i&&(a.i.init(c)?En(a.i.i):b(a.i.i.Sr(),a.i));return null!=a.i};
   Wo=function(a){a=Vfa(a);Jn.call(this,a.length?a[a.length-1]:new Cn(zl,0));this.B=a;this.u=null};
   Vfa=function(a){if(!a.length)return[];a=(0,g.Ko)(a,function(c){return null!=c&&c.Ot()});
   for(var b=1;b<a.length;b++)Dn(a[b-1],a[b]);return a};
   Xo=function(a,b,c,d){In.call(this,a,b,c,d);this.Z=this.S=this.D=this.J=this.B=null};
   Yo=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
   Xfa=function(a){if(!a.element)return!1;var b=a.element,c=a.u.i.B,d=Lm().i.i;a.B=new c.IntersectionObserver(Im(d,function(e){return Zo(a,e)}),Wfa);
   d=Im(d,function(){a.B.unobserve(b);a.B.observe(b);Zo(a,Yo(a))});
   c.ResizeObserver?(a.J=new c.ResizeObserver(d),a.J.observe(b)):c.MutationObserver&&(a.D=new g.D.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);Zo(a,Yo(a));return!0};
   Zo=function(a,b){try{if(b.length){a.S||(a.S=fn());var c=Yfa(b),d=cm(a.element,a.u.i.B),e=d.x,f=d.y;a.i=new Ml(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=sn(c.intersectionRect);a.C=Ol(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.Pt(),en(299,l)}};
   Yfa=function(a){return Am(a,function(b,c){return b.time>c.time?b:c},a[0])};
   $o=function(a){a=void 0===a?zl:a;Jn.call(this,new Cn(a,2))};
   bp=function(){var a=ap();Cn.call(this,zl.top,a,"geo")};
   ap=function(){Lm();var a=zn();return a.B||a.u?0:2};
   cp=function(){};
   dp=function(){this.done=!1;this.i={QQ:0,QI:0,lba:0,PJ:0,nE:-1,nR:0,mR:0,oR:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new Bn(this)};
   fp=function(){var a=ep;a.J||(a.J=!0,Zfa(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.C.apply(a,g.v(c))}),a.C())};
   $fa=function(){Bm(cp);var a=Bm(Uo);null!=a.i&&a.i.i?En(a.i.i):zn().update(zl)};
   op=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{$fa();var d=fn(),e=Lm();e.D=d;if(null!=Bm(Uo).i)for(e=0;e<b.length;e++)ida(b[e],d,c);else Mm(Vm,"",{strategy_not_selected:1,bin:e.u},!0,void 0);for(d=0;d<b.length;d++)jda(b[d]);++a.i.PJ;aga()}finally{c?g.Qb(b,function(f){f.vf.Zc=0}):a.u.schedule()}}};
   Zfa=function(a,b){if(!a.D){b=an(142,b,void 0);Dm();var c;km.visibilityState?c="visibilitychange":km.mozVisibilityState?c="mozvisibilitychange":km.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Bl(km,c,b,{capture:!1})&&(a.D=b)}};
   pp=function(){var a=Bm(Uo);if(null!=a.i){var b=a.i;g.Qb(Ro(),function(c){return jo(c,b)})}};
   aga=function(){var a=Lm();ul(a.featureSet,"llp")};
   qp=function(a,b){a=a.K;hn&&(a+=b-jn);return a};
   cga=function(a){var b=ep;a=void 0===a?function(){return{}}:a;
   $m.TJ="av-js";Vm.i=.01;Pca([function(c){var d=Lm(),e={};e=(e.bin=d.u,e.type="error",e);d=vl(d.featureSet);if(!b.B){var f=zl.document,h=0<=gn?fn()-gn:-1,l=fn();-1==b.i.nE&&(h=l);var m=zn(),n=Lm(),p=vl(n.featureSet),q=Ro();try{if(0<q.length){var t=m.i;t&&(p.bs=[Nl(t),t.getHeight()]);var u=m.D;u&&(p.ps=[u.width,u.height]);zl.screen&&(p.scs=[zl.screen.width,zl.screen.height])}else p.url=encodeURIComponent(zl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
   512)));p.tt=h;p.pt=gn;p.bin=n.u;void 0!==zl.google_osd_load_pub_page_exp&&(p.olpp=zl.google_osd_load_pub_page_exp);p.deb=[1,b.i.QQ,b.i.QI,b.i.PJ,b.i.nE,0,b.u.u,b.i.nR,b.i.mR,b.i.oR].join("-");p.tvt=qp(b,l);m.u&&(p.inapp=1);if(null!==zl&&zl!=zl.top){0<q.length&&(p.iframe_loc=encodeURIComponent(zl.location.href.substring(0,512)));var x=m.K;p.is=[Nl(x),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.pc(b.B);u=Lm().i;if(1==ul(u.B,"prf")){x=new Hm;f=u.i;h=0;-1<f.i&&(h=f.B.i.now()-f.i);x=Td(x,1,f.C+h,0);f=
   u.i;x=Td(x,5,-1<f.i?f.u+1:f.u,0);x=Td(x,2,u.u.i.B(),0);x=Td(x,3,u.u.i.u(),0);x=Td(x,4,u.u.i.i(),0);u={};f=new md;l=Od(x,1);if(null!=l){kd(f.i,9);h=f.i;n=l;n=(l=0>n?1:0)?-n:n;if(0===n)rd=0<1/n?0:2147483648,qd=0;else if(isNaN(n))rd=2147483647,qd=4294967295;else if(1.7976931348623157E308<n)rd=(l<<31|2146435072)>>>0,qd=0;else if(2.2250738585072014E-308>n)m=n/Math.pow(2,-1074),rd=(l<<31|m/4294967296)>>>0,qd=m>>>0;else{p=n;m=0;if(2<=p)for(;2<=p&&1023>m;)m++,p/=2;else for(;1>p&&-1022<m;)p*=2,m--;n*=Math.pow(2,
   -m);rd=(l<<31|m+1023<<20|1048576*n&1048575)>>>0;qd=4503599627370496*n>>>0}ld(h,qd);ld(h,rd)}sd(f,2,Od(x,2));sd(f,3,Od(x,3));sd(f,4,Od(x,4));l=Od(x,5);if(null!=l&&null!=l)if(kd(f.i,40),h=f.i,0<=l)kd(h,l);else{for(m=0;9>m;m++)h.push(l&127|128),l>>=7;h.push(1)}fe(x,f);x=pd(f);u=(u.pf=g.Mc(x),u)}else u={};g.tc(t,u);g.tc(c,e,d,t,a());if(e=Rn())d={},g.tc(c,(d.v=encodeURIComponent(e),d))}])};
   dga=function(){var a=rp||zl;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
   sp=function(a){return function(b){return void 0===b[a]?0:b[a]}};
   up=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?tp(c,a):c}}};
   vp=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 tp(f,b,c)}};
   wp=function(a,b){return function(c){return b(c)?c[a]:void 0}};
   xp=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}};
   tp=function(a,b,c){return void 0===c||c?g.Ko(a,function(d,e){return g.wb(b,e)}):g.ym(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)})};
   yp=function(){var a="youtube.player.web_20211010_0_RC0".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20211010_0_RC0".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20211010_0_RC0".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20211010_0_RC0".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20211010_0_RC0".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:"903"};
   zp=function(){return"av.default_js".includes("ima_html5_sdk")?{lk:"ima",version:"903"}:"av.default_js".includes("ima_native_sdk")?{lk:"nima",version:"903"}:"av.default_js".includes("admob-native-video-javascript")?{lk:"an",version:"903"}:"youtube.player.web_20211010_0_RC0".includes("cast_js_sdk")?{lk:"cast",version:yp()}:"youtube.player.web_20211010_0_RC0".includes("youtube.player.web")?{lk:"yw",version:yp()}:"youtube.player.web_20211010_0_RC0".includes("outstream_web_client")?{lk:"out",version:yp()}:
   "youtube.player.web_20211010_0_RC0".includes("drx_rewarded_web")?{lk:"r",version:yp()}:"youtube.player.web_20211010_0_RC0".includes("gam_native_web_video")?{lk:"n",version:yp()}:"youtube.player.web_20211010_0_RC0".includes("admob_interstitial_video")?{lk:"int",version:yp()}:{lk:"j",version:"903"}};
   Ep=function(a,b){var c={sv:Ap,cb:Bp};c.nas=Qo.i.length;c.msg=a;void 0!==b&&(a=Cp(b))&&(c.e=Dp[a]);return c};
   Fp=function(a){return Ya(a,"custom_metric_viewable")};
   Cp=function(a){var b=Fp(a)?"custom_metric_viewable":a.toLowerCase();return jc(Go,function(c){return c==b})};
   ega=function(){this.i=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
   gga=function(a){try{var b=a.split(",");return b.length>g.ec(fga).length?null:Am(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Gp[d[0]]||!Gp[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
   hga=function(a,b){if(void 0==a.i)return 0;switch(a.D){case "mtos":return a.u?$n(b.i,a.i):$n(b.u,a.i);case "tos":return a.u?Yn(b.i,a.i):Yn(b.u,a.i)}return 0};
   Hp=function(a,b,c,d){so.call(this,b,d);this.J=a;this.K=c};
   Ip=function(a){so.call(this,"fully_viewable_audible_half_duration_impression",a)};
   Jp=function(a,b){so.call(this,a,b)};
   Kp=function(){this.u=this.C=this.J=this.D=this.B=this.i=""};
   iga=function(){};
   Lp=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.tc(f,a);void 0!==c&&g.tc(f,c);a=On(Nn(new Mn,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
   Mp=function(){};
   Np=function(a,b,c){wo.call(this,a,b,c)};
   Op=function(a){a=void 0===a?zl:a;Jn.call(this,new Cn(a,2))};
   Pp=function(a,b,c){wo.call(this,a,b,c)};
   Qp=function(a){a=void 0===a?zl:a;Jn.call(this,new Cn(a,2))};
   Rp=function(){Cn.call(this,zl,2,"mraid");this.Ka=0;this.ma=this.ya=!1;this.K=null;this.u=nn(this.B);this.C.i=new Ml(0,0,0,0);this.Ja=!1};
   Sp=function(a,b,c){a.uo("addEventListener",b,c)};
   Vp=function(a){Lm().C=!!a.uo("isViewable");Sp(a,"viewableChange",jga);"loading"===a.uo("getState")?Sp(a,"ready",Tp):Up(a)};
   Up=function(a){"string"===typeof a.u.rj.AFMA_LIDAR?(a.ya=!0,kga(a)):(a.u.compatibility=3,a.K="nc",a.Bh("w"))};
   kga=function(a){a.ma=!1;var b=1==ul(Lm().featureSet,"rmmt"),c=!!a.uo("isViewable");(b?!c:1)&&Dm().setTimeout(dn(524,function(){a.ma||(Wp(a),en(540,Error()),a.K="mt",a.Bh("w"))}),500);
   lga(a);Sp(a,a.u.rj.AFMA_LIDAR,Xp)};
   lga=function(a){var b=1==ul(Lm().featureSet,"sneio"),c=void 0!==a.u.rj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.rj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.rj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.rj.AFMA_LIDAR_EXP_1=!b)};
   Wp=function(a){a.uo("removeEventListener",a.u.rj.AFMA_LIDAR,Xp);a.ya=!1};
   Yp=function(a,b){if("loading"===a.uo("getState"))return new g.cg(-1,-1);b=a.uo(b);if(!b)return new g.cg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.cg(-1,-1):new g.cg(a,b)};
   Tp=function(){try{var a=Bm(Rp);a.uo("removeEventListener","ready",Tp);Up(a)}catch(b){en(541,b)}};
   Xp=function(a,b){try{var c=Bm(Rp);c.ma=!0;var d=a?new Ml(a.y,a.x+a.width,a.y+a.height,a.x):new Ml(0,0,0,0);var e=fn(),f=An();var h=new ln(e,f,c);h.i=d;h.volume=b;c.En(h)}catch(l){en(542,l)}};
   jga=function(a){var b=Lm(),c=Bm(Rp);a&&!b.C&&(b.C=!0,c.Ja=!0,c.K&&c.Bh("w",!0))};
   Zp=function(){this.Zd=!1;this.i=null;this.C=new Mp;this.u=null;var a={};this.K=(a.start=this.sS,a.firstquartile=this.nS,a.midpoint=this.pS,a.thirdquartile=this.tS,a.complete=this.lS,a.pause=this.AF,a.resume=this.AN,a.skip=this.rS,a.viewable_impression=this.An,a.mute=this.wt,a.unmute=this.wt,a.fullscreen=this.oS,a.exitfullscreen=this.mS,a.fully_viewable_audible_half_duration_impression=this.An,a.measurable_impression=this.An,a.abandon=this.AF,a.engagedview=this.An,a.impression=this.An,a.creativeview=
   this.An,a.progress=this.wt,a.custom_metric_viewable=this.An,a.bufferstart=this.AF,a.bufferfinish=this.AN,a);a={};this.S=(a.overlay_resize=this.qS,a.abandon=this.eE,a.close=this.eE,a.collapse=this.eE,a.overlay_unmeasurable_impression=function(b){return Io(b,"overlay_unmeasurable_impression",An())},a.overlay_viewable_immediate_impression=function(b){return Io(b,"overlay_viewable_immediate_impression",An())},a.overlay_unviewable_impression=function(b){return Io(b,"overlay_unviewable_impression",An())},
   a.overlay_viewable_end_of_session_impression=function(b){return Io(b,"overlay_viewable_end_of_session_impression",An())},a);
   Lm().u=3;mga(this);this.B=!1};
   $p=function(a,b,c,d){b=a.Rw(null,d,!0,b);b.C=c;Ufa([b],a.B);return b};
   nga=function(a,b,c){mca(b);var d=a.u;g.Qb(b,function(e){var f=g.ym(e.u,function(h){var l=gga(h);if(null==l)h=null;else if(h=new ega,null!=l.visible&&(h.i=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Za(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.B=l,h.C=-1):(h.B=-1,h.C=l);h.D=void 0===m?"tos":m}return h});
   vn(f,function(h){return null==h})||sda(c,new Hp(e.id,e.event,f,d))})};
   oga=function(a){a=a.u;return[new Jp("viewable_impression",a),new Ip(a)]};
   pga=function(){var a=[],b=Lm();a.push(Bm(bp));ul(b.featureSet,"mvp_lv")&&a.push(Bm(Rp));b=[new Op,new Qp];b.push(new Wo(a));b.push(new $o(zl));return b};
   qga=function(a){if(!a.Zd){a.Zd=!0;try{var b=fn(),c=Lm(),d=zn();gn=b;c.B=79463069;"o"!==a.i&&(rp=Ll(zl));if(Gca()){ep.i.QI=0;ep.i.nE=fn()-b;var e=pga(),f=Bm(Uo);f.u=e;Vo(f,function(){aq()})?ep.done||(pp(),Dn(f.i.i,a),fp()):d.B?aq():fp()}else bq=!0}catch(h){throw Qo.reset(),h;
   }}};
   dq=function(a){ep.u.cancel();cq=a;ep.done=!0};
   eq=function(a){if(a.i)return a.i;var b=Bm(Uo).i;if(b)switch(b.getName()){case "nis":a.i="n";break;case "gsv":a.i="m"}a.i||(a.i="h");return a.i};
   fq=function(a,b,c){if(null==a.u)return b.Ct|=4,!1;a=to(a.u,c,b);b.Ct|=a;return 0==a};
   aq=function(){var a=[new $o(zl)],b=Bm(Uo);b.u=a;Vo(b,function(){dq("i")})?ep.done||(pp(),fp()):dq("i")};
   gq=function(a,b,c){if(!b.kb){var d=Io(b,"start",An());a=a.C.i(d).i;var e={id:"lidarv"};e.r=c;e.v=Ap+"v";li(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
   c=dga();li(c,function(f,h){return e[f]=encodeURIComponent(h)});
   c="//pagead2.googlesyndication.com/pagead/gen_204?"+On(Nn(new Mn,e));Sn(c);b.kb=!0}};
   hq=function(a,b,c){op(ep,[a],!An());Fo(a,c);4!=c&&Eo(a.ya,c,a.cz);return Io(a,b,An())};
   mga=function(a){cga(function(){var b=iq();null!=a.i&&(b.sdk=a.i);var c=Bm(Uo);null!=c.i&&(b.avms=c.i.getName());return b})};
   rga=function(a,b,c,d){if(a.B)var e=Oo(Qo,b);else e=Po(Qo,c),null!==e&&e.Gf!==b&&(a.Xu(e),e=null);e||(b=a.Rw(c,fn(),!1,b),0==Qo.u.length&&(Lm().B=79463069),To([b]),e=b,e.C=eq(a),d&&(e.Ua=d));return e};
   sga=function(a){g.Qb(Qo.i,function(b){3==b.xg&&a.Xu(b)})};
   jq=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
   iq=function(){var a=zn(),b={};return b.sv=Ap,b["if"]=a.B?"1":"0",b.nas=String(Qo.i.length),b};
   kq=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
   mq=function(a){return!!(1<<a&lq)};
   xga=function(){try{tga()}catch(d){}var a="a=1&b="+lq+"&",b=[],c=99;g.Qb(uga,function(d,e){var f=!1;try{f=d(zl)}catch(h){}b[e/32>>>0]|=f<<e%32});
   g.Qb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
   c=105;g.Qb(vga,function(d){var e="false";try{e=d(zl)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
   g.Qb(wga,function(d){var e="";try{e=g.Mc(g.Va(d(zl)),3)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
   return a.slice(0,-1)};
   tga=function(){if(!nq){var a=function(){oq=!0;zl.document.removeEventListener("webdriver-evaluate",a,!0)};
   zl.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){pq=!0;zl.document.removeEventListener("webdriver-evaluate-response",b,!0)};
   zl.document.addEventListener("webdriver-evaluate-response",b,!0);nq=!0}};
   yga=function(){this.blockSize=-1};
   qq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.C=Array(this.blockSize);this.B=this.u=0;this.reset()};
   rq=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.i[0];c=a.i[1];e=a.i[2];var f=a.i[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);
   h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
   h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
   5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
   e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
   e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
   h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
   3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
   4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
   4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.i[2]=a.i[2]+e&4294967295;a.i[3]=a.i[3]+f&4294967295};
   sq=function(){this.u=null};
   tq=function(a){return function(b){var c=new qq;c.update(b+a);return iaa(c.digest()).slice(-8)}};
   uq=function(a,b){this.i=a;this.B=b};
   to=function(a,b,c){var d=a.u();if("function"===typeof d){var e={};e=(e.sv=Ap,e.cb=Bp,e.e=zga(b),e);var f=Io(c,b,An());g.tc(e,f);c.FO[b]=f;a=2==c.yk()?Yca(e).join("&"):a.B.i(e).i;try{return d(c.Gf,a,b),0}catch(h){return 2}}else return 1};
   zga=function(a){var b=Fp(a)?"custom_metric_viewable":a;a=jc(Go,function(c){return c==b});
   return Dp[a]};
   vq=function(){Zp.call(this);this.J=null;this.D=!1;this.C=new sq};
   Aga=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&Array.isArray(c)&&nga(a,c,b)};
   Bga=function(a,b,c){var d=Oo(Qo,b);d||(d=c.opt_nativeTime||-1,d=$p(a,b,eq(a),d),c.opt_osdId&&(d.Ua=c.opt_osdId));return d};
   Cga=function(a,b,c){var d=Oo(Qo,b);d||(d=$p(a,b,"n",c.opt_nativeTime||-1));return d};
   Dga=function(a,b){var c=Oo(Qo,b);c||(c=$p(a,b,"h",-1));return c};
   Ega=function(a){Lm();switch(eq(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};
   xq=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.tc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.i(Ep("ol",d));if(void 0!==d)if(void 0!==Cp(d))if(bq)b=Ep("ue",d);else if(qga(a),"i"==cq)b=Ep("i",d),b["if"]=0;else if(b=a.jz(b,e))if(a.B&&3==b.xg)b="stopped";else{b:{"i"==cq&&(b.zs=!0,a.cG());c=e.opt_fullscreen;void 0!==c&&io(b,!!c);var f;if(c=!zn().u)(c=ib(g.Ub,"CrKey")||ib(g.Ub,"PlayStation")||ib(g.Ub,"Roku")||Uca()||ib(g.Ub,"Xbox"))||(c=g.Ub,c=ib(c,"AppleTV")||ib(c,
   "Apple TV")||ib(c,"CFNetwork")||ib(c,"tvOS")),c||(c=g.Ub,c=ib(c,"sdk_google_atv_x86")||ib(c,"Android TV")),c=!c;c&&(Dm(),c=0===Dl(km));if(f=c){switch(b.yk()){case 1:gq(a,b,"pv");break;case 2:a.PF(b)}dq("pv")}c=d.toLowerCase();if(f=!f)f=ul(Lm().featureSet,"ssmol")&&"loaded"===c?!1:g.wb(Fga,c);if(f&&0==b.xg){"i"!=cq&&(ep.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;kn=f="number"===typeof f?f:fn();b.Dy=!0;var h=An();b.xg=1;b.zf={};b.zf.start=!1;b.zf.firstquartile=!1;b.zf.midpoint=!1;b.zf.thirdquartile=
   !1;b.zf.complete=!1;b.zf.resume=!1;b.zf.pause=!1;b.zf.skip=!1;b.zf.mute=!1;b.zf.unmute=!1;b.zf.viewable_impression=!1;b.zf.measurable_impression=!1;b.zf.fully_viewable_audible_half_duration_impression=!1;b.zf.fullscreen=!1;b.zf.exitfullscreen=!1;b.mD=0;h||(b.Xg().S=f);op(ep,[b],!h)}(f=b.Hq[c])&&oo(b.jf,f);g.wb(Gga,c)&&!b.zs&&b.cq&&0!=b.xg&&(f=b.cq,f.i||(f.i=uo(f,b)));switch(b.yk()){case 1:var l=Fp(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.S[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Ep(void 0,
   c);g.tc(e,d);d=e;break b}d=void 0}3==b.xg&&(a.B?b.Kd&&b.Kd.Pt():a.Xu(b));b=d}else b=Ep("nf",d);else b=void 0;else bq?b=Ep("ue"):(b=a.jz(b,e))?(d=Ep(),g.tc(d,Ho(b,!0,!1,!1)),b=d):b=Ep("nf");return"string"===typeof b?a.B&&"stopped"===b?wq:a.C.i(void 0):a.C.i(b)};
   yq=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.B,b.moatInit=a.D,b.moatViewability=a.J,b.integralAdsViewability=a.C,b.doubleVerifyViewability=a.u,b};
   zq=function(a,b,c){c=void 0===c?{}:c;a=xq(Bm(vq),b,c,a);return yq(a)};
   Aq=function(a,b){b=void 0===b?!1:b;var c=Bm(vq).jz(a,{});c?zo(c):b&&(a=Bm(vq).Rw(null,fn(),!1,a),a.xg=3,To([a]))};
   Cq=function(a){if(g.$a(g.ig(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Rj(a)}catch(c){return null!=g.tb(Bq,function(d){return 0<a.search(d)})}return b.D.match(Hga)?!0:null!=g.tb(Bq,function(c){return null!=a.match(c)})};
   g.Dq=function(a,b){return a.replace(Iga,function(c,d){try{var e=nc(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.$a(g.ig(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
   Eq=function(){this.data_=[];this.i=-1};
   Jga=function(a){-1==a.i&&(a.i=Am(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
   return a.i};
   g.Fq=function(a,b,c){g.I.call(this);this.i=null;this.C=!1;this.J=a;this.D=c;this.u=b||window;this.B=(0,g.E)(this.bP,this)};
   g.Gq=function(a){a.isActive()||a.start()};
   Hq=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
   Iq=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
   g.M=function(a,b,c){g.I.call(this);this.i=a;this.Vf=b||0;this.u=c;this.B=(0,g.E)(this.zH,this)};
   g.Jq=function(a,b){a.isActive()||a.start(b)};
   g.Kq=function(a){a.stop();a.zH()};
   g.Lq=function(a){a.isActive()&&g.Kq(a)};
   Mq=function(a,b){this.i=a[g.D.Symbol.iterator]();this.u=b;this.B=0};
   Kga=function(a,b){return new Mq(a,b)};
   Nq=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
   Oq=function(a){return a.classList?a.classList:Nq(a).match(/\S+/g)||[]};
   g.Pq=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
   g.Qq=function(a,b){return a.classList?a.classList.contains(b):g.wb(Oq(a),b)};
   g.N=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Qq(a,b)){var c=Nq(a);g.Pq(a,c+(0<c.length?" "+b:b))}};
   g.Rq=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.N(a,e)});
   else{var c={};Array.prototype.forEach.call(Oq(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.Pq(a,b)}};
   g.Sq=function(a,b){a.classList?a.classList.remove(b):g.Qq(a,b)&&g.Pq(a,Array.prototype.filter.call(Oq(a),function(c){return c!=b}).join(" "))};
   g.Tq=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Sq(a,c)}):g.Pq(a,Array.prototype.filter.call(Oq(a),function(c){return!g.wb(b,c)}).join(" "))};
   g.O=function(a,b,c){c?g.N(a,b):g.Sq(a,b)};
   Uq=function(a,b){var c=!g.Qq(a,b);g.O(a,b,c)};
   Zq=function(a){if(a instanceof Vq||a instanceof Wq||a instanceof Xq)return a;if("function"==typeof a.sj)return new Vq(function(){return Yq(a)});
   if("function"==typeof a[Symbol.iterator])return new Vq(function(){return a[Symbol.iterator]()});
   if("function"==typeof a.Lg)return new Vq(function(){return Yq(a.Lg())});
   throw Error("Not an iterator or iterable.");};
   Yq=function(a){if(!(a instanceof g.lo))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.sj();break}catch(d){if(d!==g.$q)throw d;b=!0}return{value:c,done:b}}}};
   Vq=function(a){this.u=a};
   Wq=function(a){this.u=a};
   Xq=function(a){Vq.call(this,function(){return a});
   this.B=a};
   g.ar=function(a,b){this.u={};this.i=[];this.Io=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.ar)for(c=a.Vr(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
   cr=function(a){if(a.size!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];br(a.u,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.size!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],br(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
   br=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
   g.dr=function(){g.Ue.call(this);this.i=0;this.endTime=this.startTime=null};
   Lga=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.Sl(a,"transition",b.join(","))};
   er=function(a,b,c,d,e){g.dr.call(this);this.u=a;this.J=b;this.K=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
   fr=function(a,b,c,d){return new er(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
   hr=function(a){gr();return Nf(a,null)};
   g.ir=function(a){gr();return rf(a)};
   Nga=function(a){a=jb(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Mga))return null}return a};
   jr=function(a,b){a=g.D[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
   kr=function(a){var b=g.D.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
   lr=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Qc&&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)};
   Sga=function(a){if(!a)return Ef;var b=document.createElement("div").style;Oga(a).forEach(function(c){var d=g.Bg&&c in Pga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ya(d,"--")||Ya(d,"var")||(c=lr(Qga,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Nga(c),null!=c&&lr(Rga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
   return Xaa(g.lf("Output of CSS sanitizer"),b.cssText||"")};
   Oga=function(a){g.Ka(a)?a=g.Db(a):(a=g.ec(a),g.Ab(a,"cssText"));return a};
   g.nr=function(a){var b,c=b=0,d=!1;a=a.split(Tga);for(var e=0;e<a.length;e++){var f=a[e];g.mr.test(f)?(b++,c++):Uga.test(f)?d=!0:Vga.test(f)?c++:Wga.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
   g.or=function(a,b,c,d,e,f,h,l){this.i=a;this.K=b;this.B=c;this.D=d;this.C=e;this.J=f;this.u=h;this.S=l};
   g.pr=function(a,b){if(0==b)return a.i;if(1==b)return a.u;var c=g.Zf(a.i,a.B,b),d=g.Zf(a.B,a.C,b);a=g.Zf(a.C,a.u,b);c=g.Zf(c,d,b);d=g.Zf(d,a,b);return g.Zf(c,d,b)};
   qr=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
   Xga=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};
   rr=function(a){return(a=a.exec(g.Ub))?a[1]:""};
   sr=function(a){return 0<=g.nb(Yga,a)};
   g.tr=function(a){g.I.call(this);this.J=1;this.B=[];this.C=0;this.i=[];this.u={};this.K=!!a};
   Zga=function(a,b,c){g.ah(function(){a.apply(b,c)})};
   g.ur=function(a){this.i=a};
   vr=function(a){this.i=a};
   wr=function(a){this.data=a};
   xr=function(a){return void 0===a||a instanceof wr?a:new wr(a)};
   yr=function(a){this.i=a};
   g.zr=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Pa()||!!b&&b>g.Pa()};
   g.Ar=function(a){this.i=a};
   $ga=function(){};
   Br=function(){};
   Cr=function(a){this.i=a};
   Dr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
   Er=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
   Gr=function(a,b){this.u=a;this.i=null;if(g.Qc&&!g.Jc(9)){Fr||(Fr=new g.ar);this.i=Fr.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),Fr.set(a,this.i));try{this.i.load(this.u)}catch(c){this.i=null}}};
   Hr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return aha[b]})};
   Ir=function(a){try{a.i.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
   Jr=function(a,b){this.u=a;this.i=b+"::"};
   g.Kr=function(a){var b=new Dr;return b.isAvailable()?a?new Jr(b,a):b:null};
   Lr=function(a,b){this.i=a;this.u=b};
   Mr=function(a){this.i=[];if(a)a:{if(a instanceof Mr){var b=a.Vr();a=a.Ip();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new Lr(b[d],a[d]));break a}}else b=g.ec(a),a=dc(a);for(d=0;d<b.length;d++)Nr(this,b[d],a[d])}};
   Nr=function(a,b,c){var d=a.i;d.push(new Lr(b,c));b=d.length-1;a=a.i;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
   Or=function(){Mr.call(this)};
   Pr=function(){};
   bha=function(a,b){var c=[],d;b=b||Qr.length;if(a)for(d=0;d<a;d++)c[d]=Qr[0|Math.random()*b];else for(c[8]=c[13]=c[18]=c[23]="-",c[14]="4",d=0;36>d;d++)c[d]||(a=0|16*Math.random(),c[d]=Qr[19==d?a&3|8:a]);return c.join("")};
   Rr=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0===b.length?function(d){return d}:1===b.length?b[0]:b.reduce(function(d,e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
   return d(e.apply(null,g.v(h)))}})};
   cha=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return function(d){return function(e,f){function h(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
   e=d(e,f);var l={getState:e.getState,dispatch:function(m,n){for(var p=[],q=1;q<arguments.length;++q)p[q-1]=arguments[q];return h.apply(null,[m].concat(g.v(p)))}};
   f=b.map(function(m){return m(l)});
   h=Rr.apply(null,g.v(f))(e.dispatch);return Object.assign(Object.assign({},e),{dispatch:h})}}};
   Sr=function(){return Math.random().toString(36).substring(7).split("").join(".")};
   dha=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Tr}))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"+Sr()}))throw Error('Reducer "'+
   b+"\" returned undefined when probed with a random type. Don't try to handle "+(Tr+' 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.'));})};
   Ur=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(u){if("function"!==typeof u)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(u);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
   x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}}
   function h(u){if("object"!==typeof u||null===u)var x=!1;else{for(x=u;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(u)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof u.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,u)}finally{q=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
   return u}
   if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(Ur)(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:Tr});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(u){if("function"!==typeof u)throw Error("Expected the nextReducer to be a function.");l=u;h({type:eha});return t},a[Vr]=function(){var u={};
   return u.subscribe=function(x){function y(){x.next&&x.next(e())}
   if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},u[Vr]=function(){return this},u},a);
   return t};
   Wr=function(a){Nd.call(this,a,-1,fha)};
   Xr=function(a){Nd.call(this,a)};
   gha=function(a,b){for(;cd(b);)switch(b.D){case 10:var c=id(b);Pd(a,1,c);break;case 18:c=id(b);Pd(a,2,c);break;case 26:c=id(b);Pd(a,3,c);break;case 34:c=id(b);Pd(a,4,c);break;case 40:c=ad(b.i);Pd(a,5,c);break;default:if(!ge(a,b))return a}return a};
   hha=function(a){var b=a.split(""),c=[function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
   -1913990822,-48744141,671321554,-77746346,1007344322,1207611226,2080490653,b,function(d,e){d.push(e)},
   -640079634,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
   -131536599,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
   -1415684295,2107620495,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
   1624591942,null,212701242,2124371352,-547724475,-1451838424,458946477,87929274,-748949248,null,null,1104518399,"Ivj70v",1556115703,1801381205,b,1556115703,"indexOf",function(d,e){for(var f=64,h=[];++f-h.length-32;){switch(f){case 58:f-=14;case 91:case 92:case 93:continue;case 123:f=47;case 94:case 95:case 96:continue;case 46:f=95}h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
   "sKk1",b,-1274430051,-1799252831,function(d){d.reverse()},
   -842377839,-1195649590,1507216076,-1795939183,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
   -1799252831,2107595397,function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 58:f=96;continue;case 91:f=44;break;case 65:f=47;continue;case 46:f=153;case 123:f-=58;default:h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
   function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 46:f=95;default:h.push(String.fromCharCode(f));case 94:case 95:case 96:break;case 123:f-=76;case 92:case 93:continue;case 58:f=44;case 91:}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
   1360326211];c[18]=c;c[26]=c;c[27]=c;try{c[13](c[27],c[2]),c[38](c[45],c[37]),c[33](c[50],c[43]),c[13](c[0]),c[14](c[9],c[50]),c[4](c[22],c[30]),c[37](c[22],c[5]),c[51](c[33]),c[16](c[18],c[17]),c[13](c[28],c[5]),c[26](c[43],c[16]),c[23](c[36],c[25]),c[29](c[27],c[14]),c[15](c[37]),c[26](c[27],c[7]),c[13](c[37],c[12]),c[45](c[47],c[30]),c[23](c[5],c[9]),c[42](c[47],c[19]),c[32](c[4],c[0]),c[49](c[12],c[29]),c[33](c[4],c[16]),c[6](c[28]),c[14](c[38],c[1]),c[33](c[38],c[51]),c[32](c[45],c[41]),c[48](c[9],
   c[30]),c[0](c[12],c[3]),c[30](c[44],c[40]),c[25](c[44]),c[47](c[20],c[8]),c[30](c[34],c[23]),c[49](c[20],c[43]),c[26](c[20],c[39]),c[22](c[20]),c[26](c[34],c[48]),c[47](c[20],c[35]),c[49](c[20],c[16]),c[26](c[34],c[28]),c[49](c[44],c[9])}catch(d){return"enhanced_except_35MBoOz-_w8_"+a}return b.join("")};
   Yr=function(a){this.i=a};
   Zr=function(){Yr.apply(this,arguments)};
   $r=function(){Zr.apply(this,arguments)};
   as=function(){Zr.apply(this,arguments)};
   bs=function(){Zr.apply(this,arguments)};
   cs=function(){Yr.apply(this,arguments)};
   ds=function(){Zr.apply(this,arguments)};
   es=function(){Zr.apply(this,arguments)};
   fs=function(){Zr.apply(this,arguments)};
   gs=function(){Zr.apply(this,arguments)};
   hs=function(){Zr.apply(this,arguments)};
   is=function(){Zr.apply(this,arguments)};
   js=function(){Zr.apply(this,arguments)};
   ks=function(){Zr.apply(this,arguments)};
   ls=function(){Zr.apply(this,arguments)};
   ms=function(){Zr.apply(this,arguments)};
   ns=function(){Zr.apply(this,arguments)};
   os=function(){Zr.apply(this,arguments)};
   ps=function(){Zr.apply(this,arguments)};
   qs=function(){Zr.apply(this,arguments)};
   rs=function(){Zr.apply(this,arguments)};
   ts=function(){Zr.apply(this,arguments)};
   us=function(){Zr.apply(this,arguments)};
   vs=function(){return g.Ga("yt.ads.biscotti.lastId_")||""};
   ws=function(a){g.Fa("yt.ads.biscotti.lastId_",a,void 0)};
   xs=function(a){Nd.call(this,a)};
   zs=function(a){for(var b=0;b<arguments.length;++b);b=arguments;1<b.length?ys[b[0]]=b[1]:1===b.length&&Object.assign(ys,b[0])};
   g.P=function(a,b){return a in ys?ys[a]:b};
   As=function(a){var b=ys.EXPERIMENT_FLAGS;return b?b[a]:void 0};
   g.Cs=function(a){a=Bs(a);return"string"===typeof a&&"false"===a?!1:!!a};
   Ds=function(a,b){a=Bs(a);return void 0===a&&void 0!==b?b:Number(a||0)};
   Bs=function(a){var b=g.P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.P("EXPERIMENT_FLAGS",{})[a]};
   Es=function(){var a=[],b=g.P("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.P("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
   iha=function(a){Fs.forEach(function(b){return b(a)})};
   Hs=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Gs(b)}}:a};
   g.Gs=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"ERROR",b,c,d]),zs("ERRORS",e));iha(a)};
   Is=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"WARNING",b,c,d]),zs("ERRORS",e))};
   Ks=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=Js(f[0]||""),l=Js(f[1]||"");h in c?Array.isArray(c[h])?Eb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(Ks);m.args=[{key:n,value:f[1],query:a,method:jha==p?"unchanged":p}];kha.hasOwnProperty(n)||Is(m)}}return c};
   Ls=function(a){var b=[];g.Wb(a,function(c,d){var e=fg(d),f;Array.isArray(c)?f=c:f=[c];g.Qb(f,function(h){""==h?b.push(e):b.push(e+"="+fg(h))})});
   return b.join("&")};
   g.Ms=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Ks(a,"&")};
   Ns=function(a){a=a.split(",");return a=a.map(function(b){return g.Ms(b)})};
   g.Os=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.Ms(1<a.length?a[1]:a[0])):{}};
   Qs=function(a,b){return Ps(a,b||{},!0)};
   Rs=function(a,b){return Ps(a,b||{},!1)};
   Ps=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=g.Ms(e[1]||"");for(var f in b)if(c||!fc(e,f))e[f]=b[f];return g.ti(a,e)+d};
   Ss=function(a){if(!b)var b=window.location.href;var c=g.hi(1,a),d=g.ii(a);c&&d?(a=a.match(gi),b=b.match(gi),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.ii(b)==d&&(Number(g.hi(4,b))||null)==(Number(g.hi(4,a))||null):!0;return a};
   Ts=function(a){a||(a=document.location.href);a=g.hi(1,a);return null!==a&&"https"==a};
   Us=function(a){a=g.ii(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
   Js=function(a){return a&&a.match(lha)?a:gg(a)};
   pt=function(a){var b=Vs;a=void 0===a?vs():a;var c=Object,d=c.assign,e=Ws(b);var f=b.i;try{var h=f.screenX;var l=f.screenY}catch(z){}try{var m=f.outerWidth;var n=f.outerHeight}catch(z){}try{var p=f.innerWidth;var q=f.innerHeight}catch(z){}try{var t=f.screenLeft;var u=f.screenTop}catch(z){}try{p=f.innerWidth,q=f.innerHeight}catch(z){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(z){}f=[t,u,h,l,x,y,m,n,p,q];h=pn(!1,b.i.top);l={};m=new Eq;g.D.SVGElement&&g.D.document.createElementNS&&m.set(0);
   n=xca();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);g.D.crypto&&g.D.crypto.subtle&&m.set(3);g.D.TextDecoder&&g.D.TextEncoder&&m.set(4);m=Jga(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Dl(b.u),l.wgl=!!zl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
   Ws=function(a){var b={};b.dt=mha;b.flash="0";a:{try{var c=a.i.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?zl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=zl.screen)?void 0:f.height;var h;b.u_w=null==(h=zl.screen)?void 0:h.width;var l;b.u_ah=null==(l=zl.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=zl.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=zl.screen)?void 0:
   n.colorDepth}catch(p){}return b};
   nha=function(){if(!qt)return null;var a=qt();return"open"in a?a:null};
   g.tt=function(a){switch(rt(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
   rt=function(a){return a&&"status"in a?a.status:-1};
   g.ut=function(a,b){"function"===typeof a&&(a=Hs(a));return window.setTimeout(a,b)};
   vt=function(a,b){"function"===typeof a&&(a=Hs(a));return window.setInterval(a,b)};
   g.wt=function(a){window.clearTimeout(a)};
   oha=function(a,b){b=void 0===b?{}:b;var c=Ss(a),d=g.Cs("web_ajax_ignore_global_headers_if_set"),e;for(e in xt){var f=g.P(xt[e]);!f||!c&&!zt(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||zt(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||zt(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||zt(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Ls(pt(void 0));return b};
   At=function(a,b){var c=g.ii(a);g.Cs("debug_handle_relative_url_for_query_forward_killswitch")||c||!Ss(a)||(c=document.location.hostname);var d=fi(g.hi(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=g.Ms(b),f={};g.Qb(pha,function(h){e[h]&&(f[h]=e[h])});
   return Rs(a,f)};
   zt=function(a){return g.ii(a)?!1:!0};
   g.Ct=function(a,b){var c=b.format||"JSON";a=qha(a,b);var d=rha(a,b),e=!1,f=Bt(a,function(m){if(!e){e=!0;l&&g.wt(l);var n=g.tt(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=sha(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.D;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
   b.method,d,b.headers,b.responseType,b.withCredentials);
   if(b.onTimeout&&0<b.timeout){var h=b.onTimeout;var l=g.ut(function(){e||(e=!0,f.abort(),g.wt(l),h.call(b.context||g.D,f))},b.timeout)}return f};
   qha=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.P("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=Qs(a,b);return a};
   rha=function(a,b){var c=g.P("XSRF_FIELD_NAME",void 0),d=g.P("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,h=g.P("XSRF_FIELD_NAME",void 0),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.ii(a)&&!b.withCredentials&&g.ii(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=g.Ms(e),g.tc(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.ri(e));f=e||
   f&&!g.lc(f);!Dt&&f&&"POST"!=b.method&&(Dt=!0,g.Gs(Error("AJAX request with postData should use POST")));return e};
   sha=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,Is(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)?tha(a):null)e={},g.Qb(a.getElementsByTagName("*"),function(h){e[h.tagName]=uha(h)})}d&&Et(e);
   return e};
   Et=function(a){if(g.La(a))for(var b in a)"html_content"==b||Za(b,"_html")?a[b]=g.Qf(g.lf("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Et(a[b])};
   tha=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
   uha=function(a){var b="";g.Qb(a.childNodes,function(c){b+=c.nodeValue});
   return b};
   Bt=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Hs(b)(m)}
   c=void 0===c?"GET":c;d=void 0===d?"":d;var m=nha();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Cs("debug_forward_web_query_parameters")&&(a=At(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=oha(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};
   Gt=function(a,b){var c=g.pc(b),d;return g.qh(new fh(function(e,f){c.onSuccess=function(h){g.tt(h)?e(new vha(h)):f(new Ft("Request failed, status="+rt(h),"net.badstatus",h))};
   c.onError=function(h){f(new Ft("Unknown request error","net.unknown",h))};
   c.onTimeout=function(h){f(new Ft("Request timed out","net.timeout",h))};
   d=g.Ct(a,c)}),function(e){e instanceof vh&&d.abort();
   return kh(e)})};
   g.Ht=function(a,b,c,d){function e(l,m,n){return g.qh(l,function(p){if(0>=m||403===rt(p.xhr))return kh(new Ft("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(Gt(a,b),m-1,q)})})}
   function f(l){return new fh(function(m){setTimeout(m,l)})}
   var h=void 0===h?-1:h;return e(Gt(a,b),c-1,d)};
   Ft=function(a,b,c){Sa.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
   vha=function(a){this.xhr=a};
   It=function(){this.u=0;this.i=null};
   Jt=function(a){var b=new It;a=void 0===a?null:a;b.u=2;b.i=void 0===a?null:a;return b};
   Kt=function(a){var b=new It;a=void 0===a?null:a;b.u=1;b.i=void 0===a?null:a;return b};
   g.Nt=function(a,b,c,d,e){Lt||Mt.set(""+a,b,{Kz:c,path:"/",domain:void 0===d?"youtube.com":d,WW:void 0===e?!1:e})};
   g.Ot=function(a,b){if(!Lt)return Mt.get(""+a,b)};
   g.Pt=function(a,b,c){Lt||Mt.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
   Qt=function(){if(!Mt.isEnabled())return!1;if(!Mt.isEmpty())return!0;Mt.set("TESTCOOKIESENABLED","1",{Kz:60});if("1"!==Mt.get("TESTCOOKIESENABLED"))return!1;Mt.remove("TESTCOOKIESENABLED");return!0};
   Rt=function(){var a=/Chrome\/(\d+)/.exec(g.Ub);return a?parseFloat(a[1]):NaN};
   St=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Ub);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("."))};
   Ut=function(){return Tt("android")&&Tt("chrome")&&!(Tt("trident/")||Tt("edge/"))&&!Tt("cobalt")};
   Vt=function(){return Tt("armv7")||Tt("aarch64")||Tt("android")};
   g.Wt=function(){return Tt("cobalt")};
   Xt=function(){return Tt("cobalt")&&Tt("appletv")};
   Yt=function(){return Tt("(ps3; leanback shell)")||Tt("ps3")&&g.Wt()};
   Zt=function(){return Tt("(ps4; leanback shell)")||Tt("ps4")&&g.Wt()};
   g.$t=function(){return g.Wt()&&(Tt("ps4 vr")||Tt("ps4 pro vr"))};
   au=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ub);return!!(a&&600<=parseInt(a[1],10))};
   bu=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ub);return!!(a&&602<=parseInt(a[1],10))};
   cu=function(){return Tt("iemobile")||Tt("windows phone")&&Tt("edge")};
   eu=function(){return du&&Tt("applewebkit")&&!Tt("version")&&(!Tt("safari")||Tt("gsa/"))};
   gu=function(){return g.fu&&Tt("version/")};
   hu=function(){return Tt("smart-tv")&&Tt("samsung")};
   Tt=function(a){var b=g.Ub;return b?0<=b.toLowerCase().indexOf(a):!1};
   iu=function(){if(Rh())return!0;var a=g.P("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a||eu()||gu()?!0:(a=g.Ot("CONSENT"))?a.startsWith("YES+"):!0};
   ku=function(a){Sa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof ju;this.isTimeout=a instanceof Ft&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof vh};
   ju=function(){Sa.call(this,"Biscotti ID is missing from server")};
   wha=function(){if(g.Cs("disable_biscotti_fetch_entirely_for_all_web_clients"))return kh(Error("Biscotti id fetching has been disabled entirely."));if(!iu())return kh(Error("User has not consented - not fetching biscotti id."));if("1"==nc(g.P("PLAYER_VARS",{}),"privembed",!1))return kh(Error("Biscotti ID is not available in private embed mode"));lu||(lu=g.qh(Gt("//googleads.g.doubleclick.net/pagead/id",mu).then(nu),function(a){return ou(2,a)}));
   return lu};
   nu=function(a){a=a.xhr.responseText;if(!Ya(a,")]}'"))throw new ju;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new ju;a=a.id;ws(a);lu=Kt(a);pu(18E5,2);return a};
   ou=function(a,b){b=new ku(b);ws("");lu=Jt(b);0<a&&pu(12E4,a-1);throw b;};
   pu=function(a,b){g.ut(function(){g.qh(Gt("//googleads.g.doubleclick.net/pagead/id",mu).then(nu,function(c){return ou(b,c)}),g.Ha)},a)};
   qu=function(){try{var a=g.Ga("yt.ads.biscotti.getId_");return a?a():wha()}catch(b){return kh(b)}};
   tu=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=ru+"VisibilityState";if(b in a)return a[b]};
   uu=function(a,b){var c;vn(a,function(d){c=b[d];return!!c});
   return c};
   vu=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 xha||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
   if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.i=a.pageX;this.u=a.pageY}}catch(e){}};
   wu=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.i=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
   yha=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 jc(xu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.La(e[4])&&g.La(d)&&g.oc(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
   g.Au=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=yha(a,b,c,d);if(e)return e;e=++yu.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new vu(l);if(!Qg(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new vu(l);
   l.currentTarget=a;return c.call(a,l)};
   h=Hs(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),zu()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);xu[e]=[a,b,c,h,d];return e};
   zha=function(a,b){var c=document.body||document;return g.Au(c,"click",function(d){var e=Qg(d.target,function(f){return f===c||b(f)},!0);
   e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
   g.Bu=function(a){a&&("string"==typeof a&&(a=[a]),g.Qb(a,function(b){if(b in xu){var c=xu[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?zu()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete xu[b]}}))};
   g.Cu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
   Du=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.Cu(a)};
   Eu=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};
   Fu=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.ag(b,c)};
   g.Gu=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
   g.Hu=function(a){a=a||window.event;return!1===a.returnValue||a.dL&&a.dL()};
   g.Iu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
   Aha=function(a){return zha(a,function(b){return g.Qq(b,"ytp-ad-has-logging-urls")})};
   g.Ju=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Au(a,b,function(){g.Bu(e);c.apply(a,arguments)},d)};
   Ku=function(a){for(var b in xu)xu[b][0]==a&&g.Bu(b)};
   Lu=function(a){this.K=a;this.i=null;this.C=0;this.J=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.ma=g.Au(window,"mousemove",(0,g.E)(this.Z,this));this.S=vt((0,g.E)(this.Y,this),25)};
   Mu=function(){};
   Ou=function(a,b,c){return Nu(b,0,c)};
   g.Pu=function(a,b,c){return Nu(b,1,c)};
   Bha=function(a,b,c){Nu(b,2,c)};
   Qu=function(){Mu.apply(this,arguments)};
   Ru=function(){Qu.i||(Qu.i=new Qu);return Qu.i};
   g.Su=function(){return!!g.Ga("yt.scheduler.instance")};
   Nu=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ga("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.ut(a,c||0)};
   g.Tu=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ga("yt.scheduler.instance.cancelJob");b?b(a):g.wt(a)}};
   Uu=function(a){var b=g.Ga("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
   Xu=function(){var a={},b=void 0===a.yW?!1:a.yW;a=void 0===a.AR?!0:a.AR;if(null==g.Ga("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Vu();g.Au(document,"keydown",Vu);g.Au(document,"keyup",Vu);g.Au(document,"mousedown",Vu);g.Au(document,"mouseup",Vu);b?g.Au(window,"touchmove",function(){Wu("touchmove",200)},{passive:!0}):(g.Au(window,"resize",function(){Wu("resize",200)}),a&&g.Au(window,"scroll",function(){Wu("scroll",
   200)}));
   new Lu(function(){Wu("mouse",100)});
   g.Au(document,"touchstart",Vu,{passive:!0});g.Au(document,"touchend",Vu,{passive:!0})}};
   Wu=function(a,b){Yu[a]||(Yu[a]=!0,g.Pu(0,function(){Vu();Yu[a]=!1},b))};
   Vu=function(){null==g.Ga("_lact",window)&&(Xu(),g.Ga("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ga("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()};
   Zu=function(){var a=g.Ga("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
   g.av=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Wt())a&&(a=g.uf(g.yf(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.Mf(Of(a)).toString(),a=fg(g.Zh(a))),g.$a(a)||(a=Fg("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),og(a).body.appendChild(a)));else if(e)Bt(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Bt(a,b,"GET","",d);else{b:{try{var f=new lca({url:a});if(f.B&&f.u||f.C){var h=fi(g.hi(5,a));var l=!(!h||!h.endsWith("/aclk")||
   "1"!==xi(a,"ri"));break b}}catch(m){}l=!1}l?$u(a)?(b&&b(),c=!0):c=!1:c=!1;c||Cha(a,b)}};
   bv=function(a,b,c){c=void 0===c?"":c;$u(a,c)?b&&b():g.av(a,b,void 0,void 0,c)};
   $u=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
   Cha=function(a,b){var c=new Image,d=""+Dha++;cv[d]=c;c.onload=c.onerror=function(){b&&cv[d]&&b();delete cv[d]};
   c.src=a};
   g.hv=function(a,b,c){var d=g.dv();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){ev[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
   try{g.fv[a]?h():g.ut(h,0)}catch(l){g.Gs(l)}},c);
   ev[e]=!0;gv[a]||(gv[a]=[]);gv[a].push(e);return e}return 0};
   g.iv=function(a){var b=g.dv();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Qb(a,function(c){b.unsubscribeByKey(c);delete ev[c]}))};
   g.jv=function(a,b){var c=g.dv();return c?c.publish.apply(c,arguments):!1};
   lv=function(a){var b=g.dv();if(b)if(b.clear(a),a)kv(a);else for(var c in gv)kv(c)};
   g.dv=function(){return g.D.ytPubsubPubsubInstance};
   kv=function(a){gv[a]&&(a=gv[a],g.Qb(a,function(b){ev[b]&&delete ev[b]}),a.length=0)};
   Eha=function(a,b){if("log_event"===a.endpoint){var c="";a.By?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(mv[a.cttAuthInfo.token]=nv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=ov.get(c)||[];ov.set(c,d);d.push(a.payload);b&&(pv=new b);a=Ds("tvhtml5_logging_max_batch")||Ds("web_logging_max_batch")||100;b=(0,g.Q)();d.length>=a?qv({writeThenSend:!0},g.Cs("flush_only_full_queue")?c:void 0):10<=b-rv&&(tv(),rv=b)}};
   Fha=function(a,b){if("log_event"===a.endpoint){var c="";a.By?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(mv[a.cttAuthInfo.token]=nv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=new Map;d.set(c,[a.payload]);b&&(pv=new b);return new fh(function(e){pv&&pv.isReady()?uv(d,e,{bypassNetworkless:!0},!0):e()})}};
   qv=function(a,b){a=void 0===a?{}:a;new fh(function(c){g.wt(vv);g.wt(wv);wv=0;if(pv&&pv.isReady())if(void 0!==b){var d=new Map,e=ov.get(b)||[];d.set(b,e);uv(d,c,a);ov.delete(b)}else uv(ov,c,a),ov.clear();else tv(),c()})};
   tv=function(){g.Cs("web_gel_timeout_cap")&&!wv&&(wv=g.ut(function(){qv({writeThenSend:!0})},6E4));
   g.wt(vv);var a=g.P("LOGGING_BATCH_TIMEOUT",Ds("web_gel_debounce_ms",1E4));g.Cs("shorten_initial_gel_batch_timeout")&&xv&&(a=Gha);vv=g.ut(function(){qv({writeThenSend:!0})},a)};
   uv=function(a,b,c,d){var e=pv;c=void 0===c?{}:c;var f=Math.round((0,g.Q)()),h=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.qc({context:g.yv(e.config_||g.zv())});m.events=n;(n=mv[l])&&Hha(m,l,n);delete mv[l];l="visitorOnlyApprovedKey"===l;Iha(m,f,l);g.Cs("always_send_and_write")&&(c.writeThenSend=!1);g.Cs("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&bv("/generate_204");g.Av(e,"log_event",
   m,{retry:!0,onSuccess:function(){h--;h||b()},
   onError:function(){h--;h||b()},
   TL:c,By:l,Daa:!!d});xv=!1}};
   Iha=function(a,b,c){a.requestTimeMs=String(b);g.Cs("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID",void 0))&&((c=g.P("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*Bv/2)),c++,c>Bv&&(c=1),zs("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
   Hha=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}]};
   nv=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b};
   Ev=function(a,b,c,d){d=void 0===d?{}:d;if(g.Cs("lr_drop_other_and_business_payloads")){if(Cv[a]||Jha[a])return}else if(g.Cs("lr_drop_other_payloads")&&Cv[a])return;var e={},f=Math.round(d.timestamp||(0,g.Q)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=Zu();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Cs("log_sequence_info_on_gel_web")&&d.xm&&(a=e.context,b=d.xm,Dv[b]=b in Dv?Dv[b]+1:0,a.sequence={index:Dv[b],groupKey:b},d.CR&&delete Dv[d.xm]);(d.XW?Fha:Eha)({endpoint:"log_event",
   payload:e,cttAuthInfo:d.cttAuthInfo,By:d.By},c)};
   Fv=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
   Gv=function(){if(!g.D.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.D.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.D.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.D.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.D.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
   g.Iv=function(){this.i=g.P("ALT_PREF_COOKIE_NAME","PREF");this.u=g.P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Ot(this.i);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Hv[d]=c.toString())}}};
   g.Kv=function(a,b){return!!((Jv("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
   Lv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
   Mv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
   Jv=function(a){a=void 0!==Hv[a]?Hv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
   Nv=function(){var a=g.D.navigator;return a?a.connection:void 0};
   Pv=function(){var a=Nv();if(a){var b=Ov[a.type||"unknown"]||"CONN_UNKNOWN";a=Ov[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
   Rv=function(){var a=Nv();if(null!==a&&void 0!==a&&a.effectiveType)return Qv.hasOwnProperty(a.effectiveType)?Qv[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
   Sv=function(){return"INNERTUBE_API_KEY"in ys&&"INNERTUBE_API_VERSION"in ys};
   g.zv=function(){return{innertubeApiKey:g.P("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.P("INNERTUBE_API_VERSION",void 0),SK:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),TK:g.P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),VK:g.P("INNERTUBE_CONTEXT_HL",void 0),UK:g.P("INNERTUBE_CONTEXT_GL",void 0),WK:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",YK:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),XK:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
   !1),appInstallData:g.P("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
   g.yv=function(a){var b={client:{hl:a.VK,gl:a.UK,clientName:a.TK,clientVersion:a.innertubeContextClientVersion,configInfo:a.SK}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.D.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.P("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=Es();0<c.length&&(b.request={internalExperimentFlags:c});c=b.client.clientName;if("WEB"===c||"MWEB"===c||1===c||2===c){if(!g.Cs("web_include_display_mode_killswitch")){var d;
   b.client.mainAppWebInfo=null!=(d=b.client.mainAppWebInfo)?d:{};b.client.mainAppWebInfo.webDisplayMode=Gv()}}else if(d=b.client.clientName,("WEB_REMIX"===d||76===d)&&!g.Cs("music_web_display_mode_killswitch")){var e;b.client.RL=null!=(e=b.client.RL)?e:{};b.client.RL.webDisplayMode=Gv()}a.appInstallData&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.P("DELEGATED_SESSION_ID")&&!g.Cs("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.P("DELEGATED_SESSION_ID")});
   if(a=Pv())b.client.connectionType=a;g.Cs("web_log_effective_connection_type")&&(a=Rv())&&(b.client.effectiveConnectionType=a);a=Object;e=a.assign;d=b.client;c={};for(var f=g.r(Object.entries(g.Ms(g.P("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?c.deviceMake=l:"cmodel"===h?c.deviceModel=l:"cbr"===h?c.browserName=l:"cbrver"===h?c.browserVersion=l:"cos"===h?c.osName=l:"cosver"===h?c.osVersion=l:"cplatform"===h&&(c.platform=l)}b.client=
   e.call(a,d,c);return b};
   Kha=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.WI||g.P("AUTHORIZATION"))||(a?b="Bearer "+g.Ga("gapi.auth.getToken")().Aaa:b=Vh([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.P("SESSION_INDEX",0),g.Cs("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return d};
   Tv=function(a){var b;(b=g.Kr(a))||(a=new Gr(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new yr(a):null;this.u=document.domain||window.location.hostname};
   Vv=function(){var a;return null===(a=Uv())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
   Lha=function(){var a={};for(Wv=new Xv(void 0===a.handleError?Yv:a.handleError,void 0===a.logEvent?g.Zv:a.logEvent);0<$v.length;)switch(a=$v.shift(),a.type){case "ERROR":Wv.ge(a.payload);break;case "EVENT":Wv.logEvent(a.eventType,a.payload)}};
   bw=function(a){aw||(Wv?Wv.ge(a):($v.push({type:"ERROR",payload:a}),10<$v.length&&$v.shift()))};
   cw=function(a,b){aw||(Wv?Wv.logEvent(a,b):($v.push({type:"EVENT",eventType:a,payload:b}),10<$v.length&&$v.shift()))};
   g.dw=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.v(c))};
   fw=function(){try{return ew(),!0}catch(a){return!1}};
   ew=function(a){if(void 0!==g.P("DATASYNC_ID",void 0))return g.P("DATASYNC_ID",void 0);throw new g.dw("Datasync ID not set",void 0===a?"unknown":a);};
   gw=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
   hw=function(a){return a.substr(0,a.indexOf(":"))||a};
   jw=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?iw[a]:c;d=void 0===d?Mha[a]:d;e=void 0===e?Nha[a]:e;g.dw.call(this,c,Object.assign({name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.i=e;Object.setPrototypeOf(this,jw.prototype)};
   kw=function(a){jw.call(this,"MISSING_OBJECT_STORE",{YS:a},iw.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,kw.prototype)};
   lw=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,lw.prototype)};
   mw=function(a,b,c,d){b=hw(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof jw)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new jw("QUOTA_EXCEEDED",a);if(g.gj&&"UnknownError"===e.name)return new jw("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof lw)return new jw("MISSING_INDEX",Object.assign(Object.assign({},a),{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Oha.some(function(f){return e.message.includes(f)}))return new jw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
   a);
   if("AbortError"===e.name)return new jw("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign(Object.assign({},a),{name:"IdbError",lA:e.name})];e.level="WARNING";return e};
   g.nw=function(a,b,c){var d=Vv();return new jw("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null===d||void 0===d?void 0:d.hasSucceededOnce}})};
   Pha=function(a){if(!a)throw Error();throw a;};
   Qha=function(a){return a};
   ow=function(a){this.i=a};
   pw=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.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
   var d=this;this.state={status:"PENDING"};this.i=[];this.onRejected=[];a=a.i;try{a(c,b)}catch(e){b(e)}};
   rw=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 pw?qw(a,b,f,d,e):d(f)}catch(h){e(h)}};
   tw=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 pw?qw(a,b,f,d,e):d(f)}catch(h){e(h)}};
   qw=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof pw?qw(a,b,f,d,e):d(f)},function(f){e(f)})};
   uw=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)};
   Rha=function(a){return new Promise(function(b,c){uw(a,b,c)})};
   vw=function(a){return new pw(new ow(function(b,c){uw(a,b,c)}))};
   ww=function(a,b){return new pw(new ow(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
   e()}))};
   xw=function(a,b){this.request=a;this.cursor=b};
   yw=function(a){return vw(a).then(function(b){return b?new xw(a,b):null})};
   zw=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.Q)());this.u=!1};
   Bw=function(a,b,c){a=a.i.createObjectStore(b,c);return new Aw(a)};
   Cw=function(a,b){a.i.objectStoreNames.contains(b)&&a.i.deleteObjectStore(b)};
   Sha=function(a,b){return Dw(a,["captions"],{mode:"readonly",Hc:!0},function(c){return Ew(c.objectStore("captions"),b,void 0)})};
   Tha=function(a,b){return Dw(a,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(c){return Fw(c.objectStore("LogsRequestsStore"),b,void 0)})};
   Dw=function(a,b,c,d){return g.H(a,function f(){var h=this,l,m,n,p,q,t,u,x,y,z,G,F;return g.B(f,function(C){switch(C.i){case 1:var K={mode:"readonly",Hc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?K.mode=c:Object.assign(K,c);l=K;h.transactionCount++;m=l.Hc?3:1;n=0;case 2:if(p){C.fb(3);break}n++;q=Math.round((0,g.Q)());ua(C,4);t=h.i.transaction(b,l.mode);K=new Gw(t);K=Uha(K,d);return g.A(C,K,6);case 6:return u=C.u,x=Math.round((0,g.Q)()),Hw(h,q,x,n,void 0,b.join(),l),C.return(u);case 4:y=
   wa(C);z=Math.round((0,g.Q)());G=mw(y,h.i.name,b.join(),h.i.version);if((F=G instanceof jw&&!G.i)||n>=m)Hw(h,q,z,n,G,b.join(),l),p=G;C.fb(2);break;case 3:return C.return(Promise.reject(p))}})})};
   Hw=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof jw&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&cw("QUOTA_EXCEEDED",{dbName:hw(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof jw&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),cw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Iw(a,!1,d,f,b,h.tag),bw(e)):Iw(a,!0,d,f,b,h.tag)};
   Iw=function(a,b,c,d,e,f){cw("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
   Aw=function(a){this.i=a};
   Jw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})};
   Vha=function(a,b){return Kw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
   Ew=function(a,b,c){return"getAll"in IDBObjectStore.prototype?vw(a.i.getAll(b,c)):Wha(a,b,c)};
   Wha=function(a,b,c){var d=[];return Kw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
   Lw=function(a){return"getAllKeys"in IDBObjectStore.prototype?vw(a.i.getAllKeys(void 0,void 0)):Xha(a)};
   Xha=function(a){var b=[];return Mw(a,{query:void 0},function(c){b.push(c.fz());return c.continue()}).then(function(){return b})};
   Fw=function(a,b,c){return vw(a.i.put(b,c))};
   Kw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return Nw(a).then(function(d){return ww(d,c)})};
   Mw=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,b):a.i.openCursor(d,b);return yw(a).then(function(e){return ww(e,c)})};
   Gw=function(a){var b=this;this.i=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()});
   b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)});
   b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.u){e=jw;for(var f=b.i.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.i.db.name,mode:b.i.mode});d(e)}})})};
   Uha=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})};
   Ow=function(a){this.i=a};
   Pw=function(a,b){return"getAll"in IDBIndex.prototype?vw(a.i.getAll(b,void 0)):Yha(a,b)};
   Yha=function(a,b){var c=[];return Qw(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
   Qw=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Nw(a).then(function(d){return ww(d,c)})};
   Rw=function(a,b){this.request=a;this.cursor=b};
   Nw=function(a){return vw(a).then(function(b){return b?new Rw(a,b):null})};
   Zha=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new zw(h.result,{closed:q}));return t}
   var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.pX,p=c.upgrade,q=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&cw("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:hw(a)});var x=f(),y=new Gw(h.transaction);
   p&&p(x,function(z){return u.oldVersion<z&&u.newVersion>=z},y);
   y.done.catch(function(z){e(z)})}catch(z){e(z)}});
   h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())});
   u.addEventListener("close",function(){cw("IDB_UNEXPECTEDLY_CLOSED",{dbName:hw(a),dbVersion:u.version});n&&n()});
   d(f())});
   h.addEventListener("error",function(){e(h.error)});
   l&&h.addEventListener("blocked",function(){l()})})};
   Sw=function(a,b,c){c=void 0===c?{}:c;return Zha(a,b,c)};
   Tw=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e,f,h;return g.B(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
   return g.A(l,Rha(e),0)})})};
   Uw=function(a,b){this.name=a;this.options=b;this.C=!0;this.B=!1};
   Vw=function(a,b){return new jw("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
   Ww=function(a,b){if(!b)throw g.nw("openWithToken",hw(a.name));return a.open()};
   Yw=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Ww(Xw,b),2);e=f.u;return f.return(Dw(e,["databases"],{Hc:!0,mode:"readwrite"},function(h){var l=h.objectStore("databases");return l.get(a.actualName).then(function(m){if(m?a.actualName!==m.actualName||a.publicName!==m.publicName||a.userIdentifier!==m.userIdentifier:1)return Fw(l,a).then(function(){})})}))})})};
   Zw=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return a?g.A(f,Ww(Xw,b),2):f.return();e=f.u;return f.return(e.delete("databases",a))})})};
   $w=function(a,b){return g.H(this,function d(){var e,f;return g.B(d,function(h){return 1==h.i?(e=[],g.A(h,Ww(Xw,b),2)):3!=h.i?(f=h.u,g.A(h,Dw(f,["databases"],{Hc:!0,mode:"readonly"},function(l){e.length=0;return Kw(l.objectStore("databases"),{},function(m){a(m.getValue())&&e.push(m.getValue());return m.continue()})}),3)):h.return(e)})})};
   $ha=function(a){return $w(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
   aia=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return d=ew("YtIdbMeta"),g.A(f,$w(function(h){return"yt-player-local-media"===h.publicName&&h.userIdentifier===d},a),2);
   e=f.u;return f.return(0<e.length)})})};
   bia=function(){return g.H(this,function b(){var c,d,e;return g.B(b,function(f){switch(f.i){case 1:c=Vv();if(null===c||void 0===c?0:c.hasSucceededOnce)return f.return(!0);if(du&&au()&&!bu()||g.ax)return f.return(!1);try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return f.return(!1)}catch(h){return f.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return f.return(!1);ua(f,2);e={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",
   userIdentifier:void 0};return g.A(f,Yw(e,bx),4);case 4:return g.A(f,Zw("yt-idb-test-do-not-use",bx),5);case 5:return f.return(!0);case 2:return wa(f),f.return(!1)}})})};
   dx=function(){if(void 0!==cx)return cx;aw=!0;return cx=bia().then(function(a){aw=!1;var b,c;null!==(b=Uv())&&void 0!==b&&b.i&&(b=Vv(),b={hasSucceededOnce:(null===b||void 0===b?void 0:b.hasSucceededOnce)||a},null===(c=Uv())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0));return a})};
   g.ex=function(){return dx().then(function(a){return a?bx:void 0})};
   fx=function(a){if(!fw())throw a=new jw("AUTH_INVALID",{dbName:a}),bw(a),a;var b=ew();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
   gx=function(a,b,c,d){var e;return g.H(this,function h(){var l,m,n,p,q;return g.B(h,function(t){switch(t.i){case 1:return l=null!==(e=Error().stack)&&void 0!==e?e:"",g.A(t,g.ex(),2);case 2:m=t.u;if(!m)throw n=g.nw("openDbImpl",a,b),g.Cs("ytidb_async_stack_killswitch")||(n.stack=n.stack+"\n"+l.substring(l.indexOf("\n")+1)),bw(n),n;gw(a);p=c?{actualName:a,publicName:a,userIdentifier:void 0}:fx(a);ua(t,3);return g.A(t,Yw(p,m),5);case 5:return g.A(t,Sw(p.actualName,b,d),6);case 6:return t.return(t.u);
   case 3:return q=wa(t),ua(t,7),g.A(t,Zw(p.actualName,m),9);case 9:va(t,8);break;case 7:wa(t);case 8:throw q;}})})};
   cia=function(a,b,c){c=void 0===c?{}:c;return gx(a,b,!1,c)};
   dia=function(a,b,c){c=void 0===c?{}:c;return gx(a,b,!0,c)};
   eia=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e,f;return g.B(d,function(h){if(1==h.i)return g.A(h,g.ex(),2);if(3!=h.i){e=h.u;if(!e)return h.return();gw(a);f=fx(a);return g.A(h,Tw(f.actualName,b),3)}return g.A(h,Zw(f.actualName,e),0)})})};
   fia=function(a,b,c){var d=this;a=a.map(function(e){return g.H(d,function h(){return g.B(h,function(l){return 1==l.i?g.A(l,Tw(e.actualName,b),2):g.A(l,Zw(e.actualName,c),0)})})});
   return Promise.all(a).then(function(){})};
   gia=function(){var a=void 0===a?{}:a;return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,g.ex(),2);if(3!=f.i){d=f.u;if(!d)return f.return();gw("LogsDatabaseV2");return g.A(f,$ha(d),3)}e=f.u;return g.A(f,fia(e,a,d),0)})})};
   hx=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,g.ex(),2);if(3!=f.i){e=f.u;if(!e)return f.return();gw(a);return g.A(f,Tw(a,b),3)}return g.A(f,Zw(a,e),0)})})};
   hia=function(){return g.H(this,function b(){var c;return g.B(b,function(d){return 1==d.i?g.A(d,g.ex(),2):(c=d.u)?d.return(aia(c)):d.return(!1)})})};
   jx=function(a){var b,c,d,e,f,h,l,m;this.re=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){};
   this.ls=function(){};
   this.now=Date.now;this.aO=null!==(b=a.aO)&&void 0!==b?b:100;this.DN=null!==(c=a.DN)&&void 0!==c?c:1;this.xN=null!==(d=a.xN)&&void 0!==d?d:2592E6;this.oN=null!==(e=a.oN)&&void 0!==e?e:12E4;this.BN=null!==(f=a.BN)&&void 0!==f?f:5E3;this.databaseToken=null!==(h=a.databaseToken)&&void 0!==h?h:void 0;this.Ey=!!a.Ey;this.qy=null!==(l=a.qy)&&void 0!==l?l:.1;this.vA=null!==(m=a.vA)&&void 0!==m?m:10;a.handleError&&(this.handleError=a.handleError);a.ls&&(this.ls=a.ls);this.ob=a.ob;this.mL=a.mL;this.df=a.df;
   this.Ve=a.Ve;this.wm=a.wm;this.yF=a.yF;this.WE=a.WE;this.databaseToken&&(!this.ob||this.ob("networkless_logging"))&&ix(this)};
   ix=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){if(!d.databaseToken)return e.return();kx(d);d.Ve.Te()&&d.sx();d.Ve.Qa(d.yF,d.sx.bind(d));d.Ve.Qa(d.WE,d.jJ.bind(d));d.re=!0;return d.Ey&&Math.random()<=d.qy?g.A(e,d.df.hR(d.databaseToken),0):e.fb(0)})})};
   mx=function(a,b){return g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){switch(l.i){case 1:if(!e.databaseToken)throw f=g.nw("immediateSend"),f;if(void 0===b.id){l.fb(2);break}return g.A(l,e.df.SS(b.id,e.databaseToken),3);case 3:(h=l.u)?b=h:e.ls(Error("The request cannot be found in the database."));case 2:if(lx(e,b,e.xN)){l.fb(4);break}e.ls(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){l.fb(5);break}return g.A(l,e.df.Kr(b.id,e.databaseToken),5);
   case 5:return l.return();case 4:b.skipRetry||(b=iia(e,b));if(!b){l.fb(0);break}if(!b.skipRetry||void 0===b.id){l.fb(8);break}return g.A(l,e.df.Kr(b.id,e.databaseToken),8);case 8:e.wm(b.url,b.options,!!b.skipRetry),g.sa(l)}})})};
   iia=function(a,b){if(!a.databaseToken)throw g.nw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
   b.options.onError=function(e,f){return g.H(a,function l(){var m=this,n,p;return g.B(l,function(q){switch(q.i){case 1:n=m;p=nx(f);if(!(m.ob&&m.ob("nwl_consider_error_code")&&p||m.ob&&!m.ob("nwl_consider_error_code")&&m.potentialEsfErrorCounter<=m.vA)){q.fb(2);break}if(!m.Ve.Sk){q.fb(3);break}return g.A(q,m.Ve.Sk(),3);case 3:if(m.Ve.Te()){q.fb(2);break}c(e,f);if(!m.ob||!m.ob("nwl_consider_error_code")||void 0===(null===b||void 0===b?void 0:b.id)){q.fb(6);break}return g.A(q,m.df.TF(b.id,m.databaseToken,
   !1),6);case 6:return q.return();case 2:if(m.ob&&m.ob("nwl_consider_error_code")&&!p&&m.potentialEsfErrorCounter>m.vA)return q.return();m.potentialEsfErrorCounter++;if(void 0===(null===b||void 0===b?void 0:b.id)){q.fb(8);break}return b.sendCount<m.DN?g.A(q,m.df.TF(b.id,m.databaseToken),12):g.A(q,m.df.Kr(b.id,m.databaseToken),8);case 12:g.Pu(0,function(){n.Ve.Te()&&n.sx()},m.BN);
   case 8:c(e,f),g.sa(q)}})})};
   var d=b.options.onSuccess?b.options.onSuccess:function(){};
   b.options.onSuccess=function(e,f){return g.H(a,function l(){var m=this;return g.B(l,function(n){if(1==n.i)return void 0===(null===b||void 0===b?void 0:b.id)?n.fb(2):g.A(n,m.df.Kr(b.id,m.databaseToken),2);m.Ve.Pn&&m.ob&&m.ob("vss_network_hint")&&m.Ve.Pn(!0);d(e,f);g.sa(n)})})};
   return b};
   lx=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
   kx=function(a){if(!a.databaseToken)throw g.nw("retryQueuedRequests");a.df.pK("QUEUED",a.databaseToken).then(function(b){b&&!lx(a,b,a.oN)?g.Pu(0,function(){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return void 0===b.id?f.fb(2):g.A(f,e.df.TF(b.id,e.databaseToken),2);kx(e);g.sa(f)})})}):a.Ve.Te()&&a.sx()})};
   ox=function(a,b){a.GO&&!a.Ve.Te()?a.GO(b):a.handleError(b)};
   nx=function(a){var b;return(a=null===(b=null===a||void 0===a?void 0:a.error)||void 0===b?void 0:b.code)&&400<=a&&599>=a?!1:!0};
   px=function(a,b){this.version=a;this.args=b};
   qx=function(a,b){this.topic=a;this.i=b};
   sx=function(a,b){var c=rx();c&&c.publish.call(c,a.toString(),a,b)};
   jia=function(a,b,c){var d=rx();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ga("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(tx[e])try{if(h&&a instanceof qx&&a!=f)try{var m=a.i,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Io){var p=new m;m.Io=p.version}var q=m.Io}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
   g.Db(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.Gs(t)}},ux[a.toString()]?g.Su()?Nu(l,1,void 0):g.ut(l,0):l())});
   tx[e]=!0;vx[a.toString()]||(vx[a.toString()]=[]);vx[a.toString()].push(e);return e};
   xx=function(a,b,c){var d=jia(a,function(e){b.apply(c,arguments);wx(d)},c);
   return d};
   wx=function(a){var b=rx();b&&("number"===typeof a&&(a=[a]),g.Qb(a,function(c){b.unsubscribeByKey(c);delete tx[c]}))};
   rx=function(){return g.Ga("ytPubsub2Pubsub2Instance")};
   yx=function(a,b){Uw.call(this,a,b);this.options=b;gw(a)};
   kia=function(a,b){var c;return function(){c||(c=new yx(a,b));return c}};
   zx=function(a,b){return kia(a,b)};
   lia=function(){if(Ax)return Ax();var a={};Ax=zx("LogsDatabaseV2",{Gs:(a.LogsRequestsStore={Mm:2},a),bx:!1,upgrade:function(b,c,d){c(2)&&Bw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.i.indexNames.contains("newRequest")&&d.i.deleteIndex("newRequest"),Jw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Cw(b,"sapisid");c(9)&&Cw(b,"SWHealthLog")},
   version:9});return Ax()};
   Bx=function(a){return Ww(lia(),a)};
   Dx=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){if(1==m.i)return e={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(m,Bx(b),2);if(3!=m.i)return f=m.u,h=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(m,Tha(f,h),3);l=m.u;e.xX=(0,g.Q)();Cx(e);return m.return(l)})})};
   Ex=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p;return g.B(d,function(q){if(1==q.i)return e={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(q,Bx(b),2);if(3!=q.i)return f=q.u,h=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),l=[a,h,0],m=[a,h,(0,g.Q)()],n=IDBKeyRange.bound(l,m),p=void 0,g.A(q,Dw(f,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(t){return Qw(t.objectStore("LogsRequestsStore").index("newRequestV2"),{query:n,direction:"prev"},function(u){u.getValue()&&
   (p=u.getValue(),"NEW"===a&&(p.status="QUEUED",u.update(p)))})}),3);
   e.xX=(0,g.Q)();Cx(e);return q.return(p)})})};
   Fx=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Bx(b),2);e=f.u;return f.return(Dw(e,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){if(m)return m.status="QUEUED",Fw(l,m).then(function(){return m})})}))})})};
   Gx=function(a,b,c){c=void 0===c?!0:c;return g.H(this,function e(){var f;return g.B(e,function(h){if(1==h.i)return g.A(h,Bx(b),2);f=h.u;return h.return(Dw(f,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(l){var m=l.objectStore("LogsRequestsStore");return m.get(a).then(function(n){return n?(n.status="NEW",c&&(n.sendCount+=1),Fw(m,n).then(function(){return n})):pw.resolve(void 0)})}))})})};
   Hx=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Bx(b),2);e=f.u;return f.return(e.delete("LogsRequestsStore",a))})})};
   mia=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,Bx(a),2);d=f.u;e=(0,g.Q)()-2592E6;return g.A(f,Dw(d,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(h){return Kw(h.objectStore("LogsRequestsStore"),{},function(l){if(l.getValue().timestamp<=e)return l.delete().then(function(){return l.continue()})})}),0)})})};
   nia=function(){g.H(this,function b(){return g.B(b,function(c){return g.A(c,gia(),0)})})};
   Cx=function(a){g.Cs("nwl_csi_killswitch")||.01>=Math.random()&&sx("nwl_transaction_latency_payload",a)};
   Ix=function(a){return Ww(oia(),a)};
   pia=function(a){g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.Cs("web_clean_sw_logs_store")?g.A(f,Ix(a),3):f.fb(0);d=f.u;e=(0,g.Q)()-2592E6;return g.A(f,Dw(d,["SWHealthLog"],{mode:"readwrite",Hc:!0},function(h){return Kw(h.objectStore("SWHealthLog"),{},function(l){if(l.getValue().timestamp<=e)return l.delete().then(function(){return l.continue()})})}),0)})})};
   qia=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.A(e,Ix(a),2);d=e.u;return g.A(e,d.clear("SWHealthLog"),0)})})};
   Kx=function(){Jx||(Jx=new Tv("yt.offline"));return Jx};
   Lx=function(a){if(g.Cs("offline_error_handling")){var b=Kx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Kx().set("errors",b,2592E3,!0)}};
   Mx=function(){g.Ue.call(this);this.J=0;this.K=this.u=!1;this.i=this.VD();ria(this);sia(this)};
   Nx=function(){if(!Mx.i){var a=g.Ga("yt.networkStatusManager.instance")||new Mx;g.Fa("yt.networkStatusManager.instance",a,void 0);Mx.i=a}return Mx.i};
   sia=function(a){window.addEventListener("online",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return g.A(e,d.Sk(),2);if(d.K&&g.Cs("offline_error_handling")){var f=Kx().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.dw(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.Gs(l)}Kx().set("errors",{},2592E3,!0)}}g.sa(e)})})})};
   ria=function(a){window.addEventListener("offline",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){return g.A(e,d.Sk(),0)})})})};
   Ox=function(a){a.J=Ou(0,function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.i?d.VD()||!d.u?e.fb(3):g.A(e,d.Sk(),3):g.A(e,d.Sk(),3);Ox(d);g.sa(e)})})},tia)};
   Qx=function(a){a=void 0===a?{}:a;g.Ue.call(this);var b=this;this.u=this.D=0;this.i=Nx();var c=g.Ga("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.QJ);a.BL&&(c=g.Ga("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.i))a.BA?(this.BA=a.BA,c("ytnetworkstatus-online",function(){Px(b,"publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){Px(b,"publicytnetworkstatus-offline")})):
   (c("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
   Px=function(a,b){a.BA?a.u?(g.Tu(a.D),a.D=g.Pu(0,function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)())},a.BA-((0,g.Q)()-a.u))):(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)()):a.dispatchEvent(b)};
   uia=function(a,b){function c(d){var e=Rx().Te();if(!Sx()||!d||e&&g.Cs("vss_networkless_bypass_write"))Tx(a,b);else{var f={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};Dx(f,d).then(function(h){f.id=h;Rx().Te()&&Ux(f)}).catch(function(h){Ux(f);
   Vx(h)})}}
   b=void 0===b?{}:b;g.Cs("skip_is_supported_killswitch")?g.ex().then(function(d){c(d)}):c(Wx())};
   Xx=function(a,b,c){function d(f){if(Sx()&&f){var h={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};g.Cs("nwl_skip_retry")&&(h.skipRetry=c);if(Rx().Te()){if(!h.skipRetry){var l=b.onError?b.onError:function(){};
   b.onError=function(m,n){return g.H(e,function q(){return g.B(q,function(t){if(1==t.i)return g.A(t,Dx(h,f).catch(function(u){Vx(u)}),2);
   l(m,n);g.sa(t)})})}}Tx(a,b,h.skipRetry)}else Dx(h,f).catch(function(m){Tx(a,b,g.Cs("nwl_skip_retry")&&c);
   Vx(m)})}else Tx(a,b,g.Cs("nwl_skip_retry")&&c)}
   var e=this;b=void 0===b?{}:b;g.Cs("skip_is_supported_killswitch")?g.ex().then(function(f){d(f)}):d(Wx())};
   Yx=function(a,b){function c(d){if(Sx()&&d){var e={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
   e.options.onSuccess=function(l,m){void 0!==e.id?Hx(e.id,d):f=!0;g.Cs("vss_network_hint")&&Rx().Pn(!0);h(l,m)};
   Tx(e.url,e.options);Dx(e,d).then(function(l){e.id=l;f&&Hx(e.id,d)}).catch(function(l){Vx(l)})}else Tx(a,b)}
   b=void 0===b?{}:b;g.Cs("skip_is_supported_killswitch")?g.ex().then(function(d){c(d)}):c(Wx())};
   via=function(){var a=this,b=Wx();if(!b)throw g.nw("throttleSend");Zx||(Zx=g.Pu(0,function(){return g.H(a,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Ex("NEW",b),2);if(3!=f.i)return e=f.u,e?g.A(f,Ux(e),3):(g.Tu(Zx),Zx=0,f.return());Zx&&(Zx=0,via());g.sa(f)})})},100))};
   Ux=function(a){return g.H(this,function c(){var d,e,f;return g.B(c,function(h){switch(h.i){case 1:d=Wx();if(!d)throw e=g.nw("immediateSend"),e;if(void 0===a.id){h.fb(2);break}return g.A(h,Fx(a.id,d),3);case 3:(f=h.u)?a=f:Is(Error("The request cannot be found in the database."));case 2:var l=a.timestamp;if(!(2592E6<=(0,g.Q)()-l)){h.fb(4);break}Is(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){h.fb(5);break}return g.A(h,Hx(a.id,d),5);case 5:return h.return();
   case 4:a.skipRetry||(a=wia(a));l=a;var m,n;if(null===(n=null===(m=null===l||void 0===l?void 0:l.options)||void 0===m?void 0:m.postParams)||void 0===n?0:n.requestTimeMs)l.options.postParams.requestTimeMs=Math.round((0,g.Q)());a=l;if(!a){h.fb(0);break}if(!a.skipRetry||void 0===a.id){h.fb(8);break}return g.A(h,Hx(a.id,d),8);case 8:Tx(a.url,a.options,!!a.skipRetry),g.sa(h)}})})};
   wia=function(a){var b=this,c=Wx();if(!c)throw g.nw("updateRequestHandlers");var d=a.options.onError?a.options.onError:function(){};
   a.options.onError=function(f,h){return g.H(b,function m(){var n;return g.B(m,function(p){switch(p.i){case 1:n=nx(h);if(!(g.Cs("nwl_consider_error_code")&&n||!g.Cs("nwl_consider_error_code")&&xia()<=Ds("potential_esf_error_limit",10))){p.fb(2);break}return g.A(p,Rx().Sk(),3);case 3:if(Rx().Te()){p.fb(2);break}d(f,h);if(!g.Cs("nwl_consider_error_code")||void 0===(null===a||void 0===a?void 0:a.id)){p.fb(5);break}return g.A(p,Gx(a.id,c,!1),5);case 5:return p.return();case 2:if(g.Cs("nwl_consider_error_code")&&
   !n&&xia()>Ds("potential_esf_error_limit",10))return p.return();g.Ga("ytNetworklessLoggingInitializationOptions")&&$x.potentialEsfErrorCounter++;ay++;if(void 0===(null===a||void 0===a?void 0:a.id)){p.fb(7);break}return 1>a.sendCount?g.A(p,Gx(a.id,c),11):g.A(p,Hx(a.id,c),7);case 11:g.Pu(0,function(){Rx().Te()&&via()},5E3);
   case 7:d(f,h),g.sa(p)}})})};
   var e=a.options.onSuccess?a.options.onSuccess:function(){};
   a.options.onSuccess=function(f,h){return g.H(b,function m(){return g.B(m,function(n){if(1==n.i)return void 0===(null===a||void 0===a?void 0:a.id)?n.fb(2):g.A(n,Hx(a.id,c),2);g.Cs("vss_network_hint")&&Rx().Pn(!0);e(f,h);g.sa(n)})})};
   return a};
   Rx=function(){by||(by=new Qx({BL:!0,QJ:!0}));return by};
   Vx=function(a){Rx().Te()?g.Gs(a):Lx(a)};
   Tx=function(a,b,c){if(g.Cs("networkless_with_beacon")){var d=["method","postBody"];if(Object.keys(b).length>d.length)c=!0;else{c=0;d=g.r(d);for(var e=d.next();!e.done;e=d.next())b.hasOwnProperty(e.value)&&c++;c=Object.keys(b).length!==c}c?g.Ct(a,b):bv(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.av(a):g.Ct(a,b)};
   Sx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?$x.isNwlInitialized:!1};
   Wx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?$x.databaseToken:void 0};
   xia=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?$x.potentialEsfErrorCounter:ay};
   cy=function(){jx.call(this,{df:{hR:mia,Kr:Hx,pK:Ex,SS:Fx,TF:Gx,set:Dx},Ve:new Qx({BL:!0,QJ:!0}),handleError:g.Gs,ls:Is,wm:yia,now:g.Q,GO:Lx,mL:Ru(),yF:"publicytnetworkstatus-online",WE:"publicytnetworkstatus-offline",Ey:!0,qy:.1,vA:Ds("potential_esf_error_limit",10),ob:g.Cs});this.Ey&&Math.random()<=this.qy&&this.databaseToken&&pia(this.databaseToken);g.Cs("networkless_immediately_drop_sw_health_store")&&zia(this);g.Cs("networkless_immediately_drop_all_requests")&&nia();hx("LogsDatabaseV2")};
   dy=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new cy,g.Fa("yt.networklessRequestController.instance",a,void 0),g.Cs("networkless_logging")&&g.ex().then(function(b){a.databaseToken=b;ix(a)}));
   return a};
   zia=function(a){g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){e=d;if(!d.databaseToken)throw f=g.nw("clearSWHealthLogsDb"),f;return h.return(qia(d.databaseToken).catch(function(l){e.handleError(l)}))})})};
   yia=function(a,b,c){var d;if(null===(d=b.postParams)||void 0===d?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Q)());if(g.Cs("networkless_with_beacon")){c=b;var e=["method","postBody"];if(Object.keys(c).length>e.length)c=!0;else{d=0;e=g.r(e);for(var f=e.next();!f.done;f=e.next())c.hasOwnProperty(f.value)&&d++;c=Object.keys(c).length!==d}c?g.Ct(a,b):bv(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.av(a):g.Ct(a,b)};
   g.ey=function(a){this.config_=null;a?this.config_=a:Sv()&&(this.config_=g.zv())};
   g.Av=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.TL.bypassNetworkless?(f.method="POST",d.TL.writeThenSend?g.Cs("use_new_nwl")?dy().writeThenSend(n,f):uia(n,f):g.Cs("use_new_nwl")?dy().sendAndWrite(n,f):Yx(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Ct(n,f))}catch(q){if("InvalidAccessError"==q.name)Is(Error("An extension is blocking network request."));else throw q;}}
   !g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Is(new g.dw("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.dw("innertube xhrclient not ready",b,c,d),g.Gs(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,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};c="";var h=a.config_.WK;h&&(c=h);h=Kha(a.config_.YK||!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_.XK&&h;g.Cs("omit_innertube_api_key_for_Bearer_auth_header")&&(m=m&&h.startsWith("Bearer"));m||(l.key=a.config_.innertubeApiKey);var n=Qs(""+c+b,l);g.Cs("use_new_nwl")||Sx()?dx().then(function(p){e(p)}):e(!1)};
   g.Zv=function(a,b,c){c=void 0===c?{}:c;var d=g.ey;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.ey==g.ey&&(d=null);Ev(a,b,d,c)};
   Cia=function(){var a=void 0===a?window.location.href:a;if(g.Cs("kevlar_disable_theme_param"))return null;var b=fi(g.hi(5,a));if(Aia(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Os(a).theme;return Bia.get(c)||null}catch(d){}return null};
   Aia=function(a){var b=Dia.map(function(c){return c.toLowerCase()});
   return!g.Cs("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
   Fia=function(a,b,c){a&&(a.dataset?a.dataset[Eia(b)]=String(c):a.setAttribute("data-"+b,c))};
   Gia=function(a){return a?a.dataset?a.dataset[Eia("loaded")]:a.getAttribute("data-loaded"):null};
   Eia=function(a){return Hia[a]||(Hia[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
   fy=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()};
   iy=function(a){var b;g.gy()?hy()==a&&(b=document):b=a;return b&&(a=uu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
   jy=function(a){return g.tb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
   Iia=function(){var a=document;return g.tb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
   g.gy=function(){return!!uu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
   hy=function(a){a=void 0===a?!1:a;var b=uu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
   ky=function(a){g.I.call(this);this.D=[];this.Ra=a||this};
   ly=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
   g.my=function(a,b){for(;a.D.length;){var c=a.D.pop(),d=void 0;b&&Jia()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
   g.R=function(a){a=void 0===a?!1:a;g.I.call(this);this.Nd=new g.tr(a);g.J(this,this.Nd)};
   ny=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
   oy=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
   g.qy=function(a,b,c,d){g.R.call(this);this.i=!!b;this.J=a;this.Z=c||a;this.S=!!d;this.C=new ky(this);g.J(this,this.C);this.D=this.K=null;this.B=this.u=!1;b&&(g.Bg&&a.setAttribute("draggable","true"),a.style.touchAction="none");py(this)};
   ry=function(a,b,c){a.C.T(a.Z,b,c,void 0,!a.i)};
   sy=function(a){g.my(a.C,!a.i)};
   py=function(a){a.D=null;a.K=null;ry(a,ty("over"),a.QL);ry(a,"touchstart",a.IG);a.i&&ry(a,ty("down"),a.bT)};
   Kia=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
   ty=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
   uy=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.pc(b);this.assets=a.assets||{};this.attrs=a.attrs||g.pc(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||{}};
   Lia=function(a){a instanceof uy||(a=new uy(a));return a};
   wy=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(vy)for(c=1,d=0;d<vy.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^vy.charCodeAt(d),c++;return b};
   yy=function(){for(var a=wy(16),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
   g.Mia=function(){return g.ym(wy(16),function(a){return(a&15).toString(16)}).join("")};
   zy=function(a){this.i=a};
   g.Ay=function(a){return new zy({trackingParams:a})};
   Oia=function(a){var b=Nia++;return new zy({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
   By=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
   Cy=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
   Pia=function(a){return g.P(Cy(void 0===a?0:a),void 0)};
   g.Dy=function(a){return(a=Pia(void 0===a?0:a))?new zy({veType:a,youtubeData:void 0}):null};
   Qia=function(){var a=g.P("csn-to-ctt-auth-info");a||(a={},zs("csn-to-ctt-auth-info",a));return a};
   g.Ey=function(a){a=void 0===a?0:a;var b=g.P(By(a));if(!b&&!g.P("USE_CSN_FALLBACK",!0))return null;b||!g.Cs("use_undefined_csn_any_layer")&&0!=a||(b="UNDEFINED_CSN");return b?b:null};
   Ria=function(a,b,c){var d=Qia();(c=g.Ey(c))&&delete d[c];b&&(d[a]=b)};
   Fy=function(a){return Qia()[a]};
   Tia=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.P(By(c))||b!==g.P(Cy(c)))Ria(a,d,c),zs(By(c),a),zs(Cy(c),b),b=function(){setTimeout(function(){a&&Ev("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Sia,clientScreenNonce:a},g.ey)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
   Uia=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
   Via=function(){this.Rm=[];this.fm=[]};
   Hy=function(){if(!Gy){var a=Gy=new Via;a.fm.length=0;a.Rm.length=0;Wia(a,Xia)}return Gy};
   Wia=function(a,b){b.fm&&a.fm.push.apply(a.fm,b.fm);b.Rm&&a.Rm.push.apply(a.Rm,b.Rm)};
   Yia=function(a){function b(){return a.charCodeAt(d++)}
   var c=a.length,d=0;do{var e=Iy(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Iy(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Iy(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)};
   Iy=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};
   Zia=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Jy(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=Yia(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Jy(e+".ve",f,h,l):0;d+=h;d+=Jy(e,a[e],b,c);if(500<d)break}}else c[b]=Ky(a),d+=c[b].length;else c[b]=Ky(a),d+=c[b].length;return d};
   Jy=function(a,b,c,d){c+="."+a;a=Ky(b);d[c]=a;return c.length+a.length};
   Ky=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
   Yv=function(a){g.Ly(a)};
   g.My=function(a){g.Ly(a,"WARNING")};
   g.Ly=function(a,b){var c=void 0===c?{}:c;c.name=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=c||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.Cs("console_log_js_exceptions")){var d=[];d.push("Name: "+a.name);d.push("Message: "+a.message);a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(a.args));
   d.push("File name: "+a.fileName);d.push("Stacktrace: "+a.stack);window.console.log(d.join("\n"),a)}if(!(5<=$ia)){d=aja;var e=Daa(a),f=e.message||"Unknown Error",h=e.name||"UnknownError",l=e.stack||a.u||"Not available";if(l.startsWith(h+": "+f)){var m=l.split("\n");m.shift();l=m.join("\n")}m=e.lineNumber||"Not available";e=e.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var p=0;p<a.args.length&&!(n=Zia(a.args[p],"params."+p,c,n),500<=n);p++);else if(a.hasOwnProperty("params")&&
   a.params){var q=a.params;if("object"===typeof a.params)for(p in q){if(q[p]){var t="params."+p,u=Ky(q[p]);c[t]=u;n+=t.length+u.length;if(500<n)break}}else c.params=Ky(q)}if(d.length)for(p=0;p<d.length&&!(n=Zia(d[p],"params.context."+p,c,n),500<=n);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:f,name:h,lineNumber:m,fileName:e,stack:l,params:c,sampleWeight:1};p=Number(a.columnNumber);isNaN(p)||(c.lineNumber=c.lineNumber+":"+p);if("IGNORED"===a.level)a=
   0;else a:{a=Hy();p=g.r(a.fm);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.hw)){a=d.weight;break a}a=g.r(a.Rm);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.callback(c)){a=p.weight;break a}a=1}c.sampleWeight=a;a=g.r(bja);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.pA[c.name])for(f=g.r(p.pA[c.name]),d=f.next();!d.done;d=f.next())if(h=d.value,d=c.message.match(h.Ag)){c.params["params.error.original"]=d[0];f=h.groups;h={};for(m=0;m<f.length;m++)h[f[m]]=d[m+1],c.params["params.error."+
   f[m]]=d[m+1];c.message=p.NE(h);break}c.params||(c.params={});a=Hy();c.params["params.errorServiceSignature"]="msg="+a.fm.length+"&cb="+a.Rm.length;c.params["params.serviceWorker"]="false";g.D.document&&g.D.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.lf("sample").constructor!==jf&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!cja.has(c.message)){"ERROR"===
   b?(Ny.ea("handleError",c),g.Cs("record_app_crashed_web")&&0===dja&&1===c.sampleWeight&&(dja++,g.Zv("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"})),eja++):"WARNING"===b&&Ny.ea("handleWarning",c);if(g.Cs("kevlar_gel_error_routing")){a=b;b:{p=g.r(fja);for(d=p.next();!d.done;d=p.next())if(Tt(d.value.toLowerCase())){p=!0;break b}p=!1}if(p)p=void 0;else{d={stackTrace:c.stack};c.fileName&&(d.filename=c.fileName);p=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==p.length&&(1!==p.length||
   isNaN(Number(p[0]))?2!==p.length||isNaN(Number(p[0]))||isNaN(Number(p[1]))||(d.lineNumber=Number(p[0]),d.columnNumber=Number(p[1])):d.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===a?p.level="ERROR_LEVEL_ERROR":"WARNING"===a&&(p.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};f={pageUrl:window.location.href,kvPairs:[]};g.P("FEXP_EXPERIMENTS")&&(f.experimentIds=g.P("FEXP_EXPERIMENTS"));m=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",
   void 0);if(!As("web_disable_gel_stp_ecatcher_killswitch")&&m)for(e=g.r(Object.keys(m)),h=e.next();!h.done;h=e.next())h=h.value,f.kvPairs.push({key:h,value:String(m[h])});if(m=c.params)for(e=g.r(Object.keys(m)),h=e.next();!h.done;h=e.next())h=h.value,f.kvPairs.push({key:"client."+h,value:String(m[h])});h=g.P("SERVER_NAME",void 0);m=g.P("SERVER_VERSION",void 0);h&&m&&(f.kvPairs.push({key:"server.name",value:h}),f.kvPairs.push({key:"server.version",value:m}));p={errorMetadata:f,stackTrace:d,logMessage:p}}p&&
   (g.Zv("clientError",p),("ERROR"===a||g.Cs("errors_flush_gel_always_killswitch"))&&qv())}if(!g.Cs("suppress_error_204_logging")){a=c.params||{};b={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:b,"client.name":a.name},postParams:{url:g.P("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};a.version&&(b["client.version"]=a.version);if(b.postParams){c.stack&&(b.postParams.stack=c.stack);p=g.r(Object.keys(a));for(d=p.next();!d.done;d=
   p.next())d=d.value,b.postParams["client."+d]=a[d];if(a=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(p=g.r(Object.keys(a)),d=p.next();!d.done;d=p.next())d=d.value,b.postParams[d]=a[d];a=g.P("SERVER_NAME",void 0);p=g.P("SERVER_VERSION",void 0);a&&p&&(b.postParams["server.name"]=a,b.postParams["server.version"]=p)}g.Ct(g.P("ECATCHER_REPORT_HOST","")+"/error_204",b)}try{cja.add(c.message)}catch(x){}$ia++}}}};
   gja=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.v(c))};
   Oy=function(a){px.call(this,1,arguments);this.csn=a};
   g.Qy=function(a,b,c,d){var e=d.filter(function(f){f.csn!==b?(f.csn=b,f=!0):f=!1;return f});
   c={csn:b,parentVe:c.getAsJson(),childVes:g.ym(e,function(f){return f.getAsJson()})};
   d=g.r(d);for(e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.lc(e)||!e.trackingParams&&!e.veType)&&g.My(Error("Child VE logged with no data"));d={cttAuthInfo:Fy(b),xm:b};"UNDEFINED_CSN"==b?Py("visualElementAttached",c,d):a?Ev("visualElementAttached",c,a,d):g.Zv("visualElementAttached",c,d)};
   g.Ry=function(a,b,c){b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={cttAuthInfo:Fy(a),xm:a};"UNDEFINED_CSN"==a?Py("visualElementShown",b,c):g.Zv("visualElementShown",b,c)};
   hja=function(a,b,c,d,e){var f=(d=void 0===d?!1:d)?16:8;c={csn:b,ve:c.getAsJson(),eventType:f};e&&(c.clientData=e);d={cttAuthInfo:Fy(b),xm:b,CR:d};"UNDEFINED_CSN"==b?Py("visualElementHidden",c,d):a?Ev("visualElementHidden",c,a,d):g.Zv("visualElementHidden",c,d)};
   ija=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={cttAuthInfo:Fy(b),xm:b};"UNDEFINED_CSN"==b?Py("visualElementGestured",c,d):a?Ev("visualElementGestured",c,a,d):g.Zv("visualElementGestured",c,d)};
   jja=function(){return g.Mc(g.Va(Math.random()+""),3)};
   Py=function(a,b,c){Sy.push({payloadName:a,payload:b,options:c});Ty||(Ty=xx(kja,lja))};
   lja=function(a){if(Sy){for(var b=g.r(Sy),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Ev(c.payloadName,c.payload,null,c.options));Sy.length=0}Ty=0};
   g.Ez=function(a,b){g.Qb(b,function(c){c={csn:a,ve:c.getAsJson(),eventType:4};var d={cttAuthInfo:Fy(a),xm:a};"UNDEFINED_CSN"==a?Py("visualElementShown",c,d):g.Zv("visualElementShown",c,d)})};
   g.Fz=function(a,b){g.Qb(b,function(c){hja(void 0,a,c,void 0,void 0)})};
   g.Gz=function(a,b,c){ija(void 0,a,b,c)};
   Hz=function(){this.u=new Set;this.i=new Set;this.B=new Map};
   g.Kz=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Iz)():Jz())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
   g.Lz=function(a){var b=Jz(),c=(0,g.Iz)();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};
   mja=function(){var a=(0,g.Iz)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
   g.Mz=function(a){try{var b=Jz(),c=(0,g.Iz)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
   g.Nz=function(){return g.Lz("yt-remote-session-screen-id")};
   g.Oz=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(nja,""),c=c.replace(oja,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else pja(a,b,c)};
   pja=function(a,b,c){c=void 0===c?null:c;var d=qja(a),e=document.getElementById(d),f=e&&Gia(e),h=e&&!f;f?b&&b():(b&&(f=g.hv(d,b),b=""+g.Na(b),rja[b]=f),h||(e=sja(a,d,function(){Gia(e)||(Fia(e,"loaded","true"),g.jv(d),g.ut(g.Oa(lv,d),0))},c)))};
   sja=function(a,b,c,d){d=void 0===d?null:d;var e=g.Gg("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.Zk(e,g.ir(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
   qja=function(a){var b=document.createElement("a");g.Tf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+jg(a)};
   Rz=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Pz(a)||c.some(function(e){return!Pz(e)}))throw Error("Only objects may be merged.");
   c=g.r(c);for(d=c.next();!d.done;d=c.next())Qz(a,d.value);return a};
   Qz=function(a,b){for(var c in b)if(Pz(b[c])){if(c in a&&!Pz(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Qz(a[c],b[c])}else if(Sz(b[c])){if(c in a&&!Sz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);tja(a[c],b[c])}else a[c]=b[c];return a};
   tja=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Pz(c)?a.push(Qz({},c)):Sz(c)?a.push(tja([],c)):a.push(c);return a};
   Pz=function(a){return"object"===typeof a&&!Array.isArray(a)};
   Sz=function(a){return"object"===typeof a&&Array.isArray(a)};
   Tz=function(a,b,c,d,e,f){g.I.call(this);this.i=a;this.u=c;this.B=d;this.D=e;this.C=f};
   wja=function(a,b,c){c.ot?(Uz(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),uja(a.D,b)):vja(a.C,c.yl,b.slotId)};
   yja=function(a,b,c,d){var e=Vz(a.B.get(),1);Uz(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return xja(a.u.get(),c,d,e.clientPlaybackNonce,e.zJ,e.daiEnabled,e)},b)};
   Xz=function(a,b,c){if(c&&c!==a.rb)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!Wz(a.Ia,c.value))return!1;return!0};
   Yz=function(a,b){this.Ho=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
   Aja=function(a){zja=void 0===a?!1:a};
   T=function(a,b,c,d,e){d=void 0===d?{}:d;zja&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.dw(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(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.rb:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.My(a)}};
   Zz=function(a,b,c,d,e,f,h){g.I.call(this);this.B=a;this.u=b;this.CC=c;this.Na=d;this.C=e;this.i=f;this.Ga=h};
   $z=function(){this.u=new Map;this.i=new Map;this.B=new Map};
   aA=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return yy()};
   bA=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return yy()};
   cA=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return yy()};
   dA=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f};
   Bja=function(a,b,c,d){this.B=a;this.oe=null;this.u=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
   eA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.My(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
   fA=function(a,b){return b&&b.test(a)?!0:!1};
   gA=function(a){return(a=Cja&&Cja.exec(a))?a[0]:""};
   hA=function(a){var b=void 0===b?!1:b;return eA(fA(a,Dja),a,b,"Trusted Stream URL")};
   g.iA=function(a){var b=void 0===b?!1:b;return eA(fA(a,Eja),a,b,"Trusted Image URL")};
   Gja=function(a){var b=void 0===b?!1:b;return eA(fA(a,Fja),a,b,"Trusted Ad Domain URL")};
   Ija=function(a){var b=void 0===b?!1:b;return eA(fA(a,Hja),a,b,"Trusted Promoted Video Domain URL")};
   Kja=function(a){var b=void 0===b?!1:b;return eA(fA(a,Jja),a,b,"Drm Licensor URL")};
   Mja=function(a,b){b=void 0===b?!1:b;return eA(fA(a,Lja),a,b,"Captions URL")};
   Nja=function(a){a=new g.Rj(a);g.Sj(a,document.location.protocol);g.Tj(a,document.location.hostname);document.location.port&&g.Uj(a,document.location.port);return a.toString()};
   jA=function(a){a=new g.Rj(a);g.Sj(a,document.location.protocol);return a.toString()};
   g.lA=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Oja++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||kA.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.zm(d.thumbnails,function(e){return g.iA(e.url)})}):null;
   this.visible=this.visible;this.style=this.style;this.start=this.start};
   Pja=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
   Qja=function(a,b){switch(a.style){case kA.CHAPTER_MARKER:return b?8:5;case kA.AD_MARKER:return 6;case kA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
   g.mA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
   g.nA=function(a){return"crn_"+a};
   g.oA=function(a){return"crx_"+a};
   pA=function(a,b,c,d,e){g.lA.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
   qA=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
   Rja=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
   Sja=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new qr(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new qr(Math.max(0,b.B-b.i),0x7ffffffffffff):new qr(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new qr(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
   b.oe;a=1E3*d.startSecs;if(c){if(a<b.u)return new qr(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new qr(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new qr(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
   rA=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
   g.sA=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.tA=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=Fg("B",null,h||l));d.italics&&(h=Fg("I",null,h||l));d.strikethrough&&(h=Fg("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Fg("A",null,h||l),g.Tf(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Fg("SPAN",null,
   l);f.call(e,l)}}return 1==b.length?b[0]:Fg("SPAN",null,b)};
   uA=function(a,b){px.call(this,1,arguments)};
   vA=function(a,b){px.call(this,1,arguments);this.i=a};
   Tja=function(){this.timing={};this.clearResourceTimings=function(){};
   this.webkitClearResourceTimings=function(){};
   this.mozClearResourceTimings=function(){};
   this.msClearResourceTimings=function(){};
   this.oClearResourceTimings=function(){}};
   xA=function(a){var b=wA(a);if(b.aft)return b.aft;a=g.P((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
   Uja=function(){var a;if(g.Cs("csi_use_performance_navigation_timing")){var b,c,d,e=null===(d=null===(c=null===(b=null===(a=null===yA||void 0===yA?void 0:yA.getEntriesByType)||void 0===a?void 0:a.call(yA,"navigation"))||void 0===b?void 0:b[0])||void 0===c?void 0:c.toJSON)||void 0===d?void 0:d.call(c);e?(e.requestStart=zA(e.requestStart),e.responseEnd=zA(e.responseEnd),e.redirectStart=zA(e.redirectStart),e.redirectEnd=zA(e.redirectEnd),e.domainLookupEnd=zA(e.domainLookupEnd),e.connectStart=zA(e.connectStart),
   e.connectEnd=zA(e.connectEnd),e.responseStart=zA(e.responseStart),e.secureConnectionStart=zA(e.secureConnectionStart),e.domainLookupStart=zA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=yA.timing}else a=yA.timing;return a};
   AA=function(){return g.Cs("csi_use_time_origin")&&yA.timeOrigin?Math.floor(yA.timeOrigin):yA.timing.navigationStart};
   zA=function(a){return Math.round(AA()+a)};
   BA=function(a,b){g.Fa("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
   Vja=function(a){g.Fa("yt.timing.pingSent_",a,void 0)};
   CA=function(a){return g.Ga("ytcsi."+(a||"")+"data_")||Wja(a)};
   DA=function(a){a=CA(a);a.info||(a.info={});return a.info};
   wA=function(a){a=CA(a);a.tick||(a.tick={});return a.tick};
   EA=function(a){var b=CA(a).nonce;b||(b=yy(),CA(a).nonce=b);return b};
   Wja=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b,void 0);return b};
   Zja=function(a){var b=wA(a||""),c=xA(a);c&&!Xja&&(sx(Yja,new uA(Math.round(c-b._start),a)),Xja=!0)};
   $ja=function(){if(yA.getEntriesByType){var a=yA.getEntriesByType("paint");if(a=g.tb(a,function(b){return"first-paint"===b.name}))return zA(a.startTime)}a=yA.timing;
   return a.gT?Math.max(0,a.gT):0};
   FA=function(){var a=g.Ga("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a,void 0),g.Fa("ytcsi.reference",{},void 0));return a};
   GA=function(a){a=a||"";var b=aka();if(b[a])return b[a];var c=FA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
   HA=function(a){a=a||"";var b=aka();b[a]&&delete b[a];var c=FA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
   aka=function(){var a=g.Ga("ytcsi.reference");if(a)return a;FA();return g.Ga("ytcsi.reference")};
   IA=function(){this.i=0};
   JA=function(){IA.i||(IA.i=new IA);return IA.i};
   LA=function(a,b){KA[b]=KA[b]||{count:0};var c=KA[b];c.count++;c.time=(0,g.Q)();a.i||(a.i=Ou(0,function(){var d=(0,g.Q)(),e;for(e in KA)KA[e]&&6E4<d-KA[e].time&&delete KA[e];a&&(a.i=0)},5E3));
   return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.dw("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.My(c)),!0):!1};
   MA=function(a){return!!g.P("FORCE_CSI_ON_GEL",!1)||g.Cs("csi_on_gel")||g.Cs("enable_csi_on_gel")||g.Cs("unplugged_tvhtml5_csi_on_gel")||!!CA(a).useGel};
   bka=function(a,b,c){var d=NA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.Q)();if(MA(c)){GA(c||"").tick[a]=b||(0,g.Q)();d=EA(c);var e=CA(c).cttAuthInfo;"_start"===a?(a=JA(),LA(a,"baseline_"+d)||g.Zv("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:e})):JA().tick(a,d,b,e);Zja(c);return!0}return!1};
   gka=function(a,b,c){c=NA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in cka){c=cka[a];g.wb(dka,c)&&(b=!!b);a in eka&&"string"===typeof b&&(b=eka[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 Rz({},d)}g.wb(fka,a)||g.My(new g.dw("Unknown label logged with GEL CSI",a))};
   NA=function(a){a=CA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
   hka=function(a){a=NA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
   jka=function(a){if(MA(a)){var b={actionType:ika[g.P((a||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:ika[g.P("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},c=g.Ey();c&&(b.clientScreenNonce=c);c=EA(a);a=CA(a).cttAuthInfo;JA().info(b,c,a)}};
   OA=function(a){Wja(a);kka();a||(g.P("TIMING_ACTION")&&zs("PREVIOUS_ACTION",g.P("TIMING_ACTION")),zs("TIMING_ACTION",""),Vja(!1))};
   RA=function(a,b,c){c=c?c:a;PA("c",c);HA(c);OA(c);CA(c).useGel=!0;GA(c||"").info.actionType=a;zs(c+"TIMING_ACTION",a);QA("c",b,c);jka(c);BA(!0,c)};
   QA=function(a,b,c){g.SA("yt_sts",a,c);TA("_start",b,c)};
   g.SA=function(a,b,c){null!==b&&(DA(c)[a]=b,MA(c)?(a=gka(a,b,c))&&UA(a,c):GA(c||"").info[a]=b)};
   UA=function(a,b){if(MA(b)){var c=GA(b||"");Rz(c.info,a);Rz(hka(b),a);c=EA(b);b=CA(b).cttAuthInfo;JA().info(a,c,b)}};
   TA=function(a,b,c){var d=wA(c);if(!b&&"_"!==a[0]){var e=a;yA.mark&&(Ya(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),yA.mark(e))}e=b||(0,g.Q)();d[a]=e;bka(a,b,c)||c||(lka(),GA("").tick[a]=b||(0,g.Q)());return d[a]};
   mka=function(a){var b="above_the_fold";yA&&yA.measure&&(Ya(b,"measure_")||(b="measure_"+b),a?yA.measure(b,a):yA.measure(b))};
   VA=function(a,b){b=wA(b);return a in b};
   WA=function(a,b,c){VA("_start",c)&&!VA(a,c)&&TA(a,b,c)};
   lka=function(){if(!g.Ga("yt.timing.pingSent_")){var a=g.P("TIMING_ACTION",void 0),b=wA();if(g.Ga("ytglobal.timingready_")&&a&&VA("_start")&&xA()){Zja();a=!0;var c=g.P("TIMING_WAIT",[]);if(c.length)for(var d=0,e=c.length;d<e;++d)if(!(c[d]in b)){a=!1;break}a&&XA()}}};
   nka=function(){switch(tu()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
   XA=function(){if(!MA()){var a=wA(),b=DA(),c=a._start,d=g.P("CSI_SERVICE_NAME","youtube"),e={v:2,s:d,action:g.P("TIMING_ACTION",void 0)},f=b.srt;void 0!==a.srt&&delete b.srt;a.aft=xA();var h=wA(void 0),l=h.pbr,m=h.vc;h=h.pbs;if(l=l&&m&&h&&l<m&&m<h)l=!!DA(void 0).yt_pvis;l&&"youtube"===d&&(g.SA("yt_lt","hot_bg"),d=a.vc,l=a.pbs,delete a.aft,b.aft=Math.round(l-d));for(var n in b)"_"!==n.charAt(0)&&(e[n]=b[n]);a.ps=(0,g.Q)();n={};d=[];for(var p in a)"_"!==p.charAt(0)&&(l=Math.round(a[p]-c),n[p]=l,d.push(p+
   "."+l));e.rt=d.join(",");a=!!b.ap;b="";for(var q in e)e.hasOwnProperty(q)&&(b+="&"+q+"="+e[q]);e="/csi_204?"+b.substring(1);window.navigator&&a?bv(e):g.av(e);Vja(!0);sx(YA,new vA(n.aft+(Number(f)||0)))}};
   PA=function(a,b){b||MA()?VA("_start",b)&&TA("aa",void 0,b):g.Ga("yt.timing.pingSent_")||(b=g.P("CSI_SERVICE_NAME","youtube"),g.P("TIMING_ACTION",void 0)&&b&&(TA("aa",void 0),g.SA("ap",1),g.SA("yt_fss",a),XA()))};
   oka=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);Vf()&&a.setAttribute("nonce",Vf());return c?(a=yA.getEntriesByName(c))&&a[0]&&(a=a[0],c=AA(),TA("rsf_"+b,c+Math.round(a.fetchStart)),TA("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
   pka=function(){var a=window.location.protocol,b=yA.getEntriesByType("resource");b=g.Ko(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
   (b=Am(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(TA("wffs",zA(b.startTime)),TA("wffe",zA(b.responseEnd)))};
   ZA=function(){if(g.ax)return!1;if(g.Wt()){var a=St();if(16<=a&&17>a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)};
   $A=function(a){if(a.xv())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
   aB=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
   bB=function(a,b){this.id=a;this.Ac=b;this.captionTracks=[];this.i=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
   cB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.i=b||0};
   dB=function(a,b){return a.u===b.u&&a.i===b.i&&a.B===b.B&&a.reason===b.reason};
   fB=function(a,b,c,d){return new cB(g.eB[a]||0,g.eB[b]||0,c,d)};
   gB=function(a){var b=g.eB.auto;return a.u===b&&a.i===b};
   iB=function(a){return hB[a.i||a.u]||"auto"};
   qka=function(a,b){b=g.eB[b];return a.u<=b&&(!a.i||a.i>=b)};
   jB=function(a,b){this.videoInfos=a;this.i=b;this.audioTracks=[];if(this.i){a=new Set;b=g.r(this.i);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Ac&&!a.has(c.Ac.id)){var d=new bB(c.id,c.Ac);a.add(c.Ac.id);this.audioTracks.push(d)}}};
   mB=function(a,b,c,d,e){var f=[],h=new Set,l=a.ya||a.qb,m={};if(kB(c)){for(var n in c.i)c.i.hasOwnProperty(n)&&(d=c.i[n],m[d.info.i]=[d.info]);return m}for(var p in c.i)if(c.i.hasOwnProperty(p)){n=c.i[p];var q=n.info.lc();if(""===n.info.i)f.push(q),f.push("unkn");else if("304"!==q&&"266"!==q||!a.eb)if(a.J&&n.info.video&&n.info.video.i>a.J)f.push(q),f.push("max"+a.J);else if(a.K&&n.info.video&&n.info.video.i<a.K)f.push(q),f.push("min"+a.K);else if(a.jb&&"h"===n.info.i&&n.info.video&&1080<n.info.video.i)f.push(q),
   f.push("blkhigh264");else if(a.kb&&n.info.video&&4320<=n.info.video.i&&32<n.info.video.fps)f.push(q),f.push("blk8khfr");else{var t=b.i.get(n.info.i);t=t&&0<t.VF;l&&t?(h.add(n.info.i),f.push(q),f.push("byerr")):(t=rka(b,n.info),!0!==t?(f.push(q),f.push(t)):"(h"!==n.info.i||b.C?a.La||"o"!==n.info.i&&"O"!==n.info.i||!g.ej||!Tt("crkey")?(t="MAC3"===n.info.i||"MEAC3"===n.info.i||"M"===n.info.i,c.isLive&&t&&!a.Ra?(f.push(q),f.push("blk51live")):(m[n.info.i]=m[n.info.i]||[],m[n.info.i].push(n.info))):(f.push(q),
   f.push("opchr")):(f.push(q),f.push("enchdr")))}else f.push(q),f.push("blk2khfr")}e&&(d(f.join(".")),c="bfflt."+lB(m),d(c));for(var u in m)m.hasOwnProperty(u)&&(c=u,m[c]&&m[c][0].isVideo()&&(m[c]=ska(a,m[c]),m[c]=tka(b,m[c])));if(l)for(a=g.r(h.values()),h=a.next();!h.done;h=a.next())(h=b.i.get(h.value))&&--h.VF;b=g.Xb(m,function(x){return!!x.length});
   e&&(m="aftflt."+lB(m),d(m));return b};
   nB=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
   lB=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(nB(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.lc())}return b.join(".")};
   uka=function(a,b,c,d,e){var f={},h=[];g.Wb(b,function(l,m){l=l.filter(function(n){var p=n.lc();if(!n.Bd)return h.push(p),h.push("noenc"),!1;if("("===n.i||"(h"===n.i){if(a.u&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";q=!!n.Bd[c.flavor]&&!!c.i[q];q||(n=n.Bd[c.flavor]?"unspt":"noflv",h.push(p),h.push(n));return q}if(!oB(a,pB.CRYPTOBLOCKFORMAT)&&!a.ma||a.Z)return h.push(p),h.push(a.Z?"disvp":"vpsub"),!1}return c&&n.Bd[c.flavor]&&c.i[n.mimeType]?!0:(n=c?n.Bd[c.flavor]?"unspt":
   "noflv":"nosys",h.push(p),h.push(n),!1)});
   l.length&&(f[m]=l)});
   d&&h.length&&e(h.join("."));return f};
   yka=function(a,b,c,d,e){function f(u){return!!l[u]}
   var h=a.D||!!d,l=mB(a,b,c,e,h);qB(c)&&(l=uka(b,l,d,h,e),h&&(b="enflt."+lB(l),e(b)));if(kB(c))return e=g.tb(Object.values(l),function(u){return!!u.length&&!!u[0].audio}),h=g.tb(Object.values(l),function(u){return!!u.length&&!!u[0].video}),e&&h||Jt(),Kt(new jB(h,e));
   b=vka(a);h&&e("audioPrefOrder."+b.join("_"));b=g.tb(b,f);if(!b)return h&&e("noaudio"),Jt();b=l[b];l["9"]&&l.h&&c.tf&&!a.Ua&&(h&&e("dltvp9"),delete l["9"]);var m=l["1h"]?"1h":"1";d=l["9h"]?"9h":"9";var n=l[m],p=l[d];n&&n.length&&(a.u.highestAv1Resolution=n[n.length-1].video.i);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.i);var q=[],t=[];if(a.Aa&&!a.i)for(t=wka(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],h&&e("newhybpref."+t.join(".")),n=g.r(t),p=n.next();!p.done;p=n.next())q=
   q.concat(l[p.value]).filter(function(u){return u});
   else 0<a.B&&p&&n&&(t=[m,d],q=n.concat(p).filter(function(u){return u}));
   if(q.length&&!a.i){rB(q,b,t);if(h){h=[];a=g.r(q);for(c=a.next();!c.done;c=a.next())h.push(c.value.lc());e("hbdfmt."+h.join("."))}return Kt(new jB(q,b))}q=xka(a);q=g.tb(q,f);if(!q){if(l[m]&&a.Db)return e=l[m],rB(e,b),Kt(new jB(e,b));h&&e("novideo");return Jt()}a.Mb&&("1"===q||"1h"===q)&&l[d]&&(m=sB(l[q]),sB(l[d])>m&&(q=d));"9"===q&&l.h&&(d=sB(l["9"]),sB(l.h)>1.5*d&&(q="h"));a.vb&&c.isLive&&"("===q&&l.H&&1440>sB(l["("])&&(q="H");h&&e("vfmly."+nB(q));a=l[q];if(!a.length)return h&&e("novfmly."+nB(q)),
   Jt();rB(a,b);return Kt(new jB(a,b))};
   rB=function(a,b,c){c=void 0===c?[]:c;g.Mb(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0<c.length){f=c.indexOf(d.i)+1;var h=c.indexOf(e.i)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.Nb-d.Nb);return f});
   g.Mb(b,function(d,e){return e.Nb-d.Nb})};
   tka=function(a,b){var c=Am(b,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
   Infinity>c&&(b=a.K&&(a.Y||oB(a,pB.FRAMERATE))?g.Ko(b,function(d){return 32<d.video.fps||d.video.width<c}):g.Ko(b,function(d){return!(32<d.video.fps)}));
   Yt()&&(b=g.Ko(b,function(d){return"299"!==d.lc()}));
   return b};
   ska=function(a,b){return b=g.Ko(b,function(c){return c.video.i<=a.zb})};
   sB=function(a){return Am(a,function(b,c){return Math.max(b,c.video.i)},0)};
   zka=function(a){a=void 0===a?{}:a;var b=void 0===a.Bk?!1:a.Bk,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.uG?!1:a.uG;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&ZA()?3:2:c&&d?-1:1};
   Aka=function(a){return zka({hasSubfragmentedFmp4:a.D.fg,Bk:a.D.fg,defraggedFromSubfragments:a.Hl,isManifestless:!0,uG:a.La})};
   Bka=function(a){a=a.split("");tB.vC(a,1);tB.Xi(a,53);tB.vC(a,3);tB.Xi(a,10);tB.Xi(a,5);tB.Xi(a,12);tB.vC(a,3);tB.Gt(a,37);return a.join("")};
   g.uB=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.i={};this.url=""};
   wB=function(a){vB(a);return a.C};
   xB=function(a){return a.u?Ya(a.u,"local"):"local"===a.B};
   Cka=function(a){vB(a);return g.Zb(a.i,function(b){return null!==b})};
   Dka=function(a){vB(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
   yB=function(a){vB(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.Xd();b=new g.Rj(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1]){c=b.i;var e=c.replace(/^[^.]*/,"");g.Tj(b,(0===c.indexOf("rr")?"rr":"r")+d+"---"+a[1]+e);b=new g.uB(b.toString());b.set("fallback_count","1");return b}d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.Tj(b,"redirector.googlevideo.com"),c=b.toString()):
   b.i.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Tj(b,"www.youtube.com"),c=b.toString()):c=Nja(c);b=new g.uB(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
   vB=function(a){if(a.u){if(!hA(a.u)&&!a.u.startsWith("local"))throw Error("Untrusted URL: "+a.u);var b=g.ak(a.u);a.B=b.C;a.C=b.i+(null!=b.B?":"+b.B:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.i;a.i=Eka(c);
   Object.assign(a.i,zB(b.u.toString()));Object.assign(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=hha(b),a.set("n",b))}};
   Fka=function(a){vB(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Cka(a)){var c=[];g.Wb(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
   b+="?"+c.join("&")}return b};
   Eka=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Gka(c,a[b],a[b+1]);return c};
   zB=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Gka(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
   Gka=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};
   AB=function(a,b,c,d,e,f,h,l,m,n){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.i=void 0===m?null:m;this.oe=n;this.endTime=b+c;this.u=h||0;this.range=f||null;this.pending=l||!1;this.oe=n||null};
   BB=function(){this.segments=[]};
   Hka=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=qb(a.segments,function(d){return d.Ma>=b},a);
   0<c&&a.segments.splice(0,c)}};
   CB=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
   DB=function(a){return String.fromCharCode.apply(null,a)};
   EB=function(a){return window.TextDecoder?(new TextDecoder).decode(a):DB(a)};
   FB=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.i=(this.u=e)?0:8;this.dataOffset=this.offset+this.i};
   GB=function(a){var b=a.data.getUint8(a.offset+a.i);a.i+=1;return b};
   HB=function(a){var b=a.data.getUint16(a.offset+a.i);a.i+=2;return b};
   IB=function(a){var b=a.data.getInt32(a.offset+a.i);a.i+=4;return b};
   JB=function(a){var b=a.data.getUint32(a.offset+a.i);a.i+=4;return b};
   KB=function(a){var b=a.data;var c=a.offset+a.i;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.i+=8;return b};
   LB=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.i;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.i+a.data.byteOffset,c-a.i);a.i=Math.min(c+1,a.size);return EB(b)};
   Ika=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
   MB=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};
   OB=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=NB(this,"Sequence-Number");this.J=NB(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=NB(this,"Ingestion-Walltime-Us")/1E6;this.u=(NB(this,"First-Frame-Time-Us")+NB(this,"First-Frame-Uncertainty-Us"))/1E6;this.Li=NB(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=NB(this,"Crypto-Period-Index");
   this.B=NB(this,"Crypto-Period-Seconds")};
   Kka=function(a){var b;a.data["Cuepoint-Type"]?b=new dA(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Jka[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
   Lka=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
   NB=function(a,b){return Number(a.data[b])||0};
   Mka=function(a,b){this.i=a;this.duration=b};
   Nka=function(a,b,c,d,e){this.u=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
   PB=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};
   Oka=function(a,b){var c=g.QB(a,0,1952868452);a=g.QB(a,0,1953658222);if(c&&a){c.skip(1);var d=GB(c)<<16|HB(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.i;var e=JB(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=GB(a)<<16|HB(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=JB(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.i,h=JB(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
   SB=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.QB(a,0,1836476516))?g.RB(a):NaN};
   Pka=function(a){var b=g.QB(a,0,1937011556);if(!b)return null;b=TB(a,b.dataOffset+8,1635148593);if(!b)return null;var c=TB(a,b.dataOffset+78,1936995172),d=TB(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),GB(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=TB(a,d.dataOffset,1886547818)){var h=TB(a,d.dataOffset,1886546020),l=TB(a,d.dataOffset,2037673328);if(!l&&(l=TB(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
   IB(h)/65536,f=IB(h)/65536,e=IB(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Nka(b,c,f,e,a)}return null};
   TB=function(a,b,c){for(;UB(a,b);){var d=VB(a,b);if(d.type===c)return d;b+=d.size}return null};
   g.QB=function(a,b,c){for(;UB(a,b);){var d=VB(a,b);if(d.type===c)return d;b=WB(d.type)?b+8:b+d.size}return null};
   g.XB=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
   VB=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new FB(a,b,c,d)};
   g.RB=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
   Qka=function(a){a=new FB(a.data,a.offset,a.size,a.type,a.u);var b=GB(a);a.skip(7);var c=JB(a);if(0===b){b=JB(a);var d=JB(a)}else b=KB(a),d=KB(a);a.skip(2);for(var e=HB(a),f=[],h=[],l=0;l<e;l++){var m=JB(a);f.push(m);h.push(JB(a));a.skip(4)}return{AG:c,yR:b,IR:d,FW:f,vG:h}};
   UB=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
   WB=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
   Rka=function(a){a.skip(4);return{VW:LB(a,0),value:LB(a,0),AG:JB(a),eba:JB(a),Maa:JB(a),id:JB(a),KL:LB(a),offset:a.offset}};
   YB=function(a,b){for(var c=TB(a,0,b);c;)c.markAsSkip(),c=TB(a,c.offset+c.size,b)};
   g.ZB=function(a,b){for(var c=0,d=[];UB(a,c);){var e=VB(a,c);e.type===b&&d.push(e);c=WB(e.type)?c+8:c+e.size}return d};
   Tka=function(a,b){var c=g.QB(a,0,1937011556),d=g.QB(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.QB(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 Ika(a.byteLength+b);MB(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;MB(d,a,c.offset+16,c.size-16);MB(d,e,e.byteOffset+f.dataOffset+8,b);MB(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.QB(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(Ska)return d.data;a=g.QB(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
   $B=function(a,b){this.u=a;this.i=0;this.start=b||0};
   aC=function(a){return a.i>=a.u.byteLength};
   fC=function(a,b,c){var d=new $B(c);if(!bC(d,a))return!1;d=cC(d);if(!dC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=eC(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?Uka(d-9,8):Uka(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
   Vka=function(a){var b=new $B(a);gC(b);if(bC(b,[408125543,374648427,174,224]))b=cC(b);else return null;for(var c=a=null;!aC(b);){var d=eC(b,!1);if(21432===d)switch(hC(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=cC(b):iC(b)}if(!c)return null;for(var e,f=d=b=null;!aC(c);)switch(eC(c,!1)){case 30321:if(3!==hC(c))return null;break;case 30324:b=jC(c);break;case 30323:f=jC(c);break;case 30325:d=jC(c);break;case 30322:e=eC(c,!0);e=kC(c,e);e=new DataView(e.buffer,
   e.byteOffset,e.byteLength);break;default:iC(c)}return e?new Nka(a,b,f,d,e):null};
   cC=function(a){var b=eC(a,!0),c=a.u.byteOffset+a.i;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new $B(c,a.start+a.i);a.i+=b;return c};
   hC=function(a){for(var b=eC(a,!0),c=lC(a),d=1;d<b;d++)c=256*c+lC(a);return c};
   jC=function(a){var b=eC(a,!0),c=0;4===b?c=a.u.getFloat32(a.i):8===b&&(c=a.u.getFloat64(a.i));a.i+=b;return c};
   Wka=function(a){var b=eC(a,!0);return EB(kC(a,b))};
   lC=function(a){return a.u.getUint8(a.i++)};
   eC=function(a,b){var c=lC(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+lC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+lC(a),d*=128;return b?c-d:c};
   iC=function(a){var b=eC(a,!0);a.i+=b};
   gC=function(a){var b=a.i;a.i=0;var c=!1;try{dC(a,440786851)&&(a.i=0,dC(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.My(d);else throw d;}a.i=b;return c};
   Xka=function(a){if(!dC(a,440786851,!0))return null;var b=a.i;eC(a,!1);var c=eC(a,!0)+a.i-b;a.i=b+c;if(!dC(a,408125543,!1))return null;eC(a,!0);if(!dC(a,357149030,!0))return null;var d=a.i;eC(a,!1);var e=eC(a,!0)+a.i-d;a.i=d+e;if(!dC(a,374648427,!0))return null;var f=a.i;eC(a,!1);var h=eC(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
   a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,h),c+12+e);return l};
   mC=function(a){var b=a.i;a.i=0;var c=1E6;bC(a,[408125543,357149030,2807729])&&(c=hC(a));a.i=b;return c};
   Yka=function(a,b){var c=a.i;a.i=0;if(160!==a.u.getUint8(a.i)&&!nC(a)||!dC(a,160))return a.i=c,NaN;eC(a,!0);var d=a.i;if(!dC(a,161))return a.i=c,NaN;eC(a,!0);lC(a);var e=lC(a)<<8|lC(a);a.i=d;if(!dC(a,155))return a.i=c,NaN;d=hC(a);a.i=c;return(e+d)*b/1E9};
   nC=function(a){if(!Zka(a)||!dC(a,524531317))return!1;eC(a,!0);return!0};
   Zka=function(a){if(gC(a)){if(!dC(a,408125543))return!1;eC(a,!0)}return!0};
   bC=function(a,b){for(var c=0;c<b.length;c++){if(!dC(a,b[c]))return!1;c!==b.length-1&&eC(a,!0)}return!0};
   dC=function(a,b,c){c=void 0===c?!1:c;if(aC(a))return!1;for(var d=a.i;eC(a,!1)!==b;)if(iC(a),d=a.i,aC(a))return!1;c&&(a.i=d);return!0};
   Uka=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};
   kC=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.i,b);a.i+=b;return c};
   oC=function(a){this.jg=a;this.i={};this.url=""};
   $ka=function(a,b){var c=b.indexOf("?");if(0<c){var d=zB(b.substr(c+1));g.Wb(d,function(e,f){this.set(f,e)},a);
   b=b.substr(0,c)}b=Eka(b);g.Wb(b,function(e,f){this.set(f,e)},a)};
   ala=function(a){var b=a.jg.Xd(),c=[];g.Wb(a.i,function(e,f){c.push(f+"="+e)});
   if(!c.length)return b;var d=c.join("&");a=Cka(a.jg)?"&":"?";return b+a+d};
   pC=function(a,b){var c=new g.uB(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Wb(a.i,function(d,e){c.set(e,null)});
   return c};
   bla=function(){this.u=this.i=this.timedOut=this.started=this.B=0};
   dla=function(a){a.B=(0,g.Q)();a.started+=1};
   ela=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.u);return Math.pow(b.Wg,d)};
   qC=function(a,b){a[b]||(a[b]=new bla);return a[b]};
   fla=function(a){this.B=null;this.J=this.C=this.u=0;this.i=a;this.D=a.clone()};
   sC=function(a,b){var c=qC(b,wB(a.i));if(1<=c.timedOut||1<=c.i)if(a=rC(a),b=qC(b,wB(a)),b.timedOut+b.i<=c.timedOut+c.i)return!0;return!1};
   gla=function(a,b){a=b?rC(a):a.i;return new oC(a)};
   rC=function(a){a.B||(a.B=yB(a.D));return a.B};
   tC=function(a,b){return wB(b?rC(a):a.i)};
   hla=function(a,b){var c=a.C+b.yp*(a.u-a.C);b=c>b.Yh?1E3*Math.pow(b.Wg,c-b.Yh):0;return 0===b?!0:a.J+b<(0,g.Q)()};
   uC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.C=!1;this.D=null;this.S=0;this.J=this.B=null;this.info=b;this.u=new fla(a)};
   vC=function(a,b){var c=g.r(a.info.id.split(";")),d=c.next().value;c=c.next().value;return d+";"+(b?0:a.info.lastModified)+";"+(void 0===c?"":c)};
   wC=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
   xC=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new wC(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
   yC=function(a,b){return new wC(a,a+b-1)};
   ila=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
   AC=function(a,b,c,d,e,f,h,l,m,n,p){this.type=a;this.i=b;this.range=c;this.S=[];this.J="";this.Ma=-1;this.J=void 0===d?"":d;this.Ma=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Cb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.B=!!n;a=this.range?this.Cb+this.u===this.range.length:void 0===p?!!this.u:p;this.Rd=a;this.range?(this.C=this.startTime+this.duration*this.Cb/this.range.length,this.K=this.duration*this.u/this.range.length,this.D=this.C+this.K):jla(this);3!==this.type||0<=
   this.Ma||!this.i.Pg()||g.My(new g.dw("b168859904",zC(this)))};
   jla=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
   kla=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Cb+b.u===a.Cb+a.u:d};
   BC=function(a){return 1===a.type||2===a.type};
   CC=function(a){return 3===a.type||6===a.type};
   DC=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.Cb+a.u===b.range.start+b.Cb:a.Ma===b.Ma?a.Cb+a.u===b.Cb:a.Ma+1===b.Ma&&0===b.Cb&&a.Rd:!1};
   EC=function(a,b){return DC(a,b)||$f(a.D,b.C)||a.Ma+1===b.Ma&&0===b.Cb&&a.Rd?!0:!1};
   lla=function(a){1===a.length||g.zm(a,function(c){return!!c.range});
   for(var b=1;b<a.length;b++);b=a[a.length-1];return new wC(a[0].range.start+a[0].Cb,b.range.start+b.Cb+b.u-1)};
   zC=function(a){a=FC(a);var b="";g.Wb(a,function(c,d){b+=d+"_"+c+"_"});
   return b.slice(0,-1)};
   FC=function(a){var b={};b.itag=a.i.info.lc();b.type=""+a.type;b.seg=String(a.Ma);a.range&&(b.range=""+(a.range.start+a.Cb)+"-"+(a.range.start+a.Cb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Cb);b.len=String(a.u);a.Rd&&(b.end="1");a.B&&(b.eos="1");return b};
   mla=function(a,b){return a.i!==b.i?!1:4===a.type&&3===b.type&&a.i.Se()?(a=a.i.Vw(a),vn(a,function(c){return mla(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Cb+b.u>a.Cb&&b.Cb+b.u<=a.Cb+a.u};
   nla=function(a,b){var c=b.i;a.J="updateWithEmsg";a.Ma=c;b.C&&(a.B=b.C)};
   GC=function(a,b){var c=b.Ma;a.J="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,jla(a)};
   HC=function(a,b){this.i=a;this.B=null;this.D=this.Pe=NaN;this.J=this.requestId=null;this.u=a[0].i.u;this.C=b||"";this.range=this.i[0].range&&0<this.i[0].u?lla(this.i):null};
   IC=function(a){return!BC(a.i[a.i.length-1])};
   JC=function(a){return 4===a.i[a.i.length-1].type};
   g.KC=function(a,b,c){if(a.B){var d=new oC(a.B);b.tq&&(d.get("alr")||d.set("alr","yes"));a.C&&$ka(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new oC(new g.uB(a.C)):(b=null===a.J?sC(a.u,c):a.J,d=gla(a.u,b),a.C&&$ka(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.Pe)||d.set("headm",a.Pe.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Wb(a.urlParams,function(e,f){d.set(f,e)});
   return d};
   ola=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.K*a.i.info.Nb)};
   pla=function(a,b){var c=a.i[0];if(a.range)var d=yC(a.range.start,Math.min(4096,a.range.length));else{if(a.C&&0<=a.C.indexOf("/range/")||"1"===a.u.D.get("defrag")||"1"===a.u.D.get("otf"))return null;d=yC(0,4096)}d=new AC(5,c.i,d,"createProbeRequestInfo"+c.J,c.Ma);a=new HC([d],a.C);a.J=b;return a};
   LC=function(a,b,c,d,e,f){f=void 0===f?0:f;uC.call(this,a,b,d,void 0);this.Z=c;this.Li=f;this.K=!0;this.index=e||new BB;this.Tt()&&(this.C=!0)};
   qla=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.u=e||NaN};
   MC=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""};
   NC=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
   rla=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};
   sla=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
   OC=function(){this.i=[];this.u=null;this.J=0;this.B=[];this.D=!1;this.K="";this.C=-1};
   tla=function(a){var b=a.B;a.B=[];return b};
   ula=function(){this.C=[];this.i=null;this.u={};this.B={}};
   yla=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=vla(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=wla(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=xla(a,f));if(null==h)return;h.update(e,c);Eb(d,tla(h))}Eb(a.C,d);naa(a.C,function(l){return 1E3*l.startSecs+l.i})};
   zla=function(a){a.i&&(a.i.i=[]);g.Wb(a.u,function(b){b.i=[]});
   g.Wb(a.B,function(b){b.i=[]})};
   vla=function(a){a.i||(a.i=new OC);return a.i};
   wla=function(a,b){a.u[b]||(a.u[b]=new OC);return a.u[b]};
   xla=function(a,b){a.B[b]||(a.B[b]=new OC);return a.B[b]};
   PC=function(a){var b=void 0===a?{}:a;a=void 0===b.Li?0:b.Li;var c=void 0===b.gk?!1:b.gk,d=void 0===b.Il?0:b.Il,e=void 0===b.xe?0:b.xe,f=void 0===b.wg?Infinity:b.wg,h=void 0===b.ew?0:b.ew;b=void 0===b.bf?!1:b.bf;this.segments=[];this.i=this.Ut=-1;this.u=null;this.Fg=a;this.Il=d;this.gk=c;this.xe=e;this.wg=f;this.ew=h;this.bf=b};
   RC=function(a,b,c){b=QC(a,b);return 0<=b&&(c||!a.segments[b].pending)};
   QC=function(a,b){return Lb(a.segments,function(c){return b-c.Ma})};
   SC=function(a,b,c){c=void 0===c?{}:c;LC.call(this,a,b,"",void 0,void 0,c.Li||0);this.index=new PC(c)};
   TC=function(a,b,c){uC.call(this,a,b);this.K=c;this.index=new BB};
   Ala=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.Nb*f;var h=b===a.index.getLastSegmentNumber()&&0<c;a=new AC(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,h);return new HC([a],d)};
   Bla=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.J;b=b.K.split(",").filter(function(p){return 0<p.length});
   for(var e=0,f=0,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 AB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
   UC=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
   VC=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
   WC=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
   Cla=function(a,b){return 0===a.i.length?!1:(a=a.i[a.i.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
   XC=function(a,b){b=g.r(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
   YC=function(a){a.C=void 0;a.u=0;a.B=0};
   ZC=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.i[a.u].length};
   Dla=function(a){if(!a.C){var b=a.i[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
   Ela=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!ZC(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.i[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.u-d+1,e);YC(a);a.focus(b)}d=a.i[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
   $C=function(a,b,c){a=Ela(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
   Fla=function(a){a=$C(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};
   aD=function(a,b){a.focus(b);return a.i[a.u][b-a.B]};
   Gla=function(a,b){a.focus(b);return ZC(a,b,4)?Dla(a).getUint32(b-a.B):256*(256*(256*aD(a,b)+aD(a,b+1))+aD(a,b+2))+aD(a,b+3)};
   bD=function(a,b,c){this.info=a;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.i=b instanceof WC?b:new WC([b])};
   cD=function(a){return Ela(a.i)};
   Hla=function(a,b){if(1!==a.info.i.info.containerType||a.info.Cb||!a.info.Rd)return!0;a=cD(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};
   Ila=function(a,b){b=Math.min(b,a.info.u);var c=a.i.split(b),d=c.oz;c=c.Eq;var e=new AC(a.info.type,a.info.i,a.info.range,a.info.J,a.info.Ma,a.info.startTime,a.info.duration,a.info.Cb,b,!1,!1);d=new bD(e,d,a.B);a=new AC(a.info.type,a.info.i,a.info.range,a.info.J,a.info.Ma,a.info.startTime,a.info.duration,a.info.Cb+b,a.info.u-b,a.info.B,a.info.Rd);a=new bD(a,c,!1);return[d,a]};
   Jla=function(a,b,c){var d;if(!(d=!DC(a.info,b.info)||a.info.Rd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?Cla(a.i,c.i[0]):1);d=c}if(d)return null;c=new AC(a.info.type,a.info.i,a.info.range,a.info.J,a.info.Ma,a.info.startTime,a.info.duration,a.info.Cb,a.info.u,a.info.B,a.info.Rd);d=b.info;c.u+=d.u;c.range&&(c.K+=d.K);c.D=d.D;c.Rd=d.Rd;c.B=c.B||d.B;d=new WC;XC(d,a.i);XC(d,b.i);c=new bD(c,d,a.B);c.u=b.u||a.u;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.B=!1);return c};
   Kla=function(a){g.dD(a.info.i.info)||a.info.i.info.ue();if(-1!==a.C)return a.C;if(a.u&&Lka(a.u))return a.C=Lka(a.u),a.C;if(g.dD(a.info.i.info)){var b=cD(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;UB(b,f);){var h=VB(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.RB(h):1952867444===h.type&&isNaN(d)&&(d=g.XB(h));f=WB(h.type)?f+8:f+h.size}!e&&c&&(e=SB(c));b=d/e}else b=new $B(cD(a)),c=a.B?b:new $B(new DataView(a.info.i.i.buffer)),d=mC(c),c=b.i,b.i=0,nC(b)?dC(b,231)?(d=
   hC(b)*d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.C=b||a.info.C;return a.C};
   Mla=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=Kla(a)+b;Lla(a,c);a.timestampOffset=b};
   Lla=function(a,b){g.dD(a.info.i.info)||a.info.i.info.ue();a.C=b;if(g.dD(a.info.i.info)){var c=cD(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;UB(c,f);){var h=VB(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.RB(h)));if(1952867444===h.type){!d&&a&&(d=SB(a));var l=g.XB(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=WB(h.type)?f+8:f+h.size}return!0}c=new $B(cD(a));a=a.B?c:new $B(new DataView(a.info.i.i.buffer));d=mC(a);a=c.i;c.i=0;if(nC(c)&&dC(c,231))if(e=eC(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
   eD=function(a,b){b=void 0===b?!1:b;var c=Nla(a);a=b?0:a.info.K;return c||a};
   Nla=function(a){g.dD(a.info.i.info)||a.info.i.info.ue();if(a.u&&6===a.info.type)return a.u.Li;if(g.dD(a.info.i.info)){var b=cD(a);var c=0;b=g.ZB(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=Qka(d.value),c+=d.vG[0]/d.AG;c=c||NaN;if(!(0<=c))a:{c=cD(a);b=a.info.i.i;for(var e=d=0,f=0;UB(c,d);){var h=VB(c,d);if(1836476516===h.type)e=g.RB(h);else if(1836019558===h.type){!e&&b&&(e=SB(b));if(!e){c=NaN;break a}var l=TB(h.data,h.dataOffset,1953653094),m=e,n=TB(l.data,l.dataOffset,1952868452);
   l=TB(l.data,l.dataOffset,1953658222);var p=IB(n);IB(n);p&2&&IB(n);n=p&8?IB(n):0;var q=IB(l),t=q&1;p=q&4;var u=q&256,x=q&512,y=q&1024;q&=2048;var z=JB(l);t&&IB(l);p&&IB(l);for(var G=t=0;G<z;G++){var F=u?IB(l):n;x&&IB(l);p&&0===G||!y||IB(l);q&&IB(l);t+=F}f+=t/m}d=WB(h.type)?d+8:d+h.size}c=f||NaN}c||g.My(new g.dw("Missing duration while parsing bmff",zC(a.info)))}else c=new $B(cD(a)),a=a.B?c:new $B(new DataView(a.info.i.i.buffer)),c=Yka(c,mC(a));return c};
   Ola=function(a){var b=cD(a);var c=(c=g.QB(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.QB(b,0,1836476516))?g.RB(b):a?SB(a):NaN);return c};
   Pla=function(a){if(!a.u){g.dD(a.info.i.info)||a.info.i.info.ue();if(g.dD(a.info.i.info)){var b=cD(a),c=TB(b,0,1701671783);if(c){var d=Rka(c);var e=d.VW;d=PB(d.KL);if(b=TB(b,c.offset+c.size,1701671783))if(b=Rka(b),b=PB(b.KL),d&&b){c=g.r(Object.keys(b));for(var f=c.next();!f.done;f=c.next())f=f.value,d[f]=b[f]}e=d?new OB(d,e):null}else e=null}else{e=new $B(cD(a));d=e.i;e.i=0;c=b=null;if(bC(e,[408125543,307544935]))for(f=e.i+eC(e,!0);e.i<f;)if(29555!==eC(e,!1))iC(e);else for(var h=e.i+eC(e,!0);e.i<h;)if(26568!==
   eC(e,!1))iC(e);else for(var l=e.i+eC(e,!0);e.i<l;){var m=eC(e,!1);if(17543===m){if(m=Wka(e),m=PB(m))if(c)for(var n=g.r(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,c[p]=m[p];else c=m}else 17827===m?(m=Wka(e),b||(b=m)):iC(e)}e.i=d;e=c?new OB(c,b):null}a.u=e}};
   fD=function(a,b,c,d,e){uC.call(this,a,b,c,d);this.K=null;this.index=e?new e.NativeSegmentIndex:new UC};
   gD=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=yC(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),q=f===a.index.getLastSegmentNumber()&&n+p===h.length;e.push(new AC(3,a,h,"getRequestInfoForRange",f,l,m,n,p,q));if(h.start+n+p>=c+d)break}e.length||g.Ly(new g.dw("b189619593",""+b,""+c,""+d));return new HC(e)};
   hD=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
   Qla=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
   jD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||iD(a,b);this.i=g.eB[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=h)||(a=g.eB[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
   iD=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=kD[0];for(var d=0;d<kD.length;d++){var e=kD[d],f=g.eB[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
   nD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Nb||(c.Nb=16E3);Object.assign(this,c);this.containerType=lD(b);this.i=mD[this.lc()]||""};
   oD=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
   pD=function(a){return"9h"===a.i||"(h"===a.i};
   qD=function(a){return"1"===a.i||"1h"===a.i};
   g.dD=function(a){return 1===a.containerType};
   rD=function(a){return"application/x-mpegURL"===a.mimeType};
   Rla=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.i)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Nb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Nb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
   sD=function(a){return a.includes("vtt")||a.includes("text/mp4")};
   lD=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};
   Sla=function(a,b,c,d,e){var f=new hD;b in g.eB||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.eB[b],d=Math.round(16*e/9));d=new jD(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new nD(c,a,{audio:f,video:d})};
   tD=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
   g.uD=function(){ky.apply(this,arguments)};
   vD=function(){var a=g.Ga("yt.player.utils.videoElement_");a||(a=g.Gg("VIDEO"),g.Fa("yt.player.utils.videoElement_",a,void 0));return a};
   wD=function(a){var b=vD();return!!(b&&b.canPlayType&&b.canPlayType(a))};
   Tla=function(a){try{var b=xD('video/mp4; codecs="avc1.42001E"')||xD('video/webm; codecs="vp9"');return(xD('audio/mp4; codecs="mp4a.40.2"')||xD('audio/webm; codecs="opus"'))&&(b||!a)||wD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
   xD=function(a){if(/opus/.test(a)&&g.ej&&!sr("38")&&!g.Wt())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Zt())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!wD(a)};
   yD=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
   zD=function(){var a=vD();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
   AD=function(){var a=vD();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
   BD=function(a,b){return{start:function(c){return a[c]},
   end:function(c){return b[c]},
   length:a.length}};
   CD=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)};
   DD=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};
   ED=function(a,b){return 0<=DD(a,b)};
   Ula=function(a,b){if(!a)return NaN;b=DD(a,b);return 0<=b?a.start(b):NaN};
   FD=function(a,b){if(!a)return NaN;b=DD(a,b);return 0<=b?a.end(b):NaN};
   GD=function(a){return a&&a.length?a.end(a.length-1):NaN};
   Vla=function(a,b){a=FD(a,b);return 0<=a?a-b:0};
   HD=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 BD(d,e)};
   ID=function(a,b,c,d){g.R.call(this);var e=this;this.xd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.FK={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)},
   updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}};
   ny(this.xd,this.FK);this.Cx=this.isActive};
   g.JD=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=(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
   g.KD=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c};
   LD=function(a){var b=void 0===b?!1:b;if(a instanceof g.KD)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Ly(a):g.My(a);return new g.KD(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
   MD=function(a,b,c,d,e){var f;g.R.call(this);var h=this;this.Wb=a;this.Ke=b;this.id=c;this.containerType=d;this.isVideo=e;this.oL=this.Ez=this.Ue=null;this.appendWindowStart=this.timestampOffset=0;this.fJ=BD([],[]);this.ey=!1;this.Ae=function(l){return h.ea(l.type,h)};
   if(null===(f=this.Wb)||void 0===f?0:f.addEventListener)this.Wb.addEventListener("updateend",this.Ae),this.Wb.addEventListener("error",this.Ae)};
   ND=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
   OD=function(a,b){this.i=a;this.u=void 0===b?!1:b;this.B=!1};
   PD=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaSource=a;this.Ke=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.uD(this);g.J(this,this.events);this.gw=new OD(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Ke.webkitMediaSourceURL,!0);a=this.mediaSource||this.Ke;ly(this.events,a,["sourceopen","webkitsourceopen"],this.OV);ly(this.events,a,["sourceclose","webkitsourceclose"],this.NV)};
   Wla=function(a,b){QD(a)?g.ah(function(){b(a)}):a.callback=b};
   QD=function(a){try{return"open"===RD(a)}catch(b){return!1}};
   RD=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Ke.webkitSourceState){case a.Ke.SOURCE_OPEN:return"open";case a.Ke.SOURCE_ENDED:return"ended";default:return"closed"}};
   SD=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
   Xla=function(a,b,c,d){if(!a.i||!a.u)return null;var e=a.i.isView()?a.i.xd:a.i,f=a.u.isView()?a.u.xd:a.u,h=new PD(a.mediaSource,a.Ke,!0);h.gw=a.gw;e=new ID(e,b,c,d);b=new ID(f,b,c,d);h.i=e;h.u=b;g.J(h,e);g.J(h,b);QD(a)||a.i.TA(a.i.Uc());return h};
   Yla=function(a,b){return TD(function(c,d){return g.Ht(c,d,4,1E3)},a,b)};
   g.Zla=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=EB(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
   TD=function(a,b,c){b.match($la);return a(b,c).then(function(d){var e=g.Zla(d.xhr);return e?TD(a,e,c):d.xhr})};
   UD=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.R.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.La=this.duration=0;this.bf=this.S=this.isLive=this.B=!1;this.wg=this.xe=0;this.isOtf=this.tf=!1;this.Ea=(0,g.Q)();this.Z=Infinity;this.i={};this.state=this.ma=0;this.timeline=null;this.isManifestless=!1;this.Y=[];this.C=null;this.ya=0;this.Ra="";this.Aa=NaN;this.K=this.J=this.D=this.timestampOffset=this.u=0;this.Ya=!!b&&b.ob("html5_live_nonzero_first_segment_start_time");
   this.eb=!!b&&b.ob("html5_live_self_init_segments");this.withCredentials=!b||!b.ob("html5_manifest_without_credentials");this.Ja=!!b&&b.ob("disable_html5_manifest_namespace_redux");this.Ua=b&&b.ob("disable_html5_duration_caching")?Infinity:10;this.Za=!!b&&b.ob("html5_reset_index_on_mismatch");ama=!!b&&b.ob("html5_modern_vp9_mime_type");this.Ka=!!b&&b.ob("html5_unrewrite_timestamps")};
   wka=function(a){return g.Zb(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
   qB=function(a){return g.Zb(a.i,function(b){return!!b.info.Bd})};
   bma=function(a){return g.Zb(a.i,function(b){return sD(b.info.mimeType)})};
   cma=function(a){return g.Zb(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
   dma=function(a){return g.Zb(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
   ema=function(a){return g.Zb(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
   fma=function(a){return g.Zb(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
   gma=function(a){return ac(a.i,function(b){return b.info.video?b.CF():!0})};
   kB=function(a){return g.Zb(a.i,function(b){return xB(b.u.i)})};
   hma=function(a){return g.Zb(a.i,function(b){return!(b.index instanceof UC)})};
   VD=function(a,b){a.i[b.info.id]=b};
   lma=function(a,b,c,d,e,f){var h=ima(a);if(d||e){c=new UD("",null===f||void 0===f?void 0:f.experiments,!0);a=g.r(a);for(d=a.next();!d.done;d=a.next()){var l=d.value;d=WD(l,b);f=XD(l.url,l.sp,l.s);h=Number(l.target_duration_sec)||5;l=Number(l.max_dvr_duration_sec)||14400;var m=Number(f.get("mindsq")||f.get("min_sq")||"0"),n=Number(f.get("maxdsq")||f.get("max_sq")||"0")||Infinity;c.xe=c.xe||m;c.wg=c.wg||n;var p=!sD(d.mimeType);f&&VD(c,new SC(f,d,{Li:h,gk:p,Il:l,xe:m,wg:n,ew:300,bf:e}))}c.B=!e;c.tf=!0;
   c.isManifestless=!0;c.isLive=!e;c.bf=e;c.S=!!c.xe&&!!c.wg&&isFinite(c.wg);b=c}else b=3===h?jma(a,b,c,null===f||void 0===f?void 0:f.experiments):kma(a,b,c,f);return b};
   kma=function(a,b,c,d){c=void 0===c?0:c;var e=new UD("",null===d||void 0===d?void 0:d.experiments,!1);e.duration=c||0;g.Qb(a,function(f){var h=WD(f,b,e.duration),l=xC(f.init),m=xC(f.index);(f=XD(f.url,f.sp,f.s))&&VD(e,new fD(f,h,l,m,null===d||void 0===d?void 0:d.Zi))});
   return e};
   jma=function(a,b,c,d){c=void 0===c?0:c;var e=new UD("",d,!1);e.duration=c||0;g.Qb(a,function(f){var h=WD(f,b,e.duration),l=XD(f.url,f.sp,f.s);if(l)if(3===h.streamType)VD(e,new TC(l,h,"sq/0"));else{var m=xC(f.init);f=xC(f.index);VD(e,new fD(l,h,m,f))}});
   e.isOtf=!0;return e};
   WD=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 jD(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);f=h;null===YD&&(YD=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(ama&&window.MediaSource&&MediaSource.isTypeSupported)!YD&&0<d.indexOf("vp09.00")?d='video/webm; codecs="vp9"':!YD&&0<d.indexOf("vp09.02")&&(d='video/webm; codecs="vp9.2"');else if((YD||mma)&&('video/webm; codecs="vp9"'===d||'video/webm; codecs="vp9.2"'===d)){var l="00",m="08",n="01",p="01",q="01";'video/webm; codecs="vp9.2"'===d&&(l="02",m="10","bt2020"===f.primaries&&(q=n="09"),"smpte2084"===f.u&&(p="16"),"arib-std-b67"===f.u&&(p="18"));d='video/webm; codecs="'+["vp09",l,"51",m,"01",n,p,q,"00"].join(".")+
   '"'}}var t;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var u=new hD(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(t=new tD(a.name,a.audio_track_id,"1"===a.isDefault))}var x;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(x=new Qla(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;l=Number(a.clen);m=Number(a.lmt);c=c&&l?l/c:0;if(b&&a.drm_families){var y={};n=g.r(a.drm_families.split(","));for(p=
   n.next();!p.done;p=n.next())p=p.value,y[p]=b[p]}return new nD(e,d,{audio:u,video:h,Ac:t,Bd:y,Nb:f,Ju:c,contentLength:l,lastModified:m,captionTrack:x,streamType:+a.stream_type})};
   ima=function(a){return vn(a,function(b){return 3===+b.stream_type})?3:0};
   nma=function(a,b){return a.timeline?Fb(a.timeline.C,b):a.Y.length?Fb(a.Y,b):[]};
   XD=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.uB(a,!0);a.set("alr","yes");c&&(c=Bka(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
   rma=function(a,b){var c=MC(b,"id");c=c.replace(":",";");var d=MC(b,"mimeType"),e=MC(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(MC(b,"bandwidth"))/8;var f=Number(NC(b,"BaseURL").getAttribute(ZD(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(MC(b,"width"));var m=Number(MC(b,"height")),n=Number(MC(b,"frameRate")),p=oma(MC(b,ZD(a,"projectionType")));a:switch(MC(b,ZD(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
   2;break a;default:q=0}l=new jD(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(MC(b,"audioSamplingRate"));var u=Number(MC(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=pma(MC(b,ZD(a,"spatialAudioType")));t=new hD(t,u,m);a:{u=MC(b,"lang")||"und";if(m=NC(b,"Role"))if(p=MC(m,"value")||"",fc(qma,p)){m=u+"."+qma[p];n="main"===p;a=MC(b,ZD(a,"langName"))||u+" - "+p;u=new tD(a,m,n);break a}u=void 0}}if(b=NC(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
   b.getAttribute("schemeIdUri")){var x={};for(b=b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(x[a]=m.trim()))}else x=void 0;return new nD(c,d,{audio:t,video:l,Ac:u,Bd:x,Nb:e,Ju:h,contentLength:f})};
   oma=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
   pma=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
   tma=function(a,b){b=void 0===b?"":b;a.state=1;a.Ea=(0,g.Q)();return g.qh(Yla(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.ma=c.status;c=c.responseText;var d=new DOMParser;c=$k(d,hr(c)).getElementsByTagName("MPD")[0];a.Z=1E3*rla(MC(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ja){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.Ra=d}a.isLive=Infinity>a.Z&&a.isLivePlayback;a.La=Number(MC(c,ZD(a,"earliestMediaSequence")))||0;if(d=Date.parse(sla(MC(c,ZD(a,"mpdResponseTime")))))a.ya=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.zm(c.getElementsByTagName("Period"),a.uW,a);a.state=2;a.ea("loaded");sma(a)}return a}),function(c){if(c instanceof Ft){var d=c.xhr;
   a.ma=d.status}a.state=3;a.ea("loaderror");return kh(d)})};
   uma=function(a,b,c){return tma(new UD(a,b,c),a)};
   $D=function(a){return a.isLive&&(0,g.Q)()-a.Ea>=a.Z};
   sma=function(a){var b=a.Z;isFinite(b)&&($D(a)?a.refresh():(b=Math.max(0,a.Ea+b-(0,g.Q)()),a.C||(a.C=new g.M(a.refresh,b,a),g.J(a,a.C)),a.C.start(b)))};
   vma=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
   aE=function(a){return a.D&&(a.u||a.Ka)?a.D-(a.u||a.timestampOffset):0};
   bE=function(a){return a.J&&(a.u||a.Ka)?a.J-(a.u||a.timestampOffset):0};
   cE=function(a){if(!isNaN(a.Aa))return a.Aa;var b=a.i,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ua&&(a.Aa=b);return b}if(a.isLive&&(d=b[c],d.Li))return d.Li}return NaN};
   wma=function(a,b){a=kc(a.i,function(d){return d.index.isLoaded()});
   if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c<a.getLastSegmentNumber()?a.getStartTime(c+1):NaN};
   xma=function(a,b){g.Wb(a.i,function(c){g.Wb(b,function(d,e){var f=c.u;f.i.set(e,d);f.D.set(e,d);f.B&&f.B.set(e,d)})})};
   yma=function(a,b){if(!a.i["0"]){var c=new nD("0","fakesb",{video:new jD(0,0,0,void 0,void 0,"auto")});a.i["0"]=b?new LC(new g.uB("http://www.youtube.com/videoplayback"),c,"fake"):new fD(new g.uB("http://www.youtube.com/videoplayback"),c,new wC(0,0),new wC(0,0))}};
   dE=function(a,b,c){for(var d in a.i){var e=sD(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=QC(e,b);0<=f&&e.segments.splice(f,1)}}};
   ZD=function(a,b){return a.Ja?"yt:"+b:a.Ra+":"+b};
   zma=function(a){a.J=0;a.D=0;a.K=0};
   Ama=function(){var a=g.Lz("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Xf(Math.floor(b),0,100),muted:!!a.muted}};
   Bma=function(a){g.Kz("yt-player-bandwidth",a,2592E3)};
   eE=function(a){a=void 0===a?2592E3:a;if(0<a&&!(mja()>(0,g.Q)()-1E3*a))return 0;a=g.Lz("yt-player-quality");if("string"===typeof a){if(a=g.eB[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
   Cma=function(){var a=g.Lz("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};
   Dma=function(){var a={values:{},Rl:{}};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};
   Ema=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
   gE=function(a,b){return+fE()[Ema(a,b)]||8192};
   fE=function(){return g.Lz("yt-player-performance-cap")||{}};
   Fma=function(a){g.Kz("yt-player-watch-later-pending",a)};
   Gma=function(){return!!g.Lz("yt-player-headers-readable")};
   Hma=function(a,b){g.Kz("yt-player-bandaid-host",{primary:a,secondary:b},864E3)};
   hE=function(){return g.Lz("yt-player-bandaid-host")};
   Ima=function(a){g.Kz("yt-player-playback-on-reload",a)};
   Jma=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
   g.Kma=function(){var a=g.Lz("yt-player-caption-language-preferences");return a?a:[]};
   Lma=function(){this.Hb=this.i=this.Ja=this.ma=this.Y=this.Ea=this.Ka=this.Za=this.Ya=!1;this.K=this.J=0;this.jb=!1;this.eb=!0;this.kb=!1;this.B=0;this.S=!1;this.zb=Infinity;this.HC=!1;this.Mb=!0;this.Ua=this.Ra=!1;this.u={};this.vb=this.La=this.qb=this.ya=this.Db=this.D=this.Aa=!1};
   xka=function(a){if(a.Za)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.S&&(b.unshift("1"),b.unshift("1h"));a.i&&b.unshift("h");a.Z&&(b=(Mma[a.Z]||[a.Z]).concat(b));return b};
   vka=function(a){var b=["o","a","A"];a.Ea&&(b=["m","M"].concat(b));a.Y&&(b=["mac3","MAC3"].concat(b));a.ma&&(b=["meac3","MEAC3"].concat(b));a.Ya&&(b=["so","sa"].concat(b));!a.Hb||a.Ja||a.C||b.unshift("a");a.Ka&&b.unshift("ah");a.C&&(b=(Mma[a.C]||[a.C]).concat(b));return b};
   iE=function(a,b,c){b=void 0===b?{}:b;var d;if(oB(a.B,pB.AV1_CODECS)&&oB(a.B,pB.HEIGHT)&&oB(a.B,pB.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=Jma();if(e)return b.localPref=e}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Vt()&&(b.isArm=1,a=240);if(c){e=c.videoInfos.find(function(h){return qD(h)});
   if(e=null===(d=null===e||void 0===e?void 0:e.u)||void 0===d?void 0:d.powerEfficient)a=8192,b.isEfficient=1;c=c.videoInfos[0].video;var f=Math.min(gE("1",c.fps),gE("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!e&&(b.hdr=1,a*=.75)}else c=gE("1",30),b.perfCap30=c,a=Math.min(a,c),c=gE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
   kE=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.i={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.S=!!d&&d.ob("edge_nonprefixed_eme");this.D=d?g.jE(d,"html5_hdcp_probing_stream_url"):""};
   mE=function(a){return a.S?!1:!a.keySystemAccess&&!!lE()&&"com.microsoft.playready"===a.keySystem};
   nE=function(a){return"com.microsoft.playready"===a.keySystem};
   oE=function(a){return!a.keySystemAccess&&!!lE()&&"com.apple.fps.1_0"===a.keySystem};
   pE=function(a){return"com.youtube.fairplay"===a.keySystem};
   g.qE=function(a){return"fairplay"===a.flavor};
   lE=function(){var a=window,b=a.MSMediaKeys;au()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
   sE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.ej&&!g.Wt())return sr("45");if(g.ax||g.Qc)return a.ob("edge_nonprefixed_eme");if(g.fj)return sr("47");if(g.gj){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.rE(a,"html5_safari_desktop_eme_min_version"))return sr(a)}return!0};
   Nma=function(a,b,c,d){var e=Xt(),f=(c=e||c&&au())?["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.v(f),g.v(tE.playready)):[].concat(g.v(tE.playready),g.v(f))};
   uE=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ba=e;this.i=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.oa()};
   Pma=function(a,b){a.callback=b;a.B=[];sE(a.experiments)?vE(a):Oma(a)};
   vE=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.B);else{var b=a.i[0],c=a.u[b],d=Qma(a,c);a.oa();navigator.requestMediaKeySystemAccess(b,d).then(Hs(function(e){if(!a.isDisposed()){a.oa();c.keySystemAccess=e;if(nE(c)){e=vD();for(var f=g.r(Object.keys(a.C[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())Rma(a,c,h.value);if(e.videoCapabilities)for(e=
   g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())Rma(a,c,f.value)}a.B.push(c);a.N("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),vE(a)):a.callback(a.B)}}),Hs(function(){a.oa();
   a.D=!a.D&&"widevine"===a.u[a.i[0]].flavor;a.D||a.i.shift();vE(a)}))}};
   Rma=function(a,b,c){a.N("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
   Qma=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};nE(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.ej&&Tt("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
   f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&(gu()||Ut())&&(a.Ba("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
   Oma=function(a){if(lE()&&g.gj)a.oa(),a.B.push(new kE("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Sma(),c=g.tb(a.i,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
   c?(a.oa(),a.B.push(a.u[c])):a.oa();a.i=[]}a.callback(a.B)};
   Sma=function(){var a=lE();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=vD();
   return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
   Tma=function(){this.i=0};
   Uma=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Ks(b||"","&");var c={};g.Qb(this.experimentIds,function(d){c[d]=!0});
   this.experiments=c};
   g.rE=function(a,b){return Number(a.flags[b])||0};
   g.jE=function(a,b){return(a=a.flags[b])?a.toString():""};
   wE=function(a,b,c){this.experiments=a;this.Y=b;this.ma=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.D={};this.S=!1;this.i=new Map;this.K=!0;this.C=!this.experiments.ob("html5_disable_protected_hdr");this.u=!1;this.Z=this.experiments.ob("html5_disable_vp9_encrypted");a=g.Ga("cast.receiver.platform.getValue");this.B=!this.J&&a&&a("max-video-resolution-vpx")||null};
   rka=function(a,b,c){c=void 0===c?1:c;var d,e=b.lc();if("0"===e||a.experiments.ob("html5_blocking_media_capabilities")&&(null===(d=b.u)||void 0===d?0:d.supported))return!0;var f=b.mimeType;if(b.ue()&&Xt()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(qD(b)&&a.S)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(oB(a,pB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";
   if("338"===e&&!(g.ej?sr(53):g.fj&&sr(64)))return"dopus";var h=c;h=void 0===h?1:h;c={};b.video&&(b.video.width&&(c[pB.WIDTH.name]=b.video.width),b.video.height&&(c[pB.HEIGHT.name]=b.video.height),b.video.fps&&(c[pB.FRAMERATE.name]=b.video.fps*h),b.video.u&&(c[pB.EOTF.name]=b.video.u),b.Nb&&(c[pB.BITRATE.name]=8*b.Nb*h),"("===b.i&&(c[pB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[pB.DECODETOTEXTURE.name]="true");b.audio&&
   b.audio.numChannels&&(c[pB.CHANNELS.name]=b.audio.numChannels);a.u&&oD(b)&&(c[pB.EXPERIMENTAL.name]="allowed");h=g.r(Object.keys(pB));for(var l=h.next();!l.done;l=h.next()){l=pB[l.value];var m;if(m=c[l.name])(m=l===pB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(m=b,m=a.experiments.ob("html5_ignore_h264_framerate_cap")&&l===pB.FRAMERATE&&("H"===m.i||"h"===m.i)),m=!(m||l===pB.DECODETOTEXTURE&&!a.experiments.ob("html5_decode_to_texture_cap"));if(m)if(oB(a,l))if(a.B){if(a.B[l.name]<c[l.name])return l.name}else f=
   f+"; "+l.name+"="+c[l.name];else if(pD(b)&&l===pB.EOTF)return"dvp92"}!a.experiments.ob("disable_html5_cast_hdcp_filter2")&&a.J&&b.video&&1080<b.video.i&&b.Bd&&(f+="; hdcp=2.2");return"227"!==e||a.experiments.ob("html5_enable_1080p_hq_cenc")?"585"!==e&&"588"!==e&&"583"!==e&&"586"!==e&&"584"!==e&&"587"!==e&&"591"!==e&&"592"!==e||a.experiments.ob("html5_enable_new_hvc_enc")?a.isTypeSupported(f)?!0:"tpus":"newhvc":"hqcenc"};
   xE=function(){var a=Ut()&&!sr(29),b=Tt("google tv")&&Tt("chrome")&&!sr(30),c=Xt();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
   Vma=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.i)&&rka(a,e,c)){d=e.video.i;break}return d};
   g.yE=function(a,b){b=void 0===b?!1:b;return xE()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(vD(),"application/x-mpegURL")?!0:!1};
   oB=function(a,b){b.name in a.D||(a.D[b.name]=Wma(a,b));return a.D[b.name]};
   Wma=function(a,b){if(a.B)return!!a.B[b.name];if(b===pB.BITRATE&&a.experiments.ob("html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===pB.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)};
   zE=function(){g.R.call(this);this.items={}};
   AE=function(a,b,c,d){function e(h){var l,m=!(204!==h.status&&200!==h.status&&!h.response);h={succ:""+ +m,rc:h.status,lb:(null===(l=h.response)||void 0===l?void 0:l.byteLength)||0,rt:(((0,g.Q)()-f)/1E3).toFixed(3),shost:g.ii(a),trigger:b};c&&c(h);d&&!m&&d(new g.KD("pathprobe.net",!1,h))}
   var f=(0,g.Q)();g.Ct(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
   Xma=function(){};
   Yma=function(a){return g.H(a,function c(){var d,e,f,h,l;return g.B(c,function(m){if(1==m.i)return d={format:"RAW",timeout:5E3},g.A(m,Gt("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",d),2);e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(null);f=e.xhr.responseText;h=/https:\/\/(.*\.googlevideo.com)/;l=f.match(h);return m.return(l?l[1]:null)})})};
   Zma=function(a,b,c){AE("https://"+b+"/videoplayback?probe=1",c,function(d){var e;null===(e=a.u)||void 0===e?void 0:e.Ba("pathprobe",d)})};
   $ma=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
   ana=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.u=new Uint8Array(a.buffer,16)};
   BE=function(a){try{return Rc(a)}catch(b){return null}};
   bna=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?BE(b.clientKey):null;var c=b.encryptedClientKey?BE(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.Q)():null;a&&c&&d&&(this.i=new ana(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=BE(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
   CE=function(a){this.i=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
   DE=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.i=Math.round(a*this.resolution);this.values=Array(this.i);for(a=0;a<this.i;a++)this.values[a]=Infinity;this.J=cna(this);this.B=c;this.D=d};
   cna=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
   EE=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.Mb(a.J,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
   return a.values[a.J[Math.round(b*((a.u?a.i:a.valueIndex)-1))]]||0};
   dna=function(a){var b=new Tma;this.policy=a;this.ma=b;this.Z=this.Y=0;this.D=-1;this.S=this.C=FE();this.K=new DE(4,1,.6,.4);this.i=new DE(10,1,.5,.4);this.B=a.i?new CE(a.u):new DE(a.u,20,.5,.4);this.J=new DE(5,1,.25);this.u=new DE(30,1,.5);a=g.Lz("yt-player-bandwidth")||{};this.B.Mg(this.policy.D,0<a.byterate?a.byterate:this.policy.B);0<a.delay&&this.K.Mg(1,Math.min(a.delay,2));0<a.stall&&this.i.Mg(1,a.stall);0<a.init&&(this.S=Math.min(a.init,this.S));this.D=FE()};
   GE=function(a){a=a.K.qg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
   ena=function(a,b,c){isNaN(c)||(a.Z+=c);isNaN(b)||(a.Y+=b)};
   HE=function(a){a=a.B.qg();return 0<a?a:1};
   IE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=HE(a);d=1/((a.i.qg()||0)+1/d);var e=a.J.qg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+GE(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((EE(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
   JE=function(a){return{delay:GE(a),stall:a.i.qg()||0,byterate:HE(a),init:a.S}};
   KE=function(a){-1<a.D&&3E4<FE()-a.D&&(Bma(JE(a)),a.D=FE())};
   fna=function(a){return 4E3<=FE()-a.C};
   gna=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.i=!1};
   hna=function(a,b,c){var d=new gna;a&&(d.i=!0,d.D=.1);c.ob("html5_pctile_bandwidth_estimator")&&(d.i=!1);b&&(d.B=b/8);d.C=480<=eE();return d};
   jna=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.I.call(this);var c=this;this.values=a;this.Rl=b;this.u={};this.B=this.i=0;this.C=new g.M(function(){ina(c)},1E4);
   g.J(this,this.C)};
   LE=function(a,b){kna(a,b);return a.values[b]&&a.Rl[b]?a.values[b]/Math.pow(2,a.i/a.Rl[b]):0};
   kna=function(a,b){a.values[b]||(b=Dma(),a.values=b.values||{},a.Rl=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
   ina=function(a){var b=Dma();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]=LE(a,e);a.u=c}b=a.Rl;c={};c.values=a.u;c.halfLives=b;g.Kz("yt-player-memory",c,2592E3)};
   ME=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
   NE=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
   OE=function(a,b){return void 0===b||null===b?a:Number(b)};
   PE=function(a,b){return void 0===b||null===b?a:b.toString()};
   lna=function(a){if(!a)return null;var b=a.split("x");if(2!==b.length)return null;a=Number(b[0]);b=Number(b[1]);return isNaN(a)||isNaN(b)||0>=a*b?null:new g.cg(a,b)};
   QE=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(mna))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
   RE=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Cs("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
   oF=function(a,b,c){var d,e,f;g.I.call(this);var h=this;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Ge=this.Zb=this.Aa=this.ye=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.zd=NaN;this.Hb=!1;this.Ya=0;this.Gi=this.Pj=!1;this.Oj=!0;this.Di=this.wc=!1;this.Zi=null;this.bk=wy(4);a=a?g.pc(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new Uma(b?b.serializedExperimentIds:
   a.fexp,b?b.serializedExperimentFlags:a.fflags);this.Za=b?b.serializedForcedExperimentIds:PE("",a.forced_experiments)||void 0;this.cspNonce=(null===b||void 0===b?0:b.cspNonce)&&!this.N("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:PE("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(F){l=""}this.ac=l;this.ancestorOrigins=(l=window.location.ancestorOrigins)?Array.from(l):[];l=!this.N("web_player_context_config_embeds_fields_killswitch");
   this.i=ME(!1,b&&l?b.isEmbed:a.is_embed);b&&b.device?nna(this,b.device):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.N("wpcc_loader_url_killswitch")?this.loaderUrl=this.i||SE(this)&&b.loaderUrl?b.loaderUrl||"":this.ac:this.loaderUrl=this.i||SE(this)&&a.loaderUrl?PE("",a.loaderUrl):this.ac;this.N("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=PE("",a.embedsTokenValue));this.u=fA(this.loaderUrl,ona);this.jl=Gja(this.loaderUrl);
   this.La=ME(!1,a.privembed);this.protocol=0===this.ac.indexOf("http:")?"http":"https";this.Ea=gA((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||gA(this.ac)||this.protocol+"://www.youtube.com/";this.Ka=pna(this,b?b.eventLabel:a.el);Xu();var m=null,n=b?b.playerStyle:a.ps,p=g.wb(qna,n);!n||p&&!this.u||(m=n);this.playerStyle=m;this.K=(this.D=g.wb(qna,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.ek=!this.K;this.ma=ME(!1,a.disableplaybackui);this.disableSeek=ME(!1,null===
   b||void 0===b?void 0:b.disableSeek);this.kc=this.N("variable_playback_rate")?!0:vD().defaultPlaybackRate?TE||g.fu||UE?g.fj&&sr("20")||g.ej&&sr("4")||g.VE&&sr("11")||bu():!(g.VE&&!Tt("chrome")||TE||Tt("android")||Tt("silk")):!1;this.Xj=ME(!1,a.enable_faster_speeds);this.isMobile=ME("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.dk=rna(this);this.qb="3"===this.controlsType||this.isMobile||ME(!1,a.use_media_volume);this.Y=AD();this.ul=g.WE;this.Mi=ME(!1,b&&l?b.embedOptOutDeprecation:
   a.opt_out_deprecation);this.pfpChazalUi=(this.Pf=!(!b||!b.embedsEnablePfpImaIntegration||this.N("embeds_pfp_ima_integration_killswitch")))||ME(!1,(b&&l?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.N("embeds_pfp_chazal_ui_killswitch"));var q;b?void 0!==b.hideInfo&&(q=!b.hideInfo):q=a.showinfo;this.Mj=g.XE(this)&&!this.Mi||ME(!YE(this)&&!ZE(this)&&!this.D,q);this.Oi=b?!!b.mobileIphoneSupportsInlinePlayback:ME(!1,a.playsinline);q=this.isMobile&&$E&&null!=aF&&0<aF&&2.3>=aF;m=b?b.useNativeControls:a.use_native_controls;
   this.C=(this.N("embeds_enable_mobile_custom_controls")||!1===m&&!this.N("embeds_use_native_controls_killswitch"))&&g.XE(this)&&this.isMobile;n=this.isMobile&&!this.C;m=bF(this)||!q&&ME(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.qd=this.isMobile;this.color=NE("red",b&&l?b.progressBarColor:a.color,sna);this.ql="3"===this.controlsType||ME(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.eb=!this.i;this.Nj=(m=!this.eb&&!ZE(this)&&
   !this.K&&!this.D&&!YE(this))&&!this.ql&&"1"===this.controlsType;this.Db=g.cF(this)&&m&&"0"===this.controlsType&&!this.Nj;this.xl=this.rl=q;this.Vi=dF&&!g.Ic(601)?!1:!0;this.Zj=this.i||!1;this.Fc=ZE(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=PE("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.u||ME(!0,t);q=!0;b&&b.disableMdxCast&&(q=!1);this.hf=this.N("enable_cast_for_web_unplugged")&&g.eF(this)&&
   q||this.N("enable_cast_on_music_web")&&g.fF(this)&&q||t&&q&&"1"===this.controlsType&&!this.isMobile&&(ZE(this)||g.cF(this)||g.gF(this))&&!g.hF(this);this.wl=yD()||zD();t=b?!!b.supportsAutoplayOverride:ME(!1,a.autoplayoverride);this.Zg=!this.isMobile&&!Tt("nintendo wiiu")&&!Tt("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:ME(!1,a.mutedautoplay);q=this.N("embeds_enable_muted_autoplay")&&g.XE(this);this.dd=t&&q&&this.Y&&!bF(this);t=(ZE(this)||YE(this))&&"blazer"===this.playerStyle;this.Qf=b?!!b.disableFullscreen:
   !ME(!0,a.fs);this.Ua=!this.Qf&&(t||g.gy());this.Kh=this.N("uniplayer_block_pip")&&(Ut()&&sr(58)&&!gu()||du);t=g.XE(this)&&!this.Mi;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.zb=t||ME(!this.D,u);this.Ui=ME(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=gu()&&0<aF&&4.4>=aF?"_top":"_blank";this.cd=g.gF(this);this.Wg=ME("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":u="bl";break;case "gmail":u="gm";
   break;case "books":u="gb";break;case "docs":u="gd";break;case "duo":u="gu";break;case "google-live":u="gl";break;case "google-one":u="go";break;case "play":u="gp";break;case "chat":u="hc";break;case "hangouts-meet":u="hm";break;case "photos-edu":case "picasaweb":u="pw";break;default:u="yt"}this.ya=u;this.Z=PE("",b&&l?b.authorizedUserIndex:a.authuser);this.Ei=g.XE(this)&&(this.La||this.N("embeds_web_enable_hiding_login_buttons")&&(!Qt()||gu()||eu())||this.N("embeds_web_enable_always_hiding_login_buttons"));
   var x;b?void 0!==b.disableWatchLater&&(x=!b.disableWatchLater):x=a.showwatchlater;this.Qj=((u=!this.Ei)||!!this.Z&&u)&&ME(!this.K,this.u?x:void 0);this.Ye=b?!!b.disableKeyboardControls:ME(!1,a.disablekb);this.loop=ME(!1,a.loop);this.pageId=PE("",!this.N("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.vl=ME(!0,a.canplaylive);this.kb=ME(!1,a.livemonitor);this.disableSharing=ME(this.D,b?b.disableSharing:a.ss);this.Wi=lna(b&&this.N("fill_video_container_size_override_from_wpcc")?
   b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:ME(!1,a.mute);this.storeUserVolume=!this.mute&&ME("0"!==this.controlsType,b&&!this.N("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);x=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:NE(void 0,x,iF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":PE("",a.cc_lang_pref);x=NE(2,b&&l?b.captionsLanguageLoadPolicy:
   a.cc_load_policy,iF);"3"===this.controlsType&&2===x&&(x=3);this.Ra=x;this.Nd=b?b.hl||"en_US":PE("en_US",a.hl);this.region=b?b.contentRegion||"US":PE("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":PE("en",a.host_language);this.Sj=!this.La&&Math.random()<g.rE(this.experiments,"web_player_api_logging_fraction");this.Ja=!this.La;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:ME(!0,a.deviceHasDisplay);this.zd=OE(this.zd,a.ismb);this.Yi=tna(this,a);jF(this,a,!0);this.S=
   new zE;g.J(this,this.S);this.Og=una(this,a,b);this.Si=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new wE(this.experiments,this.N("html5_force_hfr_support")?!0:kF(this)||Yt()||Zt()||vna(this),g.ej&&g.Ic(56)||g.fj&&g.Ic(54)||vna(this));this.schedule=new dna(hna(g.lF(this),this.zd,this.experiments));this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:ME(!1,a.enable_safety_mode);x=this.ma?!1:ZE(this)&&"blazer"!==this.playerStyle;var y;b&&
   l?null!=b.disableAutonav&&(y=!b.disableAutonav):y=a.allow_autonav;this.Mb=ME(x,!this.K&&y);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:ME(!1,a.send_visitor_id_header);this.jb=(0,g.Q)();var z;"docs"===this.playerStyle&&(b&&l?z=b.disableNativeContextMenu:z=a.disable_native_context_menu);this.disableNativeContextMenu=ME(!1,z);this.Yj=kF(this)&&this.N("enable_skip_intro_button");this.embedConfig=PE("",b&&l?b.serializedEmbedConfig:a.embed_config);this.Kg=ME(!1,a.full_window);this.vb=!g.eF(this)&&
   !mF(this)&&!g.hF(this)&&!0;this.livingRoomAppMode=NE("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,wna);this.transparentBackground=b?!!b.transparentBackground:ME(!1,a.transparent_background);this.useFastSizingOnWatchDefault=ME(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:ME(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:
   ME(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:ME(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=ME(!1,a.showbackbutton);this.Oj=null!==(f=a.show_loop_video_toggle)&&void 0!==f?f:!0;this.ol=1E-4>Math.random();this.Tc=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new bna(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.N("fill_is_tectonic_from_wpcc_killswitch")?
   !!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.uc=new jna;g.J(this,this.uc);this.Di=ME(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.ll=g.P("LOGGED_IN",!1);this.Rj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.Jh=0;if(this.N("html5_generate_session_po_token")){a=g.lF(this)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo";try{this.dh=eca({qm:a});this.dh.ready().then(function(){nF(h)});
   var G=g.rE(this.experiments,"html5_session_po_token_interval_time_ms");0<G&&(this.Ug=vt(function(){nF(h)},G))}catch(F){F instanceof Error&&g.My(F)}}if(this.N("html5_onesie")||this.N("html5_host_selector"))this.Bi=new Xma};
   jF=function(a,b,c){c=void 0===c?!1:c;a.Zb=PE(a.Zb,b.video_id);a.Aa=PE(a.Aa,b.eventid);a.Aa&&(vy=a.Aa);for(var d=[],e=g.r(Object.keys(xna)),f=e.next();!f.done;f=e.next()){f=xna[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.ol&&(d.sort(),g.My(new g.dw("Player client parameters changed after startup",d)));a.userAge=OE(a.userAge,b.user_age);a.userDisplayImage=PE(a.userDisplayImage,b.user_display_image);g.iA(a.userDisplayImage)||(a.userDisplayImage=
   "");a.userDisplayName=PE(a.userDisplayName,b.user_display_name);a.ye=PE(a.ye,b.user_gender);a.csiPageType=PE(a.csiPageType,b.csi_page_type);a.csiServiceName=PE(a.csiServiceName,b.csi_service_name);a.Wg=ME(a.Wg,b.enablecsi);a.pageId=PE(a.pageId,b.pageid);if(b=b.enabled_engage_types)a.enabledEngageTypes=new Set(b.split(","))};
   pna=function(a,b){var c="detailpage";"adunit"===b?c=a.i?"embedded":"detailpage":"embedded"===b||a.u?c=NE(c,b,yna):b&&(c="embedded");return c};
   una=function(a,b,c){var d=c?c.innertubeApiKey:PE("",b.innertube_api_key),e=c?c.innertubeApiVersion:PE("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:PE("",b.innertube_context_client_version);return{innertubeApiKey:g.P("INNERTUBE_API_KEY",void 0)||d,innertubeApiVersion:g.P("INNERTUBE_API_VERSION",void 0)||e,SK:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),TK:a.deviceParams.c,innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,VK:a.hostLanguage,UK:a.region,
   WK:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",YK:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),XK:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
   pF=function(a,b){return!a.D&&Ut()&&sr(55)&&"3"===a.controlsType&&!b};
   g.qF=function(a){a=zna(a.Ea);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
   g.rF=function(a){return g.hF(a)?"music.youtube.com":g.qF(a)};
   sF=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
   tF=function(a){return ZE(a)&&!g.eF(a)};
   bF=function(a){return dF&&!a.Oi||Tt("nintendo wiiu")||Tt("nintendo 3ds")?!0:!1};
   g.hF=function(a){return"music-embed"===a.playerStyle};
   g.lF=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
   Ana=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
   SE=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
   vna=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
   g.uF=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
   kF=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
   g.vF=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
   mF=function(a){return"WEB_KIDS"===a.deviceParams.c};
   g.eF=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
   wF=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
   g.xF=function(a){return g.eF(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||wF(a)};
   g.fF=function(a){return"WEB_REMIX"===a.deviceParams.c};
   g.yF=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
   g.zF=function(a){return g.vF(a)&&a.N("web_player_i_see_captions")};
   AF=function(a){return a.N("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.vF(a)};
   rna=function(a){if(a.isMobile)return!a.D;var b=Number(Date.now()/1E3),c=g.Iv.getInstance();return a.N("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
   g.CF=function(a){return(a.deviceHasDisplay&&g.ej&&!du&&"3"!==a.controlsType?g.fu?a.i&&g.Ic(51):!0:!1)||(a.deviceHasDisplay&&g.fj&&!du&&"3"!==a.controlsType?g.fu?a.i&&g.Ic(48):g.Ic(38):!1)||(a.deviceHasDisplay&&g.VE&&!du&&"3"!==a.controlsType?g.fu?a.i&&g.Ic(37):g.Ic(27):!1)||a.deviceHasDisplay&&g.BF&&!cu()&&g.Ic(11)||a.deviceHasDisplay&&g.gj&&g.Ic("604.4")};
   Bna=function(a){if(g.cF(a)&&$E)return!1;if(g.fj){if(!g.Ic(47)||!g.Ic(52)&&g.Ic(51))return!1}else if(g.gj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
   ZE=function(a){return"detailpage"===a.Ka};
   g.cF=function(a){return"embedded"===a.Ka};
   DF=function(a){return"leanback"===a.Ka};
   YE=function(a){return"adunit"===a.Ka||"gvn"===a.playerStyle};
   g.gF=function(a){return"profilepage"===a.Ka};
   g.XE=function(a){return a.i&&g.cF(a)&&!YE(a)&&!a.D};
   tna=function(a,b){if(g.jE(a.experiments,"html5_qoe_intercept"))return g.jE(a.experiments,"html5_qoe_intercept");a.ek?(b=b.vss_host||"s.youtube.com",a.N("www_for_videostats")&&"s.youtube.com"===b&&(b=zna(a.Ea)||"www.youtube.com")):b="video.google.com";return b};
   EF=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.My(new g.dw("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
   g.FF=function(a){var b=g.rF(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&Cna.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
   nna=function(a,b){b.brand&&(a.deviceParams.cbrand=b.brand);b.browser&&(a.deviceParams.cbr=b.browser);b.browserVersion&&(a.deviceParams.cbrver=b.browserVersion);a.deviceParams.c=b.interfaceName||"WEB";a.deviceParams.cver=b.interfaceVersion||"html5";b.interfaceTheme&&(a.deviceParams.ctheme=b.interfaceTheme);a.deviceParams.cplayer=b.interfacePlayerType||"UNIPLAYER";b.model&&(a.deviceParams.cmodel=b.model);b.network&&(a.deviceParams.cnetwork=b.network);b.os&&(a.deviceParams.cos=b.os);b.osVersion&&(a.deviceParams.cosver=
   b.osVersion);b.platform&&(a.deviceParams.cplatform=b.platform)};
   nF=function(a){var b;g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){if(!e.N("html5_generate_session_po_token")||null===(b=e.dh)||void 0===b||!b.isReady())return m.return();f=g.P("VISITOR_DATA",void 0);h=e.ll?e.datasyncId:f;l=e.dh.Tz({yJ:h});e.Tg=g.Mc(l,2);g.sa(m)})})};
   zna=function(a){var b=g.ii(a);return(a=Number(g.hi(4,a))||null)?b+":"+a:b};
   GF=function(a){this.i=a};
   HF=function(a,b,c){if(c)return Jt();var d={};c=vD();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.mf().mimeType)){var f=e.i.video.quality;if(!d[f]||d[f].mf().ue())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Qb(kD,function(l){(l=d[l])&&h.push(l)});
   return h.length?Kt(h):Jt()};
   Dna=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.i=""};
   Ena=function(a,b){a.B.some(function(c){var d;return(null===(d=c.Ac)||void 0===d?void 0:d.getId())===b});
   a.i=b};
   IF=function(a,b,c){a.cpn&&(b=g.ti(b,{cpn:a.cpn}));c&&(b=g.ti(b,{aba:c}));return b};
   Fna=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
   Gna=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)};
   Hna=function(a){var b;this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;this.u=(null===(b=a.audioItag)||void 0===b?void 0:b.split(","))||[];this.Ft=a.Ft;this.Bd=a.Bd||"";this.Ac=a.Ac;this.audioChannels=a.audioChannels;this.i=""};
   Ina=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.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
   m=m?m[1]:"";f.audio_track_id&&(h=new tD(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new Hna({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,Ft:n?l[n]:void 0,Bd:f.drm_families,Ac:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e};
   JF=function(a,b,c){this.i=a;this.B=b;this.expiration=c;this.u=null};
   Jna=function(a,b){if(!(du||au()||Xt()))return null;a=Ina(b,a.N("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.Ac&&(f=h.Ac.getId(),c[f]||(h=new bB(f,h.Ac),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
   Ona=function(a,b,c,d,e,f,h){if(!(du||au()||Xt()))return Jt();var l=[],m=Kna(c),n=Ina(c,a.N("html5_filter_fmp4_in_hls"),a.B.C,l);if(!n)return h("noplst"),Jt();Lna(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],u=[],x=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new Hna({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ac:new tD("English","en",!1)}):null;for(var z=g.r(Object.keys(n)),G=z.next();!G.done;G=z.next())if(G=G.value,!a.N("html5_disable_drm_hfr_1080")||
   "383"!==G&&"373"!==G){G=g.r(n[G]);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.width){for(var C=g.r(F.u),K=C.next();!K.done;K=C.next())if(K=K.value,n[K]){F.i=K;break}F.i||(F.i=Mna(n,F));if(C=n[F.i])if(c.push(F),"fairplay"===F.Bd&&(q=p),K="","PQ"===F.Ft?K="smpte2084":"HLG"===F.Ft&&(K="arib-std-b67"),K&&(y=K),u.push(Nna(C,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,K)),!x||F.width*F.height*F.fps>x.width*x.height*x.fps)x=F}else t.push(F)}else l.push(G),l.push("disdrmhfr");u.reduce(function(S,
   L){return L.mf().isEncrypted()&&S},!0)&&(q=p);
   e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.N("html5_native_audio_track_switching");u.push(Nna(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));l.length&&h(l.join("."));return HF(a.B,u,pF(a,b))};
   Nna=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){for(var x=0,y="",z=g.r(a),G=z.next();!G.done;G=z.next())G=G.value,y||(y=G.itag),G.audioChannels&&G.audioChannels>x&&(x=G.audioChannels,y=G.itag);e=new nD(e,"application/x-mpegURL",{audio:new hD(0,x,null,y),video:new jD(f,h,l,null,void 0,n,void 0,t),Bd:q});a=new Dna(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new JF(e,a,m)};
   Kna=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};
   Mna=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.Bd===b.Bd&&!e.audioChannels)return d}return""};
   Lna=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]};
   KF=function(a,b){this.i=a;this.u=b};
   Pna=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.uB(h.url,!0);if(h.s){var l=h.sp,m=Bka(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=Sla(h.type,h.quality,h.itag,h.width,h.height);e.push(new KF(h,f))}}return HF(a.B,e,pF(a,b))};
   LF=function(a,b){this.i=a;this.u=b};
   Qna=function(a){var b=[];g.Qb(a,function(c){if(c&&c.url){var d=Sla(c.type,"medium","0");b.push(new LF(d,c.url))}});
   return b};
   Rna=function(a,b,c){c=Qna(c);return HF(a.B,c,pF(a,b))};
   MF=function(a,b){this.type=a||"";this.id=b||""};
   g.NF=function(a){return new MF(a.substr(0,2),a.substr(2))};
   OF=function(a,b){for(var c={},d=g.r(Object.keys(Sna)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.iA(f)&&(c[Sna[e]]=f)}return c};
   PF=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(Tna)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Tna[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Una(h.url);g.iA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Una(a.url),g.iA(a)&&(b["maxresdefault.jpg"]=a));return b};
   Una=function(a){return a.startsWith("//")?"https:"+a:a};
   g.QF=function(a,b){var c;this.u=a;this.author="";this.fv=null;this.playlistLength=0;this.i=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Ks(a,"&");this.i=(null===(c=b.thumbnail_ids)||void 0===c?void 0:c.split(",")[0])||null;this.Z=OF(b,"playlist_");this.videoId=b.video_id||void 0;if(a=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new MF("UU","PLAYER_"+a)).toString();
   break;default:var d=b.playlist_length;d&&(this.playlistLength=Number(d)||0);this.playlistId=g.NF(a).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
   g.RF=function(a,b){this.i=a;this.Nm=this.author="";this.fv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Zp=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.zl=b.aria_label||void 0;this.author=b.author||"";this.Nm=b.Nm||"";if(a=b.endscreen_autoplay_session_data)this.fv=Ks(a,"&");this.hv=b.hv;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.Zp=b.Zp||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Ks(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=OF(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
   Vna=function(){var a=g.Ga("ytDebugData.callbacks");a||(a={},g.Fa("ytDebugData.callbacks",a,void 0));return a};
   TF=function(){void 0===SF&&(SF=g.Kr());return SF};
   UF=function(){var a=TF();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
   Wna=function(a){var b=TF();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
   VF=function(a){return UF()[a]||0};
   WF=function(a,b){var c=UF();b!==c[a]&&(0!==b?c[a]=b:delete c[a],Wna(c))};
   Xna=function(a){var b=UF();b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):2!==b[c]&&(b[c]=4);Object.assign(b,a);Wna(b);JSON.stringify(b);return b};
   Yna=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(hia())})})};
   g.XF=function(a){return g.H(this,function c(){return g.B(c,function(d){return d.return(Ww(Zna(),a))})})};
   $na=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,g.ex(),2);if(3!=f.i)return(d=f.u)?g.A(f,(0,g.XF)(d),3):f.return();e=f.u;return f.return(Dw(e,["index","media","captions"],{mode:"readwrite",Hc:!0},function(h){var l=IDBKeyRange.bound(a+"|",a+"~");h=[h.objectStore("index").delete(l),h.objectStore("media").delete(l),h.objectStore("captions").delete(l)];return pw.all(h).then(function(){})}))})})};
   coa=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.A(e,g.ex(),2);if(3!=e.i){c=e.u;if(!c)throw g.nw("rvdfd");return g.A(e,(0,g.XF)(c),3)}d=e.u;return e.return(Dw(d,["index","media"],{mode:"readwrite",Hc:!0},function(f){var h={};return Kw(f.objectStore("index"),{},function(l){var m,n=l.getKey().match(/^([\w\-_]+)\|(a|v)$/),p=pw.resolve(void 0);if(n){var q=n[1];n=n[2];h[q]=h[q]||{};h[q][n]=aoa(null===(m=l.getValue())||void 0===m?void 0:m.fmts)}else p=l.delete().then(function(){});
   return pw.all([l.continue(),p]).then(function(t){return g.r(t).next().value})}).then(function(){for(var l={},m=g.r(Object.keys(h)),n=m.next();!n.done;n=m.next()){n=n.value;
   var p=h[n].v;l[n]=h[n].a&&p?1:2}var q=Xna(l);return Mw(f.objectStore("media"),{},function(t){var u=t.getKey().match(boa);u&&l[u[1]]||f.objectStore("media").delete(t.getKey());return t.continue()}).then(function(){return q})})}))})})};
   doa=function(a,b){return g.H(this,function d(){var e,f;return g.B(d,function(h){if(1==h.i)return g.A(h,g.ex(),2);if(3!=h.i){e=h.u;if(!e)throw g.nw("wct");return g.A(h,(0,g.XF)(e),3)}f=h.u;return g.A(h,Dw(f,["captions"],{mode:"readwrite",Hc:!0},function(l){var m=[];l=l.objectStore("captions");for(var n=0;n<b.length;n++){var p=Fw(l,b[n],a+"|"+b[n].metadata.vss_id);m.push(p)}return pw.all(m)}),0)})})};
   eoa=function(a){return g.H(this,function c(){var d,e,f;return g.B(c,function(h){if(1==h.i)return d=IDBKeyRange.bound(a+"|",a+"~"),g.A(h,g.ex(),2);if(3!=h.i){e=h.u;if(!e)throw g.nw("gactfv");return g.A(h,(0,g.XF)(e),3)}f=h.u;return h.return(Sha(f,d))})})};
   ZF=function(a,b,c,d,e,f,h){return g.H(this,function m(){var n,p,q,t,u,x;return g.B(m,function(y){switch(y.i){case 1:return n=VF(a),4===n?y.return(4):g.A(y,g.ex(),2);case 2:p=y.u;if(!p)throw g.nw("wiac");if(!h||void 0===f){y.fb(3);break}return g.A(y,foa(h,f),4);case 4:f=y.u;case 3:return q=c.lastModified||"0",g.A(y,(0,g.XF)(p),5);case 5:return t=y.u,ua(y,6),YF++,g.A(y,Dw(t,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Hc:!0},function(z){if(void 0!==e&&void 0!==f){var G=""+a+"|"+
   b.id+"|"+q+"|"+String(e).padStart(10,"0");G=Fw(z.objectStore("media"),f,G)}else G=pw.resolve(void 0);var F=goa(a,b.isVideo()),C=goa(a,!b.isVideo()),K={fmts:hoa(d),format:c||{}};F=Fw(z.objectStore("index"),K,F);var S=-1===d.downloadedEndTime;z=S?z.objectStore("index").get(C):pw.resolve(void 0);return pw.all([z,G,F]).then(function(L){L=g.r(L).next().value;YF--;var W=VF(a);4!==W&&S&&void 0!==L&&aoa(L.fmts)&&(W=1,WF(a,W));return W})}),8);
   case 8:return y.return(y.u);case 6:u=wa(y);YF--;x=VF(a);if(4===x)return y.return(x);WF(a,4);throw u;}})})};
   ioa=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,g.ex(),2);if(3!=f.i){d=f.u;if(!d)throw g.nw("ri");return g.A(f,(0,g.XF)(d),3)}e=f.u;return f.return(Dw(e,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(h){var l=IDBKeyRange.bound(a+"|",a+"~");return Ew(h.objectStore("index"),l).then(function(m){return m.map(function(n){return n?n.format:{}})})}))})})};
   koa=function(a,b,c,d,e){return g.H(this,function h(){var l,m,n;return g.B(h,function(p){if(1==p.i)return g.A(p,g.ex(),2);if(3!=p.i){l=p.u;if(!l)throw g.nw("rc");return g.A(p,(0,g.XF)(l),3)}m=p.u;n=Dw(m,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(q){var t=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return q.objectStore("media").get(t)});
   return e?p.return(n.then(function(q){return joa(e,q)})):p.return(n)})})};
   loa=function(a){return g.H(this,function c(){return g.B(c,function(d){WF(a,0);return d.return($na(a))})})};
   moa=function(){return g.H(this,function b(){return g.B(b,function(c){var d=TF();d&&d.remove("yt-player-lv");return g.A(c,Zna().delete(),0)})})};
   aoa=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
   goa=function(a,b){return""+a+"|"+(b?"v":"a")};
   hoa=function(a){var b={};return Ls((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
   noa=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(boa)?(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};
   ooa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=BE(a.ustreamerConfig))};
   g.$F=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.i=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
   g.bG=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.aG(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.i,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
   g.cG=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
   g.aG=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("")};
   soa=function(a,b,c,d){a||(a=b&&poa.hasOwnProperty(b)&&qoa.hasOwnProperty(b)?qoa[b]+"_"+poa[b]:void 0);b=a;if(!b)return null;a=b.match(roa);if(!a||5!==a.length)return null;if(a=b.match(roa)){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};
   uoa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return toa[a];return null};
   dG=function(a){return a&&a.baseUrl||""};
   eG=function(a){a=g.Os(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};
   voa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Aa=b)};
   xoa=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=woa(d.baseUrl);if(!e)return;d=new g.$F({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.sA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.xC=b.audioTracks||[];a.VM=b.defaultAudioTrackIndex||0;a.yC=b.translationLanguages?g.ym(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.sA(f.languageName)}}):
   [];
   a.Ro=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
   yoa=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=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},g.Ms(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,Kj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Kj: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,
   Kj:0===f?5:7})}}};
   zoa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
   Aoa=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)};
   Goa=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=a.cipher||a.signatureCipher)?
   (c=g.Ms(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=Boa[c]);(c=a.projectionType)&&(b.projection_type=Coa[c]);(c=a.stereoLayout)&&(b.stereo_layout=Doa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=Eoa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(fG[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=uoa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=Foa[a])&&(b.primaries=a);return g.ri(b)};
   gG=function(a){g.R.call(this);this.i=null;this.B=new Or;this.i=null;this.K=new Set;this.D=a||""};
   Hoa=function(a,b,c){for(c=hG(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.iG(d,b)))return d;c--}return g.iG(a.levels[0],b)};
   Joa=function(a,b,c){c=hG(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),Nr(d.B,f,{yL:f,ML:e}))}Ioa(a)};
   Ioa=function(a){if(!a.i&&!a.B.isEmpty()){var b=a.B.remove();a.i=Koa(a,b)}};
   Koa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.yL].Xd(b.ML);c.onload=function(){var d=b.yL,e=b.ML;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);Ioa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.LD()-1);e=[e,d];a.ea("l",e[0],e[1])};
   return c};
   g.jG=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.B=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.i=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d};
   g.iG=function(a,b){b>=a.QB()&&a.Wt();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Wt()+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.Xd(c),column:b,columns:h,row:e,rows:d,Vz:a.width*h,Uz:a.height*d}};
   kG=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;gG.call(this,c);this.isLive=d;this.S=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
   Loa=function(a,b,c){return(a=a.levels[b])?a.Hx(c):-1};
   hG=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};
   lG=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.jG.call(this,a,b,c,0);this.u=null;this.J=d?2:0};
   mG=function(a,b,c,d){kG.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].CH(c)};
   Moa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.ti(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
   oG=function(a,b){g.R.call(this);this.C=a;this.adModule=!1;this.adaptiveFormats="";this.kL=this.wl=this.adQueryId=this.vl=null;this.yu={start:NaN,end:NaN};this.zl="";this.Bd=null;this.OC=this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ra="";this.wC=this.xl=!1;this.iH=null;this.Mi=this.Ye=this.Oi=this.wG=!1;this.K=null;this.nL=this.Kg=!1;this.ye=NaN;this.Jh=!1;this.vu=0;this.dJ=!1;this.Kq={};this.lC=this.cycToken=null;this.author="";this.pu=0;this.Oj=
   !1;this.ou=null;this.pC=[];this.ip=this.sN=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.ac=this.Zb="";this.contentCheckOk=!1;this.endSeconds=this.Mb=0;this.aK=this.Fc=this.u=null;this.xE="";this.Ea=!1;this.Nj=this.Mj=0;this.Cu=this.pipable=this.Fk=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.kb=this.isPrivate=this.isListed=this.VE=this.LK=this.mutedAutoplay=this.Nk=!1;this.aH="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=
   this.isLiveDefaultBroadcast=this.JF=this.Zi=this.bf=!1;this.latencyClass="UNKNOWN";this.JE=this.enableServerStitchedDai=this.Qd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Db=0;this.reloadReason="";this.LF=this.hH=this.hf=!1;this.keywords={};this.zb="";this.Qj=0;this.No=!1;this.liveChunkReadahead=NaN;this.Wg=null;this.ll=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.oi=[];this.ya=[];this.racyCheckOk=!1;
   this.hI={};this.Xw=0;this.B=null;this.autonavState=1;this.ZI=null;this.shortDescription="";this.qb=this.JB=!1;this.Mo=this.kc=this.startSeconds=0;this.Sq=this.YL=this.Tq=nG;this.suggestions=null;this.rl=this.ul=void 0;this.Ei=null;this.jC=!1;this.expandedSubtitle=this.Xp=this.subtitle=this.title="";this.tp=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.zC=void 0;this.ql=[];this.hlsFormats=this.Gi="";this.Fq=this.Lo=this.Qf=this.Hb=this.Za=this.Sj=this.tq=null;this.Uh="vvt";this.Tc=!1;
   this.sC=null;this.lL="";this.ek=NaN;this.rr=this.Xq=this.bk=this.Wq=this.Vq=this.Si=this.Zj=this.qr=this.dk=this.lr="";this.Ui=null;this.KI=!1;this.S={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.JO=this.HO=NaN;this.zd=this.Pj=this.dd=this.fH=this.KO=!1;this.Tj=!0;this.Z={};this.captionTracks=[];this.xC=[];this.VM=0;this.yC=[];this.Ro=!1;this.Vi=new bB("und",new tD("Default","und",!0));this.PG=0;this.J=null;this.Zg=[];this.yD=!1;this.cd=[];this.IL=!1;this.Uq=this.uc="";this.slotPosition=
   -1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.oO=this.Lq=this.Wi=this.og=this.kD=this.Au=this.xu=null;this.yp=!1;this.ma=null;this.isInlinePlaybackNoAd=this.Og=this.useCobaltWidevine=this.MI=this.Rp=this.Y=!1;this.yI=this.AI=NaN;this.defraggedFromSubfragments=this.Bk=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.tu=this.rC=this.Ge=!1;this.interstitials=[];this.D=this.BF=!1;this.Ua="";this.allowImaMonetization=!1;this.Rj=this.oH="";this.Gq=null;this.Cc=
   "";this.Ja=this.eH=!1;this.nH=this.Yj="";this.BB=this.dH=this.EE=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Xj=!1;this.Di=this.Pf=!0;this.errorDetail=this.userGenderAge="";this.mC=this.nC=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.ji=this.errorReason=this.errorCode=null;this.Uo=this.So="";this.Lp=!1;this.jl=[];
   this.LI=this.FI=this.CI=this.wg=this.xe=0;this.fetchType=null;this.iI=!0;this.MJ=void 0;this.xL=-1;this.Kh=this.wc=!1;this.qd=null;this.vb="";this.Ug=!1;this.watchUrl=null;this.N("web_player_ux_module_wait")&&this.C.vb&&this.ya.push("ux");this.wc=this.N("web_new_autonav_countdown");this.Kh=this.N("web_new_big_thumbnail_endscreen");Noa(this,b)};
   g.rG=function(a,b,c,d){b&&b.cpn&&g.My(new g.dw("CPN provided in VideoData update",{Zaa:b.cpn,Sf:a.clientPlaybackNonce,Oaa:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.ji=null);c?(RE(b),Noa(a,b),pG(a)&&qG(a)):(b=b||{},Ooa(a,b),Poa(a,b),Qoa(a,b),a.ea("dataupdated"))};
   Qoa=function(a,b){a.fflags=PE(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ra=jA(c));a.xl=ME(a.xl,b.iv_ads_only);a.wC=ME(a.wC,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.rX=c;a.isPharma=ME(a.isPharma,b.is_pharma);a.author=PE(a.author,b.author);a.Zb=woa(b.ttsurl)||a.Zb;a.Oj=ME(a.Oj,b.cc_asr);a.ac=PE(a.ac,b.channel_path);a.channelBanner=PE(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.Ph=PE(a.Ph,c);a.videoCountText=PE(a.videoCountText,b.video_count_text);a.autonavState=
   NE(a.autonavState,b.autonav_state,Roa);a.clientPlaybackNonce=PE(a.clientPlaybackNonce,b.cpn);a.subscribed=ME(a.subscribed,b.subscribed);a.rawViewCount=OE(a.rawViewCount,b.view_count);a.shortViewCount=PE(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=PE(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=PE(a.lengthText||"",b.lengthText);a.Zp=PE(a.Zp||"",b.Zp);a.Nm=PE(a.Nm||"",b.Nm);a.title=PE(a.title,b.title);a.subtitle=PE(a.subtitle,b.subtitle);a.Xp=PE(a.Xp,b.expanded_title);
   a.expandedSubtitle=PE(a.expandedSubtitle,b.expanded_subtitle);a.zl=PE(a.zl,b.aria_label);a.ypcPreview=PE(a.ypcPreview,b.ypc_preview);a.tC=PE(a.tC,b.ypc_origin);a.Tc=ME(a.Tc,b.ypc_is_premiere_trailer);a.Yj=PE(a.Yj,b.ypc_clickwrap_message);a.paygated=ME(a.paygated,b.paygated);a.KI=ME(a.KI,b.requires_purchase);a.showShareButton=!ME(!a.showShareButton,b.ss);a.Pf=ME(a.Pf,b.showwatchlater);a.Di=ME(a.Di,b.shownotifybutton);a.Xj=ME(a.Xj,b.copy_share);if(c=b.keywords)a.keywords=Soa(c.split(","));if(c=b.rvs)a.suggestions=
   Ns(c).map(function(d){return d.playlist||d.list||d.api?new g.QF(a.C,d):new g.RF(a.C,d)});
   a.contentCheckOk=ME(a.contentCheckOk,b.cco);a.racyCheckOk=ME(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=ME(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=PE(a.oauthToken,b.oauth_token);a.zb=PE(a.zb,b.kpt);a.visitorData=PE(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=Ks(c,"&");a.Vp=PE(a.Vp,b.endscreen_ad_tracking_data);a.uK=ME(a.uK,b.wait_for_vast_info_cards_xml);a.KB=ME(a.KB,b.suppress_creator_endscreen);a.gH=ME(a.gH,b.is_trueview_action);a.qJ=PE(a.qJ,b.tracking_list);
   a.So=PE(a.So,b.clip);a.Uo=PE(a.Uo,b.clipt);Toa(a,b)};
   Noa=function(a,b){var c,d,e,f;b=b||{};var h=b.errordetail;null!=h&&(a.errorDetail=h);var l=b.errorcode;null!=l?a.errorCode=l:"fail"==b.status&&(a.errorCode="150");var m=b.reason;null!=m&&(a.errorReason=m);var n=b.subreason;null!=n&&(a.ji=n);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||yy());a.kb=ME(a.C.kb,b.livemonitor);Ooa(a,b);var p=b.raw_player_response;if(!p){var q=b.player_response;q&&(p=JSON.parse(q))}p&&(a.playerResponse=p);if(a.playerResponse){var t=a.playerResponse.annotations;if(t)for(var u=
   g.r(t),x=u.next();!x.done;x=u.next()){var y=x.value.playerAnnotationsUrlsRenderer;if(y){y.adsOnly&&(a.xl=!0);y.allowInPlaceSwitch&&(a.wC=!0);var z=y.loadPolicy;z&&(a.annotationsLoadPolicy=Uoa[z]);var G=y.invideoUrl;G&&(a.Ra=jA(G));a.wG=!0;break}}var F=a.playerResponse.attestation;F&&voa(a,F);var C=a.playerResponse.cotn;C&&(a.cotn=C);var K=a.playerResponse.heartbeatParams;if(K){var S,L=K.heartbeatToken;L&&(a.drmSessionId=K.drmSessionId||"",a.heartbeatToken=L,a.HO=Number(K.intervalMilliseconds),a.JO=
   Number(K.maxRetries),a.KO=!!K.softFailOnError,a.fH=!!K.useInnertubeHeartbeatsForDrm,a.Oi=!0);a.heartbeatServerData=K.heartbeatServerData;a.N("heartbeat_iff_heartbeat_params_filled")&&(a.Oi=!0);a.Jh=!(null===(S=K.heartbeatAttestationConfig)||void 0===S||!S.requiresAttestation)}var W=a.playerResponse.messages;W&&zoa(a,W);var pa=a.playerResponse.multicamera;if(pa){var ta=pa.playerLegacyMulticameraRenderer;if(ta){var rb=ta.metadataList;rb&&(a.nH=rb,a.cd=Ns(rb))}}var ob=a.playerResponse.overlay;if(ob){var Ib=
   ob.playerControlsOverlayRenderer;if(Ib){var sc=Ib.controlBgHtml;null!=sc?(a.Ua=sc,a.D=!0):(a.Ua="",a.D=!1);if(Ib.mutedAutoplay){var dd=Ib.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(dd&&dd.endScreen){var We=dd.endScreen.playerMutedAutoplayEndScreenRenderer;We&&We.text&&(a.oH=g.sA(We.text))}}else a.mutedAutoplay=!1}}var $b=a.playerResponse.playabilityStatus;if($b){var zk=$b.backgroundability;zk&&zk.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Vi=$b.offlineability;Vi&&
   Vi.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var Wi=$b.contextParams;Wi&&(a.contextParams=Wi);var Xi=$b.pictureInPicture;Xi&&Xi.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);$b.playableInEmbed&&(a.allowEmbed=!0);var kb=$b.ypcClickwrap;if(kb){var sb=kb.playerLegacyDesktopYpcClickwrapRenderer,hc=kb.ypcRentalActivationRenderer;if(sb)a.Yj=sb.durationMessage||"",a.Mi=!0;else if(hc){var Ld=hc.durationMessage;a.Yj=Ld?g.sA(Ld):"";a.Mi=!0}}var Nb=$b.errorScreen;if(Nb){if(Nb.playerLegacyDesktopYpcTrailerRenderer){var Oc=
   Nb.playerLegacyDesktopYpcTrailerRenderer;a.rr=Oc.trailerVideoId||"";var gp=Nb.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var um=gp&&gp.ypcTrailerRenderer}else if(Nb.playerLegacyDesktopYpcOfferRenderer)Oc=Nb.playerLegacyDesktopYpcOfferRenderer;else if(Nb.ypcTrailerRenderer){um=Nb.ypcTrailerRenderer;var Xs=um.fullVideoMessage;a.Zj=Xs?g.sA(Xs):""}Oc&&(a.bk=Oc.itemTitle||"",Oc.itemUrl&&(a.Xq=Oc.itemUrl),Oc.itemBuyUrl&&(a.Vq=Oc.itemBuyUrl),a.Wq=Oc.itemThumbnail||"",a.qr=Oc.offerHeadline||"",a.dk=
   Oc.offerDescription||"",a.Si=Oc.offerId||"",a.lr=Oc.offerButtonText||"",a.sC=Oc.offerButtonFormattedText||null,a.ek=Oc.overlayDurationMsec||NaN,a.Zj=Oc.fullVideoMessage||"",a.Ye=!0);if(um){var vm=um.unserializedPlayerResponse;if(vm)a.Ui={raw_player_response:vm};else{var Uy=um.playerVars;a.Ui=Uy?g.Ms(Uy):null}a.Ye=!0}}}var If=a.playerResponse.playbackTracking;if(If){var Ys=b,Vy=dG(If.googleRemarketingUrl);Vy&&(a.googleRemarketingUrl=Vy);var Wy=dG(If.youtubeRemarketingUrl);Wy&&(a.youtubeRemarketingUrl=
   Wy);var Xy=dG(If.ptrackingUrl);if(Xy){var Ak=eG(Xy),Yy=Ak.oid;Yy&&(a.qH=Yy);var hp=Ak.pltype;hp&&(a.fI=hp);var Zy=Ak.ptchn;Zy&&(a.pH=Zy);var $y=Ak.ptk;$y&&(a.Jq=encodeURIComponent($y));var Th=Ak.m;Th&&(a.Up=Th)}var az=dG(If.ppvRemarketingUrl);az&&(a.ppvRemarketingUrl=az);var Zs=dG(If.qoeUrl);if(Zs){for(var Yi=g.Os(Zs),eH=g.r(Object.keys(Yi)),bz=eH.next();!bz.done;bz=eH.next()){var $s=bz.value,at=Yi[$s];Yi[$s]=Array.isArray(at)?at.join(","):at}a.CX=Yi;var cz=Yi.cat;cz&&(a.Rj=cz);var bt=Yi.live;bt&&
   (a.aH=bt);var ip=Yi.drm_product;ip&&(a.OC=ip)}var Zi=dG(If.remarketingUrl);if(Zi){a.remarketingUrl=Zi;var ic=eG(Zi);ic.foc_id&&(a.S.focEnabled=!0);var Wg=ic.data;Wg&&(a.S.rmktEnabled=!0,Wg.engaged&&(a.S.engaged="1"));a.S.baseUrl=ji(Zi)+fi(g.hi(5,Zi))}var ct=dG(If.videostatsPlaybackUrl);if(ct){var ed=eG(ct);a.MS=ed;var dt=ed.adformat;if(dt&&(Ys.adformat=dt,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var dz=a.V(),ez=soa(dt,a.Uq,dz.i,dz.u);ez&&(a.adFormat=ez)}var et=ed.aqi;et&&
   (Ys.ad_query_id=et);var wm=ed.autoplay;wm&&(a.Nk="1"==wm);var fz=ed.autonav;fz&&(a.Fk="1"==fz);var gz=ed.delay;gz&&(a.Mb=kg(gz));var hz=ed.ei;hz&&(a.eventId=hz);"adunit"===ed.el&&(a.Nk=!0);var ft=ed.feature;ft&&(a.JI=ft);var gt=ed.list;gt&&(a.playlistId=gt);var Bk=ed.of;Bk&&(a.SW=Bk);var ht=ed.osid;ht&&(a.osid=ht);var iz=ed.referrer;iz&&(a.referrer=iz);var jz=ed.sdetail;jz&&(a.HI=jz);var kz=ed.sourceid;kz&&(a.zba=kz);var lz=ed.ssrt;lz&&(a.uu="1"==lz);var Xe=ed.subscribed;Xe&&(a.subscribed="1"==Xe,
   a.S.subscribed=Xe);var it=ed.uga;it&&(a.userGenderAge=it);var fH=ed.upt;fH&&(a.cX=fH);var jt=ed.vm;jt&&(a.videoMetadata=jt)}var kt=dG(If.videostatsWatchtimeUrl);if(kt){var Md=eG(kt).ald;Md&&(a.LS=Md)}if(If.promotedPlaybackTracking){var Ye=If.promotedPlaybackTracking;Ye.startUrls&&(a.Mq=Ye.startUrls);Ye.firstQuartileUrls&&(a.EB=Ye.firstQuartileUrls);Ye.secondQuartileUrls&&(a.FB=Ye.secondQuartileUrls);Ye.thirdQuartileUrls&&(a.HB=Ye.thirdQuartileUrls);Ye.completeUrls&&(a.DB=Ye.completeUrls);Ye.engagedViewUrls&&
   (1<Ye.engagedViewUrls.length&&g.My(new g.dw("There are more than one engaged_view_urls.")),a.dh=Ye.engagedViewUrls[0])}}var mz=a.playerResponse.playerAds;if(mz)for(var nz=b,oz=g.r(mz),jp=oz.next();!jp.done;jp=oz.next()){var pz=jp.value;if(pz){var qz=pz.playerLegacyDesktopWatchAdsRenderer;if(qz){var Ck=qz.playerAdParams;if(Ck){"1"==Ck.autoplay&&(a.Nk=!0);a.wl=Ck.encodedAdSafetyReason||null;void 0!==Ck.showContentThumbnail&&(a.Tj=!!Ck.showContentThumbnail);nz.enabled_engage_types=Ck.enabledEngageTypes;
   break}}}}var qe=a.playerResponse.playerConfig;if(qe){var Dk=qe.manifestlessWindowedLiveConfig;if(Dk){var lt=Number(Dk.minDvrSequence),$i=Number(Dk.maxDvrSequence),rz=Number(Dk.minDvrMediaTimeMs),mt=Number(Dk.maxDvrMediaTimeMs),sz=Number(Dk.startWalltimeMs);lt&&(a.xe=lt);rz&&(a.FI=rz/1E3);$i&&(a.wg=$i);mt&&(a.CI=mt/1E3);sz&&(a.LI=sz/1E3)}var kp=qe.daiConfig;if(kp){if(kp.enableDai){a.Qd=!0;var tz=kp.enableServerStitchedDai;tz&&(a.enableServerStitchedDai=tz)}"DAI_TYPE_SS_DISABLED"===kp.daiType&&(a.JE=
   !0)}var lp=qe.audioConfig;if(lp){var uz=lp.loudnessDb;null!=uz&&(a.ye=uz);lp.audioMuted&&(a.Kg=!0);lp.muteOnStart&&(a.nL=!0)}var vz=qe.playbackEndConfig;if(vz){var wz=vz.endSeconds;wz&&a.mutedAutoplay&&(a.endSeconds=wz)}var xm=qe.fairPlayConfig;if(xm){var mp=xm.certificate;mp&&(a.Fc=BE(mp));var xz=Number(xm.keyRotationPeriodMs);0<xz&&(a.jT=xz);var yz=Number(xm.keyPrefetchMarginMs);0<yz&&(a.XS=yz)}var aj=qe.playbackStartConfig;if(aj){a.BB=Number(aj.startSeconds);var zz=aj.liveUtcStartSeconds,rT=!1;
   a.N("html5_start_seconds_priority")&&(rT=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);zz&&!rT&&(a.liveUtcStartSeconds=Number(zz));var sT=aj.startPosition;if(sT){var uda=sT.utcTimeMillis;uda&&!rT&&(a.liveUtcStartSeconds=.001*Number(uda));var vda=sT.streamTimeMillis;vda&&(a.Mo=.001*Number(vda))}a.progressBarStartPosition=aj.progressBarStartPosition;a.progressBarEndPosition=aj.progressBarEndPosition}else{var tT=qe.skippableSegmentsConfig;if(tT){var wda=tT.introSkipDurationMs;wda&&(a.EE=Number(wda)/
   1E3);var xda=tT.outroSkipDurationMs;xda&&(a.dH=Number(xda)/1E3)}}var uT=qe.skippableIntroConfig;if(uT){var yda=Number(uT.startMs),zda=Number(uT.endMs);isNaN(yda)||isNaN(zda)||(a.AI=yda,a.yI=zda)}var Ada=qe.streamSelectionConfig;Ada&&(a.Nj=Number(Ada.maxBitrate));var Bda=qe.vrConfig;Bda&&(a.Rp="1"==Bda.partialSpherical);var Az=qe.webDrmConfig;if(Az){Az.skipWidevine&&(a.MI=!0);var Cda=Az.widevineServiceCert;Cda&&(a.aK=BE(Cda));Az.useCobaltWidevine&&(a.useCobaltWidevine=!0);Az.startWithNoQualityConstraint&&
   (a.Og=!0)}var Dda=qe.mediaCommonConfig;if(Dda){var gH=Dda.dynamicReadaheadConfig;gH&&(a.maxReadAheadMediaTimeMs=gH.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=gH.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=gH.readAheadGrowthRateMs||NaN)}}var Ek=a.playerResponse.streamingData;if(Ek){var Eda=Ek.adaptiveFormats;if(Eda){for(var Fda=[],Gda=g.r(Eda),Uh=Gda.next();!Uh.done;Uh=Gda.next()){var hH=Uh.value;Fda.push(Goa(hH));var Hda=hH.loudnessDb;hH.itag&&null!=Hda&&(a.Kq[hH.itag.toString()]=
   Hda)}a.adaptiveFormats=Fda.join(",")}var vT=Ek.formats;if(vT){var Bz=[],Ida=g.r(vT);for(Uh=Ida.next();!Uh.done;Uh=Ida.next()){var wT=Uh.value;Bz.push(wT.itag+"/"+wT.width+"x"+wT.height)}a.xE=Bz.join(",");Bz=[];var Jda=g.r(vT);for(Uh=Jda.next();!Uh.done;Uh=Jda.next()){var nt=Uh.value,Cz={itag:nt.itag,type:nt.mimeType,quality:nt.quality},Kda=nt.url;Kda&&(Cz.url=Kda);var Lda=nt.cipher||nt.signatureCipher;if(Lda){var xT=g.Ms(Lda);Cz.sp=xT.sp;Cz.s=xT.s;Cz.url=xT.url}Bz.push(g.ri(Cz))}a.Gi=Bz.join(",")}var yT=
   Ek.hlsFormats;if(yT){var Mda=qe||null,iH={};if(Mda){var zT=Mda.audioPairingConfig;if(zT&&zT.pairs)for(var Nda=g.r(zT.pairs),AT=Nda.next();!AT.done;AT=Nda.next()){var Oda=AT.value,BT=Oda.videoItag;iH[BT]||(iH[BT]=[]);iH[BT].push(Oda.audioItag)}}for(var Pda={},Qda=g.r(yT),np=Qda.next();!np.done;np=Qda.next()){var Rda=np.value;Pda[Rda.itag]=Rda.bitrate}var Sda=[],Tda=g.r(yT);for(np=Tda.next();!np.done;np=Tda.next()){var Jf=np.value,bj={itag:Jf.itag,type:Jf.mimeType,url:Jf.url,bitrate:Jf.bitrate,width:Jf.width,
   height:Jf.height,fps:Jf.fps},jH=Jf.audioTrack;if(jH){var Uda=jH.displayName;Uda&&(bj.name=Uda,bj.audio_track_id=jH.id,jH.audioIsDefault&&(bj.is_default="1"))}if(Jf.drmFamilies){for(var Vda=[],Wda=g.r(Jf.drmFamilies),CT=Wda.next();!CT.done;CT=Wda.next())Vda.push(fG[CT.value]);bj.drm_families=Vda.join(",")}var kH=iH[Jf.itag];if(kH&&kH.length){bj.audio_itag=kH.join(",");var Xda=Pda[kH[0]];Xda&&(bj.bitrate+=Xda)}var Yda=uoa(Jf);Yda&&(bj.eotf=Yda);Jf.audioChannels&&(bj.audio_channels=Jf.audioChannels);
   Sda.push(g.ri(bj))}a.hlsFormats=Sda.join(",")}var DT=Ek.licenseInfos;if(DT&&0<DT.length){for(var Zda={},$da=g.r(DT),ET=$da.next();!ET.done;ET=$da.next()){var aea=ET.value,bea=aea.drmFamily,cea=aea.url;bea&&cea&&(Zda[fG[bea]]=cea)}a.Bd=Zda}var dea=Ek.drmParams;dea&&(a.drmParams=dea);var eea=Ek.dashManifestUrl;eea&&(a.eb=g.ti(eea,{cpn:a.clientPlaybackNonce}));var fea=Ek.hlsManifestUrl;fea&&(a.hlsvp=fea);var gea=Ek.probeUrl;gea&&(a.probeUrl=jA(g.ti(gea,{cpn:a.clientPlaybackNonce})))}var hea=a.playerResponse.trackingParams;
   hea&&(a.Ya=hea);var zc=a.playerResponse.videoDetails;if(zc){var cj=b,FT=zc.videoId;FT&&(a.videoId=FT,cj.video_id||(cj.video_id=FT));var iea=zc.channelId;iea&&(a.S.uid=iea.substr(2));var GT=zc.title;GT&&(a.title=GT,cj.title||(cj.title=GT));var HT=zc.lengthSeconds;HT&&(a.lengthSeconds=Number(HT),cj.length_seconds||(cj.length_seconds=HT));var jea=zc.keywords;jea&&(a.keywords=Soa(jea));var IT=zc.channelId;IT&&(a.Ri=IT,cj.ucid||(cj.ucid=IT));var kea=zc.viewCount;kea&&(a.rawViewCount=Number(kea));var JT=
   zc.author;JT&&(a.author=JT,cj.author||(cj.author=JT));var lea=zc.shortDescription;lea&&(a.shortDescription=lea);var mea=zc.isCrawlable;mea&&(a.isListed=mea);var nea=zc.musicVideoType;nea&&(a.musicVideoType=nea);var KT=zc.isLive;null!=KT&&(a.isLivePlayback=KT);if(KT||zc.isUpcoming)a.isPremiere=!zc.isLiveContent;var oea=zc.thumbnail;oea&&(a.Z=PF(oea));var pea=qe||null,LT=b;zc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);zc.isUpcoming&&(a.isUpcoming=!0);if(zc.isPostLiveDvr)a.bf=!0;else{var MT=
   !1;if(a.kb)a.allowLiveDvr=sG(!0),a.isLivePlayback=!0;else if(zc.isLive){LT.livestream="1";a.allowLiveDvr=sG(!!zc.isLiveDvrEnabled);a.Ka=27;zc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var qea=zc.latencyClass;qea&&(a.latencyClass=Voa[qea]||"UNKNOWN");var rea=zc.liveChunkReadahead;rea&&(a.liveChunkReadahead=rea);var Dz=pea&&pea.livePlayerConfig;if(Dz){Dz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Dz.hasSubfragmentedWebm&&(a.Bk=!0);Dz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=
   !0);var sea=Dz.liveExperimentalContentId;sea&&(a.liveExperimentalContentId=Number(sea))}MT=!0}else zc.isUpcoming&&(MT=!0);MT&&(a.isLivePlayback=!0,LT.adformat&&"8"!==LT.adformat.split("_")[1]||a.ya.push("heartbeat"),a.N("heartbeat_iff_heartbeat_params_filled")||(a.Oi=!0))}var tea=zc.isPrivate;tea&&(a.isPrivate=ME(a.isPrivate,tea))}if($b){var uea=zc||null,vea=!1,ot=$b.errorScreen;vea=ot&&(ot.playerLegacyDesktopYpcOfferRenderer||ot.playerLegacyDesktopYpcTrailerRenderer||ot.ypcTrailerRenderer)?!0:uea&&
   uea.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes($b.status);if(!vea){a.errorCode="150";var lH=ot&&ot.playerErrorMessageRenderer;if(lH){a.playerErrorMessageRenderer=lH;var wea=lH.reason;wea&&(a.errorReason=g.sA(wea));var OT=lH.subreason;OT&&(a.ji=g.sA(OT),a.mq=OT)}else a.errorReason=$b.reason||null;var PT=$b.status;if("LOGIN_REQUIRED"===PT)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===PT)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===PT){var xea=$b.errorScreen,yea=
   xea&&xea.playerKavRenderer;a.errorDetail=yea&&yea.kavUrl?"4":"3"}else a.errorDetail=$b.isBlockedInRestrictedMode?"5":"0"}}var zea=a.playerResponse.interstitialPods;zea&&yoa(a,zea);a.Ra&&a.eventId&&(a.Ra=Rs(a.Ra,{ei:a.eventId}));var QT=a.playerResponse.captions;QT&&QT.playerCaptionsTracklistRenderer&&xoa(a,QT.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.BB=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;
   a.accountLinkingConfig&&a.accountLinkingConfig.alsParam&&(a.rI=a.accountLinkingConfig.alsParam);a.N("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Aoa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}Poa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Aea=b.hlsdvr;null!=Aea&&(a.allowLiveDvr=sG("1"==Aea));a.adQueryId=
   b.ad_query_id||null;a.wl||(a.wl=b.encoded_ad_safety_reason||null);a.kL=b.agcid||null;a.xu=b.ad_id||null;a.Au=b.ad_sys||null;a.kD=b.encoded_ad_playback_context||null;a.Kg=ME(a.Kg,b.infringe||b.muted);a.authKey=b.authkey;a.tI=b.authuser;a.mutedAutoplay=ME(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.endSeconds=OE(a.endSeconds,a.dH||b.end||b.endSeconds);a.Ya=PE(a.Ya,b.itct);a.VE=ME(a.VE,b.noiba);a.JF=ME(a.JF,b.is_live_destination);a.isLivePlayback=ME(a.isLivePlayback,b.live_playback);
   a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=ME(a.isUpcoming,b.isUpcoming));a.bf=ME(a.bf,b.post_live_playback);a.isMdxPlayback=ME(a.isMdxPlayback,b.mdx);var mH=b.mdx_control_mode;mH&&(a.mdxControlMode="number"===typeof mH?mH:kg(mH));a.isInlinePlaybackNoAd=ME(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Db=OE(a.Db,b.reload_count);a.reloadReason=PE(a.reloadReason,b.reload_reason);a.Tj=ME(a.Tj,b.show_content_thumbnail);a.LF=ME(a.LF,b.utpsa);
   a.jC=ME(a.jC,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.lC=b.tkn||null;var Bea=OF(b);0<Object.keys(Bea).length&&(a.Z=Bea);a.La=PE(a.La,b.vvt);a.mdxEnvironment=PE(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.OX=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=PE(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?OE(0,b.index):OE(a.playlistIndex,b.index));a.qI=
   b.pyv_view_beacon_url;a.zI=b.pyv_quartile25_beacon_url;a.BI=b.pyv_quartile50_beacon_url;a.DI=b.pyv_quartile75_beacon_url;a.uI=b.pyv_quartile100_beacon_url;var Cea=b.remarketing_url;Cea&&(a.remarketingUrl=Cea);var Dea=b.ppv_remarketing_url;Dea&&(a.ppvRemarketingUrl=Dea);var Eea=b.session_data;!a.GI&&Eea&&(a.GI=Ks(Eea,"&").feature);a.isFling=1==OE(a.isFling?1:0,b.is_fling);a.vnd=OE(a.vnd,b.vnd);a.Tg=PE(a.Tg,b.force_ads_url);a.Bg=PE(a.Bg,b.ctrl);a.Hf=PE(a.Hf,b.ytr);a.El=b.ytrcc;a.II=b.ytrexp;a.IB=b.ytrext;
   a.uc=PE(a.uc,b.adformat);a.Uq=PE(a.Uq,b.attrib);a.slotPosition=OE(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.uu=ME(a.uu,b.ssrt);a.videoId=RE(b)||a.videoId;a.jb=PE(a.jb,b.vss_credentials_token);a.Uh=PE(a.Uh,b.vss_credentials_token_type);a.Ge=ME(a.Ge,b.audio_only);a.rC=ME(a.rC,b.aac_high);a.tu=ME(a.tu,b.prefer_low_quality_audio);a.Rj=PE(a.Rj,b.qoe_cat);a.Lp=ME(a.Lp,b.download_media);a.Ja=ME(a.Ja,b.prefer_gapless);a:{var RT=a.playerResponse;if(RT&&RT.adPlacements)for(var Fea=g.r(RT.adPlacements),
   ST=Fea.next();!ST.done;ST=Fea.next()){var nH=ST.value.adPlacementRenderer;if(null!=nH&&"AD_PLACEMENT_KIND_START"==(nH.config&&nH.config.adPlacementConfig&&nH.config.adPlacementConfig.kind)){var Gea=!0;break a}}Gea=!1}Gea&&(a.adModule=!0,a.ya.push("ad"));var Hea=b.adaptive_fmts;Hea&&(a.adaptiveFormats=Hea);var Iea=b.allow_embed;Iea&&(a.allowEmbed="1"==Iea);var Jea=b.backgroundable;Jea&&(a.backgroundable="1"==Jea);var Kea=b.autonav;Kea&&(a.Fk="1"==Kea);var Lea=b.autoplay;Lea&&(a.Nk="1"==Lea);var Mea=
   b.iv_load_policy;Mea&&(a.annotationsLoadPolicy=NE(a.annotationsLoadPolicy,Mea,iF));var Nea=b.cc_lang_pref;Nea&&(a.captionsLanguagePreference=PE(Nea,a.captionsLanguagePreference));var Oea=b.cc_load_policy;Oea&&(a.ou=NE(a.ou,Oea,iF));a.deviceCaptionsOn=null!==(c=b.device_captions_on)&&void 0!==c?c:void 0;a.nN=null!==(d=b.device_captions_lang_pref)&&void 0!==d?d:"";a.pC=null!==(e=b.viewer_selected_caption_langs)&&void 0!==e?e:[];var Pea=b.cached_load;Pea&&(a.ip=ME(a.ip,Pea));"0"==b.dash&&(a.sN=!0);var Qea=
   b.dashmpd;Qea&&(a.eb=g.ti(Qea,{cpn:a.clientPlaybackNonce}));var Rea=b.delay;Rea&&(a.Mb=kg(Rea));var Sea=a.dH||b.end;void 0!=Sea&&(a.clipEnd=OE(a.clipEnd,Sea));var Tea=b.fmt_list;Tea&&(a.xE=Tea);b.heartbeat_preroll&&a.ya.push("heartbeat");a.Mj=-Math.floor(10*Math.random());a.ll=-Math.floor(40*Math.random());var Uea=b.is_listed;Uea&&(a.isListed=ME(a.isListed,Uea));var Vea=b.is_private;Vea&&(a.isPrivate=ME(a.isPrivate,Vea));var Wea=b.is_dni;Wea&&(a.D=ME(a.D,Wea));var Xea=b.dni_color;Xea&&(a.Ua=PE(a.Ua,
   Xea));var Yea=b.pipable;Yea&&(a.pipable=ME(a.pipable,Yea));a.Cu=a.pipable&&a.C.wl;a.JB=a.Cu&&(!a.C.showMiniplayerButton||a.N("web_player_pip"));var Zea=b.paid_content_overlay_duration_ms;Zea&&(a.paidContentOverlayDurationMs=kg(Zea));var $ea=b.paid_content_overlay_text;$ea&&(a.paidContentOverlayText=$ea);var afa=b.url_encoded_fmt_stream_map;afa&&(a.Gi=afa);var bfa=b.hls_formats;bfa&&(a.hlsFormats=bfa);var cfa=b.hlsvp;cfa&&(a.hlsvp=cfa);var oH=b.length_seconds;oH&&(a.lengthSeconds="string"===typeof oH?
   kg(oH):oH);var pH=b.live_start_walltime;pH&&(a.bH="number"===typeof pH?pH:kg(pH));var qH=b.live_manifest_duration;qH&&(a.Wg="number"===typeof qH?qH:kg(qH));var dfa=b.player_params;dfa&&(a.playerParams=dfa);var efa=b.partnerid;efa&&(a.Ka=OE(a.Ka,efa));var ffa=b.probe_url;ffa&&(a.probeUrl=jA(g.ti(ffa,{cpn:a.clientPlaybackNonce})));var TT=b.pyv_billable_url;TT&&Ija(TT)&&(a.dh=TT);var UT=b.pyv_conv_url;UT&&Ija(UT)&&(a.sI=UT);Toa(a,b);0<a.startSeconds||(a.startSeconds=OE(a.startSeconds,a.BB||a.EE||b.start||
   b.startSeconds),a.kc=a.startSeconds);if(a.N("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var gfa=b.live_utc_start;if(null!=gfa)a.liveUtcStartSeconds=Number(gfa);else{var VT=a.startSeconds;VT&&isFinite(VT)&&1E9<VT&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var hfa=b.utc_start_millis;hfa&&(a.liveUtcStartSeconds=.001*Number(hfa))}}else{var ifa=b.live_utc_start;null!=ifa&&(a.liveUtcStartSeconds=Number(ifa));
   var jfa=b.utc_start_millis;jfa&&(a.liveUtcStartSeconds=.001*Number(jfa))}var kfa=b.stream_time_start_millis;kfa&&(a.Mo=.001*Number(kfa));var lfa=a.EE||b.start;void 0==lfa||"1"==b.resume||a.isLivePlayback||(a.clipStart=OE(a.clipStart,lfa));var mfa=b.url_encoded_third_party_media;mfa&&(a.Ei=Ns(mfa));var WT=b.ypc_offer_button_formatted_text;if(WT){var nfa=JSON.parse(WT);a.sC=null!=nfa?nfa:null;a.lL=WT}var ofa=b.ypc_offer_button_text;ofa&&(a.lr=ofa);var pfa=b.ypc_offer_description;pfa&&(a.dk=pfa);var qfa=
   b.ypc_offer_headline;qfa&&(a.qr=qfa);var rfa=b.ypc_full_video_message;rfa&&(a.Zj=rfa);var sfa=b.ypc_offer_id;sfa&&(a.Si=sfa);var tfa=b.ypc_buy_url;tfa&&(a.Vq=tfa);var ufa=b.ypc_item_thumbnail;ufa&&(a.Wq=ufa);var vfa=b.ypc_item_title;vfa&&(a.bk=vfa);var wfa=b.ypc_item_url;wfa&&(a.Xq=wfa);var xfa=b.ypc_vid;xfa&&(a.rr=xfa);b.ypc_overlay_timeout&&(a.ek=Number(b.ypc_overlay_timeout));var yfa=b.ypc_trailer_player_vars;yfa&&(a.Ui=g.Ms(yfa));var zfa=b.ypc_original_itct;zfa&&(a.TX=zfa);a.Ri=PE(a.Ri,b.ucid);
   b.baseUrl&&(a.S.baseUrl=b.baseUrl);b.uid&&(a.S.uid=b.uid);b.oeid&&(a.S.oeid=b.oeid);b.ieid&&(a.S.ieid=b.ieid);b.ppe&&(a.S.ppe=b.ppe);b.engaged&&(a.S.engaged=b.engaged);b.subscribed&&(a.S.subscribed=b.subscribed);a.S.focEnabled=ME(a.S.focEnabled,b.focEnabled);a.S.rmktEnabled=ME(a.S.rmktEnabled,b.rmktEnabled);a.Lo=b.storyboard_spec||null;a.Fq=b.live_storyboard_spec||null;a.iH=b.iv_endscreen_url||null;a.wG=ME(a.wG,b.iv3_module);a.Oi=ME(a.Oi,b.ypc_license_checker_module);a.Ye=ME(a.Ye,b.ypc_module);a.Mi=
   ME(a.Mi,b.ypc_clickwrap_module);a.Ye&&a.ya.push("ypc");a.Mi&&a.ya.push("ypc_clickwrap");a.hI={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};Qoa(a,b);var Afa=b.cotn;Afa&&(a.cotn=Afa);if(Woa(a))tG(a)&&(a.isLivePlayback&&a.eb&&(a.dd=!0),a.Fc&&(a.Pj=!0));else if(Xoa(a))a.dd=!0;else{var Efa=Yoa(a,a.adaptiveFormats);if(Efa){uG(a,Efa);var Ffa=!0}else Ffa=!1;!Ffa&&a.eb&&(a.dd=!0)}var ZT=b.adpings;ZT&&(a.vl=ZT?g.Ms(ZT):null);var Gfa=b.feature;Gfa&&(a.JI=Gfa);var Hfa=b.referrer;Hfa&&(a.referrer=Hfa);a.clientScreenNonce=PE(a.clientScreenNonce,b.csn);a.Xw=OE(a.Xw,b.root_ve_type);a.Qj=OE(a.Qj,b.kids_age_up_mode);
   void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.No=ME(a.No,b.upg_content_filter_mode);var Ifa=b.unplugged_location_info;Ifa&&(a.ma=Ifa);var Jfa=b.unplugged_partner_opt_out;Jfa&&(a.wu=PE("",Jfa));a.yp=ME(a.yp,b.disable_watch_next);a.Yi=PE(a.Yi,b.internal_ip_override);a.BF=!!b.is_yto_interstitial;(a.interstitials.length||a.BF)&&a.ya.push("yto");var Kfa=b.oi;Kfa&&(a.oi=Kfa);b.WA&&(a.WA=b.WA);a.vb=null!==(f=b.csi_timer)&&void 0!==f?f:"";a.Ug=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl)};
   Poa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F,C,K,S=b.raw_watch_next_response;if(!S){var L=b.watch_next_response;L&&(S=JSON.parse(L))}if(S){a.watchNextResponse=S;var W=a.watchNextResponse.contents;if(W){var pa=W.singleColumnWatchNextResults;if(pa){var ta=OE(0,b.autoplay_count);if(pa.autoplay&&pa.autoplay.autoplay&&!pa.playlist){var rb=pa.autoplay.autoplay.sets,ob={},Ib=new g.RF(a.C),sc=null;if(rb){for(var dd=g.r(rb),We=dd.next();!We.done;We=dd.next()){var $b=We.value.autoplayVideoRenderer;
   if($b&&$b.compactVideoRenderer){sc=$b.compactVideoRenderer;break}}var zk=rb[0].autoplayVideo;if(zk){var Vi=zk.clickTrackingParams;Vi&&(ob.itct=Vi);ob.autonav="1";ob.playnext=String(ta)}}else ob.feature="related-auto";if(sc){Ib.videoId=sc.videoId;var Wi=sc.shortBylineText;Wi&&(Ib.author=g.sA(Wi));var Xi=sc.title;Xi&&(Ib.title=g.sA(Xi))}Ib.fv=ob;a.suggestions=[Ib]}}var kb=W.twoColumnWatchNextResults}a.EW=!(null===(c=null===kb||void 0===kb?void 0:kb.autoplay)||void 0===c||!c.autoplay);var sb=a.watchNextResponse.playerOverlays;
   if(sb){var hc=sb.playerOverlayRenderer;if(hc){var Ld=hc.endScreen;if(Ld){var Nb=Ld.watchNextEndScreenRenderer;if(Nb)var Oc=Nb.results}var gp=hc.videoDetails;if(gp){var um=gp.embeddedPlayerOverlayVideoDetailsRenderer;var Xs=gp.musicEmbeddedPlayerOverlayVideoDetailsRenderer;Xs&&(a.wE=Xs.title,a.gE=Xs.byline);var vm=gp.playerOverlayVideoDetailsRenderer;vm&&(vm.title&&(b.title=g.sA(vm.title)),vm.subtitle&&(b.subtitle=g.sA(vm.subtitle)))}var Uy=hc.actions;if(Uy)for(var If=g.r(Uy),Ys=If.next();!Ys.done;Ys=
   If.next()){var Vy=Ys.value;Vy.likeButtonRenderer&&(a.likeButtonRenderer=Vy.likeButtonRenderer)}var Wy=null===(e=null===(d=hc.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(Wy)for(var Xy=g.r(Wy),Ak=Xy.next();!Ak.done;Ak=Xy.next()){var Yy=Ak.value;if(null===(h=null===(f=Yy.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||void 0===h?0:h.suggestedActionTimeRangeTrigger)a.suggestedAction=Yy.suggestedActionRenderer}var hp=null===
   (l=hc.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;hp&&(a.multiMarkersPlayerBarRenderer=null===(m=hp.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.zC=null===(p=null===(n=hp.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.RX=null===(q=hp.playerBarActionButton)||void 0===q?void 0:q.buttonRenderer);g.cF(a.C)&&(a.Pf=!!hc.addToMenu);Zoa(a,hc.shareButton);var Zy=hc.productsInVideoOverlayRenderer;Zy&&(a.shoppingOverlayRenderer=
   Zy.shoppingOverlayRenderer);var $y=hc.autoplay;if($y)var Th=$y.playerOverlayAutoplayRenderer;a.progressBarStartPosition=hc.startPosition;a.progressBarEndPosition=hc.endPosition}}if(!Oc&&kb){var az=kb.endScreen&&kb.endScreen.endScreen;az&&(Oc=az.results)}if(kb){var Zs=kb.desktopOverlay&&kb.desktopOverlay.desktopOverlayConfigRenderer;Zs&&(Zs.suppressShareButton&&(a.showShareButton=!1),Zs.suppressWatchLaterButton&&(a.Pf=!1))}um&&$oa(a,b,um);var Yi=OE(0,b.autoplay_count);if(Oc){for(var eH=kb||null,bz=
   Th||null,$s=[],at=!0,cz=g.r(Oc),bt=cz.next();!bt.done;bt=cz.next()){var ip=bt.value,Zi=void 0,ic=null;if(ip.endScreenVideoRenderer){var Wg=ip.endScreenVideoRenderer,ct=Wg.title;ic=new g.RF(a.C);ic.videoId=Wg.videoId;ic.lengthSeconds=Wg.lengthInSeconds||0;var ed=Wg.publishedTimeText;ed&&(ic.publishedTimeText=g.sA(ed));var dt=Wg.shortBylineText;dt&&(ic.author=g.sA(dt));var dz=Wg.shortViewCountText;dz&&(ic.shortViewCount=g.sA(dz));if(ct){ic.title=g.sA(ct);var ez=ct.accessibility;if(ez){var et=ez.accessibilityData;
   et&&et.label&&(ic.zl=et.label)}}var wm=Wg.navigationEndpoint;if(wm){Zi=wm.clickTrackingParams;var fz=wm.watchEndpoint;fz?ic.hv=fz:wm.urlEndpoint&&(ic.watchUrl=wm.urlEndpoint.url)}var gz=Wg.thumbnailOverlays;if(gz)for(var hz=g.r(gz),ft=hz.next();!ft.done;ft=hz.next()){var gt=ft.value.thumbnailOverlayTimeStatusRenderer;if(gt)if("LIVE"===gt.style){ic.isLivePlayback=!0;break}else if("UPCOMING"===gt.style){ic.isUpcoming=!0;break}}ic.Z=PF(Wg.thumbnail)}else if(ip.endScreenPlaylistRenderer){var Bk=ip.endScreenPlaylistRenderer,
   ht=Bk.navigationEndpoint;if(!ht)continue;var iz=ht.watchEndpoint;if(!iz)continue;var jz=iz.videoId;ic=new g.QF(a.C);ic.playlistId=Bk.playlistId;ic.playlistLength=Number(Bk.videoCount)||0;ic.i=jz||null;ic.videoId=jz;var kz=Bk.title;kz&&(ic.title=g.sA(kz));var lz=Bk.shortBylineText;lz&&(ic.author=g.sA(lz));Zi=ht.clickTrackingParams;ic.Z=PF(Bk.thumbnail)}ic&&(Zi&&(ic.sessionData={itct:Zi}),at?(apa(ic,eH,bz,Yi),$s.splice(0,0,ic),at=!1):$s.push(ic))}a.suggestions=$s}if(Th){a.iI=!!Th.preferImmediateRedirect;
   a.wc=a.wc||!!Th.webShowNewAutonavCountdown;a.Kh=a.Kh||!!Th.webShowBigThumbnailEndscreen;if(a.wc||a.Kh){var Xe=Th,it=Oc||null,fH=kb||null,jt,kt,Md=new g.RF(a.C);Md.videoId=Xe.videoId;var Ye=null===(kt=null===(jt=null===it||void 0===it?void 0:it[0])||void 0===jt?void 0:jt.endScreenVideoRenderer)||void 0===kt?void 0:kt.navigationEndpoint;if(Ye){var mz=Ye.clickTrackingParams;mz&&(Md.sessionData={itct:mz})}var nz=Xe.videoTitle;if(nz){Md.title=g.sA(nz);var oz=nz.accessibility;if(oz){var jp=oz.accessibilityData;
   jp&&jp.label&&(Md.zl=jp.label)}}var pz=Xe.byline;pz&&(Md.author=g.sA(pz));var qz=Xe.publishedTimeText;qz&&(Md.publishedTimeText=g.sA(qz));var Ck=Xe.shortViewCountText;Ck&&(Md.shortViewCount=g.sA(Ck));var qe=Xe.thumbnailOverlays;if(qe)for(var Dk=g.r(qe),lt=Dk.next();!lt.done;lt=Dk.next()){var $i=lt.value.thumbnailOverlayTimeStatusRenderer;if($i)if("LIVE"===$i.style){Md.isLivePlayback=!0;break}else if("UPCOMING"===$i.style){Md.isUpcoming=!0;break}else if("DEFAULT"===$i.style&&$i.text){Md.lengthText=
   g.sA($i.text);var rz=$i.text.accessibility;if(rz){var mt=rz.accessibilityData;mt&&mt.label&&(Md.Zp=mt.label||"")}break}}Md.Z=PF(Xe.background);var sz=Xe.nextButton;if(sz){var kp=sz.buttonRenderer;if(kp){var tz=kp.navigationEndpoint;if(tz){var lp=tz.watchEndpoint;lp&&(Md.hv=lp)}}}if(Xe.topBadges){var uz=Xe.topBadges[0];if(uz){var vz=uz.metadataBadgeRenderer;vz&&"BADGE_STYLE_TYPE_PREMIUM"==vz.style&&(Md.WA=!0)}}var wz=Xe.alternativeTitle;wz&&(Md.Nm=g.sA(wz));apa(Md,fH,Xe,Yi);a.suggestions||(a.suggestions=
   []);a.suggestions[0]=Md}null!=Th.countDownSecs&&(a.xL=1E3*Th.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.Z=PF(a.watchNextResponse.currentVideoThumbnail));if(!a.N("player_parse_profile_picture_from_watch_next_killswitch")){var xm=null===(z=null===(y=null===(x=null===(u=null===(t=a.watchNextResponse)||void 0===t?void 0:t.contents)||void 0===u?void 0:u.twoColumnWatchNextResults)||void 0===x?void 0:x.results)||void 0===y?void 0:y.results)||void 0===z?void 0:z.contents;if(xm&&xm[1]){var mp=
   null===(K=null===(C=null===(F=null===(G=xm[1].videoSecondaryInfoRenderer)||void 0===G?void 0:G.owner)||void 0===F?void 0:F.videoOwnerRenderer)||void 0===C?void 0:C.thumbnail)||void 0===K?void 0:K.thumbnails;mp&&mp.length&&(a.Ph=mp[mp.length-1].url)}}var xz=a.watchNextResponse.onResponseReceivedEndpoints;if(xz)for(var yz=g.r(xz),aj=yz.next();!aj.done;aj=yz.next()){var zz=aj.value;zz.changeKeyedMarkersVisibilityCommand&&(a.cH=zz.changeKeyedMarkersVisibilityCommand)}}};
   vG=function(a){return!!(a.B&&a.B.videoInfos&&a.B.videoInfos.length)};
   xG=function(a){if(a.N("html5_single_format_policy")&&a.qd)return a.qd;var b=a.Ja,c=!!a.i&&(cma(a.i)||dma(a.i)||ema(a.i)),d=a.C,e=!!a.i&&a.i.tf,f=a.Jn(),h=a.rC;a.isAd();var l=a.isOtf(),m=a.HC(),n=a.kb,p=new Lma;if(a.Y||d.N("html5_logging_format_selection"))p.D=!0;d.N("html5_allow_chromecast_opus")&&(p.La=!0);p.Za=f;p.Ka=h&&d.u;Tt("windows nt 5.1")&&!g.fj&&(p.i=!0);if(f=c)f=d.N("disable_html5_ambisonic_audio")||!(g.CF(d)||d.N("html5_enable_spherical")||d.N("html5_enable_spherical3d"))?!1:Bna(d);f&&
   (p.Ya=!0);b&&(p.i=!0,p.Hb=!0);l&&!d.N("html5_otf_prefer_vp9")&&(p.i=!0);n&&(p.i=!0);oB(d.B,pB.CHANNELS)&&(d.N("html5_enable_aac51")&&(p.Ea=!0),d.N("html5_enable_ac3")&&(p.Y=!0),d.N("html5_enable_eac3")&&(p.ma=!0),d.N("html5_enable_ac3_gapless")&&(p.Ja=!0));d.N("html5_block_8k_hfr")&&(p.kb=!0);p.J=g.rE(d.experiments,"html5_max_selectable_quality_ordinal");p.K=g.rE(d.experiments,"html5_min_selectable_quality_ordinal");!d.N("html5_kaios_hd_killswitch")&&UE&&(p.zb=480);if(e||c)p.eb=!1;p.jb=!1;b=iE(d,
   p.u);0<b&&2160>b&&(ND()||d.N("html5_format_hybridization"))&&(p.u.supportsChangeType=+ND(),p.B=b);2160<=b&&(p.S=!0);Jma()&&(p.u.serveVp9OverAv1IfHigherRes=0,p.Mb=!1);p.HC=m;m=g.ax||hu()&&!m?!1:!0;p.Ua=m;p.Aa=d.N("html5_format_hybridization");p.Db=d.N("html5_offline_av1_fallback");p.ya=d.N("html5_disable_codec_on_errors_with_exp_backoff");p.qb=d.N("html5_disable_codec_on_platform_errors");p.vb=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");Xt()&&a.playerResponse&&a.playerResponse.playerConfig&&
   a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(p.Y=!0,p.ma=!0);a.N("html5_match_codecs_for_gapless")&&a.Ja&&a.isAd()&&(a.ul&&(p.Z=a.ul),a.rl&&(p.C=a.rl));p.Ra=a.isLivePlayback&&wG(a)&&a.C.N("html5_drm_live_audio_51");return a.qd=p};
   cpa=function(a){a.Fc||a.i&&qB(a.i);var b={};a.i&&(b=mB(xG(a),a.C.B,a.i,function(c){return a.ea("ctmp","fmtflt",c)},!0));
   b=new uE(b,a.C.experiments,a.MI,bpa(a),function(c,d){a.Ba(c,d)});
   g.J(a,b);a.Pj=!1;a.Ea=!0;Pma(b,function(c){for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Fc;e.K=a.jT;e.J=a.XS;break;case "widevine":e.B=a.aK}a.Zg=c;if(0<a.Zg.length&&(a.J=a.Zg[0],g.yG(a))){c=[];d=g.r(Object.entries(a.J.i));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.push(h+"_"+f)}a.Ba("drmProbe",c.join("."))}qG(a)})};
   Yoa=function(a,b){var c;(c=!b)||(c=!(!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.xF(a.C)&&g.lF(a.C)?0:!tG(a)&&a.adaptiveFormats));if(c)return null;zG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(mma=!0);c=AG(b);var d=Date.now();b=lma(c,a.Bd,a.lengthSeconds,a.isLivePlayback,a.bf,a.C);d=Date.now()-d;if(a.N("html5_log_manifest_performance")){var e=hma(b)?1:0;a.Ba("mfsp","wasm."+e+";t."+d)}0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=XD(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,
   isFinite(c)&&(a.Zi=!0)));if(c=b.isManifestless)c=!(a.N("html5_manifestless_vp9")||a.N("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!dpa(b));return c?(b.dispose(),null):b};
   tG=function(a){return Xt()?!BG(a):au()?!(!a.Fc||!a.N("html5_enable_safari_fairplay")):!1};
   BG=function(a){return zG(a,"html5_enable_tvos_dash_dogfood")||a.N("html5_enable_tvos_dash")&&(a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
   bpa=function(a){return a.useCobaltWidevine?Xt()?BG(a):!1:!1};
   dpa=function(a){return a.isManifestless&&xD('video/webm; codecs="vp9"')&&g.Zb(a.i,function(b){return oD(b.info)})};
   CG=function(a){return!(!a.i||!a.i.isManifestless)};
   epa=function(a){var b;return ZA()?a.N("html5_streaming_debug")||CG(a)&&("ULTRALOW"==a.latencyClass||21530001==DG(a))?!0:!window.AbortController&&!aB()||a.Ja?!1:a.N("html5_streaming_xhr")||a.N("html5_streaming_xhr_vod")&&!1===(null===(b=a.i)||void 0===b?void 0:b.tf)||a.N("html5_streaming_xhr_manifestless")&&CG(a)?!0:!1:!1};
   fpa=function(a){return zka({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Bk:a.Bk,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:CG(a),uG:epa(a)})};
   DG=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=cE(a.i)?21530001:a.liveExperimentalContentId};
   Woa=function(a){return Xt()&&BG(a)?!1:tG(a)&&g.xF(a.C)&&!a.isLivePlayback||!xE()||a.sN?!0:!1};
   hpa=function(a){a.Ea=!0;a.dd=!1;if(Xoa(a))ioa(a.videoId).then(function(d){gpa(a,d)}).then(function(){qG(a)});
   else{hA(a.eb)||g.My(new g.dw("DASH MPD Origin invalid: ",a.eb));var b=a.eb,c=g.rE(a.C.experiments,"dash_manifest_version")||4;b=g.ti(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.ti(b,{pacing:0}));uma(b,a.C.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||(uG(a,d,!0),TA("mrc",void 0,a.vb),qG(a))},function(d){a.isDisposed()||(a.Ea=!1,a.ea("dataloaderror",new g.KD("manifest.net.retryexhausted",!0,{backend:"manifest",
   rc:d.status})))});
   TA("mrs",void 0,a.vb)}};
   gpa=function(a,b){var c=b.map(function(e){return e.itag}),d=a.playerResponse.streamingData.adaptiveFormats.filter(function(e){return c.includes(e.itag)}).map(function(e){e=Object.assign({},e);
   e.url=b.find(function(f){return f.itag===e.itag}).url;
   e.signatureCipher="";return Goa(e)}).join(",");
   d=Yoa(a,d);uG(a,d);a.Ba("dlr","")};
   qG=function(a){a.isDisposed()||(a.Ea=!1,a.ea("dataloaded"))};
   uG=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.J(a,b);b.xe=a.xe;b.wg=a.wg;b.J=a.FI;b.D=a.CI;a.N("html5_start_walltime_min_seekable_killswitch")||(b.K=a.LI);ipa(a)&&a.ya.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Wg=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.Ba,a),c?b.subscribe("refresh",a.nM,a):b.subscribe("cuepointsadded",a.uJ,a));qB(b)&&(a.Pj=!0)};
   wG=function(a){return a.Bd?!0:!!a.i&&qB(a.i)};
   npa=function(a,b){if(a.isDisposed())return Jt();a.B=null;a.Za=null;a.Hb=null;var c=a.C.deviceParams.c;if(!a.N("disable_rqs")){c=/UNPLUGGED/.test(c)?256:16;var d=a.C.bk;a.Y=g.yG(a)||1==d[0]&&d[1]<c}return jpa(a,b).then(void 0,function(){return kpa(a,b)}).then(void 0,function(){return lpa(a)}).then(void 0,function(){return mpa(a)})};
   jpa=function(a,b){b=b||Woa(a);return a.i&&!b?(a.Jn()&&yma(a.i,a.isLivePlayback),zG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.C.B.u=!0),opa(a).then(function(){return yka(xG(a),a.C.B,a.i,a.J,function(c){return a.ea("ctmp","fmtflt",c)}).then(function(c){ppa(a,c);
   /^av/.test(a.clientPlaybackNonce)&&a.qd&&a.Ba("av1",g.JD(a.qd.u))})})):Jt()};
   opa=function(a){if(!(a.i&&a.i.i&&navigator.mediaCapabilities&&a.N("html5_blocking_media_capabilities")))return Kt();a=Object.values(a.i.i);return Promise.all(Array.from(a,function(b){return Rla(b.info)}))};
   kpa=function(a,b){var c,d,e,f,h;if(b&&a.hlsvp)return Jt();if(a.hlsFormats){b=AG(a.hlsFormats);if((null===(c=a.qd)||void 0===c?0:c.D)&&b){for(var l=[],m=g.r(b),n=m.next();!n.done;n=m.next())l.push(n.value.itag);a.Ba("hlsfmt",l.join("."))}a.tq=Jna(a.C,b);l=a.clientPlaybackNonce;return Ona(a.C,a.isAd(),b,null!==(h=null===(f=null===(e=null===(d=a.playerResponse)||void 0===d?void 0:d.captions)||void 0===e?void 0:e.playerCaptionsRenderer)||void 0===f?void 0:f.baseUrl)&&void 0!==h?h:null,a.Nj,l,function(p){return a.ea("ctmp",
   "hlsflt",p)}).then(function(p){for(var q,t,u,x,y=0,z=[],G=g.r(p),F=G.next();!F.done;F=G.next())F=F.value,z.push(null===(q=F.mf())||void 0===q?void 0:q.lc()),(null===(u=null===(t=F.mf())||void 0===t?void 0:t.audio)||void 0===u?void 0:u.numChannels)>y&&(y=F.mf().audio.numChannels);
   2<y&&a.Ba("hlschl",""+y);(null===(x=a.qd)||void 0===x?0:x.D)&&a.Ba("hlsfmtaf",z.join("."));EG(a,p)})}return Jt()};
   lpa=function(a){return a.Ei&&a.hH?Rna(a.C,a.isAd(),a.Ei).then(function(b){EG(a,b)}):Jt()};
   mpa=function(a){var b=AG(a.Gi,a.xE);if(a.hlsvp){var c=Moa(a.hlsvp,a.clientPlaybackNonce,a.Nj);b.push(c)}return Pna(a.C,a.isAd(),b,qpa(a)).then(function(d){EG(a,d)})};
   ppa=function(a,b){a.B=b;b=a.getAvailableAudioTracks();b=b.concat(a.Vi);for(var c=0;c<a.xC.length;c++)for(var d=a.xC[c],e=0;e<b.length;e++){var f=b[e],h=f.Ac.id==d.audioTrackId;if(f.Ac.isDefault&&c==a.VM||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.i=a.captionTracks[d.forcedCaptionTrackIndex]);
   f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.J&&a.B&&a.B.videoInfos&&!(0>=a.B.videoInfos.length)&&(b=rD(a.B.videoInfos[0]),b!=("fairplay"==a.J.flavor)))for(c=g.r(a.Zg),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.J=d;break}};
   EG=function(a,b){a.Hb=b;ppa(a,new jB(g.ym(a.Hb,function(c){return c.mf()})))};
   qpa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.C.deviceParams.c,cver:a.C.deviceParams.cver};a.Jq&&(b.ptk=a.Jq,b.oid=a.qH,b.ptchn=a.pH,b.pltype=a.fI,a.Up&&(b.m=a.Up));return b};
   g.FG=function(a){return tG(a)&&a.Fc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Bd||null};
   rpa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.sA(b.text):a.paidContentOverlayText};
   GG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?kg(b.durationMs):a.paidContentOverlayDurationMs};
   HG=function(a){var b="";if(a.aH)return a.aH;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
   g.IG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
   JG=function(a){return!!(a.eb||a.adaptiveFormats||a.Gi||a.Ei||a.hlsvp)};
   pG=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.wb(a.ya,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ea&&(JG(a)||g.wb(a.ya,"heartbeat")||b)};
   AG=function(a,b){a=Ns(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};
   Zoa=function(a,b){var c,d;a.showShareButton=!!b;var e=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command);e&&(a.Xj=!!e.copyTextEndpoint)};
   Ooa=function(a,b){var c,d,e,f,h,l,m=b.raw_embedded_player_response;if(!m){var n=b.embedded_player_response;n&&(m=JSON.parse(n))}m&&(a.og=m);if(a.og){if(m=a.og.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(b.user_display_name=m.userDisplayName),m.userDisplayImage&&(b.user_display_image=m.userDisplayImage);if(m=a.og.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Ua=n,a.D=!0):(a.Ua="",a.D=!1);if(n=m.defaultThumbnail)a.Z=PF(n),
   a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&$oa(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.wE=n.title,a.gE=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Pf=!!m.addToWatchLaterButton;Zoa(a,m.shareButton);if(n=null===(h=null===(f=null===(e=null===m||void 0===m?void 0:
   m.playButton)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.navigationEndpoint)||void 0===h?void 0:h.watchEndpoint){var p,q=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;q&&(a.Gq=new ooa(q));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=kg(m.videoDurationSeconds));a.N("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&Aoa(a,m.webPlayerActionsPorting);if(p=null===(l=
   null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){m=[];n=Number(p.currentIndex);if(p.contents){q=0;for(var t=p.contents.length;q<t;q++){var u=p.contents[q].playlistPanelVideoRenderer;if(u){var x=u.shortBylineText?g.sA(u.shortBylineText):"",y=u.title?g.sA(u.title):"";m.push({author:x,encrypted_id:u.videoId,title:y,channel_path:q===n?b.channel_path:"",profile_picture:q===n?b.profile_picture:"",is_private:q===n?a.isPrivate:!1,is_dni:q===n?a.D:!1,dni_color:q===n?a.Ua:
   ""})}}}b={index:p.currentIndex,list:p.playlistId,playlist_length:p.totalVideos,video:m};p.titleText&&(b.title=g.sA(p.titleText));p.shortBylineText&&(b.author=g.sA(p.shortBylineText));a.oO=b}}if(a.og.previewPlayabilityStatus){a.Lq=a.og.previewPlayabilityStatus;b=a.Lq;var z;if(!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){p=b.errorScreen;if(m=null===p||void 0===p?void 0:p.playerErrorMessageRenderer){a.VC=m;if(n=m.reason)a.errorReason=g.sA(n);if(m=m.subreason)a.ji=g.sA(m)}else a.errorReason=b.reason||
   null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":(null===(z=null===p||void 0===p?void 0:p.playerKavRenderer)||void 0===z?0:z.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.og.playabilityStatus&&(a.Wi=a.og.playabilityStatus,spa(a)&&(a.errorDetail="0",a.Wi&&((z=a.Wi.embeddedPlayerErrorMessageRenderer)?a.VC=z.embeddedPlayerErrorMessageRenderer:
   a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.Wi.reason||null))));(z=a.og.attestation)&&voa(a,z);(z=a.og.permissions)&&z.allowImaMonetization&&(a.allowImaMonetization=!0)}};
   apa=function(a,b,c,d){var e,f,h,l,m,n,p;d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){if(b=null===(l=null===(h=null===(f=null===(e=b.autoplay)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.sets)||void 0===h?void 0:h[0])||void 0===l?void 0:l.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.ZI=b}else c&&(b=null===(p=null===(n=null===(m=c.nextButton)||void 0===m?void 0:m.buttonRenderer)||void 0===n?void 0:n.navigationEndpoint)||void 0===p?void 0:
   p.clickTrackingParams)&&(d.itct=b);d.itct||(d.feature="related-auto");a.fv=d};
   $oa=function(a,b,c){var d,e,f,h=c.channelThumbnail;h&&(h=h.thumbnails)&&(h=h[0])&&(b.profile_picture=h.url);if(h=null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.channelThumbnailEndpoint)||void 0===d?void 0:d.channelThumbnailEndpoint)||void 0===e?void 0:e.urlEndpoint)||void 0===f?void 0:f.urlEndpoint)b.channel_path=h.url;if(h=c.collapsedRenderer)if(h=h.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var l=h.title;l&&(b.title=g.sA(l));if(h=h.subtitle)b.subtitle=g.sA(h)}if(c=c.expandedRenderer)if(c=
   c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(h=c.title)b.expanded_title=g.sA(h);if(h=c.subtitle)b.expanded_subtitle=g.sA(h);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Di=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.nC=b.toggledServiceEndpoint||null,a.mC=b.defaultServiceEndpoint||
   null):(a.nC=b.defaultServiceEndpoint||null,a.mC=b.toggledServiceEndpoint||null))}};
   g.KG=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
   LG=function(a){return a.isLivePlayback&&a.allowLiveDvr};
   tpa=function(a){var b=new bB("und",new tD("Default","und",!0));b.captionTracks=a.captionTracks;return b};
   g.MG=function(a){return!!a.i&&cma(a.i)};
   g.NG=function(a){return!!a.i&&dma(a.i)};
   ipa=function(a){return g.NG(a)||g.MG(a)||g.OG(a)||g.PG(a)};
   g.PG=function(a){return!!a.i&&ema(a.i)};
   g.OG=function(a){return!!a.i&&fma(a.i)};
   g.upa=function(a){if(a.KB)return null;var b=a.iH;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
   g.vpa=function(a){return a.KB?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
   g.QG=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
   g.RG=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};
   SG=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.C.Ka};
   TG=function(a){if(a.isAd()&&a.videoId!=a.C.Zb)return a.C.Zb};
   UG=function(a){return a.Nk||"detailpage"==SG(a)||"shortspage"==SG(a)||a.mutedAutoplay};
   VG=function(a){if(UG(a)){if("detailpage"==SG(a))return a.Fk||0<a.Db;if(!("17_8"===a.adFormat&&!a.Fk||a.N("embeds_enable_autoplayblocked_ping_fix")&&a.LK||"adunit"==SG(a)&&a.dh))return!0}return!1};
   wpa=function(a){var b=1,c=g.rE(a.C.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.ye;a.B&&a.B.i&&a.B.i[0]&&a.Kq[a.B.i[0].id]&&(c=a.Kq[a.B.i[0].id]);if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.dJ)return Math.min(1,Math.pow(10,-a.vu/20))||b;var d=0;a.N("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.C.Jh,g.rE(a.C.experiments,"html5_stateful_audio_min_adjustment_value")));a.vu=c}return Math.min(1,Math.pow(10,-c/20))||b};
   WG=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)};
   xpa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
   YG=function(a){return XG(a)&&!!a.adaptiveFormats};
   XG=function(a){return!!(a.N("woffle_orchestration")&&a.Lp&&a.C.u)};
   Xoa=function(a){if(a.N("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===VF(b);a=b&&!a.Lp}else a=!1;return a};
   g.ZG=function(a){if(!a.i||!a.u||!a.K)return!1;var b=a.i.i;return!!b[a.u.id]&&xB(b[a.u.id].u.i)&&!!b[a.K.id]&&xB(b[a.K.id].u.i)};
   ypa=function(a){return a.Lq?["OK","LIVE_STREAM_OFFLINE"].includes(a.Lq.status):!0};
   spa=function(a){return(a=a.Wi)&&a.showError?a.showError:!1};
   g.yG=function(a){return a.N("disable_rqs")?!1:zG(a,"html5_high_res_logging")};
   zG=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
   zpa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
   Toa=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.CB=b.quartile_0_url,a.nI=b.quartile_25_url,a.oI=b.quartile_50_url,a.pI=b.quartile_75_url,a.jI=b.quartile_100_url,a.Mq=b.quartile_0_urls,a.EB=b.quartile_25_urls,a.FB=b.quartile_50_urls,a.HB=b.quartile_75_urls,a.DB=b.quartile_100_urls};
   sG=function(a){return a?xE()?!0:$G&&5>aH?!1:!0:!1};
   Soa=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};
   woa=function(a){if(a){if(Mja(a))return a;a=Nja(a);if(Mja(a,!0))return a}return""};
   g.Apa=function(a){return a.captionsLanguagePreference||a.C.captionsLanguagePreference||g.IG(a,"yt:cc_default_lang")||a.C.Nd};
   bH=function(a){return!!(a.N("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
   cH=function(a,b){this.i=a;this.ma=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.Y=this.S=0};
   Bpa=function(a){return dH(a)&&1==a.getPlayerState(2)};
   dH=function(a){a=a.Kc();return void 0!==a&&2==a.getPlayerType()};
   rH=function(a){a=a.V();return kF(a)&&!g.xF(a)&&"desktop-polymer"==a.playerStyle};
   sH=function(a,b){var c=a.V();bF(c)||"3"!=c.controlsType||a.bb().Zw(b)};
   uH=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.ub=e;this.i=f;this.id=tH(a)};
   tH=function(a){return a+(":"+(Pr.getInstance().i++).toString(36))};
   vH=function(a){this.X=a};
   Cpa=function(a,b){if(0===b||1===b&&(a.X.isMobile&&g.gj?0:a.X.isMobile||g.xF(a.X)||g.lF(a.X)||mF(a.X)||!g.gj))return!0;a=g.vg("video-ads");return null!=a&&"none"!==Wl(a,"display")};
   Dpa=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";
   case "viewable_impression":return"adviewableimpression";default:return null}};
   wH=function(){g.R.call(this);var a=this;this.i={};g.we(this,function(){for(var b=g.r(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})};
   yH=function(){if(null===xH){xH=new wH;Bm(vq).i="b";var a=Bm(vq),b="h"==eq(a)||"b"==eq(a),c=!(Lm(),!1);b&&c&&(a.D=!0,a.J=new Mfa)}return xH};
   Epa=function(a,b,c){a.i[b]=c};
   Fpa=function(a){this.B=a;this.u={};this.i=Gl()?500:g.lF(a.V())?1E3:2500};
   Hpa=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.u||(a.u[c.mimeType]=a.B.canPlayType(c.mimeType));return a.u[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1});
   return Gpa(a,b)};
   Gpa=function(a,b){for(var c=null,d=g.r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.i||h<a.i||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,b=g.r(b),d=b.next();!d.done;d=b.next())d=d.value,e=d.minBitrate,f=d.maxBitrate,e<a.i||(!c||e<c.minBitrate?c=d:c&&e==c.minBitrate&&f>c.maxBitrate&&(c=d));return c};
   zH=function(a,b,c){this.i=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
   c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
   AH=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
   []],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["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||[]]])};
   Ipa=function(a){return new Map([["ad_placement_start",a.placementStartPings||[]],["ad_placement_end",a.placementEndPings||[]]])};
   Jpa=function(a){return(a=a.pings)?Object.fromEntries(AH(a)):{}};
   BH=function(a,b,c,d,e){cH.call(this,a,Jpa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ua=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new zH(0,[]);this.Ka=null;this.Ya=b;this.La=[];this.C={};this.Ea=null;this.u=0;this.Z=this.ya=this.D=null;this.Aa=e;this.Ra=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.Ea=b);this.C=g.Ms(this.i.playerVars||"");if(b=this.i.external)T("external non youtube video ad"),this.La=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.u=
   b/1E3,this.C.length_seconds=this.u.toString()),(b=Hpa(this.Ya,this.La))?(this.ya=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.ya)+"&type="+encodeURIComponent(b)):this.Z=Error("Nonplayable third party ad media file.");else if(this.D=this.i.externalVideoId||null,this.u=OE(this.u,this.C.length_seconds),this.Aa&&this.D&&(this.Ra=this.Aa(this.D)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.Gs(f)}this.Ka=
   this.i.clickthroughEndpoint||null;this.B=new zH(0,[this.u])};
   Kpa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.i);b.autoplay="1";return b};
   CH=function(){this.i=[];this.u=0};
   DH=function(a,b){b&&a.i.push(b)};
   EH=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};
   FH=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};
   GH=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
   HH=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
   Lpa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=EH(a.impressionCommands)||[];b.error=EH(a.errorCommands)||[];b.mute=EH(a.muteCommands)||[];b.unmute=EH(a.unmuteCommands)||[];b.pause=EH(a.pauseCommands)||[];b.rewind=EH(a.rewindCommands)||[];b.resume=EH(a.resumeCommands)||[];b.skip=EH(a.skipCommands)||[];b.close=EH(a.closeCommands)||[];b.clickthrough=EH(a.clickthroughCommands)||[];b.fullscreen=EH(a.fullscreenCommands)||[];b.active_view_viewable=EH(a.activeViewViewableCommands)||
   [];b.active_view_measurable=EH(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=EH(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=EH(a.endFullscreenCommands)||[];b.channel_clickthrough=EH(a.channelClickthroughCommands)||[];b.abandon=EH(a.abandonCommands)||[];b.progress=FH(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
   b.start=FH(a.progressCommands.filter(function(c){return HH(c)&&$f(GH(c),0)}));
   b.first_quartile=FH(a.progressCommands.filter(function(c){return HH(c)&&$f(GH(c),.25)}));
   b.midpoint=FH(a.progressCommands.filter(function(c){return HH(c)&&$f(GH(c),.5)}));
   b.third_quartile=FH(a.progressCommands.filter(function(c){return HH(c)&&$f(GH(c),.75)}));
   b.complete=FH(a.progressCommands.filter(function(c){return HH(c)&&$f(GH(c),1)}));
   return b};
   IH=function(a){cH.call(this,a,Lpa(a));this.u=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
   Mpa=function(a,b,c,d){this.id=b;this.ma=a.placementStartPings||[];this.Y=a.placementEndPings||[];this.C=d.oe;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.J=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Sja(b,d);if(null==f)d=new pA(b,new qr(-1,-1),!1,"adcuerange:invalid",
   3),d.deactivate(),d=[null,d];else{e=":"+(Pr.getInstance().i++).toString(36);var h=d.daiEnabled||d.oe;f=new pA(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.oe||0<d.i)if(d=Sja(b,d,!0))h=new pA(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.ya=d[0];this.i=d[1];this.u=c;this.K=!1;this.D={};this.Z={};this.S=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
   JH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
   LH=function(a,b){var c={};Npa(a,c,b);Opa(c);c.LACT=KH(function(){return Zu().toString()});
   c.VIS=KH(function(){return a.getVisibilityState().toString()});
   c.SDKV="h.3.0";c.VOL=KH(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
   c.VED="";return c};
   Ppa=function(a){var b={};if(!a.kind)return g.Ly(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.Ly(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=KH(af(Math.round(kg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=KH(af("0"));return b};
   KH=function(a){return{toString:function(){return a()}}};
   Qpa=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.lc(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};
   Npa=function(a,b,c){b.CPN=KH(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.My(Error("Video data is null.")),d=null);return d});
   b.AD_MT=KH(function(){return Math.round(Math.max(0,1E3*(null!==c&&void 0!==c?c:a.getCurrentTime(2,!1)))).toString()});
   b.MT=KH(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
   b.P_H=KH(function(){return a.bb().rg().height.toString()});
   b.P_W=KH(function(){return a.bb().rg().width.toString()});
   b.PV_H=KH(function(){return a.bb().getVideoContentRect().height.toString()});
   b.PV_W=KH(function(){return a.bb().getVideoContentRect().width.toString()})};
   Opa=function(a){a.CONN=KH(af("0"));a.WT=KH(function(){return Date.now().toString()})};
   Rpa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=JH(a)?KH(af(Math.round(a.i.start/1E3).toString())):KH(af("0"));return b};
   Spa=function(a){var b={};b.SLOT_POS=KH(af(a.B.i.toString()));return b};
   MH=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
   NH=function(a){for(var b={},c=g.r(Tpa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
   OH=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.v(b)));return c};
   PH=function(){};
   QH=function(a){this.np=a};
   RH=function(a){this.Yo=a};
   Upa=function(a,b,c,d,e,f){e=void 0===e?new RH(new QH(d.getVideoData(1))):e;f=void 0===f?!1:f;g.I.call(this);this.ad=a;this.B=b;this.macros=c;this.i=d;this.Oh=e;this.daiEnabled=f;this.u={GB:.25,SECOND:.5,uC:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.ma.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
   this.unmutedProgressPings=Array.from(this.ad.ma.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds})};
   Vpa=function(a,b,c){a.macros=OH(a.macros,MH(b,c));SH(a,"unmuted_error")};
   WH=function(a,b){TH(a)||(UH(a)?(VH(a,0,!0),Wpa(a,b,b)):(VH(a,0,!0),Xpa(a,0,0,!0)),SH(a,"complete"))};
   VH=function(a,b,c){for(c=void 0===c?!1:c;a.ad.S<a.progressPings.length;){var d=XH(a,"progress"),e=a.progressPings[a.ad.S];if(e.offsetMilliseconds<=1E3*b||c)YH(a,e,d),a.ad.S++;else break}};
   Ypa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Y<a.unmutedProgressPings.length;){var d=XH(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Y];if(e.offsetMilliseconds<=1E3*b||c)YH(a,e,d),a.ad.Y++;else break}};
   Xpa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.GB||d)&&SH(a,"first_quartile");(b>=c*a.u.SECOND||d)&&SH(a,"midpoint");(b>=c*a.u.uC||d)&&SH(a,"third_quartile")};
   Zpa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.GB||d)&&SH(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&SH(a,"unmuted_midpoint");(b>=c*a.u.uC||d)&&SH(a,"unmuted_third_quartile")};
   ZH=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;SH(a,b)};
   Wpa=function(a,b,c){if(0<c&&0<b){var d=a.i.yb(a.i.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(ZH(a,"first_quartile",b,c*a.u.GB),ZH(a,"midpoint",b,c*a.u.SECOND),ZH(a,"third_quartile",b,c*a.u.uC))}a.lastUpdatedTimeSecs=b};
   $H=function(a,b){for(var c=XH(a,b),d=g.r(a.ad.ma[b]||[]),e=d.next();!e.done;e=d.next())YH(a,e.value,c);a.ad.J[b]=!0};
   SH=function(a,b){a.ad.J.hasOwnProperty(b)||$H(a,b)};
   aI=function(a,b){return a.ad.J.hasOwnProperty(b)};
   YH=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Oh,f=e.send,h={},l=LH(a.i),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();a=Object.assign(h,a.macros);f.call(e,d,a,c,b)}};
   XH=function(a,b){var c=a.B;a=a.ad;if(a.Vv())if(b=$pa(b),null==b)c={};else{var d;(d=a.Ja()())||(d=(d=c.I)&&d.Kc?(d=d.Kc())&&2==d.getPlayerType()?bI(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.I.isFullscreen()},c=zq(b,a.K,c)):c={}}else c={};return c?Object.assign({},c):{}};
   UH=function(a){return!a.i.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
   TH=function(a){return UH(a)&&!aI(a,"impression")};
   aqa=function(a){return UH(a)&&aI(a,"seek")};
   cI=function(a,b){UH(a)?$H(a,b):SH(a,b)};
   g.dI=function(a,b){this.state=a;this.Sn=b};
   eI=function(a,b){return g.U(a.state,b)&&!g.U(a.Sn,b)?1:!g.U(a.state,b)&&g.U(a.Sn,b)?-1:0};
   g.fI=function(a,b){return 0<eI(a,b)};
   gI=function(a,b,c,d,e,f){f=void 0===f?0:f;g.R.call(this);this.I=a;this.i=d;this.u=e;this.u.i[b.K]=this;this.u.subscribe("adactiveviewmeasurable",this.gN,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.hN,this);this.u.subscribe("adoverlaymeasurableimpression",this.iN,this);this.u.subscribe("adoverlayunviewableimpression",this.jN,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.kN,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.lN,this);
   this.u.subscribe("adviewableimpression",this.mN,this);this.ad=b;this.ya=[];this.macros=c;this.K=!1;this.Aa=!Cpa(new vH(this.I.V()),f);this.C=!1};
   hI=function(a,b){Eb(a.ya,b);bqa(a,b,1)};
   cqa=function(a){var b=a.i;b.macros=OH(b.macros,MH(0,"No playable media files can be selected"));SH(b,"error");a.C||Vpa(a.i,0,"No playable media files can be selected")};
   iI=function(a,b){if(a.K){var c=a.i,d=a.getDuration();!TH(c)&&0<d&&(VH(c,b),UH(c)?Wpa(c,b,d):Xpa(c,b,d,!1));a.C||(c=a.i,a=a.getDuration(),!TH(c)&&0<a&&(Ypa(c,b),Zpa(c,b,a,!1)))}};
   bqa=function(a,b,c){0!=b.length&&(b=g.ym(b,function(d){return new rA(d,c,d.id)}),a.ea("onAdUxUpdate",b))};
   jI=function(a){var b={};b.abandon=a.abandonCommands&&EH(a.abandonCommands.commands)||[];cH.call(this,a,b)};
   kI=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;uH.call(this,"ad-action-interstitial",a,b,c,d);this.ub=d;this.Eg=e;this.Ji=f};
   lI=function(a,b,c,d,e,f){gI.call(this,a,b,c,d,e,1);this.D=b;this.B=b.i.durationMilliseconds||0;this.Lb=null;this.J=f};
   mI=function(a){cH.call(this,a);this.u=g.Ms(this.i.playerVars||"")};
   nI=function(){cH.apply(this,arguments)};
   oI=function(){cH.apply(this,arguments)};
   dqa=function(a,b,c,d,e,f){this.J=a;this.C=b;this.i=c;this.D=d;this.B=e;this.u=f};
   pI=function(a,b,c,d,e){gI.call(this,a,b,c,d,e);var f=this;this.J=b;this.B=new g.M(function(){f.Yg("load_timeout")},1E4);
   g.J(this,this.B);this.D=new ky(this);g.J(this,this.D)};
   eqa=function(a){uH.call(this,"ad-message",a)};
   qI=function(a,b,c,d,e,f,h,l){gI.call(this,a,b,c,d,e);var m=this;this.S=b;this.Z=b.i.durationMs||0;this.J=l;this.Y=!1;this.D=this.B=0;this.ma=function(){var n=m.I.getProgressState().current;n<m.B?m.vg():n>m.D&&m.qh()}};
   gqa=function(a){if(a.J&&a.Y){a.Y=!1;a=g.r(a.J.listeners);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.i){var c=b.i;b.i=void 0;b.u=void 0;fqa(b.B(),c)}else T("Received AdNotify terminated event when no slot is active")}};
   g.rI=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={yB:c.yB},e=d.next())e=e.value,c.yB=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.yB}}(c));
   return a};
   sI=function(a){return a?g.sA(a):null};
   hqa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a};
   iqa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
   jqa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
   mqa=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(kqa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=sI(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
   lqa(a,b,c,d))}};
   kqa=function(a,b,c){var d=sI(b.confirmLabel)||"",e=sI(b.title)||"",f=[];if(b.adReasons)for(var h=g.r(b.adReasons),l=h.next();!l.done;l=h.next())f.push(sI(l.value)||"");h=b.headerTitle?g.sA(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:sI(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints),
   n=m.next();!n.done;n=m.next())c(n.value)};
   a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
   lqa=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:sI(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=hqa(b.navigationEndpoint);var h=jqa(b[1]),l=[jqa(b[0])];(b=iqa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)};
   a.muteAd=function(){m||c(h);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)};
   nqa(a,e,d)}}};
   nqa=function(a,b,c){a.muteAdInfo.goneText=sI(b.title)||"";a.muteAdInfo.questionText=sI(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=sI(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
   a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=sI(e.reason)||"";e=hqa(e.endpoint)[0];a.push({label:d,url:e})}};
   tI=function(a,b,c,d,e,f){this.u=a;this.B=b;this.i=LH(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.D=d;this.J=e};
   oqa=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.Id(e):a.C.Kp()};
   b.skipShown=function(){a.Id(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
   pqa=function(a,b,c){mqa(b,c,function(d){a.Id(d)},function(d){a.sendAdsPing(d)})};
   qqa=function(a){if(a.D.V().N("dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.r(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.B)};
   rqa=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
   instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
   muteAdClicked:function(){},
   sendAdsPing:function(){},
   skip:function(){},
   endSurveyOnSubmitted:function(){},
   skipShown:function(){},
   whyThisAdClicked:function(){},
   whyThisAdClosed:function(){},
   daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}};
   sqa=function(a,b,c,d,e){new tI(a,b,c,d,e,void 0)};
   uI=function(a){this.value=a};
   vI=function(a){this.value=a};
   wI=function(a){this.value=a};
   xI=function(a){this.value=a};
   yI=function(){uI.apply(this,arguments)};
   zI=function(a){this.value=a};
   AI=function(a){this.value=a};
   BI=function(a){this.value=a};
   CI=function(a){this.value=a};
   DI=function(a){this.value=a};
   EI=function(a){this.value=a};
   FI=function(){uI.apply(this,arguments)};
   GI=function(){uI.apply(this,arguments)};
   HI=function(a){this.value=a};
   II=function(a){this.value=a};
   JI=function(a){this.value=a};
   KI=function(a){this.value=a};
   LI=function(a){this.value=a};
   MI=function(a){this.value=a};
   NI=function(a){this.value=a};
   OI=function(a){this.value=a};
   PI=function(a){this.value=a};
   QI=function(a){this.value=a};
   RI=function(a){this.value=a};
   SI=function(a){this.value=a};
   TI=function(a){this.value=a};
   UI=function(a){this.value=a};
   VI=function(a){this.value=a};
   WI=function(a){this.value=a};
   XI=function(a){this.value=a};
   YI=function(a){this.value=a};
   ZI=function(a){this.value=a};
   $I=function(a){this.value=a};
   aJ=function(a){this.value=a};
   bJ=function(a){this.value=a};
   cJ=function(a){this.value=a};
   dJ=function(a){this.value=a};
   eJ=function(a){this.value=a};
   fJ=function(a){this.value=a};
   gJ=function(a){this.value=a};
   hJ=function(a){this.value=a};
   iJ=function(a){this.value=a};
   jJ=function(a){this.value=a};
   kJ=function(a){this.value=a};
   lJ=function(a){this.value=a};
   mJ=function(a){this.value=a};
   nJ=function(){uI.apply(this,arguments)};
   oJ=function(){uI.apply(this,arguments)};
   pJ=function(){uI.apply(this,arguments)};
   qJ=function(){uI.apply(this,arguments)};
   rJ=function(){uI.apply(this,arguments)};
   sJ=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var d=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return tqa(d)?!0:!1};
   uqa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon,b=tqa(a)):b=!1:b=!1;return b};
   tqa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null===b||void 0===b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null===b||void 0===b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
   wqa=function(a,b,c,d,e,f){this.i=new tI(a,b,c,d,e,vqa(f))};
   xqa=function(a,b){var c=rqa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.Id(d)};
   b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":oqa(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":pqa(a.i,
   c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
   return c};
   vqa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=KH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
   b.SURVEY_ELAPSED_MS=KH(a);return b};
   tJ=function(a,b,c){g.R.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Lb=new g.yh(200);this.Lb.Qa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.i+=f;d.i>=d.u&&(d.i=d.u,d.Lb.stop());e=d.i/1E3;d.D&&d.D.Qb(e);yqa(d,{current:e,duration:d.u/1E3})});
   g.J(this,this.Lb);this.i=0;this.B=null;g.we(this,function(){d.B=null});
   this.C=0};
   yqa=function(a,b){a.J.Oa("onAdPlaybackProgress",b);a.B=b};
   uJ=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;uH.call(this,"survey",a,{},b,c);this.Eg=d;this.Ji=e};
   vJ=function(a,b,c){g.R.call(this);var d=this;this.durationMs=a;this.D=b;this.J=c;this.B=!1;this.C=this.i=0;this.u=new g.yh(200);g.J(this,this.u);this.u.Qa("tick",function(){d.Qb()})};
   wJ=function(){VA("pbp")||VA("pbs")||WA("pbp");VA("pbp","watch")||VA("pbs","watch")||WA("pbp",void 0,"watch")};
   yJ=function(a,b,c,d,e,f,h){gI.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.J=new ky;g.J(this,this.J);this.J.T(this.I,"resize",function(){450>l.I.bb().rg().width&&(g.my(l.J),l.vg())});
   this.Y=0;this.S=null;this.Z=h(this,function(){return""+(Date.now()-l.Y)});
   if(this.B=g.lF(a.V())?new tJ(1E3*b.u,a,f):null)g.J(this,this.B),this.J.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&xJ(l)})};
   zqa=function(a,b){a.I.V().experiments.ob("validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!sJ(b)?(g.Ly(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),a.ld("aderror")):(b=xqa(a.Z,b),a.I.Oa("onAdInfoChange",b))};
   xJ=function(a){var b=a.D.i;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.Z.Id(b&&b.timeoutCommands)):g.Ly(Error("Expected a survey question in InstreamSurveyAdRenderer."))};
   zJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;uH.call(this,"survey-interstitial",a,b,c,d);this.Eg=e;this.lG=f};
   AJ=function(a,b,c,d,e){gI.call(this,a,b,c,d,e,1);this.B=b};
   BJ=function(a,b,c,d,e,f,h,l,m,n,p){gI.call(this,a,b,c,d,e,1);var q=this;this.zz=!0;this.Z=m;this.B=b;this.D=f;this.ma=new ky(this);g.J(this,this.ma);this.J=new g.M(function(){q.Yg("load_timeout")},1E4);
   g.J(this,this.J);this.Y=h;this.S=p};
   Aqa=function(a){if(a.Y&&(a.I.V().experiments.ob("enable_topsoil_wta_for_halftime")||a.I.V().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.i;b=b.D;if(void 0===c)g.Ly(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Ly(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)}};
   EJ=function(a,b){if(null!==a.Z){var c=Bqa(a);a=g.r(a.Z.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.i||"aderror"!==f||(Cqa(d,e,[],!1),Dqa(d.B(),d.u),Eqa(d.B(),d.u),h=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}CJ(d.B(),d.u,d.i,e);if(h){e=d.B();h=d.u;DJ(e.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.Pd);for(f=e.next();!f.done;f=e.next())f.value.Cj(h);fqa(d.B(),d.u)}d.Na.get().I.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&
   d.C&&Fqa(d.B(),d.u,d.i);d.u=null;d.i=null;d.C=!1}}}};
   FJ=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
   Bqa=function(a){if(a=a.B.i.elementId)return a;g.Ly(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
   Gqa=function(a){function b(l,m){l=a.xW;var n=Object.assign({},{});n.FINAL=KH(af("1"));n.SLOT_POS=KH(af("0"));return OH(l,NH(n),m)}
   function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n);
   n=a.eB(m,q);m=l(m,q,n,p);g.J(m,n);return m}}}
   var d=c(function(l,m,n){return new lI(a.I,l,m,n,a.xp,a.Wa)}),e=c(function(l,m,n){return new AJ(a.I,l,m,n,a.xp)}),f=c(function(l,m,n){return new qI(a.I,l,m,n,a.xp,a.Wa,a.Ul,a.dm)}),h=c(function(l,m,n){return new pI(a.I,l,m,n,a.xp,a.Wa)});
   this.RQ=new dqa({create:function(l,m){var n=OH(b(l,m),NH(Spa(l)));m=a.eB(l,n);l=new BJ(a.I,l,n,m,a.xp,a.Wa,a.daiEnabled,function(p){return new sqa(a.Wa,n,p,a.I,a.Oh)},a.em,a.Tf,a.Od);
   g.J(l,m);return l}},{create:function(l,m){var n=a.eB(l,m);
   l=new yJ(a.I,l,m,n,a.xp,a.Wa,function(p,q){return new wqa(a.Wa,m,p,a.I,a.Oh,q)});
   g.J(l,n);return l}},d,e,f,h)};
   GJ=function(a,b){this.u=a;this.i={};this.B=void 0===b?!1:b};
   Hqa=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{pR:new qr(b,c),AS:new dA(b,c-b,a.context,a.identifier,a.event,a.i)}};
   HJ=function(){this.i=[]};
   IJ=function(a,b,c){var d=g.Kb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
   Iqa=function(){this.i=new HJ};
   JJ=function(a){this.i=a};
   Jqa=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};
   Kqa=function(a,b,c){this.B=a;this.i=b;this.u=c;this.C=a.getCurrentTime()};
   Mqa=function(a,b){var c=void 0===c?Date.now():c;b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;KJ({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Lqa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.u&&("unknown"===d.event&&LJ("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.C&&a.B.getCurrentTime()>d&&LJ("DAI_ERROR_TYPE_LATE_CUEPOINT",
   a.i))}};
   Nqa=function(a,b,c){a.u&&KJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
   Oqa=function(a,b){a.u&&KJ({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.ZQ}})};
   LJ=function(a,b){KJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
   KJ=function(a){g.Zv("adsClientStateChange",a)};
   Lqa=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"}};
   MJ=function(a){this.I=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.i=this.re=!1;this.adFormat=null;this.u="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
   Rqa=function(a,b,c,d,e){Pqa(a,b,c,d,e,function(){Qqa(a)})};
   Pqa=function(a,b,c,d,e,f){f();var h=a.I.getVideoData(1),l=a.I.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.u=b;0>=d?f():(a.actionType=a.B?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.re=!0,a.re&&(b={adBreakType:Sqa(a.u),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)),a.adFormat&&(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),UA(b,a.actionType))))};
   Qqa=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.u="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.re=!1;a.i=!1};
   Tqa=function(a){a.i=!1;RA("video_to_ad",void 0,void 0)};
   Uqa=function(a){a.i=!1;RA("ad_to_ad",void 0,void 0)};
   NJ=function(a){a.i=!1;RA("ad_to_video",void 0,void 0)};
   Vqa=function(a){a.re&&!a.i&&(a.B=!1,a.i=!0,"ad_to_video"!==a.actionType&&(TA("apbs",void 0,a.actionType),g.Cs("finalize_all_timelines")&&(a=a.actionType,PA("c",a),HA(a),OA(a))))};
   Sqa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
   g.Xqa=function(a){return(a=Wqa[a.toString()])?a:"LICENSE"};
   OJ=function(){g.I.call(this);this.u=null;this.J=this.D=!1;this.B=new g.Ue;g.J(this,this.B)};
   PJ=function(a){a=a.Jv();return 1>a.length?NaN:a.end(a.length-1)};
   Yqa=function(a,b,c){a.al()||a.getCurrentTime()>b||10<c||(a.play(),g.ut(function(){Yqa(a,a.getCurrentTime(),c+1)},500))};
   Zqa=function(a,b){a.u&&null!==b&&b.i===a.u.i||(a.u&&a.u.dispose(),a.u=b)};
   QJ=function(a){return Vla(a.Uf(),a.getCurrentTime())};
   $qa=function(a,b){if(0===a.rh()||0<a.aj())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Jv(),a.length||!c)?ED(a,b):c};
   ara=function(a){var b=a.Uf();return 0<GD(b)&&a.getDuration()?b.end(b.length-1):0};
   RJ=function(a){switch(a.aj()){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.SJ=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
   TJ=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.SJ(b,c)};
   UJ=function(a,b){return TJ(a,a.state|b)};
   VJ=function(a,b){return TJ(a,a.state&~b)};
   WJ=function(a,b,c){return TJ(a,(a.state|b)&~c)};
   g.U=function(a,b){return!!(a.state&b)};
   g.XJ=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
   g.YJ=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
   ZJ=function(a){return a.Ec()&&!g.U(a,16)&&!g.U(a,32)};
   g.$J=function(a){return g.U(a,1)&&!g.U(a,2)};
   aK=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1};
   bK=function(a,b,c,d,e,f,h,l){g.R.call(this);this.Rf=a;this.I=b;this.i=d;this.K=this.i.u instanceof cH?this.i.u:null;this.u=null;this.Y=!1;this.C=c;this.Z=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ya=0;this.Aa=!1;this.Gl=e;this.Jr=f;this.Wo=h;this.ma=!1;this.daiEnabled=l};
   bra=function(a){if(dH(a.I)){var b=a.I.getVideoData(2);b=a.i.Z[b.Cc]||null;if(!b)return a.pk(),!0;(!a.u||a.u&&a.u.ad!==b)&&a.Yt(b)}else if(1===a.I.getPresentingPlayerType()&&a.u)return a.pk(),!0;return!1};
   cra=function(a){(a=a.baseUrl)&&g.av(a,void 0,Cq(a))};
   cK=function(a){dra(a.Rf,a.i.i,a);a.daiEnabled&&!a.i.K&&(era(a,a.eK()),a.i.K=!0)};
   era=function(a,b){for(var c=dK(a),d=a.i.i.start,e=[],f=g.r(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=fra(h);e.push({externalVideoId:h.D,originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.i.i.start;h.B.B=c;if(!gra(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+fra(p)},0);
   Nqa(a.Gl,a.i.i.zv(),b);Oqa(a.Gl,{cueIdentifier:a.i.C&&a.i.C.identifier,ZQ:e})};
   fra=function(a){var b=1E3*a.u;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
   dK=function(a){var b=a.i.i.end;a=IJ(a.Jr,a.i.i.start,b);return Math.min(b,null===a?Infinity:a)};
   gra=function(a,b,c,d){var e=a.Wo.create(b,NH(Rpa(a.i)),a.i.i.i);c=e.RJ(c,d);g.ue(e);if(!c)return!1;a.i.Z[c]=b;return!0};
   fK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;a.Y=!0;g.ue(a.u);NJ(a.C);b?b=!1:a.daiEnabled?(b=a.I.getCurrentTime(2,!0),b=1>=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.D.hasOwnProperty("ad_placement_end")){b=g.r(a.i.Y);for(var d=b.next();!d.done;d=b.next())cra(d.value);a.i.D.ad_placement_end=!0}b=a.i.S;if(null!==b){d=a.Gl;var e=a.i.C&&a.i.C.identifier,f=a.i.i.start,h=dK(a);d.u&&KJ({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h-
   f).toString(),driftFromHeadMs:Math.round(1E3*d.B.vn()).toString()}});a.i.S=null}c||a.daiEnabled?eK(a.Rf,!0):a.Z&&a.sH()&&a.Yv()?eK(a.Rf,!1,hra(a)):eK(a.Rf,!1);Rqa(a.C,a.i.i.i,!0,a.DD(),a.isLiveStream())};
   hra=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
   var b=Math.floor(g.Pa()/1E3)-a.ya;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
   ira=function(a,b,c){this.i=a;this.u=b;this.B=c};
   gK=function(){this.D=[];this.K=[];this.i=[];this.C=[];this.J=[];this.u=new Set;this.S=new Map};
   hK=function(){gK.i||(gK.i=new gK);return gK.i};
   jra=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.u.has(c)&&a.B&&a.B();var h=g.Ey(c),l=g.Dy(c);h&&l&&((null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Qy(a.client,h,l,[g.Ay(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Qy(a.client,h,l,[g.Ay(d.playerResponse.trackingParams)]))})};
   kra=function(a,b){iK(a,g.Ay(b),void 0,void 0)};
   iK=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.Ey(d);c=c||g.Dy(d);e&&c&&g.Qy(a.client,e,c,[b])}};
   mra=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){lra(a,b,c);var f=g.Dy(c.layer);if(f){for(var h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,iK(a,l[0],l[1]||f,c.layer);f=g.r(a.K);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Ey(h);var n=m[0]||g.Dy(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={cttAuthInfo:Fy(l),xm:l},"UNDEFINED_CSN"==l?Py("visualElementStateChanged",m,n):h?Ev("visualElementStateChanged",m,h,n):g.Zv("visualElementStateChanged",
   m,n))}}};
   g.Ey(c.layer)||a.B();if(c.LJ)for(var d=g.r(c.LJ),e=d.next();!e.done;e=d.next())jra(a,e.value,c.layer);else g.Ly(Error("Delayed screen needs a data promise."))};
   lra=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.tW?c.tW:c.layer;var e=g.Ey(d);d=g.Dy(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.GJ,p=c.cttAuthInfo,q=c.Paa,t=nra(),u={csn:t,pageVe:(new zy({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?
   (u.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},q&&(u.implicitGesture.gestureType=q)):l&&g.My(new g.dw("newScreen() parent element does not have a VE - rootVe",b));n&&(u.cloneCsn=n);n={cttAuthInfo:p,xm:t};m?Ev("screenCreated",u,m,n):g.Zv("screenCreated",u,n);sx(kja,new Oy(t));var x=t}catch(y){gja(y,{Xw:b,rootVe:d,parentVisualElement:void 0,Iaa:e,bba:f,GJ:c.GJ});g.Ly(y);return}Tia(x,b,c.layer,c.cttAuthInfo);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Cs("screen_manager_skip_hide_killswitch"))){a:{b=
   g.r(Object.values(ora));for(f=b.next();!f.done;f=b.next())if(g.Ey(f.value)==e){b=!0;break a}b=!1}b=!b}b&&hja(a.client,e,d,!0);a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-1].csn=x||"");g.SA("csn",x);Hz.getInstance().clear();d=g.Dy(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Cs("web_mark_root_visible")||g.Cs("music_web_mark_root_visible"))&&g.Ry(x,d,void 0);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.S);for(x=e.next();!x.done;x=e.next())b=g.r(x.value),x=b.next().value,b=b.next().value,b.has(c.layer)&&
   d&&iK(a,x,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(y){g.Ly(y)}}for(c=a.C.length=0;c<a.J.length;c++){e=a.J[c];try{e()}catch(y){g.Ly(y)}}};
   jK=function(){this.i={};if(this.u=Qt()){var a=g.Ot("CONSISTENCY");a&&pra(this,{encryptedTokenJarContents:a})}};
   pra=function(a,b){if(b.encryptedTokenJarContents&&(a.i[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.i[b.encryptedTokenJarContents]},1E3*c);
   a.u&&g.Nt("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
   kK=function(){var a=g.P("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")&&(this.localStorage=qra(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
   qra=function(a){return void 0===a.localStorage?new Tv("yt-client-location"):a.localStorage};
   lK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.P("INNERTUBE_CONTEXT");if(!d)return g.Ly(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.qc(d);g.Cs("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.P("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
   1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.Iv.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.Kv(0,165)?h="USER_INTERFACE_THEME_DARK":g.Kv(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Cs("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:Cia()||h;e.userInterfaceTheme=
   f;if(!b){if(f=Pv())e.connectionType=f;g.Cs("web_log_effective_connection_type")&&(f=Rv())&&(d.client.effectiveConnectionType=f)}f=g.Os(g.D.location.href);!g.Cs("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(e.internalGeo=f.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.D.location.href},g.Cs("kevlar_woffle")&&Fv.i&&(e.mainAppWebInfo.pwaInstallabilityStatus=Fv.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),
   g.Cs("web_include_display_mode_killswitch")||(e.mainAppWebInfo.webDisplayMode=Gv()),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&!g.Cs("web_lr_app_quality_killswitch")&&(f=g.P("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(Object.assign({},e.tvAppInfo),{appQuality:f}));if(!g.Cs("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(z){}l=
   void 0}l&&(e.timeZone=l)}(l=g.P("EXPERIMENTS_TOKEN",""))?e.experimentsToken=l:delete e.experimentsToken;l=Es();jK.i||(jK.i=new jK);e=dc(jK.i.i);d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:l,consistencyTokenJars:e});!g.Cs("web_prequest_context_killswitch")&&(l=g.P("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=l);e=g.Iv.getInstance();l=g.Kv(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);l&&(d.user.enableSafetyMode=l);e&&(d.user.lockedSafetyMode=
   !0);g.Cs("warm_op_csn_cleanup")?c&&(b=g.Ey())&&(d.clientScreenNonce=b):!b&&(b=g.Ey())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ga("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.Cs("web_enable_client_location_service")&&kK.getInstance().setLocationOnInnerTubeContext(d);var m;try{var n=pt(void 0),p=n.bid;delete n.bid;d.adSignalsInfo={params:[],bid:p};for(var q=g.r(Object.entries(n)),t=q.next();!t.done;t=q.next()){var u=g.r(t.value),x=u.next().value,y=u.next().value;
   n=x;p=y;null===(m=d.adSignalsInfo.params)||void 0===m?void 0:m.push({key:n,value:""+p})}}catch(z){g.Ly(z)}return d};
   mK=function(){this.nX=!0};
   nK=function(){mK.apply(this,arguments);this.uq={}};
   pK=function(){oK||(oK=new nK);return oK};
   rra=function(a,b){b?a.uq.Authorization="Bearer "+b:delete a.uq.Authorization};
   sra=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
   tra=function(){var a=null;qu().then(function(b){return a=b},function(b){return a=sra(b)});
   return a};
   ura=function(){var a=Ah(1E3,"NO_BID");return oh(g.qh(fba([qu(),a]),sra),function(){return a.cancel()})};
   vra=function(a){return a.Mb?g.Kv(g.Iv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
   qK=function(a){this.player=a;this.u=this.i=1};
   sK=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Tu,f=c.Cd;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.V().Tj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:vra(a.player.V()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.vn(),LACT:Zu(),LIVE_INDEX:e?a.u++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.bb().rg().height,
   P_W:a.player.bb().rg().width,YT_REMOTE:h?h.join(","):""},m=Ws(Vs);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
   ""!==d&&(l.BISCOTTI_ID=d);d={};Us(b)&&(d.sts="18911",(e=a.player.V().Za)&&(d.forced_experiments=e));b=Rs(g.Dq(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return kh(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&Ts()){var n=pK();rra(n,d)}n=a.player.Ml(n);a=wra(a,b,l,c.isMdxPlayback);return g.rK(n,a,"/youtubei/v1/player/ad_break")};
   zra=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Ss(b),f=xra(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=xra(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Ls(pt(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=[];yra.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};
   Cra=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 Ara&&(f.clientName=Ara[d[0]]),d[1]in Bra&&(f.platform=Bra[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};
   wra=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=Dra.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=Era.test(b),l=Fra.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=Gra.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=Hra.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.qF(a.player.V()),q=lK(a.player.getVideoData(1).Ya,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";zra(q,b,t.toString(),a.player.V());var u=
   {splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:18911,autonavState:vra(a.player.V())};d&&(d={},Cra(d,c.YT_REMOTE)&&(u.mdxContext=d));if(d=Ira.includes(p)?void 0:g.Ot("PREF")){for(var x=d.split(RegExp("[:&]")),y=0,z=x.length;y<z;y++){var G=x[y].split("=");if(("SML"===G[0].toUpperCase()||"GSML"===G[0].toUpperCase())&&1<G.length&&"TRUE"===G[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
   Jra)for(d=d.split(RegExp("[:&]")),y=Jra.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,G=d.length;z<G;z++){var F=d[z].split("=");if(F[0]===x&&parseInt("0x"+F[1],16)&y){d=!0;break a}}d=!1}u.autoCaptionsDefaultOn=d}b=Kra.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:u};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,
   isProxyAdTagRequest:h,context:q,adSignalsInfoString:Ls(pt(t.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());a.player.V().N("html5_populate_media_position_in_ad_break_request")&&(f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1)));return f};
   tK=function(a,b,c,d,e,f){g.R.call(this);this.J=a;this.u=b;this.B=c;this.D=d;this.i=e;this.C=f;this.B.V().N("html5_pacf_enable_non_dai_live_video_ads")||Lra(this)};
   Mra=function(a,b){var c={isEmpty:!0,iL:!1,yl:[]};if(!b)return c;b&&b.trackingParams&&kra(hK(),b.trackingParams);if(b&&b.adThrottled)return c.iL=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
   if(g.xb(b))return c;if(0<a.i.i.end){var d=a.i.i.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.yl=b;
   c.isEmpty=!1;return c};
   Lra=function(a){[a.i.ya,a.i.i].filter(function(b){return null!=b}).forEach(function(b){dra(a.u,b,a)})};
   uK=function(a,b,c,d,e,f,h,l){bK.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.D=-1;this.J=null;this.S=Nra(this.ez())};
   Ora=function(a){a.D++;var b=a.ez();b?(0<a.D&&Uqa(a.C),a.Yt(b)):fK(a)};
   Nra=function(a){return a?Pra.some(function(b){return a instanceof b}):!1};
   Qra=function(a){this.i=new ira(function(b){b=new bK(a.Rf,a.I,a.FJ(),b,a.Gl,a.Jr,a.Wo,a.daiEnabled);cK(b);return b},function(b){return new tK(a.CC,a.Rf,a.I,a.Vo,b,a.Gl)},function(b){b=new uK(a.Rf,a.I,a.FJ(),b,a.Gl,a.Jr,a.Wo,a.daiEnabled);
   cK(b);return b})};
   Rra=function(a,b){CH.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Zv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),DH(this,new nI(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);DH(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new jI(d.adActionInterstitialRenderer),
   DH(this,d)):d.adIntroRenderer&&(d=new mI(d.adIntroRenderer),DH(this,d),this.u=1);this.i.filter(function(f){return f instanceof BH}).forEach(function(f,h){f instanceof BH&&(h=new zH(h,c),f.B=h)})}}};
   Tra=function(a,b){CH.call(this);DH(this,Sra(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new IH(c.instreamSurveyAdRenderer);break a}}b=null}DH(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new jI(a.adActionInterstitialRenderer)):a=null:a=null;DH(this,a)};
   Sra=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new jI(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Zv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new nI(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new oI(b.surveyTextInterstitialRenderer):null};
   Ura=function(a,b,c){this.B=a;this.i=b;this.u=c};
   Vra=function(a){this.i=a};
   Wra=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.i.create(e,f):null;return new Mpa(b,c,h,d)}catch(l){g.Gs(l)}};
   Xra=function(a){var b=new Vra(a.SQ);return{cK:function(){return b}}};
   vK=function(a){g.I.call(this);var b=this;this.u=a;this.i=null;g.we(this,function(){return b.i=null});
   var c=jy(a);if(c){var d=function(){b.i&&b.i(!!hy())};
   this.u.addEventListener(c,d);g.we(this,function(){b.u.removeEventListener(c,d)})}};
   wK=function(a){g.I.call(this);this.i=a};
   Yra=function(a){var b=window.document;return g.xF(a.V())?new vK(b):new wK(a)};
   Zra=function(a){g.I.call(this);this.fP=new Kqa(a.I,a.contentCpn,a.daiEnabled)};
   $ra=function(a){xK=a&&a.data};
   bsa=function(a){asa=a&&a.data};
   csa=function(a){yK=a&&a.data};
   dsa=function(a){zK=a&&a.data};
   esa=function(a){AK=a&&a.data};
   fsa=function(){AK=zK=yK=xK=null};
   DK=function(a){g.I.call(this);var b=this;this.Jc=a;this.Ld=new Map;this.i=new Map;BK(this,"commandExecutorCommand",function(c,d,e){b.Id(c.commands,d,e)});
   CK(this,"commandExecutorCommand",function(c,d){gsa(b,c.commands,d)});
   BK(this,"clickTrackingParams",function(){});
   CK(this,"clickTrackingParams",function(){})};
   hsa=function(a,b){BK(a,b.xk(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
   isa=function(a,b){CK(a,b.xk(),function(c,d){b.Sl(c,d)})};
   BK=function(a,b,c){a.isDisposed();a.Ld.get(b)&&g.Ly(Error("Extension name "+b+" already registered"));a.Ld.set(b,c)};
   CK=function(a,b,c){a.isDisposed();a.i.get(b)&&g.Ly(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
   gsa=function(a,b,c){b=void 0===b?[]:b;a.isDisposed();var d=[],e=[],f=g.r(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.r(d);for(b=d.next();!b.done;b=d.next())EK(a,b.value,c);e=g.r(e);for(b=e.next();!b.done;b=e.next())EK(a,b.value,c)};
   jsa=function(a,b){a.Jc.get().Oa("innertubeCommand",{openPopupAction:b})};
   ksa=function(a,b){a.Jc.get().Oa("innertubeCommand",{confirmDialogEndpoint:b})};
   EK=function(a,b,c){a.isDisposed();b.loggingUrls&&lsa(a,"loggingUrls",b.loggingUrls,c);b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?jsa(a,e):"confirmDialogEndpoint"===d?ksa(a,e):msa.hasOwnProperty(d)||lsa(a,d,e,c)}};
   nsa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Ld.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.Ly(f)}else b=new g.dw("Unhandled field",b),g.My(b)};
   lsa=function(a,b,c,d){(a=a.i.get(b))||new g.dw("Unhandled field",b);try{a(c,d)}catch(e){g.Ly(e)}};
   psa=function(a,b,c,d){for(var e=!1,f=g.r(b.Ki.entries()),h=f.next();!h.done;h=f.next())h=g.r(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.rb&&"core"===h.gb&&(e=!0);e?(d=osa(b,d))?c.cE(d):T("No triggering layout ID available when attempting to mute."):g.ah(function(){a.pk()})};
   osa=function(a,b){if(b)return b;a=g.r(a.Ki.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.rb&&"core"===b.gb)return c.layoutId}};
   qsa=function(a){var b=new QH(a.np),c=new RH(b);return{MR:function(){return b},
   QD:function(){return c}}};
   $pa=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 "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";case "first_quartile":case "unmuted_first_quartile":return"firstquartile";
   case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":return"skip";case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";
   case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
   rsa=function(a){this.I=a;var b=Bm(vq),c=a.Qd();b.B!==c&&((b.B=c)||sga(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&tl(Lm().featureSet,"ssmol",1)};
   ssa=function(a){g.I.call(this);this.i=a;this.u=new rsa(a.I)};
   tsa=function(a){return function(){return new MJ(a.i.I)}};
   usa=function(a){return function(b,c){return new Upa(b,a.u,c,a.i.I,a.i.Oh,a.i.daiEnabled)}};
   FK=function(a,b,c,d,e,f){g.R.call(this);var h=this;this.i=c;this.Ja=null;this.eb=d;this.kb=f.Tf;this.Za=f.Zn;this.u=null;this.B=new Map;d=this.i.V().experiments;var l=qsa({np:c.getVideoData(1)}),m=new ssa({Oh:l.QD(),I:c,daiEnabled:!1});g.J(this,m);this.Xo=new Set;this.sz=-1;this.Y=[];this.J=null;this.ma=new Map;this.K=new Map;this.S=new Set;this.C=new ky(this);g.J(this,this.C);this.D=new ky(this);g.J(this,this.D);this.ya=this.Ya=this.Aa=!1;this.Z=g.xF(c.V());this.jb=e;e=new Zra({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
   Gaa:this,daiEnabled:!1,I:this.i});g.J(this,e);this.Ka=e.fP;this.Ra=(new Iqa({Haa:this,hba:d.ob("html5_recognize_predict_start_cue_point"),cba:d.ob("html5_persist_cue_range_killswitch")})).i;var n=uc(NH(LH(this.i)));b=new Gqa({Wa:this,xp:yH(),Oh:l.QD(),I:this.i,xW:n,eB:usa(m),daiEnabled:!1,em:f.em,Tf:this.kb,Ul:f.Ul,dm:f.dm,Od:b});this.Ea=(new Qra({Vo:this.eb,Wo:b.RQ,CC:a,Rf:this,xp:yH(),FJ:tsa(m),Gl:this.Ka,Jr:this.Ra,I:this.i,qba:n,eB:function(p){return usa(m)(p,n)},
   daiEnabled:!1})).bK();this.La=Xra({SQ:new Ura(new Fpa(c),d,function(p){return h.K.has(p)?h.K.get(p):null})}).cK();
   this.Ua=Yra(this.i);g.J(this,this.Ua);this.qb=DF(this.i.V())?this.i.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.i.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit")};
   zsa=function(a,b){var c=a.i.getVideoData(1);if(c.ip||g.P("SERVED_VIA_SPF_HISTORY"))GK(a);else{if(rH(a.i)){var d=vsa(a.i);d.addEventListener("updateKevlarOrC3Companion",$ra);d.addEventListener("onPlaShelfInfoCardsReady",bsa);d.addEventListener("updateEngagementPanelAction",csa);d.addEventListener("changeEngagementPanelVisibility",dsa);d.addEventListener("scrollToEngagementPanel",esa);window.addEventListener("yt-navigate-start",fsa)}a.C.T(a.i,"applicationplayerstatechange",a.IT);a.C.T(a.i,g.nA("ad"),
   a.gF,a);a.C.T(a.i,g.oA("ad"),a.fU,a);a.C.T(a.i,"aduxclicked",a.wT);a.C.T(a.i,"videodatachange",a.iW);b=wsa(a,b);b=xsa(a,b);b=ysa(a,b);0<b.length&&HK(a,b);a.J&&c.subscribe("cuepointupdated",a.lM,a);g.ah(a.HX,a)}};
   wsa=function(a,b){return b.filter(function(c){if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)){if(a.i.V().experiments.ob("html5_pacf_enable_non_dai_live_video_ads"))return T("Tries to extract CuePoint triggered AdPlacementRenderer."),!1;g.xF(a.i.V())&&a.i.getVideoData(1).tf()||(a.J=c);return!1}return!0})};
   xsa=function(a,b){a.ma=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.ma.set(c.elementId,c),!1):!0})};
   ysa=function(a,b){a.K=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.K.set(c.hostElementId,c),!1):!0})};
   Asa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.Gs(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof tK?!1:c instanceof bK?!c.Np():!0})};
   GK=function(a){var b=Bsa(a);if(0<b.length){var c=g.rE(a.i.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.Z&&g.lF(a.i.V())?(c=new g.M(function(){Csa(a,b)},c),g.J(a,c),c.start()):g.ah(function(){Csa(a,b)})}};
   Bsa=function(a){for(var b=Dsa(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.Xo.delete(d.value);return b};
   Dsa=function(a){var b=[];a=g.r(a.Xo);for(var c=a.next();!c.done;c=a.next())c=c.value,qA(c)&&b.push(c);return b};
   Esa=function(a,b,c){c=void 0===c?null:c;var d=a.La,e=d.create;var f=1E3*a.i.getDuration(1);f=new Bja(f,1E3*a.i.getCurrentTime(1)||0,!1,a.i.V().experiments.ob("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Y.length,c);a.Y=a.Y.concat(b);return b};
   Csa=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.gF(c.value)}};
   HK=function(a,b,c){b=Esa(a,b,void 0===c?null:c);0==b.length||b.map(function(d){return a.Ea.create(d)})};
   Fsa=function(a){a.Aa||(a.D.T(a.i,"presentingplayerstatechange",a.gP),a.D.T(a.i,"internalAbandon",a.mT),a.D.T(a.i,"progresssync",a.lW),a.D.T(a.i,"onVolumeChange",a.mW),a.D.T(a.Ua,"fullscreentoggled",a.oU),a.Aa=!0);g.N(a.i.getRootNode(),"ad-showing");g.N(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.ob("enable_html5_teal_ad_badge")&&rH(a.i)&&g.N(a.i.getRootNode(),"ad-teal-design");a.i.Fj(2)};
   eK=function(a,b,c){var d=!!a.u&&a.u||null,e=a.i.V();e=d&&d.Np()&&(a.i.V().experiments.ob("html5_use_normal_timer_for_survey")&&!g.lF(e)&&d.Hk()||dH(a.i)||!1);d=b&&d&&d.reset()||null;a.u&&Gsa(a,a.u);a.u=null;a.sz=-1;e&&Hsa(a,c);a.ya||a.Za.wp();b&&d&&(d.rH().B=!1,cK(d))};
   Hsa=function(a,b){g.my(a.D);a.Aa=!1;g.Sq(a.i.getRootNode(),"ad-showing");a.qb?(a.ya||a.Za.wp(),Isa(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),Isa(a));g.Sq(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.ob("enable_html5_teal_ad_badge")&&g.Sq(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
   Isa=function(a){if(a.Ya)!a.Z&&g.lF(a.i.V())&&(a.i.V().experiments.ob("release_player_on_abandon_for_bulleit_living_room")||a.i.V().experiments.ob("release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&a.i.po(2);else if(a.i.po(2),!a.Z){var b=a.i.yb(1);g.U(b,4)&&!g.U(b,2)&&a.i.playVideo()}};
   dra=function(a,b,c){if(b instanceof pA){if(a.Z&&Rja(b)&&g.U(a.i.yb(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.B.has(b)?g.Gs(Error(b.toString()+" has already been seen")):(a.Xo.add(b),a.B.set(b,c),qA(b)||a.i.Ad([b],1))}else g.Gs(Error("Should use AdCueRange instead of CueRange"))};
   Gsa=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.ue(b)};
   IK=function(a){g.I.call(this);this.u=a};
   JK=function(a){IK.call(this,!0);this.i=a};
   Jsa=function(a,b){function c(f){return{toString:f}}
   var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
   d.ASR=c(function(){return e&&e.wl||null});
   d.EI=c(function(){return e&&e.eventId||null});
   d.AD_CPN=c(function(){return b.Ty()});
   d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
   d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
   d.P_H=c(function(){return a.getPlayerSize().height.toString()});
   d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
   d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
   d.LACT=c(function(){return Zu().toString()});
   d.VIS=c(function(){return a.getVisibilityState().toString()});
   d.VOL=c(function(){return a.getVolume().toString()});
   return d};
   Ksa=function(a,b){g.I.call(this);var c=this;this.B=[];this.K=!1;this.u=0;this.D=this.J=this.C=!1;this.Y=null;var d=(0,g.E)(a,b);this.i=new g.M(function(){return d(c.Y)},300);
   g.J(this,this.i);this.Z=this.S=Infinity};
   Lsa=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};
   KK=function(){var a="ytp-id-"+Msa.toString();Msa++;return a};
   g.LK=function(a){g.I.call(this);this.Ya={};this.Zb={};this.element=this.createElement(a)};
   MK=function(a,b,c,d){if("{{"===d.substr(0,2))a.Zb[d]=[b,c];else return d};
   Nsa=function(a,b){var c=[];if(!b)return c;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.G?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.Gg("BR"));c.push(g.Hg(f))}):c.push(g.Hg(d))}return c};
   NK=function(a,b,c,d){if("child"===c){g.Ig(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=Nsa(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Sl(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.uf(g.yf(a))),b.setAttribute(c,a))};
   g.V=function(a){g.LK.call(this,a);this.Ab=!0;this.Z=!1;this.listeners=[]};
   g.OK=function(a,b){b?a.show():a.hide()};
   g.PK=function(a){g.V.call(this,a);this.Ka=new g.R;g.J(this,this.Ka)};
   QK=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.PK.call(this,c);this.api=a;this.Wa=b;this.macros={};this.componentType=d;this.J=null;this.kb=h;this.layoutId=e;this.ub=f;this.Ra=null;this.XF=new JK(this.element);g.J(this,this.XF);this.eb=this.T(this.element,"click",this.onClick);this.ya=[];this.ma=new Ksa(this.onClick,this);g.J(this,this.ma);this.jb=!1;this.S=null};
   Osa=function(a,b,c){a.Wa?a.Wa.executeCommand(b,a.macros,c):g.Gs(Error("null or undefined adService"))};
   RK=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return Is(Error("Got null or undefined adText object")),"";var c=g.ig(a.text);if(!a.isTemplated)return c;if(null==b)return Is(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};
   Psa=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.ig(a.thumbnails[0].url)};
   Qsa=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.cg(0,0):new g.cg(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
   g.Rsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
   fill:"#fff"}}]}};
   SK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
   g.TK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
   g.UK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
   Ssa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",W:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",W:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
   Tsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
   Usa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
   g.VK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
   Vsa=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
   Wsa=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
   Xsa=function(){return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
   Ysa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
   g.WK=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
   XK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
   Zsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
   YK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
   g.ZK=function(){return{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
   $sa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
   ata=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
   bta=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
   cta=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
   g.$K=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
   g.aL=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
   fill:"#fff"}}]}};
   dta=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
   bL=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
   cL=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},
   {G:"path",W:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.VK();case "INFO_OUTLINE":return Xsa();case "REMOVE_CIRCLE":return{G:"svg",
   W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return YK();case "LIKE":return g.WK();case "DISLIKE":return Wsa();default:return g.My(new g.dw("Unexpected icon:",a)),null}};
   dL=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={G:"button",Ha:["ytp-ad-button"].concat(e)};null!=l&&(e.W={tabindex:l});QK.call(this,a,b,e,void 0===f?"button":f,c,d);this.i=this.u=this.B=null;this.C=h;this.hide()};
   eta=function(a){var b=null;null!=a.i&&(b=[a.i.serviceEndpoint,a.i.navigationEndpoint].filter(function(c){return null!=c}),a.i.command&&(b=b.concat(a.i.command)));
   return b||[]};
   eL=function(){g.I.call(this);var a=this;this.i=new Map;this.u=Aha(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.av(b[c],void 0,void 0)})};
   fta=function(){null==fL&&(fL=new eL);return fL};
   gL=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=gta(a))){b=Fg("SPAN",null,b);break a}b=g.Hg(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(hta(e,b))}return 1==c.length?c[0]:Fg("SPAN",null,c)};
   hta=function(a,b){var c=null,d=a.text;b&&(d=gta(d)||d);a.bold&&(c=Fg("B",null,c||d));a.italics&&(c=Fg("I",null,c||d));a.strikethrough&&(c=Fg("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=Fg("A",null,c||d),g.Tf(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),fta().register(c,a),g.N(c,"ytp-ad-has-logging-urls"));
   return c||Fg("SPAN",null,d)};
   gta=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(Fg("BR")),b.push(a[c]);return b}return null};
   hL=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;QK.call(this,a,b,{G:"span",Ha:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.u=null;this.D=f;this.C=e;this.hide()};
   iL=function(a){return a&&a.thumbnails&&!g.xb(a.thumbnails||null)&&a.thumbnails[0].url?g.ig(a.thumbnails[0].url):""};
   jL=function(a,b,c,d,e,f){f=void 0===f?!1:f;QK.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.i=f;this.hide()};
   kL=function(a,b,c,d,e,f){e=void 0===e?[]:e;QK.call(this,a,b,{G:"div",Ha:["ytp-ad-confirm-dialog-background"],U:[{G:"div",L:"ytp-ad-confirm-dialog-container",U:[{G:"div",Ha:["ytp-ad-confirm-dialog"].concat(e),W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-confirm-dialog-title",va:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",va:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
   va:"{{confirmLabel}}"}]}]}]},{G:"button",Ha:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{G:"span",L:"ytp-ad-button-icon",U:[g.VK()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.K=this.Fa("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Fa("ytp-ad-confirm-dialog-cancel-button");this.D=this.Fa("ytp-ad-confirm-dialog-confirm-button");this.Y=this.Fa("ytp-ad-confirm-dialog-messages");this.B=null;this.i=new ky;g.J(this,this.i);this.u=null;this.hide()};
   ita=function(a,b){if(b.title){var c=g.sA(b.title);a.Sa("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=gL(d.value),a.Y.appendChild(d)}b.cancelLabel&&(c=g.sA(b.cancelLabel),a.Sa("cancelLabel",c),a.i.T(a.C,"click",function(e){return a.RB(e)}));
   b.confirmLabel&&(b=g.sA(b.confirmLabel),a.Sa("confirmLabel",b),a.i.T(a.D,"click",function(e){return a.eF(e)}));
   a.i.T(a.K,"click",function(e){return a.dF(e)})};
   lL=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=tH("ytp-ad-toggle-button-input");QK.call(this,a,b,{G:"div",Ha:["ytp-ad-toggle-button"].concat(e),U:[{G:"label",L:"ytp-ad-toggle-button-label",W:{"for":h},U:[{G:"span",L:"ytp-ad-toggle-button-icon",W:{role:"button","aria-label":"{{tooltipText}}"},U:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",va:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",va:"{{toggledIconTemplateSpec}}"}]},{G:"input",
   L:"ytp-ad-toggle-button-input",W:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",va:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",va:"{{tooltipText}}"}]}]},f,c,d);this.B=this.Fa("ytp-ad-toggle-button");this.i=this.Fa("ytp-ad-toggle-button-input");this.Fa("ytp-ad-toggle-button-label");this.Y=this.Fa("ytp-ad-toggle-button-icon");this.D=this.Fa("ytp-ad-toggle-button-untoggled-icon");this.C=this.Fa("ytp-ad-toggle-button-toggled-icon");this.Aa=this.Fa("ytp-ad-toggle-button-text");
   this.u=null;this.K=!1;this.hide()};
   mL=function(a){a.K&&(a.isToggled()?(g.hm(a.D,!1),g.hm(a.C,!0)):(g.hm(a.D,!0),g.hm(a.C,!1)))};
   jta=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
   return c||[]};
   nL=function(a){ky.call(this);this.i=a;this.T(this.i,"onAdUxUpdate",this.S)};
   oL=function(a,b,c,d){QK.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",U:[{G:"div",L:"ytp-ad-feedback-dialog-container",U:[{G:"div",L:"ytp-ad-feedback-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-feedback-dialog-title",U:[{G:"span",va:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",va:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
   va:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.C=[];this.i=null;this.D=this.Fa("ytp-ad-feedback-dialog-cancel-button");this.K=this.Fa("ytp-ad-feedback-dialog-confirm-button");this.Y=this.Fa("ytp-ad-info-dialog-feedback-options");this.Aa=this.Fa("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
   nta=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.i=new dL(a.api,a.Wa,a.layoutId,a.ub,["ytp-ad-feedback-dialog-close-button"],"button"),g.J(a,a.i),a.i.init(tH("button"),c,a.macros),a.i.Qa("click",a.gM,a),a.i.Da(a.element));b.title&&(c=g.sA(b.title),a.Sa("title",c));b.reasonsTitle&&(c=g.sA(b.reasonsTitle),a.Sa("reasonsTitle",c));b.reasons&&kta(a,b.reasons);b.cancelLabel&&(c=g.sA(b.cancelLabel),a.Sa("cancelLabel",c),g.Au(a.D,"click",function(){return a.gM()}));
   b.confirmLabel&&(c=g.sA(b.confirmLabel),a.Sa("confirmLabel",c),g.Au(a.K,"click",function(){return lta(a)}));
   b.undoRenderer&&mta(a,b.undoRenderer)};
   kta=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?Is(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?Is(Error("AdFeedbackReason.endpoint was not set.")):(c=new ota(c,d),g.J(a,c),a.Y.appendChild(c.i.element),a.C.push(c)))}};
   mta=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new dL(a.api,a.Wa,a.layoutId,a.ub,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.J(a,a.u),a.u.init(tH("ad-feedback-undo-mute-button"),b,a.macros),a.u.Qa("click",a.hW,a),a.u.Da(a.Aa)):Is(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
   lta=function(a){var b=a.C.filter(function(c){return c.isChecked()});
   0!==b.length&&(a.Wa.executeCommand(b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ea("a"),a.hide())};
   ota=function(a,b){this.u=b;this.i=new g.PK({G:"label",L:"ytp-ad-feedback-dialog-reason-label",U:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",W:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",va:g.sA(a)}]});this.B=this.i.Fa("ytp-ad-feedback-dialog-reason-input")};
   pL=function(a,b,c,d){kL.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
   qL=function(a,b,c,d,e){QK.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",U:[{G:"div",L:"ytp-ad-info-dialog-container",U:[{G:"div",L:"ytp-ad-info-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-info-dialog-title",va:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},
   "ad-info-dialog",c,d);this.i=this.u=null;this.K=this.Fa("ytp-ad-info-dialog-confirm-button");this.Ua=this.Fa("ytp-ad-info-dialog-mute-container");this.La=this.Fa("ytp-ad-info-dialog-message");this.Ea=this.Fa("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.Aa=e;this.D=null;this.Ja=!1;this.Y=null;this.hide()};
   pta=function(a){(a.D&&a.D.impressionEndpoints||[]).forEach(function(b){return a.Wa.executeCommand(b,a.macros)})};
   qta=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new oL(a.api,a.Wa,a.layoutId,a.ub),g.J(a,a.u),a.u.init(tH("ad-feedback-dialog"),b,a.macros),a.u.Da(a.Aa),a.u.subscribe("a",function(){return a.ea("c")})};
   rta=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new pL(a.api,a.Wa,a.layoutId,a.ub),g.J(a,a.C),a.C.init(tH("ad-mute-confirm-dialog"),b,a.macros),a.C.Da(a.Aa),a.C.subscribe("b",function(){return a.ea("c")})};
   sta=function(a){a.i&&a.i.Qa("click",a.FH,a);g.Au(a.K,"click",function(){return a.FH()})};
   rL=function(a,b,c,d,e,f){hL.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.i=null;this.B=e;this.hide()};
   tta=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.Gs(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.i=new qL(a.api,a.Wa,a.layoutId,a.ub,a.B),g.J(a,a.i),a.i.init(tH("ad-info-dialog"),b,c),a.i.Da(a.B),a.i.subscribe("d",function(){return a.ea("f")}),a.i.subscribe("c",function(){return a.ea("e")}))};
   vta=function(a,b,c){null==a.button?g.Gs(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.N(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(tta(a,b,c),a.button.Qa("click",function(){a.i&&!a.i.Ab&&(a.i.show(),uta(a))})):a.button.Qa("click",function(){return uta(a)}))};
   uta=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
   sL=function(a,b,c,d,e,f){QK.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.i=null;this.hide()};
   tL=function(a,b){b&&g.Ng(a.element,RK(a.i,b))};
   uL=function(a,b,c,d,e,f,h){QK.call(this,a,b,c,d,e,f);this.i=h;g.J(this,this.i);this.Ea=this.C=-1};
   vL=function(a){a.i&&-1===a.C&&(a.C=a.i.subscribe("h",a.ao,a),a.Ea=a.i.subscribe("g",a.qq,a),a.ao())};
   wL=function(a){null!=a.i&&-1!==a.C&&(a.i.eg(a.C),a.i.eg(a.Ea),a.Ea=-1,a.C=-1)};
   g.xL=function(a,b,c,d,e,f){g.I.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.i=f;this.u=e;this.delay=new g.M(this.kB,0,this);g.J(this,this.delay)};
   yL=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
   zL=function(a,b,c,d,e,f){uL.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.La=-1;this.u=new g.PK({G:"span",L:"ytp-ad-preview-container"});g.J(this,this.u);this.B=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-preview-text");g.J(this,this.B);this.B.Da(this.u.element);this.K=new g.PK({G:"span",L:"ytp-ad-preview-image"});g.J(this,this.K);this.D=new jL(this.api,this.Wa,this.layoutId,this.ub);g.J(this,this.D);this.D.Da(this.K.element);this.K.Da(this.u.element);
   this.u.Da(this.element);this.Y=new g.xL(this.u,400,!1,100,function(){return h.hide()});
   g.J(this,this.Y);this.Aa=0;this.Ja=!1;this.Ua=f;this.hide()};
   AL=function(a){a.Y.show(100);a.show()};
   BL=function(a,b,c,d,e){uL.call(this,a,b,{G:"div",Ha:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",U:[{G:"div",L:"ytp-flyout-cta-text-container",U:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.K=new jL(this.api,this.Wa,this.layoutId,this.ub,"ytp-flyout-cta-icon");g.J(this,this.K);this.K.Da(this.Fa("ytp-flyout-cta-icon-container"));
   this.D=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-flyout-cta-headline");g.J(this,this.D);this.D.Da(this.Fa("ytp-flyout-cta-headline-container"));this.B=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-flyout-cta-description");g.J(this,this.B);this.B.Da(this.Fa("ytp-flyout-cta-description-container"));this.u=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-flyout-cta-action-button"]);g.J(this,this.u);this.u.Da(this.Fa("ytp-flyout-cta-action-button-container"));this.Y=null;this.Aa=0;this.hide()};
   CL=function(a,b,c,d,e){QK.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.i=null;this.B=new lL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-instream-user-sentiment-like-button"]);g.J(this,this.B);this.B.Da(this.element);this.u=new lL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-instream-user-sentiment-dislike-button"]);g.J(this,this.u);this.u.Da(this.element);this.C=new g.xL(this,400,!1,500,function(){return f.hide()});
   g.J(this,this.C);this.hide()};
   wta=function(a,b){a.B.init(tH("toggle-button"),a.i.likeButton.toggleButtonRenderer,b);a.u.init(tH("toggle-button"),a.i.dislikeButton.toggleButtonRenderer,b);a.T(a.element,"change",a.GH)};
   DL=function(a,b,c,d,e){e=void 0===e?0:e;g.I.call(this);this.B=a;this.u=!1;this.Z=d;this.J=!1;this.i=null;0<b&&(this.i=new g.M(this.XI,b,this),g.J(this,this.i));this.D=new g.M(this.XI,c,this);g.J(this,this.D);this.S=fr(this.B,e,1,d);g.J(this,this.S);this.K=fr(this.B,0,d,1);g.J(this,this.K);this.C=new ky;g.J(this,this.C)};
   EL=function(a,b,c,d,e,f){uL.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.K=null;this.Aa=!1;this.Ja=f;this.B=new g.PK({G:"span",Ha:["ytp-ad-skip-button-container"]});g.J(this,this.B);this.B.Da(this.element);this.u=this.D=null;this.La=new g.xL(this.B,500,!1,100,function(){return h.hide()});
   g.J(this,this.La);this.Y=new DL(this.B.element,15E3,5E3,.5,.5);g.J(this,this.Y);this.hide()};
   yta=function(a){var b=a.K&&a.K.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return a.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?xta(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
   xta=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
   FL=function(a,b,c,d,e,f){uL.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.Y=f;this.D=!1;this.K=0;this.B=this.u=null;this.hide()};
   zta=function(a,b){a.D||(a.D=!0,a.u&&(b?a.u.Y.hide():a.u.hide()),b?(a=a.B,a.La.show(),a.show()):a.B.show())};
   GL=function(a,b,c,d){dL.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
   HL=function(a,b,c,d,e){e=void 0===e?!1:e;QK.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.i=e;this.hide()};
   IL=function(a,b,c,d,e){e=void 0===e?!1:e;uH.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.ub=d;this.Ji=e};
   JL=function(a,b){g.R.call(this);this.api=a;this.durationMs=b;this.i=null;this.Ae=new ky(this);g.J(this,this.Ae);this.u=Ata;this.Ae.T(this.api,"presentingplayerstatechange",this.Mc);this.i=this.Ae.T(this.api,"onAdPlaybackProgress",this.Qb)};
   KL=function(a,b,c){c=void 0===c?!1:c;g.R.call(this);var d=this;this.Wa=b;this.J=c;this.B=!1;this.C=this.u=0;this.Ae=new ky(this);g.J(this,this.Ae);this.durationMs=a;this.J?(this.i=new g.yh(200),g.J(this,this.i),this.i.Qa("tick",function(){d.Qb()})):(this.i=new g.yh(100),g.J(this,this.i),this.Ae.T(this.i,"tick",this.Qb));
   this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
   g.LL=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";d=(b+(" "+f+" Minutes ")+(c+" Seconds")).trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
   g.ML=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)};
   NL=function(a,b,c,d,e,f){uL.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()};
   OL=function(a,b,c,d){sL.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
   PL=function(a,b){this.u=a;this.i=b};
   QL=function(a){return a.i-a.u};
   RL=function(a,b){return a.u+b*QL(a)};
   SL=function(a,b,c){return QL(a)?g.Xf((b-a.u)/QL(a),0,1):null!=c?c:Infinity};
   TL=function(a,b){g.PK.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.J(this,this.u);this.Oc=this.Fa("ytp-ad-persistent-progress-bar");this.i=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
   UL=function(a,b,c,d,e,f){QK.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.D=f;this.K=this.Fa("ytp-ad-player-overlay-flyout-cta");this.u=this.Fa("ytp-ad-player-overlay-instream-info");this.B=null;Bta(this)&&(a=
   Fg("div"),g.N(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new OL(this.api,this.Wa,this.layoutId,this.ub),c.Da(a),c.init(tH("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.B=a);this.C=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Fa("ytp-ad-player-overlay-progress-bar");this.Y=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.i=e;g.J(this,this.i);this.hide()};
   Bta=function(a){a=a.api.V();return g.fF(a)&&a.isMobile};
   Dta=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ii(window.location.href);e&&d.push(e);e=g.ii(a);if(g.wb(d,e)||!e&&Ya(a,"/"))if(g.Cs("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Tf(d,a),a=d.href),a&&(a=ki(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Ey()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&Cta(a,b,f)}else Cta(a,b)};
   Cta=function(a,b,c){a="ST-"+jg(a).toString(36);b=b?g.ri(b):"";c=c||5;iu()&&g.Nt(a,b,c)};
   VL=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.ti("/sharing_services",a);g.av(d)};
   g.Fta=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.ti(a,b)+c;var e=void 0===e?Sk:e;e=Uk(a,e)||Eta;d.href=Xk(e)};
   g.WL=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.P("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Dta(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.Fta(a))};
   g.XL=function(a,b,c,d){c&&Dta(a,c);c=g.yf(a);c=g.uf(c);a!=c&&Is(Error("Unsafe window.open URL: "+a));a=c;b=b||jg(a).toString(36);var e,f;if(d&&"function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?0:f.features().includes("attribution-reporting")))try{a=Gta(a);var h=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
   window.open(a,b,h);return}catch(l){}window.open(a,b)};
   Gta=function(a){return"www.googleadservices.com"!==g.ii(a)?a:a+"&nis=3"};
   g.Ita=function(a,b,c){b=Hta(null,b,c);if(b=Uf(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.hv("LOGGED_IN",function(d){g.iv(g.P("LOGGED_IN_PUBSUB_KEY",void 0));zs("LOGGED_IN",!0);a(d)}),zs("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
   Hta=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=si(c,"mode",a));a=si(d,"next",c);b&&(a=si(a,"feature",b));return a};
   Jta=function(a,b){var c,d;if(!a)return!1;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Cq)return!!b.Cq[a.signalServiceEndpoint.signal];if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.fD)return!!b.fD[a.continuationCommand.request];for(var e in a)if(b.cD[e])return!0;return!1};
   Kta=function(a,b){var c,d;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Cq){var e=b.Cq[a.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.fD&&(e=b.fD[a.continuationCommand.request]))return new e;for(var f in a)if(b.cD[f]&&(a=b.cD[f]))return new a};
   Mta=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Lta[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(Lta).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.YL=function(a){return"/youtubei/v1/"+Mta(a)};
   ZL=function(a){var b=g.P("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(ki(a)));return a};
   Nta=function(a,b){g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=Rs(a,{key:g.P("INNERTUBE_API_KEY")}));return a};
   $L=function(a,b){return{method:void 0===b?"POST":b,mode:Ss(a)?"same-origin":"cors",credentials:Ss(a)?"same-origin":"include"}};
   aM=function(){};
   bM=function(){};
   cM=function(a,b,c,d){this.B=a;this.Ve=b;this.u=c;this.C=d;this.i=void 0;a.Cq||(a.Cq={});a.Cq=Object.assign(Object.assign({},Ota),a.Cq)};
   Pta=function(a,b,c,d){if(void 0!==cM.i){if(d=cM.i,a=[a!==d.B,b!==d.Ve,c!==d.u,!1,!1,void 0!==d.i],a.some(function(e){return e}))throw new g.dw("InnerTubeTransportService is already initialized",a);
   }else cM.i=new cM(a,b,c,d)};
   eM=function(a,b,c){var d=void 0===d?dM:d;var e=Kta(b,a.B);if(!e)return kh(new g.dw("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new fh(function(h){return g.H(a,function m(){var n,p,q=this,t;return g.B(m,function(u){if(1==u.i)return p="cors"===(null===(n=f.wq)||void 0===n?void 0:n.mode)?"cors":void 0,g.A(u,Qta(q,f.config,p),2);t=u.u;h(Rta(q,f,t));g.sa(u)})})}):kh(new g.dw("Error: Failed to build request for command.",b))};
   g.rK=function(a,b,c,d,e){e=void 0===e?{fp:{identity:dM}}:e;var f=void 0===f?!0:f;b.context||(b.context=lK(d,f));return new fh(function(h){return g.H(a,function m(){var n,p,q=this,t,u,x;return g.B(m,function(y){if(1==y.i)return n=ZL(c),p=Ss(n)?"same-origin":"cors",g.A(y,Qta(q,e,p),2);t=y.u;u=Nta(ZL(c),t);x={input:u,wq:$L(u),Vl:b,config:e};h(Rta(q,x,t));g.sa(y)})})})};
   Rta=function(a,b,c){var d,e,f,h;return g.H(a,function m(){var n=this,p,q,t,u,x,y,z,G,F;return g.B(m,function(C){switch(C.i){case 1:C.fb(2);break;case 3:if((p=C.u)&&!p.isExpired())return C.return(Promise.resolve(p.i()));case 2:q=g.r([]);for(t=q.next();!t.done;t=q.next())u=t.value,u.fba(b.Vl.context);if(null===(d=n.i)||void 0===d?0:d.C(b.input,b.Vl))return C.return(n.i.B(b.input,b.Vl));x=JSON.stringify(b.Vl);b.wq=Object.assign(Object.assign({},b.wq),{headers:c});y=Object.assign({},b.wq);"POST"===b.wq.method&&
   (y=Object.assign(Object.assign({},y),{body:x}));(null===(e=b.config)||void 0===e?0:e.MW)&&TA(b.config.MW);return g.A(C,n.Ve.fetch(b.input,y,b.config),4);case 4:z=C.u;(null===(f=b.config)||void 0===f?0:f.QW)&&TA(b.config.QW);if(z||null===(h=n.i)||void 0===h||!h.i(b.input,b.Vl)){C.fb(5);break}return g.A(C,n.i.u(b.input,b.Vl),6);case 6:z=C.u;case 5:if(z&&n.C)for(G=g.r(n.C),t=G.next();!t.done;t=G.next())F=t.value,F.handleResponse(z,b);return C.return(z)}})})};
   Qta=function(a,b,c){return g.H(a,function e(){var f=this;return g.B(e,function(h){if(f.u.nX){var l=h.return,m,n,p=(null===(n=null===b||void 0===b?void 0:b.fp)||void 0===n?void 0:n.identity)||dM;n=null===(m=null===b||void 0===b?void 0:b.fp)||void 0===m?void 0:m.sessionIndex;m=f.u.Vy(p,{sessionIndex:n});m=Object.assign(Object.assign({},Sta(c)),m);h=l.call(h,m)}else h=h.return(Tta(f,b,c));return h})})};
   Tta=function(a,b,c){var d,e;return g.H(a,function h(){var l,m,n=this,p;return g.B(h,function(q){if(1==q.i){l=(null===(d=null===b||void 0===b?void 0:b.fp)||void 0===d?void 0:d.identity)||dM;m=null===(e=null===b||void 0===b?void 0:b.fp)||void 0===e?void 0:e.sessionIndex;var t=jh(n.u.Vy(l,{sessionIndex:m}));return g.A(q,t,2)}p=q.u;return q.return(Promise.resolve(Object.assign(Object.assign({},Sta(c)),p)))})})};
   Sta=function(a){var b={"Content-Type":"application/json"},c=g.P("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.P("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.P("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.Cs("forward_domain_admin_state_on_embeds")&&(a=g.P("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
   fM=function(){};
   gM=function(){};
   hM=function(){};
   iM=function(){};
   jM=function(){};
   kM=function(){};
   lM=function(){};
   g.nM=function(a,b){if(!mM){var c={cD:{feedbackEndpoint:hM,modifyChannelNotificationPreferenceEndpoint:iM,playlistEditEndpoint:jM,subscribeEndpoint:fM,unsubscribeEndpoint:gM,webPlayerShareEntityServiceEndpoint:kM}},d=g.Cs("web_enable_client_location_service")?kK.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(mK.i||(mK.i=new mK),a=mK.i);void 0===b&&(lM.i||(lM.i=new lM),b=lM.i);Pta(c,b,a,e);mM=cM.i}return mM};
   oM=function(){};
   Uta=function(){oM.i||(oM.i=new oM);return oM.i};
   Wta=function(){if(!g.Cs("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Cs("disable_biscotti_fetch_entirely_for_all_web_clients")&&iu()&&"1"!=nc(g.P("PLAYER_VARS",{}),"privembed",!1)){var a=function(){pM=!0;"google_ad_status"in window?zs("DCLKSTAT",1):zs("DCLKSTAT",2)};
   try{g.Oz("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Vta.push(g.Pu(0,function(){if(!(pM||"google_ad_status"in window)){try{if(a){var b=""+g.Na(a),c=rja[b];c&&g.iv(c)}}catch(d){}pM=!0;zs("DCLKSTAT",3)}},5E3))}};
   Xta=function(){var a=Number(g.P("DCLKSTAT",0));return isNaN(a)?0:a};
   qM=function(){};
   Yta=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
   Xv=function(a,b){var c=this;this.handleError=a;this.i=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
   this.B=Math.random()<=Ds("ytidb_transaction_ended_event_rate_limit",.02)};
   $ta=function(a,b){qM.getInstance().estimate().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Zta(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Zta(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
   Zta=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
   rM=function(){this.u=!1;this.i=null};
   bua=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.u=!0,g.Oz(c,function(){a.u=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)aua(a,d,!!h,l,e);else{l=qja(c);var m=document.getElementById(l);m&&(lv(l),m.parentNode.removeChild(m));g.My(new g.dw("Unable to load Botguard","from "+c))}},f)):b&&(f=g.Gg("SCRIPT"),f.textContent=b,f.nonce=Vf(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?aua(a,d,!!h,b,e):g.My(Error("Unable to load Botguard from JS")))};
   aua=function(a,b,c,d,e){var f,h;if(d=d?null===(f=window.trayride)||void 0===f?void 0:f.ad:null===(h=window.botguard)||void 0===h?void 0:h.bg)if(c)try{cua(a,new d(b,e?function(){return e(b)}:g.Ha))}catch(l){l instanceof Error&&g.My(l)}else{try{cua(a,new d(b))}catch(l){l instanceof Error&&g.My(l)}e&&e(b)}else g.My(Error("Failed to finish initializing VM"))};
   dua=function(a,b){var c=g.sM;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.i?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
   new Promise(function(d){c.i?c.i.hasOwnProperty("hot")?c.i.hot(d,!0,a):c.i.invoke(d,!0,a):d(null)})]):Promise.resolve(null)};
   cua=function(a,b){a.i=b};
   eua=function(){WA("bg_l",void 0,"player_att");tM=(0,g.Q)()};
   g.fua=function(a,b,c){a.program&&(g.sM.u?0:!tM||72E5<(0,g.Q)()-tM)&&(WA("bg_i",void 0,"player_att"),g.sM.initialize(a,eua,b,c))};
   gua=function(a){a=void 0===a?{}:a;return g.sM.invoke(a)};
   hua=function(a){var b=Ds("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return dua(a,b)};
   jua=function(a,b,c,d){var e=window.location.search;if(38===b.Ka&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.ti("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.OX});if(30===b.Ka&&"docs"===a.playerStyle)return g.ti("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.tI,authkey:b.authKey,eurl:a.Fc});if(33===b.Ka&&"google-live"===a.playerStyle)return g.ti("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
   "yt"!==a.ya&&g.Ly(Error("getVideoInfoUrl for invalid namespace: "+a.ya));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Fc,ps:a.playerStyle,el:SG(b),hl:a.Nd,list:b.playlistId,agcid:b.kL,aqi:b.adQueryId,sts:18911,lact:Zu()};Object.assign(f,a.deviceParams);a.Za&&(f.forced_experiments=a.Za);b.La?(f.vvt=b.La,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.nf()&&(f.access_token=b.nf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
   (f.break_type=b.breakType);null!==b.xu&&(f.ad_id=b.xu);null!==b.Au&&(f.ad_sys=b.Au);null!==b.kD&&(f.encoded_ad_playback_context=b.kD);b.jC&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ra&&2!==a.Ra&&(f.cc_load_policy=a.Ra);var h=g.Kv(g.Iv.getInstance(),65);g.zF(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.Vp&&(f.endscreen_ad_tracking=
   b.Vp);(h=a.S.get(b.videoId))&&h.xx&&(f.ic_track=h.xx);b.Ya&&(f.itct=b.Ya);VG(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Fk&&(f.autonav="1");b.VE&&(f.noiba="1");a.N("send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Hf&&(f.ytr=b.Hf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Hf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.El&&(f.ytrcc=b.El);b.LF&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);
   b.Tg&&(h=3===b.Tg.split("|").length,f.force_ad_params=h?b.Tg:"||"+b.Tg);b.zd&&(f.preload=b.zd);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.hf&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");TG(b)&&(f.content_v=TG(b));b.kb&&(f.livemonitor=1);a.Z&&(f.authuser=a.Z);a.pageId&&(f.pageid=a.pageId);a.Aa&&(f.ei=a.Aa);a.i&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.bH&&(f.live_start_walltime=b.bH);a.u&&b.Wg&&(f.live_manifest_duration=b.Wg);a.u&&b.playerParams&&
   (f.player_params=b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.lC&&(f.tkn=b.lC);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.zb&&(f.kpt=b.zb);b.Qj&&(f.kids_age_up_mode=b.Qj);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.No&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ma?(c=null!=b.ma.latitudeE7&&null!=b.ma.longitudeE7?b.ma.latitudeE7+","+b.ma.longitudeE7:",",c+=","+(b.ma.clientPermissionState||0)+","+
   (b.ma.locationRadiusMeters||"")+","+(b.ma.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.Yi&&(f.internalipoverride=b.Yi);a.embedConfig&&(f.embed_config=a.embedConfig);a.Ui&&(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.So&&b.Uo&&(f.clip=b.So,f.clipt=b.Uo);b.yp&&(f.disable_watch_next="1");b.Ug&&(f.forced_by_var="1");for(var l in f)!iua.has(l)&&f[l]&&512<String(f[l]).length&&(g.My(Error("GVI param too long: "+l)),f[l]="");b=a.Ea;g.eF(a)&&(b=gA(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Ea);a=g.ti(b+"get_video_info",f);e&&(a=At(a,e));return a};
   g.uM=function(a,b){return a.Ea+"timedtext_video?ref=player&v="+b.videoId};
   g.vM=function(a){var b={};b.feature=a;return b};
   kua=function(a){var b={};a.IB&&(b.ytrext=a.IB);return g.lc(b)?void 0:b};
   g.lua=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){if(g.sM.Zd()){var c="";b.videoData&&b.videoData.Aa&&(c=b.videoData.Aa+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);WA("bg_v",void 0,"player_att");c=gua(c);WA("bg_s",void 0,"player_att");c=c?"r1a="+c:"r1c=2"}else WA("bg_e",void 0,"player_att"),c=window.trayride||window.botguard?"r1c=1":"r1c=4";return c},a.c3a=function(c){return"r3a="+Math.floor(b.videoData.lengthSeconds%Number(c.c3a)).toString()},
   a.c6a=function(c){return"r6a="+(Number(c.c)^Xta())},a);
   this.videoData&&this.videoData.Aa?this.i=g.Ms(this.videoData.Aa):this.i={}};
   g.mua=function(a){if(a.videoData&&a.videoData.Aa){for(var b=[a.videoData.Aa],c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.u[d]&&(d=a.u[d](a.i))&&b.push(d);return b.join("&")}return null};
   oua=function(a){var b={};Object.assign(b,a.u);"c1b"in a.i&&(b.c1a=function(){return nua(a)});
   if(a.videoData&&a.videoData.Aa){for(var c=[a.videoData.Aa],d=g.r(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.i[e]&&b[e]&&(e=b[e](a.i))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
   nua=function(a){if(!g.sM.Zd())return WA("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Aa&&(b=a.videoData.Aa+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){WA("bg_v",void 0,"player_att");hua(c).then(function(e){e?(WA("bg_s",void 0,"player_att"),d("r1a="+e)):(WA("bg_e",void 0,"player_att"),d("r1c=2"))},function(){WA("bg_e",void 0,"player_att");
   d("r1c=3")})})};
   pua=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return wM(a)};
   wM=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
   qua=function(a,b,c,d){if(g.La(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};
   zM=function(a,b){g.I.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.D={};this.K={};this.u={};this.S=[];this.J={};this.C={};this.B=null;this.Z=new Set;xM(this,"cueVideoById",this.cueVideoById);xM(this,"loadVideoById",this.loadVideoById);xM(this,"cueVideoByUrl",this.cueVideoByUrl);xM(this,"loadVideoByUrl",this.loadVideoByUrl);xM(this,"playVideo",this.playVideo);xM(this,"pauseVideo",this.pauseVideo);xM(this,"stopVideo",this.stopVideo);xM(this,"clearVideo",this.clearVideo);
   xM(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);xM(this,"getVideoBytesTotal",this.getVideoBytesTotal);xM(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);xM(this,"getVideoStartBytes",this.getVideoStartBytes);xM(this,"cuePlaylist",this.cuePlaylist);xM(this,"loadPlaylist",this.loadPlaylist);xM(this,"nextVideo",this.nextVideo);xM(this,"previousVideo",this.previousVideo);xM(this,"playVideoAt",this.playVideoAt);xM(this,"setShuffle",this.setShuffle);xM(this,"setLoop",this.setLoop);xM(this,
   "getPlaylist",this.RR);xM(this,"getPlaylistIndex",this.getPlaylistIndex);xM(this,"getPlaylistId",this.getPlaylistId);xM(this,"loadModule",this.loadModule);xM(this,"unloadModule",this.unloadModule);xM(this,"setOption",this.setOption);xM(this,"getOption",this.getOption);xM(this,"getOptions",this.getOptions);xM(this,"mute",this.mute);xM(this,"unMute",this.unMute);xM(this,"isMuted",this.isMuted);xM(this,"setVolume",this.setVolume);xM(this,"getVolume",this.getVolume);xM(this,"seekTo",this.seekTo);xM(this,
   "getPlayerMode",this.getPlayerMode);xM(this,"getPlayerState",this.getPlayerState);xM(this,"getPlaybackRate",this.getPlaybackRate);xM(this,"setPlaybackRate",this.setPlaybackRate);xM(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);xM(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
   xM(this,"setPlaybackQuality",this.setPlaybackQuality);xM(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);xM(this,"getCurrentTime",this.getCurrentTime);xM(this,"getDuration",this.getDuration);xM(this,"addEventListener",this.XQ);xM(this,"removeEventListener",this.HW);xM(this,"getDebugText",this.getDebugText);xM(this,"getVideoData",function(){return c.kz()});
   xM(this,"addCueRange",this.addCueRange);xM(this,"removeCueRange",this.removeCueRange);xM(this,"setSize",this.setSize);xM(this,"getApiInterface",this.getApiInterface);xM(this,"destroy",this.destroy);xM(this,"showVideoInfo",this.showVideoInfo);xM(this,"hideVideoInfo",this.hideVideoInfo);xM(this,"isVideoInfoVisible",this.isVideoInfoVisible);xM(this,"getSphericalProperties",this.getSphericalProperties);xM(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.V();a.D||(xM(this,"getVideoEmbedCode",
   this.getVideoEmbedCode),xM(this,"getVideoUrl",this.getVideoUrl));xM(this,"getMediaReferenceTime",this.getMediaReferenceTime);a.D||xM(this,"logImaAdEvent",this.logImaAdEvent);yM(this,"getInternalApiInterface",this.getInternalApiInterface);yM(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);yM(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);yM(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);yM(this,"getAdState",this.getAdState);yM(this,"sendAbandonmentPing",this.sendAbandonmentPing);
   yM(this,"setLoopRange",this.setLoopRange);yM(this,"getLoopRange",this.getLoopRange);yM(this,"setAutonavState",this.setAutonavState);yM(this,"seekToLiveHead",this.seekToLiveHead);yM(this,"seekToStreamTime",this.seekToStreamTime);yM(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);yM(this,"startSeekCsiAction",this.startSeekCsiAction);yM(this,"getStreamTimeOffset",this.getStreamTimeOffset);yM(this,"getVideoData",this.kz);yM(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);yM(this,
   "downloadVideo",this.downloadVideo);yM(this,"refreshAllVideos",this.refreshAllVideos);yM(this,"deleteVideos",this.deleteVideos);yM(this,"deleteAllVideos",this.deleteAllVideos);yM(this,"isOrchestrationLeader",this.isOrchestrationLeader);yM(this,"getAppState",this.getAppState);yM(this,"addInfoCardXml",this.addInfoCardXml);yM(this,"updateLastActiveTime",this.updateLastActiveTime);yM(this,"setBlackout",this.setBlackout);yM(this,"setAccountLinkState",this.setAccountLinkState);yM(this,"updateAccountLinkingConfig",
   this.updateAccountLinkingConfig);yM(this,"setUserEngagement",this.setUserEngagement);yM(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);yM(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);yM(this,"getPresentingPlayerType",this.getPresentingPlayerType);yM(this,"canPlayType",this.canPlayType);yM(this,"updatePlaylist",this.updatePlaylist);yM(this,"updateVideoData",this.updateVideoData);yM(this,"updateEnvironmentData",this.updateEnvironmentData);yM(this,"sendVideoStatsEngageEvent",
   this.sendVideoStatsEngageEvent);yM(this,"setCardsVisible",this.setCardsVisible);yM(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);yM(this,"setSafetyMode",this.setSafetyMode);yM(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
   yM(this,"getVideoAspectRatio",this.getVideoAspectRatio);yM(this,"getPreferredQuality",this.getPreferredQuality);yM(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);yM(this,"onAdUxClicked",this.onAdUxClicked);yM(this,"getFeedbackProductData",this.getFeedbackProductData);yM(this,"getStoryboardFrame",this.getStoryboardFrame);yM(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);yM(this,"getStoryboardLevel",this.getStoryboardLevel);yM(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
   yM(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);yM(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);yM(this,"addUtcCueRange",this.addUtcCueRange);yM(this,"showAirplayPicker",this.showAirplayPicker);yM(this,"setAutonav",this.setAutonav);yM(this,"isNotServable",this.isNotServable);yM(this,"channelSubscribed",this.channelSubscribed);yM(this,"channelUnsubscribed",this.channelUnsubscribed);yM(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);yM(this,
   "togglePictureInPicture",this.togglePictureInPicture);yM(this,"supportsGaplessAudio",this.supportsGaplessAudio);yM(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
   yM(this,"clearQueue",this.clearQueue);yM(this,"isFastLoad",function(){return!1});
   yM(this,"getPlayerResponse",this.getPlayerResponse);yM(this,"getAudioTrack",this.GR);yM(this,"setAudioTrack",this.setAudioTrack);yM(this,"getAvailableAudioTracks",this.HR);yM(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);yM(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);yM(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);yM(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);yM(this,"setMinimized",this.setMinimized);yM(this,"confirmYpcRental",
   this.confirmYpcRental);yM(this,"setInlinePreview",this.setInlinePreview);yM(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);yM(this,"handleExternalCall",this.handleExternalCall);yM(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);yM(this,"getStatsForNerds",this.getStatsForNerds);yM(this,"setScreenLayer",this.setScreenLayer);yM(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);yM(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);yM(this,"shouldSendVisibilityState",
   this.shouldSendVisibilityState);yM(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);yM(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);yM(this,"setGlobalCrop",this.setGlobalCrop);yM(this,"getVisibilityState",this.getVisibilityState);yM(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);yM(this,"setInternalSize",this.setInternalSize)};
   xM=function(a,b,c){a.D[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.oa();return c.apply(a,e)};
   a.u.hasOwnProperty(b)||yM(a,b,c);a.S.push(b)};
   AM=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.oa();return c.apply(a,e)};
   a.u.hasOwnProperty(b)||yM(a,b,c);a.S.push(b)};
   yM=function(a,b,c){a.u[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.oa();return c.apply(a,e)}};
   vsa=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.K),a.B.addEventListener=function(b,c){rua(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Na(c));
   var d=a.C[c];d&&(a.app.Jl.unsubscribe(b,d),b=a.C,c in b&&delete b[c])});
   return a.B};
   rua=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Na(c));if(!a.C[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Ga(c).apply(window,l)}:e=c;
   var f=function(h){e({target:a.B,data:h})};
   a.C[d]=f;a.app.Jl.subscribe(b,f)}};
   sua=function(a,b,c){b=g.Xf(Math.floor(b),0,100);isFinite(b)&&BM(a.app,{volume:b,muted:a.isMuted()},c)};
   tua=function(a,b){BM(a.app,{muted:!0,volume:a.getVolume()},b)};
   uua=function(a,b){BM(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
   g.DM=function(a){var b=CM(a.app.wb());if(b)return b.wv();a=a.app.wb();a=g.hF(a.I.V())?a.Ed.get("music"):void 0;return a?a.wv():null};
   FM=function(a,b){zM.call(this,a,b);var c=this;this.i=!1;AM(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(EM(c,d),e)});
   AM(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(EM(c,d),e,f,h)});
   AM(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(EM(c,d),e,f,h)});
   AM(this,"seekBy",this.seekBy);AM(this,"mutedAutoplay",this.mutedAutoplay);AM(this,"showControls",this.showControls);AM(this,"hideControls",this.hideControls);AM(this,"cancelPlayback",this.cancelPlayback);AM(this,"getProgressState",this.getProgressState);AM(this,"isInline",this.isInline);AM(this,"setInline",this.setInline);AM(this,"setLoopVideo",this.setLoopVideo);AM(this,"getLoopVideo",this.getLoopVideo);AM(this,"getStoryboardFormat",this.getStoryboardFormat);AM(this,"getVideoContentRect",this.getVideoContentRect);
   AM(this,"toggleFullscreen",this.toggleFullscreen);AM(this,"isFullscreen",this.isFullscreen);AM(this,"getVideoStats",this.getVideoStats);AM(this,"getPlayerSize",this.getPlayerSize);AM(this,"toggleSubtitles",this.toggleSubtitles);AM(this,"setCenterCrop",this.setCenterCrop);AM(this,"setFauxFullscreen",this.setFauxFullscreen);AM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);AM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);AM(this,"setSizeStyle",this.setSizeStyle);AM(this,"wakeUpControls",this.wakeUpControls)};
   EM=function(a,b){var c={};if(a.app.V().K){a=g.r(vua);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(wua),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
   xua=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
   g.GM=function(a){FM.call(this,a);this.settingsMenu=null};
   HM=function(a){a=a.wb();var b=a.Ed.get("endscreen");return b&&b.Aq()?!0:a.ex()||g.hF(a.I.V())};
   g.IM=function(a,b){3===a.getPresentingPlayerType()?a.ea("mdxautoplaycancel"):a.ea("autonavcancel",b)};
   g.KM=function(a){var b=JM(a.wb());return a.app.pg&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Ak()||!!a.getPlaylist()};
   g.MM=function(a){return(a=g.LM(a.wb()))?a.gz():{}};
   g.yua=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
   g.zua=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.eb)};
   g.NM=function(a,b,c){a=a.bb().element;var d=Lb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
   0>d&&(d=-(d+1));g.Jg(a,b,d);b.setAttribute("data-layer",String(c))};
   g.OM=function(a){var b=a.V();if(!b.Mb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!bH(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&&
   (!d||e)&&!g.wb(c.ya,"ypc")&&!a&&(!g.XE(b)||f)};
   Aua=function(a){a=g.PM(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.i||b.eH)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.Ba("iqss",d,!0),!0):!1};
   QM=function(a){this.X=a;this.u=this.i=NaN;this.B=g.rE(this.X.experiments,"h5_csi_seek_latency_action_sampling")||1};
   RM=function(a,b){this.X=a;this.timerName="";this.u=!1;this.B=new QM(a);this.i=b||null;this.u=!1};
   Bua=function(a,b,c){var d=g.cF(b.C)&&!b.C.D;if(b.C.Wg&&(ZE(b.C)||DF(b.C)||d)&&!a.u){a.u=!0;g.P("TIMING_ACTION")||zs("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&zs("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.i){b=a.i.Ap();d=g.r(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,TA(e,b[e],a.timerName);b=a.i.Su;d=g.r(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.SA(e,b[e],a.timerName);b=a.i;b.i={};b.Su={}}g.SA("yt_pvis",nka(),a.timerName);g.SA("yt_pt","html5",a.timerName);
   c&&!VA("pbs",a.timerName)&&a.tick("pbs",c);c=a.X;DF(c)||ZE(c)||a.timerName||!VA("_start")||XA()}};
   SM=function(a,b){g.R.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=Ks(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 MF("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.NF(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.r(a);for(c=a.next();!c.done;c=a.next())(c=
   c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=OF(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
   TM=function(a){return!!(a.playlist||a.list||a.api)};
   Cua=function(a){var b=a.index+1;return b>=a.length?0:b};
   Dua=function(a){var b=a.index-1;return 0>b?a.length-1:b};
   g.UM=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 oG(a.u,b),g.J(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
   VM=function(a,b){a.index=g.Xf(b,0,a.length-1);a.startSeconds=0};
   WM=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.UM(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;if(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;c<a.items.length;c++)if(a.items[c].video_id===b){a.index=
   c;break}a.setShuffle(!1);a.loaded=!0;a.B++;a.i&&a.i()}};
   g.XM=function(a){var b=a.V(),c=Eua(b),d=a.Ya;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=SG(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.kb?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.Qj)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:Fua[e]}});a.No&&(d.unpluggedAppInfo={enableFilterMode:!0});
   if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.zd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=Gua[b];c.request=d;d=c.user||{};if(b=a.La)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.zb)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};
   Eua=function(a){var b=lK(),c=b.client||{};if(a.Za){var d=a.Za.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(Object.assign({},c.tvAppInfo),{livingRoomAppMode:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c.enableSafetyMode=!0);b.user=c;if(a=a.Fc)b.thirdParty={embedUrl:a};
   return b};
   Lua=function(a,b,c){var d=a.videoId,e=g.XM(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Zu()),referer:document.location.toString(),signatureTimestamp:18911};g.Iv.getInstance();a.Fk&&(h.autonav=!0);g.Kv(0,141)&&(h.autonavState=g.Kv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Kv(0,66);VG(a)&&(h.autoplay=!0);f.u&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.Tg;if(l){var m={},n=[];l=l.split(",");
   l=g.r(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.r(q);for(var t=q.next();!t.done;t=q.next()){var u=g.r(t.value.split("="));t=u.next().value;u=ka(u);p[t]=u.join("=")}q=p.url;t=p.presetad;u=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),u&&(m.viralAdResponseUrl=u),x&&(m.viralCampaignId=String(x));
   else if("video_ad"===p.adtype){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=Hua[p.breaktype])y.breakType=p;q&&(y.url=q);t&&(y.presetAd=t);u&&(y.viralAdResponseUrl=u);x&&(y.viralCampaignId=String(x));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.bH;if(null!=m){m={startWalltime:String(m)};if(n=a.Wg)m.manifestDuration=String(n||14400);h.liveContext=
   m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.hf&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if((n=a.isMdxPlayback)||f.N("send_mdx_remote_data_if_present"))m.triggeredByMdx=n;if(n=a.El)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Hf){n=a.IB;l=[];p=g.r(p.split(","));for(q=p.next();!q.done;q=p.next())if(t=q.value)if((q=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:Iua[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:Jua[t[0]]||
   "UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:Kua[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(z){g.My(z)}u&&(t={params:[{key:"ms",value:u.ms}]},q.osName=u.os_name,q.userAgent=u.user_agent,q.windowHeightPoints=u.window_height_points,q.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,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.XE(f)&&!f.N("embeds_enable_sending_ancestor_origins_killswitch")&&h&&(h.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=
   e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.Kv(g.Iv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.zF(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.nN&&(d.captionParams.deviceCaptionsLangPref=a.nN);a.pC.length?d.captionParams.viewerSelectedCaptionLangs=a.pC:g.vF(e)&&e.N("web_player_i_see_captions_2")&&(e=g.Kma(),null===e||void 0===e?0:e.length)&&(d.captionParams.viewerSelectedCaptionLangs=
   e);e="onesie"===a.fetchType&&a.N("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");if(e||f)e=a.V(),e.Tg&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=e.Tg),a.N("html5_session_po_token_interval_time_ms")||nF(e);return d};
   Mua=function(a){return{context:lK(),videoIds:a}};
   Pua=function(a,b){return g.H(this,function d(){var e,f,h,l,m;return g.B(d,function(n){if(1==n.i){e=g.nM();var p=a.V(),q={context:g.XM(a)};p=p.embedConfig;var t,u,x,y,z,G;var F=b.docid||b.video_id||b.videoId||b.id;if(!F){F=b.raw_embedded_player_response;if(!F&&!g.Cs("parse_video_id_from_serialized_embedded_player_response_killswitch")){var C=b.embedded_player_response;C&&(F=JSON.parse(C))}F=F?(null===(G=null===(z=null===(y=null===(x=null===(u=null===(t=null===F||void 0===F?void 0:F.embedPreview)||
   void 0===t?void 0:t.thumbnailPreviewRenderer)||void 0===u?void 0:u.playButton)||void 0===x?void 0:x.buttonRenderer)||void 0===y?void 0:y.navigationEndpoint)||void 0===z?void 0:z.watchEndpoint)||void 0===G?void 0:G.videoId)||null:null}t=(t=F)?t:void 0;u=a.playlistId?a.playlistId:b.list;x=b.listType;if(u){var K;"user_uploads"===x?K={username:u}:K={playlistId:u};Nua(p,t,b,K);q.playlistRequest=K}else b.playlist?(K={templistVideoIds:b.playlist.toString().split(",")},Nua(p,t,b,K),q.playlistRequest=K):t&&
   (K={videoId:t},p&&(K.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=K);f=q;h=g.YL(Oua);return g.A(n,g.rK(e,f,h),2)}l=n.u;m=a.V();b.raw_embedded_player_response=l;return n.return(new oG(m,b))})})};
   Nua=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
   g.ZM=function(a,b){YM.get(a);YM.set(a,b)};
   g.$M=function(a){g.R.call(this);this.loaded=!1;this.player=a};
   Qua=function(){this.u=[];this.i=[]};
   g.aN=function(a,b){return b?a.i.concat(a.u):a.i};
   g.bN=function(a,b){switch(b.kind){case "asr":Rua(b,a.u);break;default:Rua(b,a.i)}};
   Rua=function(a,b){g.tb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
   g.cN=function(a){g.I.call(this);this.X=a;this.u=new Qua;this.C=[]};
   g.dN=function(a,b,c){g.cN.call(this,a);this.audioTrack=c;this.i=null;this.C=b.yC};
   Sua=function(){this.i=this.fg=this.u=!1};
   Tua=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Bk?!1:c.Bk;var d=new Sua;d.u=a.N("html5_streaming_xhr_no_mp4_holdback_chunk");d.fg=b||c;d.i=a.N("html5_simplify_streaming_xhr");return d};
   g.Uua=function(a){this.i=a;this.D=new Sua;this.rl=this.ql=!1;this.Zj=2;this.K=20971520;this.Z=8388608;this.J=120;this.jb=3145728;this.Ea=62914560;this.qb=10485760;this.dk=g.rE(this.i.experiments,"html5_min_readbehind_secs");this.tu=g.rE(this.i.experiments,"html5_min_readbehind_cap_secs");this.pu=g.rE(this.i.experiments,"html5_max_readbehind_secs");this.yu=this.i.N("html5_trim_future_discontiguous_ranges");this.ou=this.i.N("has_transaction_queue_limit_exceeded_killswitch");this.Nb=NaN;this.Kh=0;this.Mi=
   this.Mo=2;this.Tg=3;this.Uo=2;this.Ja=2097152;this.So=1048576;this.Ya=!1;this.cd=1800;this.Xj=5;this.Aa=15;this.qd=1;this.B=1.15;this.C=1.05;this.ll=!0;this.La=!1;this.tp=.8;this.Pj=this.Hb=!1;this.vb=6;this.Y=this.eb=!1;this.ac=0;this.Zg=this.i.N("html5_stop_overlapping_requests");this.ek=0;this.Tq=this.i.N("html5_append_init_while_paused");this.bk=g.rE(this.i.experiments,"html5_max_readahead_bandwidth_cap");this.ul=g.rE(this.i.experiments,"html5_post_interrupt_readahead");this.zb=5E3;this.Lo=100;
   this.Yi=6;this.Yh=1;this.Wg=1.6;this.Za=!1;this.ma=.5;this.uc=2;this.kc=this.Kq=0;this.Lq=1.5;this.Mq=this.dh=.5;this.zd=15;this.Tj=1;this.Up=this.Qf=!1;this.Yj=0;this.Hl=this.Gq=this.Ro=this.Rj=this.wl=this.ol=!1;this.Db=2;this.Vp=this.Fq=this.Ui=!1;this.ye=0;this.hf=this.No=this.Og=this.ya=this.Jq=this.Pf=this.Xp=!1;this.Jh=this.i.N("html5_unrewrite_timestamps");this.Ua=!0;this.Tc=this.Zb=this.vl=this.Ra=!1;this.Nj=!0;this.Ug=!1;this.u="";this.qr=1048576;this.Fc=[];this.rr=this.i.N("html5_woffle_resume");
   this.Qj=this.Di=this.dd=this.Oj=!1;this.Ge=46800;this.wh=this.kb=!1;this.Uq=this.i.N("html5_audio_only_eos_fix_killswitch");this.Lp=this.Si=this.Oi=this.xl=!1;this.wu=this.i.N("html5_reject_promise_if_seeking_to_head_killswitch");this.Mj=!1;this.S=0;this.Vi="";this.Wq=this.i.N("html5_max_drift_per_track_secs")||this.i.N("html5_rewrite_manifestless_for_sync")||this.i.N("html5_check_segnum_discontinuity");this.lr=this.i.N("html5_disable_codec_for_playback_on_error");this.Ei=this.Sq=this.Zi=this.Kg=
   !1;this.Nd=0;this.xu=bu();this.jl=this.mq=this.Sj=!1;this.Vq=this.i.N("html5_skip_buffer_check_seek_to_head");this.tq=this.wc=!1;this.Xq=!this.i.N("html5_mfl_config_fallback_killswitch");this.Gi=this.Wi=!1;this.Ye=8192;this.Ka=this.Mb=!1;this.yp=1;this.Cu=this.i.N("html5_update_readahead_from_real_byterates");this.Au=this.i.N("html5_onesie_live");this.vu=this.i.N("html5_onesie_probe_during_read");this.uu=g.rE(this.i.experiments,"html5_onesie_live_ttl_secs")||8};
   Vua=function(a,b){1080<b.video.i&&!a.ql&&(a.K=36700160,a.Z=5242880,a.jb=10485760,a.Ja=4194304,a.ql=!0);2160<b.video.i&&!a.rl&&(a.K=104857600,a.Nb=13107200,a.rl=!0);b.isEncrypted()&&g.Wt()&&Tt("kant")&&(a.Nb=1310720);b.Nb&&(a.So=Math.max(65536,Math.min(a.Ja,5*b.Nb)))};
   g.eN=function(a,b){return sD(a.info.mimeType)?b?a.info.lc()===b:!0:!1};
   g.Wua=function(a,b){if(null!=a.i&&g.xF(b.V())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.tf())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.eN(c,"386")});
   a=!!a.i&&!a.i.isManifestless&&bma(a.i);return b||a};
   g.fN=function(a,b,c,d,e){g.cN.call(this,a);this.videoId=c;this.PK=e;this.D={};this.i=null;a=d||g.Os(b).hl||"";a=a.split("_").join("-");this.B=Qs(b,{hl:a})};
   gN=function(a,b){g.I.call(this);this.I=a;this.D=b;this.Su={};this.i={};this.u=null;this.C=new Set;this.Ed=new Map;this.B=a.V().N("web_player_defer_modules")};
   g.hN=function(a){return a.Ed.get("captions")};
   Zua=function(a,b){switch(b){case "ad":return iN(a);case "annotations_module":return b=a.I.V(),a=a.I.getVideoData(),a.gH||"3"===b.controlsType?!1:b.S.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Ra||!!g.QG(a)||!!g.RG(a):!0;case "attribution":return a=a.I.V(),a.N("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.I.V(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.I.getVideoData(),
   a=!!a&&(!!g.upa(a)||!!g.vpa(a))),a;case "embed":return g.XE(a.I.V());case "endscreen":return g.Xua(a);case "heartbeat":return a.jG();case "inline_preview":return a.I.V().showInlinePreviewUi;case "kids":return mF(a.I.V());case "remote":return a.I.V().hf;case "miniplayer":return a.I.V().showMiniplayerUiWhenMinimized;case "music":return g.hF(a.I.V());case "captions":return b=a.I.getVideoData(),!!b.Zb||!!b.captionTracks.length||g.Wua(b,a.I);case "unplugged":return g.eF(a.I.V());case "ux":return a.I.V().vb;
   case "webgl":return Yua(a);case "ypc":return a.ex();case "ypc_clickwrap":return a=a.I.getVideoData(),a.Mi&&!a.BF;case "yto":return!!a.I.getVideoData().ya.includes("yto");default:return g.Ly(Error("Module descriptor "+b+" does not match")),!1}};
   jN=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Ed.get(b);if(!h||d)if(e||(e=function(){jN(a,b,c,d)}),f||(f=function(){a.I.Md(b)}),h=h||$ua(a,b,Zua(a,b),e,f))a.Ed.set(b,h),h.create(),c&&a.I.Oa("onApiChange")};
   ava=function(a){a.B&&(jN(a,"endscreen"),a.iD(),jN(a,"creatorendscreen",!0))};
   g.Xua=function(a){var b=a.I.V();if(DF(b)||b.D||!b.zb&&!b.cd)return!1;var c=a.I.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.I.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.N("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");return!c||b};
   g.LM=function(a){return a.Ed.get("webgl")};
   Yua=function(a){var b=a.I.getVideoData();a=a.I.V();var c=g.$t(),d=a.N("enable_spherical_kabuki"),e=g.CF(a);if(g.PG(b))return c||d||e||a.N("html5_enable_spherical");if(g.MG(b))return e||c||d||a.N("html5_enable_spherical");if(g.NG(b))return e||c||a.N("html5_enable_spherical3d");if(g.OG(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.FG(b)&&!c&&(a.N("enable_webgl_noop")||a.N("html5_enable_bicubicsharp"))};
   bva=function(a){a.I.V().N("web_player_ux_module_wait")&&a.Ed.get("ux")&&a.I.Md("ux")};
   cva=function(a){bva(a);jN(a,"ux",!0)};
   iN=function(a){if(a=a.I.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
   $ua=function(a,b,c,d,e){try{if(c){var f=YM.get(b);if(f)return new f(a.I);dva(a,b,d,e)}else a.I.Md(b)}catch(h){a.I.Md(b),g.Ly(h)}return null};
   kN=function(a,b,c){for(var d=g.r(a.Ed),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Ii(b))&&(g.ue(f),a.Ed.delete(e))}};
   lN=function(a){return a.Ed.get("ad")};
   mN=function(a){if(mF(a.I.V()))return a.Ed.get("kids")};
   JM=function(a){if(a.I.V().hf)return a.Ed.get("remote")};
   nN=function(a){if(g.eF(a.I.V()))return a.Ed.get("unplugged")};
   CM=function(a){if(a.I.V().vb)return a.Ed.get("ux")};
   g.oN=function(a){return a.Ed.get("annotations_module")};
   pN=function(a){return a.Ed.get("creatorendscreen")};
   fva=function(a){var b=a.D.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){eva(a,b,function(){return g.H(a,function f(){var h,l;return g.B(f,function(m){if(1==m.i)return h=g.D.loadWasm,"function"!==typeof h?(d("noloadwasm"),m.fb(0)):g.A(m,h(),3);l=m.u;c(l);g.sa(m)})})},function(){d("player wasm load failure")})})};
   dva=function(a,b,c,d){if(a.D){var e=gva[b];eva(a,a.D+e,function(){a.C.add(e);c.call(a)},d)}};
   eva=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
   function f(){a.isDisposed()||c.call(a)}
   for(var h=g.sg("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.Gg("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){Tg(f);q&&q.apply(window,[y])};
   var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var z=new g.dw("Unable to load player module",b,document.location&&document.location.origin);g.Ly(z)}Tg(e);t&&t(y)};
   var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Tg(f)}x&&x(y)};
   l&&((h=a.I.V().cspNonce)&&m.setAttribute("nonce",h),g.Zk(m,g.ir(b)),h=g.sg("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.we(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
   qN=function(a,b,c){g.xe.call(this,b,a);this.i=c};
   g.rN=function(a){OJ.call(this);var b=this;this.i=a;this.C={};this.listener=function(c){b.dispatchEvent(new qN(b,c.type,c))}};
   tN=function(a,b,c,d,e){g.R.call(this);var f=this;this.target=a;this.oy=b;this.u=0;this.J=!1;this.C=new g.ag(NaN,NaN);this.i=new g.uD(this);this.Aa=this.B=this.K=null;g.J(this,this.i);b=d||e?4E3:3E3;this.Z=new g.M(function(){sN(f,1,!1)},b,this);
   g.J(this,this.Z);this.Y=new g.M(function(){sN(f,2,!1)},b,this);
   g.J(this,this.Y);this.ma=new g.M(function(){sN(f,512,!1)},b,this);
   g.J(this,this.ma);this.ya=c&&0<c.cd.length?5E3:3E3;d||(this.B=this.i.T(a,"mouseover",this.Wz),this.i.T(a,"mousemove",this.cT),this.i.T(a,"mouseleave",this.dT));Ul?this.i.T(a,"keypress",this.KS):this.i.T(a,"focusin",this.JR);this.D=this.i.T(a,"mousedown",this.NL);this.S=this.i.T(a,"touchstart",this.jO,void 0,!0);sN(this,640,!0)};
   hva=function(a){sN(a,4,!1);a.K&&(a.i.jc(a.K),a.K=null,a.B=a.i.T(a.target,"mouseover",a.Wz));a.B&&(a.i.jc(a.B),a.B=a.i.T(a.target,"mouseover",a.Wz))};
   sN=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.Z.start(),b&2&&a.Y.start()):(a.u&=~b,b&1&&a.Z.stop(),b&2&&a.Y.stop(),b&512&&a.ma.stop());a.u&512&&!(a.u&128)&&g.Jq(a.ma,a.ya);b=!a.u;d!==b&&a.ea("autohideupdate",b)};
   g.uN=function(a){g.V.call(this,{G:"button",Ha:["ytp-large-play-button","ytp-button"],W:{"aria-label":"Play"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Pa);this.Pa()};
   vN=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().D&&b.push("ytp-exp-contain-thumbnail");g.V.call(this,{G:"div",Ha:b,U:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");var c=new g.uN(a);g.J(this,c);c.Da(b);this.B=new g.uD(this);g.J(this,this.B);this.api=a;this.D=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.xL(this,250);g.J(this,this.u);this.i=new g.M(this.Pa,0,this);g.J(this,this.i);this.Pa();this.T(a,"appresize",this.xb);this.T(a,
   "presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.sW);ZE(a.V())&&this.T(a,"videoplayerreset",this.mP)};
   iva=function(a){var b=!a.V().Qf&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
   g.wN=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.ML(a))return g.Gu(a),!0;b.pauseVideo();a=e.getAttribute("href");g.WL(a,d,!0);return!1};
   g.xN=function(a,b,c){if(tF(b.V())&&2!==b.getPresentingPlayerType()){if(g.ML(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.Gu(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.XE(b.V())&&(gu()||eu()))b=c.target,b instanceof HTMLAnchorElement&&(a=Uk(a),b.href=Xk(a));else{var d=g.ML(c);d&&b.pauseVideo();g.WL(a,void 0,!0);d&&(g.XL(a),g.Gu(c))}return!1};
   jva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
   fill:"#fff"}}]}};
   yN=function(){return{G:"div",L:"ytp-spinner-container",U:[{G:"div",L:"ytp-spinner-rotator",U:[{G:"div",L:"ytp-spinner-left",U:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",U:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
   zN=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
   AN=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.Ye?g.rI("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
   g.BN=function(a){g.V.call(this,{G:"div",Ha:["ytp-error"],W:{role:"alert"},U:[{G:"div",L:"ytp-error-content",U:[{G:"div",L:"ytp-error-icon-container",U:[{G:"svg",W:{fill:"#fff",viewBox:"0 0 48 48"},U:[{G:"path",W:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",W:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",L:"ytp-error-content-wrap",
   U:[{G:"div",L:"ytp-error-content-wrap-reason",va:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",va:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
   g.CN=function(a){a=a.split(kva);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",W:{href:a[c],target:a[c+1]},va:a[c+2]})}return{G:"span",U:b}};
   EN=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.V().i);a=a.api.getVideoData();b=g.rI(g.DN[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",va:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",W:{href:c,target:e?"_blank":null},va:b[2]});d.push(b[4]);return{G:"span",U:d}};
   lva=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
   mva=function(a){for(var b=0;b<a.keys.length;b++)a.jc(a.keys[b]);a.keys=[]};
   FN=function(a){g.uD.call(this);this.I=a;this.i=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Mh);this.onVideoDataChange()};
   GN=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
   a.i.add(b)};
   nva=function(a){GN(a,"play",function(){a.I.playVideo()});
   GN(a,"pause",function(){a.I.pauseVideo()});
   GN(a,"seekbackward",function(){a.I.seekBy(-5*a.I.getPlaybackRate())});
   GN(a,"seekforward",function(){a.I.seekBy(5*a.I.getPlaybackRate())})};
   ova=function(a){var b,c;a=a.I.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null===(c=null===(b=null===a||void 0===a?void 0:a.playerOverlayRenderer)||void 0===b?void 0:b.browserMediaSession)||void 0===c?void 0:c.browserMediaSessionRenderer};
   pva=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.iA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
   qva=function(a){var b=a.I.yb();b=b.isCued()||b.isError()?"none":g.YJ(b)?"playing":"paused";a.mediaSession.playbackState=b};
   HN=function(a){g.V.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.C=!1;this.ud=this.i=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.yF(b)?(this.u=new g.V({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",va:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",va:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",va:"{{chevron}}"}]}),
   this.T(this.u.element,"click",this.onClick)):this.u=new g.V({G:"div",Ha:["ytp-button","ytp-paid-content-overlay-text"],va:"{{text}}"});this.B=new g.xL(this.u,250,!1,100);g.J(this,this.u);this.u.Da(this.element);g.J(this,this.B);this.I.Rg(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Mc)};
   rva=function(a,b){var c=rpa(b),d=GG(b);if(a.i)b.videoId&&b.videoId!==a.videoId&&(g.Lq(a.i),a.videoId=b.videoId,a.C=!!d);else if(c&&d){var e,f,h,l;a.i=new g.M(a.Eb,d,a);g.J(a,a.i);b=null===(f=null===(e=b.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;e=null===b||void 0===b?void 0:b.navigationEndpoint;f=null===(h=null===b||void 0===b?void 0:b.icon)||void 0===h?void 0:h.iconType;h=null===(l=null===e||void 0===e?void 0:e.urlEndpoint)||void 0===
   l?void 0:l.url;a.I.ym(a.element,(null===e||void 0===e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!==h&&void 0!==h?h:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
   fill:"white"}}]}:null,chevron:h?g.UK():null})}};
   sva=function(a,b){a.i&&(g.U(b,8)&&a.C?(a.C=!1,a.td(),a.i.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
   IN=function(a){g.V.call(this,{G:"div",L:"ytp-spinner",U:[yN(),{G:"div",L:"ytp-spinner-message",va:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.i=new g.M(this.show,500,this);g.J(this,this.i);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.yb();tva(a)?this.i.start():this.hide()};
   tva=function(a){return g.U(a,128)?!1:g.U(a,16)||g.U(a,1)?!0:!1};
   g.JN=function(a,b,c,d){d=void 0===d?!1:d;g.PK.call(this,b);var e=this;this.I=a;this.Ea=d;this.K=new g.uD(this);this.Y=new g.xL(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.J(this,this.K);g.J(this,this.Y)};
   uva=function(a){a.u&&(document.activeElement&&g.Mg(a.element,document.activeElement)&&(Pg(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.my(a.K);a.S=void 0};
   KN=function(a,b,c){a.Wf()?a.Eb():a.td(b,c)};
   LN=function(a){var b=g.jE(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ha:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
   {G:"div",Ha:["ytp-unmute-text"],va:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ha:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.JN.call(this,a,{G:"button",Ha:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.i=this.clicked=!1;this.api=a;this.api.Rb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",
   this.Mh);this.Qa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.XE(this.api.V());g.OK(this,a);a&&vva(this);this.B=a};
   vva=function(a){a.i||(a.i=!0,a.api.ib(a.element,!0))};
   g.NN=function(a){g.uD.call(this);var b=this;this.api=a;this.iG=!1;this.Dk=null;this.zy=!1;this.ze=null;this.hD=this.dB=!1;this.HG=this.JG=null;this.tL=NaN;this.GG=this.Yu=!1;this.nw=0;this.AC=[];var c=a.V(),d=a.bb();this.YI=new g.M(this.ZE,0,this);g.J(this,this.YI);g.hF(c)||(this.Ir=new vN(a),g.J(this,this.Ir),g.NM(a,this.Ir.element,4));if(wva(this)){var e=new IN(a);g.J(this,e);e=e.element;g.NM(a,e,4)}var f=a.getVideoData();this.rd=new tN(d,function(l){return b.oy(l)},f,c.qd,AF(c));
   g.J(this,this.rd);this.rd.subscribe("autohideupdate",this.vj,this);var h=new HN(a);g.J(this,h);g.NM(a,h.element,4);this.iB=new LN(a);g.J(this,this.iB);g.NM(this.api,this.iB.element,2);this.hE=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.cB=new g.M(this.qt,200,this);g.J(this,this.cB);this.AE=f.videoId;this.yN=new g.M(function(){b.nw=0},350);
   g.J(this,this.yN);this.Cy=new g.M(function(){b.GG||MN(b)},350,this);
   g.J(this,this.Cy);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.N(f,"ytp-color-white")}g.hF(c)&&g.N(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new FN(a),g.J(this,f));this.T(a,"appresize",this.xb);this.T(a,"presentingplayerstatechange",this.Mh);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.WU);this.T(a,"autonavvisibility",
   function(){b.Dm()});
   this.T(a,"sizestylechange",function(){b.Dm()});
   this.T(d,"click",this.vV,this);this.T(d,"dblclick",this.wV,this);c.Ua&&(this.T(d,"gesturechange",this.xV,this),this.T(d,"gestureend",this.yV,this));this.Qn=[d.Ru];this.Ir&&this.Qn.push(this.Ir.element);e&&this.Qn.push(e)};
   ON=function(a,b){if(!b)return!1;var c=a.api.jd();if(c.Po()&&(c=c.Me())&&g.Mg(c,b))return c.controls;for(c=0;c<a.Qn.length;c++)if(g.Mg(a.Qn[c],b))return!1;return g.Qq(b,"ytp-player-content")||g.Qq(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
   xva=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.bb().pz||!1)&&a.api.V().isMobile&&PN&&11<=aH;a=a.api.V().C&&PN;return!(!b&&!a)};
   QN=function(a,b){return!ON(a,Du(b))&&g.ML(b)};
   MN=function(a){a.rd.Wk();if(a.api.V().N("web_player_touch_mode_improvements")&&a.dB&&a.hD)a.hD=!1;else if(!a.api.V().ma&&!a.vk()){var b=a.api.yb();g.U(b,2)&&HM(a.api)||a.Bq(b);if(!a.api.V().Ua||b.isCued()||g.U(b,1024)){var c=a.api.UA();g.Zv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.U(b,1024);c&&(b.isCued()||d)?(g.Zv("embedsRequestStorageAccessState",{isCued:b.isCued(),Taa:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Zv("embedsRequestStorageAccessFailedState",
   {state:b.state}),a.qt())}else a.cB.isActive()?(a.qz(),a.cB.stop()):a.cB.start()}};
   yva=function(a,b){return g.ML(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.yb(),!g.U(b,4)||g.U(b,8)||g.U(b,2)||a.qt(),!0):!1};
   zva=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
   wva=function(a){a=Ut()&&67<=Rt()&&!a.api.V().C;return!Tt("tizen")&&!UE&&!a&&!0};
   RN=function(a,b){b=void 0===b?2:b;g.R.call(this);this.api=a;this.i=null;this.Ae=new ky(this);g.J(this,this.Ae);this.u=Ata;this.Ae.T(this.api,"presentingplayerstatechange",this.Mc);this.i=this.Ae.T(this.api,"progresssync",this.Qb);this.Kj=b;1===this.Kj&&this.Qb()};
   SN=function(a){g.V.call(this,{G:"button",Ha:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Ob:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.OK(this,a.V().showBackButton);this.Qa("click",this.onClick)};
   g.TN=function(a){g.V.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",va:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.I=a;this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,500,this);g.J(this,this.u);g.J(this,this.i);this.hide()};
   VN=function(a,b,c){if(0>=b){c=bL();b="muted";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
   fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";UN(a,c,b,d+"%")};
   Ava=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.I.getPlaybackRate(),d=g.rI("Speed is $RATE",{RATE:String(c)});UN(a,b,d,c+"x")};
   UN=function(a,b,c,d){d=void 0===d?"":d;a.Sa("label",void 0===c?"":c);a.Sa("icon",b);g.Lq(a.i);a.u.start();a.Sa("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)};
   XN=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.XE(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().N("player_new_info_card_format")?Ysa():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
   {G:"div",L:"ytp-cards-button-title",va:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
   "fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
   L:"ytp-cards-button-title",va:"Shopping"}]}]});this.I=a;this.B=b;this.C=c;this.i=null;this.u=new g.xL(this,250,!0,100);g.J(this,this.u);g.O(this.C,"ytp-show-cards-title",g.XE(a.V()));this.hide();this.Qa("click",this.onClicked);this.Qa("mouseover",this.uU);WN(this,!0)};
   WN=function(a,b){b?a.i=g.YN(a.B.fc(),a.element):(a.i=a.i,a.i(),a.i=null)};
   ZN=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().N("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},U:[Ysa()]},{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.VK()]}]:[{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var d=this;this.I=a;this.Y=
   b;this.di=c;this.C=new g.xL(this,250,!1,250);this.i=null;this.K=new g.M(this.IU,300,this);this.J=new g.M(this.HU,2E3,this);this.D=[];this.u=null;this.S=new g.M(function(){d.element.style.margin="0"},250);
   this.B=null;g.J(this,this.C);g.J(this,this.K);g.J(this,this.J);g.J(this,this.S);a.V().N("player_new_info_card_format")?(g.N(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.zi),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.xG),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.xG)):this.Qa("click",this.xG);this.T(c.element,"mouseover",this.IH);this.T(c.element,"mouseout",this.HH);this.T(a,"cardsteasershow",this.VV);this.T(a,
   "cardsteaserhide",this.Eb);this.T(a,"cardstatechange",this.uO);this.T(a,"presentingplayerstatechange",this.uO);this.T(a,"appresize",this.VG);this.T(a,"onShowControls",this.VG);this.T(a,"onHideControls",this.kR);this.Qa("mouseenter",this.oP)};
   aO=function(a){g.V.call(this,{G:"button",Ha:[$N.BUTTON,$N.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:$N.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.ZK()]},{G:"div",L:$N.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
   this.api=a;this.i=!1;a.Rb(this.element,this,36927);this.Qa("click",this.onClick,this);this.Sa("pressed",!1);this.Sa("label","Get notified about every new video")};
   Bva=function(a,b){a.i=b;a.element.classList.toggle($N.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.nC:c.mC)?(a=a.api.Ml())?eM(a,b):g.Gs(Error("No innertube service available when updating notification preferences.")):g.Gs(Error("No update preferences command available.")):g.Gs(Error("No video data when updating notification preferences."))};
   g.cO=function(a,b,c,d,e,f,h,l,m,n,p,q,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var u=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.cF(u)||g.gF(u))c.target=u.J;g.V.call(this,{G:"div",Ha:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",va:b}:""]}]});f&&g.N(this.element,
   "ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.cF(u)&&!u.N("subscribe_tooltipkillswitch");g.V.call(this,{G:"div",Ha:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.rI("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":EF(u),"data-tooltip-opaque":String(g.XE(u)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?
   {G:"div",L:"ytp-sb-count",va:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.rI("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":EF(u),"data-tooltip-opaque":String(g.XE(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",va:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.Fa("ytp-sb-subscribe"),z=this.Fa("ytp-sb-unsubscribe");
   f&&g.N(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var G=function(){var C=x.channelId;if(m||n){var K={c:C};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))K="";else{var S;g.sM.Zd()&&(S=gua(K));K=S||""}if(S=q.getVideoData())if(S=S.subscribeCommand){var L=q.Ml();L?(eM(L,S,{botguardResponse:K,feature:m}),q.Oa("SUBSCRIBE",C)):g.Gs(Error("No innertube service available when updating subscriptions."))}else g.Gs(Error("No subscribe command in videoData."));else g.Gs(Error("No video data available when updating subscription."))}z.focus();
   z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},F=function(){var C=x.channelId;
   if(m||n){var K=q.getVideoData();eM(q.Ml(),K.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",C)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
   this.T(y,"click",G);this.T(z,"click",F);this.T(y,"keypress",function(C){13===C.keyCode&&G(C)});
   this.T(z,"keypress",function(C){13===C.keyCode&&F(C)});
   this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.i&&p&&(this.tooltip=this.i.fc(),bO(this.tooltip),g.we(this,g.YN(this.tooltip,y)),g.we(this,g.YN(this.tooltip,z)))}else g.N(y,"ytp-sb-disabled"),g.N(z,"ytp-sb-disabled")}};
   dO=function(a,b){g.V.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().J,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().J,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
   L:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Fa("ytp-title-channel");this.i=this.Fa("ytp-title-channel-logo");this.C=this.Fa("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.XE(this.api.V());a.Rb(this.i,this,36925);this.D&&Cva(this);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.Pa();g.XE(this.api.V())&&(this.api.V().N("embeds_web_enable_hiding_login_buttons")||this.api.V().N("embeds_web_enable_always_hiding_login_buttons"))&&
   g.N(this.element,"ytp-flyout-fix-experiment")};
   Cva=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.Ei){var d=b.Z?null:Hta(),e=new g.cO("Subscribe",null,"Subscribed",null,!0,!1,c.Ri,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.J(a,e);e.Da(a.C);a.api.Rb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.Fb(e.element)});
   var f=new aO(a.api);a.u=f;g.J(a,f);f.Da(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Di&&f.show()});
   a.T(a.api,"UNSUBSCRIBE",function(){c.Di&&(f.hide(),Bva(f,!1))})}a.Sa("flyoutUnfocusable","true");
   a.Sa("channelTitleFocusable","-1");b.isMobile?a.T(a.i,"click",function(h){Dva(a)&&(h.preventDefault(),a.isExpanded()?a.bD():a.wD());a.api.Fb(a.i)}):(a.T(a.channel,"mouseenter",a.wD),a.T(a.channel,"mouseleave",a.bD),a.T(a.channel,"focusin",a.wD),a.T(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.bD()}),a.T(a.i,"click",function(){a.api.Fb(a.i)}));
   a.B=new g.M(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.ib(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.ib(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
   g.J(a,a.B);a.T(a.channel,Eva,function(){Fva(a)});
   a.T(a.api,"onHideControls",a.SF);a.T(a.api,"appresize",a.SF);a.T(a.api,"fullscreentoggled",a.SF)};
   Fva=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
   Dva=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
   g.fO=function(a,b,c,d){g.PK.call(this,a);this.priority=b;c&&g.eO(this,c);d&&this.kd(d)};
   g.gO=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Ha:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",va:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",va:"{{label}}"},{G:"div",L:"ytp-menuitem-content",va:"{{content}}"}]}};
   hO=function(a,b){a.Sa("icon",b)};
   g.eO=function(a,b){a.Sa("label",b)};
   iO=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",U:[{G:"button",Ha:["ytp-button",l],U:[c]}]};if(e){var n="ytp-panel-options";m.U.unshift({G:"button",Ha:["ytp-button",n],U:[d]})}h.U=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,h.U?h.U.push(f):h.U=[f]);g.PK.call(this,h);this.content=b;d&&h.U?b.Da(this.element,h.U.length-1):b.Da(this.element);this.JK=!1;this.uS=d;c&&(c=this.Fa(l),this.T(c,"click",this.LT),this.JK=!0,
   e&&(n=this.Fa(n),this.T(n,"click",e)));b.subscribe("size-change",this.iM,this);this.T(a,"fullscreentoggled",this.iM)};
   g.jO=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.PK({G:"div",L:"ytp-panel-menu",W:h});iO.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)};
   g.kO=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.qF,a);a.items=[];g.Ig(a.menuItems.element);a.menuItems.ea("size-change")};
   Gva=function(a,b){return b.priority-a.priority};
   lO=function(a){var b=g.gO({"aria-haspopup":"true"});g.fO.call(this,b,a);this.Qa("keydown",this.i)};
   mO=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
   nO=function(a,b){g.fO.call(this,g.gO({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Qa("click",this.onClick)};
   oO=function(a,b,c,d){var e;g.jO.call(this,a);this.I=a;this.Bb=c;this.xc=d;this.getVideoUrl=new lO(6);this.jj=new lO(5);this.gj=new lO(4);this.Ib=new lO(3);this.Tw=new g.fO(g.gO({href:"{{href}}",target:this.I.V().J},void 0,!0),2,"Troubleshoot playback issue");this.Gr=new g.PK({G:"div",Ha:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.AJ=new iO(this.I,this.Gr);this.Gn=null;this.I.V().Oj&&(this.ri=new nO("Loop",7),g.J(this,this.ri),this.Gc(this.ri,!0),this.ri.Qa("click",
   this.BU,this),a.Rb(this.ri.element,this.ri,28661));g.J(this,this.getVideoUrl);this.Gc(this.getVideoUrl,!0);this.getVideoUrl.Qa("click",this.rU,this);a.Rb(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.jj);this.Gc(this.jj,!0);this.jj.Qa("click",this.sU,this);a.Rb(this.jj.element,this.jj,28660);g.J(this,this.gj);this.Gc(this.gj,!0);this.gj.Qa("click",this.qU,this);a.Rb(this.gj.element,this.gj,28658);g.J(this,this.Ib);this.Gc(this.Ib,!0);this.Ib.Qa("click",this.pU,this);g.J(this,this.Tw);
   this.Gc(this.Tw,!0);this.Tw.Qa("click",this.qV,this);b=new g.fO(g.gO(),1,"Stats for nerds");g.J(this,b);this.Gc(b,!0);b.Qa("click",this.JV,this);g.J(this,this.Gr);this.Gr.Qa("click",this.eU,this);g.J(this,this.AJ);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.ej&&g.Ic(43)&&(c=!0);g.fj&&!g.Ic(41)&&(c=!1);c&&(this.Gn=new g.V({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.J(this,this.Gn),this.Gn.Da(this.element));null===(e=this.ri)||void 0===e?void 0:hO(e,{G:"svg",
   W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});hO(this.Ib,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
   fill:"white","fill-rule":"evenodd"}}]});hO(this.Tw,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
   fill:"white","fill-rule":"evenodd"}}]});hO(b,Xsa());this.T(a,"loopchange",this.tM);this.T(a,"videodatachange",this.onVideoDataChange);Hva(this);Iva(this,this.I.getVideoData())};
   qO=function(a,b){var c=!1;if(a.Gn){var d=a.Gn.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Bb.Eb():(a.Gr.kd(b,"text"),g.pO(a.Bb,a.AJ),zN(a.Gr.element),a.Gn&&(a.Gn=null,Hva(a)));return c};
   Iva=function(a,b){var c,d=a.I.V(),e=2===a.I.getPresentingPlayerType(),f=!e||b.isListed;f=!d.K&&!!b.videoId&&f;"play"!==d.playerStyle?d="https://support.google.com/youtube/?p=report_playback":(d={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(d.fmt=b.u.lc()),b.clientPlaybackNonce&&(d.cpn=b.clientPlaybackNonce),b.Ka&&(d.partnerid=b.Ka),d=g.ti("//support.google.com/googleplay/",d));g.OK(a.gj,f&&b.allowEmbed);g.OK(a.getVideoUrl,f);g.OK(a.jj,f&&!b.isLivePlayback);
   a.Tw.kd(d,"href");null===(c=a.ri)||void 0===c?void 0:g.OK(c,!b.isLivePlayback&&!e)};
   Hva=function(a){var b=!!a.Gn;g.eO(a.Ib,b?"Copy debug info":"Get debug info");mO(a.Ib,!b);g.eO(a.gj,b?"Copy embed code":"Get embed code");mO(a.gj,!b);g.eO(a.getVideoUrl,b?"Copy video URL":"Get video URL");mO(a.getVideoUrl,!b);g.eO(a.jj,b?"Copy video URL at current time":"Get video URL at current time");mO(a.jj,!b);hO(a.gj,b?Vsa():null);hO(a.getVideoUrl,b?XK():null);hO(a.jj,b?XK():null)};
   g.rO=function(a,b){g.JN.call(this,a,{G:"div",Ha:["ytp-popup",b||""]},100,!0);this.i=[];this.J=this.C=null;this.Nx=this.maxWidth=0;this.size=new g.cg(0,0);this.Qa("keydown",this.pP)};
   Jva=function(a){var b=a.i[a.i.length-1];if(b){g.fm(a.element,a.maxWidth||"100%",a.Nx||"100%");g.Sl(b.element,"minWidth","250px");g.Sl(b.element,"width","");g.Sl(b.element,"height","");g.Sl(b.element,"maxWidth","100%");g.Sl(b.element,"maxHeight","100%");g.Sl(b.content.element,"height","");var c=g.gm(b.element);c.width+=1;c.height+=1;g.Sl(b.element,"width",c.width+"px");g.Sl(b.element,"height",c.height+"px");g.Sl(b.element,"maxWidth","");g.Sl(b.element,"maxHeight","");var d=0;b.JK&&(d=b.Fa("ytp-panel-header"),
   d=g.gm(d).height);var e=0;b.uS&&(e=b.Fa("ytp-panel-footer"),g.Sl(e,"width",c.width+"px"),e=g.gm(e).height);g.Sl(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.Sl(b.element,"width",c.width+"px")));a.size=c}};
   g.pO=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);sO(a,c,b)};
   g.tO=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];sO(a,b,c,!0)}};
   sO=function(a,b,c,d){Kva(a);b&&(b.unsubscribe("size-change",a.Bt,a),b.unsubscribe("back",a.kh,a));c.subscribe("size-change",a.Bt,a);c.subscribe("back",a.kh,a);if(a.Ab){g.N(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Da(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;Jva(a);g.fm(a.element,e);a.C=new g.M(function(){Lva(a,b,c,d)},20,a);
   a.C.start()}else c.Da(a.element),b&&b.detach()};
   Lva=function(a,b,c,d){a.C.dispose();a.C=null;g.N(a.element,"ytp-popup-animating");d?(g.N(b.element,"ytp-panel-animate-forward"),g.Sq(c.element,"ytp-panel-animate-back")):(g.N(b.element,"ytp-panel-animate-back"),g.Sq(c.element,"ytp-panel-animate-forward"));g.fm(a.element,a.size);a.J=new g.M(function(){g.Sq(a.element,"ytp-popup-animating");b.detach();g.Tq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a);
   a.J.start()};
   Kva=function(a){a.C&&g.Kq(a.C);a.J&&g.Kq(a.J)};
   g.uO=function(a,b,c){g.rO.call(this,a);this.Aa=b;this.xc=c;this.B=new g.uD(this);this.ma=new g.M(this.bW,1E3,this);this.ya=this.D=null;g.J(this,this.B);g.J(this,this.ma);a.Rb(this.element,this,28656);g.N(this.element,"ytp-contextmenu");Mva(this);this.hide()};
   Mva=function(a){g.my(a.B);if("gvn"!==a.I.V().playerStyle){var b=a.I.bb();a.B.T(b,"contextmenu",a.bU);a.B.T(b,"touchstart",a.rP,null,!0);a.B.T(b,"touchmove",a.QM,null,!0);a.B.T(b,"touchend",a.QM,null,!0)}};
   Nva=function(a){a.I.isFullscreen()?g.NM(a.I,a.element,9):a.Da(document.body)};
   g.vO=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{G:"button",Ha:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.XE(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",va:"{{icon}}"},{G:"div",L:"ytp-copylink-title",va:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.u=c;this.visible=!1;this.tooltip=this.i.fc();b=a.V();bO(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.XE(b)&&!g.hF(b));a.Rb(this.element,this,86570);this.Qa("click",
   this.onClick);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.T(a,"appresize",this.Pa);this.Pa();g.we(this,g.YN(this.tooltip,this.element))};
   Ova=function(a){a.Sa("icon",SK());if(a.api.V().isMobile)wO(a.tooltip,a.element,"Link copied to clipboard");else{a.Sa("title-attr","Link copied to clipboard");xO(a.tooltip);wO(a.tooltip,a.element);var b=a.Qa("mouseleave",function(){a.jc(b);a.Pa();a.tooltip.cj()})}};
   Pva=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return ua(f,2),g.A(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);wa(f);var h=f.return,l=!1,m=g.Gg("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(du){var p=window.getSelection();p.removeAllRanges();var q=document.createRange();q.selectNodeContents(m);p.addRange(q);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m);
   return h.call(f,l)})})};
   yO=function(){g.V.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ha:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",va:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",va:"{{seekTime}}"}]}]}]});this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,700,this);
   g.J(this,this.u);g.J(this,this.i);this.hide()};
   zO=function(a){g.V.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",
   L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",va:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.M(this.show,10,this);this.u=new g.M(this.hide,700,this);this.i=this.Fa("ytp-doubletap-static-circle");g.J(this,this.B);g.J(this,this.u);this.hide();this.C=this.Fa("ytp-doubletap-fast-forward-ve");this.D=this.Fa("ytp-doubletap-rewind-ve");this.I.Rb(this.C,this,28240);this.I.Rb(this.D,this,28239);this.I.ib(this.C,!0);this.I.ib(this.D,
   !0)};
   Qva=function(a,b){b=g.rI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Sa("seekTime",b)};
   AO=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
   BO=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};
   Rva=function(a,b){b=BO(a,b)+1;return b<a.length?b:-1};
   Sva=function(a,b){return BO(a,b)-1};
   g.DO=function(a,b,c,d,e,f,h){g.uD.call(this);var l=this;this.api=a;this.contextMenu=c;this.rd=d;this.xc=e;this.i=f;this.C=h;this.B=new g.M(function(){Tva(l,!1)},1E3);
   this.u="";g.J(this,this.B);this.T(b,"mousedown",function(){CO(l,!1)});
   this.T(c.element,"mousedown",function(){CO(l,!1)});
   this.T(b,"keydown",this.BK);this.T(c.element,"keydown",this.BK);this.T(b,"keyup",this.CK);this.T(c.element,"keyup",this.CK)};
   CO=function(a,b){g.O(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.O(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
   FO=function(a,b,c,d){var e=g.hN(a.api.wb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.EO.length;h++){var l=g.EO[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);Tva(a,!0);a.B.start()}};
   Uva=function(a,b){a.api.sf();if(g.U(a.api.yb(),4)){var c=a.api.getVideoData().u;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
   Tva=function(a,b){g.hN(a.api.wb())&&a.api.setOption("captions","sampleSubtitles",b)};
   GO=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-button","ytp-overflow-button"],W:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},U:[{G:"div",L:"ytp-overflow-icon",U:[{G:"svg",W:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{G:"path",W:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.I=a;this.i=b;this.visible=!1;this.tooltip=this.i.fc();
   a.Rb(this.element,this,16499);this.T(a,"appresize",this.Pa);this.T(a,"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();g.we(this,g.YN(this.tooltip,this.element));this.Qa("click",function(){a.Fb(d.element);KN(c,d.element,!1)})};
   HO=function(a,b){g.JN.call(this,a,{G:"div",L:"ytp-overflow-panel",W:{id:KK(),role:"dialog"},U:[{G:"div",L:"ytp-overflow-panel-content",U:[{G:"div",L:"ytp-overflow-panel-action-buttons",va:"{{buttons}}"}]},{G:"button",Ha:["ytp-overflow-panel-close","ytp-button"],W:{title:"Close"},U:[g.VK()]}]},250);this.actionButtons=[];this.tooltip=b.fc();this.i=this.Fa("ytp-overflow-panel-content");this.closeButton=this.Fa("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Eb);g.we(this,g.YN(this.tooltip,
   this.closeButton));this.Qa("click",this.sP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
   IO=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Sa("buttons",a.actionButtons))};
   Vva=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Yb(b)};
   JO=function(a,b,c){var d=g.UM(b,c),e=a.V(),f=d.Ie("default.jpg");g.V.call(this,{G:"a",Ha:["ytp-video-menu-item","ytp-button"],W:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},U:[{G:"div",L:"ytp-video-menu-item-index",va:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",va:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",W:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",va:d.title},{G:"div",
   L:"ytp-video-menu-item-author",va:d.author}]});this.api=a;this.index=c;this.Qa("click",this.onClick)};
   KO=function(a){g.JN.call(this,a,{G:"div",L:"ytp-playlist-menu",W:{role:"dialog",id:KK()},U:[{G:"div",L:"ytp-playlist-menu-header",U:[{G:"div",L:"ytp-playlist-menu-title",U:[{G:"a",L:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},va:"{{title}}"},{G:"button",Ha:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.VK()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",va:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",W:{role:"menu"}}]},250);this.api=a;this.selected=this.C=
   this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.B=new g.uD(this);this.i=[];a=this.Fa("ytp-playlist-menu-close");this.T(a,"click",this.Eb);a=this.Fa("ytp-playlist-menu-title-name");this.T(a,"click",this.aW);g.J(this,this.B);this.hide()};
   LO=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-playlist-menu-button","ytp-button"],W:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},U:[{G:"div",L:"ytp-playlist-menu-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
   fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",va:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.fc();a.Rb(this.element,this,70344);this.T(a,"videodatachange",this.i);this.T(a,"onPlaylistUpdate",this.i);this.T(a,"presentingplayerstatechange",this.Pa);this.T(a,"appresize",this.Pa);this.hide();this.i();g.we(this,g.YN(this.tooltip,this.element));this.Qa("click",function(){a.Fb(d.element);KN(c,d.element,!1)})};
   MO=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-promotooltip-wrapper",U:[{G:"div",L:"ytp-promotooltip-container",U:[{G:"div",L:"ytp-promotooltip-content",U:[{G:"div",L:"ytp-promotooltip-title",va:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",va:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",U:[{G:"div",L:"ytp-promotooltip-dismiss-button",va:"{{dismissButtonText}}",W:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",va:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
   {G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.K=b;this.I=c;this.i=this.B=null;this.title=this.Fa("ytp-promotooltip-title");this.details=this.Fa("ytp-promotooltip-details");this.acceptButton=this.Fa("ytp-promotooltip-accept-button");this.dismissButton=this.Fa("ytp-promotooltip-dismiss-button");this.J=this.D=this.u=this.C=!1;g.OK(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.I.Rg(this.element,this,!0),this.I.ym(this.element,a);this.T(c,"onShowControls",
   this.TB);this.T(c,"onHideControls",this.dU);this.T(c,"resize",this.xb);this.T(this.acceptButton,"click",this.nT);this.T(this.dismissButton,"click",this.jU);this.T(document,"click",this.tP)};
   Wva=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
   NO=function(a){g.OK(a,!1);a.u&&a.I.ib(a.element,a.Ab)};
   OO=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken)b={feedbackTokens:[f.feedbackEndpoint.feedbackToken]},a=a.I.Ml(),(null===a||void 0===a?0:Jta(f,a.B))&&eM(a,f,b)}};
   Xva=function(a){var b,c,d,e,f,h,l,m,n,p,q=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text),t=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
   void 0===p||!p.buttonRenderer.text.runs[0].text);return q||t};
   PO=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-replay-button","ytp-button"],W:{title:"Replay"},U:[g.$K()]});this.I=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Qa("click",this.onClick,this);a=a.yb();g.OK(this,g.U(a,2));g.YN(b.fc(),this.element)};
   g.QO=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{G:"button",Ha:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.XE(a.V()))},U:[{G:"div",L:"ytp-share-icon",va:"{{icon}}"},{G:"div",L:"ytp-share-title",va:"Share"}]});this.api=a;this.i=b;this.B=c;this.u=d;this.visible=!1;this.tooltip=this.i.fc();b=a.V();a.Rb(this.element,this,28664);this.Qa("click",this.onClick);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",
   this.Pa);this.T(a,"appresize",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();g.O(this.element,"ytp-show-share-title",g.XE(b)&&!g.hF(b));g.we(this,g.YN(this.tooltip,this.element))};
   Yva=function(a){"InvalidStateError"!==a.name&&g.Ly(a)};
   g.RO=function(a,b){var c=KK(),d=a.V();c={G:"div",L:"ytp-share-panel",W:{id:KK(),role:"dialog","aria-labelledby":c},U:[{G:"div",L:"ytp-share-panel-inner-content",U:[{G:"div",L:"ytp-share-panel-title",W:{id:c},va:"Share"},{G:"a",Ha:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.J,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",U:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",W:{type:"checkbox",
   checked:!0}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",U:[yN()]},{G:"div",L:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Ha:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},U:[g.VK()]}]};g.JN.call(this,a,c,250);this.api=a;this.tooltip=b.fc();this.i=[];this.D=this.Fa("ytp-share-panel-inner-content");this.closeButton=this.Fa("ytp-share-panel-close");
   this.T(this.closeButton,"click",this.Eb);g.we(this,g.YN(this.tooltip,this.closeButton));this.C=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Pa);this.B=this.Fa("ytp-share-panel-link");g.we(this,g.YN(this.tooltip,this.B));this.Qa("click",this.uP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.RS);this.hide()};
   $va=function(a,b){Zva(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Gm:e.Gm},f++){e.Gm=c[f];a:switch(e.Gm.img||e.Gm.iconId){case "facebook":var h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
   fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
   fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.V({G:"a",Ha:["ytp-share-panel-service-button","ytp-button"],W:{href:e.Gm.url,target:"_blank",title:e.Gm.sname||e.Gm.serviceName},U:[h]}),h.Qa("click",function(m){return function(n){if(g.ML(n)){var p=m.Gm.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";q||(q={});var t=window;var u=p instanceof g.tf?p:g.yf("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.Faa,y="strict-origin-when-cross-origin";
   window.Request&&(y=(new Request("/")).referrerPolicy);y="unsafe-url"===y;if(x&&q.noreferrer){if(y)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");q.noreferrer=!1}p=q.target||p.target;x=[];for(var z in q)switch(z){case "width":case "height":case "top":case "left":x.push(z+"="+q[z]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(z+"="+(q[z]?1:0))}z=x.join(",");Bc()&&t.navigator&&t.navigator.standalone&&
   p&&"_self"!=p?(z=g.Gg("A"),g.Tf(z,u),z.setAttribute("target",p),q.noreferrer&&z.setAttribute("rel","noreferrer"),q=document.createEvent("MouseEvent"),q.initMouseEvent("click",!0,!0,t,1),z.dispatchEvent(q),t={}):q.noreferrer?(t=Uf("",t,p,z),q=g.uf(u),t&&(g.BF&&-1!=q.indexOf(";")&&(q="'"+q.replace(/'/g,"%27")+"'"),t.opener=null,q=g.Qf(g.lf("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.hg(q)+'">'),(u=t.document)&&
   u.write&&(u.write(g.Mf(q)),u.close()))):(t=Uf(u,t,p,z))&&q.noopener&&(t.opener=null);if(q=t)q.opener||(q.opener=window),q.focus();g.Gu(n)}}}(e)),g.we(h,g.YN(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
   b=new g.V({G:"a",Ha:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
   fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],W:{href:l,target:"_blank",title:"More"}});b.Qa("click",function(m){g.xN(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")});
   g.we(b,g.YN(a.tooltip,b.element));a.i.push(b);a.Sa("buttons",a.i)};
   Zva=function(a){for(var b=g.r(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ue(c);a.i=[]};
   UO=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.kb=b;this.Ra=this.K=this.i=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.eb=!0;this.Ja=new g.M(function(){d.badge.element.style.width=""},200,this);
   this.ma=new g.M(function(){SO(d);TO(d)},200,this);
   this.dismissButton=new g.V({G:"button",Ha:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.J=new g.V({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",va:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.J);this.badge=new g.V({G:"button",Ha:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}:
   "",this.J]});g.J(this,this.badge);this.badge.Da(this.element);this.S=new g.xL(this.badge,250,!1,100);g.J(this,this.S);this.Aa=new g.xL(this.J,250,!1,100);g.J(this,this.Aa);this.La=new g.Fq(this.gX,null,this);g.J(this,this.La);this.ya=new g.Fq(this.DR,null,this);g.J(this,this.ya);g.J(this,this.Ja);g.J(this,this.ma);this.I.Rg(this.badge.element,this.badge,!0);this.I.Rg(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.i=!1;TO(d);SO(d);d.Th()});
   this.T(this.I,"onShowControls",function(){d.i=!0;TO(d);SO(d);d.Th()});
   this.T(this.badge.element,"click",this.aF);this.T(this.dismissButton.element,"click",this.bF);this.T(this.I,"pageTransition",this.vP);this.T(this.I,"appresize",this.Th);this.T(this.I,"fullscreentoggled",this.nU);this.T(this.I,"cardstatechange",this.PT);this.T(this.I,"annotationvisibility",this.EX,this);this.T(this.I,"offlineslatestatechange",this.FX,this)};
   SO=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.u)};
   TO=function(a,b){var c=a.K||a.i||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.ya.stop(),a.Ja.stop(),a.La.start()):(g.OK(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),awa(a))};
   awa=function(a){a.C&&a.I.ib(a.badge.element,a.hx());a.D&&a.I.ib(a.dismissButton.element,a.hx()&&(a.K||a.i||!a.u))};
   bwa=function(a){var b=a.text||"";g.Ng(g.vg("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:"")};
   cwa=function(a,b){b?a.D&&a.I.Fb(a.dismissButton.element):a.C&&a.I.Fb(a.badge.element)};
   VO=function(a,b){UO.call(this,a,b);var c=this;this.Y=this.Ea=this.Ka=!1;this.T(this.I,g.nA("shopping_overlay_visible"),function(){c.De(!0)});
   this.T(this.I,g.oA("shopping_overlay_visible"),function(){c.De(!1)});
   this.T(this.I,g.nA("shopping_overlay_expanded"),function(){c.K=!0;TO(c)});
   this.T(this.I,g.oA("shopping_overlay_expanded"),function(){c.K=!1;TO(c)});
   this.T(this.I,"changeProductsInVideoVisibility",this.ZU);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.RU)};
   WO=function(a){a.I.We("shopping_overlay_visible");a.I.We("shopping_overlay_expanded")};
   XO=function(a){g.JN.call(this,a,{G:"button",Ha:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.M(function(){b.hide()},5E3);
   this.i=this.B=NaN;g.J(this,this.C);this.ya=function(){b.show()};
   this.ma=function(){b.hide()};
   this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c<b.i/1E3&&b.show()};
   this.T(this.I,"videodatachange",function(c,d){b.gs(c,d)});
   this.T(this.element,"click",function(){b.I.seekTo(b.i/1E3)});
   this.hide()};
   YO=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay"},va:"{{icon}}"});this.I=a;this.Qa("click",this.onClick);this.T(a,"airplayactivechange",this.Pa);this.T(a,"airplayavailabilitychange",this.Pa);this.Pa();g.we(this,g.YN(b.fc(),this.element))};
   ZO=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{G:"div",L:"ytp-autonav-toggle-button-container",U:[{G:"div",L:"ytp-autonav-toggle-button",W:{"aria-checked":"true"}}]}]});this.I=a;this.u=[];this.i=!1;this.isChecked=!0;a.Rb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.Zt);this.Qa("click",this.onClick);this.tooltip=b.fc();g.we(this,g.YN(b.fc(),this.element));this.Zt()};
   dwa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Sa("title",b);a.Sa("label",b);xO(a.tooltip)};
   g.aP=function(a){g.V.call(this,{G:"div",L:"ytp-gradient-bottom"});this.i=g.Gg("CANVAS");this.ctx=this.i.getContext("2d");this.B=NaN;this.i.width=1;this.u=g.hF(a.V());g.$O(this,a.bb().getPlayerSize().height)};
   g.$O=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.i.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
   c+"px";try{a.element.style.backgroundImage="url("+a.i.toDataURL()+")"}catch(f){}}}};
   bP=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-chapter-container",U:[{G:"button",Ha:["ytp-chapter-title","ytp-button"],U:[{G:"span",W:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",va:"\u2022"},{G:"div",L:"ytp-chapter-title-content",va:"{{title}}",W:{title:"View chapter","aria-label":"View chapter"}},{G:"div",L:"ytp-chapter-title-chevron",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
   this.I=a;this.K=c;this.C="";this.currentIndex=0;this.B=void 0;this.i=!0;this.D=this.Fa("ytp-chapter-container");this.u=this.Fa("ytp-chapter-title");this.J=this.Fa("ytp-chapter-title-content");this.updateVideoData("newdata",this.I.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.D,"click",this.onClick);this.T(a,g.nA("chapterCueRange"),this.Qb);this.T(a,"innertubeCommand",this.onClickCommand);g.we(this,g.YN(b.fc(),this.J))};
   ewa=function(a,b,c,d,e){var f=b.Uz/b.rows,h=Math.min(c/(b.Vz/b.columns),d/f),l=b.Vz*h,m=b.Uz*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,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"};
   g.cP=function(a){g.V.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Fa("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.uD(this);this.i=new g.xL(this,100);g.J(this,this.events);g.J(this,this.i);this.T(this.api,"presentingplayerstatechange",this.Mc)};
   dP=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){dP(a,a.api.Gh())}),a.events.T(a.api,"progresssync",a.od),a.events.T(a.api,"appresize",a.D)),a.B=NaN,eP(a),a.i.show(200)):(c&&g.my(a.events),a.i.hide(),a.i.stop())};
   eP=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.bb().getPlayerSize(),e=hG(b,d.width);c=Loa(b,e,c);c!==a.B&&(a.B=c,Joa(b,c,d.width),b=Hoa(b,c,d.width),ewa(a.C,b,d.width,d.height))};
   fP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ha:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{G:"div",Ha:["ytp-fullerscreen-edu-chevron"],U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.i=new g.xL(this,250,void 0,100);this.C=this.u=!1;a.Rb(this.element,this,61214);this.B=b;g.J(this,this.i);this.T(a,
   "fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);this.Pa()};
   g.gP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.i=g.YN(this.u.fc(),this.element);this.B=new g.M(this.fR,2E3,this);g.J(this,this.B);this.T(a,"fullscreentoggled",this.Hi);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);g.gy()&&(b=this.I.bb(),this.T(b,Iia(),this.kF),this.T(b,jy(document),this.im));a.V().Ua||a.V().C||this.disable();
   this.Pa();this.Hi(a.isFullscreen())};
   hP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[ata()]});this.I=a;this.visible=!1;this.Qa("click",this.onClick);this.T(a,"fullscreentoggled",this.Pa);this.Sa("title",AN(a,"Miniplayer","i"));g.we(this,g.YN(b.fc(),this.element));a.Rb(this.element,this,62946);this.Pa()};
   iP=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-multicam-button","ytp-button"],W:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
   fill:"#fff"}}]}]});var d=this;this.I=a;this.i=!1;this.u=new g.M(this.B,400,this);this.tooltip=b.fc();bO(this.tooltip);g.J(this,this.u);this.Qa("click",function(){KN(c,d.element,!1)});
   this.T(a,"presentingplayerstatechange",function(){d.Pa(!1)});
   this.T(a,"videodatachange",this.onVideoDataChange);this.Pa(!0);g.we(this,g.YN(this.tooltip,this.element))};
   jP=function(a){g.JN.call(this,a,{G:"div",L:"ytp-multicam-menu",W:{role:"dialog"},U:[{G:"div",L:"ytp-multicam-menu-header",U:[{G:"div",L:"ytp-multicam-menu-title",U:["Switch camera",{G:"button",Ha:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.VK()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.uD(this);this.items=this.Fa("ytp-multicam-menu-items");this.i=[];g.J(this,this.B);a=this.Fa("ytp-multicam-menu-close");this.T(a,"click",this.Eb);this.hide()};
   kP=function(){g.I.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Fq(this.i,null,this);g.J(this,this.delay)};
   fwa=function(a,b){if("path"===b.G)return b.W.d;if(b.U)for(var c=0;c<b.U.length;c++){var d=b.U[c];if(d&&"string"!==typeof d&&(d=fwa(a,d)))return d}};
   iwa=function(a,b,c){c=fwa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=KK();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=gwa(e),m=gwa(c);lP(a,function(n){d.setAttribute("d",hwa(l,m,n))},200)};
   lP=function(a,b,c){a.u=b;a.startTime=(0,g.Q)();a.duration=c;a.i()};
   gwa=function(a){var b=[];a=a.match(jwa);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};
   hwa=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.mP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-mute-button","ytp-button"],W:a.V().Y?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.I=a;this.i=null;this.C=this.S=this.D=this.ma=NaN;this.ya=this.J=null;this.B=[];this.u=[];this.visible=!1;this.K=null;var c=this.I.V();this.Sa("icon",bL());this.tooltip=b.fc();this.i=new g.LK({G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},
   U:[{G:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},U:[{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",Ob:!0,Ha:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
   d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",Ob:!0,Ha:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.J(this,this.i);this.J=this.i.Fa("ytp-svg-volume-animation-speaker");this.ya=this.J.getAttribute("d");this.B=g.ug("ytp-svg-volume-animation-mover",this.i.element);
   this.u=g.ug("ytp-svg-volume-animation-hider",this.i.element);this.Aa=new kP;g.J(this,this.Aa);this.Y=new kP;g.J(this,this.Y);this.Qa("click",this.JU);this.T(a,"appresize",this.KH);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Y)g.we(this,g.YN(b.fc(),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.JN(a,{G:"span",Ha:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},U:[e[0],{G:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",
   target:c.J},va:e[2]},e[4]]},100,!0);g.J(this,d);d.hide();d.subscribe("show",function(f){b.Mr(d,f)});
   g.NM(a,d.element,4)}this.message=d;a.Rb(this.element,this,28662);this.KH(a.bb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
   mwa=function(a,b){a.ma=b;var c=a.ya;b&&(c+=hwa(kwa,lwa,b));a.J.setAttribute("d",c)};
   nwa=function(a,b){a.S=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=bL():e=a.i;for(c=0;c<a.u.length;c++)if(d=a.u[c],null===d||void 0===d?0:d.style)d.style.display=0===b?"none":"";e!==a.K&&(a.Sa("icon",e),a.K=e)};
   nP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[ata()]});this.I=a;this.Sa("title","Picture in Picture");this.Qa("click",this.onClick);g.we(this,g.YN(b.fc(),this.element))};
   g.oP=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-play-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.I=a;this.i=null;this.transition=new kP;this.tooltip=b.fc();g.J(this,this.transition);this.u=!!c;a.Rb(this.element,this,36842);a.ib(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);owa(this,a.yb());this.Qa("click",this.qt,
   this);g.we(this,g.YN(b.fc(),this.element))};
   pwa=function(a){switch(a){case 1:return bta();case 2:return $sa();case 3:return g.$K();case 4:return dta();default:return null}};
   owa=function(a,b){var c=g.KG(a.I.getVideoData()),d=!1;g.YJ(b)?b=c?4:2:g.U(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=AN(a.I,"Pause","k");break;case 3:c="Replay";break;case 1:c=AN(a.I,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,label:null,icon:pwa(b)}):(a.update({title:c,label:c}),(c=pwa(b))&&a.i&&3!==a.i?iwa(a.transition,a.element,c):a.Sa("icon",c));xO(a.tooltip);a.i=b}};
   g.qP=function(a,b,c){g.V.call(this,{G:"a",Ha:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],W:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},U:[c?YK():cta()]});var d=this;this.I=a;this.i=c;this.playlist=this.videoData=null;this.isLinkable=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.fc();c?a.Rb(this.element,this,6193):
   a.Rb(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.i||this.T(a,"appresize",this.UB);this.T(a,"mdxpreviousnextchange",function(){pP(d);d.UB()});
   this.onVideoDataChange()};
   qwa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
   rwa=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
   swa=function(a){var b=JM(a.I.wb());return b?a.i?b.hasNext():b.Ak():!1};
   pP=function(a){var b,c,d={duration:null,preview:null,text:null,title:null,url:null},e=null!=a.playlist&&a.playlist.hasNext();e=g.KM(a.I)&&(!a.i||e);var f=a.i&&g.OM(a.I),h=swa(a),l=a.i&&5===a.I.getPresentingPlayerType(),m=AN(a.I,"Next","SHIFT+n"),n=AN(a.I,"Previous","SHIFT+p");if(l)d.title="Start video";else if(a.B)d.title="Replay";else if(e){var p=null;a.playlist&&(p=g.UM(a.playlist,a.i?Cua(a.playlist):Dua(a.playlist)));if(p){if(p.videoId){var q=a.playlist.listId;d.url=a.I.V().getVideoUrl(p.videoId,
   q?q.toString():void 0)}d.text=p.title;d.duration=null!==(b=p.lengthText)&&void 0!==b?b:p.lengthSeconds?g.LL(p.lengthSeconds):null;d.preview=p.Ie("mqdefault.jpg")}d.title=a.i?m:n}else f&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(n=a.videoData.suggestions[0],d.url=n.zk(),d.text=n.title,d.duration=null!==(c=n.lengthText)&&void 0!==c?c:n.lengthSeconds?g.LL(n.lengthSeconds):null,d.preview=n.Ie("mqdefault.jpg")),d.title=m);d.disabled=!f&&!e&&!h&&!l;a.update(d);a.isLinkable=
   !!d.url;f||e||a.B||h||l?a.u||(a.u=g.YN(a.tooltip,a.element),a.D=a.Qa("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.jc(a.D),a.D=null);xO(a.tooltip)};
   rP=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
   twa=function(a){g.V.call(this,{G:"div",L:"ytp-heat-map-chapter",U:[{G:"svg",L:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"{{id}}"},U:[{G:"path",L:"ytp-heat-map-path",W:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{G:"rect",L:"ytp-heat-map-graph",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-hover",W:{"clip-path":"url(#hm_1)",
   height:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-play",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.J=this.Fa("ytp-heat-map-svg");this.D=this.Fa("ytp-heat-map-path");this.C=this.Fa("ytp-heat-map-graph");this.B=this.Fa("ytp-heat-map-play");this.u=this.Fa("ytp-heat-map-hover");this.isValid=!1;this.i=60};
   vwa=function(a,b,c,d){d=void 0===d?!1:d;b=new uwa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.i:b.i),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
   uwa=function(a,b){this.u=this.i=0;this.i=b.x-a.x;this.u=b.y-a.y};
   sP=function(){g.V.call(this,{G:"div",L:"ytp-chapter-hover-container",U:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",U:[{G:"div",Ha:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-progress-linear-live-buffer"},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Fa("ytp-progress-linear-live-buffer");this.B=this.Fa("ytp-ad-progress-list");
   this.D=this.Fa("ytp-load-progress");this.J=this.Fa("ytp-play-progress");this.u=this.Fa("ytp-hover-progress");this.i=this.Fa("ytp-chapter-hover-container")};
   tP=function(a,b){g.Sl(a.i,"width",b)};
   uP=function(a,b){g.Sl(a.i,"margin-right",b+"px")};
   vP=function(a,b){return"PLAY_PROGRESS"===b?a.J:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
   wwa=function(){this.B=this.position=this.C=this.i=this.D=this.u=this.width=NaN};
   xwa=function(){g.V.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
   g.wP=function(a,b){g.PK.call(this,{G:"div",L:"ytp-progress-bar-container",W:{"aria-disabled":"true"},U:[{G:"div",Ha:["ytp-heat-map-container"]},{G:"div",Ha:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{G:"div",L:"ytp-chapters-container"},{G:"div",L:"ytp-marker-crenellation-list"},{G:"div",L:"ytp-timed-markers-container"},{G:"div",L:"ytp-clip-start-exclude"},
   {G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",U:[{G:"div",Ha:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",L:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",W:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.ac=!1;this.C=this.cd=
   0;this.Ja=1;this.dd=this.Y=0;this.J=null;this.ma=this.vb=0;this.uc=this.Fa("ytp-marker-crenellation-list");this.Ea={};this.jb={};this.clipEnd=Infinity;this.Za=this.Fa("ytp-clip-end");this.Hb=new g.qy(this.Za,!0);this.kc=this.Fa("ytp-clip-end-exclude");this.ye=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.eb=this.Fa("ytp-clip-start");this.Mb=new g.qy(this.eb,!0);this.S=this.Ra=0;this.Oc=this.Fa("ytp-progress-bar");this.qb={};this.Db=this.Fa("ytp-chapters-container");this.Nd=this.Fa("ytp-timed-markers-container");
   this.i=[];this.ya=[];this.zd={};this.La=-1;this.Ua=this.Aa=0;this.K=null;this.qd=this.Fa("ytp-scrubber-button");this.Ge=this.Fa("ytp-scrubber-container");this.kb=new g.ag;this.Fc=new wwa;this.u=new PL(0,0);this.Sb=null;this.B=this.zb=!1;this.Tc=null;this.wc=this.Fa("ytp-heat-map-container");this.D=[];this.heatMarkersDecorations=[];this.tooltip=b.fc();g.we(this,g.YN(this.tooltip,this.Za));g.J(this,this.Hb);this.Hb.subscribe("hoverstart",this.fM,this);this.Hb.subscribe("hoverend",this.eM,this);this.T(this.Za,
   "click",this.FA);g.we(this,g.YN(this.tooltip,this.eb));g.J(this,this.Mb);this.Mb.subscribe("hoverstart",this.fM,this);this.Mb.subscribe("hoverend",this.eM,this);this.T(this.eb,"click",this.FA);ywa(this);this.T(a,"resize",this.xb);this.T(a,"presentingplayerstatechange",this.xP);this.T(a,"videodatachange",this.gs);this.T(a,"videoplayerreset",this.dS);this.T(a,"cuerangesadded",this.xO);this.T(a,"cuerangesremoved",this.IW);this.T(a,"cuerangemarkersupdated",this.xO);this.T(a,"onLoopRangeChange",this.LH);
   this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.nA("timedMarkerCueRange"),this.ZV);this.updateVideoData(a.getVideoData(),!0);this.LH(a.getLoopRange())};
   ywa=function(a){if(0===a.i.length){var b=new sP;a.i.push(b);g.J(a,b);b.Da(a.Db,0)}for(;1<a.i.length;)a.i.pop().dispose();tP(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
   zwa=function(a){for(;a.ya.length;)a.ya.pop().dispose()};
   Awa=function(a){for(var b=a.i,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.lA(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.We("chapterCueRange");a.api.Ad(c)};
   yP=function(a,b){var c,d,e,f,h,l,m=null===(c=a.qb[b])||void 0===c?void 0:c.chapters;m&&(Bwa(a,m),a.api.getVideoData().ql=a.i,Awa(a));if((m=null===(d=a.qb[b])||void 0===d?void 0:d.markers)&&"HEATSEEKER"!==b){var n,p,q;zwa(a);m=g.r(m);for(var t=m.next();!t.done;t=m.next()){var u=t.value;t=new xwa;if(u=u.markerRenderer)t.title=(null===(n=u.title)||void 0===n?void 0:n.simpleText)||"",t.timeRangeStartMillis=null!==(p=u.timeRangeStartMillis)&&void 0!==p?p:NaN,t.onActiveCommand=null!==(q=null===u||void 0===
   u?void 0:u.onActiveCommand)&&void 0!==q?q:void 0,a.ya.push(t),g.J(a,t),t.Da(a.Nd,a.Nd.children.length)}Cwa(a,a.ya);n=a.ya;p=a.zd;q=[];for(m=0;m<n.length;m++)!isNaN(n[m].timeRangeStartMillis)&&n[m].onActiveCommand&&(t=n[m].timeRangeStartMillis,t=new g.lA(t,m===n.length-1?Infinity:n[m+1].timeRangeStartMillis,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+t}),q.push(t),p[t.id]=n[m].onActiveCommand);a.api.Ad(q)}if(b=null===(f=null===(e=a.qb[b])||void 0===e?void 0:e.heatmap)||void 0===f?void 0:f.heatmapRenderer){n=
   b.heatMarkers||[];p=null!==(h=b.minHeightDp)&&void 0!==h?h:0;q=null!==(l=b.maxHeightDp)&&void 0!==l?l:60;var x,y;m=a.i.length;t=null;for(u=0;u<m;u++){var z=a.i[u].startTime,G=u===m-1?Infinity:a.i[u+1].startTime;if(u===a.D.length){var F=void 0,C=a;F=void 0===F?NaN:F;var K=new twa(C.api);C.D.push(K);g.J(C,K);K.Da(C.wc);var S=K;C="hm_"+C.D.length;S.update({id:C});C="url(#"+C+")";S.C.setAttribute("clip-path",C);S.B.setAttribute("clip-path",C);S.u.setAttribute("clip-path",C);0<=F&&(K.element.style.width=
   F+"px")}F=[];t&&F.push(t);K=g.r(n);for(S=K.next();!S.done;S=K.next())S=S.value,C=null!==(y=null===(x=null===S||void 0===S?void 0:S.heatMarkerRenderer)||void 0===x?void 0:x.timeRangeStartMillis)&&void 0!==y?y:-1,C>=z&&C<=G&&F.push(S);0<q&&(a.wc.style.height=q+"px");z=a.D[u];S=0===u;S=void 0===S?!1:S;G=z;0<q&&(G.i=q,G.J.style.height=G.i+"px");G=void 0;K=z;S=void 0===S?!1:S;C=1E3/F.length;var L=[];L.push({x:0,y:100});for(var W=g.r(F.entries()),pa=W.next();!pa.done;pa=W.next()){var ta=g.r(pa.value);pa=
   ta.next().value;ta=ta.next().value;var rb=(null===(G=ta.heatMarkerRenderer)||void 0===G?void 0:G.heatMarkerIntensityScoreNormalized)||0;ta=(pa+.5)*C;rb=100-g.Xf(100*rb,p/K.i*100,q/K.i*100);0!==pa||S||L.push({x:0,y:rb});L.push({x:ta,y:rb});pa===F.length-1&&L.push({x:1E3,y:rb})}L.push({x:1E3,y:100});G=L;if(0===F.length)G="";else{K="";S=g.r(G.entries());for(C=S.next();!C.done;C=S.next())L=g.r(C.value),C=L.next().value,L=L.next().value,0===C?C="M "+L.x.toFixed(1)+","+L.y.toFixed(1):(W=vwa(G[C-1],G[C-
   2],L),C=vwa(L,G[C-1],G[C+1],!0),C=" C "+(W.x.toFixed(1)+","+W.y.toFixed(1)+" "+C.x.toFixed(1)+","+C.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1))),K+=C;G=K}z.D.setAttribute("d",G);z.isValid=""!==G;g.O(z.api.getRootNode(),"ytp-heat-map",z.isValid);g.O(z.api.getRootNode(),"ytp-heat-map-played_bar",z.api.N("web_player_heat_map_played_bar")&&""!==G);0<F.length&&(t=F[F.length-1])}g.xP(a);var ob,Ib,sc;x=[];y=g.r(b.heatMarkersDecorations||[]);for(b=y.next();!b.done;b=y.next())(b=b.value.timedMarkerDecorationRenderer)&&
   x.push({visibleTimeRangeStartMillis:null!==(ob=b.visibleTimeRangeStartMillis)&&void 0!==ob?ob:-1,visibleTimeRangeEndMillis:null!==(Ib=b.visibleTimeRangeEndMillis)&&void 0!==Ib?Ib:-1,decorationTimeMillis:null!==(sc=b.decorationTimeMillis)&&void 0!==sc?sc:NaN,label:rP(b.label)});a.heatMarkersDecorations=x}};
   Cwa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Dwa(a,c.timeRangeStartMillis/(1E3*a.u.i),zP(a));g.Sl(c.element,"transform","translateX("+d+"px)")}};
   Bwa=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};f.title=rP(e.title);var h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.i.length<=c&&(f=new sP,a.i.push(f),g.J(a,f),f.Da(a.Db,a.Db.children.length));a.i[c].startTime=
   e.startTime;a.i[c].title=e.title?e.title:"";a.i[c].onActiveCommand=e.onActiveCommand;a.i[c].index=d?c-1:c}c++}for(;c<a.i.length;)a.i.pop().dispose();g.xP(a);AP(a)};
   g.xP=function(a){a.Aa=a.i.length-1;a.Ua=0;Ewa(a,!0)&&Ewa(a,!1);for(var b=0,c=0;c<a.i.length;c++)if(0===a.i[c].width){if(c===a.i.length-1)for(var d=a.i.length-1;0<=d;d--)if(0<a.i[d].width){uP(a.i[d],0);var e=Math.floor(a.i[d].width);a.i[d].width=e;tP(a.i[d],e+"px");break}a.i[c].width=0;tP(a.i[c],"0")}else c===a.i.length-1?(d=Math.floor(a.i[c].width+b),a.i[c].width=d,tP(a.i[c],d+"px")):(b=a.i[c].width+b,d=Math.round(b),b-=d,a.i[c].width=d,tP(a.i[c],d+"px"));c=0;if(a.D.length===a.i.length)for(b=0;b<
   a.D.length;b++)d=a.i[b].width,a.D[b].element.style.width=d+"px",a.D[b].element.style.left=c+"px",c+=d+(a.B?3:2)};
   Ewa=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.u.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.Aa,l=0===a.Ua?3:h*a.Ua,m=g.r(a.i),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.i[c].startTime;c<e-1&&(m=a.i[c+1].startTime-a.i[c].startTime,uP(a.i[c],a.B?3:2));g.O(a.i[c].i,"ytp-exp-chapter-hover-container",1<a.i.length);n=(0===f?0:m/f*h)+a.i[c].width;if(n>l)a.i[c].width=n;else{a.i[c].width=0;var p=a,q=c,t=p.i[q-1];void 0!==t&&0<t.width?
   t.width+=n:q<p.i.length-1&&(p.i[q+1].width+=n);uP(p.i[q],0);b&&(a.Aa--,m/f>a.Ua&&(a.Ua=m/f),d=!0)}c++}}return d};
   AP=function(a){var b;if(a.C){var c=a.api.getProgressState();var d=(null===(b=a.api.getVideoData())||void 0===b?0:bH(b))&&c.airingStart&&c.airingEnd?Fwa(a,c.airingStart,c.airingEnd):Fwa(a,c.seekableStart,c.seekableEnd);var e=SL(d,c.loaded,0);c=SL(d,c.current,0);var f=a.u.u!==d.u||a.u.i!==d.i;a.u=d;BP(a,c,e);f&&CP(a);Gwa(a)}};
   Fwa=function(a,b,c){var d=a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar"),e=a.api.V().N("enable_expanded_clip_range_in_progress_bar");return DP(a)&&d?new PL(Math.max(b,a.Sb.startTimeMs/1E3),Math.min(c,a.Sb.endTimeMs/1E3)):DP(a)&&e?(d=a.Sb.startTimeMs/1E3,a=a.Sb.endTimeMs/1E3,e=(a-d)/20,new PL(Math.max(b,d-e),Math.min(c,a+e))):new PL(b,c)};
   FP=function(a,b){var c=RL(a.u,b.B);if(1<a.i.length){c=EP(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.i[e].width&&(d+=a.i[e].width,d+=a.B?3:2);c=(a.i[c].startTime+(b.C-d)/a.i[c].width*((c===a.i.length-1?1E3*a.u.i:a.i[c+1].startTime)-a.i[c].startTime))/1E3||0}return c};
   Hwa=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.u.i*(a.C-(a.B?3:2)*a.Aa)};
   Iwa=function(a,b,c,d){b=g.Xf(b,0,a.B?60:40);a.Y=b;var e=a.Ja;a.Ja=b/(a.B?60:40)*(Math.max(QL(a.u)/a.C,1)-1)+1;b=a.C*a.Ja;a.ma=g.Xf(d*b-c,0,b-a.C);e!==a.Ja&&CP(a)};
   CP=function(a){var b=zP(a),c=-b.u/b.i,d=(-b.u+b.width)/b.i,e=bba(a.uc),f=0;if(a.Y>.2*(a.B?60:40)&&1===a.i.length)for(var h=QL(a.u)/60*d,l=Math.ceil(QL(a.u)/60*c);l<h;l++){var m=e[f];m||(m=g.Gg("DIV"),a.uc.appendChild(m));f++;0===l%60?g.Pq(m,"ytp-60m-progress"):0===l%30?g.Pq(m,"ytp-30m-progress"):0===l%15?g.Pq(m,"ytp-15m-progress"):g.Pq(m,"ytp-1m-progress");m.style.left=(60*l/QL(a.u)-c)*b.i+"px"}b=a.zb?a.u.i:0;a.update({boundTimeLeft:g.LL(RL(a.u,c)-b),boundTimeRight:g.LL(RL(a.u,d)-b)});for(c=e.length-
   1;c>=f;c--)g.Kg(e[c]);a.element.style.height=a.Y+(a.B?8:5)+"px";a.ea("height-change",a.Y);a.qd.style.height=a.Y+(a.B?20:13)+"px";e=g.r(Object.keys(a.Ea));for(f=e.next();!f.done;f=e.next())Jwa(a,f.value);GP(a);BP(a,a.S,a.Ra)};
   zP=function(a){var b=a.kb.x,c=a.C*a.Ja;b=g.Xf(b,0,a.C);a.Fc.update(b,a.C,-a.ma,-(c-a.ma-a.C));return a.Fc};
   BP=function(a,b,c){var d;a.S=b;a.Ra=c;var e=zP(a),f=a.u.i,h=RL(a.u,a.S),l=g.rI("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.LL(h,!0),DURATION:g.LL(f,!0)}),m=BO(a.i,1E3*h);m=a.i[m].title;a.update({ariamin:Math.floor(a.u.u),ariamax:Math.floor(f),arianow:Math.floor(h),arianowtext:m?m+" "+l:l});f=a.clipStart;h=a.clipEnd;a.Sb&&2!==a.api.getPresentingPlayerType()&&(f=a.Sb.startTimeMs/1E3,h=a.Sb.endTimeMs/1E3);f=SL(a.u,f,0);m=SL(a.u,h,1);l=a.api.getVideoData();h=g.Xf(b,f,m);c=(null===l||void 0===l?0:g.ZG(l))?
   1:g.Xf(c,f,m);b=Dwa(a,b,e);g.Sl(a.Ge,"transform","translateX("+b+"px)");HP(a,e,f,h,"PLAY_PROGRESS");(null===l||void 0===l?0:bH(l))?(b=a.api.getProgressState().seekableEnd)&&HP(a,e,h,SL(a.u,b),"LIVE_BUFFER"):HP(a,e,f,c,"LOAD_PROGRESS");a.api.N("web_player_heat_map_played_bar")&&(null===(d=a.D[0])||void 0===d?void 0:d.B.setAttribute("width",(100*h).toFixed(2)+"%"))};
   HP=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.Aa*(a.B?3:2),l=c*h;c=EP(a,l);var m=d*h;h=EP(a,m);"HOVER_PROGRESS"===e&&(h=EP(a,b.i*d,!0),m=b.i*d-Kwa(a,b.i*d)*(a.B?3:2));b=Math.max(l-Lwa(a,c),0);for(d=c;d<f;d++)vP(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,IP(a,vP(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.Xf(m-Lwa(a,h),0,f);c===h&&(m-=b);IP(a,vP(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)IP(a,vP(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)IP(a,vP(a.i[h],e),0,a.i[h].width)};
   Lwa=function(a,b){if(b>=a.i.length)return a.C;for(var c=0,d=0;d<b;)c+=a.i[d].width,d++;return c};
   IP=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.Sl(b,"transform","scalex("+(d?c/d:0)+")")};
   EP=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=Kwa(a,b)*(a.B?3:2));c=g.r(a.i);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.i.length?d-1:d};
   Dwa=function(a,b,c){for(var d=b*a.u.i*1E3,e=-1,f=g.r(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.i-(a.B?3:2)*a.Aa)+(a.B?3:2)*(0>e?0:e)+c.u};
   Kwa=function(a,b){for(var c=a.i.length,d=0,e=g.r(a.i),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d};
   g.JP=function(a,b,c,d){var e=a.C!==c;a.cd=b;a.C=c;a.B=d;CP(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.xP(a)};
   GP=function(a){var b,c=!!a.Sb&&2!==a.api.getPresentingPlayerType(),d=a.clipStart,e=a.clipEnd,f=!0,h=!0;c&&a.Sb?(d=a.Sb.startTimeMs/1E3,e=a.Sb.endTimeMs/1E3):(f=d>a.u.u,h=0<a.u.i&&e<a.u.i);(null===(b=a.Sb)||void 0===b?0:b.postId)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(h=f=!1);g.O(a.element,"ytp-loop-range-enabled",c);g.O(a.element,"ytp-clip-start-enabled",f);g.O(a.element,"ytp-clip-end-enabled",h);c=f?SL(a.u,d,0):0;e=h?SL(a.u,e,1):1;a.eb.style.left=Math.round(1E3*c)/10+
   "%";a.Za.style.left=Math.round(1E3*e)/10+"%";a.ye.style.width=Math.round(1E3*c)/10+"%";a.kc.style.left=Math.round(1E3*e)/10+"%";a.kc.style.width=Math.round(1E3*(1-e))/10+"%"};
   Gwa=function(a){var b,c;if(null===(b=a.api.getVideoData())||void 0===b||!bH(b)){var d=zP(a);HP(a,d,a.S,Math.max(d.B,a.S),"HOVER_PROGRESS");for(var e=EP(a,d.i*a.S,!0),f=EP(a,d.C,!0),h=e;h<=f;h++)g.O(a.i[h].u,"ytp-hover-progress-light",d.B>a.S);g.O(a.qd,"ytp-scrubber-button-hover",e===f&&1<a.i.length);a.api.N("web_player_heat_map_played_bar")&&(null===(c=a.D[0])||void 0===c?void 0:c.u.setAttribute("width",(100*d.B).toFixed(2)+"%"))}};
   Jwa=function(a,b){var c=a.Ea[b];b=a.jb[b];var d=zP(a),e=SL(a.u,c.start/1E3,0),f=Qja(c,a.B)/d.width;var h=SL(a.u,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Xf(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.i+d.u,0)+"px";IP(a,b,g.Xf((h-c)*d.i+d.u,0,d.width),d.width,void 0===e?!1:e)};
   Mwa=function(a,b){var c=b.getId();a.Ea[c]===b&&(g.Kg(a.jb[c]),delete a.Ea[c],delete a.jb[c])};
   Nwa=function(a,b){b?a.K||(a.element.removeAttribute("aria-disabled"),a.K=new g.qy(a.Oc,!0),a.K.subscribe("hovermove",a.cV,a),a.K.subscribe("hoverend",a.bV,a),a.K.subscribe("dragstart",a.aV,a),a.K.subscribe("dragmove",a.eV,a),a.K.subscribe("dragend",a.dV,a),a.Tc=a.Qa("keydown",a.yP)):a.K&&(a.element.setAttribute("aria-disabled","true"),a.jc(a.Tc),a.K.cancel(),a.K.dispose(),a.K=null)};
   g.Owa=function(a){var b=2*a.C*g.uF();return 1E3*QL(a.u)/a.api.getPlaybackRate()/b};
   DP=function(a){var b;return!(null===(b=a.Sb)||void 0===b||!b.postId)&&2!==a.api.getPresentingPlayerType()};
   KP=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true"},va:"{{icon}}"});this.I=a;this.Bb=c;this.i=null;this.T(a,"onMdxReceiversChange",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.T(a,"appresize",this.Pa);this.Pa();this.Qa("click",this.u,this);g.we(this,g.YN(b.fc(),this.element))};
   LP=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-button","ytp-settings-button"],W:{"aria-haspopup":"true","aria-owns":KK(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.aL()]});this.I=a;this.Bb=c;this.u=!0;this.Qa("click",this.B);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.i);g.we(this,g.YN(b.fc(),this.element));this.I.Rb(this.element,this,
   28663);this.updateBadge();this.i(a.bb().getPlayerSize())};
   MP=function(a,b){a.u=!!b;a.i(a.I.bb().getPlayerSize())};
   NP=function(a,b){nO.call(this,"Annotations",6);this.I=a;this.Bb=b;this.i=!1;this.T(a,"videodatachange",this.Pa);this.T(a,"onApiChange",this.Pa);this.subscribe("select",this.u,this);this.Pa()};
   g.OP=function(a,b,c,d,e,f,h){g.fO.call(this,g.gO({"aria-haspopup":"true"}),b,a);this.Bb=d;this.C=!1;this.u=null;this.options={};this.B=new g.jO(c,void 0,a,e,f,h);g.J(this,this.B);this.Qa("keydown",this.zP);this.Qa("click",this.open)};
   Pwa=function(a){if(a.u){var b=a.options[a.u];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.u=null}};
   g.PP=function(a,b){g.kO(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.u;l&&(d=!0);h&&h.priority===-e?(l=a,g.eO(l.options[f],l.bj(f,!0)),delete a.options[f]):h=a.QC(f,-e,l);c[f]=h;a.B.Gc(h,!0)}d||(a.u=null);b=g.r(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
   QP=function(a,b){g.OP.call(this,"Audio track",3,a,b);this.I=a;this.tracks={};this.i=new g.V({G:"div",U:[{G:"span",va:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",va:"{{content}}"}]});g.J(this,this.i);g.eO(this,this.i);this.T(a,"videodatachange",this.Pa);this.T(a,"onPlaybackAudioChange",this.Pa);this.Pa()};
   RP=function(a,b){nO.call(this,"Autoplay",7);this.I=a;this.Bb=b;this.i=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.D,this);a.Rb(this.element,this,113682);this.u()};
   SP=function(a,b,c,d){d=new g.V({G:"div",Ha:["ytp-linked-account-popup-button"],va:d,W:{role:"button",tabindex:"0"}});b=new g.V({G:"div",L:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{G:"div",L:"ytp-linked-account-popup-title",va:b},{G:"div",L:"ytp-linked-account-popup-description",va:c},{G:"div",L:"ytp-linked-account-popup-buttons",U:[d]}]});g.JN.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",U:[b]},100);var e=this;this.dialog=b;g.J(this,this.dialog);
   d.Qa("click",function(){e.Eb()});
   g.J(this,d);g.NM(this.I,this.element,4);this.hide()};
   TP=function(a,b){g.fO.call(this,g.gO({"aria-haspopup":"true"}),1);this.I=a;this.Bb=b;this.u=this.i=!1;this.T(this.I,"videodatachange",this.C);this.Qa("click",this.onClick);this.C()};
   UP=function(a){return a?g.sA(a):""};
   VP=function(a,b){g.OP.call(this,"Quality",2,a,b);this.I=a;this.D={};this.i="unknown";g.N(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.au);this.T(a,"videoplayerreset",this.au);this.T(a,"onPlaybackQualityChange",this.MH);this.au();a.Rb(this.element,this,137721)};
   Qwa=function(a,b,c){a=a.D[b];var d=g.eB[b];c={G:"span",Ha:c,U:[a?a.qualityLabel:d?d+"p":"Auto"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.U.push(" "),c.U.push({G:"sup",L:"ytp-swatch-color",va:e}));return c};
   WP=function(a,b,c,d,e,f,h){g.V.call(this,{G:"div",L:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-slider",U:[{G:"div",L:"ytp-slider-handle"}]}]});this.J=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.ma=f;this.range=this.maximumValue-this.minimumValue;this.ya=this.Fa("ytp-slider-section");this.u=this.Fa("ytp-slider");this.S=this.Fa("ytp-slider-handle");
   this.C=new g.qy(this.u,!0);this.i=h?h:c;g.J(this,this.C);this.C.subscribe("dragmove",this.BP,this);this.T(this.element,"keydown",this.CP);this.T(this.element,"wheel",this.AP);this.init()};
   YP=function(a){WP.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.B=g.Gg("P");this.Aa=Jaa(this.Y,this);g.N(this.u,"ytp-speedslider");g.N(this.B,"ytp-speedslider-text");a=this.B;var b=this.u;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);XP(this);this.T(this.I,"onPlaybackRateChange",this.Ea)};
   XP=function(a){a.B.textContent=ZP(a,a.i)+"x"};
   ZP=function(a,b){a=Number(g.Xf(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))};
   $P=function(a){g.PK.call(this,{G:"div",L:"ytp-speedslider-component"});this.i=new YP(a);g.J(this,this.i);this.element.appendChild(this.i.element)};
   Rwa=function(a){var b=new $P(a);iO.call(this,a,b,"Custom");g.J(this,b)};
   aQ=function(a,b){var c=new Rwa(a);g.OP.call(this,"Playback speed",5,a,b,"Custom",function(){g.pO(b,c)});
   g.J(this,c);this.I=a;this.D=this.i=this.K=null;this.J=this.I.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Pa);this.Pa()};
   Swa=function(a,b){var c=bQ(b);a.options[c]?a.Vh(c):b===a.D&&a.i&&(a.Vh(a.i),a.kd(b.toString()))};
   Uwa=function(a){g.PP(a,a.J.map(bQ));a.i=null;a.D=null;var b=a.I.getPlaybackRate();a.J.includes(b)||(Twa(a,b),g.OP.prototype.Cf.call(a,a.i))};
   Twa=function(a,b){a.D=b;a.i=g.rI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.J.map(bQ);b.unshift(a.i);g.PP(a,b)};
   bQ=function(a){return a.toString()};
   cQ=function(a,b,c,d){var e=new g.jO(b,void 0,"Video Override");g.OP.call(this,d.text||"",a,b,c,"Video Override",function(){g.pO(c,e)});
   var f=this;g.N(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Rb(a,this.getKey,this);this.J=e;g.J(this,this.J);b=new g.fO({G:"div",L:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.J(this,b);this.J.Gc(b,!0);this.D=new g.fO({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",va:"On"}]},-1);g.J(this,this.D);this.J.Gc(this.D,!0);this.T(this.D.element,
   "click",function(){Vwa(f,!0)});
   this.i=new g.fO({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",va:"Off"}]},-2);g.J(this,this.i);this.J.Gc(this.i,!0);this.T(this.i.element,"click",function(){Vwa(f,!1)});
   g.PP(this,g.ym(a,this.getKey))};
   Vwa=function(a,b){a.ea("settingChange",a.setting+"Override",!b);a.Bb.kh()};
   dQ=function(a,b){g.jO.call(this,a,void 0,"Options");var c=this;this.On={};for(var d=0;d<g.EO.length;d++){var e=g.EO[d],f=new cQ(-d,a,b,e);g.J(this,f);f.subscribe("settingChange",this.ih,this);this.On[e.option.toString()]=f;this.Gc(f,!0)}a=new g.fO(g.gO(),-g.EO.length,"Reset");g.J(this,a);a.Qa("click",function(){c.ih("reset",!0)});
   this.Gc(a,!0)};
   eQ=function(a,b){g.OP.call(this,"Auto-translate",0,a,b);this.I=a;this.languages={};a.Rb(this.element,this,127301);a.ib(this.element,!0)};
   Wwa=function(a,b){a.languages=g.Rb(b,a.getKey,a);g.PP(a,g.ym(b,a.getKey))};
   fQ=function(a,b){var c=new dQ(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.zF(a.V())&&(e={G:"div",L:"ytp-panel-footer-content",U:[{G:"span",va:d[0]},{G:"a",L:"ytp-panel-footer-content-link",va:"Settings",W:{href:"/account_playback"}},{G:"span",va:d[1]}]});g.OP.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.pO(b,c)},e);
   var f=this;this.I=a;this.Bb=b;this.tracks={};this.J=new g.M(function(){Xwa(f,!1)},3E3);
   g.J(this,this.J);this.K=new g.V({G:"div",U:[{G:"span",va:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",va:"{{content}}"}]});g.J(this,this.K);g.eO(this,this.K);this.i=new eQ(a,b);g.J(this,this.i);this.i.subscribe("select",this.DP,this);this.D=c;g.J(this,this.D);this.D.subscribe("settingChange",this.ih,this);b.subscribe("show",this.IV,this);this.T(a,"videodatachange",this.Pa);this.T(a,"onApiChange",this.Pa);this.T(a,"onCaptionsTrackListChanged",this.Pa);this.T(a,"captionschanged",this.Pa);
   a.Rb(this.element,this,127300);this.Pa()};
   Xwa=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
   gQ=function(a){g.rO.call(this,a,"ytp-settings-menu");var b=this;this.Wd=new g.jO(this.I);this.FE=this.settingsButton=null;this.Zd=!1;g.J(this,this.Wd);this.hide();g.pO(this,this.Wd);a.Rb(this.element,this,108341,!0);this.subscribe("show",function(c){b.De(c)})};
   Ywa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
   hQ=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-size-button","ytp-button"],W:{title:"{{title}}"},va:"{{icon}}"});this.I=a;this.isWidescreen=null;this.transition=new kP;this.tooltip=b.fc();g.J(this,this.transition);this.T(a,"sizestylechange",this.Pa);this.T(a,"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();this.Qa("click",this.onClick);g.we(this,g.YN(this.tooltip,this.element))};
   g.iQ=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-subtitles-button","ytp-button"],W:{"aria-pressed":"{{pressed}}",title:AN(a,"Subtitles/closed captions","c")},U:[jva()]});this.I=a;this.T(a,"videodatachange",this.Pa);this.T(a,"appresize",this.Pa);this.T(a,"promotooltipacceptbuttonclicked",this.i);this.T(a,"onApiChange",this.Pa);this.T(a,"onCaptionsTrackListChanged",this.Pa);this.T(a,"captionschanged",this.Pa);this.I.Rb(this.element,this,127299);this.Pa();this.Qa("click",this.onClick);g.we(this,
   g.YN(b.fc(),this.element))};
   g.jQ=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{G:"div",Ha:["ytp-time-display","notranslate"],U:[{G:"span",L:"ytp-time-clip-icon",va:"{{clipicon}}"},{G:"span",U:[{G:"span",L:"ytp-time-current",va:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",va:" / "},{G:"span",L:"ytp-time-duration",va:"{{duration}}"}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",va:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",va:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.V({G:"button",
   Ha:["ytp-live-badge","ytp-button"],W:{disabled:"true"},va:"{{content}}"});this.i=null;this.isLiveVideo=this.u=!1;this.J=this.D=null;this.isPremiere=!1;this.Sb=this.C=this.B=null;this.S=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.kd("Live");g.J(this,this.liveBadge);this.liveBadge.Da(this.element);this.tooltip=b.fc();this.Qa("click",this.onClick);this.T(this.S,"click",this.oW);this.T(a,"presentingplayerstatechange",this.Qb);this.T(a,"appresize",this.Qb);this.T(a,"onLoopRangeChange",this.VB);
   this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Qb();this.VB(a.getLoopRange())};
   Zwa=function(a){a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(a.Sa("clipicon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}),
   a.isLiveVideo&&!a.u?a.Sa("watchfullvideo","Watch live stream"):a.Sa("watchfullvideo","Watch full video"),g.O(a.element,"ytp-clip",kQ(a)),g.O(a.element,"ytp-live",lQ(a)))};
   lQ=function(a){var b=kQ(a)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar");return a.isLiveVideo&&!a.u&&!b};
   kQ=function(a){return!!a.Sb&&!!a.Sb.postId&&2!==a.api.getPresentingPlayerType()};
   oQ=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-volume-panel",W:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-volume-slider",U:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.K=c;this.ni=!1;this.Y=this.volume=0;this.J=null;this.B=this.u=this.isDragging=!1;this.i=b;this.K=c;this.C=b.Re();this.S=this.Fa("ytp-volume-slider");this.ma=this.Fa("ytp-volume-slider-handle");
   this.D=new g.qy(this.S,!0);g.J(this,this.D);this.D.subscribe("dragstart",this.MV,this);this.D.subscribe("dragmove",this.FP,this);this.D.subscribe("dragend",this.LV,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.NH);this.T(a,"fullscreentoggled",this.im);this.T(a,"onShowControls",this.vJ);this.T(a,"onHideControls",this.vJ);this.T(this.element,"keydown",this.GP);this.T(this.element,"focus",function(){mQ(d,d.u,d.isDragging,!0,d.i.ni())});
   this.T(this.element,"blur",function(){mQ(d,d.u,d.isDragging,!1,d.i.ni())});
   this.NH(a.bb().getPlayerSize());nQ(this,a.getVolume(),a.isMuted())};
   nQ=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Sa("valuenow",d);a.Sa("valuetext",e);a.ma.style.left=(a.C?60:40)*c+"px";a.volume=b};
   $wa=function(a,b){g.O(a.element,"ytp-volume-control-hover",b);mQ(a,b,a.isDragging,a.B,a.i.ni())};
   mQ=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.ni;a.u=b;a.isDragging=c;a.B=d;a.ni=e;b=a.u||a.isDragging||a.B||a.ni;f!==b&&(b?a.J=a.T(a.element,"wheel",a.EP):(a.jc(a.J),a.J=null),g.O(a.K,"ytp-volume-slider-active",b))};
   g.pQ=function(a,b){var c=a.V(),d=g.rF(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.hF(c)&&e.push("ytp-youtube-music-button");g.V.call(this,{G:"a",Ha:e,W:{href:"{{url}}",target:c.J,title:g.rI("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},va:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Rb(this.element,this,28666);this.Qa("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onLoopRangeChange",
   this.onVideoDataChange);this.T(a,"appresize",this.xb);this.onVideoDataChange();g.we(this,g.YN(b.fc(),this.element));this.xb()};
   rQ=function(a,b,c){g.uD.call(this);var d=this;this.I=a;this.u=b;this.rd=c;this.Ja=NaN;this.La=this.Ka=null;this.settingsMenu=new gQ(this.I);this.Oc=new g.wP(this.I,this.u);this.muteButton=null;this.Gg=new g.jQ(this.I,this.u);this.K=this.C=this.B=this.S=this.Aa=null;this.Z=new nP(this.I,this.u);this.Ea=new g.gP(this.I,this.u);this.Jd=new g.Fq(this.gq,null,this);this.J=null;c=a.V();this.rd.subscribe("autohideupdate",this.vj,this);var e=!a.yb().isCued(),f=this.I.V().N("html5_player_bottom_linear_gradient");
   f||!g.hF(c)&&!a.V().N("html5_player_dynamic_bottom_gradient")?f=f?new g.V({G:"div",L:"ytp-gradient-bottom-container",U:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.V({G:"div",L:"ytp-gradient-bottom"}):this.La=f=new g.aP(a);g.J(this,f);g.NM(a,f.element,8);this.ma=new g.xL(f,250,e,100);g.J(this,this.ma);this.i=new g.V({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.J(this,this.i);g.NM(a,this.i.element,8);this.Y=new g.xL(this.i,250,
   e,100);g.J(this,this.Y);this.ya=this.i.element.children[0];g.we(this.settingsMenu,function(){a.zn()===d.settingsMenu&&(a.settingsMenu=null)});
   g.J(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.NM(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(m){var n=d.u.fc(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:qQ(n);n.D.show();break;default:n.D.show()}else n.D.hide();n.K=p;b.RA(d.settingsMenu,m)});
   g.J(this,this.Oc);this.Oc.Da(this.i.element,0);e=new g.cP(a);g.J(this,e);g.NM(a,e.element,4);f=new g.LK({G:"div",L:"ytp-left-controls"});g.J(this,f);f.Da(this.ya);e=new g.qP(a,b,!1);g.J(this,e);e.Da(f.element);c.ma||(e=new g.oP(a,b),g.J(this,e),e.Da(f.element),AF(c)&&(e=new g.LK({G:"div",L:"ytp-hybrid-controls"}),g.J(this,e),this.K=new g.oP(a,b,!0),g.J(this,this.K),this.K.Da(e.element),g.NM(a,e.element,4)));e=new g.qP(a,b,!0);g.J(this,e);e.Da(f.element);e=new g.V({G:"span",L:"ytp-volume-area"});g.J(this,
   e);e.Da(f.element);if(!c.qb&&(this.muteButton=new g.mP(a,b),g.J(this,this.muteButton),this.muteButton.Da(e.element),c.Y)){var h=new oQ(a,b,this.i.element);g.J(this,h);h.Da(e.element);e=new g.qy(e.element);g.J(this,e);e.subscribe("hoverstart",function(){$wa(h,!0)});
   e=new g.qy(f.element);g.J(this,e);e.subscribe("hoverend",function(){$wa(h,!1)})}g.J(this,this.Gg);
   this.Gg.Da(f.element);e=new g.LK({G:"div",L:"ytp-right-controls"});g.J(this,e);this.Aa=new bP(a,b,this.Oc);g.J(this,this.Aa);this.Aa.Da(f.element);e.Da(this.ya);a.V().Mb&&c.N("web_player_move_autonav_toggle")&&(f=new ZO(a,b),g.J(this,f),f.Da(e.element));c.N("external_fullscreen_with_edu")&&c.externalFullscreen&&tF(c)&&(this.S=new fP(a,b),g.J(this,this.S),this.S.Da(e.element));f=new g.iQ(a,b);g.J(this,f);f.Da(e.element);f=new LP(a,b,this.settingsMenu);g.J(this,f);Ywa(this.settingsMenu,f);f.Da(e.element);
   var l=new jP(a);g.J(this,l);g.NM(a,l.element,5);l.subscribe("show",function(m){b.Xm(l,m)});
   f=new iP(a,b,l);g.J(this,f);f.Da(e.element);f=a.getVideoData();if(c.Nj||f.D&&"1"===c.controlsType)this.B=new g.pQ(a,b),g.J(this,this.B),this.B.Da(e.element);c.showMiniplayerButton&&!a.V().N("web_player_pip")&&(this.C=new hP(a,b),g.J(this,this.C),this.C.Da(e.element));g.J(this,this.Z);this.Z.Da(e.element);f.JB||this.Z.hide();c.Kg||(f=new hQ(a,b),g.J(this,f),f.Da(e.element));c.hf&&(f=new KP(a,b,this.settingsMenu),g.J(this,f),f.Da(e.element));c.Si&&(c=new YO(a,b),g.J(this,c),c.Da(e.element));g.J(this,
   this.Ea);this.Ea.Da(e.element);g.J(this,this.Jd);this.T(a,"appresize",this.xb);this.T(a,"fullscreentoggled",this.xb);this.T(a,"presentingplayerstatechange",this.WB);this.T(a,"videodatachange",this.onVideoDataChange);this.xb()};
   axa=function(a,b){a.I.yb().isCued()||b?b&&(a.Y.hide(),a.ma.hide(),a.muteButton&&a.muteButton.Yb(!1),a.B&&a.B.Yb(!1),a.C&&a.C.Yb(!1),a.u.fc().cj(a.i.element)):b||(a.Y.show(),a.ma.show(),a.muteButton&&a.muteButton.Yb(!0),a.B&&a.B.Yb(!0),a.C&&a.C.Yb(!0),a.vj())};
   bxa=function(a){var b=a.I.bb().getPlayerSize().width;return Math.max(b-2*sQ(a),100)};
   sQ=function(a){var b=a.u.Re();return 12*(a.I.getVideoData().D?0:b?2:1)};
   tQ=function(a){var b=a.u.Re()?72:50;a=a.I.V();g.vF(a)&&(b=54,a.N("web_player_bigger_buttons_like_mobile")&&(b=62));return b};
   uQ=function(a,b){UO.call(this,a,b,!1);var c=this;this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.nA("suggested_action_button_visible"),function(){c.De(!0)});
   this.T(this.I,g.oA("suggested_action_button_visible"),function(){c.De(!1)})};
   vQ=function(a){a.I.We("suggested_action_button_visible")};
   xQ=function(a){g.V.call(this,{G:"div",L:wQ.TITLE,U:[{G:"div",L:wQ.TEXT,U:[{G:"a",Ha:[wQ.LINK,wQ.SESSIONLINK],W:{target:a.V().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},va:"{{title}}"},{G:"div",L:wQ.SUBTEXT,U:[{G:"a",L:wQ.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.Fa(wQ.LINK);a.Rb(this.element,this,23851);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",
   this.Pa);this.Pa()};
   cxa=function(a){a.Sa("channelLink","");a.Sa("channelName","");a.Sa("channelTitleFocusable","-1")};
   g.yQ=function(a,b){g.V.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",U:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"g",U:[{G:"rect",W:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",U:[{G:"g",U:[{G:"polygon",W:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",W:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path",
   W:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",va:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",va:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",va:"{{duration}}"}]}]});var c=this;this.api=a;this.Ka=b;this.env=this.api.V();this.Ea=this.env.isMobile;this.bg=this.Fa("ytp-tooltip-bg");this.image=this.Fa("ytp-tooltip-image");this.text=this.Fa("ytp-tooltip-text");
   this.title=this.Fa("ytp-tooltip-title");this.Y=function(d){(d=Eu(d))&&g.Mg(c.u,d)||c.Uj()};
   this.C=function(d){3===c.type&&c.Uj();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.Y),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.Y),dxa(c,d,2))};
   this.ma=function(){c.Uj()};
   this.u=null;this.D=new g.xL(this,100);this.type=null;this.S=!1;this.i=null;this.B=NaN;this.J="";this.XB=this.api.bb().getPlayerSize().width;this.K=!0;this.scale=1;this.ya=new g.M(this.NS,250,this);this.Aa=new g.M(this.Uj,5E3,this);g.J(this,this.D);g.J(this,this.ya);g.J(this,this.Aa);TE&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
   bO=function(a){a.element.setAttribute("aria-live","polite")};
   gxa=function(a,b,c,d,e,f,h,l){if(!a.Ea||a.env.C){3===a.type&&a.Uj();1!==a.type&&(g.Pq(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.i&&a.i.dispose(),a.i=a.api.Gh(),a.i&&a.i.subscribe("l",a.pM,a));a.update({text:d,title:null!==h&&void 0!==h?h:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=hG(a.i,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=Loa(a.i,d,c));exa(a,d);if(l)switch(c=
   g.gm(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"}fxa(a,!!e,b,f)}};
   g.zQ=function(a){1===a.type&&a.Uj()};
   g.YN=function(a,b){if(a.Ea)return g.Ha;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.Uj();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
   wO=function(a,b,c){if(a.type)if(3===a.type)a.Uj();else return;dxa(a,b,3,c)};
   dxa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.dw("showElementTooltip called with non-element.",b.toString()),g.Ly(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.S=!!d;d?a.J=d:(a.J=b.getAttribute("title"),b.removeAttribute("title"));g.Pq(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.O(a.element,"ytp-tooltip-opaque",!!b);a.type=
   c;a.api.addEventListener("appresize",a.ma);a.K&&(qQ(a),a.D.show(0))}};
   qQ=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.S){var c=a.u;a.Sa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.J,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,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.Rq(a.element,["ytp-text-detail","ytp-preview"]);
   g.O(a.element,"ytp-has-duration",!!d)}else a.Sa("text",a.J),g.Tq(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);fxa(a,!!b)};
   fxa=function(a,b,c,d){var e=Math.min(a.XB,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ka.nq(a.element,a.u,c,1===a.type,d);a.element.style.top?g.N(a.element,"ytp-bottom"):a.element.style.bottom&&g.N(a.element,"ytp-top");3===a.type&&a.Aa.start()};
   xO=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.J=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&qQ(a))};
   exa=function(a,b){g.O(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=Hoa(a.i,a.B,b);ewa(a.bg,d,b,c,!0);a.ya.start()}};
   hxa=function(a){var b=a.u;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.ma);a.S||b.setAttribute("title",a.J);a.J="";a.u=null};
   g.AQ=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.XE(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",va:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",va:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.fc();bO(this.tooltip);a.Rb(this.element,this,28665);this.Qa("click",this.onClick,this);this.T(a,"videoplayerreset",this.HP);
   this.T(a,"appresize",this.Ox);this.T(a,"videodatachange",this.Ox);this.T(a,"presentingplayerstatechange",this.Ox);this.Ox();a=this.I.V();var c=g.Lz("yt-player-watch-later-pending");a.i&&c?(Fma(),ixa(this)):this.Pa(2);g.O(this.element,"ytp-show-watch-later-title",g.XE(a));g.we(this,g.YN(b.fc(),this.element))};
   jxa=function(a,b){g.Ita(function(){Fma({videoId:b});window.location.reload()},"wl_button",g.qF(a.I.V()))};
   ixa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Pa(3);var b=a.I.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.Ml(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Pa(2);a.I.V().u&&a.I.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0;
   a.isRequestPending=!1;a.Pa(1);a.I.V().isMobile&&wO(a.tooltip,a.element);a.I.V().u&&a.I.Oa("WATCH_LATER_VIDEO_ADDED")};
   eM(c,b).then(d,function(){a.isRequestPending=!1;kxa(a,"An error occurred. Please try again later.")})}};
   kxa=function(a,b){a.Pa(4,b);a.I.V().u&&a.I.Oa("WATCH_LATER_ERROR",b)};
   lxa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=yN();break;case 1:d=SK();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.N("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1",
   viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Sa("icon",d);a.icon=b}};
   BQ=function(a){g.NN.call(this,a);var b=this;this.yz=(this.Op=g.XE(this.api.V()))&&(this.api.V().isMobile||gu()||eu());this.ZC=48;this.aD=69;this.nk=null;this.Rn=[];this.xc=new g.TN(this.api);this.Zu=this.api.N("web_player_deprecate_double_tap_ux")?new yO:new zO(this.api);this.Rh=new g.V({G:"div",L:"ytp-chrome-top"});this.wx=[];this.tooltip=new g.yQ(this.api,this);this.backButton=this.Ms=null;this.channelAvatar=new dO(this.api,this);this.title=new xQ(this.api,this);this.Hg=new g.LK({G:"div",L:"ytp-chrome-top-buttons"});
   this.ph=null;this.di=new XN(this.api,this,this.Rh.element);this.overflowButton=this.ag=null;this.dg="1"===this.api.V().controlsType?new rQ(this.api,this,this.rd):null;this.contextMenu=new g.uO(this.api,this,this.xc);this.NC=!1;this.Oy=new g.V({G:"div",W:{tabindex:"0"}});this.Ny=new g.V({G:"div",W:{tabindex:"0"}});this.Lw=null;this.iG=this.zy=!1;var c=a.bb(),d=a.V(),e=a.getVideoData();this.Op&&(g.N(a.getRootNode(),"ytp-embed"),g.N(a.getRootNode(),"ytp-embed-playlist"),this.yz&&(g.N(a.getRootNode(),
   "ytp-embed-overlays-autohide"),g.N(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.ZC=60,this.aD=89);this.api.V().isMobile&&(g.N(a.getRootNode(),"ytp-mobile"),this.api.V().C&&g.N(a.getRootNode(),"ytp-embed-mobile-exp"));this.og=e&&e.og;g.J(this,this.xc);AF(d)||g.NM(a,this.xc.element,4);g.J(this,this.Zu);g.NM(a,this.Zu.element,4);e=new g.V({G:"div",L:"ytp-gradient-top"});g.J(this,e);g.NM(a,e.element,1);this.FG=new g.xL(e,250,!0,100);g.J(this,this.FG);g.J(this,this.Rh);g.NM(a,this.Rh.element,
   1);this.EG=new g.xL(this.Rh,250,!0,100);g.J(this,this.EG);g.J(this,this.tooltip);g.NM(a,this.tooltip.element,4);var f=new KO(a);g.J(this,f);g.NM(a,f.element,5);f.subscribe("show",function(l){b.Xm(f,l)});
   this.wx.push(f);this.Ms=new LO(a,this,f);g.J(this,this.Ms);d.showBackButton&&(this.backButton=new SN(a),g.J(this,this.backButton),this.backButton.Da(this.Rh.element));this.Op||this.Ms.Da(this.Rh.element);this.channelAvatar.Da(this.Rh.element);g.J(this,this.channelAvatar);g.J(this,this.title);this.title.Da(this.Rh.element);g.J(this,this.Hg);this.Hg.Da(this.Rh.element);this.ph=new g.AQ(a,this);g.J(this,this.ph);this.ph.Da(this.Hg.element);var h=new g.RO(a,this);g.J(this,h);g.NM(a,h.element,5);h.subscribe("show",
   function(l){b.Xm(h,l)});
   this.wx.push(h);this.shareButton=new g.QO(a,this,h);g.J(this,this.shareButton);this.shareButton.Da(this.Hg.element);this.Qg=new g.vO(a,this);g.J(this,this.Qg);this.Qg.Da(this.Hg.element);d.Yj&&(e=new XO(a),g.J(this,e),g.NM(a,e.element,4));this.Op&&this.Ms.Da(this.Hg.element);g.J(this,this.di);this.di.Da(this.Hg.element);e=new ZN(a,this,this.di);g.J(this,e);e.Da(this.Hg.element);this.ag=new HO(a,this);g.J(this,this.ag);g.NM(a,this.ag.element,5);this.ag.subscribe("show",function(){b.Xm(b.ag,b.ag.Wf())});
   this.wx.push(this.ag);this.overflowButton=new GO(a,this,this.ag);g.J(this,this.overflowButton);this.overflowButton.Da(this.Hg.element);this.dg&&g.J(this,this.dg);"3"===d.controlsType&&(e=new PO(a,this),g.J(this,e),g.NM(a,e.element,8));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.BO,this);e=new TL(a,new RN(a));g.J(this,e);g.NM(a,e.element,4);this.Oy.Qa("focus",this.KR,this);g.J(this,this.Oy);this.Ny.Qa("focus",this.LR,this);g.J(this,this.Ny);(this.Zl=d.qd?null:new g.DO(a,c,this.contextMenu,
   this.rd,this.xc,this.Zu,function(){return b.vk()}))&&g.J(this,this.Zl);
   this.Op||(this.LN=new VO(this.api,this),g.J(this,this.LN),g.NM(a,this.LN.element,4));this.XN=new uQ(this.api,this);g.J(this,this.XN);g.NM(a,this.XN.element,4);this.Qn.push(this.xc.element);this.T(a,"fullscreentoggled",this.im);this.T(a,"offlineslatestatechange",function(){b.api.Xv()&&sN(b.rd,128,!1)});
   this.T(a,"cardstatechange",function(){b.Qi()});
   this.T(a,"resize",this.cU);this.T(a,"showpromotooltip",this.DU)};
   mxa=function(a){var b=a.api.V(),c=g.U(a.api.yb(),128);return b.i&&c&&!a.api.isFullscreen()};
   CQ=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Wl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=CQ(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};
   nxa=function(a,b,c){var d;if(a.api.V().N("web_player_nitrate_promo_tooltip")){var e=a.api.getVideoData();if(null===e||void 0===e?0:e.tooltipRenderer){e=e.tooltipRenderer;var f;if(f=!a.Lw){if(!(b=!b)){var h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null===(h=e.tooltipDisplayStrategy)||void 0===h?void 0:h.type)&&"dtip-edu-player-iseecaptions"!==(null===(l=e.promoConfig)||void 0===l?void 0:l.promoId)}f=b}f&&(a.Lw=new MO(e,a,a.api),g.J(a,a.Lw),g.NM(a.api,a.Lw.element,8));null===(d=a.Lw)||
   void 0===d?void 0:d.TB(e,c)}}};
   g.DQ=function(a){g.$M.call(this,a);this.chrome=null;this.load()};
   EQ=function(){var a=oxa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Rr.apply(null,[cha.apply(null,g.v(b))].concat(g.v(c)));this.store=Ur(a,void 0,b)};
   FQ=function(a){this.u=a;this.C=this.i=0;this.B=-1};
   GQ=function(a){var b=aD(a.u,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=aD(a.u,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
   HQ=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.i+1<=a.u.totalLength;){0>c&&(c=GQ(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:GQ(a);break;case 1:a.i+=8;break;case 2:d=GQ(a);a.i+=d;break;case 5:a.i+=4}}return!1};
   IQ=function(a,b,c){c=void 0===c?0:c;return HQ(a,b)?GQ(a):c};
   JQ=function(a,b){var c=void 0===c?"":c;if(!HQ(a,b))return c;b=GQ(a);if(!b)return"";c=$C(a.u,a.i,b);a.i+=b;return g.D.TextDecoder?(new TextDecoder).decode(c):g.Xa(c)};
   KQ=function(a,b){var c=void 0===c?null:c;if(!HQ(a,b))return c;b=GQ(a);c=$C(a.u,a.i,b);a.i+=b;return c};
   pxa=function(){this.i=0;this.B=void 0;this.C=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer);g.D.TextEncoder&&(this.B=new TextEncoder)};
   LQ=function(a,b){b=a.i+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.u);a.u=b;a.view=new DataView(a.u.buffer)}};
   MQ=function(a,b){if(268435455<b){LQ(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(LQ(a,4);127<b;)a.view.setUint8(a.i,b&127|128),b>>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1};
   NQ=function(a,b,c){MQ(a,b<<3|0);MQ(a,c)};
   OQ=function(a,b,c){MQ(a,b<<3|2);b=c.length;MQ(a,b);LQ(a,b);a.u.set(c,a.i);a.i+=b};
   QQ=function(a,b,c){c=a.B?a.B.encode(c):new Uint8Array(PQ(g.Wa(c)).buffer);OQ(a,b,c)};
   qxa=function(a){MQ(a,18);a.C.push(a.i);a.i+=2};
   rxa=function(a){var b=a.C.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)};
   RQ=function(a){var b=new FQ(new WC([Rc(decodeURIComponent(a))]));a=JQ(b,2);b=IQ(b,4);var c=sxa[b];if("undefined"===typeof c)throw a=new g.dw("Failed to recognize field number",{name:"EntityKeyHelperError",Naa:b}),g.Ly(a),a;return{FR:b,entityType:c,entityId:a}};
   SQ=function(a,b){var c=new pxa;QQ(c,2,a);a=txa[b];if("undefined"===typeof a)throw b=new g.dw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.Ly(b),b;NQ(c,4,a);NQ(c,5,1);b=new Uint8Array(c.u.buffer,0,c.i);return encodeURIComponent(g.Mc(b))};
   TQ=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
   UQ=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);h<f.length;h++)0>e.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))};
   $Q=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.i=16;if(!uxa){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);VQ=new Uint8Array(256);WQ=[];XQ=[];YQ=[];ZQ=[];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;VQ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;WQ.push(b<<24|e<<16|e<<8|h);XQ.push(h<<24|WQ[f]>>>8);YQ.push(e<<24|XQ[f]>>>8);ZQ.push(e<<24|YQ[f]>>>8)}uxa=!0}e=[];for(c=0;4>c;c++)e.push(a[4*c]<<
   24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(VQ[a>>16&255]^d)<<24|VQ[a>>8&255]<<16|VQ[a&255]<<8|VQ[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e};
   vxa=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.i=16};
   wxa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(h=4;40>h;){var l=WQ[c>>>24]^XQ[d>>16&255]^YQ[e>>8&255]^ZQ[f&255]^b[h++];var m=WQ[d>>>24]^XQ[e>>16&255]^YQ[f>>8&255]^ZQ[c&255]^b[h++];var n=WQ[e>>>24]^XQ[f>>16&255]^YQ[c>>8&255]^ZQ[d&255]^b[h++];f=WQ[f>>>24]^XQ[c>>16&255]^YQ[d>>8&255]^ZQ[e&255]^b[h++];c=l;d=m;e=n}a=a.u;c=[c,d,e,f];for(d=0;16>d;)a[d++]=VQ[c[0]>>>24]^b[h]>>>24,a[d++]=VQ[c[1]>>
   16&255]^b[h]>>16&255,a[d++]=VQ[c[2]>>8&255]^b[h]>>8&255,a[d++]=VQ[c[3]&255]^b[h++]&255,c.push(c.shift())};
   yxa=function(){var a;if(!xxa&&!g.ax){var b=null===(a=window.crypto)||void 0===a?void 0:a.subtle;if((null===b||void 0===b?0:b.importKey)&&(null===b||void 0===b?0:b.sign)&&(null===b||void 0===b?0:b.encrypt))return b}};
   aR=function(a){this.B=a};
   bR=function(a){this.u=a};
   cR=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
   Axa=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.i[0];c=a.i[1];e=a.i[2];for(var f=a.i[3],h=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,q,t=0;64>t;t++)p=n+zxa[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),q=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b=
   p+q;a.i[0]=b+a.i[0]|0;a.i[1]=c+a.i[1]|0;a.i[2]=e+a.i[2]|0;a.i[3]=f+a.i[3]|0;a.i[4]=h+a.i[4]|0;a.i[5]=l+a.i[5]|0;a.i[6]=m+a.i[6]|0;a.i[7]=n+a.i[7]|0};
   Cxa=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.i[c]>>>24,b[4*c+1]=a.i[c]>>>16&255,b[4*c+2]=a.i[c]>>>8&255,b[4*c+3]=a.i[c]&255;Bxa(a);return b};
   Bxa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.C=0;a.u=0};
   dR=function(a,b){b=void 0===b?{}:b;g.dw.call(this,Dxa[a],Object.assign({name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,dR.prototype)};
   Exa=function(a){return new dR("WRONG_DATA_TYPE",{BR:a})};
   Fxa=function(a){return a instanceof Error?new dR("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new dR("UNKNOWN_ENCODE_ERROR")};
   Gxa=function(a){return a instanceof Error?new dR("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new dR("UNKNOWN_DECODE_ERROR")};
   Hxa=function(a,b){a=a instanceof dR?a:b(a);g.Ly(a);throw a;};
   Ixa=function(){};
   Jxa=function(a,b,c){try{return a.u(b,c)}catch(d){Hxa(d,Gxa)}};
   eR=function(a){a=(new TextEncoder).encode(a).slice(0,16);var b=new Uint8Array(16);b.set(a);return b};
   fR=function(a){this.i=a};
   gR=function(){};
   Kxa=function(){this.i={};this.i[0]=new gR;if(!g.Cs("aes_pes_encoder_killswitch")){var a=this.i;try{var b=ew();var c=eR(b);var d=new fR(new bR(c),new aR(c))}catch(e){throw a=new dR("KEY_CREATION_FAILED"),g.Ly(a),a;}a[1]=d}};
   hR=function(a,b){b=void 0===b?0:b;a=a.i[b];if(!a)throw b=new dR("INVALID_ENCODER_VERSION",{BR:b}),g.Ly(b),b;return a};
   Mxa=function(a){var b=Lxa[a];if(b)return b;g.My(new g.dw("Entity model not found.",{entityType:a}))};
   Nxa=function(a){var b=new Kxa,c=a.objectStore("EntityStore"),d=a.objectStore("EntityAssociationStore");Kw(c,{},function(e){var f=e.getValue(),h=Jxa(hR(b,f.version),f.data,f.key),l=RQ(f.key).entityType;l=Mxa(l);if(!l)return e.continue();l=(new l(h)).pe();h=[];l=g.r(l);for(var m=l.next();!m.done;m=l.next())h.push(Fw(d,{parentEntityKey:f.key,childEntityKey:m.value}));return pw.all(h).then(function(){return e.continue()})})};
   Oxa=function(){if(iR)return iR();var a={};iR=zx("PersistentEntityStoreDb",{Gs:(a.EntityStore={Mm:1},a.EntityAssociationStore={Mm:2},a),bx:!1,upgrade:function(b,c,d){c(1)&&Jw(Bw(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=Bw(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Jw(b,"byParentEntityKey","parentEntityKey"),Jw(b,"byChildEntityKey","childEntityKey"));c(3)&&!c(1)&&Nxa(d)},
   version:g.Cs("pes_migrate_association_data")?3:2});return iR()};
   Pxa=function(a){return Ww(Oxa(),a)};
   Qxa=function(a,b){this.i=a;this.B=b;this.u={}};
   Rxa=function(a,b){return Jxa(hR(a.B,b.version),b.data,b.key)};
   jR=function(a,b,c){return a.i.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return Rxa(a,d)}})};
   kR=function(a,b,c){return c?(c=c.map(function(d){return jR(a,d,b)}),pw.all(c)):Pw(a.i.objectStore("EntityStore").index("entityType"),IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return Rxa(a,e)})})};
   mR=function(a,b,c){var d=TQ(b),e=hR(a.B,1);a:{try{var f=e.B(b,d);break a}catch(l){Hxa(l,Fxa)}f=void 0}var h={key:d,entityType:c,data:f,version:1};return a.i.objectStore("EntityStore").get(d).then(function(l){if(l&&l.entityType!==c)throw Error("Incorrect entity type");}).then(function(){return pw.all([Fw(a.i.objectStore("EntityStore"),h),
   Sxa(a,b,c)])}).then(function(){lR(a,d,c);
   return d})};
   nR=function(a,b,c){b=b.map(function(d){return mR(a,d,c)});
   return pw.all(b)};
   oR=function(a,b,c){if(null===c||void 0===c?0:c.kJ){var d=new Set;return Txa(a,b,d).then(function(){for(var f=[],h=g.r(d),l=h.next();!l.done;l=h.next())f.push(oR(a,l.value));return pw.all(f).then(function(){})})}var e=RQ(b).entityType;
   return pw.all([a.i.objectStore("EntityStore").delete(b),pR(a,b)]).then(function(){lR(a,b,e)})};
   Uxa=function(a,b){return Qw(a.i.objectStore("EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return pw.all([c.delete(),pR(a,c.fz())]).then(function(){lR(a,c.fz(),b);return c.continue()})})};
   lR=function(a,b,c){var d=a.u[c];d||(d=new Set,a.u[c]=d);d.add(b)};
   Vxa=function(a,b,c){var d=TQ(b);c=Mxa(c);if(!c)return pw.resolve([]);c=new c(b);a=a.i.objectStore("EntityAssociationStore");b=[];c=g.r(c.pe());for(var e=c.next();!e.done;e=c.next())b.push(Fw(a,{parentEntityKey:d,childEntityKey:e.value}));return pw.all(b).then(function(f){return f.map(function(h){return h[1]})})};
   pR=function(a,b){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
   Sxa=function(a,b,c){var d=TQ(b);return pR(a,d).then(function(){return Vxa(a,b,c)})};
   Txa=function(a,b,c){if(c.has(b))return pw.resolve(void 0);c.add(b);return Wxa(a,b).then(function(d){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b)).then(function(){return d})}).then(function(d){var e=pw.resolve(void 0),f={};
   d=g.r(d);for(var h=d.next();!h.done;f={xB:f.xB},h=d.next())f.xB=h.value,e=e.then(function(l){return function(){return Txa(a,l.xB,c)}}(f));
   return e}).then(function(){})};
   Wxa=function(a,b){var c=a.i.objectStore("EntityAssociationStore");return Pw(c.index("byParentEntityKey"),IDBKeyRange.only(b)).then(function(d){var e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.push(Pw(c.index("byChildEntityKey"),f.childEntityKey));return pw.all(e)}).then(function(d){var e=[];
   d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,1===f.length&&e.push(f[0].childEntityKey);return e})};
   qR=function(a,b){g.I.call(this);this.token=a;this.u=b;this.i=[];a=new g.D.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+ew());a.onmessage=this.B.bind(this);this.channel=a};
   rR=function(a,b,c){return g.H(a,function e(){var f=this,h,l,m,n,p;return g.B(e,function(q){if(1==q.i)return h=f,g.A(q,Pxa(f.token),2);if(3!=q.i)return l=q.u,g.A(q,Dw(l,["EntityStore","EntityAssociationStore"],b,function(t){m=new Qxa(t,h.u);return c(m)}),3);
   n=q.u;m&&(p=m.u,0<Object.keys(p).length&&(f.channel.postMessage(p),Xxa(f,p)));return q.return(n)})})};
   sR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
   tR=function(a,b,c){return rR(a,{mode:"readwrite",Hc:!0},function(d){return mR(d,b,c)})};
   Yxa=function(a,b){return rR(a,{mode:"readwrite",Hc:!0},function(c){return nR(c,b,"offlineOrchestrationActionWrapperEntity")})};
   Zxa=function(a,b){return rR(a,{mode:"readwrite",Hc:!0},function(c){return oR(c,b,void 0)})};
   uR=function(a,b,c){return rR(a,{mode:"readonly",Hc:!0},function(d){return jR(d,b,c)})};
   vR=function(a,b,c){return rR(a,{mode:"readonly",Hc:!0},function(d){return kR(d,b,c)})};
   Xxa=function(a,b){a=g.r(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),$xa&&c&&$xa.push(c)};
   xR=function(){wR||(wR=aya());return wR};
   aya=function(){return g.H(this,function b(){var c,d,e;return g.B(b,function(f){if(1==f.i)return ua(f,2),g.A(f,g.ex(),4);if(2!=f.i){c=f.u;if(!c||!fw()||"undefined"===typeof g.D.BroadcastChannel)return f.return();d=new Kxa;return f.return(new qR(c,d))}e=wa(f);e instanceof Error&&g.Ly(e);return f.return()})})};
   dya=function(a){var b=bya;return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i){e=a.mutations;if(!e||0>=e.length)return f.return();if(b){var h=e,l={type:"ENTITY_LOADED"};void 0!==h&&(l.payload=h);b.dispatch(l)}return g.A(f,cya(e),2)}e.length=0;g.sa(f)})})};
   cya=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){return 1==e.i?g.A(e,xR(),2):(d=e.u)?g.A(e,rR(d,"readwrite",function(f){for(var h=[],l=g.r(a),m=l.next();!m.done;m=l.next()){m=m.value;var n;if(n=m.entityKey){n=void 0;var p=null===(n=m.options)||void 0===n?void 0:n.persistenceOption;n="ENTITY_PERSISTENCE_OPTION_PERSIST"===p||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===p}n&&(n=bc(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(mR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"===
   m.type&&h.push(oR(f,m.entityKey)))}return pw.all(h)}),0):e.return()})})};
   eya=function(a){return void 0!==a};
   fya=function(){this.locks=navigator.locks};
   gya=function(){try{var a=g.Ga("ytglobal.locks_");if(a)return a;var b;if(b=navigator){var c=navigator;b="locks"in c&&!!c.locks}if(b)return g.D.localStorage&&g.D.localStorage.getItem("noop"),a=new fya,g.Fa("ytglobal.locks_",a,void 0),a}catch(d){}};
   yR=function(a,b,c){g.My(new g.dw("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.My(b)};
   zR=function(){};
   AR=function(){};
   BR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+ew("CacheStorage get")};
   hya=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){d=c;if(void 0!==CR)return e.return(CR);CR=new Promise(function(f){return g.H(d,function l(){var m;return g.B(l,function(n){switch(n.i){case 1:return ua(n,2),g.A(n,DR.open("test-only"),4);case 4:return g.A(n,DR.delete("test-only"),5);case 5:va(n,3);break;case 2:if(m=wa(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})});
   return e.return(CR)})})};
   FR=function(){return g.H(this,function b(){return g.B(b,function(c){if(1==c.i)return g.A(c,hya(),2);if(!c.u)return c.return(void 0);ER||(ER=new AR);return c.return(ER)})})};
   iya=function(){return g.H(this,function b(){var c;return g.B(b,function(d){return 1==d.i?g.A(d,FR(),2):(c=d.u)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})};
   jya=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,FR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.A(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.A(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})};
   kya=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,FR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.A(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.A(f,e.addAll(a),0)})})};
   GR=function(a,b){var c=b.Go,d,e;a.encryptedVideoId=b.videoId;a.cotn=c.cotn;a.offlineabilityFormatType=c.maximumDownloadQuality;a.isRefresh=null!==(d=c.isRefresh)&&void 0!==d?d:!1;a.softErrorCount=null!==(e=c.transferRetryCount)&&void 0!==e?e:0;g.Zv("offlineTransferStatusChanged",a)};
   lya=function(a){switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":return"OFFLINE_DATABASE_ERROR";case "TRANSFER_FAILURE_REASON_PLAYABILITY":return"NOT_PLAYABLE";case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":return"TOO_MANY_RETRIES";case "TRANSFER_FAILURE_REASON_INTERNAL":return"OFFLINE_DOWNLOAD_CONTROLLER_ERROR";case "TRANSFER_FAILURE_REASON_STREAM_MISSING":return"STREAM_VERIFICATION_FAILED";case "TRANSFER_FAILURE_REASON_SERVER":case "TRANSFER_FAILURE_REASON_SERVER_PROPERTY_MISSING":return"OFFLINE_REQUEST_FAILURE";
   case "TRANSFER_FAILURE_REASON_NETWORK":return"OFFLINE_NETWORK_ERROR";default:return"UNKNOWN_FAILURE_REASON"}};
   HR=function(a){var b,c,d;return 0<(null!==(d=null===(c=null===(b=a.actionMetadata)||void 0===b?void 0:b.retryScheduleIntervalsInSeconds)||void 0===c?void 0:c.length)&&void 0!==d?d:0)};
   IR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
   JR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
   LR=function(a,b,c){return g.H(this,function e(){var f,h,l,m,n,p,q,t,u,x,y,z,G,F,C,K,S,L,W,pa,ta,rb,ob;return g.B(e,function(Ib){switch(Ib.i){case 1:return f=SQ(a,"ytMainVideoEntity"),h=SQ(a,"ytMainChannelEntity"),l=SQ(a,"transfer"),g.A(Ib,rR(b,{mode:"readonly",Hc:!0},function(sc){return pw.all([jR(sc,f,"ytMainVideoEntity"),jR(sc,h,"ytMainChannelEntity"),jR(sc,l,"transfer"),kR(sc,"ytMainChannelEntity"),kR(sc,"offlineOrchestrationActionWrapperEntity")])}),2);
   case 2:m=Ib.u;n=g.r(m);p=n.next().value;q=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;y=p;z=q;G=t;F=u;C=x;if(!y&&!z){Ib.fb(3);break}K=y?KR(y.thumbnail):[];if(!z){S=[];Ib.fb(4);break}return g.A(Ib,mya(z,F),5);case 5:S=Ib.u;case 4:return L=S,g.A(Ib,jya(K.concat(L)),3);case 3:W=[];g.Cs("orchestration_use_cascading_delete")||W.push(SQ(a,"ytMainDownloadedVideoEntity"),f,h,SQ(a,"playbackData"),l,SQ(a,"offlineVideoPolicy"),SQ(a,"offlineVideoStreams"));pa=g.r(C);for(ta=pa.next();!ta.done;ta=
   pa.next())rb=ta.value,ob=RQ(rb.key).entityId,ob!==a||nya(c,rb.actionProto)||W.push(rb.key);return g.A(Ib,rR(b,{mode:"readwrite",Hc:!0},function(sc){var dd=W.map(function(We){return oR(sc,We)});
   g.Cs("orchestration_use_cascading_delete")&&dd.push(oR(sc,SQ(a,"ytMainDownloadedVideoEntity"),{kJ:!0}));return pw.all(dd)}),7);
   case 7:oya(G),g.sa(Ib)}})})};
   qya=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){if(1==m.i)return g.A(m,rR(a,{mode:"readwrite",Hc:!0},function(n){var p=kR(n,"transfer"),q=kR(n,"offlineOrchestrationActionWrapperEntity"),t=g.Cs("orchestration_use_cascading_delete");return pw.all([p,q]).then(function(u){u=g.r(u);var x=u.next().value,y=u.next().value;u=pya.map(function(C){return Uxa(n,C)});
   y=g.r(y);for(var z=y.next();!z.done;z=y.next()){z=z.value;var G="ytMainDownloadedVideoEntity"===RQ(z.actionProto.entityKey).entityType,F="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===z.actionProto.actionType;nya(b,z.actionProto)||G&&(!G||F)||u.push(oR(n,z.key,{kJ:t}))}return pw.all(u).then(function(){return x})})}),2);
   e=m.u;f=g.r(e);for(h=f.next();!h.done;h=f.next())l=h.value,oya(l);return g.A(m,iya(),0)})})};
   nya=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey};
   oya=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=RQ(a.key).entityId;GR({transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"},{videoId:b,Go:a})}};
   KR=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
   mya=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q;return g.B(d,function(t){e=KR(a.avatar);f=g.r(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.r(KR(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,q=e.indexOf(p),-1!==q&&e.splice(q,1);return t.return(e)})})};
   sya=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.A(e,rya(a),2);d=e.u;g.Zv("offlineStateSnapshot",d);g.sa(e)})})};
   rya=function(a){return g.H(this,function c(){var d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F,C;return g.B(c,function(K){if(1==K.i)return g.A(K,rR(a,{mode:"readonly",Hc:!0},function(S){return kR(S,"playbackData").then(function(L){var W=L.map(function(ta){return ta.transfer}).filter(function(ta){return!!ta}),pa=L.map(function(ta){return ta.offlineVideoPolicy}).filter(function(ta){return!!ta});
   W=kR(S,"transfer",W);pa=kR(S,"offlineVideoPolicy",pa);return pw.all([W,pa]).then(function(ta){var rb=g.r(ta);ta=rb.next().value;rb=rb.next().value;return[L,ta,rb]})})}),2);
   d=K.u;e=g.r(d);f=e.next().value;h=e.next().value;l=e.next().value;m=f;n=h;p=l;q={};t={};u=g.r(n);for(x=u.next();!x.done;x=u.next())(y=x.value)&&(q[y.key]=y);z=g.r(p);for(G=z.next();!G.done;G=z.next())(F=G.value)&&(t[F.key]=F);C=m.map(function(S){var L=q[S.transfer],W=t[S.offlineVideoPolicy];S=RQ(W.key).entityId;if("OFFLINE_VIDEO_POLICY_ACTION_DISABLE"===W.action){var pa="OFFLINE_VIDEO_STATE_DISABLED";W.expirationTimestamp&&Number(W.expirationTimestamp)<Date.now()/1E3&&(pa="OFFLINE_VIDEO_STATE_EXPIRED");
   L=pa}else if("OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED"===W.action)L="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(null===L||void 0===L?void 0:L.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":pa="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":pa="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":pa="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":pa="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":pa=
   "OFFLINE_VIDEO_STATE_PLAYABLE";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":pa="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:pa="OFFLINE_VIDEO_STATE_UNKNOWN"}if("OFFLINE_VIDEO_STATE_OFFLINE_FAILED"===pa)switch(null===L||void 0===L?void 0:L.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":pa="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":pa="OFFLINE_VIDEO_STATE_STREAMS_MISSING";
   break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":pa="OFFLINE_VIDEO_STATE_NETWORK_ERROR"}L=pa}return{id:S,videoState:L}});
   return K.return({offlineVideos:C})})})};
   uya=function(a,b,c,d){var e=this,f;this.S=a;this.Z=b;this.visibility=c;this.N=d;this.C=this.J=this.D=this.u=this.i=!1;this.K=new g.M(function(){tya(e)});
   null===(f=this.visibility)||void 0===f?void 0:f.subscribe("visibilitystatechange",function(){e.De()})};
   vya=function(a){if(!a.u&&!a.i){var b=gya();if(b){a.u=!0;var c=ew("OfflineLockManager");b.request("woffle_orchestration_leader:"+c,{},function(){return g.H(a,function e(){var f,h=this,l,m;return g.B(e,function(n){switch(n.i){case 1:return ua(n,2),h.B=new Lk,h.i=!0,h.u=!1,g.A(n,h.S(),4);case 4:return g.A(n,h.B.promise,5);case 5:va(n,0);break;case 2:l=wa(n),(null===(f=h.N)||void 0===f?0:f.call(h,"wo_relinquish_leadership_on_lock_request_error"))||tya(h),l instanceof Error&&(m=l,m.args=[{name:"WoLockManagerError",
   lA:l.name}],g.Ly(m)),g.sa(n)}})})})}}};
   wya=function(a){a.i&&(a.C=!0,MR(a))};
   xya=function(a,b){a.i&&(a.D=b,MR(a))};
   yya=function(a,b){a.i&&(a.J=b,MR(a))};
   MR=function(a){a.visibility&&(a.J&&a.D&&a.C&&a.visibility.isBackground()?g.Jq(a.K,6E4):a.K.stop())};
   tya=function(a){a.B&&a.B.resolve();a.i=!1;a.u=!1;a.Z()};
   NR=function(a){g.I.call(this);this.api=a;"undefined"!==typeof g.D.BroadcastChannel&&(this.channel=new g.D.BroadcastChannel("PLAYER_OFFLINE_ERROR_SYNC:"+ew()),this.channel.onmessage=this.i.bind(this))};
   OR=function(a,b){var c;a.api.Oa("onOfflineOperationFailure",b);null===(c=a.channel)||void 0===c?void 0:c.postMessage(b)};
   PR=function(a){this.i=a};
   zya=function(a,b){return g.H(a,function d(){var e,f,h,l,m,n,p,q=this;return g.B(d,function(t){switch(t.i){case 1:e=new Map,f=g.r(b),h=f.next();case 2:if(h.done){t.fb(4);break}l=h.value;m=e;n=m.set;p=l;return g.A(t,q.u(l),5);case 5:n.call(m,p,t.u);h=f.next();t.fb(2);break;case 4:return t.return(e)}})})};
   QR=function(a,b,c,d){this.status=a;this.i=b;this.u=c;this.failureReason=d};
   Aya=function(a){return new Promise(function(b){Bha(Ru(),function(){b()},a)})};
   RR=function(){PR.apply(this,arguments)};
   SR=function(a,b){this.i=a;this.X=b};
   Dya=function(a,b){var c,d;return g.H(a,function f(){var h,l,m=this,n,p,q;return g.B(f,function(t){switch(t.i){case 1:h=b.entityKey;l=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch;ua(t,2);var u;var x=null!==(u=b.actionMetadata)&&void 0!==u&&u.playbackDataActionMetadata?{maximumDownloadQuality:b.actionMetadata.playbackDataActionMetadata.maximumDownloadQuality}:void 0;return g.A(t,Bya(m,h,{isEnqueuedForExpiredStreamUrlRefetch:l,
   DO:x}),4);case 4:return(n=t.u)?g.A(t,Cya(m,n,b),5):t.return(TR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 5:return t.return(TR(b,!0,n.orchestrationActions));case 2:return p=wa(t),q="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",p instanceof jw&&"QUOTA_EXCEEDED"===p.type&&(q="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),yR("PDE handleAdd error"),t.return(TR(b,!1,void 0,q))}})})};
   Eya=function(a,b){return g.H(a,function d(){var e,f=this,h,l,m,n,p,q,t,u,x,y,z,G,F;return g.B(d,function(C){switch(C.i){case 1:return e=b.entityKey,g.A(C,rR(f.i,{mode:"readonly",Hc:!0},function(K){var S=jR(K,e,"playbackData"),L=jR(K,SQ(RQ(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");K=jR(K,SQ(RQ(b.entityKey).entityId,"transfer"),"transfer");return pw.all([S,L,K])}),2);
   case 2:h=C.u;l=g.r(h);m=l.next().value;n=l.next().value;p=l.next().value;q=m;t=n;u=p;if(!q||!t)return C.return(TR(b,!0));x={lastPlayerResponseTimestampSeconds:q.playerResponseTimestamp,offlineToken:t.offlineToken};y={};if(null===u||void 0===u?0:u.maximumDownloadQuality)y.maximumDownloadQuality=u.maximumDownloadQuality;ua(C,3);return g.A(C,Bya(f,e,{refreshData:x,DO:y}),5);case 5:return(z=C.u)?g.A(C,Cya(f,z,b),6):C.return(TR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 6:return C.return(TR(b,
   !0,z.orchestrationActions));case 3:return G=wa(C),F="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",G instanceof jw&&"QUOTA_EXCEEDED"===G.type&&(F="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),C.return(TR(b,!1,void 0,F))}})})};
   Bya=function(a,b,c){return g.H(a,function e(){var f,h=this,l,m;return g.B(e,function(n){f=g.nM();var p=h.X,q=c.refreshData,t=c.isEnqueuedForExpiredStreamUrlRefetch,u=c.DO,x={entityKey:b};q&&(x.refreshData=q);t&&(x.isExpiredStreamUrlRefetch=t);u&&(x.downloadParameters=u);l={context:Eua(p),signatureTimestamp:18911,videos:[x]};m=g.YL(Fya);return n.return(g.rK(f,l,m))})})};
   Cya=function(a,b,c){return g.H(a,function e(){var f,h=this;return g.B(e,function(l){if(1==l.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return l.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0<b.frameworkUpdates.entityBatchUpdate.mutations.length&&"ENTITY_MUTATION_TYPE_DELETE"===b.frameworkUpdates.entityBatchUpdate.mutations[0].type))return l.fb(2);f=RQ(b.frameworkUpdates.entityBatchUpdate.mutations[0].entityKey).entityId;return g.A(l,LR(f,h.i,c),2)}return g.A(l,
   dya(b.frameworkUpdates.entityBatchUpdate),0)})})};
   TR=function(a,b,c,d){return new QR(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",HR(a),c,d)};
   UR=function(){PR.apply(this,arguments)};
   Hya=function(a,b){return g.H(a,function d(){var e,f=this,h;return g.B(d,function(l){switch(l.i){case 1:return e=HR(b),g.A(l,uR(f.i,b.entityKey,"transfer"),2);case 2:if(h=l.u)return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ua(l,3);return g.A(l,Gya(f,b),5);case 5:va(l,4);break;case 3:return wa(l),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
   e))}})})};
   Iya=function(a,b){return g.H(a,function d(){var e,f=this,h;return g.B(d,function(l){switch(l.i){case 1:return e=HR(b),g.A(l,uR(f.i,b.entityKey,"transfer"),2);case 2:h=l.u;if(!h||"TRANSFER_STATE_COMPLETE"!==h.transferState)return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ua(l,3);return g.A(l,Gya(f,b,!0),5);case 5:va(l,4);break;case 3:return wa(l),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));
   case 4:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
   Gya=function(a,b,c){c=void 0===c?!1:c;var d;return g.H(a,function f(){var h,l,m,n=this;return g.B(f,function(p){if(1==p.i)return h=null===(d=b.actionMetadata)||void 0===d?void 0:d.transferEntityActionMetadata,l={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:yy(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===h||void 0===h?void 0:h.maximumDownloadQuality,preferredAudioTrack:null===h||void 0===h?void 0:h.preferredAudioTrack,transferRetryCount:0,isRefresh:c},
   m=RQ(l.key).entityId,g.A(p,rR(n.i,{mode:"readwrite",Hc:!0},function(q){var t=[];c&&t.push(oR(q,SQ(m,"offlineVideoStreams")));t.push(mR(q,l,"transfer"));return pw.all(t)}),2);
   GR({transferStatusType:"TRANSFER_STATUS_TYPE_ENQUEUED",statusType:"ADDED_TO_QUEUE"},{videoId:m,Go:l});g.sa(p)})})};
   Kya=function(a){return g.H(this,function c(){var d,e,f,h;return g.B(c,function(l){if(1==l.i)return d=g.nM(),e=Mua(a),f=g.YL(Jya),g.A(l,g.rK(d,e,f),2);h=l.u;if(!h)throw Error("Network request failed");if(!h.videos||!h.videos.length)throw Error("No data");return l.return(h.videos.map(function(m){return m.offlineVideoData}))})})};
   VR=function(a,b){this.i=a;this.X=b};
   Nya=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m,n,p;return g.B(d,function(q){switch(q.i){case 1:return e=HR(b),f=RQ(b.entityKey),h=f.entityId,ua(q,2),g.A(q,Lya(l,h),4);case 4:va(q,3);break;case 2:return m=wa(q),n="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",m instanceof jw&&"QUOTA_EXCEEDED"===m.type&&(n="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),q.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,n));case 3:var t;var u=null!==(t=b.actionMetadata)&&
   void 0!==t&&t.ytMainDownloadedVideoEntityActionMetadata?{playbackDataActionMetadata:{maximumDownloadQuality:b.actionMetadata.ytMainDownloadedVideoEntityActionMetadata.maximumDownloadQuality}}:void 0;p=Mya("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",h,u);return q.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[p]))}})})};
   Oya=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m,n,p,q;return g.B(d,function(t){switch(t.i){case 1:return e=HR(b),f=RQ(b.entityKey),h=f.entityId,g.A(t,uR(l.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:m=t.u;if(!m)return t.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ua(t,3);return g.A(t,Lya(l,h,m.addedTimestampMillis),5);case 5:n=Mya("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",h);va(t,4);break;case 3:return p=wa(t),p instanceof Error&&"No data"===p.message?
   g.A(t,LR(h,l.i,b),4):(q="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",p instanceof jw&&"QUOTA_EXCEEDED"===p.type&&(q="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),t.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,q)));case 4:return t.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,n?[n]:void 0))}})})};
   Pya=function(a,b){return g.H(a,function d(){var e,f,h=this;return g.B(d,function(l){switch(l.i){case 1:return e=HR(b),ua(l,2),f=RQ(b.entityKey).entityId,"!*$_ALL_VIDEOS_!*$"===f?g.A(l,qya(h.i,b),5):g.A(l,LR(f,h.i,b),5);case 5:va(l,3);break;case 2:return wa(l),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 3:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
   Lya=function(a,b,c){return g.H(a,function e(){var f,h,l=this,m,n,p,q;return g.B(e,function(t){switch(t.i){case 1:return g.A(t,Kya([b]),2);case 2:return f=t.u,h=f[0],g.A(t,Qya(l,h,c),3);case 3:m=t.u;n=m.videoEntity;p=m.channelEntity;ua(t,4);var u=KR(n.thumbnail),x=KR(p.avatar);return g.A(t,kya(u.concat(x)),6);case 6:va(t,0);break;case 4:q=wa(t);if(!l.X.N("woffle_disable_thumbnails"))throw q;g.sa(t)}})})};
   Qya=function(a,b,c){var d;return g.H(a,function f(){var h,l,m,n,p=this;return g.B(f,function(q){if(1==q.i){if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");c||(c=Date.now().toString());h=null===(d=b.channel)||void 0===d?void 0:d.offlineChannelData;l={id:SQ(b.videoId,"ytMainChannelEntity"),channelId:h.channelId,title:h.title,avatar:h.thumbnail};m={id:SQ(b.videoId,"ytMainVideoEntity"),videoId:b.videoId,title:b.title,thumbnail:b.thumbnail,localizedStrings:{viewCount:b.shortViewCountText},
   lengthSeconds:b.lengthSeconds?Number(b.lengthSeconds):void 0,publishedTimestampMillis:b.publishedTimestamp?(1E3*Number(b.publishedTimestamp)).toString():void 0,formattedDescription:b.description,channelOwner:l.id};n={id:SQ(b.videoId,"ytMainDownloadedVideoEntity"),video:m.id,playbackData:SQ(b.videoId,"playbackData"),offlineVideoPolicy:SQ(b.videoId,"offlineVideoPolicy"),addedTimestampMillis:c};return g.A(q,rR(p.i,{mode:"readwrite",Hc:!0},function(t){var u=mR(t,l,"ytMainChannelEntity"),x=mR(t,m,"ytMainVideoEntity");
   t=mR(t,n,"ytMainDownloadedVideoEntity");return pw.all([u,x,t])}),2)}return q.return({videoEntity:m,
   channelEntity:l,Kaa:n})})})};
   Mya=function(a,b,c){b=SQ(b,"playbackData");c=Object.assign(Object.assign({},c),{priority:1,retryScheduleIntervalsInSeconds:Rya});return{actionType:a,entityKey:b,actionMetadata:c}};
   Sya=function(a,b,c){return new oG(a,{cotn:b,raw_player_response:c,download_media:!0,start:Infinity,disable_watch_next:!0})};
   Tya=function(){return{priority:1,retryScheduleIntervalsInSeconds:[1,2,4]}};
   WR=function(a,b,c,d,e,f,h,l,m,n,p){this.entityType=a;this.actionId=b;this.action=c;this.parentActionId=d;this.rootActionId=void 0===e?b:e;this.childActionIds=f;this.prereqActionId=h;this.postreqActionIds=l;this.hasChildActionFailed=n;this.retryScheduleIndex=0;this.i=p||Date.now();this.retryScheduleIndex=m||0};
   YR=function(a){return{key:SQ(a.actionId,"offlineOrchestrationActionWrapperEntity"),actionProto:a.action,parentActionId:a.parentActionId,rootActionId:a.rootActionId,childActionIds:a.childActionIds,prereqActionId:a.prereqActionId,postreqActionIds:a.postreqActionIds,retryScheduleIndex:a.retryScheduleIndex,hasChildActionFailed:a.hasChildActionFailed,enqueueTimeSec:(a.i/1E3).toFixed()}};
   Uya=function(){this.i=new Map};
   Vya=function(){ZR||(ZR=new Uya);return ZR};
   Wya=function(a,b){return{eventType:{flowEventNamespace:"FLOW_EVENT_NAMESPACE_OFFLINE_ORCHESTRATION",flowEventType:a},metadata:b,statusCode:void 0,csn:void 0}};
   Xya=function(a,b,c){if(!c){var d=void 0===d?!1:d;c=a.i.get("FLOW_TYPE_OFFLINE_ORCHESTRATION");if(!c||d)c=yy(),a.i.set("FLOW_TYPE_OFFLINE_ORCHESTRATION",c)}a={flowNonce:c,flowType:"FLOW_TYPE_OFFLINE_ORCHESTRATION",flowEventType:b.eventType};b.metadata&&(a.flowMetadata=b.metadata);void 0!==b.statusCode&&(a.flowEventStatus=b.statusCode);b.csn&&(a.csn=b.csn);g.Zv("flowEvent",a,void 0)};
   Yya=function(a,b,c){if(!a.action.entityKey)throw Error("entityKey is missing.");var d=RQ(a.action.entityKey);a={entityType:d.FR,entityId:d.entityId,offlineOrchestrationActionType:a.action.actionType,orchestrationAction:{orchestrationActionId:a.actionId}};b&&(a.offlineOrchestrationActionResult=b.status,a.isRetryable=b.i);c&&(a.additionalOrchestrationActions=c.map(function(e){return{orchestrationActionId:e.actionId}}));
   return a};
   $R=function(a,b){var c={offlineOrchestrationContext:Yya(a)};b=Wya(b,c);Xya(Vya(),b,a.rootActionId)};
   aS=function(a,b,c){c=void 0===c?[]:c;b={offlineOrchestrationContext:Yya(a,b,c)};b=Wya(3,b);Xya(Vya(),b,a.rootActionId)};
   Zya=function(){this.actions=[]};
   $ya=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,$R(c,1),a.actions.push(c);a.actions.sort(a.i)};
   aza=function(a,b){a=g.r(a.actions);for(var c=a.next();!c.done;c=a.next())if(c.value.actionId===b)return!0;return!1};
   bS=function(a,b,c,d){g.I.call(this);var e=this;this.u=a;this.ma=b;this.Z=c;this.D=d;this.i=new Zya;this.S=new Qx;this.B=new g.M(function(){e.retry()});
   this.J=NaN;g.J(this,this.B);this.K=sR(this.u,this.Y.bind(this))};
   dza=function(a,b,c,d){return g.H(this,function f(){var h;return g.B(f,function(l){if(1==l.i)return h=new bS(a,b,c,d),g.A(l,bza(h),2);cza(h);return l.return(h)})})};
   cza=function(a){return a.C?Promise.resolve():cS(a)};
   cS=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F;return g.B(c,function(C){switch(C.i){case 1:if(d.C)throw Error("Already processing an action");if(d.isDisposed())return C.return();e=d.i.actions.shift();xya(d.Z,!e);if(void 0===e)return C.return();for(f=[e];;)if((h=d.i.actions[0])&&0===h.retryScheduleIndex&&h.entityType===e.entityType)f.push(d.i.actions.shift());else break;d.C=f;if(l=d.ma[e.entityType]){C.fb(2);break}d.C=void 0;return g.A(C,cS(d),3);case 3:return C.return();
   case 2:m=g.r(f);for(n=m.next();!n.done;n=m.next())p=n.value,$R(p,2);ua(C,4,5);return g.A(C,zya(l,f.map(function(K){return K.action})),7);
   case 7:q=C.u,t=g.r(f),n=t.next();case 8:if(n.done){C.fb(5);break}u=n.value;x=q.get(u.action);return g.A(C,eza(d,u,x),9);case 9:n=t.next();C.fb(8);break;case 5:xa(C);d.C=void 0;ya(C,6);break;case 4:return y=wa(C),yR("Orchestration error",y),ua(C,12),g.A(C,fza(d,f),14);case 14:va(C,5);break;case 12:z=wa(C);yR("Orchestration retry error",z);G=g.r(f);for(n=G.next();!n.done;n=G.next())F=n.value,3>F.retryScheduleIndex&&$ya(d.i,[F]);C.fb(5);break;case 6:return g.A(C,cS(d),0)}})})};
   eza=function(a,b,c){var d;return g.H(a,function f(){var h=this,l,m,n,p,q;return g.B(f,function(t){if(1==t.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status){p=void 0;try{p=null===(d=c.u)||void 0===d?void 0:d.map(function(u){return l.createAction(u,b)})}catch(u){return aS(b,c),q={entityKey:b.action.entityKey,
   failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNSUPPORTED_ENTITY_FAILED"},OR(h.D,q),yR("Orchestration subactions creation error",u),t.return()}aS(b,c,p);return g.A(t,rR(h.u,{mode:"readwrite",Hc:!0},function(u){var x=[];if(p){var y=p.map(function(z){return YR(z)});
   x.push(nR(u,y,"offlineOrchestrationActionWrapperEntity"))}y=YR(b);x.push(oR(u,y.key));return pw.all(x)}),9)}if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return t.fb(0);
   aS(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.A(t,fza(h,[b]),0);m=(null===c||void 0===c?0:c.failureReason)?c.failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN";n={entityKey:b.action.entityKey,failureReason:m};OR(h.D,n);yR("Orchestration result is not retryable, deleting action");return g.A(t,Zxa(h.u,YR(b).key),0)}$R(b,4);g.sa(t)})})};
   dS=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t,u,x,y,z;return g.B(d,function(G){f=[];h=Infinity;l=4E3;m=g.r(b);for(n=m.next();!n.done;n=m.next())p=n.value,q=Number(p.enqueueTimeSec),t=gza(q),u=p.retryScheduleIndex,x=null!=u&&0<u,0<t&&x?(h=Math.min(h,q),l=Math.min(t,l)):f.push(p);isFinite(h)&&(!e.B.isActive()||h<e.J)&&(e.J=h,e.B.start(l));e.S.Te()||(y=f.length,f=f.filter(function(F){var C;F=(null===(C=F.actionProto)||void 0===C?void 0:C.actionType)||"OFFLINE_ORCHESTRATION_ACTION_TYPE_UNKNOWN";
   return!hza.includes(F)}),z=f.length<y,!e.B.isActive()&&z&&e.B.start(1));
   0<f.length&&iza(e,f);return g.A(G,cza(e),0)})})};
   kza=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p;return g.B(c,function(q){if(1==q.i)return g.A(q,jza(d),2);e=q.u;f=[];h=g.r(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=RQ(m.key),p=n.entityId,aza(d.i,p)||f.push(m);return g.A(q,dS(d,f),0)})})};
   gza=function(a){a=1E3*a-Date.now();return 4E3<a?4E3:a};
   fza=function(a,b){return g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){f=g.r(b);for(h=f.next();!h.done;h=f.next()){l=h.value;var n=void 0,p=void 0,q=(null===(n=null===(p=l.action)||void 0===p?void 0:p.actionMetadata)||void 0===n?void 0:n.retryScheduleIntervalsInSeconds)||[1,2,4];n=1;l.retryScheduleIndex<q.length&&(n=q[l.retryScheduleIndex]);l.i=1E3*n+Date.now();l.retryScheduleIndex++}return g.A(m,lza(e,b),0)})})};
   bza=function(a){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){if(1==f.i)return g.A(f,vR(d.u,"offlineOrchestrationActionWrapperEntity"),2);e=f.u;return g.A(f,dS(d,e),0)})})};
   iza=function(a,b){0!==b.length&&b.forEach(function(c){if(!c.key)throw Error("Entity key is required.");if(!c.actionProto)throw Error("OfflineOrchestrationAction is required.");var d=RQ(c.key),e=RQ(c.actionProto.entityKey);c=new WR(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec));3>c.retryScheduleIndex&&$ya(a.i,[c])})};
   jza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return g.A(h,vR(e.u,"offlineOrchestrationActionWrapperEntity",b),2);f=h.u;return h.return(f.filter(eya))})})};
   lza=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return YR(c)});
   return Yxa(a.u,b)};
   mza=function(){var a=Math.floor(3*Math.random());return 1>a?{bucket:"SHORT",duration:Math.floor(Wf(5,30))}:2>a?{bucket:"MEDIUM",duration:Math.floor(Wf(80,500))}:{bucket:"LONG",duration:Math.floor(Wf(5E3,3E4))}};
   nza=function(a,b,c){var d=void 0===d?mza:d;var e=void 0===e?bha:e;this.u=a;this.C=c;this.J=d;this.D=e;this.i=0};
   oza=function(){for(var a=Math.floor(10*Math.random()),b=[],c=0;c<a;c++)b.push(SQ("child"+c,"offlineabilityEntity"));return b};
   pza=function(){this.i=void 0};
   rza=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m,n,p;return g.B(d,function(q){f=e;h=b.videoId;l=b.V();m=!0;if(b.captionTracks.length)n=tpa(b),e.i=new g.dN(l,b,n);else if(b.Zb)p=g.Apa(b),e.i=new g.fN(l,b.Zb,h,p,b.Oj),m=b.Oj;else return q.return();return q.return(new Promise(function(t){var u;null===(u=f.i)||void 0===u?void 0:u.Cs(function(){return g.H(f,function y(){var z=this;return g.B(y,function(G){if(1==G.i)return g.A(G,qza(z,h,m),2);t();g.sa(G)})})})}))})})};
   qza=function(a,b,c){c=void 0===c?!0:c;return g.H(a,function e(){var f=this,h,l,m,n,p,q,t,u,x,y,z,G,F,C;return g.B(e,function(K){switch(K.i){case 1:if(!f.i)return K.return();h=[];l=g.aN(f.i.u,c);m=[];n={};p=g.r(l.entries());for(q=p.next();!q.done;n={tB:n.tB},q=p.next())t=q.value,u=g.r(t),x=u.next().value,y=u.next().value,n.tB=x,z=y,G=f.i.Hp(z,"json3"),F=g.qh(g.Ht(G,{withCredentials:!0},3,500).then(function(S){return function(L){L={metadata:g.bG(l[S.tB]),trackData:L.xhr.responseText};m.push(L)}}(n)),
   function(S){yR("Caption fetch error",S)}),h.push(F);
   return g.A(K,gba(h),2);case 2:return ua(K,3),g.A(K,doa(b,m),5);case 5:va(K,0);break;case 3:C=wa(K),yR("Caption DB transaction error",C),g.sa(K)}})})};
   sza=function(a,b){return g.H(a,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,eoa(b),2);e=f.u;return f.return(!!e&&0<e.length)})})};
   tza=function(){this.tag="woffle"};
   uza=function(a,b){this.api=a;this.i=b;this.logger=new tza;this.u=!1};
   vza=function(a){return g.H(this,function c(){return g.B(c,function(d){return d.return(loa(a))})})};
   wza=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.A(e,ioa(a),2);d=e.u;return e.return(d.filter(function(f){return!!f.url}).map(function(f){return f.url}))})})};
   eS=function(a,b){var c=VF(b);if(1===c||0===c)return Promise.resolve();(c=xza(a,b))&&c.stopVideo();a.B=0;return vza(b)};
   Aza=function(a,b,c){c=void 0===c?!1:c;var d="string"===typeof b?b:b.videoDetails.videoId;2===VF(d)&&((b=xza(a,d))?b.stopVideo():a.logger.info(function(){return"Corresponding player for "+d+" not found. Pausing anyway"}),WF(d,2),a.B=2,c?yza(a.i):zza(a.i))};
   xza=function(a,b){var c;return(null===(c=a.player)||void 0===c?void 0:c.getVideoData().videoId)===b?a.player:null};
   Bza=function(a){switch(a){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
   fS=function(a){g.I.call(this);this.i=a;this.u=sR(this.i,this.B.bind(this))};
   Cza=function(a,b){return g.H(a,function d(){var e,f=this,h,l,m,n,p,q;return g.B(d,function(t){switch(t.i){case 1:if(0===b.length)return t.return([]);e=b.map(function(u){return SQ(u,"transfer")});
   return g.A(t,vR(f.i,"transfer",e),2);case 2:h=t.u;l=h.filter(eya).map(function(u){return RQ(u.key).entityId});
   m=b.filter(function(u){return-1===l.indexOf(u)});
   if(0===m.length)return t.return([]);n=g.r(m);p=n.next();case 3:if(p.done){t.fb(5);break}q=p.value;return g.A(t,vza(q),4);case 4:p=n.next();t.fb(3);break;case 5:return t.return(m)}})})};
   Eza=function(a,b,c,d,e,f){return g.H(this,function l(){var m,n,p;return g.B(l,function(q){m="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(m="STREAM_TYPE_AUDIO_AND_VIDEO",yR("unexpected stream type")):c.video&&!c.audio?m="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(m="STREAM_TYPE_AUDIO");n=SQ(b,"offlineVideoStreams");p={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:m,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===
   m?Number(c.lc()):void 0};return g.A(q,rR(a,{mode:"readwrite",Hc:!0},function(t){var u=jR(t,n,"offlineVideoStreams"),x=jR(t,SQ(b,"transfer"),"transfer");return pw.all([u,x]).then(function(y){var z=g.r(y);y=z.next().value;z=z.next().value;if(!z)return oR(t,n).then(function(){});
   y=[mR(t,Dza(y,d,p,n),"offlineVideoStreams")];z.offlineVideoStreams||(z.offlineVideoStreams=[]);-1===z.offlineVideoStreams.indexOf(n)&&(z.offlineVideoStreams.push(n),y.push(mR(t,z,"transfer")));return pw.all(y)})}),0)})})};
   Fza=function(a,b){return g.H(this,function d(){var e,f,h,l,m;return g.B(d,function(n){if(1==n.i)return e=SQ(b,"offlineVideoStreams"),g.A(n,uR(a,e,"offlineVideoStreams"),2);f=n.u;if(!f||!f.streamsProgress)return n.return();h=g.r(f.streamsProgress);for(l=h.next();!l.done;l=h.next())m=l.value,m.streamState="DOWNLOAD_STREAM_STATE_COMPLETE",m.numTotalBytes!==m.numBytesDownloaded&&(m.numBytesDownloaded=m.numTotalBytes);return g.A(n,tR(a,f,"offlineVideoStreams"),0)})})};
   Dza=function(a,b,c,d){if(a&&a.streamsProgress){d=a;a:{b=b.itag+";"+b.xtags;for(var e=a.streamsProgress,f=0;f<e.length;f++){var h=JSON.parse(e[f].formatStreamBytes);if(h.itag+";"+h.xtags===b){e[f]=c;c=e;break a}}e.push(c);c=e}d.streamsProgress=c}else a={key:d,streamsProgress:[c]};return a};
   gS=function(a,b,c,d){g.I.call(this);var e=this;this.u=a;this.api=b;this.Ea=c;this.Aa=d;this.D=new Qx;this.B=new g.M(function(){e.i&&"TRANSFER_STATE_TRANSFERRING"===e.i.transferState&&e.D.Te()&&(eS(e.J,e.C.videoDetails.videoId),e.hq("TRANSFER_FAILURE_REASON_TIMEOUT_NO_PROGRESS"))});
   this.Z=0;this.K=sR(this.u,this.IP.bind(this));this.J=new uza(b,this);this.Y=new pza;this.S=new fS(this.u);this.ya=this.D.Qa("publicytnetworkstatus-online",this.RW.bind(this));this.ma=this.D.Qa("publicytnetworkstatus-offline",this.vW.bind(this))};
   Gza=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)e=g.A(e,coa(),2);else{var f=d.S;var h=UF();h=Object.keys(h);f=Cza(f,h);e=g.A(e,f,0)}return e})})};
   hS=function(a,b){b=void 0===b?!1:b;return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i){if(e.i)throw Error("Already downloading a video");return g.A(h,Hza(e),2)}return 4!=h.i?(f=h.u,yya(e.Ea,!f),f&&e.D.Te()?b?g.A(h,new Promise(function(l){g.ut(l,1E3)}),4):h.fb(4):h.fb(0)):g.A(h,Iza(e,f),0)})})};
   Jza=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.C?g.A(e,eS(d.J,d.C.videoDetails.videoId),3):e.fb(0);iS(d);g.sa(e)})})};
   Kza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return ua(h,2),g.A(h,rza(e.Y,b),4);if(2!=h.i)return va(h,0);f=wa(h);yR("Caption downloading error",f,b.cotn);g.sa(h)})})};
   Iza=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m;return g.B(d,function(n){switch(n.i){case 1:return e.i=b,g.A(n,jS(e),2);case 2:return f=null,ua(n,3),g.A(n,Lza(e,b),5);case 5:f=n.u;e.C=f;va(n,4);break;case 3:return h=wa(n),yR("error getting player response",h,b.cotn),g.A(n,e.hq("TRANSFER_FAILURE_REASON_INTERNAL"),6);case 6:return n.return();case 4:return l=Sya(e.api.V(),b.cotn,f),g.A(n,Kza(e,l),7);case 7:return m=l,g.A(n,wza(l.videoId),8);case 8:m.jl=n.u;var p=e.J,q=b.maximumDownloadQuality,
   t;l.getPlayerResponse()&&XG(l);WF(l.videoId,2);p.B=2;p.u=!1;null===(t=p.player)||void 0===t?void 0:t.dispose();p.player=p.api.Fl(9,l);t={};ny(p.player,(t.localmediachange=p.Hs,t.signatureexpired=p.nF,t.statechange=p.lU,t),p);q=Bza(q);p.N("hoffle_lmqf_killswitch")||(q=fB(q,q,!0,"m"),Mza(p.player,q,!1));kS(p.player,!1);e.B.start(6E4);g.sa(n)}})})};
   Hza=function(a){return g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){if(1==h.i)return g.A(h,vR(d.u,"transfer"),2);e=h.u;f=e.filter(Nza).sort(Oza);return 0===f.length?h.return():h.return(f[0])})})};
   jS=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){d.B.start(6E4);return g.A(e,lS(d,"TRANSFER_STATE_TRANSFERRING"),0)})})};
   yza=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){d.B.stop();return g.A(e,lS(d,"TRANSFER_STATE_PAUSED_BY_USER"),0)})})};
   zza=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.B.stop(),g.A(e,lS(d,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),2);iS(d);g.sa(e)})})};
   Pza=function(a){g.H(a,function c(){var d=this,e,f,h,l;return g.B(c,function(m){switch(m.i){case 1:d.B.stop();if(!d.i||!d.C){m.fb(2);break}e=Sya(d.api.V(),d.i.cotn,d.C);if(!(f=!!e.captionTracks.length||!!e.Zb)){m.fb(3);break}return g.A(m,sza(d.Y,e.videoId),4);case 4:f=!m.u;case 3:if(!f){m.fb(2);break}return g.A(m,Kza(d,e),2);case 2:return g.A(m,lS(d,"TRANSFER_STATE_COMPLETE","DOWNLOAD_STREAM_STATE_COMPLETE"),7);case 7:return h=RQ(d.i.key),l=h.entityId,g.A(m,Fza(d.u,l),8);case 8:GR({transferStatusType:"TRANSFER_STATUS_TYPE_COMPLETED",
   statusType:"SUCCESS"},{videoId:l,Go:d.i}),iS(d),hS(d),g.sa(m)}})})};
   Qza=function(a,b,c){g.H(a,function e(){var f=this,h;return g.B(e,function(l){switch(l.i){case 1:if("TRANSFER_STATE_TRANSFERRING"===f.i.transferState){l.fb(2);break}return g.A(l,jS(f),2);case 2:h=Date.now();if(!(1E3<h-f.Z)){l.fb(4);break}f.Z=h;return g.A(l,Eza(f.u,c.videoId,c.u,c.formatStream,c.bytesDownloaded,c.i),5);case 5:var m=Math.floor(c.bytesDownloaded/1024).toFixed();GR({transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED",alreadyDownloadedKbytes:m,totalFetchedKbytes:m,
   totalContentKbytes:Math.floor(c.i/1024).toFixed()},{videoId:b,Go:f.i});case 4:f.B.start(6E4),g.sa(l)}})})};
   Rza=function(a){a=a.i;var b=3>(a.transferRetryCount||0);b&&(a.transferRetryCount=(a.transferRetryCount||0)+1);return b};
   Sza=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){if(1==l.i)return f="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN","TRANSFER_FAILURE_REASON_NETWORK"===b?f="OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED":"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"===b&&(f="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),g.A(l,lS(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);OR(e.Aa,{entityKey:e.i.key,
   failureReason:f});h=RQ(e.i.key).entityId;var m={videoId:h,Go:e.i},n=b,p={transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};n&&(p.transferFailureReason=n,p.failureReason=lya(n));GR(p,m);g.sa(l)})})};
   lS=function(a,b,c,d){return g.H(a,function f(){var h=this,l,m;return g.B(f,function(n){if(1==n.i)return l=h,h.i.transferState=b,h.i.failureReason=d,ua(n,2),g.A(n,Tza(h,function(p){return c?kR(p,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(q){for(var t=g.r(q),u=t.next();!u.done;u=t.next())if((u=u.value)&&u.streamsProgress){u=g.r(u.streamsProgress);for(var x=u.next();!x.done;x=u.next())x.value.streamState=c}return nR(p,q.filter(function(y){return!!y}),"offlineVideoStreams")}):pw.resolve(void 0)}),
   4);
   if(2!=n.i)return va(n,0);m=wa(n);return m instanceof jw&&"QUOTA_EXCEEDED"===m.type?g.A(n,h.hq("TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"),0):n.fb(0)})})};
   Tza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(!e.i)return h.return();f=e.i;return g.A(h,rR(e.u,{mode:"readwrite",Hc:!0},function(l){var m=[mR(l,f,"transfer")];b&&m.push(b(l));return pw.all(m)}),0)})})};
   iS=function(a){a.i=void 0;a.C=void 0;a.B.stop()};
   Lza=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m;return g.B(d,function(n){if(1==n.i)return e=RQ(b.key),f=e.entityId,h=SQ(f,"playbackData"),g.A(n,uR(l.u,h,"playbackData"),2);m=n.u;if(null===m||void 0===m?0:m.playerResponseJson)return n.return(JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})};
   Nza=function(a){return void 0!==mS[a.transferState]};
   Oza=function(a,b){var c=mS[a.transferState],d=mS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
   Xza=function(a,b){var c=this;this.X=a;this.api=b;this.J=new Qx;this.u=new uya(function(){return Uza(c)},function(){Vza(c)},this.api.Jp(),this.api.N.bind(this.api));
   this.K=new NR(this.api);this.B=new Lk;this.YB();this.api.N("wo_job_sampling_with_lock_api")&&g.Pu(Ru(),function(){Wza(c)})};
   Uza=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){d.api.Oa("onOrchestrationBecameLeader");d.i&&d.C||Yza(d).then(d.B.resolve).catch(d.B.reject);var f=d.B.promise;return g.A(e,f,0)})})};
   Wza=function(a){g.H(a,function c(){var d,e=this;return g.B(c,function(f){if(1==f.i)return g.A(f,xR(),2);d=f.u;if(!d)return f.return();e.S=new nza(d,Ru(),e.YB.bind(e));return g.A(f,e.S.B(),0)})})};
   Yza=function(a){return g.H(a,function c(){var d,e=this,f,h;return g.B(c,function(l){if(1==l.i)return g.A(l,xR(),2);if(3!=l.i){d=l.u;if(!d)return yR("PES is undefined"),l.return();e.i=new gS(d,e.api,e.u,e.K);f={};h=(f.ytMainDownloadedVideoEntity=new VR(d,e.X),f.playbackData=new SR(d,e.X),f.transfer=new UR(d),f);e.api.N("wo_job_sampling_with_lock_api")&&(h.orchestrationWebSamplingEntity=new RR(d));return g.A(l,dza(d,h,e.u,e.K),3)}e.C=l.u;return g.A(l,Zza(e),0)})})};
   Zza=function(a){return g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){switch(h.i){case 1:e=d;if(!d.i)return yR("transferManager is undefined"),h.return();if(!d.api.N("woffle_orch_init_killswitch")&&d.i.i){h.fb(2);break}return g.A(h,hS(d.i),2);case 2:return g.A(h,nS(d),4);case 4:d.D=vt(function(){nS(e)},9E5);
   Ou(Ru(),function(){e.i&&Gza(e.i)});
   if(!d.api.N("web_player_offline_state_logging")){h.fb(5);break}return g.A(h,xR(),6);case 6:return f=h.u,g.A(h,sya(f),5);case 5:wya(d.u),g.sa(h)}})})};
   Vza=function(a){var b,c;g.H(a,function e(){var f=this;return g.B(e,function(h){if(1==h.i)return f.i||f.C?g.A(h,f.B.promise,2):h.return();void 0!==f.D&&(window.clearInterval(f.D),f.D=void 0);null===(b=f.i)||void 0===b?void 0:b.dispose();f.i=void 0;null===(c=f.C)||void 0===c?void 0:c.dispose();f.C=void 0;f.api.Oa("onOrchestrationLostLeader");f.B=new Lk;g.sa(h)})})};
   $za=function(a,b,c){return g.H(a,function e(){var f=this;return g.B(e,function(h){var l=c?{ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:c}}:void 0;return h.return(f.Mw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l))})})};
   aAa=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){return f.return(e.Mw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
   bAa=function(a){return g.H(a,function c(){var d,e,f;return g.B(c,function(h){if(1==h.i)return g.A(h,xR(),2);if(3!=h.i)return(d=h.u)?g.A(h,vR(d,"transfer"),3):h.return([]);e=h.u;f=e.map(function(l){return RQ(l.key).entityId});
   return h.return(f)})})};
   nS=function(a,b){b=void 0===b?43200:b;return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i)return e.J.Te()?g.A(u,xR(),2):u.return(cAa(e));if(3!=u.i){f=u.u;if(!f)return u.return([]);h=Date.now()/1E3;return g.A(u,vR(f,"offlineVideoPolicy"),3)}l=u.u;m=[];n=g.r(l);for(p=n.next();!p.done;p=n.next())q=p.value,Number(q.lastUpdatedTimestampSeconds)+b<=h&&(t=RQ(q.key).entityId,m.push(t));return m.length?u.return(aAa(e,m)):u.return([])})})};
   cAa=function(a){return g.H(a,function c(){var d,e,f,h,l,m;return g.B(c,function(n){switch(n.i){case 1:return g.A(n,xR(),2);case 2:d=n.u;if(!d)return n.return([]);e=Date.now()/1E3;return g.A(n,vR(d,"offlineVideoPolicy"),3);case 3:f=n.u,h=g.r(f),l=h.next();case 4:if(l.done){n.fb(6);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)<e)){n.fb(5);break}m.action="OFFLINE_VIDEO_POLICY_ACTION_DISABLE";return g.A(n,tR(d,m,"offlineVideoPolicy"),5);case 5:l=h.next();n.fb(4);break;case 6:return n.return(f.map(function(p){return p.key}))}})})};
   dAa=function(){var a=void 0===a?!1:a;try{var b=g.D.parent===g.D.top,c=!!gya()||a;return b&&c&&"undefined"!==typeof g.D.BroadcastChannel&&"undefined"!==typeof g.D.indexedDB}catch(d){return!1}};
   fAa=function(){g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return c=[],g.A(e,xR(),2);(d=e.u)&&c.push(rR(d,{mode:"readwrite",Hc:!0},function(f){var h=eAa.map(function(l){return Uxa(f,l)});
   return pw.all(h)}));
   c.push(iya(),Yna().then(function(f){return f?moa():Promise.resolve()}));
   return g.A(e,Promise.all(c),0)})})};
   gAa=function(){for(var a=oS.length;4>a;a++){var b=g.Gg("VIDEO");b.load();oS.push(new g.rN(b))}};
   hAa=function(){this.u=200;this.i=12};
   iAa=function(a){var b=new hAa;b.u=g.rE(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.rE(a.experiments,"html5_gapless_max_played_ranges");return b};
   g.pS=function(a,b,c,d){d=void 0===d?!1:d;OJ.call(this);this.ra=a;this.start=b;this.end=c;this.i=d};
   jAa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.B;if(b.Ch()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.jd())&&b.isView()&&(b=b.ra),b&&b.Gp().length>a.i&&g.FG(e)))return"played-ranges";if(!e.B)return null;if(!e.B.i||!c.i)return"non-dash";if(e.B.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.FG(f)&&g.FG(e))return"content-protection";a=c.i[0].audio;
   e=e.B.i[0].audio;return a.sampleRate===e.sampleRate||g.ej?(a.numChannels||2)!==(e.numChannels||2)?"channel-count":null:"sample-rate"};
   rS=function(){this.B=this.i=0;this.u=Array.from({length:qS.length}).fill(0)};
   kAa=function(){};
   lAa=function(a){this.name=a;this.startTimeMs=(0,g.Q)();this.i=!1};
   mAa=function(){this.profiles=new kAa};
   sS=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new rS),a.profiles[b].Pk(c,d))};
   tS=function(){};
   uS=function(){var a=this;this.i=this.u=haa;this.promise=new fh(function(b,c){a.u=b;a.i=c})};
   vS=function(a,b,c,d){g.I.call(this);var e=this;this.policy=a;this.i=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Vk=new uS;this.Ij=d-1E3*b.Uc();this.Vk.then(void 0,function(){});
   this.timeout=new g.M(function(){e.Le("timeout")},1E4);
   g.J(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.oa()};
   rAa=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p,q,t,u;return g.B(c,function(x){if(1==x.i){e=d;if(d.isDisposed())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.oa();d.timeout.start();f=g.wS.Bo("gtfta");return g.A(x,d.Vk,2)}g.wS.fn(f);h=d.i.jd();if(h.Gk())return d.Le("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.C||!QD(d.C))return d.Le("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.u.Ep()!==
   d.C)return d.Le("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=nAa(d);m=l.VL;n=l.JJ;p=l.UL;d.i.Cg(!1,!0);q=oAa(h,m,p,!d.u.getVideoData().isAd());d.u.setMediaElement(q);d.K&&(d.u.seekTo(d.u.getCurrentTime()+.001,{Mp:!0,DG:3,Td:"gapless_pseudo"}),q.play()||Kt());t=h.Ib();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.u.Ba("gapless",g.JD(t));d.i.Ba("gaplessTo",d.u.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.u.getPlayerType();pAa(d.i,n,
   !1,u,d.u.getVideoData().clientPlaybackNonce);pAa(d.u,d.u.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.ah(function(){!e.u.getVideoData().qb&&g.YJ(e.u.getPlayerState())&&qAa(e.u)});
   xS(d,6);d.dispose();return x.return(Promise.resolve())})})};
   uAa=function(a){if(a.u.getVideoData().B){yS(a.u,a.C);xS(a,3);sAa(a);var b=tAa(a),c=b.KN;b=b.dX;c.subscribe("updateend",a.gr,a);b.subscribe("updateend",a.gr,a);a.gr(c);a.gr(b)}};
   sAa=function(a){a.i.unsubscribe("internalvideodatachange",a.bp,a);a.u.unsubscribe("internalvideodatachange",a.bp,a);a.i.unsubscribe("mediasourceattached",a.bp,a);a.u.unsubscribe("statechange",a.Mc,a)};
   oAa=function(a,b,c,d){a=a.isView()?a.ra:a;return new g.pS(a,b,c,d)};
   xS=function(a,b){a.oa();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Vk.resolve(void 0))};
   nAa=function(a){var b=a.i.jd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:zS(a.i,!0);c=Math.min(a.Ij/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Ch()+d;return{rR:b,VL:a,JJ:c,UL:Infinity}};
   tAa=function(a){return{KN:a.B.i.xd,dX:a.B.u.xd}};
   AS=function(a){g.I.call(this);var b=this;this.app=a;this.D=this.i=this.u=null;this.K=!1;this.C=null;this.S=iAa(this.app.V());this.B=null;this.J=function(){g.ah(function(){vAa(b)})}};
   wAa=function(a,b,c,d){d=void 0===d?0:d;a.oa();a.ys()||BS(a);a.C=new uS;a.u=b;var e=c,f=a.app.Kc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*zS(f,!0);e>h&&(e=h-a.S.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.i=f,f=e,e=a.i,a.app.Ta.addEventListener(g.nA("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.lA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
   1E3,zS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,zS(b)+l));f=wma(e,h)||d;f!==d&&a.u.Ba("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.u;d.getVideoData().zd=!0;d.getVideoData().Ja=!0;kS(d,!0);e="";a.i&&(e=g.CS(a.i.Xb.u),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ba("queued",e);0!==b&&d.seekTo(b+.01,{Mp:!0,DG:3,Td:"videoqueuer_queued"});a.B=new vS(a.S,a.app.Kc(),a.u,c);c=a.B;c.oa();Infinity!==c.status.status&&(xS(c,1),c.i.subscribe("internalvideodatachange",
   c.bp,c),c.u.subscribe("internalvideodatachange",c.bp,c),c.i.subscribe("mediasourceattached",c.bp,c),c.u.subscribe("statechange",c.Mc,c),c.i.subscribe("newelementrequired",c.vM,c),c.bp());return a.C};
   vAa=function(a){g.H(a,function c(){var d=this,e,f,h,l;return g.B(c,function(m){switch(m.i){case 1:e=d;if(d.isDisposed())return m.return();d.oa();if(!d.C||!d.u)return d.oa(),m.return();d.K&&DS(d.app.Kc(),!0,!1);f=null;if(!d.B){m.fb(2);break}ua(m,3);return g.A(m,rAa(d.B),5);case 5:va(m,2);break;case 3:f=h=wa(m);case 2:if(!d.u)return d.oa(),m.return();d.app.Pu(d.u);g.wS.MF("vqsp",function(){e.app.Fj(e.u.getPlayerType())});
   g.wS.MF("vqpv",function(){e.app.playVideo()});
   f&&xAa(d.u,f.message);l=d.C;BS(d);return m.return(l.resolve(void 0))}})})};
   BS=function(a){if(a.i){var b=a.i;a.app.Ta.removeEventListener(g.nA("vqueued"),a.J);b.removeCueRange(a.D);a.i=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Le("Canceled")),a.B=null);a.C=null;a.u=null;a.K=!1};
   yAa=function(){var a=tu();return!(!a||"visible"===a)};
   AAa=function(a){var b=zAa();b&&document.addEventListener(b,a,!1)};
   BAa=function(a){var b=zAa();b&&document.removeEventListener(b,a,!1)};
   zAa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[ru+"VisibilityState"])return"";a=ru+"visibilitychange"}return a};
   ES=function(){g.R.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.i=this.B=this.inline=!1;this.C=function(){a.De()};
   AAa(this.C);this.D=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Je(),this.isInline(),this.ws(),this.rs())};
   CAa=function(a){this.end=this.start=a};
   g.IS=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.Ca=c;this.Aa=new Map;this.Ra=new Map;this.B=new Map;this.C=[];this.u=[];this.Ya=NaN;this.ya=this.Y=null;this.Ua=new g.M(function(){GS(d,d.Ya)});
   this.events=new g.uD(this);this.isLiveNow=!0;this.eb=g.rE(this.X.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.D=new g.M(function(){d.K=!0;d.Ca.Ba("sdai",{aftimeout:d.eb});HS(d);d.Mv(!1)},this.eb);
   this.K=!1;this.ma=new Map;this.La=[];this.J=null;this.Zb=new Set;this.Z=[];this.kb=[];this.Db=[];this.vb=[];this.i=void 0;this.Za=0;this.Ja=!0;this.S=!1;this.Ea=[];this.zb=new Set;this.Mb=new Set;this.Hb=new Set;this.ac=g.rE(this.X.experiments,"html5_server_stitched_dai_decorated_url_retry_limit");this.Uu=0;this.Ka=new Set;this.qb=0;this.jb=!1;this.Ca.getPlayerType();DAa(this.Ca,this);g.J(this,this.Ua);g.J(this,this.events);g.J(this,this.D);this.events.T(this.api,g.nA("serverstitchedcuerange"),this.onCueRangeEnter);
   this.events.T(this.api,g.oA("serverstitchedcuerange"),this.onCueRangeExit)};
   GAa=function(a,b,c,d,e,f,h){var l=EAa(a,e,e+d);a.K&&a.Ca.Ba("sdai","adaftto");var m=a.X.N("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Ca;f=void 0===f?e+d:f;e===f&&!d&&a.X.N("html5_allow_zero_duration_ads_on_timeline")&&a.Ca.Ba("sdai","attl0d");if(e>f&&(a.ge("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.ge("Invalid_playback_enterTimeMs_"+e+"_is_less_than_parentMinSeekableTimeMs_"+p),m))return"";n=1E3*n.getDuration();
   if(f>n&&(a.ge("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;p=g.r(a.u);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ic&&e<q.pd&&(a.ge("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+JS(q))),m)||f<=q.pd&&f>q.Ic&&(a.ge("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+
   f+"_overlaps_existing_ChildPlayback_"+JS(q))),m)||f===q.Ic&&(a.ge("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+JS(q))),m))return"";e===q.pd&&(n=q)}if(l&&n)for(m=g.r(a.Z.entries()),p=m.next();!p.done;p=m.next()){if(q=g.r(p.value),p=q.next().value,q=q.next().value,q.identifier===l.identifier){a.Z.splice(p,1);break}}else if(l&&a.X.N("web_player_ss_timeout_skip_ads"))return a.Ca.Ba("sdai",
   "rejectAttl"),h&&!vn(a.vb,function(t){return t===h})&&(a.Ca.Ba("sdai","rejectAdBreakAttl"),a.vb.push(h)),"";
   l="ss_childplayback_"+FAa++;m=b.raw_player_response;m||a.X.N("web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=yy());p=b.cpn;b=new oG(a.X,b);b.Cc=l;c={Cc:l,playerType:c,durationMs:d,Ic:e,pd:f,playerResponse:m,cpn:p,videoData:b,errorCount:0};a.u=a.u.concat(c).sort(function(t,u){return t.Ic-u.Ic});
   a.Ca.Ba("sdai",{attlDone:f-e});h?c.hg=h:n?c.hg=n.hg:c.hg=c.cpn;a.D.isActive()&&(a.K=!1,a.D.stop(),HS(a),a.Mv(!0));a.oa();return l};
   HAa=function(a,b){return new g.lA(a,b,{namespace:"serverstitchedcuerange",priority:9})};
   LS=function(a,b,c){var d=a.S,e=a.Ca.getVideoData().clientPlaybackNonce,f={cpn:e,durationMs:0,Ic:0,playerType:1,pd:0,videoData:a.Ca.getVideoData(),errorCount:0},h=b.Mf-c.Mf;.5<Math.abs(h)&&a.Ca.Ba("sdai",{ttdtb:1,delta:h,cpn:e,enter:b.adCpn,exit:c.adCpn});b.isAd&&c.isAd?(f=a.u.find(function(l){return l.cpn===b.adCpn}),(e=a.u.find(function(l){return l.cpn===c.adCpn}))&&f&&(a.api.ea("serverstitchedvideochange",f.Cc,f.Eu),a.Ca.Ba("sdai",{ssvc:"a2a"}),a.Uu++,KS(a.Ca,e,f,c.Mf,b.Mf,d))):!b.isAd&&c.isAd?
   (a.api.ea("serverstitchedvideochange"),a.Ca.Ba("sdai",{ssvc:"a2c"}),a.Uu=0,a.Za=c.Cd.end,(e=a.u.find(function(l){return l.cpn===c.adCpn}))&&KS(a.Ca,e,f,c.Mf,b.Mf,d)):b.isAd&&!c.isAd&&(e=a.u.find(function(l){return l.cpn===b.adCpn}))&&(a.Za=0,a.api.ea("serverstitchedvideochange",e.Cc,e.Eu),a.Ca.Ba("sdai",{ssvc:"c2a"}),a.Uu=1,KS(a.Ca,f,e,c.Mf,b.Mf,d))};
   MS=function(a,b,c){c=void 0===c?0:c;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.Ic/1E3>b+c)break;if(d.pd/1E3>b)return{Dl:d,fq:b}}return{Dl:void 0,fq:b}};
   NS=function(a,b){var c=IAa(a,b);if(c)return a.u.find(function(d){return d.cpn===a.B.get(c)})};
   IAa=function(a,b){a=g.r(a.B.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
   GS=function(a,b){var c=a.ya||a.api.Kc().getPlayerState();OS(a,!0);var d=b;a.X.N("web_player_ssdai_seek_without_offset_killswitch")&&(d=MS(a,b).fq);a.Ca.seekTo(d);a=a.api.Kc();b=a.getPlayerState();g.YJ(c)&&!g.YJ(b)?a.playVideo():g.U(c,4)&&!g.U(b,4)&&a.pauseVideo()};
   OS=function(a,b){a.Ya=NaN;a.Ua.stop();a.Y&&b&&PS(a.Y);a.ya=null;a.Y=null};
   QS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=[],h=g.r(a.u),l=h.next();!l.done;l=h.next())l=l.value,(l.Ic<d||l.pd>e)&&f.push(l);a.u=f;d=b;e=c;f=g.r(a.B.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.Ca.removeCueRange(h),a.B.delete(h),a.Ca.Ba("sdai","rmAdCR"));d=MS(a,b/1E3);b=d.Dl;d=d.fq;b&&(d=1E3*d-b.Ic,e=b.Ic+d,a.oa(),b.durationMs=d,b.pd=e,JAa(a,b));(b=MS(a,c/1E3).Dl)&&a.ge("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+JS(b)+
   "._Child_playbacks_can_only_have_duration_updated_not_their_start.")};
   JAa=function(a,b){for(var c=null,d=g.r(a.B),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;f===b.cpn&&(c=e)}if(c){a=g.r(a.C);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Ic+b.durationMs:d.end===c.start&&(d.end=b.Ic);c.start=b.Ic;c.end=b.Ic+b.durationMs}};
   JS=function(a){var b;return"playback_timelinePlaybackId_"+a.Cc+"_video_id_"+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Ic+"_parentReturnTimeMs_"+a.pd};
   SS=function(a,b,c){c=a.ma.get(c);c||(b+=RS(a),c=MS(a,b,1).Dl);return c};
   KAa=function(a,b,c,d){var e,f;if(3===d)return"";if(!a.X.N("html5_ssdai_use_cached_daistate_killswitch")){if(1===d&&a.Aa.has(b))return a.Aa.get(b);if(2===d&&a.Ra.has(b))return a.Ra.get(b)}d=null===(f=null===(e=a.Ca.getVideoData().i.i[c])||void 0===e?void 0:e.index)||void 0===f?void 0:f.getStitchedVideoInfo(b);return d?d.i:(a.Ca.Ba("sdai",{gdu:"nodaist",seg:b,itag:c}),"")};
   TS=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;LAa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.Ca.removeCueRange(e);if(a.Ea.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else LAa(a,b,c)};
   LAa=function(a,b,c){b=HAa(b,c);c=!0;g.Pb(a.C,b,function(h,l){return h.start-l.start});
   for(var d=0;d<a.C.length;){if(0<d){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Ca.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}c&&a.Ca.addCueRange(b)};
   US=function(a,b,c){if(void 0===c||!c){c=g.r(a.La);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.La.push(new CAa(b))}};
   g.MAa=function(a,b){a=g.r(a.La);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
   RS=function(a){var b=0;a.X.N("web_player_ss_media_time_offset")&&(b=0===a.Ca.getStreamTimeOffset()?a.Ca.Uc():a.Ca.getStreamTimeOffset());return b};
   NAa=function(a,b){var c=[];a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.hg===b&&d.cpn&&c.push(d.cpn);return c};
   OAa=function(a,b,c){var d=0;a=g.r(a.u);for(var e=a.next();!e.done;e=a.next())if(e=e.value,e.hg===c){if(e.cpn===b)return d;d++}return-1};
   PAa=function(a,b){var c,d=[];a=g.r(a.u);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=null===(c=e.videoData)||void 0===c?void 0:c.videoId;e.hg===b&&f&&d.push(f)}return d};
   QAa=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.hg===b&&0!==d.durationMs&&d.pd!==d.Ic&&c++;return c};
   RAa=function(a,b,c){for(var d=!1,e=g.r(a.u),f=e.next();!f.done;f=e.next())f=f.value,f.hg===c&&0!==f.durationMs&&f.pd!==f.Ic&&(f=f.cpn,b===f&&(d=!0),d&&!a.Mb.has(f)&&(a.Ca.Ba("sdai","decoratedAd."+f),a.Mb.add(f)))};
   HS=function(a){a.X.N("html5_high_res_logging")&&a.Ca.Ba("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.qb)+"_isTimeout_"+a.K})};
   EAa=function(a,b,c){if(a.Z.length)for(var d={},e=g.r(a.Z),f=e.next();!f.done;d={Jo:d.Jo},f=e.next()){d.Jo=f.value;f=1E3*d.Jo.startSecs;var h=1E3*d.Jo.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return vn(a.Db,function(l){return function(m){return m.identifier===l.Jo.identifier}}(d))||(a.Ca.Ba("sdai","adskip_"+b),a.Db.push(d.Jo)),d.Jo}};
   VS=function(a){a.K=!1;a.D.isActive()&&HS(a);a.D.stop();a.Mv(!1)};
   WS=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.u=c;this.J=new Map;this.i=[];this.B=this.K=null;this.Z=NaN;this.D=this.C=null;this.S=new g.M(function(){SAa(d,d.Z)});
   this.Y=[];this.ma=new g.M(function(){var e=d.Y.pop();if(e){var f=e.Cc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Y.length&&g.Jq(d.ma,4500))}});
   this.events=new g.uD(this);c.getPlayerType();g.J(this,this.S);g.J(this,this.ma);g.J(this,this.events);this.events.T(this.api,g.nA("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Mh)};
   WAa=function(a,b,c,d,e,f){var h=a.u;f=void 0===f?e+d:f;if(e>f)return a.ge("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.getMinSeekableTime();if(e<l)return a.ge("e.enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+l),"";l=1E3*h.getDuration();if(f>l)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.Uc(),a.ge(h),"";l=null;
   for(var m=g.r(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Ic&&e<n.pd)return a.ge("e.overlappingEnter"),a.oa(),"";if(f<=n.pd&&f>n.Ic)return a.ge("e.overlappingReturn"),a.oa(),"";if(f===n.Ic)return a.ge("e.outOfOrder"),a.oa(),"";e===n.pd&&(l=n)}m="cs_childplayback_"+TAa++;n={Cd:XS(d,!0),Ij:Infinity,target:null};var p={Cc:m,playerVars:b,playerType:c,durationMs:d,Ic:e,pd:f,Zm:n};a.i=a.i.concat(p).sort(function(u,x){return u.Ic-x.Ic});
   l?UAa(a,l,{Cd:XS(l.durationMs,!0),Ij:a.X.N("timeline_manager_transition_killswitch")?Infinity:l.Zm.Ij,target:p}):(b={Cd:XS(e,!1),Ij:e,target:p},a.J.set(b.Cd,b),a.oa(),h.addCueRange(b.Cd));b=a.X.N("html5_gapless_preloading");if(a.u===a.api.Kc()&&(h=1E3*h.getCurrentTime(),h>=p.Ic&&h<p.pd)){var q=a.api.Kc().getPlayerState(),t=h-p.Ic;Tg(function(){VAa(a,p,t/1E3,q)});
   b=!1}b&&(a.Y.unshift(p),g.Jq(a.ma,0));a.oa();return m};
   XS=function(a,b){return new g.lA(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
   XAa=function(a,b,c,d){a.oa();a.B=d;a.api.Fy(a.u,c,b)};
   YAa=function(a,b,c,d){a.oa();a.B=d;d=b.Cc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
   UAa=function(a,b,c){var d=b.Zm;b.Zm=c;YS(a,b)&&(c=a.api.Kc(),d.Cd===a.B&&ZS(a),a.oa(),c.removeCueRange(d.Cd),b=b.Zm,a.oa(),c.addCueRange(b.Cd))};
   ZS=function(a){a.K=null;a.B=null;a.api.ys()||a.api.clearQueue()};
   ZAa=function(a,b){YS(a,b)||a.ge("e.childPlaybackIsNotPresenting");return b.pd===b.Ic+b.durationMs?(a=a.api.Kc(),b.Ic+1E3*a.getCurrentTime()):b.pd};
   $S=function(a,b){var c=0;a=g.r(a.i);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Ic/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Dl:d,fq:b-e};c=f-d.pd/1E3}return{Dl:null,fq:b-c}};
   SAa=function(a,b){var c=a.D||a.api.Kc().getPlayerState();aT(a,!0);b=a.X.N("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.u.hj();var d=$S(a,b);b=d.Dl;d=d.fq;var e=b&&!YS(a,b)||!b&&a.u!==a.api.Kc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||ZS(a);a.oa();b?(a.oa(),VAa(a,b,d,c)):(a.oa(),bT(a,d,c))};
   bT=function(a,b,c){var d=a.u,e=a.api.Kc();d!==e&&a.api.Fj(d.getPlayerType());d.seekTo(b,{Td:"application_timelinemanager"});$Aa(a,c)};
   VAa=function(a,b,c,d){var e=YS(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new oG(a.X,b.playerVars);a.X.N("html5_match_codecs_for_gapless")||a.api.Fj(b.playerType);f.Cc=b.Cc;a.api.Ln(f,b.playerType)}f=a.api.Kc();e||(b=b.Zm,a.oa(),f.addCueRange(b.Cd));f.seekTo(c,{Td:"application_timelinemanager"});$Aa(a,d)};
   $Aa=function(a,b){a=a.api.Kc();var c=a.getPlayerState();g.YJ(b)&&!g.YJ(c)?a.playVideo():g.U(b,4)&&!g.U(c,4)&&a.pauseVideo()};
   aT=function(a,b){a.Z=NaN;a.S.stop();a.C&&b&&PS(a.C);a.D=null;a.C=null};
   YS=function(a,b){a=a.api.Kc();return!!a&&a.getVideoData().Cc===b.Cc};
   aBa=function(a){var b=a.i.find(function(e){return YS(a,e)});
   if(b){var c=a.api.Kc();ZS(a);var d=new g.SJ(8);b=ZAa(a,b)/1E3;bT(a,b,d);c.Ba("forceParentTransition","childPlayback");a.u.Ba("forceParentTransition","parentPlayback")}};
   cT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=g.r(a.J),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Ij>=d&&l.target&&l.target.pd<=e&&(a.u.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.r(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ic>=d&&l.pd<=e){var m=a;m.K===l&&ZS(m);YS(m,l)&&m.api.po(l.playerType)}else f.push(l);a.i=f;d=$S(a,b/1E3);b=d.Dl;d=d.fq;b&&(d*=1E3,bBa(a,b,d,b.pd===b.Ic+b.durationMs?b.Ic+d:b.pd));
   (b=$S(a,c/1E3).Dl)&&a.ge("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Cc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ic+" parentReturnTimeMs="+b.pd+"}.Child playbacks can only have duration updated not their start."))};
   bBa=function(a,b,c,d){a.oa();b.durationMs=c;b.pd=d;d={Cd:XS(c,!0),Ij:c,target:null};UAa(a,b,d);YS(a,b)&&1E3*a.api.Kc().getCurrentTime()>c&&(b=ZAa(a,b)/1E3,c=a.api.Kc().getPlayerState(),bT(a,b,c))};
   dBa=function(a){a&&"web"!==a&&cBa.includes(a)};
   fT=function(a,b){g.I.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.i=new g.M(function(){dT(c);eT(c)});
   g.J(this,this.i)};
   dT=function(a){var b=(0,g.Q)();a.data.forEach(function(c){c.expire<b&&gT(a,c,!0)});
   a.data=g.Ko(a.data,function(c){return!(c.expire<b)})};
   gT=function(a,b,c){c&&a.u&&a.u(b.value)};
   eT=function(a){a.i.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.i.start(b))};
   hT=function(){g.tr.call(this);this.D=new Map};
   iT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.i=a-1};
   eBa=function(a){return a.data[a.i]||0};
   jT=function(a){g.I.call(this);this.B=a;this.i=new Map;this.u=new g.M(this.sample,250,this);g.J(this,this.u);this.start()};
   kT=function(a,b){var c;if(null===(c=a.i.get(b))||void 0===c)a=void 0;else{a=c.buffer;for(b=[];a.u!==a.i;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
   lT=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:eBa(c.buffer))||0};
   mT=function(a){this.u=a;this.i=NaN;this.buffer=new iT(100)};
   fBa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.lc()+")":a.lc()};
   nT=function(a,b){g.I.call(this);var c=this;this.i=null;for(var d=[],e=0;100>=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.u=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.i=null:c.i=f.isVisible?f.intersectionRatio:0:c.i=f.intersectionRatio},e):null)&&this.u.observe(a)};
   gBa=function(a,b){Fia(a,"version",b)};
   pT=function(a){g.V.call(this,{G:"div",Ha:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.oT.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.Ru=this.Fa(g.oT.VIDEO_CONTAINER);this.Os=new g.Pl(0,0,0,0);this.Jb=null;this.xA=new g.Pl(0,0,0,0);this.WD=this.PE=this.OE=NaN;this.pz=this.uA=this.FF=this.pJ=!1;this.eD=NaN;this.uE=!1;this.dw=null;this.jF=function(){b.element.focus()};
   this.pB=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
   this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
   var e=a.V();e.transparentBackground&&this.Lm("ytp-transparent");"0"===e.controlsType&&this.Lm("ytp-hide-controls");g.N(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.N(this.element,"ytp-linear-gradient-bottom-experiment");e.N("web_player_bigger_buttons_like_mobile")&&g.N(this.element,"ytp-exp-bigger-button-like-mobile");e.N("enable_new_paid_product_placement")&&!g.yF(e)&&g.N(this.element,"ytp-exp-ppp-update");gBa(this.element,hBa(a));this.MN=!1;tF(e)&&
   "blazer"!==e.playerStyle&&window.matchMedia&&(this.pB="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.cg(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.cg(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.cg(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.cg(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.cg(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
   size:new g.cg(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.cg(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.cg(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.cg(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.cg(640,360)}]);this.XG=e.useFastSizingOnWatchDefault;this.uv=new g.cg(NaN,NaN);iBa(this);this.T(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
   iBa=function(a){function b(){a.Jb&&qT(a);NT(a)!==a.uE&&a.resize()}
   function c(h,l){a.gs(h,l)}
   function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
   function e(){a.xA=new g.Pl(0,0,0,0);a.Os=new g.Pl(0,0,0,0)}
   var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.we(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
   jBa=function(a){var b=g.PM(a.app);if(b=b?b.getVideoData():null){if(g.MG(b)||g.NG(b)||g.PG(b))return 16/9;if(vG(b)&&b.B.i)return a=b.B.videoInfos[0].video,XT(a.width,a.height)}return(a=a.Jb)?XT(a.videoWidth,a.videoHeight):16/9};
   kBa=function(a,b,c,d){var e=c,f=XT(b.width,b.height);a.pJ?e=c<f?Infinity:0:isNaN(a.WD)?isNaN(a.PE)||(e=a.PE):e=a.WD;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};
   XT=function(a,b){return 1>Math.abs($T*b-a)||1>Math.abs($T/a-b)?$T:a/b};
   NT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.PM(a.app);if(!b||b.Tl())return!1;var c=a.app.Ta.yb();a=!g.U(c,2)||!a.app.V().N("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ja;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()};
   qT=function(a){var b="3"===a.app.V().controlsType&&!a.pz&&NT(a)&&!a.app.jw||!1;a.Jb.controls=b;a.Jb.tabIndex=b?0:-1;b?a.Jb.removeEventListener("focus",a.jF):a.app.V().N("disable_focus_redirect")||a.Jb.addEventListener("focus",a.jF)};
   lBa=function(a){var b=a.rg(),c=1,d=!1,e=kBa(a,b,a.getVideoAspectRatio()),f=a.app.V().N("enable_desktop_player_underlay"),h=cu(),l=f&&a.FF&&768<a.getPlayerSize().width;if(NT(a)){var m=jBa(a);var n=isNaN(m)||g.ax||aU&&g.gj||l;du&&!g.Ic(601)?m=e.aspectRatio:n=n||"3"===a.app.V().controlsType;n?l?(n=a.app.V().N("place_shrunken_video_on_left_of_player"),m=(.5-.46)/2,m*=a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.Pl(n,0,b.width,b.height)):n=new g.Pl(0,0,b.width,b.height):(c=e.aspectRatio/
   m,n=new g.Pl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.gj&&(m=n.width-b.height*m,0<m&&(n.width+=m,n.height+=m)));if(h||a.MN)a.Jb.style.display="";a.uE=!0}else{n=-b.height;du?n*=window.devicePixelRatio:g.BF&&(n-=window.screen.height);n=new g.Pl(0,n,b.width,b.height);if(h||a.MN)a.Jb.style.display="none";a.uE=!1}Ql(a.xA,n)||(a.xA=n,g.eF(a.app.V())?(a.Jb.style.setProperty("width",n.width+"px","important"),a.Jb.style.setProperty("height",n.height+"px","important")):g.fm(a.Jb,
   new g.cg(n.width,n.height)),d=new g.ag(n.left,n.top),g.Zl(a.Jb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Pl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Ql(a.Os,b)||(a.Os=b,d=!0);g.Sl(a.Jb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.uA&&(a.uA=l,a.app.Ta.ea("playerUnderlayVisibilityChange",a.uA));return d};
   mBa=function(){this.csn=g.Ey();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.i=new Set;this.u=new Set};
   nBa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.i.delete(b);a.u.delete(b)};
   oBa=function(a){if(a.csn!==g.Ey())if("UNDEFINED_CSN"===a.csn)a.csn=g.Ey();else{var b=g.Ey(),c=g.Dy();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.Qy(void 0,b,c,[e])}if(b)for(a=g.r(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Ry(b,c,void 0)}};
   bU=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.D+"em"};
   cU=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Gg("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.i*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.Gg("SPAN"),d.style.width=a.i+"px",d.style.left=a.i*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*
   c,a.u.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.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.i,0,a.i,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
   dU=function(a){var b=null;b={G:"button",Ha:["html5-video-info-panel-close","ytp-button"],W:{title:"close"},va:"[x]"};g.V.call(this,{G:"div",L:"html5-video-info-panel",U:[b,{G:"div",L:"html5-video-info-panel-content",U:[{G:"div",U:[{G:"div",va:"Video ID / sCPN"},{G:"span",va:"{{video_id_and_cpn}}"}]},{G:"div",U:[{G:"div",va:"Viewport / Frames"},{G:"span",va:"{{dims_and_frames}}"}]},{G:"div",U:[{G:"div",va:"Current / Optimal Res"},{G:"span",va:"{{resolution}}"}]},{G:"div",U:[{G:"div",va:"Volume / Normalized"},
   {G:"span",va:"{{volume}}"}]},{G:"div",U:[{G:"div",va:"Codecs"},{G:"span",va:"{{codecs}}"}]},{G:"div",W:{style:"{{shader_info_style}}"},U:[{G:"div",va:"Shader Info"},{G:"span",va:"{{shader_info}}"}]},{G:"div",W:{style:"{{color_style}}"},U:[{G:"div",va:"Color"},{G:"span",va:"{{color}}"}]},{G:"div",W:{style:"{{drm_style}}"},U:[{G:"div",va:"Protected"},{G:"span",va:"{{drm}}"}]},{G:"div",W:{style:"{{bandwidth_style}}"},U:[{G:"div",va:"Connection Speed"},{G:"span",U:[{G:"span",va:"{{bandwidth_chart}}"},
   {G:"span",va:"{{bandwidth_kbps}}"}]}]},{G:"div",W:{style:"{{network_activity_style}}"},U:[{G:"div",va:"Network Activity"},{G:"span",U:[{G:"span",va:"{{network_activity_chart}}"},{G:"span",va:"{{network_activity_bytes}}"}]}]},{G:"div",U:[{G:"div",va:"Buffer Health"},{G:"span",U:[{G:"span",va:"{{buffer_health_chart}}"},{G:"span",va:"{{buffer_health_seconds}}"}]}]},{G:"div",W:{style:"{{live_latency_style}}"},U:[{G:"div",va:"Live Latency"},{G:"span",U:[{G:"span",va:"{{live_latency_chart}}"},{G:"span",
   va:"{{live_latency_secs}}"}]}]},{G:"div",W:{style:"{{live_mode_style}}"},U:[{G:"div",va:"Live Mode"},{G:"span",va:"{{live_mode}}"}]},{G:"div",W:{style:"{{playback_categories_style}}"},U:[{G:"div",va:"Playback Categories"},{G:"span",va:"{{playback_categories}}"}]},{G:"div",U:[{G:"div",va:"Mystery Text"},{G:"span",va:"{{debug_info}}"}]},{G:"div",W:{style:"{{cotn_and_local_media_style}}"},U:[{G:"div",va:"COTN / Local Media"},{G:"span",va:"{{cotn_and_local_media}}"}]},{G:"div",W:{style:"{{release_style}}"},
   U:[{G:"div",va:"Player Release"},{G:"span",va:"{{release_name}}"}]}]}]});b&&(b=this.Fa("html5-video-info-panel-close"),this.T(b,"click",this.hide));b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
   this.i=new bU(300,1,150,b,c);g.J(this,this.i);this.Sa("bandwidth_chart",this.i);this.B=new bU(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.J(this,this.B);this.Sa("live_latency_chart",this.B);this.u=new bU(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.J(this,this.u);this.Sa("buffer_health_chart",this.u);this.C=new bU(300,1,150,d,c);g.J(this,this.C);this.Sa("network_activity_chart",this.C);this.delay=new g.M(this.Pa,
   500,this);g.J(this,this.delay);this.Ta=a};
   pBa=function(a){a=void 0===a?{}:a;var b=a.fg,c=a.Fg,d=a.getLastSegmentNumber,e=a.Wr;this.Hl=a.Hl;this.fg=b;this.Fg=c;this.getLastSegmentNumber=d;this.Wr=e};
   qBa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.Hl||b===c&&(a=a.Wr())&&b===a.Ma?!0:!1};
   rBa=function(a,b,c){if(!qBa(a,b))return 0;if(!a.fg||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Wr())&&b===a.Ma&&!a.pending?2:1};
   eU=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
   sBa=function(a,b){var c=Math.min(2.5,GE(a.schedule));a=fU(a);return b-c*a};
   gU=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.dd&&(d=Math.abs(d));d/=a.playbackRate;var f=1/IE(a.schedule);var h=.9*(d-a.policy.Tg);h=Math.max(h,GE(a.schedule)+2048*f);c=h/f*a.policy.tp/(b+c);c=Math.min(c,d);a.policy.zd&&e&&(c=Math.max(c,a.policy.zd));return tBa(a,c,b)};
   tBa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Uo*c),Math.min(Math.min(a.policy.Ja,31*c),Math.ceil(b*c))))||65536};
   fU=function(a){return IE(a.schedule,!a.policy.Pj,a.policy.So)};
   hU=function(a){return fU(a)/a.playbackRate};
   iU=function(a,b,c,d,e){this.Xa=a;this.u=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.B=0;this.i=!1;this.C=this.u.isManifestless&&!this.u.bf;this.D=null};
   uBa=function(a,b,c){var d=b.i.index,e=b.u.Ma;RC(d,e)||c&&c.Ma===e?(a.oa(),b.D=!RC(d,e),b.S=!RC(d,e)):(a.oa(),b.D=!0,b.S=!0)};
   wBa=function(a,b,c,d){a.oa();if(!b.i.Se())return 0!==c&&jU(b),c;var e=kU(b,c);if(!isNaN(e))return a.oa(),e;jU(b);lU(b.C);return d&&(a=FD(d.lf(),c),!isNaN(a))?(mU(b,a+vBa),c):mU(b,c)};
   ABa=function(a,b,c,d){if(a.i&&a.B){var e=xBa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.C=!0;g.ah(function(){a.Xa.Ba("seekreason","reason.behindMinSq;tgt."+e);yBa(a,e)});
   return}}c?a.videoTrack.S=!1:a.audioTrack.S=!1;var f=a.policy.Vq||!a.C;if(0<=kU(a.videoTrack,a.B)&&0<=kU(a.audioTrack,a.B)&&f){if(a.videoTrack.D||a.audioTrack.D)a.oa(),a.Xa.Ba("iterativeSeeking","done;count."+a.seekCount);a.videoTrack.D=!1;a.audioTrack.D=!1}else d&&g.ah(function(){if(a.C||!a.policy.Ua)zBa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.J&&-1!==a.audioTrack.J,n=!a.videoTrack.S&&!a.audioTrack.S;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.B>=h&&a.B<h+l+.1?((c?a.videoTrack:
   a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.oa(),a.Xa.Ba("iterativeSeeking","done;count."+a.seekCount),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.oa(),a.Xa.Ba("iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.B+";actual."+h+";duration."+l+";isVideo."+c),a.seek(a.B)):(a.oa(),a.Xa.Ba("iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.B+";actual."+h),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Xa.Ca.seekTo(h+.1,{Mp:!0,Td:"chunkSelectorSynchronizeMedia",
   ep:!0})))}})};
   xBa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.B);return(RC(c,a.u.xe)||b.Ma===a.u.xe)&&d<a.u.xe?(a.oa(),a.u.getMinSeekableTime()):-1};
   yBa=function(a,b){a.C&&-1!==a.videoTrack.J&&-1!==a.audioTrack.J&&(a.C=!1,a.oa(),a.Xa.Ca.seekTo(b+.1,{Mp:!0,Td:"chunkSelectorSynchronize",ep:!0}))};
   zBa=function(a){var b=-1!==a.videoTrack.J,c=-1!==a.audioTrack.J;if(!b||!c)if(b=!b&&a.videoTrack.cg(),c=!c&&a.audioTrack.cg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.J=c.cg().info.Ma,-1!==b.J){var d=Math.max(b.i.index.getStartTime(b.J),c.i.index.getStartTime(c.J));a.policy.Xq&&bE(a.u)&&432E3<Math.abs(d-bE(a.u))&&zma(a.u);a.Xa.Ba("seekreason","reason.initManifestlessSync;tgt."+d);g.ah(function(){return yBa(a,d)});
   a.D&&(a.D.resolve(d+.1),a.D=null)}};
   BBa=function(){this.B=this.C=0;this.ticks={}};
   nU=function(a,b,c,d,e,f){g.R.call(this);this.Xa=a;this.K=b;this.policy=c;this.D=d;this.Y=e;this.Z=this.u=null;this.B=this.C=NaN;this.J=0;this.S=null;this.i=f?1:0};
   oU=function(a,b,c){a.policy.Jh&&(b.startSecs+=isNaN(a.J)?0:a.J);a=a.K;a.Y.push(b);a.ea("cuepointsadded",c)};
   CBa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.C)?a.C:b};
   EBa=function(a,b,c,d){DBa(a.D,d,c,b);DBa(a.Y,d,c,b);dE(a.K,d,!0);dE(a.K,d,!1);a.Ba("sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))};
   FBa=function(a,b){if(a.u){var c=a.u.oe.durationSecs-(b.startTime+a.J-a.u.oe.startSecs);0>=c||(c=new dA(a.u.oe.startSecs-(a.policy.Jh&&!isNaN(a.J)?a.J:0),c,a.u.oe.context,a.u.oe.identifier,"stop",a.u.oe.i+1E3*b.duration),a.Ba("cuepointdiscontinuity","segNum."+b.Ma),oU(a,c,b.Ma))}};
   GBa=function(a,b,c,d){(void 0===d?0:d)?(a.i=1,a.Ba("sdai","rststate_skth")):0<b&&5<=Math.abs(b-c)&&4===a.i&&(a.Ba("sdai","rststate_skt_"+b.toFixed(2)+"_ct_"+c.toFixed(2)),a.i=5)};
   pU=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
   qU=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Xa=a;this.ya=b;this.policy=c;this.D=d;this.J=e;this.Za=f;this.B=nG;this.i=this.K=null;this.Z=-1;this.Ja=!1;this.nextVideo=this.u=null;this.C=[];this.Ea={};this.videoIndex=0;this.Ua=this.Y=this.S=!1;this.Aa=0;this.Ra=new Set;this.Ya=!1;this.ma=new Map;this.La=0;this.eb=!1;this.Ka=null};
   LBa=function(a,b,c){rU(a,b);HBa(a,c);a.K=a.u;IBa(a);JBa(a);a.i=a.nextVideo;a.K=a.u;return KBa(a)};
   MBa=function(a,b){if(dB(a.B,b))return null;if("m"===b.reason&&b.isLocked())return a.oa(),rU(a,b),a.videoIndex=a.C.length-1,sU(a),tU(a),a.Y=a.Y||a.i!==a.nextVideo,a.i=a.nextVideo,new pU(a.u,a.i,b.reason);"r"===b.reason&&(a.Z=-1);rU(a,b);tU(a);if("r"===b.reason&&a.nextVideo===a.i)return new pU(a.u,a.nextVideo,b.reason);a.i&&a.nextVideo&&uU(a,a.i.info)<uU(a,a.nextVideo.info)&&(b=a.B.reason,a.S=a.S||"r"===b||"u"===b||"v"===b);return null};
   NBa=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,KBa(a)}else a.Ua=a.K!==b,a.K=b;return null};
   vU=function(a,b,c){a.La+=1;if(void 0===c?0:c)a.eb=!0;c=6E4*Math.pow(2,a.La);a.ma.set(b.info.id,(0,g.Q)()+c);a.Z=-1;rU(a,a.B)};
   wU=function(a){if(a.ma.size){for(var b=(0,g.Q)(),c=g.r(a.ma.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ma.clear()}return!1};
   OBa=function(a,b){return new pU(a.K,a.i,b||a.B.reason)};
   xU=function(a){return a.B.isLocked()};
   KBa=function(a){a.Ja?a.Ja=!1:a.Z=(0,g.Q)();a.S=!1;return new pU(a.K,a.i,a.B.reason)};
   PBa=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.i,f=c[e],h=f&&qD(f)&&f.video.i>a.policy.S,l=e<=a.policy.S?qD(d):oD(d);if(!f||h||l)c[e]=d}return c};
   rU=function(a,b){var c;a.B=b;var d=a.J.videoInfos;if(!xU(a)){var e=(0,g.Q)();d=g.Ko(d,function(p){if(p.Nb>this.policy.Nb)return this.oa(),!1;var q=this.D.i[p.id],t=q.info.i;return this.policy.lr&&this.Ra.has(t)||this.ma.get(p.id)>e?!1:4<q.u.u||4<q.S?(this.oa(),!1):q.D?!1:!0},a);
   a.eb&&wU(a)&&(d=g.Ko(d,function(p){return 480>=p.video.i}))}d.length||(d=a.J.videoInfos);
   var f=g.Ko(d,b.C,b),h="m"===b.reason||"s"===b.reason;a.policy.Zi&&aU&&g.gj&&(!h||1080>b.i)&&(f=f.filter(function(p){return p.video&&(!p.u||p.u.powerEfficient)}));
   if(0<f.length)if(ND()){var l=PBa(a,f);f=f.filter(function(p){return!!p&&!!p.video&&p.i===l[p.video.i].i})}else{b=f[0];
   var m=null===(c=null===b||void 0===b?void 0:b.video)||void 0===c?void 0:c.i;if(m){b=f.filter(function(p){return!!p&&!!p.video&&p.video.i===m});
   var n=PBa(a,b)[m].i;f=f.filter(function(p){return!!p&&!!p.video&&p.i===n})}}f.length||(f=[d[0]]);
   f.sort(function(p,q){return uU(a,p)-uU(a,q)});
   for(d=1;d<f.length;d++)b=f[d-1],h=f[d],b.video.width>h.video.width?(a.oa(),g.zb(f,d),d--):uU(a,b)*a.policy.B>uU(a,h)&&(a.oa(),g.zb(f,d-1),d--);d=f[f.length-1];a.Ya=!!a.i&&!!a.i.info&&a.i.info.i!==d.i;a.oa();a.C=f;Vua(a.policy,d)};
   HBa=function(a,b){b?a.u=a.D.i[b]:(b=(b=g.tb(a.J.i,function(c){return!!c.Ac&&c.Ac.isDefault}))||a.J.i[0],a.u=a.D.i[b.id]);
   sU(a)};
   QBa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=hU(a.ya)/a.policy.B;return uU(a,b.info)+uU(a,a.C[c])>d};
   sU=function(a){if(!a.u||!a.policy.u)if(!a.u||!a.u.info.Ac)if(a.u=a.D.i[a.J.i[0].id],1<a.J.i.length){var b=!1;if(a.policy.Ra){if(b=!0,a.policy.vl){var c=qb(a.J.i,function(d){return"250"===d.lc()});
   0<=c&&(a.u=a.D.i[a.J.i[c].id],b=QBa(a,a.u))}}else b=a.B.isLocked()?240>a.B.i:QBa(a,a.u);b&&(a.u=a.D.i[g.pb(a.J.i).id])}};
   tU=function(a){a.policy.Kg&&(a.Ka=a.Ka||new g.M(function(){a.policy.Kg&&a.i&&!wU(a)&&1===Math.floor(10*Math.random())?(vU(a,a.i),a.S=!0):a.Ka.start()},6E4),g.Jq(a.Ka));
   if(!a.nextVideo||!a.policy.u)if(xU(a))a.nextVideo=360>=a.B.i?a.D.i[a.C[0].id]:a.D.i[g.pb(a.C).id],a.oa();else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=hU(a.ya),d=uU(a,a.u.info),e=c/a.policy.C-d;0<b&&!(uU(a,a.C[b])<=e);b--);for(c=c/a.policy.B-d;b<a.C.length-1&&!(uU(a,a.C[b+1])>=c);b++);a.nextVideo=a.D.i[a.C[b].id];a.videoIndex!==b&&a.oa();a.videoIndex=b}};
   IBa=function(a){var b=a.policy.C,c=hU(a.ya)/b-uU(a,a.u.info);b=g.ub(a.C,function(d){return uU(this,d)<c},a);
   0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.i[a.C[b].id];a.oa()};
   JBa=function(a){if(a.Za.length){var b=a.Za,c=function(d,e){if("f"===d.info.i||b.includes(vC(d,a.D.isLive)))return d;for(var f=0;f<e.length;f++){var h=a.D.i[e[f].id],l=vC(h,a.D.isLive);if(b.includes(l)){l=d.info.i;var m=h.info.i;if(l===m||ND())return d=d.info.lc(),e=h.info.lc(),a.Xa.Ba("ombifa","f."+d+";t."+e),a.oa(),a.Ja=!0,h;a.Xa.Ba("ombifa","mismatch.efficient;fc."+l+";tc."+m)}}a.Xa.Ba("ombifa","mismatch.unselectable;fmts."+b.join("."));return d};
   a.nextVideo=c(a.nextVideo,a.J.videoInfos);a.u=c(a.u,a.J.i)}};
   uU=function(a,b){if(!a.Ea[b.id]){var c=a.D.i[b.id].index.getLocalMaxByterate(a.Aa,15);c=b.Ju&&a.i&&a.i.index.isLoaded()?c||b.Ju:c||b.Nb;a.Ea[b.id]=c}c=a.Ea[b.id];a.policy.ac&&b.video&&b.video.i>a.policy.ac&&(c*=1.5);return c};
   RBa=function(a,b){a=kc(a.D.i,function(c){return c.info.lc()===b});
   if(!a)throw Error("Itag "+b+" from server not known.");return a};
   SBa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(gma(a.D)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.C.length;c++){var d=a.C[c].lc();b.push(d)}b.reverse()}return b};
   TBa=function(a,b){this.u=(new TextEncoder).encode(a);this.i=(new TextEncoder).encode(b)};
   foa=function(a,b){return g.H(a,function d(){var e,f=this,h,l;return g.B(d,function(m){if(1==m.i){if(!b)return m.return(b);e=yU.Bo("woe");h=new aR(f.u);return g.A(m,h.encrypt(b,f.i),2)}l=m.u;yU.fn(e,Math.ceil(b.byteLength/16));return m.return(l)})})};
   joa=function(a,b){return g.H(a,function d(){var e,f=this,h,l;return g.B(d,function(m){if(1==m.i){if(!b)return m.return(b);e=yU.Bo("wod");h=new aR(f.u);return g.A(m,h.decrypt(b,f.i),2)}l=m.u;yU.fn(e,Math.ceil(b.byteLength/16));return m.return(l)})})};
   zU=function(a,b,c){this.policy=a;this.i=b;this.ya=c;this.B=this.u=0;this.Ue=null;this.S=[];this.indexRange=this.initRange=null;this.Z=new uS;this.Y=this.ma=!1;a:{if(this.policy.Fc&&this.policy.rr){b={};c=g.r(this.policy.Fc);for(var d=c.next();!d.done;b={Dx:b.Dx,Ex:b.Ex},d=c.next())if(d=g.Os(d.value),b.Dx=+d.clen,b.Ex=+d.csz,0<b.Dx&&0<b.Ex&&this.policy.u===d.docid&&this.i.info.id===d.fmtid&&this.i.info.lastModified===+d.lmt){c={};b=(c.clen=b.Dx,c.csz=b.Ex,c.ck=d.ck,c.civ=d.civ,c);break a}}b=void 0}b?
   (this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.K=b.ck,this.J=b.civ):(this.chunkSize=a.qr,this.C=0,this.policy.Oj&&(this.K=yy(),this.J=yy()));this.D=new Uint8Array(this.chunkSize);this.K&&this.J&&(this.crypto=new TBa(this.K,this.J))};
   AU=function(a){return!!a.Ue&&a.Ue.B};
   VBa=function(a,b){if(!AU(a)&&!a.isDisposed()){if(!(a.ma||(a.ma=!0,0<a.C))){var c=BU(a);c=ZF(a.policy.u,a.i.info,CU(a),c);DU(a,c)}if(1===b.info.type)a.initRange=yC(0,b.i.totalLength);else if(2===b.info.type){if(!a.Ue||1!==a.Ue.type)throw Error("deprecated use case");a.indexRange=yC(a.initRange.end+1,b.i.totalLength)}else if(3===b.info.type){if(3===a.Ue.type&&!DC(a.Ue,b.info)&&(a.S=[],c=a.Ue,b.info.Ma!==c.Ma+(c.Rd?1:0)||0!==b.info.Cb))return;if(b.info.Rd){c=g.r(a.S);for(var d=c.next();!d.done;d=c.next())UBa(a,
   d.value);a.S=[]}else{a.S.push(b);a.Ue=b.info;return}}a.Ue=b.info;UBa(a,b);AU(a)&&(b=new Uint8Array(a.D.buffer,0,a.u),c={downloadedEndTime:-1,maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Ju)},b=ZF(a.policy.u,a.Ue.i.info,CU(a),c,a.B,b,a.crypto),DU(a,b,!0))}};
   UBa=function(a,b){var c,d=0,e=$C(b.i);if(a.B<a.C){d=a.C*a.chunkSize;var f=((null===(c=b.info.range)||void 0===c?void 0:c.start)||0)+b.info.Cb;d-=f;if(d>=e.length)return;if(0>d)throw Error("Missing data");a.B=a.C;a.u=0}for(f={};d<e.length;){f.Kt=Math.min(e.length-d,a.D.byteLength-a.u);var h=new Uint8Array(e.buffer,e.byteOffset+d,f.Kt);a.D.set(h,a.u);a.u+=f.Kt;d+=f.Kt;if(a.u===a.D.length){if(b.info===a.Ue&&AU(a)&&d===e.length)break;h=BU(a);h=ZF(a.policy.u,a.i.info,CU(a),h,a.B,a.D,a.crypto);DU(a,h);
   a.isDisposed()||(h=BU(a),a.ya(CU(a),void 0!==h?(h.downloadedEndTime||0)*h.averageByteRate:h.maxKnownEndTime*h.averageByteRate,h.maxKnownEndTime*h.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}f={Kt:f.Kt}}};
   BU=function(a){return{downloadedEndTime:Math.round(a.Ue?a.Ue.D:0),maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Ju)}};
   CU=function(a){var b,c,d={lmt:a.i.info.lastModified,docid:a.policy.u,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(d.ck=a.K,d.civ=a.J);var e="local://localhost/videoplayback?"+Ls(d);d={itag:+a.i.info.lc(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.Nb,lastModified:String(a.i.info.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:ila(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:ila(c),url:e};e=a.i.info;if(e=
   0<e.id.indexOf(";")?e.id.split(";")[1]:null)d.xtags=e;if(e=a.i.info.video)if(d.quality=e.quality,d.qualityLabel=e.qualityLabel,d.width=e.width,d.height=e.height,e=e.fps)d.fps=e;if(a=a.i.info.audio){if(e=a.sampleRate)d.audioSampleRate=String(e);if(a=a.numChannels)d.audioChannels=a}return d};
   DU=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
   WBa=function(a){a=g.ZB(a,1886614376);g.Qb(a,function(b){return!b.u});
   return g.ym(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
   XBa=function(a){var b=Am(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
   g.Qb(a,function(e){c.set(e,d);d+=e.length});
   return c};
   YBa=function(a,b,c,d,e){this.ids=a;this.u=b;this.B=c;this.C=d;this.i=e};
   EU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.u=[];this.ue=!1;if("webm"===(null===b||void 0===b?void 0:b.toLowerCase())||16===a.length)this.ue=!0};
   ZBa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=b.subarray(c+f,c+f+l);b:{for(var n=new Wr,p=new bd(m);cd(p);)switch(p.D){case 18:var q=id(p);Qd(n,2).push(q);break;case 34:var t=id(p);Pd(n,4,t);break;case 56:var u=ad(p.i);Pd(n,7,u);break;case 72:var x=ad(p.i);Pd(n,9,x);break;case 80:var y=
   ad(p.i);Pd(n,10,y);break;case 88:var z=$c(p.i);Pd(n,11,z);break;case 96:var G=ad(p.i);Pd(n,12,G);break;case 106:var F=id(p);Qd(n,13).push(F);break;case 114:f=p;var C=new Xr,K=gha,S=f.i.B,L=ad(f.i),W=f.i.i+L;f.i.B=W;K(C,f);var pa=W-f.i.i;if(0!==pa)throw Error("Message parsing ended unexpectedly. Expected to read "+L+" bytes, instead read "+(L-pa)+" bytes, either the data ended unexpectedly or the message misreported its own length");f.i.i=W;f.i.B=S;f=n;K=C;var ta=Xr,rb=Xd(f,ta,14),ob=K?K:new ta,Ib=
   Qd(f,14);rb.push(ob);Ib.push(ob.oh(!1));break;case 122:var sc=hd(p);Pd(n,15,sc);break;case 130:var dd=hd(p);Pd(n,16,dd);break;case 136:var We=ad(p.i);Pd(n,17,We);break;case 8:var $b=$c(p.i);Pd(n,1,$b);break;case 26:var zk=hd(p);Pd(n,3,zk);break;case 42:var Vi=hd(p);Pd(n,5,Vi);break;case 50:var Wi=hd(p);Pd(n,6,Wi);break;case 66:var Xi=id(p);Pd(n,8,Xi);break;default:if(!ge(n,p)){var kb=n;break b}}kb=n}f=kb;if(null!==f){var sb=f;break a}}catch(hc){}}c+=e}sb=null}catch(hc){sb=null}}if(null!=sb)for(b=
   Od(sb,7),null==b||a.ue||(a.cryptoPeriodIndex=b),b=Od(sb,10),null!=b&&0<b&&!a.ue&&(a.i=b),sb=Qd(sb,2),sb=!sb.length||sb[0]instanceof Uint8Array?sb:g.ym(sb,Bd),sb=g.r(sb),b=sb.next();!b.done;b=sb.next())a.u.push(g.Mc(b.value,4))};
   $Ba=function(a){return isNaN(a.cryptoPeriodIndex)?g.Mc(a.initData):""+a.cryptoPeriodIndex};
   FU=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.Kw?void 0:d.Kw;d=void 0===d.rz?!1:d.rz;this.videoId=a;this.status=b;this.videoDuration=c;this.Kw=e;this.rz=d};
   aCa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.i=e};
   GU=function(a){this.i=a;this.offset=0};
   HU=function(a){if(a.offset>=a.i.totalLength)throw Error();return aD(a.i,a.offset++)};
   bCa=function(a,b){b=void 0===b?!1:b;var c=HU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=HU(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+HU(a),d*=128;return b?c:c-d};
   IU=function(a,b,c){var d=this;this.Xa=a;this.policy=b;this.D=c;this.u=[];this.i=null;this.ma=-1;this.S=0;this.Aa=NaN;this.Z=0;this.B=NaN;this.Ea=0;this.La=-1;this.Ja=this.J=this.K=this.ya=null;this.Ra=this.Ka=NaN;this.C=this.Y=this.Ua=null;this.Ya=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.C=new zU(this.policy,e,function(h,l,m){h=new FU(d.policy.u,2,{Kw:new aCa(f,h,e.info,l,m)});a.Ca.Hs(h)});
   this.C.Z.promise.then(function(h){d.C=null;1===h&&(h=new FU(d.policy.u,h),a.Ca.Hs(h))},function(h){h=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
   d.oa();d.Xa.Ba("dldbwerr",h);cCa(d);h=new FU(d.policy.u,4,{rz:!0});a.Ca.Hs(h)})}};
   dCa=function(a){return a.u.length?a.u[0]:null};
   JU=function(a){return a.u.length?a.u[a.u.length-1]:null};
   iCa=function(a,b,c){if(a.J){var d=a.J.Cb+a.J.u;if(0<c.info.Cb)if(c.info.Ma===a.J.Ma&&c.info.Cb<d){if(c.info.Cb+c.info.u<=d)return;c=Ila(c,d-c.info.Cb)[1]}else if(0<=c.info.Ma&&0<=a.J.Ma&&!DC(a.J,c.info))throw new g.dw("improper_continuation",zC(a.J),zC(c.info));if(a.policy.Wq){d=a.J;var e=c.info;d=d.Ma!==e.Ma&&e.Ma!==d.Ma+1||d.type!==e.type||$f(d.C,e.C)&&d.Ma===e.Ma?!1:EC(d,e)}else d=EC(a.J,c.info);d||eCa(a)}else if(0<c.info.Cb)throw new g.dw("continuation_of_null",zC(c.info));a.J=c.info;a.D=c.info.i;
   if(0===c.info.Cb){if(a.i)throw new g.dw("slice_not_fully_processed",zC(a.i.info),zC(c.info));KU(a)}else!c.info.i.Pg()&&a.K&&nla(c.info,a.K);if(a.i){d=Jla(a.i,c);if(!d)throw new g.dw("failed_to_merge",zC(a.i.info),zC(c.info));a.i=d}else a.i=c;a:{c=g.dD(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Rd)break a;6===a.i.info.type?fCa(a,b,a.i):LU(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.ma&&0===a.S){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=Gla(f,l),n=Gla(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 GU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=bCa(p,!0),t=bCa(p,!1);var u=q;var x=t}catch(z){x=u=-1}p=u;var y=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.ma=h;a.S=e-h}if(a.ma>d)break;
   a.ma?(d=gCa(a,a.ma),d.B&&!d.info.i.Pg()&&hCa(a,d),fCa(a,b,d),MU(a,d),a.ma=0):a.S&&(d=gCa(a,0>a.S?Infinity:a.S),a.S-=d.i.totalLength,MU(a,d))}}a.i&&a.i.info.Rd&&(MU(a,a.i),a.i=null)};
   LU=function(a,b){!b.info.i.Pg()&&0===b.info.Cb&&(g.dD(b.info.i.info)||b.info.i.info.ue())&&Pla(b);if(1===b.info.type)try{hCa(a,b),jCa(a,b)}catch(d){g.Ly(d);var c=FC(b.info);c.hms="1";a.Xa.handleError(!0,"fmt.unparseable",c||{})}b.info.i.bE(b);a.C&&VBa(a.C,b)};
   lU=function(a){a.u=[];KU(a);cCa(a)};
   cCa=function(a){var b;null===(b=a.C)||void 0===b?void 0:b.dispose();a.C=null};
   kCa=function(a){var b=a.u.reduce(function(c,d){return c+d.i.totalLength},0);
   a.i&&(b+=a.i.i.totalLength);return b};
   NU=function(a){return g.ym(a.u,function(b){return b.info})};
   gCa=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=Ila(c,b);a.i=c[1];return c[0]};
   hCa=function(a,b){var c=cD(b);if(!a.policy.Ro&&pD(b.info.i.info)&&"bt2020"===b.info.i.info.video.primaries){var d=new $B(c);bC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;oD(d)&&!pD(d)&&(d=cD(b),gC(new $B(d)),fC([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.dD(d.info)?d.B=Pka(c):d.info.ue()&&(d.B=Vka(c))));b.info.i.info.ue()&&
   b.info.isVideo()&&(c=cD(b),gC(new $B(c)),fC([408125543,374648427,174,224],30320,c)&&fC([408125543,374648427,174,224],21432,c));if(a.policy.xu&&b.info.i.info.ue()){c=cD(b);var e=new $B(c);if(bC(e,[408125543,374648427,174,29637])){d=eC(e,!0);e=e.start+e.i;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Ek()&&g.dD(b.info.i.info)){d=cD(b);c=g.QB(d,0,1701606260);f=g.QB(d,0,1836476516);if(c&&f){c.skip(2);var h=HB(c),l=JB(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(KB(c)),e.push(KB(c)),
   m.push(HB(c)),n.push(HB(c));else for(h=0;h<l;++h)d.push(IB(c)),e.push(IB(c)),m.push(HB(c)),n.push(HB(c));c=g.RB(f);c=new Mka(e[0]/c,d[0]/c)}else c=null;if(c){if(g.dD(b.info.i.info))for(d=cD(b),e=g.QB(d,0,1701082227);e;)e.markAsSkip(),e=g.QB(d,e.offset+e.size,1701082227);a.Ya=!0;b.info.i.J=c}}b.info.i.Pg()||b.info.i.i||b.info.i.indexRange||(g.dD(b.info.i.info)?(a=cD(b),(c=TB(a,0,1836019574))?(c=c.offset+c.size,d=new Uint8Array(c),d.set(new Uint8Array(a.buffer,a.byteOffset,c)),a=d):a=null):a=Xka(new $B(cD(b))),
   a&&(b.info.i.i=a))};
   fCa=function(a,b,c){if(c.info.i.Pg()){if(a.Ya&&lCa(c)&&(b=cD(c),b=g.QB(b,0,1953658222))){b.skip(1);var d=GB(b)<<16|HB(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=JB(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=JB(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.ya&&!!a.ya.D.J)if(b=c.info.isVideo())b=Ola(c),h=a.ya,OU?(l=1/b,b=PU(a,b)>=PU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&lCa(c)&&(b=a.ya,OU?(l=Ola(c),h=1/l,l=PU(a,l),b=PU(b)+h-l):b=b.getDuration()-
   a.getDuration(),b=1+b/c.info.duration,Oka(cD(c),b))}else{h=!1;a.K||(Pla(c),c.u&&(a.K=c.u,h=!0,nla(c.info,c.u),l=c.info.i.info,f=cD(c),g.dD(l)?YB(f,1701671783):l.ue()&&fC([408125543],307544935,f)));a:{if(f=l=eD(c,a.policy.Ka))f=c.info.i.info.ue()&&160===aD(c.i,0);if(f)a.Z+=l,a.B=a.policy.Mb?a.B+l:NaN;else{if(a.policy.Fq){var n=a.Xa.ep(Kla(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Mb&&isNaN(a.Ka)){g.My(new g.dw("Missing duration while processing previous chunk",zC(c.info)));eCa(a);break a}f=
   n-a.B;var p=f-a.Ea;d=c.info.Ma;var q=a.Ja?a.Ja.Ma:-1,t=a.Ra,u=a.Ka;m=a.policy.ye&&f>a.policy.ye;var x=a.policy.Nd&&p>a.policy.Nd;1E-4<Math.abs(p)&&(n={audio:""+ +a.Ek(),sq:d.toFixed(),sliceStart:n,lastSq:q.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},a.Xa.handleError(!1,"qoe.avsync",n),a.La=d);n=0;a.policy.Vp&&(m||x||(e=a.B),a.policy.Xp&&a.ya&&!a.Ek()&&g.dD(c.info.i.info)&&(x=a.ya,m=x.La,x=x.Ea,p=.02<Math.abs(x-f),(d===
   m||d>m&&d>a.La)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),Oka(cD(c),d),d=eD(c,a.policy.Ka),n=l-d,l=d)));a.Ea=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;Lla(c,e)?(isNaN(a.Aa)&&(a.Aa=e),a.Z+=l,a.B=e+l):(l=FC(c.info),l.smst="1",a.Xa.handleError(!0,"fmt.unparseable",l||{}))}}a.Ja=c.info;a.Ka=Nla(c);0<=c.C&&(a.Ra=c.C);if(h&&a.K){h=mCa(a,!0);GC(c.info,h);a.i&&GC(a.i.info,h);b=g.r(b.info.i);for(l=b.next();!l.done;l=b.next())GC(l.value,h);(c.info.Rd||a.i&&a.i.info.Rd)&&6!==c.info.type||(a.Y=h,b=
   a.Xa,b.i.isManifestless&&nCa(b,h,!!a.D.info.video),a.policy.wc||oCa(a))}}jCa(a,c);a.timestampOffset&&Mla(c,a.timestampOffset)};
   MU=function(a,b){if(b.info.Rd){a.Ua=b.info;if(a.K){var c=mCa(a,!1);a.Xa.pF(a.D,c);a.Y||a.policy.wc||oCa(a);a.Y=null}KU(a)}a.C&&VBa(a.C,b);if(c=JU(a))if(c=Jla(c,b,a.policy.Oi)){a.u.pop();a.u.push(c);return}a.u.push(b)};
   KU=function(a){a.i=null;a.ma=-1;a.S=0;a.K=null;a.Aa=NaN;a.Z=0;a.Y=null};
   eCa=function(a){a.B=NaN;a.Ea=0;a.La=-1;a.Ja=null;a.Ra=NaN;a.Ka=NaN};
   jCa=function(a,b){if(a.D.info.Bd){if(b.info.i.info.ue()){var c=new $B(cD(b));if(bC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=eC(c,!0);c=16!==d?null:kC(c,d)}else c=null;d="webm"}else b.info.S=WBa(cD(b)),c=XBa(b.info.S),d="cenc";c&&c.length&&(c=new EU(c,d),c.ue=b.info.i.info.ue(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.Mj&&b.u&&b.u.B&&(c.i=b.u.B),a.Xa.Is(c))}};
   oCa=function(a){var b=a.K,c=Kka(b);c&&(c.startSecs+=a.Aa,a.Xa.oF(a.D,c,b.i,b.Qv()))};
   mCa=function(a,b){var c,d=a.K;if(c=Kka(d))c.startSecs+=a.Aa;if(d.Qv()){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.r(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(d.data["Stitched-Video-Start-Frame-Index"]){m=g.r(d.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,
   -1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(d.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(d.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 YBa(e,f,h,l,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new AB(d.i,a.Aa,b?d.Li:a.Z,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)};
   lCa=function(a){return a.info.i.Pg()&&a.info.Ma===a.info.i.index.getLastSegmentNumber()};
   PU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.J&&b&&(b+=a.D.J.i);return b+a.getDuration()};
   pCa=function(a,b){0>b||(a.u.forEach(function(c){Mla(c,b)}),a.timestampOffset=b)};
   QU=function(a,b){this.info=a;this.callback=b;this.state=1;this.S=!1;this.C=0;this.D=!1;this.i=null};
   qCa=function(a){return g.zm(a.info.i,function(b){return 3===b.type})};
   RU=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
   SU=function(a,b){b&&a.state<b?RU(a,b):a.callback&&a.callback(a,a.state)};
   rCa=function(a){a.i&&a.i.C?(a=a.i.C,a=new AC(a.type,a.i,a.range,"getEmptyStubAfter"+a.J,a.Ma,a.startTime+a.duration,0,a.Cb+a.u,0,!1)):(a=a.info.i[0],a=new AC(a.type,a.i,a.range,"getEmptyStubBefore"+a.J,a.Ma,a.startTime,0,a.Cb,0,!1));return a};
   sCa=function(a,b){this.i=a;this.u=0;this.B=null;this.ke=[];this.C=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].u||(this.i[0].u=this.length):1===this.i.length||g.zm(this.i,function(c){return!!c.range})};
   tCa=function(a,b,c){a.B&&(XC(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,h=0,l=g.r(a.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(BC(m)&&!c&&a.u+b.totalLength-h<f+m.u){a.B=b.split(h).Eq;break}var n=3===m.type||4===m.type,p=a.u-f,q=a,t=h,u=b,x=m.i.Tt()&&!p||n&&d&&!e&&1===b.i.length,y=!!c,z=u.totalLength-t;m.range&&(z=Math.min(m.u-p,z));y=m.range?m.Cb+p+z===m.range.length:y;p=new AC(m.type,m.i,m.range,"reslice"+m.J,m.Ma,m.startTime,m.duration,m.Cb+p,z,y&&m.B,y);
   y=z;t=u.split(t).Eq.split(y).oz;q.ke.push(new bD(p,t,x));q=z;a.u+=q;h+=q;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
   uCa=function(a){if(!a.ke.length)return[];var b=a.ke;a.ke=[];a.C=g.pb(b).info;return b};
   vCa=function(a){return a.length-a.u+a.ke.reduce(function(b,c){return b+c.i.totalLength},0)};
   UU=function(a,b,c,d){var e;QU.call(this,b,d);var f=this;this.u=a;this.Ce=c;this.B=new g.M(function(){f.isComplete()||RU(f,5)},3E3);
   this.od=function(){f.isDisposed()||(TU(f.Ce,f.u)?(f.isComplete()||f.B.start(),f.Ce.Xf(f.u)&&SU(f,2),f.Ce.rf(f.u)&&(wCa(f.Ce,f.u)?RU(f,4):RU(f,5))):RU(f,5))};
   this.B.start();this.i=new sCa(this.info.i,null===(e=this.info.range)||void 0===e?void 0:e.length);xCa(this.Ce,this.u,this.od);g.ah(this.od)};
   VU=function(a,b,c){this.Xa=a;this.policy=b;this.i=c;this.B=[];this.u=this.Wb=null;this.Y=this.ma=0;this.J=-1;this.S=!1;this.Z=-1;this.C=new IU(a,b,c);this.Nb=c.info.Nb;this.K=c.Wv();this.isManifestless=c.Wv();this.D=this.K};
   WU=function(a,b){b&&OU&&pCa(a.C,b.SD());a.Wb=b};
   XU=function(a){return a.Wb&&a.Wb.Xy()};
   YU=function(a,b){a.B.push(b);a.u=g.pb(b.info.i)};
   ZU=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();yCa(a,b);a.ma=b.gK()}a.B.length&&(b=a.B[0],b.Ns()&&(!b.info.dj()||b instanceof UU)&&yCa(a,b))};
   yCa=function(a,b){if(b.Ns()){var c=b.ZB();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Y&&b instanceof UU&&a.Xa.Ba("omblss","s."+zC(d.info)),zCa(a,b,d)}};
   zCa=function(a,b,c){switch(c.info.type){case 1:case 2:LU(a.C,c);break;case 4:var d=c.info.i.BH(c);c=c.info;var e=a.u;e&&e.i===c.i&&e.type===c.type&&(c.range&&e.range?e.range.start===c.range.start&&e.range.end===c.range.end:e.range===c.range)&&e.Ma===c.Ma&&e.Cb===c.Cb&&e.u===c.u&&(a.u=g.pb(d).info);d=g.r(d);for(c=d.next();!c.done;c=d.next())zCa(a,b,c.value);break;case 3:iCa(a.C,b,c);break;case 6:iCa(a.C,b,c),a.u=c.info}};
   kU=function(a,b,c){c=void 0===c?!1:c;if(a.Wb){var d=a.Wb.lf(),e=FD(d,b),f=NaN,h=XU(a);h&&(f=FD(d,h.i.index.getStartTime(h.Ma)));if(e===f&&a.u&&a.u.u&&ACa($U(a),0))return b}a=BCa(a,b,c);return 0<=a?a:NaN};
   mU=function(a,b){a.i.Se();var c=BCa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.C)if(e=e.C,e.Ue&&3===e.Ue.type)e=e.Ue.startTime;else if(0<e.C){var f=e.i.index;f=g.Kb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.i.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.u=a.i.Pl(b).i[0];aV(a)&&a.Wb&&a.Wb.abort();a.Y=0;return a.u.startTime};
   CCa=function(a){a.K=!0;a.D=!0;a.J=-1;mU(a,Infinity)};
   bV=function(a){var b=0;g.Qb(a.B,function(c){var d=b;c=c.i&&c.i.length?vCa(c.i):ola(c.info);b=d+c},a);
   return b+=kCa(a.C)};
   cV=function(a,b){if(!a.Wb)return 0;var c=XU(a);if(c&&c.B)return c.D;a=a.Wb.lf(!0);return Vla(a,b)};
   DBa=function(a,b,c,d){jU(a);for(var e=a.C,f=!1,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ma>=b&&(e.u.pop(),e.B-=eD(l,e.policy.Ka),f=!0)}f&&(e.J=0<e.u.length?e.u[e.u.length-1].info:null);d>c?mU(a,d):a.u=a.i.Im(b-1,!1).i[0]};
   fV=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)dV(a,b);else{for(;c<a.B.length;)dV(a,a.B.pop());var d=eV(a);d&&d.i.Pg()&&vn(b.info.i,function(e){return mla(e,d)})?a.u=d:CC(b.info.i[0])?a.u=rCa(b):a.u=null}};
   aV=function(a){var b;!(b=!a.policy.Uq&&"f"===a.i.info.i)&&(b=a.policy.u)&&(b=a.C,b=!!b.C&&AU(b.C));if(b)return!0;b=XU(a);if(!b)return!1;var c=b.B&&b.Rd;return a.isManifestless&&0<a.Z?c||b.Ma>=a.Z:c};
   DCa=function(a){var b;return aV(a)||!(null===(b=JU(a.C))||void 0===b||!b.info.B)};
   $U=function(a){var b=[],c=XU(a);c&&b.push(c);b=g.Cb(b,NU(a.C));g.Qb(a.B,function(d){g.Qb(d.info.i,function(e){d.S&&(b=g.Ko(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Cb>=e.range.start+e.Cb&&f.range.start+f.Cb+f.u<=e.range.start+e.Cb+e.u:f.Ma===e.Ma&&f.Cb>=e.Cb&&(f.Cb+f.u<=e.Cb+e.u||e.Rd))}));
   (CC(e)||4===e.type)&&b.push(e)})});
   a.u&&!kla(a.u,g.pb(b),a.u.i.Pg())&&b.push(a.u);return b};
   ACa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!EC(a[b-1],a[b]))return!1;return!0};
   BCa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=$U(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:ACa(a,c?b:0)?a[b].startTime:NaN};
   gV=function(a){return!(!a.u||a.u.i===a.i)};
   hV=function(a){return gV(a)&&a.i.Se()&&a.u.i.info.Nb<a.i.info.Nb};
   ECa=function(a,b,c){return(a=eV(a))&&!a.B?a.D>b&&a.D<b+c:!1};
   eV=function(a){var b=JU(a.C);return b?b.info:XU(a)};
   jU=function(a){g.Qb(a.B,function(b){dV(this,b)},a);
   a.B=[];a.u=null};
   dV=function(a,b){var c=b.info.i[0].i.Pg();b.S&&!c&&(a=a.C,a.oa(),a.Y&&!a.policy.Pf&&(c=a.Xa,c.i.isManifestless&&dE(c.i,a.Y.Ma,!!a.D.info.video)),a.Y=null,a.K=null,a.J=a.Ua,a.B-=a.Z,KU(a));b.dispose()};
   FCa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.i.index.getFirstSegmentNumber()};
   GCa=function(a){var b=a.u;b&&-1===b.Ma&&(a=JU(a.C))&&CC(a.info)&&(a=a.info.Ma,b.J="updateLastSliceRequested",b.Ma=a)};
   HCa=function(a){return vn(a.B,function(b){return b.D})};
   iV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.C=c;this.status=0;this.i=new WC;this.B=0;this.isDisposed=this.D=!1;this.J=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.Js()};
   this.xhr.onload=function(){return e.onDone()};
   this.xhr.onerror=function(){return e.onError()};
   this.xhr.fetch(function(f){e.u&&e.i.append(e.u);e.u=f;e.B+=f.length;f=(0,g.Q)();10<f-e.J&&(e.C.iq(f,e.B),e.J=f)},function(){},d.body||null)};
   JCa=function(a,b){var c=this;this.i=a;this.B=b;this.loaded=this.status=0;this.error="";a=xC(this.i.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new WC;ICa(this).then(function(){c.B.Yn()},function(d){c.error=""+d||"unknown_err";
   c.B.Yn()})};
   ICa=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F;return g.B(c,function(C){if(1==C.i){d.status=200;e=d.i.get("docid");f=gg(d.i.get("fmtid")||"");h=d.i.get("lmt")||"0";l=+(d.i.get("csz")||0);if(!e||!f||!l)throw Error("Invalid local URL");d.i.get("ck")&&d.i.get("civ")&&(m=new TBa(d.i.get("ck"),d.i.get("civ")));n=d.range;p=Math.floor(n.start/l);q=Math.floor(n.end/l);t=p}if(5!=C.i)return t<=q?g.A(C,koa(e,f,h,t,m),5):C.fb(0);u=C.u;if(void 0===u)throw Error("invariant: data is undefined");
   x=t*l;y=(t+1)*l;z=Math.max(0,n.start-x);G=Math.min(n.end+1,y)-(z+x);F=new Uint8Array(u.buffer,z,G);d.u.append(F);d.loaded+=G;d.loaded<n.length&&d.B.iq((0,g.Q)(),d.loaded);t++;return C.fb(2)})})};
   jV=function(a,b){var c=b.Ng,d=void 0===b.wk?1:b.wk,e=void 0===b.mA?d:b.mA,f=void 0===b.dj?!1:b.dj,h=void 0===b.Wl?!1:b.Wl,l=void 0===b.qD?!1:b.qD,m=b.gh,n=b.Ma;b=b.Pe;this.K=a;this.requestNumber=++KCa;this.i=this.now();this.Aa=this.Ra=NaN;this.Ja=0;this.C=this.i;this.u=0;this.Ua=this.i;this.Ea=0;this.Ya=this.La=this.isActive=!1;this.B=0;this.S=NaN;this.Y=this.D=Infinity;this.ma=NaN;this.Ka=!1;this.J=NaN;this.Z=void 0;this.Ng=c;this.policy=this.Ng.ma;this.wk=d;this.mA=e;this.dj=f;this.Wl=h;l&&(this.Z=
   []);this.gh=m;this.Ma=n;this.Pe=b;this.snapshot=JE(this.Ng);LCa(this);MCa(this,this.i);this.S=(this.J-this.i)/1E3};
   kV=function(a){return{rn:""+a.requestNumber,rt:(a.now()-a.i).toFixed(),lb:a.u.toFixed(),pt:(1E3*a.S).toFixed(),pb:a.wk.toFixed(),stall:(1E3*a.B).toFixed(),hrt:(a.Ra-a.i).toFixed(),elt:(a.Aa-a.i).toFixed(),elb:a.Ja.toFixed()}};
   OCa=function(a,b,c,d){if(!a.La){a.La=!0;if(!a.Wl){lV(a,b,c);NCa(a,b,c);var e=a.un();if(2===e&&d)mV(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.i)/1E3,(d<=a.policy.i||!a.policy.i)&&!a.Ya&&nV(a)&&mV(a,d,c),nV(a)&&(d=a.Ng,c=Math.max(c,2048),d.i.Mg(1,a.B/c),KE(d));c=a.Ng;b=(b-a.i)/1E3||.05;d=a.S;e=a.dj;c.J.Mg(b,a.u/b);c.C=FE();e||c.u.Mg(1,b-d)}a.deactivate()}};
   NCa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.un();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&mV(a,.05,e)):mV(a,d,e),a.Ya=!0);else if(oV(a,c)){if(1===f&&(f=(b-a.i)/1E3,!PCa(a)&&!a.Wl)){var h=a.Ng;h.K.Mg(1,f);KE(h)}a.Aa=b;a.Ja=c;a.isActive=!0}a.Wl||ena(a.Ng,d,e);a.C=b;a.u=c};
   mV=function(a,b,c){if(!a.Wl){b=Math.max(b,.05);a=a.Ng;var d=b;a.B.Mg(void 0===b?d:b,c/d);a.C=FE()}};
   lV=function(a,b,c){c=Math.round(c/1024);a.Z&&a.Z.push(pV(b-a.Ua,c-a.Ea));a.Ua=b;a.Ea=c};
   QCa=function(a){return a.Z?a.Z.join(""):""};
   oV=function(a,b){return b?a.gh&&1!==a.un()?!0:2048<=b:!1};
   nV=function(a){return oV(a,a.u)};
   RCa=function(a){return(a.C-a.i)/1E3};
   LCa=function(a){a.ma=a.i+1E3*a.snapshot.delay;a.Ka=!1};
   qV=function(a,b){if(a.gh&&void 0!==a.Ma&&void 0!==a.Pe){var c=Math,d=c.min,e=a.D;var f=a.gh;var h=a.i;if(qBa(f,a.Ma))f=b;else{var l=0;f.fg&&(l=.2);f=h+1E3*(f.Fg+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.Y;f=a.gh;h=a.i;l=rBa(f,a.Ma,a.Pe);2!==l&&(b=l?b:h+1E3*f.Fg,f.fg&&(b+=1E3*f.Fg));a.Y=d.call(c,e,b);a.D<=a.i?LCa(a):(a.ma=a.D,a.Ka=!0)}};
   PCa=function(a){a.gh&&qV(a,a.now());return a.Ka};
   MCa=function(a,b){b=void 0===b?a.now():b;if(a.gh){qV(a,b);var c=a.ya?a.gh?1!==a.un():!1:a.D!==a.Y;if(c){if(c=a.Y,b<c){a.J=a.Y;return}}else c=a.D;c=Math.max(c,a.ma)}else c=a.ma;var d=a.wk-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=nV(a)?d+b:d+Math.max(b,c);a.J=d};
   pV=function(a,b){for(var c="";4095<a;)c+=pV(4095,0),a-=4095;for(;4095<b;)c+=pV(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))};
   rV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.D=c;this.Ea=d;this.status=0;this.response=void 0;this.Aa=!1;this.u=0;this.ya=NaN;this.ma=0;this.Z=this.J=this.Y=!1;this.errorMessage="";this.Ja=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.B=f.body.getReader(),e.isDisposed()?e.B.cancel().catch(function(){}):(e.S=f.headers,e.D.Ks(),SCa(e));
   else e.onDone()};
   this.Ka=function(f){var h=(0,g.Q)();if(!e.isDisposed())if(e.K&&(e.i.append(e.K),e.K=void 0),f.done)e.B=void 0,e.onDone();else{f=f.value;e.u+=f.length;TCa(e)?e.i.append(f):e.K=f;f=(0,g.Q)();if(!e.policy.i||10<f-e.ma)e.ma=f,e.D.iq(h,e.u);SCa(e)}};
   this.onError=function(f){e.oa();e.errorMessage=String(f);e.J=!0;e.onDone()};
   this.i=new WC;this.id=UCa++;this.C=window.AbortController||aB()?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
   SCa=function(a){a.B.read().then(a.Ka,a.onError).then(void 0,Yv)};
   TCa=function(a){if(a.policy.i)return!1;var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.u&&a.policy.fg&&$A(a)&&b};
   sV=function(a,b,c){var d=this;c=void 0===c?{}:c;this.B=b;this.u=this.status=0;this.isDisposed=this.i=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.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.Js(f)};
   a=Hs(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",Hs(function(f){d.od(f)}),!1)};
   vV=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.Gw?[]:h.Gw;var l=void 0===h.mx?!1:h.mx,m=void 0===h.hp?0:h.hp,n=void 0===h.poToken?"":h.poToken;h=void 0===h.Bi?void 0:h.Bi;QU.call(this,b,e);var p=this;this.policy=a;this.lastError=null;this.Y=this.B=0;this.Ea=!1;this.K=this.J=null;this.Aa=!1;this.timing=new jV(this,c);this.ma=d;this.mx=l;this.u=g.KC(this.info,this.policy,this.ma);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf",(1E3*m).toFixed().toString());this.mx&&
   this.u.set("smb","1");this.policy.Gi&&n&&this.u.set("pot",n);this.Gw=f||null;this.Bi=h;this.D=VCa(this);this.ya=1*this.policy.cd;this.Z=new g.M(this.LW,this.ya,this);this.info.u.J=(0,g.Q)();dla(tV(this));try{this.xhr=WCa(this),this.Z.start(),this.oa("Sent, itag="+this.u.get("itag")+(" seg="+this.info.i[0].Ma)+(" range="+this.u.get("range"))+(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.pb(this.info.i).D))+(" rtp="+(this.timing.J-Date.now()).toFixed(0)))}catch(q){g.My(q),this.lastError="net.ssl",
   g.ah(function(){uV(p)})}};
   VCa=function(a){if(!(JC(a.info)&&a.info.dj()&&a.policy.Qf&&a.Gw)||2<=a.info.u.u||0<eE()||!Gma())return!1;var b=a.u.get("aitags");if(!b)return!1;b=gg(b).split(",");for(var c=[],d=g.r(a.Gw),e=d.next();!e.done;e=d.next())e=e.value,g.wb(b,e)&&c.push(e);if(!c.length)return!1;a.u.set("altitags",fg(c.join(",")));return!0};
   tV=function(a){return qC(a.ma,wB(a.u.jg))};
   ZCa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.Ow())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(XCa(a)){var d=b.cg();d.totalLength<=a.policy.Ye&&(c=$C(d),c=EB(c),hA(c)?a.oa():c="")}if(c){var e=tV(a);(0,g.Q)();e.started=0;e.timedOut=0;e.i=0;a.info.lj(a.u,c);return 3}c=b.Ol();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.CA())return a.lastError="net.closed",5;a.Dn(!0);if(!d&&a.i&&(d=a.i.ke,d.length&&!Hla(d[0])))return a.lastError=
   "net.closed",5;d=qCa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=qCa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.Ea=!0,a.policy.wl&&(d=b);OCa(a.timing,(0,g.Q)(),c,d?Number(d):0);b=tV(a);(0,g.Q)();b.started=0;b.timedOut=0;b.i=0;b=a.info.u;b.u=0;b.C=0;!a.Bi||(0,g.Q)()<YCa+3E5||!a.u||xB(a.u.jg)||!(b=wB(a.u.jg))||0>b.indexOf("googlevideo.com")||(Dka(a.u.jg)&&(e=wB(yB(a.u.jg))),a.Bi.i={primary:b,secondary:e},Hma(b,e),YCa=(0,g.Q)());e=a.timing;a.oa("Succeeded, rtpd="+(1E3*e.S+e.i-Date.now()).toFixed(0));
   return 4};
   uV=function(a){var b;a.oa("Request failed, itag="+a.u.get("itag")+(" seg="+a.info.i[0].Ma)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.u))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.Q)();if(!c.Wl){lV(c,d,1024*c.Ea);var e=(d-c.i)/1E3;if(2!==c.un())if(nV(c)){c.B+=(d-c.C)/1E3;var f=c.Ng,h=c.u;h=Math.max(h,2048);f.i.Mg(1,c.B/h);KE(f)}else PCa(c)||c.Wl||(f=c.Ng,f.K.Mg(1,e),KE(f)),c.Aa=d;f=c.Ng;h=c.S;var l=c.dj;f.J.Mg(e,c.u/e);f.C=FE();l||f.u.Mg(1,e-h);ena(c.Ng,
   (d-c.C)/1E3,0)}}"net.nocontent"!==a.lastError&&((c="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)?(d=tV(a),d.timedOut+=1):(d=tV(a),d.i+=1),a.timing.u||(d=a.info.u,++d.u,c&&++d.C));RU(a,5)};
   $Ca=function(a,b){b&&(b=tV(a),b.u+=1);wV(a);a.lastError="net.timeout";uV(a)};
   wV=function(a){a.oa();a.xhr&&a.xhr.abort();a.timing.deactivate()};
   XCa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.xv();c=!c||c<=a.policy.Ye;return(!a.xhr.nt()||!b||-1!==b.indexOf("text/plain"))&&c};
   WCa=function(a){if(xB(a.u.jg))return new JCa(a.u,a.timing);var b=a.u.Xd();return a.policy.La&&(a.policy.Up&&!isNaN(a.info.Pe)&&a.info.Pe>a.policy.Yj||a.D?0:ZA())?aB()?new iV(b,a.policy.D,a.timing):new rV(b,a.policy.D,a.timing):new sV(b,a.timing)};
   aDa=function(a){if(!a.policy.D.fg||!isNaN(a.info.Pe)&&0<a.info.Pe)return!1;if(!a.xhr.Fn())return a.oa(),!0;if(!$A(a.xhr))return!1;if(isNaN(a.info.Pe)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.oa();else if(Number(b)>a.info.i[0].Ma)return!1}return!0};
   xV=function(a,b,c,d,e){this.Xa=a;this.policy=b;this.schedule=c;this.S=d;this.Y=e;this.ma=NaN;this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.Z=NaN};
   bDa=function(a,b,c,d,e){return b.Za&&b.ya&&3===Aka(b)?new xV(a,b,c,d,e):null};
   cDa=function(a,b){if(a.policy.Jq){var c=b.info.Nb,d=IE(a.schedule);b=b.index.Fg;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.ma)/c,b-a.policy.uc));a.oa()}};
   fDa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.dh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Lq&&(h=!0);a.oa();a.J=c}c=d>=a.policy.uc&&!a.B;if(!f&&!c&&dDa(a,b))return NaN;c&&(a.B=!0,a.oa());a:{d=h;c=Date.now()/1E3-(a.S.qg()||0)-a.K.u-a.policy.ma;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.oa();yV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.kc;d<c&&(a.oa(),c=d)}else a.B&&(d=c+a.policy.ma-a.ma+a.policy.Mq,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.kc))),
   c=d);c=Math.max(c,f);a.oa();f=c}a.i=f;if(isNaN(a.i))return a.oa(),a.clear(),NaN;if(!h&&dDa(a,b))return eDa(a,b),NaN;if(a.i<=a.u.startTime)return yV(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.i,!1))return!eDa(a,b)&&h&&(yV(a,NaN,"t",b),a.clear()),NaN;a.oa();h=a.i;yV(a,h,"s",b);a.clear();return h};
   eDa=function(a,b){return a.Y(a.i,!0)?!1:(yV(a,NaN,"ns",b),a.oa(),a.clear(),!0)};
   dDa=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.B?a.policy.kc:a.policy.Kq)};
   yV=function(a,b,c,d){var e=a.C.du();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.K.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.S.qg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.i.index;RC(b,a.u.Ma,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ma)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ma)).toFixed(0));a.Xa.Ba("ssr",g.JD(e))};
   gDa=function(){if(!window.performance)return{};var a=window.performance.memory;return a?{jsTotal:a.totalJSHeapSize,jsUsed:a.usedJSHeapSize,msUsed:a.usedMediaSourceMemorySize}:{}};
   g.zV=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.I.call(this);var p=this;this.Ca=a;this.schedule=b;this.policy=c;this.i=d;this.ma=m;this.Bi=n;this.timing=new BBa;this.J=new eU(this.schedule,this.policy);this.mediaSource=null;this.Z=new g.M(this.uh,0,this);this.La=new g.M(this.uh,1E3,this);this.vb=new g.M(this.uh,void 0,this);this.qb=new g.M(this.uh,1E4,this);this.S=this.currentTime=NaN;this.ya=this.Za=0;this.Aa=this.Ua=this.isSuspended=!1;this.Ja="";this.Ka=new CE(5);this.Ea={};this.kb=this.Pe=
   NaN;this.gh=null;this.timestampOffset=NaN;this.jb=!1;this.Ya=0;this.Y=!1;this.K=null;this.eb=NaN;a=m&&Array.from(m.Ne.keys());m&&(this.eb=Date.now());this.u=new qU(this,this.J,c,this.i,e,a);c=LBa(this.u,f,h&&h.id);this.audioTrack=new VU(this,this.policy,c.audio);this.videoTrack=new VU(this,this.policy,c.video);this.videoTrack.C.ya=this.audioTrack.C;this.Ra={updateend:this.JP,error:this.ET};g.J(this,this.Z);g.J(this,this.La);g.J(this,this.vb);g.J(this,this.qb);this.D=bDa(this,this.policy,this.schedule,
   this.Ka,function(q,t){return hDa(p,q,t)});
   this.B=new nU(this,this.i,this.policy,this.videoTrack,this.audioTrack,l);this.C=new iU(this,this.i,this.videoTrack,this.audioTrack,this.policy);this.oa()};
   jDa=function(a,b){var c=b.i,d=a.i.isLive;if(a.i.isLive){var e=Date.now();if(!isNaN(a.eb)&&e-a.eb>1E3*a.policy.uu){a.Ba("ombttl","1");return}}if(a.ma&&TU(a.ma,vC(c,d))){d=vC(c,a.i.isLive);if(a.i.isLive&&a.policy.Au)e=c.Pl(Infinity);else{if(!c.indexRange||!c.initRange)return;e=c.indexRange.length+c.initRange.length;var f=iDa(a.ma,d);if(!f){a.Ba("ombooo","1");return}e=c.Fp(f-e)}e&&(f=function(h){h.isFailed()?(a.Ba("ombf","1"),fV(b,h),JC(h.info)&&AV(a,b,c,!0),a.uh()):BV(a,h)&&a.uh()},c.C=!0,IC(e)&&(b.K=
   !1,YU(b,new UU(d,e,a.ma,f))))}else a.Ba("ombfmt","1")};
   kDa=function(a){var b=a.videoTrack.i.index;a.gh=new pBa({Hl:a.policy.Hl,fg:a.policy.D.fg,Fg:b.Fg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
   Wr:function(){return b.Wr()}})};
   DV=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.u;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.Aa!==b&&(d.Ea={},d.Aa=b,rU(d,d.B));b=!xU(d)&&-1<d.Z&&8E3>(0,g.Q)()-d.Z;var e=d.nextVideo&&3*uU(d,d.nextVideo.info)<hU(d.ya);if(!b||e)sU(d),tU(d),d.Y=d.Y||d.nextVideo!==d.i;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Aa=-1);CV(a,c,d.nextVideo);CV(a,a.audioTrack,a.u.u)};
   EV=function(a,b){a.Ua=b;a.Y||(a.oa(),a.isSuspended=!0)};
   mDa=function(a){a.policy.Zb=!1;try{lDa(a)}catch(b){g.Ly(b)}};
   nDa=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.u&&(oy(a.mediaSource.i,a.Ra,a),oy(a.mediaSource.u,a.Ra,a));WU(a.audioTrack,null);WU(a.videoTrack,null);a.mediaSource=null};
   GV=function(a,b){b=void 0===b?!1:b;a.oa();nDa(a);b?(a.oa(),a.Y=!0):a.policy.Tc?EV(a,a.jb):EV(a,!1);FV(a)};
   HV=function(a){a.mediaSource&&a.mediaSource.rf()&&(GV(a),a.policy.Lp&&a.handleError(!0,"fmt.unplayable",{unexpected:1}))};
   JV=function(a,b,c){var d=a.B;if(2===d.i||3===d.i||a.isSuspended&&(!fna(a.schedule)||a.Ua))return!1;if(!a.policy.ou&&a.policy.u&&5<=YF)return g.Jq(a.La),!1;if(a.i.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma||b.B.length>=a.policy.Tj&&!a.policy.Zg||!a.policy.ol&&0<b.B.length&&!a.policy.D.fg)return!1;if(b.K)return!a.i.isLive||!isNaN(a.Pe)}if(HCa(b))return a.oa(),!1;if(!(b.u||a.i.isManifestless&&a.policy.Zg&&b.K)){if(!b.i.Se())return!1;mU(b,a.currentTime)}d=b.B.length+c.B.length;(b.B.length&&b.B[0].fu()||
   c.B.length&&c.B[0].fu()||a.i.isLive&&(!a.policy.Zg||!b.B.length))&&--d;if(d+1>=a.policy.Zj)return!1;if(!b.u)return!0;d=b.u;if(!hla(d.i.u,a.policy))return!1;4===d.type&&d.i.Se()&&(b.u=g.pb(d.i.Vw(d)),d=b.u);if(!d.B&&!d.i.Hm(d))return!1;var e=a.i.bf||a.i.S;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0<b.i.index.Ut&&0<e&&d.Ma>=e)return b.Z=e,c.Z=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(hV(b)&&!a.policy.Ya)return!0;if(d.B||
   bV(b)&&bV(b)+bV(c)>a.policy.jb)return!1;e=!b.D&&!c.D;f=b===a.videoTrack&&a.Y;if(!(c=!!(c.u&&!c.u.B&&c.u.D<d.D)&&(!a.i.isManifestless||c.u&&c.u.D&&d.D)&&e&&!f||a.policy.Ua&&!b.D&&c.D)&&(c=CC(d))){c=d.D;a:if(d=a.B,d=d.u?d.u.oe:null,a.Y&&d)a=d.startSecs+d.durationSecs+(a.policy.Wi?15:0);else{d=IV(a,b,!0);!xU(a.u)&&0<a.policy.Aa&&(e=((0,g.Q)()-a.Za)/1E3,d=Math.min(d,a.policy.Aa+a.policy.qd*e));d=a.currentTime+d;if(a.policy.ul&&(e=oDa(a)+a.policy.ul,e<d)){a.Ba("mrl","ori."+d+";mod."+e,!0);a.policy.Qj&&
   (a.Za=(0,g.Q)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.Wb)&&b.isLocked()?!1:!0};
   qDa=function(a,b,c){if(JV(a,b,c)){if(b.K){if(a.i.isLive){var d=a.i.xe&&a.i.S?b.i.Im(a.i.xe,!1):b.i.Pl(Infinity);d.Pe=a.Pe}else d=b.i.Im(0,!1);a.D?0===d.Pe&&(d.D=a.D.Z):d.D=a.kb}else if(d=b.u,d.i.Se()){var e=d.D-a.currentTime,f=!d.range||0===d.u&&0===d.Cb?0:d.range.length-(d.Cb+d.u),h=d.i;if(gV(b)&&b.i.Se()){var l=Math.min(15,.5*IV(a,b,!0));var m=hV(b)||e<=l||a.u.S;a.oa("ready to adapt: "+m+", upgrade pending: "+hV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
   b.i:(h=d.startTime+pDa,d.u&&(h+=d.duration),mU(b,h),d=b.u,h=d.i));h.Pg()?(f=a.u,c=gU(a.J,h.info.Nb,c.i.info.Nb,e,0<f.C.length&&0===f.videoIndex&&a.Aa),e=gV(b),c=d.i.Yq(d,c),c.range&&1<c.i.length&&(e||c.u.u||c.i[0].i!==d.i?c=d.i.Yq(d,c.i[0].u):(e=c.i[c.i.length-1],h=e.u/c.range.length,!e.Rd&&.4>h&&(c=d.i.Yq(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=FC(d),c.pr=""+b.B.length,a.C.i&&(c.sk="1"),a.Ba("nosq",d.J+";"+g.JD(c))),d=h.St(d));if(a.Y)for(c=g.r(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Pg()?
   (c=gU(a.J,b.i.info.Nb,c.i.info.Nb,0),d=d.i.Yq(d,c)):d=d.i.St(d);if(a.K&&(c=a.B,e=d.i[0].Ma,e=0>e&&!isNaN(c.B)?c.B:e,h=CBa(a.B,d.i[0].C,e),c=a.K.Qr(h,e,d.i[0].i.info.id,b===a.audioTrack?1:2),0>e&&GBa(a.B,0,0,!0),c)){h="decurl_itag"+d.i[0].i.info.lc()+"_sg"+e+"_st"+h.toFixed(3)+".";if(a.policy.mq&&b.isRequestPending(e-1)){a.Ba("sdai","wt_daistate_on_sg"+(e-1));return}a.Ba("sdai",h);e=d;c&&(e.B=new g.uB(c))}a.policy.Si&&-1!==d.i[0].Ma&&d.i[0].Ma<a.i.xe&&(d=b.i.Im(a.i.xe,!1));YU(b,KV(a,d))}};
   KV=function(a,b){CC(b.i[b.i.length-1])&&rDa(a,NBa(a.u,b.i[0].i));var c=ola(b);c={Ng:a.schedule,wk:c,mA:sBa(a.J,c),dj:BC(b.i[0]),Wl:xB(b.u.i),qD:a.policy.Y};a.gh&&(c.Ma=b.i[0].Ma,c.Pe=b.Pe,c.gh=a.gh);var d={hp:Math.max(0,b.i[0].C-a.currentTime),Gw:a.policy.Qf&&JC(b)&&b.i[0].i.info.video?SBa(a.u):void 0,mx:a.Y,poToken:sDa(a.Ca),Bi:a.Bi};return new vV(a.policy,b,c,a.Ea,function(e,f){a:{var h=e.info.i[0].i,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.C||!(!a.mediaSource||
   a.isSuspended||3<cV(l,a.currentTime))){var m=a.policy.Db;!m||e.isComplete()||e.C<m||sC(e.info.u,a.Ea)||(m=qC(a.Ea,tC(e.info.u,!0)),m.i||m.timedOut||m.started||(m=pla(e.info,!0))&&KV(a,m));if(e.isComplete()||e.isDisposed()&&3>f)a.policy.eb&&(f=Object.assign(kV(e.timing),{rst:""+e.state,strm:""+e.xhr.nt(),d:QCa(e.timing)}),a.Ba("rqs",g.JD(f))),e.Ea&&a.Ba("sbwe3","1",!0);if(!a.isDisposed()&&2<=e.state){f=a.timing;var n=e.info.i[0].i;m=!f.u&&n.info.video;n=!f.i&&n.info.audio;3===e.state?m?f.tick("vrr"):
   n&&f.tick("arr"):4===e.state?m?(f.u=e.Xd(),Ru(),Uu(4)):n&&(f.i=e.Xd()):e.fu()&&m&&(Ru(),Uu(4));if(3===e.state)fV(l,e),JC(e.info)&&AV(a,l,h,!0),a.K&&(l=e.info.Qr())&&a.K.lj(e.info.i[0].Ma,h.info.id,l),a.uh();else if(e.isComplete()&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).B[0]||null)&&h instanceof vV&&h.C&&$Ca(h,!0),e.dispose();else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.oa();h=RBa(a.u,h);l=
   e.info.range.length-h.OD();h.C=!0;e.info.i[0].i.C=!1;f=h.Fp(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=$C(l.ke[0].i);$C(g.pb(l.ke).i);for(var p=0;p<l.ke.length;p++){l.ke[p].info=f[p];var q=f[p].range;l.ke[p].i=new WC([new Uint8Array(n.buffer,q.start-m.start,q.length)])}}e.D=!1;CV(a,a.videoTrack,h);l=a.videoTrack;l.u&&(l.u.i=h);l=a.Ca;l.videoData.Tq=fB("auto",h.info.video.quality,!1,"u");LV(l);(l=e.xhr.getResponseHeader("X-Segment-Lmt"))&&h.info.lastModified&&h.info.lastModified!==+l&&fV(a.videoTrack,
   e)}else e.D=!1;if(4===e.state){if(BV(a,e),a.B&&(h=a.B,l=e.info,f=a.K,0!==h.i&&f&&l.i[0].isVideo()))if(l.i[0].Ma>h.B&&(h.B=NaN,h.C=NaN),h.u&&h.u.Ma===l.i[0].Ma)if(m=h.u.oe.event,"start"===m||"continue"===m){if(1===h.i||5===h.i)h.policy.jl||!h.u.Qv?(h.B=l.i[0].Ma,h.C=l.i[0].C,h.Ba("sdai","joinad"+h.i+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.i=2,f.YD(h.u.oe)):(h.Ba("sdai","ignore."+m+";sq."+l.i[0].Ma),h.i=4)}else"stop"!==m||1!==h.i&&5!==h.i||h.Ba("sdai","joinstop;st."+h.i+";sg."+h.B+";"),h.i=5;else 1===h.i&&
   (h.i=5)}else if(a.policy.La&&e.Ns()&&!e.isComplete()&&!BV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Ov(e);a.uh();a.policy.zb&&e.isComplete()&&e.canRetry()&&sC(e.info.u,a.Ea)&&(h=qC(a.Ea,tC(e.info.u,!1)),h.B+a.policy.zb*ela(h,a.policy,!0)>(0,g.Q)()||(e=pla(e.info,!1))&&KV(a,e))}}}}},d)};
   rDa=function(a,b){b&&(a.oa(),a.Ca.cA(b));a.policy.Sj&&a.u.Ua&&(b=OBa(a.u,"a"),MV(a.Ca,b.reason,b.audio.info))};
   BV=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.Ns(),c.K=!1);b.HD()&&a.Ka.Mg(1,b.HD());var d=b.PH(),e=b.kK(),f=a.i,h;for(h in f.i){var l=f.i[h].index;l.gk&&(d&&(l.Ut=Math.max(l.Ut,d)),e&&(l.i=Math.max(l.i||0,e)))}}if(b.info.dj()&&!IC(b.info))for(var m=g.r(b.ZB()),n=m.next();!n.done;n=m.next())LU(c.C,n.value);ZU(c);return!!c.cg()}catch(p){return p instanceof Error&&(g.My(p),b=b.du(),b.origin="hrhs",b.msg||
   (b.msg=""+p.message),a.handleError(!0,"fmt.unplayable",b)),!1}};
   lDa=function(a){var b=a.mediaSource.i,c=a.mediaSource.u,d=tDa(a);if(d){if(a.policy.Tq){if(!b.Bp()){var e=a.audioTrack.cg();e&&NV(a,b,e)}c.Bp()||(b=a.videoTrack.cg())&&NV(a,c,b)}a.ya||(a.ya=(0,g.Q)(),a.oa(),a.policy.Y&&a.Ba("apdps","r."+d))}else{if(a.ya){d=(0,g.Q)()-a.ya;e=cV(a.audioTrack,a.currentTime);var f=cV(a.videoTrack,a.currentTime);a.oa();a.policy.Y&&a.Ba("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ya=0}if(a.D){d=a.D;e=a.audioTrack;f=GD(a.mediaSource.u.lf());
   if(d.C)d=fDa(d,f);else{if(f=e.cg()){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.Pe&&(d.C=e,d.K=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime,d.oa())}d=NaN}d&&a.Ca.seekTo(d,{Mp:!0,Td:"pollSubsegmentReadahead",ep:!0})}d=!1;uDa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=Date.now(),e.tick("vda"),WA("vda",void 0,"video_to_ad"),e.B&&(Ru(),Uu(4))));if(a.mediaSource&&!a.mediaSource.rf()&&(uDa(a,a.audioTrack,b)&&(d=a.timing,
   d.B||(d.B=Date.now(),d.tick("ada"),WA("ada",void 0,"video_to_ad"),d.C&&(Ru(),Uu(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Zb&&aV(a.videoTrack)&&aV(a.audioTrack)&&QD(a.mediaSource)&&!a.mediaSource.bh()&&(e=XU(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.oa(),e=a.mediaSource,QD(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Ke.webkitSourceEndOfStream(e.Ke.EOS_NO_ERROR)),e=a.schedule,Bma(JE(e)),e.D=FE()));e=a.policy.pu;f=a.policy.yu;d||!(0<e||f)||!QD(a.mediaSource)||aV(a.videoTrack)||aV(a.audioTrack)||
   (b.gB(a.currentTime,f,e),c.gB(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):SD());c&&g.Jq(a.Z)}}};
   tDa=function(a){if(HCa(a.videoTrack))return a.oa(),"ssf";var b=a.B;if(1===b.i||2===b.i||3===b.i)return"cpm";if(a.policy.hf||DCa(a.videoTrack)||DCa(a.audioTrack))return"";if(a.C.i){b=a.J;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=0,f=NU(c.C).concat(NU(d.C));f=g.r(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.u;c=c.i.info.Nb+d.i.info.Nb;e/=c;b=e<b.policy.ek?!1:10<e?!0:10>c*(10-e)/hU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&dCa(b.C).info.K<
   b.ma)return"seek"}if(!a.Aa||!a.policy.vb||10>a.currentTime||360<a.videoTrack.i.info.video.i)return"";b=ECa(a.videoTrack,a.currentTime,a.policy.vb)||ECa(a.audioTrack,a.currentTime,a.policy.vb);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||JV(a,a.videoTrack,a.audioTrack)||JV(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
   uDa=function(a,b,c){if(c.bh())return!0;if(!c.ly())return!1;var d=b.cg(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.i&&b===e.Y)e=eV(e.D),f=d.info.Ma>(e?e.Ma:-1);e=!!f}if(e)return!1;e=d.info;f=XU(b);!f||f.Rd||DC(f,e)||c.abort();!c.Bv()||ND()?c.SG(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.Bv()&&a.Ba("ctu","ct."+ND()+";prev_c."+c.Bv()+";curr_c."+e.i.info.containerType);f=e.i.J;a.policy.Nj&&f&&(e=0+f.duration,f=-f.i,0===c.Uy()&&e===c.ED()||c.dG(0,e),f!==c.Uc()&&
   (c.TA(f),OU&&pCa(a.audioTrack.C,c.SD())));if(a.i.B&&0===d.info.Cb&&(g.dD(d.info.i.info)||a.policy.No)){if(null==c.Bp()){e=XU(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.S,f=d.info.S,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Ob(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Bp(),f=d.info.i.i,e=e!==f&&!g.Ob(e,f);e&&a.Ba("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.Ma);a.policy.Hb&&!e&&(g.dD(d.info.i.info)?(YB(cD(d),1836019574),YB(cD(d),1718909296)):(e=new $B(cD(d)),
   Zka(e),dC(e,524531317,!0),d.i=d.i.split(e.start+e.i).Eq),d.B=!1)}a.policy.Ug&&d.B&&(d.B=!1);e=a.D&&!!a.D.C&&b.i.info.audio;f=a.i.isManifestless||d.B;if(!(a.i.B&&0!==d.info.Cb||f&&!e)&&NV(a,c,d))return!0;if(e)return!1;e=a.currentTime+IV(a,b,!1);(e=d.info.C>e)||(a.policy.kb&&(!d.info.Cb||d.info.Rd||10>d.info.C)&&a.Ba("sba",c.Ib({as:zC(d.info)})),e=d.B?d.info.i.i:null,f=$C(d.i),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=vDa(a,c,f,d.info,e),"s"===e?(a.Ya=0,e=!0):("i"===e||"x"===e?wDa(a,
   "checked",e,d.info):("q"===e&&(d.info.isVideo()?(f=a.policy,f.K=Math.floor(.8*f.K),f.Ea=Math.floor(.8*f.Ea),f.J=Math.floor(.8*f.J)):(f=a.policy,f.Z=Math.floor(.8*f.Z),f.qb=Math.floor(.8*f.qb),f.J=Math.floor(.8*f.J)),vU(a.u,d.info.i)),OV(a.Ca,{reattachOnAppend:e})),e=!1),e=!e);if(e)return!1;b.Qh(d);a.oa("Appended "+zC(d.info)+", buffered: "+CD(c.lf()));return!0};
   wDa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.D=e,d.i.info.video&&!wU(a.u)&&vU(a.u,d.i)):"i"===c&&(15>a.Ya?(a.Ya++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=FC(d);d.mrs=RD(a.mediaSource);d.origin=b;d.reason=c;a.handleError(f,e,d)};
   nCa=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=sD(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!RC(l,b.Ma))l.PB(b),e=!0;else if(d.Za){e=b;var m=l.ej(e.Ma);m&&m.startTime!==e.startTime?(l.segments=[],l.PB(e),e=!0):e=!1;e&&(f=b.Ma)}}0<=f&&d.ea("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);ABa(a.C,b,c,e);a.B.pF(b,c)};
   NV=function(a,b,c){c.info.i.Se();var d=c.info.i.i;if(!d||!b.ly()||b.Bp()===d)return!1;var e=d,f=b.Wy();if(a.policy.Ug&&f&&b.isView()&&g.dD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Tka(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ba("fenc","1")}f=null;(h=c.info.i.Fp(0))&&(f=h.i[0]);a.policy.kb&&a.Ba("sbi",b.Ib({as:zC(c.info)}));a.policy.Ei&&b.abort();d=vDa(a,b,e,f,d);if("s"!==d)return wDa(a,"sepInit",d,c.info),!0;a.oa();return b.bh()};
   vDa=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:CD(b.lf()).replace(/,/g,"_"),message:g.Mc(g.Va(f.message),3),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},gDa()),a.handleError(!1,"player.exception",b),"q";g.Ly(f)}return"u"}return a.mediaSource.rf()?"m":"s"};
   IV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.Z:a.policy.K;!a.policy.Ya&&xU(a.u)&&(d=Math.max(d,b.i.info.audio?a.policy.qb:a.policy.Ea));c&&(d+=a.policy.jb);var e=xU(a.u)?b.u?b.u.i.info.Nb:b.i.info.Nb:b.Nb;d/=e;0<a.policy.dk&&a.mediaSource&&QD(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.u:a.mediaSource.i)&&!b.bh()&&(b=b.lf(),e=DD(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.dk,a.policy.tu))));0<a.policy.J&&(d=Math.min(d,a.policy.J));
   a.policy.bk&&c&&!xU(a.u)&&(c=a.u,c=uU(c,g.pb(c.C))+uU(c,c.J.i[0]),c=a.policy.bk*(c/fU(a.J)),c<d&&15>c&&a.Ba("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
   oDa=function(a){var b=g.Ko(a.Ca.Ll(),function(d){return"ad"===d.namespace});
   b=g.r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
   xDa=function(a,b){AE(b,"cms",function(c){a.policy.Y&&a.Ba("pathprobe",c)},function(c){a.Ca.handleError(c)})};
   yDa=function(a,b){a.K=b;a.B&&(a.B.S=b);a.K.hG(a.videoTrack.i.info.ue())};
   zDa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=!isNaN(a.timestampOffset)&&a.policy.Jh?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.C.i&&!a.mediaSource.rf()){var c=a.currentTime<=b&&b<a.currentTime+10,d=ED(a.mediaSource.u.lf(),a.currentTime+pDa);c&&d&&(a.C.i=!1)}a.C.i||(a.currentTime=b);g.Jq(a.La)}};
   ADa=function(a,b){var c=$U(a.videoTrack).find(function(d){return d.startTime>=b&&hDa(a,d.startTime,!1)});
   return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
   hDa=function(a,b,c){if(!(a.videoTrack.i.Se()&&a.audioTrack.i.Se()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.J||-1===a.audioTrack.J))return!0;var d=kU(a.videoTrack,b,c);if(isNaN(d))return!1;a=kU(a.audioTrack,a.policy.ya?b:d,c);return isNaN(a)?!1:!0};
   CV=function(a,b,c){b.i!==c&&(a.oa(),b.i=c)};
   AV=function(a,b,c,d){if(!c.Se()&&!c.C&&hla(c.u,a.policy)&&"f"!==c.info.i){if(d){d=a.J;var e=c.info,f=tBa(d,e.video?d.policy.Mo:d.policy.Mi,e.Nb);d=d.policy.Kh&&e.video?Math.max(f,d.policy.Kh):f}else d=0;d=c.Fp(d);a=KV(a,d);IC(d)&&YU(b,a);c.C=!0}};
   FV=function(a){try{var b=a.audioTrack;jU(b);lU(b.C);var c=a.videoTrack;jU(c);lU(c.C)}catch(d){g.Ly(d)}a.policy.u=""};
   BDa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.oa(),a.B.J=a.timestampOffset,a.Ca.vF(a.timestampOffset),a.i.isManifestless&&(b=a.i,a=a.timestampOffset,b.Ka?b.timestampOffset=a:b.u=a))};
   CDa=function(a){a=a?a.B.length?a.B[0]:null:null;return!!a&&!a.isComplete()};
   g.PV=function(a){this.Fd=a};
   QV=function(){g.R.apply(this,arguments)};
   RV=function(a,b,c,d){QV.call(this);var e=this;this.B=-1;this.i={};this.C=new g.M(this.D,0,this);g.J(this,this.C);this.u=new g.M(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
   g.J(this,this.u);d.subscribe("fairplay_next_need_key_info",this.J,this)};
   DDa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
   EDa=function(a){var b=a.interval,c=a.Ww;this.url=a.url;this.interval=b;this.Ww=c};
   FDa=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
   HDa=function(a){var b=DB(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=PB(b.slice(d+2));if(null==b)return null;a=new FDa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Xqa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new EDa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
   60,Ww:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.u=GDa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
   GDa=function(a){if(!a)return{};a=a.split(";");var b={};g.Qb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
   return b};
   SV=function(a,b,c){c=void 0===c?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.u=c;this.onError=this.onSuccess=null;this.i=new g.me(5E3,2E4,.2)};
   IDa=function(a,b,c){a.onSuccess=b;a.onError=c};
   KDa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(a.oa(),0!==e.status&&e.response)if(TA("drm_net_r",void 0,a.u),e=new Uint8Array(e.response),e=HDa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else JDa(a,e)},
   onError:function(e){JDa(a,e)}};
   c&&(b=zi(b,"access_token",c));g.Ct(b,d);a.oa()};
   JDa=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)};
   MDa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.oa();TA("drm_net_r",void 0,a.u);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Rc(f.license)}catch(x){g.Ly(x)}if(0!==h||l){l=new FDa(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 t=LDa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&(t+=
   "HDR");h[t]||(m.push(t),h[t]=!0);var u=null;try{u=Rc(q.keyId)}catch(x){g.Ly(x)}u&&(n[g.Mc(u,4)]=t)}}l.i=m;l.u=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
   onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
   onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
   d&&(e.WI="Bearer "+d);g.Av(c,"player/get_drm_license",b,e)};
   UV=function(a,b,c,d){g.R.call(this);this.videoData=a;this.X=b;this.Ea=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.Z=!1;this.B=null;this.ya=[];this.D=[];this.Y=!1;this.i={};this.ma=NaN;this.status="";this.J=NaN;this.u=a.J;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.X.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.La&&(a.vvt=this.videoData.La,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
   this.X.Z&&(a.authuser=this.X.Z);this.X.pageId&&(a.pageid=this.X.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Ub))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.S=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.jE(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.S=!1);this.baseUrl=g.qE(this.u)?DDa(c.initData).replace("skd://",
   "https://"):this.u.C;this.fairplayKeyId=xi(this.baseUrl,"ek")||"";if(b=xi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Aa=this.videoData.N("html5_use_drm_retry");this.ya=c.u;this.oa();TV(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
   QDa=function(a,b){TV(a,"createkeysession");a.status="gr";TA("drm_gk_s",void 0,a.videoData.vb);a.url=NDa(a);try{a.B=b.createSession(a.Ea,function(c){TV(a,c)})}catch(c){b="t.g";
   c instanceof DOMException&&(b+=";c."+c.code);a.ea("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(ODa(a.B,function(c,d){PDa(a,c,d)},function(c,d,e){if(!a.isDisposed()){a.oa();
   d=void 0;var f=!0;g.qE(a.u)&&g.eF(a.X)&&a.X.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=!a.X.N("html5_safari_fairplay_ignore_hdcp"));a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(a.oa(),TV(a,"onkyadd"),a.K||(a.ea("sessionready"),a.K=!0))},function(c){a.Wn(c)}),g.J(a,a.B))};
   NDa=function(a){var b=a.baseUrl;Kja(b)||a.error("drm.net",!0,"t.x");if(!xi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.X.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=zi(b,d,a.C[d]);return b};
   PDa=function(a,b,c){if(!a.isDisposed())if(b){a.oa();TV(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":RDa(a,b);return;default:a.ea("ctmp","message_type","t."+c+";l."+b.byteLength)}a.Z||(TA("drm_gk_f",void 0,a.videoData.vb),a.Z=!0,a.ea("newsession",a));if(nE(a.u)&&(b=SDa(b),!b))return;g.qE(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=CB(g.Mc(b)));b=new SV(b,++a.requestNumber,a.videoData.vb);IDa(b,
   function(d,e){TDa(a,d,e)},function(d,e,f){if(!a.isDisposed()){var h=!1,l;
   (l=3<=d.i.u)||(l=a.Aa&&36E4<(0,g.Q)()-a.ma);l&&(h=!0,e="drm.net.retryexhausted");a.oa();TV(a,"onlcsrqerr."+e+";"+f);a.error(e,h,f);a.shouldRetry(h,d)&&UDa(a,d)}});
   g.J(a,b);VDa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
   RDa=function(a,b){a.oa();TV(a,"sdpvrq");a.J=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.X.deviceParams);c=g.ti("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:DB(b)}),responseType:"arraybuffer"};
   g.Ht(c,b,3,500).then(Hs(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=DB(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ea("ctmp","drminfo","provisioning"),f=(Date.now()-a.J)/1E3,a.J=NaN,a.ea("ctmp","provs",""+f.toFixed(3)),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",!0,d))}}),Hs(function(d){a.isDisposed()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
   VV=function(a){var b;if(b=a.S&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
   VDa=function(a,b){var c,d;a.status="km";TA("drm_net_s",void 0,a.videoData.vb);if(a.videoData.useInnertubeDrmService()){var e=new g.ey(a.X.Og),f={context:g.yv(e.config_||g.zv())};f.drmSystem=WDa[a.u.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.Mc(b.message);f.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=a.cryptoPeriodIndex);var h=!(null===(d=null===(c=a.videoData.u)||void 0===
   c?void 0:c.video)||void 0===d||!d.isHdr());f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(!f.context||!f.context.client){a.oa();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.X.deviceParams)f.context.client.deviceMake=h.cbrand,f.context.client.deviceModel=h.cmodel,f.context.client.browserName=h.cbr,f.context.client.browserVersion=h.cbrver,f.context.client.osName=h.cos,f.context.client.osVersion=h.cosver;f.context.user=f.context.user||{};f.context.request=f.context.request||
   {};a.videoData.La&&(f.context.user.credentialTransferTokens=[{token:a.videoData.La,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.zb&&(f.context.user.kidsParent={oauthToken:a.videoData.zb});if(g.qE(a.u)){h=a.fairplayKeyId;for(var l=[],m=0;m<h.length;m+=2)l.push(parseInt(h.substring(m,m+2),16));f.fairplayKeyId=g.Mc(l)}MDa(b,f,e,a.videoData.nf())}else KDa(b,a.url,a.videoData.oauthToken);a.status="rs"};
   TDa=function(a,b,c){if(!a.isDisposed()){if(a.requestNumber!==c&&"widevine"===a.u.flavor&&((a.X.N("html5_drm_ignore_out_of_order_responses")||a.X.N("html5_drm_ignore_out_of_order_responses_cfl"))&&TV(a,"drmOOO."+a.requestNumber+"."+c,!0),a.X.N("html5_drm_ignore_out_of_order_responses")))return;TV(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(TA("drm_kr_s",void 0,a.videoData.vb),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")&&
   (c=a.u.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.ea("newlicense",b.heartbeatParams),b.i&&(a.D=b.i,a.X.N("html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.yD&&a.ea("newlicense",new EDa({})),a.videoData.yD=!0),a.Y=vn(a.D,function(d){return d.includes("HDR")})),b.u&&(a.i=Yb(b.u,function(d){return{type:d,
   status:"unknown"}})),oE(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Rc(DB(b.message)):pE(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=CB(g.Mc(b.message))),a.B&&(a.oa(),TV(a,"updtks"),a.status="ku",a.B.update(b.message).then(function(){TA("drm_kr_f",void 0,a.videoData.vb);
   VV(a)||(TV(a,"ksApiUnsup"),a.ea("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Mc(g.Va(d.message),3);
   a.error("drm.keyerror",!0,d)})),a.K&&(a.ma=(0,g.Q)()),g.qE(a.u)&&a.ea("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
   UDa=function(a,b){var c=b.i.getValue();c=new g.M(function(){VDa(a,b)},c);
   g.J(a,c);c.start();g.ne(b.i);a.oa();TV(a,"rtyrq")};
   XDa=function(a,b){for(var c=[],d=g.r(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.i[e].type+"_"+a.i[e].status);return c.join(b)};
   YDa=function(a){var b=a.status+".";return VV(a)?b+XDa(a,"."):b+a.D.join(".")};
   ZDa=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
   WV=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
   TV=function(a,b,c){c=void 0===c?!1:c;a.oa();(c||a.videoData.Y)&&a.ea("ctmp","drmlog",b)};
   $Da=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};
   SDa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=$k(new DOMParser,g.Qf(g.lf("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(PQ(Pc(a.childNodes[0].nodeValue)).buffer):null:null};
   aEa=function(a,b,c,d){if(a=CB(g.Mc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=wba(c,d),g.Ht(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=HDa(e))&&e.message&&b.update(e.message)})};
   XV=function(a,b,c,d,e){g.I.call(this);this.element=a;this.S=b;this.initData=c;this.i=d;this.u=e;this.sessionId="";this.K=this.J=this.B=this.D=null;this.C=new g.uD(this);g.J(this,this.C);bEa(this)};
   bEa=function(a){a.i?(a.C.T(a.i,"message",a.KP),a.C.T(a.i,"keystatuseschange",a.Wn),a.i.closed&&a.i.closed.then(Hs(function(){a.isDisposed()||Tt("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(ly(a.C,a.u,["mskeymessage",
   "webkitkeymessage"],a.DM),ly(a.C,a.u,["mskeyerror","webkitkeyerror"],a.CM),ly(a.C,a.u,["mskeyadded","webkitkeyadded"],a.BM))};
   ODa=function(a,b,c,d,e){a.D=b;a.B=c;a.J=d;a.K=e};
   cEa=function(a,b,c){g.Gs(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
   YV=function(a,b){g.I.call(this);this.element=a;this.i=b;this.J={};this.C=null;this.D=new g.uD(this);this.B=this.u=null;g.J(this,this.D)};
   ZV=function(a){if(a.i.keySystemAccess)return a.i.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
   mE(a.i)?a.B=new (lE())(a.i.keySystem):oE(a.i)?(a.B=new (lE())(a.i.keySystem),a.element.webkitSetMediaKeys(a.B)):dEa(a);return null};
   dEa=function(a){ly(a.D,a.element,["keymessage","webkitkeymessage"],a.NP);ly(a.D,a.element,["keyerror","webkitkeyerror"],a.MP);ly(a.D,a.element,["keyadded","webkitkeyadded"],a.LP)};
   fEa=function(a,b){b=eEa(b,a.i.u);a=a.B.createSession("video/mp4",b);return new XV(null,null,null,null,a)};
   gEa=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 XV(null,null,null,null,a)};
   $V=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c};
   eEa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
   c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
   aW=function(a,b){g.I.call(this);this.i=g.Gg("video");this.u=null;this.D=[];this.C=new g.uD(this);this.B=new kE("fairplay","com.youtube.fairplay","",b);this.B.u=a;g.J(this,this.C);this.init()};
   bW=function(a,b,c,d){QV.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.i=[];this.u=new g.M(function(){e.ea("log_qoe","wvagt.timer;reqlen."+(e.i?e.i.length:-1));if(e.i){if(0<e.i.length){var f=e.i.shift();hEa(e,f.info)}0<e.i.length&&(f=e.i[0].time-(0,g.Q)(),e.u.start(Math.max(0,f)))}},0);
   g.J(this,this.u);d.subscribe("widevine_set_need_key_info",this.J,this)};
   hEa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.r(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ea("log_qoe","wvagt.reqnews;canskip."+c);c||a.ea("rotated_need_key_info_ready",b)};
   cW=function(){this.keys=[];this.values=[]};
   dW=function(a){a.keys=[];a.values=[]};
   eW=function(a,b){return g.ub(a.keys,function(c){return g.Ob(b,c)})};
   fW=function(a,b,c){g.R.call(this);this.element=a;this.videoData=b;this.X=c;this.i=this.videoData.J;this.drmSessionId=this.videoData.drmSessionId||g.Mia();this.u=new Map;this.J=new cW;this.K=new cW;this.B=[];this.Ka=2;this.ma=new g.uD(this);this.Ja=this.Aa=!1;this.heartbeatParams=null;this.ya=this.Z=!1;this.D=null;this.Ea=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||lE()||sE(c.experiments);c=this.videoData.Og;this.S="fairplay"===this.i.flavor||c?nG:iEa;this.C=new YV(this.element,this.i);g.J(this,
   this.C);mE(this.i)&&(this.Y=new YV(this.element,this.i),g.J(this,this.Y));g.J(this,this.ma);c=this.element;this.i.keySystemAccess?this.ma.T(c,"encrypted",this.OP):ly(this.ma,c,mE(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.LU);jEa(this);a:switch(c=this.i,a=this.X.experiments,b=this.u,c.flavor){case "fairplay":19.2999<St()?(a=c.K,c=c.J,c>=a&&(c=.75*a),b=.5*(a-c),c=new RV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new bW(a.ob("disable_license_delay"),!a.ob("h5_widevine_keyrotationagent_optimization_killswitch"),
   b,this);break a;default:c=null}if(this.D=c)g.J(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.TI,this),this.D.subscribe("log_qoe",this.Jg,this);this.oa("Created, key system "+this.i.keySystem+", final EME "+sE(this.X.experiments));this.Jg("cks"+this.i.mf());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.La=new aW(this.videoData.Fc,this.X.experiments),g.J(this,this.La))};
   jEa=function(a){var b=ZV(a.C);b?b.then(Hs(function(){kEa(a)}),Hs(function(c){if(!a.isDisposed()){a.oa();
   g.Gs(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.oa(),a.Jg("mdkrdy"),a.Z=!0);
   a.Y&&(b=ZV(a.Y))};
   mEa=function(a,b,c){a.Ja=!0;c=new EU(b,c);a.X.N("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));lEa(a,c)};
   lEa=function(a,b){if(!a.isDisposed()){a.Jg("onInitData");if(a.X.N("html5_eme_loader_sync")&&a.videoData.B&&a.videoData.B.i){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.oa();a.Jg("initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Aa&&!a.videoData.isLivePlayback)gW(a);else{if(!(a.X.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.ue)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.i;ZBa(b);b.ue||(d&&b.i!==d?a.ea("ctmp",
   "cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.ea("widevine_set_need_key_info",b)}}else a.TI(b)}};
   kEa=function(a){if(!a.isDisposed())if(a.X.N("html5_drm_set_server_cert")&&!g.lF(a.X)){var b=a.C.setServerCertificate();b?b.then(Hs(function(c){a.videoData.Y&&a.ea("ctmp","ssc",c)}),Hs(function(c){a.ea("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Hs(function(){hW(a)})):hW(a)}else hW(a)};
   hW=function(a){a.isDisposed()||(a.Z=!0,a.oa(),a.Jg("onmdkrdy"),gW(a))};
   nEa=function(a){return"widevine"===a.i.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
   gW=function(a){if(a.Ja&&a.Z&&!a.ya){for(;a.B.length;){var b=a.B[0],c=nEa(a)?$Ba(b):g.Mc(b.initData);if(a.u.get(c))if("fairplay"===a.i.flavor)a.u.delete(c);else{a.B.shift();continue}ZBa(b);break}a.B.length&&a.createSession(a.B[0])}};
   oEa=function(a){var b;if(b=g.Wt()){var c;b=!(null===(c=a.C.u)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.D.TextDecoder?(new TextDecoder).decode(b):g.Xa(b),a.ea("ctmp","drm",b))};
   jW=function(a){g.I.call(this);var b=this;this.Ca=a;this.i=this.Ca.V();this.videoData=this.Ca.getVideoData();this.Gz=0;this.K=this.B=!1;this.J=this.D=0;this.C=g.rE(this.i.experiments,"html5_delayed_retry_count");this.u=new g.M(function(){iW(b.Ca)},g.rE(this.i.experiments,"html5_delayed_retry_delay_ms"));
   g.J(this,this.u)};
   lW=function(a,b,c){var d=a.videoData.u;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Ca.Zf.C&&d&&"22"===d.lc())return a.Ca.Zf.C=!0,a.Sd("qoe.restart",{reason:"fmt.unplayable.22"}),kW(a.Ca),!0;var e=!1,f=a.Gz+3E4<(0,g.Q)()||a.u.isActive();if(a.i.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Sd("auth",c),!0;var h;if(h=!f)h=a.Ca.Jp(),h=!!(h.Je()||h.isInline()||h.isBackground()||h.ws()||h.rs());
   h&&(c.nonfg="paused",f=!0,a.Ca.pauseVideo());!f&&0<a.C&&(a.u.start(),f=!0,c.delayed="1",--a.C);h=a.Ca.Xa;if(!f&&!a.videoData.N("html5_disable_codec_on_platform_errors_cfl")&&((null===d||void 0===d?0:qD(d))||(null===d||void 0===d?0:oD(d)))){if(a.videoData.N("html5_disable_codec_on_platform_errors")){a.i.B.i.set(d.i,{WJ:1,VF:Number.MAX_SAFE_INTEGER});var l="cfalls"}else if(a.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")){l=a.i.B;var m=d.i,n=0;l.i.has(m)&&(n=l.i.get(m).WJ);l.i.set(m,
   {WJ:n+1,VF:Math.pow(2,n+1)});l="cfallexp"}else a.videoData.N("html5_disable_codec_for_playback_on_error")&&h&&(m=h.u,n=d.i,m.Ra.has(n)?m=!1:(m.Ra.add(n),m.Z=-1,rU(m,m.B),m=!0),m&&(l="cfallp"));l&&(e=f=!0,c[l]=d.i)}if(!f)return pEa(a,c);a.Gz=(0,g.Q)();f=a.videoData;f.Za?(f=f.Za.hK(),l=Date.now()/1E3+1800,f=f<l):f=!1;c.e=b;f&&(c.staleprog="1");a.Sd("qoe.restart",c);if(f&&qEa(a))return rEa(a),!0;Tt("philips")&&sEa(a);!a.videoData.N("html5_disable_codec_on_platform_errors")&&d&&qD(d)?(a.i.B.disableAv1(),
   e=!0):h?(b=(b=XU(h.videoTrack)||h.videoTrack.u)?b.i:h.videoTrack.i,b.S+=1,vU(h.u,b,!0)):a.videoData.Za&&a.videoData.Za.aG();a.u.isActive()||iW(a.Ca,e);return!0};
   pEa=function(a,b){if(a.videoData.qb)return!1;a.i.Ya+=1;if(10>=a.i.Ya)return!1;b.exiled=""+a.i.Ya;a.Sd("qoe.start15s",b);a.Ca.ea("playbackstalledatstart");return!0};
   sEa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
   qEa=function(a){return a.B?!0:"yt"!==a.i.ya?!1:a.videoData.qb?25>a.videoData.Db:!a.videoData.Db};
   rEa=function(a){if(!a.B){a.B=!0;var b=a.Ca.getPlayerState();b=g.U(b,4)||b.isSuspended();a.Ca.pm();b&&!YG(a.videoData)||a.Ca.ea("signatureexpired")}};
   tEa=function(a,b){if((a=a.Ca.jd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.aj();b.details.merr=c?c.toString():"0";b.details.msg=a.qe()}};
   vEa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="18911";if(qEa(a))return b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.KD("qoe.restart",!1,b)),a.Sd(b.errorCode,b.details),rEa(a),!0;6048E5<(0,g.Q)()-a.i.jb&&uEa(a,"signature");return!1};
   uEa=function(a,b){try{window.location.reload();a.Sd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.N("tvhtml5_retire_old_players")&&g.lF(a.i)&&sEa(a)};
   wEa=function(a,b){a.i.B.C=!1;a.Sd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});kW(a.Ca)};
   xEa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.u=d};
   mW=function(a,b,c){this.X=a;this.jx=b;this.Ca=c;this.Z=this.J=this.K=this.u=this.i=this.D=this.S=this.B=0;this.playbackRate=1;this.C=!1};
   zEa=function(a,b,c){!a.X.N("html5_tv_ignore_capable_constraint")&&g.lF(a.X)&&(c=c.compose(yEa(a,b)));return c};
   BEa=function(a){a=AEa(a);return fB("auto",a,!1,"s")};
   AEa=function(a){var b;a.N("html5_exponential_memory_for_sticky")?b=.5>LE(a.X.uc,"sticky-lifetime")?"auto":hB[eE()]:b=hB[eE()];return b};
   CEa=function(a,b){return 1<a.playbackRate?(a=Vma(a.X.B,b.i.videoInfos,a.playbackRate),new cB(0,a,!0,"o")):new cB(0,0,!1,"o")};
   DEa=function(a){var b=a.videoData.AD;if(b&&b.i.length&&gB(a.videoData.Tq)){for(var c=new Map,d=g.r(a.i.videoInfos),e=d.next();!e.done;e=d.next())e=e.value,c.set(+e.lc(),e.video.i);d=[];b=g.r(b.i);for(e=b.next();!e.done;e=b.next())(e=c.get(e.value))&&d.push(e);c=Math.max.apply(Math,g.v(d));a.videoData.Tq=new cB(0,c,!1,"u")}return a.videoData.Tq};
   yEa=function(a,b){if(g.lF(a.X)&&oB(a.X.B,pB.HEIGHT))var c=b.i.videoInfos[0].video.i;else{var d=!!b.i.i;var e;bF(a.X)&&(e=window.screen&&window.screen.width?new g.cg(window.screen.width,window.screen.height):null);e||(e=a.X.Wi?a.X.Wi.clone():a.jx.rg());(dF||aU||d)&&e.scale(g.uF());d=e;b.videoData.Jn()||YG(b.videoData);b=b.i.videoInfos;if(b.length){e=.85;var f=b[0].video;4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||$E||(e=.45);a=g.rE(a.X.experiments,"html5_viewport_undersend_maximum");
   for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.lc()?g.eB[iD(d.width,d.height)]:d.i;c=new cB(0,c,!1,"r")}else c=nG;c=c.i}c&&(c=Math.max(c,360));return new cB(0,c,!1,"r")};
   EEa=function(a,b){return g.H(a,function d(){var e,f,h;return g.B(d,function(l){switch(l.i){case 1:return b.i.i&&navigator.mediaCapabilities?g.A(l,Promise.resolve(),2):l.return(Promise.resolve());case 2:e=g.r(b.i.videoInfos),f=e.next();case 3:if(f.done){l.fb(0);break}h=f.value;return g.A(l,Rla(h),4);case 4:f=e.next(),l.fb(3)}})})};
   GEa=function(a,b){if(!b.videoData.u||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Pa()-a.S&&(a.B=0);a.B++;a.S=g.Pa();if(4!==a.B)return!1;FEa(a,b.videoData.u);return!0};
   IEa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.rE(a.X.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),h=g.rE(a.X.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.Q)()-a.D?0:f||0<e||0<h))return!1;a.D=(0,g.Q)();c=c.Kx();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.Z;a.J=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.Y&&a.Ca.Ba("ddf",
   "dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.i=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.u=0<h&&60*d>h?a.u+1:0;if(!e||g.lF(a.X))return!1;a.i=d>e?a.i+1:0;if(3!==a.i)return!1;FEa(a,b.videoData.u);a.Ca.Ba("dfd","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";"+HEa());return!0};
   JEa=function(a,b){return 0>=g.rE(a.X.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
   FEa=function(a,b){var c=b.i,d=b.video.fps;b=b.video.i-1;var e=fE();c=Ema(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.Kz("yt-player-performance-cap",e,604800));a.Ca.xt()};
   KEa=function(a,b){if(!b.i.i)return a.C?new cB(0,360,!1,"b"):nG;for(var c=!1,d=!1,e=g.r(b.i.videoInfos),f=e.next();!f.done;f=e.next())qD(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.rE(a.X.experiments,"html5_performance_cap_floor");a=a.X.isMobile?240:f;b=g.r(b.i.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!qD(e))if(f=gE(e.i,e.video.fps),e=e.video.i,Math.max(f,a)>=e){d=e;break}return new cB(0,d,!1,"b")};
   LEa=function(a){var b=a.Ca.Jp(),c=g.rE(a.X.experiments,"html5_inline_quality_cap"),d=g.rE(a.X.experiments,"html5_background_quality_cap"),e=g.rE(a.X.experiments,"html5_background_cap_idle_secs");return c&&b.isInline()?new cB(0,c,!1,"v"):!d||"auto"!==AEa(a)||Zu()/1E3<e?nG:b.isBackground()?new cB(0,d,!1,"v"):nG};
   NEa=function(a,b,c){if(g.lF(a.X)&&(1080<=eE(-1)||b.osid))return nG;var d=g.rE(a.X.experiments,"html5_autonav_quality_cap"),e=g.rE(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.Fk&&Zu()/1E3>e?(c&&(d=MEa(a,c,d)),new cB(0,d,!1,"e")):nG};
   MEa=function(a,b,c){if(a.N("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;b<a.length;b++)if(a[b].video.i<c)return a[b-1].video.i;return c};
   OEa=function(a,b){a.N("html5_log_media_perf_info")&&(a.Ca.Ba("perfdb",HEa()),a.Ca.Ba("hwc",""+navigator.hardwareConcurrency,!0),b&&a.Ca.Ba("mcdb",b.i.videoInfos.filter(function(c){var d;return!1===(null===(d=c.u)||void 0===d?void 0:d.smooth)}).map(function(c){return c.lc()}).join("-")))};
   HEa=function(){var a=Yb(fE(),function(b){return""+b});
   return g.JD(a)};
   nW=function(a,b){g.I.call(this);this.i=a;this.K=b;this.u=-1;this.J=!1;this.B=-1;this.playerState=new g.SJ;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.M(this.send,6E4,this);this.C=!1;g.J(this,this.delay)};
   PEa=function(a){0<=a.u||(3===a.i.Ca.getVisibilityState()?a.J=!0:(a.u=g.CS(a.i),a.delay.start()))};
   QEa=function(a){if(!(0>a.B)){var b=g.CS(a.i),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.$J(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
   REa=function(a){switch(a.X.playerCanaryState){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
   SEa=function(a){return(!a.N("html5_health_to_gel")||a.X.jb+36E5<(0,g.Q)())&&(a.N("html5_health_to_gel_canary_killswitch")||a.X.jb+36E5<(0,g.Q)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===REa(a))?a.N("html5_health_to_qoe"):!0};
   UEa=function(a,b){b?TEa.test(a):(a=g.Os(a),Object.keys(a).includes("cpn"))};
   oW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Ss(a)&&Ts()){if(h){var n;2!==(null===(n=VEa.uaChPolyfill)||void 0===n?void 0:n.state.type)?h=null:(h=VEa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}d&&(m["X-Goog-Visitor-Id"]=d);c&&(m["X-Goog-PageId"]=c);
   e&&(m.Authorization="Bearer "+e);d||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&TEa.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};
   pW=function(a,b,c,d,e,f,h,l){Ts()&&c.token&&(a=Qs(a,{ctt:c.token,cttype:c.CG,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:UEa(a,d.N("html5_assert_cpn_with_regex")),h?d.N("use_new_nwl")?dy().sendAndWrite(a,b):Yx(a,b):d.N("use_new_nwl")?dy().sendThenWrite(a,b,l):Xx(a,b,l)):b?(UEa(a,d.N("html5_assert_cpn_with_regex")),g.Ct(a,b)):g.av(a,e)};
   WEa=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.v(new Uint8Array(c))));a.close()}return b};
   g.rW=function(a){g.I.call(this);var b=this;this.i=a;this.u={};this.sequenceNumber=1;this.Ya=NaN;this.ud="N";this.S=this.qb=this.eb=this.Ua=this.C=0;this.Ea=this.vb="";this.kb=this.ma=NaN;this.Za=0;this.zb=-1;this.jb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.La=this.Aa=this.isOffline=this.ya=!1;this.Hb=[];this.Y=null;this.D=this.Ja=this.J=!1;this.B=-1;this.Ka=!1;this.Db=new g.M(this.fS,750,this);this.Z=this.adCpn="";this.adFormat=void 0;this.Mb=0;g.J(this,this.Db);(a="function"===typeof navigator.getBattery?
   navigator.getBattery():null)&&a.then&&a.then(function(c){b.Y=c});
   g.qW(this,0,"vps",["N"])};
   g.qW=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
   sW=function(a,b){var c=a.i.Ca.getCurrentTime();g.qW(a,b,"cmt",[c.toFixed(3)]);c=a.i.Ca.Ch();if(a.K&&1E3*c>a.K.WL+100&&a.K){var d=a.K,e=d.isAd;a.Ra=1E3*b-d.TW-(1E3*c-d.WL)-d.GW;a.Ba("gllat",{l:a.Ra.toFixed(),prev_ad:+e});delete a.K}};
   tW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.CS(a.i);var c=a.i.Ca.iz();if(!isNaN(a.ma)&&!isNaN(c.u)){var d=c.u-a.ma;0<d&&g.qW(a,b,"bwm",[d,(c.C-a.kb).toFixed(3)])}isNaN(a.ma)&&c.u&&a.isOffline&&XEa(a,!1);a.ma=c.u;a.kb=c.C;isNaN(c.bandwidthEstimate)||g.qW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.i.videoData.Y&&0!==Object.keys(c.i).length&&a.Ba("bwinfo",c.i);if(a.i.videoData.Y||a.i.X.N("html5_log_meminfo"))d=gDa(),Object.values(d).some(function(e){return void 0!==e})&&a.Ba("meminfo",d);
   a.Y&&g.qW(a,b,"bat",[a.Y.level,a.Y.charging?"1":"0"]);d=a.i.Ca.getVisibilityState();a.zb!==d&&(g.qW(a,b,"vis",[d]),a.zb=d);sW(a,b);(d=YEa(a.i))&&d!==a.Za&&(g.qW(a,b,"conn",[d]),a.Za=d);ZEa(a,b,c)};
   ZEa=function(a,b,c){if(!isNaN(c.hp)){var d=c.hp;c.B<d&&(d=c.B);g.qW(a,b,"bh",[d.toFixed(3)])}};
   uW=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(Am(a.u[d],function(e,f){return e+f.length},0));
   96E3<b&&(new g.M(a.reportStats,0,a)).start()};
   $Ea=function(a){a.i.videoData.zd&&vW(a,"prefetch");a.i.videoData.Db&&a.Ba("reload",{r:a.i.videoData.reloadReason,ct:a.i.videoData.Db});a.i.videoData.kb&&vW(a,"monitor");a.i.videoData.isLivePlayback&&vW(a,"live");a.i.videoData.Bg&&a.Ba("ctrl",a.i.videoData.Bg,!0);if(a.i.videoData.Hf){var b=a.i.videoData.Hf.replace(/,/g,"_");a.Ba("ytp",b,!0)}a.i.videoData.II&&(b=a.i.videoData.II.replace(/,/g,"."),a.Ba("ytrexp",b,!0));if(!a.i.X.N("html5_disable_gpu_reporting")){var c=a.i.videoData;b=a.i.X.N("enable_white_noise")||
   a.i.X.N("enable_webgl_noop")||a.i.X.N("enable_gpu_logging");var d=g.OG(c)||g.MG(c)||g.NG(c)||g.PG(c),e=c.B&&qD(g.pb(c.B.videoInfos))&&/^g/.test(c.clientPlaybackNonce);c=/^gp/.test(c.clientPlaybackNonce);(b||d||c||e)&&(b=(0,g.wW)())&&(a.u.gpu=[b])}YG(a.i.videoData)&&g.qW(a,g.CS(a.i),"dt",["1"]);a.D=!0;a.Ya=vt(function(){a.reportStats()},1E4)};
   aFa=function(a){0<=a.B||(a.i.X.wc||3!==a.i.Ca.getVisibilityState()?a.B=g.CS(a.i):a.Ka=!0)};
   vW=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
   XEa=function(a,b){a.isOffline=b;g.qW(a,g.CS(a.i),"is_offline",[a.isOffline?"1":"0"])};
   bFa=function(a,b,c,d,e){var f=g.CS(a.i);1===b&&g.qW(a,f,"vps",[a.ud]);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};
   cFa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
   dFa=function(a){this.i=a;this.S=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.K=this.J=0;this.Y=this.i.Dh().volume;this.Z=this.i.Dh().muted;this.C=xW(this.i)};
   yW=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.pb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.J+=a.u-a.B;a.C=xW(a.i);a.B=a.u};
   eFa=function(a){a.segments.length&&a.u===a.B||yW(a);var b=a.segments;a.segments=[];return b};
   gFa=function(a){fFa(a);a.K=vt(function(){a.update()},100);
   a.lastUpdateTime=g.CS(a.i);a.C=xW(a.i)};
   fFa=function(a){window.clearInterval(a.K);a.K=NaN};
   hFa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
   zW=function(a,b,c,d){this.X=b;this.segments=[];this.experimentIds=[];this.Ja=this.zb=this.isFinal=this.wh=this.jb=this.autoplay=this.autonav=!1;this.Mb="yt";this.D=this.K=null;this.sendVisitorIdHeader=this.La=!1;this.pageId="";this.C="watchtime"===c;this.B="playback"===c;this.vb="delayplay"===c;this.qb="atr"===c;this.zd="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.qb?"/api/stats/"+c:"//"+b.Yi+"/api/stats/"+c;this.Pf=!b.N("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.B&&
   b.pfpChazalUi&&a.D;this.kc=b.N("embeds_enable_intersection_observer_v2");d&&(this.zb=d.fs,d.rtn&&(this.D=d.rtn),this.C?(this.playerState=d.state,0<d.rti&&(this.K=d.rti)):(this.Nd=d.mos,this.Yh=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.ac=d.inview),d.size&&(this.Zb=d.size));this.deviceParams=g.pc(b.deviceParams);this.qd=b.Fc;b.N("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;
   this.Ka=b.Nd;this.Mb=b.ya;this.region=b.region;this.userAge=b.userAge;this.Za=b.ye;this.Qf=Zu();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Y=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.ye=b.N("vss_final_ping_send_and_write");this.ma=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.Ge=b.N("vss_playback_use_send_and_write");this.ya=b.N("use_new_nwl");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.cd=b.i&&b.N("embeds_append_synth_ch_headers");
   this.accessToken=a.nf();this.J=a.MS;this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=VG(a);this.autonav=a.Fk||this.autonav;this.dd=TG(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.jb=a.D;a.jb&&(this.S=a.jb,this.kb=a.Uh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.pu;this.Ea=a.Mb;a.u&&(this.videoFormat=a.u.lc(),a.K&&a.K.lc()!==this.videoFormat&&(this.eb=a.K.lc()));a.i&&kB(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Pf?"embedded_unbranded":
   SG(a);this.Ja=a.hf;this.uc=a.Mj;if(b=HG(a))this.Ye=b;this.wc=a.ll;this.eventId=a.eventId;this.playlistId=a.qJ||a.playlistId;this.Bg=a.Bg;this.Hf=a.Hf;this.Tc=a.uu;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Fc=a.SW;this.referrer=a.referrer;this.Ra=a.GI||a.JI;this.Ua=a.wu;this.Ya=a.cX;this.userGenderAge=a.userGenderAge;this.Aa=a.LS};
   AW=function(a,b){return oW(a.uri,a.X,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.cd)};
   iFa=function(a,b){return function(){var c=a.uri,d=BW(a),e=AW(a),f=a.Y,h=a.ma,l=a.ya;l=void 0===l?!1:l;d.cmt=d.len;d.lact="0";var m=b().toFixed(3);d.rt=Number(m).toString();c=g.ti(c,d);f?(null==e&&(e={}),h?l?dy().sendAndWrite(c,e):Yx(c,e):l?dy().sendThenWrite(c,e):Xx(c,e)):e?g.Ct(c,e):g.av(c)}};
   BW=function(a){var b={ns:a.Mb,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.u(a.i),ei:a.eventId,fmt:a.videoFormat,fs:a.zb?"1":"0",rt:a.u(a.hf),of:a.Fc,adformat:a.adFormat,content_v:a.dd,etv:a.embedsTokenValue,euri:a.qd,lact:a.Qf,live:a.Ye,cl:(402169965).toString(),mos:a.Nd,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Yh};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autonav&&(b.autonav=
   "1");a.autoplay&&(b.autoplay="1");a.jb&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Ja&&(b.splay="1");a.Ea&&(b.delay=a.Ea);a.Ka&&(b.hl=a.Ka);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Za&&(b.uga=a.Za+a.userAge);void 0!==a.Hb&&(b.len=a.u(a.Hb));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.u(a.D));a.Ra&&(b.feature=a.Ra);a.playlistId&&(b.list=a.playlistId);a.Bg&&(b.ctrl=a.Bg);a.Hf&&(b.ytr=a.Hf);a.Tc&&(b.ssrt="1");
   a.eb&&(b.afmt=a.eb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Db&&(b.lio=a.u(a.Db));a.C?(b.idpj=a.uc,b.ldpj=a.wc,null!=a.K&&(b.rti=a.u(a.K)),a.Aa&&(b.ald=a.Aa)):void 0!==a.adType&&(b.at=a.adType);a.Zb&&(a.B||a.vb||a.C&&a.kc)&&(b.size=a.Zb);null!=a.ac&&(a.B||a.vb||a.C&&a.kc)&&(b.inview=a.u(a.ac));a.C&&(b.volume=CW(a,g.ym(a.segments,function(d){return d.volume})),b.st=CW(a,g.ym(a.segments,function(d){return d.startTime})),b.et=CW(a,g.ym(a.segments,function(d){return d.endTime})),
   vn(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=CW(a,g.ym(a.segments,function(d){return d.playbackRate}))),vn(a.segments,function(d){return"-"!==d.i})&&(b.als=g.ym(a.segments,function(d){return d.i}).join(",")));
   b.muted=CW(a,g.ym(a.segments,function(d){return d.muted?1:0}));
   vn(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=CW(a,g.ym(a.segments,function(d){return d.visibilityState})));
   vn(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=CW(a,g.ym(a.segments,function(d){return d.connectionType})));
   vn(a.segments,function(d){return 0!==d.u})&&(b.blo=CW(a,g.ym(a.segments,function(d){return d.u})));
   vn(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.ym(a.segments,function(d){return d.C}).join(","));
   vn(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.ym(a.segments,function(d){return d.clipId}).join(","));
   if(vn(a.segments,function(d){return!!d.B})){var c="au";
   a.B&&(c="au_d");b[c]=g.ym(a.segments,function(d){return d.B}).join(",")}Ts()&&a.S&&(b.ctt=a.S,b.cttype=a.kb,b.mdx_environment=a.mdxEnvironment);
   a.zd&&(b.etype=void 0!==a.Z?a.Z:0);a.Ua&&(b.uoo=a.Ua);a.Ya&&(b.upt=a.Ya);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=jFa[a.livingRoomAppMode]||a.livingRoomAppMode);a.B&&a.X.N("html5_log_server_url_param")&&kFa(a,b);return b};
   kFa=function(a,b){if(b&&a.J)for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set("cpn ver cmt fmt fs rt content_v etv euri lact state volume cbrand cbr cbrver c cver cplayer cos cosver hl cr rtn afmt cplatform muted ctheme lio au_d uoo cmodel vis size cc splay conn inview".split(" ")),f=g.r(Object.keys(a.J)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||e.has(h)||c.has(h)||(!a.J[h]&&b[h]&&g.My(new g.dw("b161906944_missing",h,b[h])),
   b[h]=a.J[h]||b[h])};
   CW=function(a,b){return g.ym(b,a.u).join(",")};
   DW=function(a){g.I.call(this);this.i=a;this.currentPlayerState="paused";this.B=NaN;this.J=[10,10,10,40];this.S=this.K=0;this.ya=this.ma=this.Ea=this.Aa=this.Y=this.Z=this.C=!1;this.D=NaN;this.u=new dFa(a)};
   mFa=function(a){if(!a.C){a.i.X.N("disable_embedpage_playback_logging")||16623!==a.i.videoData.Xw||g.My(Error("Playback for EmbedPage"));var b=EW(a,"playback");a:{var c;if(a.i.X.N("web_player_use_server_vss_schedule")){var d=null===(c=a.i.videoData.getPlayerResponse())||void 0===c?void 0:c.playbackTracking,e=null===d||void 0===d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null===d||void 0===d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.i.videoData.Mj,h=a.i.videoData.ll,
   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.J=c;break a}}a.J=[10+a.i.videoData.Mj,10,10,40+a.i.videoData.ll-a.i.videoData.Mj,40]}gFa(a.u);b.D=FW(a,!0);0<a.D&&(b.i-=a.D);b.send();a.i.videoData.Jq&&(b=a.i.X,d=a.i.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Jq,oid:d.qH,ptchn:d.pH,pltype:d.fI,content_v:TG(d)},d.Up&&Object.assign(c,{m:d.Up}),b=g.ti(b.Ea+"ptracking",c),GW(a,b));a.i.videoData.Mb||lFa(a);
   a.C=!0;a=a.u;a.u=a.i.Ca.getCurrentTime();a.i.X.N("html5_vss_media_time_killswitch")||(a.u=a.i.Ca.Ch());a.lastUpdateTime=g.CS(a.i);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.S=!0}};
   FW=function(a,b,c){c=void 0===c?NaN:c;var d=g.CS(a.i);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.J[a.K];a.K+1<a.J.length&&a.K++;var f=c+e;a.B=g.ut(function(){if(!a.isDisposed()){a.B=NaN;a.u.update();var h=eFa(a.u),l=nFa(a,h);b&&(l.K=f);var m=1E3<a.S;!(1<h.length)&&h[0].isEmpty()||m||(l.D=FW(a,!0,f));l.send();a.S++}},1E3*(f-d));
   return f};
   EW=function(a,b){var c=a.i;c=Object.assign(c.Dh(),c.videoData.Dh());Object.assign(c,{state:a.currentPlayerState});b=new zW(a.i.videoData,a.i.X,b,c);b.i=a.i.Ca.getCurrentTime();a.i.X.N("html5_vss_media_time_killswitch")||(b.i=a.i.Ca.Ch());a.i.videoData.isLivePlayback||(b.Hb=a.i.Ca.getDuration());a.i.videoData.i&&(c=a.i.videoData.i.getIngestionTime(b.i))&&(b.Db=c-b.i);b.hf=g.CS(a.i);b.segments=[xW(a.i)];return b};
   nFa=function(a,b){var c=EW(a,"watchtime");if(0<a.D){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.i-=a.D}else c.i=a.u.u;c.segments=b;return c};
   HW=function(a){a.u.update();return nFa(a,eFa(a.u))};
   lFa=function(a){a.i.videoData.remarketingUrl&&!a.Aa&&(GW(a,a.i.videoData.remarketingUrl),a.Aa=!0);a.i.videoData.youtubeRemarketingUrl&&!a.Ea&&(GW(a,a.i.videoData.youtubeRemarketingUrl),a.Ea=!0);a.i.videoData.googleRemarketingUrl&&!a.ma&&(GW(a,a.i.videoData.googleRemarketingUrl),a.ma=!0);a.i.videoData.ppvRemarketingUrl&&!a.ya&&(GW(a,a.i.videoData.ppvRemarketingUrl),a.ya=!0);a.At()};
   IW=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=HW(a);b.isFinal=!0;b.send();a.dispose()}};
   oFa=function(a,b,c){if(!a.Z){c||(c=EW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Z=!0}};
   GW=function(a,b){var c=a.i.videoData.nf(),d=a.i.X,e=a.i.N("web_player_vss_pageid_header")?a.i.X.pageId:void 0,f=a.i.X.sendVisitorIdHeader?a.i.videoData.visitorData:void 0,h=a.i.X.N("vss_pings_using_networkless")||a.i.X.N("kevlar_woffle"),l=a.i.X.N("allow_skip_networkless");c=oW(b,d,e,f,c,void 0);pW(b,c,{token:a.i.videoData.jb,CG:a.i.videoData.Uh,mdxEnvironment:a.i.videoData.mdxEnvironment},d,void 0,h&&!l,!1,!0)};
   pFa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.i=this.clipId="-"};
   JW=function(a,b,c,d){this.videoData=a;this.X=b;this.Ca=c;this.Dh=d;this.i=void 0};
   g.CS=function(a){return qFa(a)()};
   qFa=function(a){if(!a.i){var b=g.Oa(function(d){var e=(0,g.Q)();d&&631152E6>=e&&(g.Ly(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.X.N("html5_validate_yt_now")),c=b();
   a.i=function(){return Math.round(b()-c)/1E3};
   a.Ca.tF()}return a.i};
   YEa=function(a){if(navigator.connection&&navigator.connection.type)return rFa[navigator.connection.type]||rFa.other;if(g.lF(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
   xW=function(a){var b=new pFa;b.C=a.Dh().cc||"-";b.playbackRate=a.Ca.getPlaybackRate();var c=a.Ca.getVisibilityState();0!==c&&(b.visibilityState=c);a.X.Hb&&(b.u=1);c=a.Ca.getAudioTrack();c.Ac&&c.Ac.id&&"und"!==c.Ac.id&&(b.B=c.Ac.id);b.connectionType=YEa(a);b.volume=a.Dh().volume;b.muted=a.Dh().muted;b.clipId=a.Dh().clipid||"-";b.i=a.videoData.rI||"-";return b};
   g.KW=function(a){g.I.call(this);var b=this;this.u=a;this.B=this.qoe=this.i=null;this.Sf=void 0;this.C=new Map;this.u.videoData.isValid()&&!this.u.videoData.Ei&&(this.i=new DW(this.u),g.J(this,this.i),this.qoe=new g.rW(this.u),g.J(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Sf=this.u.videoData.clientPlaybackNonce)&&this.C.set(this.Sf,this.i));SEa(this.u)&&(this.B=new nW(this.u,function(c){b.Ba("h5h",c)}),g.J(this,this.B))};
   sFa=function(a){a.B&&PEa(a.B);a.qoe&&aFa(a.qoe)};
   tFa=function(a){var b;a.u.videoData.enableServerStitchedDai&&a.Sf?null===(b=a.C.get(a.Sf))||void 0===b?void 0:yW(b.u):a.i&&yW(a.i.u)};
   uFa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.ud&&(b.ud="N");var c=g.CS(b.i);g.qW(b,c,"vps",[b.ud]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);b.Aa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.C.values()),c=b.next();!c.done;c=b.next())IW(c.value);else a.i&&IW(a.i);a.dispose()};
   vFa=function(a,b){a.i&&oFa(a.i,b)};
   wFa=function(a){if(!a.i)return null;var b=EW(a.i,"atr");return function(c){a.i&&oFa(a.i,c,b)}};
   xFa=function(a,b,c,d){c.adFormat=c.uc;var e=b.Ca;b=new DW(new JW(c,b.X,{getDuration:function(){return c.lengthSeconds},
   getCurrentTime:function(){return e.getCurrentTime()},
   Ch:function(){return e.Ch()},
   iz:function(){return e.iz()},
   getPlayerSize:function(){return e.getPlayerSize()},
   getAudioTrack:function(){return c.getAudioTrack()},
   getPlaybackRate:function(){return e.getPlaybackRate()},
   Lv:function(){return e.Lv()},
   getVisibilityState:function(){return e.getVisibilityState()},
   tF:function(){e.tF()},
   xw:function(){e.xw()}},b.Dh));
   b.D=d;g.J(a,b);return b};
   yFa=function(){this.hp=0;this.D=this.C=this.u=this.B=NaN;this.i={};this.bandwidthEstimate=NaN};
   zFa=function(){this.u=g.mA;this.i=[]};
   BFa=function(a,b,c){var d=[];for(b=AFa(a,b);b<a.i.length;++b){var e=a.i[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
   CFa=function(a,b){var c=[];a=g.r(a.i);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
   DFa=function(a){return a.i.slice(AFa(a,0x7ffffffffffff),a.i.length)};
   AFa=function(a,b){a=Lb(a.i,function(c){return b-c.start||1});
   return 0>a?-(a+1):a};
   EFa=function(a,b){var c=NaN;a=g.r(a.i);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
   FFa=function(a,b){if(1<b.length&&b.length>a.i.length)a.i=a.i.concat(b),a.i.sort(a.u);else{b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,!a.i.length||0<a.u(c,a.i[a.i.length-1])?a.i.push(c):g.Pb(a.i,c,a.u)}};
   GFa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
   LW=function(a,b,c,d){g.I.call(this);this.S=a;this.ma=b;this.D=c;this.Z=d;this.u=NaN;this.J=this.K=this.started=!1;this.B=[];this.Y=new g.M(this.bl,250,this);g.J(this,this.Y);this.C=new g.M(this.bl,0,this);g.J(this,this.C);this.i=new zFa};
   HFa=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.Z(g.nA(d.namespace),d):a.Z(g.oA(d.namespace),d)}};
   IFa=function(a){this.u=this.mediaTime=NaN;this.B=this.i=!1;this.C=.001;g.lF(a)&&g.rE(a.experiments,"tvhtml5_min_has_advanced_secs_float")&&(this.C=g.rE(a.experiments,"tvhtml5_min_has_advanced_secs_float"))};
   MW=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
   NW=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
   JFa=function(a,b){this.videoData=a;this.i=b};
   KFa=function(a,b,c){return npa(b,c).then(function(){return Kt(new JFa(b,b.B))},function(d){d instanceof Error&&Is(d);
   d=b.isLivePlayback&&!g.yE(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.eb,drm:""+ +wG(b),f18:""+ +(0<=b.Gi.indexOf("itag=18")),c18:""+ +wD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(wG(b)?(e.f142=""+ +!!b.i.i["142"],e.f149=""+ +!!b.i.i["149"],e.f279=""+ +!!b.i.i["279"]):(e.f133=""+ +!!b.i.i["133"],e.f140=""+ +!!b.i.i["140"],e.f242=""+ +!!b.i.i["242"]),e.cAVC=""+ +xD('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +xD('audio/mp4; codecs="mp4a.40.2"'),
   e.cVP9=""+ +xD('video/webm; codecs="vp9"'));if(b.J){e.drmsys=b.J.keySystem;var f=0;b.J.i&&(f=Object.keys(b.J.i).length);e.drmst=""+f}return new g.KD(d,!0,e)})};
   LFa=function(a){this.D=a;this.B=this.u=0;this.C=new iT(50)};
   PW=function(a,b,c){g.R.call(this);this.videoData=a;this.experiments=b;this.S=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new MFa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.kb?c.u=3:g.KG(a)&&(c.u=2);b.ob("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=fpa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===DG(a)&&(c.J=g.rE(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Tt("trident/")||Tt("edge/"))d=g.rE(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B,
   d);g.rE(b,"html5_minimum_readahead_seconds")&&(c.B=g.rE(b,"html5_minimum_readahead_seconds"));g.rE(b,"html5_maximum_readahead_seconds")&&(c.Z=g.rE(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);g.rE(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.rE(b,"html5_allowable_liveness_drift_chunks"));g.rE(b,"html5_readahead_ratelimit")&&(c.Y=g.rE(b,"html5_readahead_ratelimit"));switch(DG(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.K=b.ob("html5_live_smoothly_extend_max_seekable_time")}this.policy=
   c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.kb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(DG(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.i=OW(this,b);this.oa()};
   NFa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.K&&3===fpa(a.videoData)&&--c;return QW(a)*c};
   RW=function(a,b){var c=a.hj(),d=a.policy.i;a.D||(d=Math.max(d-1,0));a=d*QW(a);return b>=c-a};
   OFa=function(a,b,c){b=RW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
   PFa=function(a,b){b=RW(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b};
   QW=function(a){return a.videoData.i?cE(a.videoData.i)||5:5};
   OW=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/QW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Z/QW(a))),b)};
   MFa=function(){this.ma=1;this.B=0;this.Z=Infinity;this.Y=0;this.C=!0;this.i=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.S=!1};
   UW=function(a){g.I.call(this);this.Ca=a;this.X=this.Ca.V();this.C=this.i=0;this.B=new g.M(this.D,1E3,this);this.Ea=new SW({delayMs:g.rE(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Z=new SW({delayMs:g.rE(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Ka=TW(this,"html5_seek_set_cmt");this.ma=TW(this,"html5_seek_jiggle_cmt");this.ya=TW(this,"html5_seek_new_elem");this.Ua=TW(this,"html5_unreported_seek_reseek");this.K=TW(this,"html5_long_rebuffer_jiggle_cmt");this.S=new SW({delayMs:2E4});
   this.J=TW(this,"html5_ads_preroll_lock_timeout");this.Ja=new SW({delayMs:g.rE(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Hr:!this.X.N("html5_report_slow_ads_as_error")});this.La=new SW({delayMs:g.rE(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Hr:!this.X.N("html5_skip_slow_buffering_ad")});this.Aa=TW(this,"html5_seek_over_discontinuities");this.Ra=new SW({delayMs:g.rE(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Y=TW(this,"html5_slow_start_no_media_source");
   this.u={};g.J(this,this.B)};
   TW=function(a,b){var c=g.rE(a.X.experiments,b+"_delay_ms");a=a.X.N(b+"_cfl");return new SW({delayMs:c,Hr:a})};
   QFa=function(a,b,c,d,e,f,h){var l=DD(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;VW(a,a.Aa,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
   VW=function(a,b,c,d,e,f,h){RFa(b,c)?(a.Sd(e,b,h),b.Hr||f()):(b.KA&&b.triggerTimestamp&&!b.B?(c=(0,g.Q)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.KA,c=b.i&&c-b.i>b.OF||f?b.B=!0:!1):c=!1,c&&(c=a.Ib(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.JD(c),a.Ca.Ba("workaroundReport",h),d&&(b.reset(),a.u[e]=!1)))};
   SW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.OF?1E3:b.OF,d=void 0===b.KA?3E4:b.KA;b=void 0===b.Hr?!1:b.Hr;this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.OF=c;this.KA=d;this.Hr=b};
   RFa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.Q)();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};
   XW=function(a){g.I.call(this);var b=this;this.Ca=a;this.X=this.Ca.V();this.videoData=this.Ca.getVideoData();this.policy=new SFa(this.X);this.Y=new UW(this.Ca);this.playbackData=null;this.Ja=new g.uD;this.J=this.u=this.Xa=this.ra=null;this.i=NaN;this.B=0;this.C=null;this.Aa=NaN;this.D=this.K=null;this.Z=this.S=!1;this.ya=new g.M(function(){TFa(b,!1)},2E3);
   this.Ya=new g.M(function(){WW(b)});
   this.Ka=new g.M(function(){b.oa();b.S=!0;UFa(b)});
   this.Ra=this.timestampOffset=0;this.La=!0;this.Ea=0;this.Ua=NaN;this.ma=new g.M(function(){var c=b.X.uc;c.i+=1E4/36E5;c.i-c.B>1/6&&(ina(c),c.B=c.i);b.ma.start()},1E4);
   g.J(this,this.Y);g.J(this,this.Ja);g.J(this,this.ya);g.J(this,this.Ka);g.J(this,this.Ya);g.J(this,this.ma)};
   VFa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new LFa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(CG(a.videoData)&&a.Xa){var c=a.Xa.Ka.qg()||0;break a}if(a.videoData.i){c=a.videoData.i.ya;break a}}c=0}return c}),a.u=new PW(a.videoData,a.X.experiments,function(){return a.hd(!0)}));
   a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.B=a.B||a.videoData.startSeconds||0)};
   $W=function(a,b){(a.Xa=b)?YW(a,!0):ZW(a)};
   WFa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.J&&d){var e=a.J;if(e.i&&!(c>=e.u&&c<e.B)){var f=e.i.getSegmentNumberForTime(c);-1!==f&&(e.u=e.i.getStartTime(f),e.B=e.u+e.i.getDuration(f),f=Date.now()/1E3-e.i.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.ra?QJ(a.ra):0,d.C++,3>d.C||g.Pa()-d.J<d.policy.Y||(d.J=g.Pa(),d.u.push(e),50<d.u.length&&d.u.shift(),d.oa())),d=a.u,OFa(d,c,void 0===b?!0:b),PFa(d,c),b&&TFa(a,!0))};
   TFa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!RW(c,d)&&c.Xl()?(c.oa(),c.policy.S&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.oa(),c=Math.min(c.videoData.getMinSeekableTime()+10,c.hj())):c=NaN;if(!isNaN(c)){if(a.Xa&&b&&(b=a.ya.isActive(),d=a.u.hj(),(d=ADa(a.Xa,d-a.Uc()))&&!b)){a.ya.start();a.Ca.Ba("inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(d+a.Uc()));a.seekTo(d+a.Uc(),{Td:"playbacktimeline_inBufferSeek"});return}a.N("html5_peg_to_live_logging")&&
   a.Ca.Ba("ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Uc()));a.seekTo(c,{Td:"playbacktimeline_pegToLive"})}}};
   YW=function(a,b){if(a.u&&a.Xa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.i;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){b.oa();var d=OW(b,b.i-1);break b}if(b.policy.C){b.oa();d=OW(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.oa(),b.u=[],b.C=0}else c=!1;c&&(c=a.Ca.Xb,b=NFa(a.u),c.qoe&&(c=c.qoe,g.qW(c,g.CS(c.i),"lra",[b]),c.Ba("live-readahead-seconds",{v:b})));b=a.Xa;c=a.u.i;d=a.u;
   d=(d.i-1+d.policy.i)*QW(d);a=a.u.policy.J;b.Pe=Math.max(c-1,0);b.D&&(b.D.ma=d);b.kb=a}};
   XFa=function(a,b){a.B=b};
   aX=function(a){return a.videoData.isLivePlayback&&!!a.videoData.B&&!a.videoData.B.i};
   UFa=function(a){YFa(a).then(void 0,function(){ZW(a)});
   bX(a).then(function(c){ZFa(a,c)},function(){ZW(a)});
   PS(a.Ca);if(g.yG(a.videoData)){var b=a.Ib();b["native"]=""+ +a.Z;b.tgt=""+a.i;a.Ca.Ba("startSeek",g.JD(b))}};
   YFa=function(a){if(!a.K)if(a.Xa)if(isFinite(a.i))a.oa(),a.K=a.Xa.seek(a.i-a.timestampOffset);else{a.oa();var b=a.Xa;FV(b);b.C.i&&b.oa();b.D&&cDa(b.D,b.videoTrack.i);g.Jq(b.Z);b=b.C;var c=Math.max(b.videoTrack.C.B||0,b.audioTrack.C.B||0);CCa(b.videoTrack);CCa(b.audioTrack);var d=b.u,e;for(e in d.i)Hka(d.i[e].index,Infinity);b.u.isManifestless&&(b.C=!0);b.Xa.currentTime=c;b.i=!0;b.D=new uS;a.K=b.D;a.i=a.Xa.getCurrentTime()+a.timestampOffset}else a.K=jh(a.i-a.timestampOffset);return a.K};
   bX=function(a){var b=a.C;b||(a.C=new uS,b=a.C,WW(a));return b};
   $Fa=function(a,b,c){return isNaN(b)?NaN:g.Xf(b,a.getMinSeekableTime(),a.hd(c))};
   WW=function(a){if(a.C)if(!a.N("html5_nondash_live_seek_killswitch")&&aX(a)&&a.ra&&0<a.ra.rh()&&0<PJ(a.ra)&&(a.i=$Fa(a,a.i,!1)),!a.ra||!aGa(a))a.Ya.start(750);else if(!isNaN(a.i)&&isFinite(a.i)&&a.Aa!==a.i-a.timestampOffset){var b=a.ra.getCurrentTime()-a.i;if(Math.abs(b)<=a.Ea)bGa(a);else if(!a.videoData.isLivePlayback&&a.i>=a.hd()-.1)a.i=a.hd(),a.C.resolve(a.hd()),DS(a.Ca);else try{var c=a.i-a.timestampOffset;a.oa();a.ra.seekTo(c);a.Y.i=c;a.Aa=c;a.B=a.i}catch(d){a.oa()}}};
   aGa=function(a){if(!a.ra||0===a.ra.rh()||0<a.ra.aj())return!1;var b=0<a.ra.getCurrentTime();if(!(a.N("html5_nondash_mediaelementready_killswitch")||a.videoData.B&&a.videoData.B.i||a.videoData.isLivePlayback)&&wG(a.videoData))return b;if(0<=a.i){var c=a.ra.Jv();if(c.length||!b)return ED(c,a.i-a.timestampOffset)}return b};
   bGa=function(a){a.C?a.C.resolve(a.ra.getCurrentTime()):a.oa()};
   ZFa=function(a,b){a.oa();a.D&&(a.D.resolve(b),a.Ca.ea("SEEK_COMPLETE"),g.yG(a.videoData)&&(b=a.Ib(),b["native"]=""+ +a.Z,a.Ca.Ba("seekEnd",g.JD(b))));cGa(a)};
   cGa=function(a){a.i=NaN;a.Aa=NaN;a.C=null;a.K=null;a.D=null;a.S=!1;a.Z=!1;a.Ea=0;a.ya.stop();a.Ka.stop()};
   ZW=function(a){a.D&&a.oa();cGa(a)};
   dGa=function(a){if(a.ra){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ja.T(a.ra,c.value,function(d){var e=a.ra;d=d.type;a.oa();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.C||a.Z&&d!==a.i)a.C=new uS,a.Aa=d,e=e.getCurrentTime(),a.Y.i=e,a.seekTo(d,{Td:"playbacktimeline_mediaElementEvent"}),a.Z=!0;break;case "seeked":bGa(a);break;case "loadedmetadata":a.La?(e="ss.",d=0,(LG(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||
   a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.i?(d=a.videoData.liveUtcStartSeconds||a.videoData.kc,e="utc.",d=a.hd()-a.getIngestionTime(a.hd())+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.kc?(e="mss.",d=a.videoData.kc+a.Uc()):a.N("html5_unrewrite_timestamps")&&a.videoData.Mo&&(e="stss.",d=a.videoData.Mo),d?(a.seekTo(d,{Td:"playbacktimeline_startSeconds"}),a.Ca.Ba("startSeconds",e+String(d)),a.La=!1):a.videoData.kc&&a.Ca.Ba("startSeconds",
   ""+e+(a.videoData.kc+a.Uc())),e=!!d):e=!1;a.N("html5_nondash_live_seek_killswitch")&&!e&&aX(a)&&(a.i=isFinite(a.i)?g.Xf(a.i,a.getMinSeekableTime(),a.hd()):a.hd());WW(a);break;case "progress":WW(a)}});
   a.D||a.B||a.policy.u||!a.ra.RF()||a.seekTo(.01,{Td:"playbacktimeline_setupMediaElement"})}};
   eGa=function(a,b){a.i=b;a.B=b;bX(a).then(function(c){ZFa(a,c)},function(){ZW(a)})};
   SFa=function(a){this.i=a.N("html5_live_smoothly_extend_max_seekable_time");this.B=a.N("html5_seek_over_discontinuities");this.u=a.N("html5_requires_seek_for_playback_at_zero_killswitch")};
   cX=function(){this.i=this.started=!1};
   dX=function(){aR.apply(this,arguments)};
   eX=function(){bR.apply(this,arguments)};
   fX=function(){return Tt("nfbe")?!1:!!yxa()};
   gX=function(a){this.i=a;this.iv=PQ(wy(16))};
   fGa=function(a,b,c){return g.H(a,function e(){var f=this,h;return g.B(e,function(l){h=new dX(f.i.i);return l.return(h.decrypt(b,c))})})};
   hX=function(a){g.I.call(this);this.i=a;this.Ne=new Map};
   TU=function(a,b){return a.Ne.has(b)};
   xCa=function(a,b,c){a.Ne.get(b).od=c};
   gGa=function(a,b){TU(a,b)&&(a.Ne.get(b).ke=new WC,iX(a,b))};
   hGa=function(a){for(var b=g.r(a.Ne),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.od||gGa(a,c)}};
   iDa=function(a,b){var c;return(null===(c=a.Ne.get(b))||void 0===c?void 0:c.wk)||0};
   wCa=function(a,b){a=a.Ne.get(b);return a.bytesReceived===a.wk&&a.RC+a.ke.totalLength===a.bytesReceived};
   iX=function(a,b){a.oa();if((b=a.Ne.get(b))&&!b.rf){b.rf=!0;b.od&&b.od();a:{b=g.r(a.Ne.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.i;var d;a.playerResponse&&(null===(d=a.xhr)||void 0===d?void 0:d.abort())}}};
   iGa=function(a){this.iv=KQ(new FQ(a),5)};
   jGa=function(a){a=KQ(new FQ(a),4);this.i=new iGa(new WC([a]))};
   kGa=function(a){this.i=[];for(a=new FQ(a);;){var b=IQ(a,2);if(!b)break;this.i.push(b)}};
   mGa=function(a){a=new FQ(a);this.B=IQ(a,1);this.itag=IQ(a,3);this.lastModifiedTime=IQ(a,4);this.xtags=JQ(a,5);IQ(a,6);HQ(a,8)&&GQ(a);IQ(a,9,-1);IQ(a,10);this.i=IQ(a,14);this.u=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.Ek="audio"===lGa[mD[""+this.itag]]};
   nGa=function(a){a=new FQ(a);a=KQ(a,23);a=new FQ(new WC([a]));this.videoId=JQ(a,2)};
   oGa=function(a){this.body=null;a=new FQ(a);this.onesieProxyStatus=IQ(a,1,-1);this.httpStatus=IQ(a,2,-1);this.body=KQ(a,4)};
   pGa=function(a){a=new FQ(a);this.startTimeMs=IQ(a,1);this.endTimeMs=IQ(a,2)};
   qGa=function(a){var b=new FQ(a);a=JQ(b,3);var c=IQ(b,5);this.u=IQ(b,7);var d=KQ(b,14);new pGa(new WC([d]));b=JQ(b,15);this.i=a+";"+c+";"+b};
   rGa=function(a){this.eq=a;this.u=!1;this.i=[]};
   jX=function(a){for(;a.i.length&&!a.i[0].isEncrypted;){var b=a.i.shift(),c=b.tG;if(b=b.buffer)sGa(a.eq.yd,c,b);else{var d=a.eq;d.i[c].IK=!0;var e=b=void 0;d=d.yd;if(null===(e=d.Ce)||void 0===e?0:TU(e,c))null===(b=d.Ce)||void 0===b?void 0:iX(b,c)}}};
   tGa=function(a,b){a.i.push({tG:b,isEncrypted:!1});a.u||jX(a)};
   kX=function(a){this.yd=a;this.B={};this.i={};this.u=this.iv=null;this.queue=new rGa(this)};
   uGa=function(a){var b=a.queue;b.i.length&&b.i[0].isEncrypted&&!b.u&&(b.i.length=0);b=g.r(Object.keys(a.i));for(var c=b.next();!c.done;c=b.next())c=c.value,a.i[c].IK||tGa(a.queue,c)};
   vGa=function(a,b){var c=b.totalLength;a.oa();var d=!1;switch(a.u){case 0:a.hF(b).then(function(e){var f=a.yd;f.Xe("oprr");f.playerResponse=e;f.X.N("html5_onesie_use_media_promise")&&!f.ME&&(f.Uw=!1);lX(f)},function(e){a.yd.Bh(e)});
   break;case 2:a.yd.Xe("ormk");b=$C(b);a.queue.decrypt(b);a.oa();break;default:d=!0,a.oa()}a.yd.mj&&a.yd.Ba("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
   wGa=function(a,b,c){var d=aD(b,0);a.yd.mj&&a.yd.Ba("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=$C(b,1),d=a.B[d]||null,a.oa(),d&&(a=a.queue,a.i.push({tG:d,buffer:b,isEncrypted:c}),a.u||jX(a)))};
   mX=function(){};
   nX=function(a){var b=new pxa;a.u(b);return new Uint8Array(b.u.buffer,0,b.i)};
   oX=function(a){var b=a.value;this.name=a.name;this.value=b};
   pX=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
   qX=function(a){this.i=a};
   rX=function(a,b,c,d){this.i=a;this.encryptedClientKey=b;this.iv=c;this.hmac=d;this.serializeResponseAsJson=!0};
   sX=function(a,b,c){this.B=a;this.i=b;this.onesieUstreamerConfig=c};
   xGa=function(a,b){if(b+1<=a.totalLength){var c=aD(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=aD(a,b++);else if(2===c)c=aD(a,b++),a=aD(a,b++),a=(c&63)+64*a;else if(3===c){c=aD(a,b++);var d=aD(a,b++);a=aD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=aD(a,b++);d=aD(a,b++);var e=aD(a,b++);a=aD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),ZC(a,c,4)?a=Dla(a).getUint32(c-a.B,!0):(d=aD(a,c+2)+256*aD(a,c+3),a=aD(a,c)+256*(aD(a,c+1)+
   256*d)),b+=5;return[a,b]};
   tX=function(a){this.u=a;this.i=new WC};
   yGa=function(a){var b=g.r(xGa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.r(xGa(a.i,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.i.totalLength&&(d=a.i.split(d).Eq.split(b),b=d.oz,d=d.Eq,a.u.eq.feed(c,b),a.i=d,yGa(a))};
   CGa=function(a){var b=xG(a);a=zGa(b,a.V());var c=a.video.map(AGa).flat();0<b.B&&!b.S&&(c=c.filter(function(d){return"1"!==mD[d]||BGa[d]<b.B}));
   return{video:c,audio:a.audio.map(AGa).flat()}};
   AGa=function(a){var b=DGa[a]||[];"9"===mD[a]&&(b=[].concat(g.v(b),["278"]));return[a].concat(g.v(b))};
   zGa=function(a,b){function c(l){return l.id}
   function d(l){return(l=f[l])?(rB(l,[]),[l[0]]):[]}
   var e=lma(EGa,null,0,!1,!1,void 0),f=mB(a,b.B,e,function(){return!0},!1);
   b=vka(a).map(d).flat();e=xka(a);var h=["1","1h"];0<a.B&&!a.S&&(e=h.concat(e));return{video:e.map(d).flat().map(c),audio:b.map(c)}};
   HGa=function(a){return g.H(this,function c(){var d,e,f,h;return g.B(c,function(l){return 1==l.i?(d=a.V().Tc,null!==d&&void 0!==d&&d.baseUrl?g.A(l,FGa(),3):l.fb(2)):2!=l.i&&(e=l.u)?(f=""+e+d.baseUrl,h=new g.uB(f),l.return(GGa(h,a))):l.return(null)})})};
   GGa=function(a,b){var c,d=null===(c=b.Gq)||void 0===c?void 0:c.urlQueryOverride;if(d){d=zB(d);d=g.r(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;a.set(e,f)}}if(!a.get("id")){d=BE(b.videoId);b=[];if(d)for(d=g.r(d),e=d.next();!e.done;e=d.next())b.push(e.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a};
   FGa=function(){return g.H(this,function b(){var c,d,e,f,h;return g.B(b,function(l){if(1==l.i)return c={format:"RAW",method:"GET",timeout:5E3},g.A(l,Gt("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",c),2);d=l.u;if(200!==d.xhr.status||!d.xhr.responseText)return l.return(null);e=d.xhr.responseText;f=/https:\/\/(.*)\.googlevideo.com/g;h=e.match(f);return l.return(h?h[0]:null)})})};
   uX=function(a,b){g.I.call(this);this.Ca=a;this.playerRequest=b;this.X=this.Ca.V();this.videoData=this.Ca.getVideoData();this.mj=g.yG(this.videoData);this.HJ=this.X.Tc;this.xF=new gX(this.HJ.i);this.xhr=null;this.Vk=new uS;this.HK=!1;this.playerResponse="";this.rO=new tX(this);this.eq=new kX(this);this.kA=new g.M(this.EK,1E4,this);this.UM=g.rE(this.X.experiments,"html5_onesie_progress_timeout_ms");this.jA=new g.M(this.EK,this.UM,this);this.bL=!1;this.iE=this.X.Bi;this.Dw="";this.Uw=this.X.N("html5_onesie_wait_for_media_availability");
   this.ME=this.gL=!1;g.J(this.videoData,this);g.J(this,this.kA);g.J(this,this.jA);this.X.N("html5_onesie_media_bytes")&&ZA()&&(this.Ce=new hX(this),g.J(this,this.Ce))};
   sGa=function(a,b,c){var d;null===(d=a.Ce)||void 0===d?void 0:(d.oa(),(a=d.Ne.get(b))&&!a.rf&&(a.ke.append(c),a.bytesReceived+=c.length,a.od&&a.od()))};
   lX=function(a){if(!a.playerResponse||a.gL)return!1;var b=a.videoData.N("html5_onesie_audio_only_playback")&&a.videoData.Jn(),c;if(c=a.Uw&&a.Ce){c=a.Ce;for(var d=!1,e=g.r(c.Ne.keys()),f=e.next();!f.done;f=e.next())f=c.Ne.get(f.value),(null===f||void 0===f?0:f.wk)&&0<(null===f||void 0===f?void 0:f.wk)&&(f.Ek?d=!0:b=!0);c=!(b&&d)}if(c)return!1;a.Xe("ofr");a.Vk.resolve(a.playerResponse);a.kA.stop();return a.gL=!0};
   IGa=function(a){if(!a.Qk)return{};var b=kV(a.Qk);b.d=QCa(a.Qk);b.ty="o";return b};
   NGa=function(a){function b(e){return(d.Ug&&!c.N("web_player_no_force_gvi")||!(c.Di?0:c.N("web_player_gvi_wexit")||(g.lF(c)?"TVHTML5"===c.deviceParams.c?Ana(c)?c.N("web_player_gvi_wexit_living_room_pangea"):c.N("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||SE(c)?c.N("web_player_gvi_wexit_living_room_simply"):wF(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_unplugged"):
   c.N("web_player_gvi_wexit_living_room_other"):1))&&!XG(d)?0:"yt"!==c.ya?38===d.Ka&&"books"===c.playerStyle||30===d.Ka&&"docs"===c.playerStyle||33===d.Ka&&"google-live"===c.playerStyle?0:c.N("web_player_gvi_wexit_all_player_styles"):"adunit"!==SG(d)||c.N("web_player_gvi_wexit_adunit"))?JGa(a,d).then(function(){vX(a,d)},function(f){vX(a,d,!0);
   throw f;}):KGa(a,d,e)}
   var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ea=!0;return LGa(a)?MGa(a,d).then(function(){vX(a,d)},function(e){e=LD(e);
   if(e.i)return vX(a,d,!0),Promise.reject(e);a.handleError(e);return b("onesie")}):b("gvi")};
   LGa=function(a){var b=a.V();if(!b.N("html5_onesie")||"yt"!==b.ya)return!1;b=b.Tc;if(!b||!b.i)return a.handleError(new g.KD("onesie.unavailable.hotconfig",!1,{key:"0"})),!1;b={};window.Uint8Array||(b.uint8="0");return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.KD("html5.missingapi",!1,b)),!1):!0};
   OGa=function(a){var b=pK();rra(b,a.nf());return g.nM(b,Uta())};
   MGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q;return g.B(d,function(t){if(1==t.i)return b.fetchType="onesie",e=Lua(b,a.getPlayerSize(),a.getVisibilityState()),f=new uX(a,e),g.A(t,f.fetch(),2);h=t.u;l={player_response:h};b.Ea=!1;b.ol=f.Ce;b.AD=f.AD;g.rG(b,l,!0);if(b.Ea||pG(b))return t.return(Promise.resolve());b.ol=void 0;m={};n="onesie.response";p=!1;b.errorCode?(n="auth",m.ec=b.errorCode,m.ed=b.errorDetail,m.es=b.ji||"",p=!0):(m.successButUnplayable="1",m.disposed=""+ +b.isDisposed(),
   m.afmts=""+ +/adaptiveFormats/.test(h),m.cpn=b.clientPlaybackNonce);q=new g.KD(n,p,m);return t.return(Promise.reject(q))})})};
   JGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t;return g.B(d,function(u){switch(u.i){case 1:e=b.isAd(),f=!e,h=e?1:3,l=0;case 2:if(!(l<h)){u.fb(4);break}if(!(0<l)){u.fb(5);break}return g.A(u,Ah(5E3),6);case 6:m=new g.dw("Retrying OnePlatform request",{attempt:l}),g.My(m);case 5:return ua(u,7),g.A(u,PGa(a,b),9);case 9:return u.return();case 7:n=wa(u);p=LD(n);q=p.errorCode;f&&"manifest.net.badstatus"===q&&"401"===p.details.rc&&(f=!1,l===h-1&&(h+=1));if("auth"===q||"manifest.net.retryexhausted"===
   q)return u.return(Promise.reject(p));a.handleError(p);if(p.i){u.fb(4);break}case 3:l++;u.fb(2);break;case 4:return t=e?"auth":"manifest.net.retryexhausted",u.return(Promise.reject(new g.KD(t,!0,{backend:"op"})))}})})};
   PGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t,u,x,y,z,G,F,C,K,S;return g.B(d,function(L){if(1==L.i)return b.fetchType="gp",e=OGa(b),f=Lua(b,a.getPlayerSize(),a.getVisibilityState()),h=g.YL(QGa),l=b.nf(),m=(0,g.Q)(),n=!1,p="empty",q=0,a.Xe("ps_s"),t=function(W){2===W.readyState&&a.Xe("ps_c")},u={Js:t},g.A(L,g.rK(e,f,h,void 0,u),2);
   x=L.u;a.Xe("ps_r");if(b.isDisposed())return L.return();x?x.error?(n=!0,p="esf:"+x.error.message,q=x.error.code):x.errorMetadata&&(n=!0,p="its",q=x.errorMetadata.status):n=!0;if(n)return y=a.V(),z=400===q||429===q,G=((0,g.Q)()-m).toFixed(),F={backend:"op",rc:""+q,rt:G,reason:p,has_kpt:b.zb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:y.pageId?"1":"0",has_token:l?"1":"0",has_vvt:b.La?"1":"0",is_mdx:b.isMdxPlayback?
   "1":"0",mdx_ctrl:b.Bg||"",token_eq:l===b.nf()?"1":"0"},C="manifest.net.connect",429===q?C="auth":200<q&&(C="manifest.net.badstatus"),L.return(Promise.reject(new g.KD(C,z,F)));b.Ea=!1;g.rG(b,{raw_player_response:x},!0);if(b.errorCode)return K={ec:b.errorCode,ed:b.errorDetail,es:b.ji||""},L.return(Promise.reject(new g.KD("auth",!0,K)));if(!b.Ea&&!pG(b))return S=b.isAd()?"auth":"manifest.net.retryexhausted",L.return(Promise.reject(new g.KD(S,!0,{successButUnplayable:"1",hasMedia:JG(b)?"1":"0"})));g.sa(L)})})};
   KGa=function(a,b,c){return g.H(this,function e(){var f,h,l,m,n,p,q,t,u,x;return g.B(e,function(y){switch(y.i){case 1:f=jua(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),h=function(){return!0},l=function(z){z=LD(z);
   if(z.i)return Promise.reject(z);a.handleError(z);return!1},n=(m=b.isAd())?1:3,p=0;
   case 2:if(!(p<n)){y.fb(4);break}q=f;if(!(0<p)){y.fb(5);break}return g.A(y,Ah(5E3),6);case 6:t={playerretry:p,playerretrysrc:c},m||(t.recover="embedded"),q=Rs(f,t);case 5:return g.A(y,RGa(b,q).then(h,l),7);case 7:if(u=y.u)return y.return();p++;y.fb(2);break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.My(new g.dw("b/152131571",btoa(f)))}catch(z){}return y.return(Promise.reject(new g.KD(x,!0,{backend:"gvi"})))}})})};
   RGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t,u,x,y,z;return g.B(d,function(G){if(1==G.i)return a.fetchType="gvi",e=a.V(),(l=kua(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Rs(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.jE(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0<
   Object.keys(m).length&&(f.headers=m),p=(0,g.Q)(),q=function(F){if(!a.isDisposed()){F=F?F.status:-1;var C=400===F||429===F,K=((0,g.Q)()-p).toFixed();K={backend:"gvi",rc:""+F,rt:K};var S="manifest.net.connect";429===F?S="auth":200<F&&(S="manifest.net.badstatus");return Promise.reject(new g.KD(S,C,K))}},t=function(F){return q(F.xhr)},g.A(G,TD(Gt,h,f).then(void 0,t),2);
   u=G.u;if(!u||!u.responseText)return G.return(q(u));a.Ea=!1;x=g.Ms(u.responseText);g.rG(a,x,!0,void 0);if(a.errorCode)return y={ec:a.errorCode,ed:a.errorDetail,es:a.ji||""},G.return(Promise.reject(new g.KD("auth",!0,y)));if(!a.Ea&&!pG(a))return z=a.isAd()?"auth":"manifest.net.retryexhausted",G.return(Promise.reject(new g.KD(z,!0,{successButUnplayable:"1"})));g.sa(G)})})};
   vX=function(a,b,c){c=void 0===c?!1:c;g.H(this,function e(){var f,h,l,m,n;return g.B(e,function(p){if(1==p.i){f=a.V();if(c&&(!g.yF(f)||"embedded"!==SG(b))||b.yp||"adunit"!==SG(b)&&(g.lF(f)||mF(f)||g.fF(f)||g.eF(f)||"WEB_CREATOR"===f.deviceParams.c))return p.return();ua(p,2);h=OGa(b);var q=b.V();g.Iv.getInstance();var t={context:g.XM(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===SG(b)&&(t.isAdPlayback=!0);q.embedConfig&&(t.serializedThirdPartyEmbedConfig=
   q.embedConfig);q.Ui&&(t.showContentOwnerOnly=!0);g.Kv(0,141)&&(t.autonavState=g.Kv(0,140)?"STATE_OFF":"STATE_ON");if(g.zF(q)){q=g.Kv(0,65);q=null!=q?!q:!1;var u=!!g.Lz("yt-player-sticky-caption");t.captionsRequested=q&&u}l=t;m=g.YL(SGa);a.Xe("wn_s");return g.A(p,g.rK(h,l,m),4)}if(2!=p.i)return n=p.u,a.Xe("wn_r"),n&&!n.error&&g.rG(b,{raw_watch_next_response:n},!1),va(p,0);wa(p);g.sa(p)})})};
   TGa=function(a){function b(){a.Xe("virc");WA("virc",void 0,"video_to_ad")}
   a.Xe("vir");WA("vir",void 0,"video_to_ad");var c=NGa(a);c.then(b,b);return c};
   g.zX=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new oG(a):m;n=void 0===n?!0:n;g.R.call(this);var p=this;this.X=a;this.playerType=b;this.Pb=c;this.jx=d;this.getVisibilityState=f;this.visibility=h;this.Yx=l;this.videoData=m;this.cR=n;this.Lu=new IFa(this.X);this.Hd=null;this.Ls=new cW;this.qk=null;this.Zf=new mW(this.X,this.jx,this);this.GK=!0;this.mediaSource=this.Xa=null;this.Dj=[];this.lm=new cX;this.Ee=this.Fw=null;this.mm=new cX;this.qA=null;this.KK=this.xs=!1;this.rA=NaN;this.bB=new g.M(this.YV,
   500,this);this.playerState=new g.SJ;this.tA=[];this.Dt=new g.uD;this.rk=new jW(this);this.ra=null;this.aq=new g.M(this.zU,15E3,this);this.YF=this.Yz=!1;this.rq=NaN;this.Zx=!1;this.LC=0;this.MC=new g.M(this.bG,4500,this);this.Uv=!1;this.Dz=NaN;this.rG=new jT(new Map([["bufferhealth",function(){var q=p.Nc;return q.ra?QJ(q.ra):0}],
   ["bandwidth",function(){return p.FD()}],
   ["networkactivity",function(){return p.X.schedule.Z}],
   ["livelatency",function(){return p.isAtLiveHead()&&p.Ec()?wX(p):NaN}],
   ["rawlivelatency",function(){return wX(p)}]]));
   this.Gz=0;this.loop=!1;this.playbackRate=1;this.pL=0;this.Nc=new XW(this);this.aJ=!1;this.sA=[];this.zE=this.aN=0;this.WF=this.wO=!1;this.BC=new g.M(this.UR,0,this);this.Fd=null;this.XL=new g.M(this.gR,0,this);this.yA=new g.M(this.wN,3E4,this);this.lT=[this.bB,this.Dt,this.BC,this.aq,this.yA,this.bB,this.MC,this.rG,this.XL];this.De=function(){var q=p.Xb;q.u.X.wc||3===q.u.Ca.getVisibilityState()||(q.u.X.wc=!0);tFa(q);if(q.B){var t=q.B;t.J&&0>t.u&&3!==t.i.Ca.getVisibilityState()&&PEa(t)}q.qoe&&(q=q.qoe,
   q.Ka&&0>q.B&&q.i.X.wc&&aFa(q));g.rE(p.X.experiments,"html5_background_quality_cap")&&p.Xa&&LV(p);p.X.dk&&!p.videoData.backgroundable&&p.ra&&!p.qf()&&(p.isBackground()&&p.ra.Ix()?(p.Ba("bgmobile","suspend"),p.pm(!0)):p.isBackground()||xX(p)&&p.Ba("bgmobile","resume"))};
   this.oa();this.Ah=new LW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.nA("endcr")||g.U(p.playerState,32)||DS(p);
   e(q,t,p.playerType)});
   g.J(this,this.Ah);g.J(this,this.Nc);UGa(this,m);this.videoData.subscribe("dataupdated",this.kW,this);this.videoData.subscribe("dataloaded",this.YC,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ba,this);VGa(this);AAa(this.De);this.visibility.subscribe("visibilitystatechange",this.De);this.videoData.Ja&&WGa(this);!spa(this.videoData)&&ypa(this.videoData)||XGa(this);1===this.playerType&&yX.isActive()&&this.yA.start()};
   UGa=function(a,b){if(2===a.playerType||a.X.jl)b.hH=!0;var c=soa(b.uc,b.Uq,a.X.i,a.X.u);c&&(b.adFormat=c);2===a.playerType&&(b.Nk=!0);if(a.isFullscreen()||a.X.i)c=g.Lz("yt-player-autonavstate"),b.autonavState=c||(a.X.i?2:a.videoData.autonavState);YGa(a,b)};
   VGa=function(a){!a.Xb||a.Xb.isDisposed();a.Xb=new g.KW(new JW(a.videoData,a.X,a,function(){return a.Yx.Dh()}))};
   bI=function(a){return a.ra&&a.ra.Po()?a.ra.Me():null};
   AX=function(a){if(a.videoData.isValid())return!0;a.Kf("api.invalidparam",void 0,"invalidVideodata.1");return!1};
   WGa=function(a){var b=a.Yx.Kc();a.videoData.rl=a.videoData.rl||(null===b||void 0===b?void 0:b.ID());a.videoData.ul=a.videoData.ul||(null===b||void 0===b?void 0:b.JD())};
   kS=function(a,b){(b=void 0===b?!1:b)||sFa(a.Xb);a.xs=b;!AX(a)||a.lm.started?g.lF(a.X)&&a.videoData.isLivePlayback&&a.lm.started&&!a.lm.isFinished()&&!a.xs&&a.YC():(a.lm.start(),b=a.Xb,g.CS(b.u),b.qoe&&$Ea(b.qoe),a.YC())};
   ZGa=function(a){var b=a.videoData;TGa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=LD(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Kf("auth",unescape(a.videoData.errorReason),g.JD(c.details),a.videoData.errorDetail,a.videoData.ji||void 0):a.handleError(c))})};
   DAa=function(a,b){a.Fd=b;a.Xa&&yDa(a.Xa,new g.PV(b))};
   $Ga=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.oa(),4!==a.playerType&&(a.Dj=g.Db(a.videoData.ya)),JG(a.videoData)){BX(a).then(function(){a.isDisposed()||(a.xs&&(a.Ub(UJ(UJ(a.playerState,512),1)),xX(a)),YGa(a,a.videoData),a.lm.i=!0,CX(a,"dataloaded"),a.mm.started&&DX(a),OEa(a.Zf,a.Ee))});
   a.N("html5_log_media_perf_info")&&a.Ba("loudness",""+a.videoData.ye.toFixed(3),!0);var b=zpa(a.videoData);b&&a.Ba("playerResponseExperiment",b,!0);a.KC()}else CX(a,"dataloaded")};
   BX=function(a){EX(a);a.Ee=null;var b=KFa(a.X,a.videoData,a.qf());a.Fw=b;a.Fw.then(function(c){aHa(a,c)},function(c){a.isDisposed()||(c=LD(c),a.visibility.isBackground()?(FX(a,"vp_none_avail"),a.Fw=null,a.lm.reset()):(a.lm.i=!0,a.Kf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.JD(c.details))))});
   return b};
   kW=function(a){a.oa();BX(a).then(function(){return xX(a)});
   g.YJ(a.playerState)&&a.playVideo()};
   aHa=function(a,b){a.isDisposed()||b.videoData.isDisposed()||(a.oa(),a.Ee=b,VFa(a.Nc,a.Ee),a.videoData.isLivePlayback&&(0<a.videoData.kc&&!CG(a.videoData)||a.seekTo(a.hd(),{Td:"videoplayer_playbackData"})),a.videoData.B.i?a.Xa?g.My(Error("Duplicated Loader")):bHa(a):!a.videoData.B.i&&YG(a.videoData)&&a.Hs(new FU(a.videoData.videoId||"",4)),GX(a),EEa(a.Zf,b).then(function(){a.xt();HX(a)}))};
   IX=function(a){a.oa();a.ra&&a.ra.wr();kS(a);AX(a)&&!g.U(a.playerState,128)&&(a.mm.started||(a.mm.start(),a.Ub(UJ(UJ(a.playerState,8),1))),DX(a))};
   DX=function(a){a.isDisposed();a.oa();if(a.mm.isFinished())a.oa();else if(a.lm.isFinished())if(g.U(a.playerState,128))a.oa();else if(a.Dj.length)a.oa();else{if(!a.Ah.started){var b=a.Ah;b.started=!0;b.bl()}if(a.Tl())a.oa();else{a.Xa&&(b=a.Xa.timing,a.KK=!!b.i&&!!b.u);a.mm.isFinished()||(a.mm.i=!0);if(b=a.N("html5_onesie_live")&&a.Xa){b=a.Xa;var c=b.videoTrack.u&&-1===b.videoTrack.u.Ma,d=b.audioTrack.u&&-1===b.audioTrack.u.Ma;b=(CDa(b.videoTrack)||CDa(b.audioTrack))&&(c||d)}!a.videoData.isLivePlayback||
   0<a.videoData.kc&&!CG(a.videoData)||b||(a.oa(),a.seekTo(Infinity,{Td:"videoplayer_readying"}),a.isBackground()&&(a.YF=!0));b=a.Xb;b.qoe&&(b=b.qoe,b.i.videoData.Rj&&vW(b,b.i.videoData.Rj),b.i.videoData.isLivePlayback&&(c=b.i.videoData.i,CG(b.i.videoData)&&vW(b,"manifestless"),c&&cE(c)&&vW(b,"live-segment-"+cE(c).toFixed(1))),"yt"!==b.i.X.ya&&(b.u.len=[b.i.videoData.lengthSeconds.toFixed(2)]),b.i.videoData.cotn&&!YG(b.i.videoData)&&XEa(b,!0),b.i.videoData.Y&&(c=WEa())&&b.Ba("cblt",c),WG(b.i.videoData)?
   vW(b,b.i.videoData.enableServerStitchedDai?"ssdai":"csdai"):b.i.videoData.JE&&vW(b,"dsdai"));a.oa();a.ea("playbackready",a);VA("pbr",a.Pb.timerName)||(a.Pb.tick("pbr"),WA("pbr",void 0,"video_to_ad"))}}else a.oa()};
   DS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.ra&&a.ra.pause();b=b?new g.SJ(14):new g.SJ;a.Ub(b)};
   YGa=function(a,b){b.endSeconds&&b.endSeconds>b.startSeconds&&(b=b.endSeconds,a.qk&&(a.removeCueRange(a.qk),a.qk=null),a.qk=new g.lA(1E3*b,0x7ffffffffffff),a.qk.namespace="endcr",a.addCueRange(a.qk))};
   KX=function(a,b,c,d){a.videoData.u=c;d&&MV(a,b,d);d=(d=g.JX(a))?d.lc():"";a.Xb.Cw(new xEa(a.videoData,c,b,d));c=a.Zf;c.B=0;c.i=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)};
   g.JX=function(a){var b=LX(a);return gB(b)||!a.Ee?null:g.tb(a.Ee.i.videoInfos,function(c){return b.C(c)})};
   MV=function(a,b,c){if(c!==a.videoData.K){var d=!a.videoData.K;a.videoData.K=c;"m"!==b&&(b=d?"i":"a");a.Xb.uw(new xEa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}};
   OV=function(a,b){a.oa();b&&a.Sd(new g.KD("qoe.restart",!1,b));MX(a);b=a.videoData.i&&qB(a.videoData.i);var c=a.ra&&a.ra.isView();b||c?(a.Xa&&mDa(a.Xa),iW(a)):(a.Ub(UJ(a.playerState,16)),xX(a),g.YJ(a.playerState)&&a.playVideo())};
   LX=function(a){if(a.Ee){var b=a.Zf;var c=a.Ee;a=a.Xr();var d=BEa(b);if(gB(d)){d=CEa(b,c);var e=DEa(c),f=KEa(b,c),h=NEa(b,c.videoData,c),l=LEa(b);var m=4320;!b.X.isMobile||g.cF(b.X)||cu()||b.X.N("hls_for_vod")||(m=g.eB.medium);var n=g.rE(b.X.experiments,"html5_default_quality_cap");if(n){var p=!!c.i.i&&!c.videoData.Bg&&!c.videoData.Bd,q=g.rE(b.X.experiments,"html5_quality_cap_min_age_secs");p&&q&&(p=b.X.schedule.S,p=(0,g.Q)()-p>1E3*q);p&&(m=Math.min(m,n))}n=g.rE(b.X.experiments,"html5_random_playback_cap");
   q=/[a-h]$/;n&&q.test(c.videoData.clientPlaybackNonce)&&(m=Math.min(m,n));(n=g.rE(b.X.experiments,"html5_not_vp9_supported_quality_cap"))&&!xD('video/webm; codecs="vp9"')&&(m=Math.min(m,n));if(q=n=g.rE(b.X.experiments,"html5_hfr_quality_cap"))a:{q=c.i;if(q.i)for(q=g.r(q.videoInfos),p=q.next();!p.done;p=q.next())if(32<p.value.video.fps){q=!0;break a}q=!1}q&&(m=Math.min(m,n));(n=g.rE(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(m=Math.min(m,n));m=MEa(b,c,m);m=new cB(0,4320===
   m?0:m,!1,"d");n=yEa(b,c);q=n.compose;var t;a:if((p=c.i)&&p.videoInfos.length){for(var u=g.r(p.videoInfos),x=u.next();!x.done;x=u.next())if(x=x.value,null===(t=x.u)||void 0===t?0:t.smooth){t=x.video.i;break a}t=p.videoInfos[0].video.i}else t=0;Vt()&&!g.lF(b.X)&&oD(c.i.videoInfos[0])&&(t=Math.min(t,g.eB.large));t=new cB(0,t,!1,"o");d=q.call(n,t).compose(m).compose(l).compose(h).compose(f).compose(e).compose(d)}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(KEa(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&
   (d=d.compose(DEa(c)));b.N("html5_varispeed_playback_rate")&&(d=d.compose(CEa(b,c)));b=c.videoData.Sq.compose(d).compose(c.videoData.YL).compose(a)}else b=nG;return b};
   Mza=function(a,b,c){a.videoData.Sq=b;if(a.Ee&&c){c=a.Zf;var d=a.Ee,e,f;if(d.i.i){var h=eE(),l=d.i.videoInfos[0].video.i;if(!(h>l&&0!==l&&b.i===l)){1<c.playbackRate&&c.N("html5_varispeed_playback_rate")&&(h=Vma(c.X.B,d.i.videoInfos,c.playbackRate),0!==b.i&&h<b.i&&c.Ca.setPlaybackRate(1));d=(null===(f=null===(e=d.videoData.u)||void 0===e?void 0:e.video)||void 0===f?void 0:f.i)||0;g.Kz("yt-player-quality",{quality:g.eB[iB(b)],previousQuality:d},31104E3);c.X.schedule.policy.C=480<=eE();if(c.N("html5_exponential_memory_for_sticky")){b=
   c.X.uc;e=1;var m=void 0===m?!1:m;kna(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Rl["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Rl["sticky-lifetime"]=0);m&&.0625<LE(b,"sticky-lifetime")&&(e=2*b.Rl["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/e);b.Rl["sticky-lifetime"]=e;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){m=fE();c=g.r(Object.keys(m));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(m[b]=0);
   g.Kz("yt-player-performance-cap",m,604800)}else g.Mz("yt-player-performance-cap")}}}GX(a)};
   GX=function(a){if(!a.isDisposed()&&!g.U(a.playerState,128)&&a.videoData.B){if(a.videoData.B.i)HX(a);else{var b=LX(a),c=a.videoData;a:{var d=a.videoData.Hb;if(b.i){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.mf(),l=g.eB[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Za=d;KX(a,b.reason,cHa(a,a.videoData.Za))}if(a.N("html5_check_unstarted")?g.YJ(a.playerState):a.Ec())a.Nc.La=!1,a.playVideo()}};
   HX=function(a){if(a.videoData.B&&a.videoData.B.i){var b=LX(a);if(a.Xa&&(a=a.Xa,!a.isDisposed()&&!dB(a.u.B,b)&&a.videoTrack)){a.oa();var c=a.u.B;rDa(a,MBa(a.u,b));DV(a);var d=xU(a.u)&&"m"===b.reason&&a.u.Y,e=a.policy.Ui&&"l"===b.reason&&gV(a.videoTrack);b=c.i>b.i&&"b"===b.reason;c=a.u.Ya&&!ND();d||e||b||c?OV(a.Ca,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.Jq(a.Z)}}};
   LV=function(a){a.N("html5_update_constraint")?HX(a):GX(a)};
   eHa=function(a){var b=dHa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Ac.getName()===b})};
   dHa=function(a){var b;if(a=null===(b=a.ra)||void 0===b?void 0:b.audioTracks())for(var c=0;c<a.length;++c){var d=a[c];if(d.enabled)return d.label}};
   bHa=function(a){xma(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.X.deviceParams.c,cver:a.X.deviceParams.cver});var b=a.X,c=a.videoData,d=new g.Uua(b),e=Tua(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Bk:c.Bk});d.D=e;d.ma=g.rE(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.uc=g.rE(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Kq=g.rE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.kc=g.rE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
   d.Lq=g.rE(b.experiments,"html5_subsegment_readahead_min_load_speed");d.dh=g.rE(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Mq=g.rE(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Qf=b.N("html5_peak_shave");d.Up=b.N("html5_restrict_streaming_xhr_on_sqless_requests");d.Yj=g.rE(b.experiments,"html5_max_headm_for_streaming_xhr");d.ol=b.N("html5_pipeline_manifestless_allow_nonstreaming");d.wl=b.N("html5_prefer_server_bwe3");d.Kh=1024*g.rE(b.experiments,"html5_video_tbd_min_kb");
   d.Rj=b.N("html5_last_slice_transition");d.Gq=b.N("html5_store_xhr_headers_readable");d.zb=g.rE(b.experiments,"html5_probe_primary_delay_base_ms")||d.zb;d.Pf=b.N("html5_no_placeholder_rollbacks");d.Jq=b.N("html5_subsegment_readahead_enable_mffa");b.N("html5_allow_video_keyframe_without_audio")&&(d.ya=!0);d.Og=b.N("html5_reattach_on_stuck");d.No=b.N("html5_webm_init_skipping");d.Tg=g.rE(b.experiments,"html5_request_size_padding_secs")||d.Tg;d.dd=b.N("html5_abs_buffer_health");d.Qj=b.N("html5_interruption_resets_seeked_time");
   d.Ge=g.rE(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Ge;d.wh=b.N("html5_explicitly_dispose_xhr");d.Lp=b.N("html5_restart_on_unexpected_detach");d.Vp=b.N("html5_rewrite_manifestless_for_continuity");d.Nd=g.rE(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.ye=g.rE(b.experiments,"html5_max_drift_per_track_secs");d.Xp=b.N("html5_rewrite_manifestless_for_sync");d.ac=g.rE(b.experiments,"html5_static_abr_resolution_shelf");d.Oi=!b.N("html5_encourage_array_coalescing");d.Mj=
   b.N("html5_crypto_period_secs_from_emsg");d.Zi=b.N("html5_filter_non_efficient_formats_for_safari");d.Sq=b.N("html5_format_hybridization");d.Ei=b.N("html5_abort_before_separate_init");d.mq=b.N("html5_serialize_server_stitched_ad_request");d.hf=b.N("html5_never_pause_appends");d.ek=g.rE(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Wi=b.N("html5_mfl_extend_max_request_time");d.tq=b.N("html5_enable_server_stitched_alr");d.Gi=b.N("html5_attach_po_token_to_bandaid");b.N("html5_allow_video_keyframe_without_audio")&&
   (d.ya=!0);0<g.rE(b.experiments,"html5_max_redirect_response_length")&&(d.Ye=g.rE(b.experiments,"html5_max_redirect_response_length"));e=g.rE(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.yp=e);d.Mb=b.N("html5_rewrite_timestamps_for_webm");d.Ka=b.N("html5_only_media_duration_for_discontinuities");b.N("html5_server_stitch_on_content_only_killswitch")&&(d.jl=!0);b.N("html5_media_common_config_killswitch")||(d.J=c.maxReadAheadMediaTimeMs/1E3||d.J,e=b.schedule,e.B.qg()===e.policy.B?
   d.Aa=10:d.Aa=c.minReadAheadMediaTimeMs/1E3||d.Aa,d.qd=c.readAheadGrowthRateMs/1E3||d.qd);Ul&&(d.Ea=41943040);d.Ya=!SD();g.lF(b)||!SD()?(e=b.experiments,d.K=8388608,d.Z=524288,d.Mi=5,d.jb=2097152,d.Ja=1048576,d.Uo=1.5,d.ll=!1,d.Nb=4587520,Yt()&&(d.Nb=786432),d.B*=1.1,d.C*=1.1,d.Hb=!0,d.Ea=d.K,d.qb=d.Z,d.Tc=e.ob("persist_disable_player_preload_on_tv")||e.ob("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&(d.B*=1.3,d.C*=1.3);g.ej&&Tt("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,
   d.K=20971520,d.Z=1572864,e&&(d.Nb=812500,d.cd=1E3,d.Mo=5,d.Ja=2097152));!b.N("html5_disable_firefox_init_skipping")&&g.fj&&(d.Hb=!0);b.supportsGaplessAudio()||(d.Nj=!1);UE&&(d.Ra=!0);var f;e=null===(f=c.i)||void 0===f?void 0:qB(f);if(CG(c)){d.wc=!0;d.Pj=!0;d.Ka=!0;d.Mb=!0;d.Fq=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.N("html5_disable_low_pipeline"))d.Tj=2,d.Zj=4;d.Hl=c.defraggedFromSubfragments;c.Qd&&(d.xl=!0);g.KG(c)&&(d.Ua=!1);d.Si=g.xF(b)}c.isAd()&&(d.vb=0,d.zd=0);epa(c)&&
   (d.La=!0,b.N("html5_aggressive_timeout_for_streaming_xhr")&&(d.cd=400,d.Db*=3,d.Xj=2,d.Yh=3,d.Wg=1.4));d.Za=b.N("html5_enable_subsegment_readahead_v3")||b.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.eb=c.Y;d.Y=d.eb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.yG(c));hu()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.N("html5_disable_move_pssh_to_moov")&&e&&(d.Hb=!1);e&&(d.Og=!1);var h=0;b.N("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,
   c.isLivePlayback&&(h=g.rE(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.ma.i=CG(c)?.5:0;if(!f.policy.i&&h&&(f=f.B,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.u?f.i:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.i);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.i];for(;p<h;++p)l[p]=Infinity;f.i=h;f.values=l;f.valueIndex=
   m%h;f.u=m===h;f.C=!0;f.J=cna(f)}d.hf=c.isLivePlayback;switch(DG(c)){case 21530001:d.Di=b.N("html5_live_smoothly_extend_max_seekable_time");d.Za=!0;"LOW"===c.latencyClass?d.ma=g.rE(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.ma=g.rE(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Pf=!0;break;case 2153E4:d.Za=!1}d.Ra=d.Ra||c.tu;d.Zb=c.Ja;g.yG(c)&&(d.kb=!0);c.Ja&&!e&&b.N("html5_hack_gapless_init")&&(d.Ug=!0);(e=g.rE(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&
   c.Ja&&c.isAd()&&(d.B*=e,d.C*=e);YG(c)&&(d.u=c.videoId,b.N("html5_wofflec")&&(d.Oj=!0),d.dd=!0,d.Lo=4,c.jl&&0<c.jl.length&&(d.Fc=c.jl));d.Ui=c.Og;d.S=iE(b,{},c.B||void 0);c=480<=eE();e=g.rE(b.experiments,"html5_deadzone_multiplier")||1;(f=g.rE(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.B*=e;d.C*=e;if(e=g.rE(b.experiments,"html5_request_sizing_multiplier"))d.tp=e;oB(b.B,pB.BITRATE)&&(d.Nb=NaN);b.B.u&&(d.Vi="; "+pB.EXPERIMENTAL.name+"=allowed");c&&(d.ac=0);d.Ro=b.N("html5_rec_2020_matrix_correction_killswitch");
   b.N("html5_prefer_low_quality_audio_means_64k")&&UE&&(d.vl=!0);b.N("debug_html5_random_stun_format")&&(d.Kg=!0);b.N("html5_log_audio_abr")&&(d.Sj=!0);b=a.getAudioTrack();b=b.Ac.isDefault?void 0:b;dW(a.Ls);c=a.X.schedule;e=a.videoData.i;f=a.videoData.B;h=LX(a);l=a.videoData.enableServerStitchedDai;m=a.videoData;n=m.ol;delete m.ol;a.Xa=new g.zV(a,c,d,e,f,h,b,l,n,a.X.Bi);d=fHa(a)?!0:a.xs&&g.lF(a.X)&&a.videoData.isLivePlayback;a.Xa.initialize(a.getCurrentTime(),LX(a),d);a.videoData.probeUrl&&(a.Xa.Ja=
   a.videoData.probeUrl);(a.Dj.length||a.xs)&&NX(a,!1);$W(a.Nc,a.Xa);a.Fd&&yDa(a.Xa,new g.PV(a.Fd));g.ZG(a.videoData)&&(a.Xa.policy.Yi=2)};
   EX=function(a){a.Xa&&(a.Xa.dispose(),a.Xa=null,$W(a.Nc,null));MX(a)};
   MX=function(a){if(a.mediaSource){a.oa();if(a.Xa){var b=CG(a.videoData)&&a.videoData.Qd&&!a.videoData.isAd();GV(a.Xa,b)}a.mediaSource.dispose();a.mediaSource=null}};
   gHa=function(a){if(a.mediaSource)return a.mediaSource.gw;a.oa();a:if(a.N("html5_application_media_source"))a.ea("requestmediasource",a);else{try{var b=a.ra.Ep()}catch(c){if(lW(a.rk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",c);a.Kf("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}yS(a,b)}return a.mediaSource?a.mediaSource.gw:null};
   yS=function(a,b){hHa(a);a.mediaSource=b;Wla(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.oa();var d=a.getDuration();!d&&CG(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,a.oa(),c>a.mediaSource.getDuration()&&a.mediaSource.Ej(c)):a.mediaSource.Ej(d);var e=a.Xa,f=a.mediaSource;e.Y&&(e.oa(),FV(e),e.Y=!1);e.oa();nDa(e);if(!f.i&&!f.u){var h=e.videoTrack.i.info.mimeType+e.policy.Vi,l=e.audioTrack.i.info.mimeType,m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),
   q="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.Ke&&(f.Ke.webkitSourceAddId("0",l),f.Ke.webkitSourceAddId("1",h));var t=new MD(p,f.Ke,"0",lD(l),!1),u=new MD(q,f.Ke,"1",lD(h),!0);f.i=t;f.u=u;g.J(f,t);g.J(f,u)}WU(e.videoTrack,f.u||null);WU(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();ny(f.i,e.Ra,e);ny(f.u,e.Ra,e);try{e.uh()}catch(x){g.Ly(x)}a.ea("mediasourceattached")}}catch(x){g.My(x),a.handleError(new g.KD("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})};
   hHa=function(a){a.Xa?g.qh(a.Xa.seek(a.getCurrentTime()-a.Uc()),function(){}):bHa(a)};
   iW=function(a,b){b=void 0===b?!1:b;return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return e.Xa&&e.Xa.isDisposed()&&EX(e),e.ea("newelementrequired"),b?g.A(f,BX(e),2):f.fb(2);g.U(e.playerState,8)&&e.playVideo();g.sa(f)})})};
   xAa=function(a,b){a.Ba("newelem",b);iW(a)};
   OX=function(a){a.Pb.B.cF();g.U(a.playerState,32)||(a.Ub(UJ(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Qb()};
   PS=function(a){g.U(a.playerState,32)?(a.Ub(WJ(a.playerState,16,32)),a.ea("endseeking",a)):g.U(a.playerState,2)||a.Ub(UJ(a.playerState,16));a.Pb.B.iF(a.videoData.clientPlaybackNonce,g.U(a.playerState,4))};
   XGa=function(a){var b=a.videoData.errorDetail;a.Kf("auth",unescape(a.videoData.errorReason),b,b,a.videoData.ji||void 0)};
   CX=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
   iHa=function(a){g.Qb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Dt.T(this.ra,b,this.wF,this)},a);
   a.X.Si&&a.ra.Po()&&(a.Dt.T(a.ra,"webkitplaybacktargetavailabilitychanged",a.zT,a),a.Dt.T(a.ra,"webkitcurrentplaybacktargetiswirelesschanged",a.AT,a))};
   kHa=function(a){a.N("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&jHa(a)&&a.bB.start()};
   jHa=function(a){if(!a.ra)return!1;var b=a.ra.getCurrentTime();a=a.ra.getDuration();return!!(1<b&&b>a-.3)};
   lHa=function(a){window.clearInterval(a.rA);PX(a)||(a.rA=vt(function(){return PX(a)},100))};
   PX=function(a){var b=a.ra;b&&a.Yz&&!a.videoData.qb&&!VA("vfp",a.Pb.timerName)&&2<=b.rh()&&!b.Gk()&&0<GD(b.Uf())&&a.Pb.tick("vfp");return(b=a.ra)&&!a.videoData.qb&&0<b.getDuration()&&(!VA("pbp",a.Pb.timerName)&&b.al()&&2<=b.rh()&&0<GD(b.Uf())&&a.Pb.tick("pbp"),b=b.getCurrentTime(),MW(a.Lu,b))?(qAa(a),!0):!1};
   qAa=function(a){window.clearInterval(a.rA);a.aq.stop();a.videoData.qb=!0;a.X.Pj=!0;a.X.Ya=0;var b=a.rk,c=b.videoData.u;c&&b.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.B.i.delete(c.i);b.u.stop();a.X.Jh=a.videoData.vu;a.videoData.dJ=!0;mHa(a);g.U(a.playerState,8)&&a.Ub(VJ(a.playerState,65));b=a.Xb;b.i&&mFa(b.i);b.B&&(b=b.B,c=g.CS(b.i),0>b.u&&(b.u=c,b.delay.start()),b.B=c,b.D=c);g.Jq(a.MC);a.ea("playbackstarted");g.Su()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))?
   a():Uu(0))};
   mHa=function(a){var b=a.getCurrentTime(),c=a.videoData;!VA("pbs",a.Pb.timerName)&&yA.measure&&yA.getEntriesByName&&(yA.getEntriesByName("mark_nr")[0]?mka("mark_nr"):mka());c.videoId&&a.Pb.info("docid",c.videoId);c.eventId&&a.Pb.info("ei",c.eventId);c.clientPlaybackNonce&&a.Pb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Pb.info("start",c.startSeconds.toString());a.ra&&a.ra.al()&&a.Pb.info("paused",1);c.u?a.Pb.info("fmt",c.u.lc()):a.Pb.info("fmt","-1");c.zd&&a.Pb.info("yt_pre",a.KK?"2":"1");
   a.isFullscreen()&&a.Pb.info("yt_fs","1");a.Pb.info("cmt",b.toFixed(3));if(a.Xa){b=a.Xa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("vrc",c.responseEnd))),b.i&&(c=window.performance.getEntriesByName(b.i),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),
   b.tick("areq",c.requestStart),b.tick("avb",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var d in b)b.hasOwnProperty(d)&&a.Pb.tick(d,b[d])}};
   nHa=function(a){a.Xb.od();if(a.videoData.isLivePlayback&&Date.now()>a.pL+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&$D(a.videoData.i))){var b=a.Xb;if(b.qoe){b=b.qoe;var c=b.i.Ca.iz(),d=g.CS(b.i);ZEa(b,d,c);c=c.D;isNaN(c)||g.qW(b,d,"e2el",[c.toFixed(3)])}}g.xF(a.X)&&a.Ba("rawlat","l."+lT(a.rG,"rawlivelatency").toFixed(3));a.pL=Date.now()}a.videoData.u&&rD(a.videoData.u)&&(b=bI(a))&&b.videoHeight!==a.zE&&(a.zE=b.videoHeight,KX(a,"a",cHa(a,a.videoData.Za)))};
   cHa=function(a,b){if("auto"===b.i.video.quality&&rD(b.mf())&&a.videoData.Hb)for(var c=g.r(a.videoData.Hb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.zE&&"auto"!==d.i.video.quality)return d.mf();return b.mf()};
   wX=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Xa&&a.videoData.i&&(b=CG(a.videoData)?a.Xa.Ka.qg()||0:a.videoData.i.ya);return Date.now()/1E3-a.getIngestionTime()-b};
   oHa=function(a){!a.N("html5_ignore_airplay_events_on_new_video_killswitch")&&a.ra&&a.ra.qf()&&(a.Dz=(0,g.Q)());a.X.ul?g.ut(function(){QX(a)},0):QX(a)};
   QX=function(a){if(a.ra)try{a.qA=a.ra.playVideo()}catch(c){FX(a,"err."+c)}if(a.qA){var b=a.qA;b.then(void 0,function(c){a.oa();if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.qA===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.oa();else{var d="promise";c&&c.name&&(d+=";m."+c.name);FX(a,d);a.aJ=!0;a.X.N("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.LK=!0)}})}};
   FX=function(a,b){g.U(a.playerState,128)||(a.Ub(WJ(a.playerState,1028,9)),a.Ba("dompaused",b),a.ea("onDompaused"),a.ea("onAutoplayBlocked"))};
   xX=function(a){if(!a.ra||!a.videoData.B)return!1;var b,c,d=null;(null===(c=a.videoData.B)||void 0===c?0:c.i)?(d=gHa(a),null===(b=a.Xa)||void 0===b?void 0:b.resume()):(EX(a),a.videoData.Za&&(d=a.videoData.Za.Vt()));b=d;d=a.ra.Ix();c=!1;d&&null!==b&&b.i===d.i||(pHa(a,b),c=!0);g.U(a.playerState,2)||(b=a.Nc,b.D||!(0<b.B)||b.ra&&0<b.ra.getCurrentTime()||b.seekTo(b.B,{Td:"playbacktimeline_resumeTime"}));a:if(b=c,g.FG(a.videoData)&&a.ra)if((d=a.videoData.J)&&a.ra.Po()){var e=a.ra.Me();if(a.Hd)if(e!==a.Hd.element)RX(a);
   else if(b&&"fairplay"===d.flavor&&!Xt())RX(a);else break a;a.Hd=new fW(e,a.videoData,a.X);a.Hd.subscribe("licenseerror",a.bA,a);a.Hd.subscribe("qualitychange",a.wU,a);a.Hd.subscribe("heartbeatparams",a.zw,a);a.Hd.subscribe("keystatuseschange",a.Wn,a);a.Hd.subscribe("ctmp",a.Ba,a);b=g.r(a.Ls.keys);for(d=b.next();!d.done;d=b.next())d=a.Ls.get(d.value),a.Hd.Is(d);a.N("html5_eme_loader_sync")||dW(a.Ls)}else a.Kf("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
   pHa=function(a,b){var c;a.Pb.tick("vta");WA("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&XFa(a.Nc,a.getCurrentTime());a.ra.wr(b);a.mediaSource&&Uu(4);!a.videoData.qb&&g.YJ(a.playerState)&&a.aq.start();a.N("html5_native_audio_track_switching")&&(b=null===(c=a.ra)||void 0===c?void 0:c.audioTracks())&&(b.onchange=function(){a.ea("internalaudioformatchange",a.videoData,!0)})};
   RX=function(a){a.Hd&&(a.Hd.dispose(),a.Hd=null)};
   zS=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.N("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.U(a.playerState,4))||a.Xl()||g.KG(a.videoData))?a.getCurrentTime():a.hd(b)};
   qHa=function(a){a.oa();a.ra&&(a.mediaSource?(RX(a),MX(a),gHa(a)):(a.videoData.Za&&a.videoData.Za.aG(),a.ra.stopVideo()),a.playVideo())};
   SX=function(a,b){a.X.N("html5_log_rebuffer_reason")&&a.Ba("bufreason","r."+b+";lact."+Zu())};
   KS=function(a,b,c,d,e,f){var h;if(null===(h=a.videoData.i)||void 0===h?0:h.isLive){var l=2===c.playerType?c:b,m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.Xb;if(p.qoe){p=p.qoe;var q=b.cpn,t=c.cpn,u=l.videoData.uc,x=p.i.videoData.clientPlaybackNonce,y=p.i.videoData.videoId,z=t!==x&&n!==y;x=q!==x&&m!==y;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=x?q:"",p.Z=x?m:"",p.adFormat=x?u:void 0,bFa(p,f?2:0,t,n,e),p.reportStats(),p.adCpn=z?t:"",p.Z=z?n:"",p.adFormat=z?u:void 0,bFa(p,f?3:1,
   q,m,d),p.reportStats())}d=a.Xb;b=b.cpn;d.C.has(b)?(f=d.C.get(b),HW(f).send(),g.wt(f.B),f.B=NaN,d.u.X.N("watch_time_greater_than_playback_time_fix_killswitch")||b===d.u.videoData.clientPlaybackNonce||(IW(f),d.C.delete(b))):(d.Sf=d.u.videoData.clientPlaybackNonce,d.Sf&&d.i&&d.C.set(d.Sf,d.i));a=a.Xb;c=c.cpn;l=l.videoData;var G;a.C.has(c)?null===(G=a.C.get(c))||void 0===G?void 0:G.C&&isNaN(G.B)&&FW(G,!1):(e=xFa(a,a.u,l,e),a.C.set(c,e),mFa(e));a.Sf=c}}};
   rHa=function(a,b){if(a.videoData.Y){var c=g.rE(a.X.experiments,"html5_log_rebuffer_events");if(c&&a.ra){var d=a.ra.Ib();d.rt=(1E3*g.CS(a.Xb.u)).toFixed();d.e=b.substr(0,3);a.sA[a.aN++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.oa()};
   sHa=function(a){if(a.videoData.Y){a.sA.sort(function(d,e){return+d.rt-+e.rt});
   for(var b=g.r(a.sA),c=b.next();!c.done;c=b.next())c=c.value,a.Ba("vpe","t."+c.rt+";"+g.JD(c));a.sA=[];a.aN=0}};
   tHa=function(a){if(Tt("cobalt")&&Tt("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ba("nxdock",""+ +b)}};
   pAa=function(a,b,c,d,e){a.Ba("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
   NX=function(a,b){EV(a.Xa,b||fHa(a))};
   fHa=function(a){var b=a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.lF(a.X),c=a.N("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.wb(a.Dj,"ad")};
   sDa=function(a){var b=a.X.Tg||"";a.videoData.N("html5_session_po_token_interval_time_ms")||nF(a.X);return b};
   g.WX=function(a,b,c){g.I.call(this);var d=this;this.jw=this.pg=!1;this.zx={};this.GC={};this.zA={};this.Vs=[];this.RK=!1;this.pE=null;this.ZK=!1;this.Sp=!0;this.kG=!1;this.uL=this.BE=null;this.AL=!0;this.ra=this.Sb=null;this.Ew=!1;this.EN=this.Nw=this.tb=this.playlist=null;this.gx=void 0;this.Fo=0;this.Yc=this.Ht=this.Ti=null;this.oa();this.config=Lia(b||{});this.webPlayerContextConfig=c;Lha();b=this.config.args||{};this.X=new oF(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.J(this,
   this.X);this.KC();this.X.isMobile&&!uHa&&(window.addEventListener(TE?"touchstart":"click",gAa,{capture:!0,passive:!0}),uHa=!0);(c=this.X.Bi)&&this.N("html5_onesie_advance_redirector")&&c.load();this.ON=ME(ZE(this.X)&&!0,b.enablesizebutton);this.vE=ME(!1,b.player_wide);this.visibility=new ES;g.J(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.uD(this);g.J(this,this.events);this.nm=new hT;g.J(this,this.nm);this.Jl=new hT;g.J(this,this.Jl);this.In=new mBa;this.Ta=
   new g.GM(this);g.J(this,this.Ta);this.template=new pT(this);g.J(this,this.template);this.appState=1;this.gg=this.X.storeUserVolume?Ama():{volume:100,muted:this.X.mute};this.I=this.X.u?new FM(this,1):new zM(this,1);g.J(this,this.I);c={};this.JC=(c.internalvideodatachange=this.DT,c.playbackready=this.FT,c.playbackstarted=this.GT,c.statechange=this.HT,c);this.Wc=vHa(this);this.QE=new g.uD(this);g.J(this,this.QE);this.N("html5_enable_web_assembly")&&this.Wc&&fva(this.Wc).then(function(e){d.X.Zi=e});
   this.Pb=new RM(this.X,this.Wc);this.sb=wHa(this);c={};this.cN=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.cF,c.endseeking=this.iF,c.internalAbandon=this.mF,c.internalaudioformatchange=this.uw,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.Cw,c.liveviewshift=this.yU,c.playbackstalledatstart=this.PV,c.progresssync=this.gV,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.fA,
   c.SEEK_TO=this.FV,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onDompaused=this.onDompaused,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.VU,c.statechange=this.TM,c.connectionissue=this.xw,c.newelementrequired=this.wM,c.heartbeatparams=this.zw,c.videoelementevent=this.wF,c.drmoutputrestricted=this.onDrmOutputRestricted,c.requestmediasource=this.rV,c.signatureexpired=this.KV,c.nonfatalerror=this.MU,c);this.Nn=new g.uD(this);g.J(this,this.Nn);c=
   10;g.lF(this.X)&&(c=3);wF(this.X)&&(c=g.rE(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Iw=new fT(c,function(e){e!==g.PM(d,e.getPlayerType())&&e.dispose()});
   g.J(this,this.Iw);this.xD=this.Iy=-1;this.NA=new g.M(this.template.resize,16,this.template);g.J(this,this.NA);xHa(this);this.Fd=new WS(this.Ta,this.X,this.sb);this.Et=new AS(this);g.J(this,this.Et);dBa(this.X.deviceParams.c);this.events.T(this.Ta,g.nA("appapi"),this.BT);this.events.T(this.Ta,g.oA("appapi"),this.CT);this.events.T(this.Ta,g.nA("appad"),this.bM);this.events.T(this.Ta,g.oA("appad"),this.bM);this.events.T(this.Ta,g.nA("appprogressboundary"),this.fV);this.events.T(this.Ta,g.oA("applooprange"),
   this.OA);this.events.T(this.Ta,"presentingplayerstatechange",this.Mh);this.events.T(this.Ta,"resize",this.sV);this.template.Da(rg(a));this.events.T(this.Ta,"offlineslatestatechange",this.OU);this.YG=yHa(this,this.template.element);g.J(this,this.YG);this.X.Rj&&(this.N("woffle_orchestration")||this.N("web_player_orchestration")||this.N("wo_job_sampling_with_lock_api")?(a=dAa()?new Xza(this.X,this.Ta):void 0,this.Jk=a):fAa());this.X.vb&&g.ZM("ux",g.DQ);TX(this).isValid()&&(g.Nz()&&TX(this).ya.push("remote"),
   UX(this),!this.X.N("html5_delay_initial_loading")&&VX(this)&&(this.X.Zg||this.X.dd)&&kS(this.sb));this.Pb.tick("fs");zHa(this);this.Pc=null;this.X.vb&&cva(this.Wc);g.hF(this.Wc.I.V())&&jN(this.Wc,"music");g.XE(this.Wc.I.V())&&jN(this.Wc,"embed");this.N("web_player_sentinel_is_uniplayer")||g.My(new g.dw("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");c=g.Cs("web_player_sentinel_yt_experiments_sync");a!==c&&g.My(new g.dw("b/195699950",
   {yt:a,player:c}));this.sO=AHa(this);if(a=g.rE(this.X.experiments,"html5_block_pip_safari_delay"))this.BD=new g.M(this.iJ,a,this),g.J(this,this.BD);this.X.N("embeds_enable_pem_cookie_blocking_killswitch")||(Lt=this.X.La);a=g.rE(this.X.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.WM=new g.yh(a),g.J(this,this.WM),this.events.T(this.WM,"tick",function(){d.XM&&BHa.fn(d.XM);d.XM=BHa.Bo("apit")}));
   this.oa()};
   AHa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.tb||a.sb).Xb.Sd("player.exception",g.JD({n:c.name,m:c.message}))}
   Ny.subscribe("handleError",b);Fs.push(b);return function(){Ny.unsubscribe("handleError",b);var c=Fs.indexOf(b);-1!==c&&Fs.splice(c,1)}};
   wHa=function(a){var b=new oG(a.X,a.config.args);b=a.Fl(1,b);b.setPlaybackRate(a.X.i?1:CHa(a,Number(g.Lz("yt-player-playback-rate"))||1));ny(b,a.JC,a);return b};
   DHa=function(a,b){if(a.sb!==b){a.N("html5_skip_setPresenting")&&(b.getVideoData().autonavState=a.sb.getVideoData().autonavState);oy(a.sb,a.JC,a);var c=a.sb.getPlaybackRate();a.sb.dispose();a.sb=b;a.sb.setPlaybackRate(c);ny(b,a.JC,a);UX(a)}};
   vHa=function(a){var b="",c=hBa(a);0===c.indexOf("//")&&(c=a.X.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.My(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new gN(a.Ta,b);EHa(a,b);return b};
   EHa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
   b.u=c};
   FHa=function(a,b){var c=a.isVideoInfoVisible();a.Ti||(a.Ti=new dU(a.Ta),g.J(a,a.Ti),g.NM(a.Ta,a.Ti.element,4));g.OK(a.Ti,b);XX(a)&&c!==b&&JM(a.Wc).BG();a=a.tb;b&&a&&a.Ba("sfn","1",!0)};
   YX=function(a){a.ra=a.X.deviceHasDisplay?oS.pop()||new g.rN(g.Gg("VIDEO")):new g.rN(g.Gg("AUDIO"));g.J(a,a.ra);a.tb&&a.tb.setMediaElement(a.ra);try{a.X.qb?(a.Ht&&a.events.jc(a.Ht),a.Ht=a.events.T(a.ra,"volumechange",a.GU)):(a.ra.Xs(a.gg.muted),a.ra.setVolume(a.gg.volume/100))}catch(d){a.Le("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.my(a.Nn);GHa(a);var b=a.template;b.Jb=a.ra.Me();b.pz=!1;b.Jb.parentNode||g.Jg(b.Ru,b.Jb,0);b.xA=
   new g.Pl(0,0,0,0);lBa(b);qT(b);g.N(b.Jb,"video-stream");g.N(b.Jb,g.oT.MAIN_VIDEO);var c=b.app.V();c.Qf&&b.Jb.setAttribute("data-no-fullscreen","true");c.Oi&&(b.Jb.setAttribute("webkit-playsinline",""),b.Jb.setAttribute("playsinline",""));c.rl&&b.Jb&&b.T(b.Jb,"click",b.Jb.play,b.Jb);try{a.ra.wr()}catch(d){a.Le("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
   aY=function(a,b){if(a.tb!==b){a.oa("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.tb&&(c=a.tb.getPlayerState(),a.oa(),kN(a.Wc,3),ZX(a,"cuerangesremoved",a.tb.Ll()),a.Et&&!b.isGapless()&&a.tb.isGapless()&&a.ra&&a.ra.stopVideo(),HHa(a));1===b.getPlayerType()&&DHa(a,b);IHa(a,b);a.tb=b;a.ra&&b.setMediaElement(a.ra);ny(b,a.cN,a);if(b.Bz())$X(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.XJ(c,b.getPlayerState())&&
   a.TM(new g.dI(b.getPlayerState(),c));if(b.lm.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&a.Ta.Oa("onPlaybackQualityChange",c.quality);ZX(a,"cuerangesadded",a.tb.Ll());c=b.getPlayerState();g.U(c,2)?JHa(a):g.U(c,8)&&b.playVideo();a.oa()}}};
   JHa=function(a){if(!KHa(a)){var b=a.sb.jd();b&&(b=b.ov(),b instanceof Promise&&b.catch(function(){}));
   bY(a,aK(a.yb()))}};
   GHa=function(a){var b=a.ra;zD()?a.Nn.T(b,"webkitpresentationmodechanged",a.BV):yD()&&(a.Nn.T(b,"enterpictureinpicture",function(){a.Ys(!0)}),a.Nn.T(b,"leavepictureinpicture",function(){a.Ys(!1)}));
   dF&&(a.Nn.T(b,"webkitbeginfullscreen",function(){a.Hi(3)}),a.Nn.T(b,"webkitendfullscreen",function(){a.Hi(0)}))};
   IHa=function(a,b){var c,d=b.getPlayerType();b!==a.sb&&b!==a.zx[d]&&(null===(c=a.zx[d])||void 0===c?void 0:c.dispose(),a.zx[d]=b)};
   cY=function(a,b){a.oa("release presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);b!==a.sb?aY(a,a.sb):a.N("html5_skip_setPresenting")||HHa(a)};
   HHa=function(a){a.oa();var b;if(b=a.Yc)b=a.ra,b=!!b&&b===a.Yc.ra;b&&(a.Cg(),YX(a));a.tb&&(a.tb.Cg(),oy(a.tb,a.cN,a),a.N("html5_skip_setPresenting")&&1!==a.tb.getPlayerType()&&a.tb.dispose());a.tb=null;a.oa()};
   g.PM=function(a,b){var c;return b?1===b?a.sb:a.getVideoData().enableServerStitchedDai&&2===b?a.tb:a.N("html5_skip_setPresenting")&&b===(null===(c=a.tb)||void 0===c?void 0:c.getPlayerType())?a.tb:a.zx[b]||null:a.tb};
   dY=function(a,b){return a.Qd(b)?a.sb:b};
   eY=function(a,b){var c=a.tb;return c&&b===a.sb&&a.Qd(b)&&a.Qd(c)?c:b};
   LHa=function(a){a.oa();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.Wc;d.BJ();jN(d,"attribution",!1,!0);jN(d,"embed");jN(d,"inline_preview");jN(d,"kids");jN(d,"remote");jN(d,"miniplayer");jN(d,"music");jN(d,"captions",!0);jN(d,"unplugged");jN(d,"ypc",!1,!0);jN(d,"ypc_clickwrap",!1,!0);jN(d,"yto",!1,!0);jN(d,"webgl",!1,!0);d.B&&c?d.I.Md("endscreen"):jN(d,"endscreen");d.B&&c?(d.I.Md("annotations_module"),d.I.Md("creatorendscreen")):(d.iD(),jN(d,"creatorendscreen",!0));d.CJ();bva(d);c&&UG(b)?a.QE.T(a.Ta,
   "presentingplayerstatechange",a.XU):ava(a.Wc);a.Ta.ea("videoready",b)};
   TX=function(a){return a.sb.getVideoData()};
   VX=function(a){a=TX(a);a.isValid();return UG(a)};
   zHa=function(a){a.oa();a.lD();var b=a.config.args;YX(a);var c=TX(a);a.Ta.Oa("onVolumeChange",a.gg);if(b&&TM(b)){var d=tF(a.X);d&&!a.pg&&(b.fetch=0);var e=g.XE(a.X);e&&!a.pg&&(b.fetch=0);fY(a,b);g.XE(a.X)&&a.Pb.tick("ep_pr_s");if(d&&!a.pg)gY(a);else if(e&&!a.pg)hY(a);else if(!c.isValid())a.playlist.onReady(function(){iY(a)})}aY(a,a.sb);
   g.U(a.sb.getPlayerState(),128)||(b=Tla(a.X.deviceHasDisplay),"fmt.noneavailable"===b?a.Le("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Le(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&VX(a)&&(a.X.Zg||a.X.dd)?jY(a):g.Lz("yt-player-playback-on-reload")?(g.Zv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.Z}),Ima(!1),jY(a)):DF(a.X)||MHa(a),g.vF(a.X)||"MWEB"===a.X.deviceParams.c?(Ou(Ru(),function(){kY(a)}),Ou(Ru(),function(){Wta()})):
   (kY(a),Wta()),a.oa())};
   kY=function(a){var b=a.getVideoData().botguardData;if(b){var c=a.getVideoData().Aa||"";g.fua(b,a.X.cspNonce,c?"c1b"in g.Ms(c):!1)}};
   MHa=function(a){a.oa();a.Ta.ea("initializingmode");a.Tk(2);jN(a.Wc,"remote");a.X.N("player_cued_miniplayer_module_killswitch")||jN(a.Wc,"miniplayer");a.oa()};
   jY=function(a){a.oa();if(g.U(a.sb.getPlayerState(),128))return!1;VX(a)&&a.X.dd&&(oS.length&&a.jw?(BM(a,{muted:!1,volume:a.gg.volume},!1),lY(a,!1)):oS.length||a.gg.muted||(BM(a,{muted:!0,volume:a.gg.volume},!1),lY(a,!0)));var b=a.sb.getVideoData();b.nL&&BM(a,{muted:!0,volume:a.gg.volume},!1);mY(a,1,b,!1);a.Ta.ea("initializingmode");aY(a,a.sb);a.Tk(3);if(!(b=!a.X.Vi)){if(b=a.Yc)b=a.ra,b=!!b&&b===a.Yc.ra;b=b&&a.RK}b&&(a.Cg(),YX(a),a.sb.setMediaElement(a.ra));IX(a.sb);if(g.U(a.sb.getPlayerState(),128))return!1;
   bY(a,3);return a.RK=!0};
   XX=function(a){a=JM(a.Wc);return!!a&&a.loaded};
   NHa=function(a,b){if(!a.Sb)return!1;var c=.001*a.Sb.startTimeMs-1;a=.001*a.Sb.endTimeMs;return $f(b,c)||$f(b,a)||b>=c&&b<=a};
   OHa=function(a){g.U(a.sb.getPlayerState(),64)&&TX(a).isLivePlayback&&5E3>a.Sb.startTimeMs||a.sb.seekTo(.001*a.Sb.startTimeMs,{Td:"application_loopRangeStart"})};
   CHa=function(a,b){var c=a.Ta.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
   nY=function(a,b,c){if(a.Qd(c)){c=c.getVideoData();if(a.Pc)c=b;else{a=a.Fd;for(var d=g.r(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Cc===e.Cc){b+=e.Ic/1E3;break}d=b;a=g.r(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Cc===e.Cc)break;var f=e.Ic/1E3;if(f<b)d+=e.durationMs/1E3+f-e.pd/1E3;else break}c=d}return c}return b};
   PHa=function(a,b){var c;return 3===a.getPresentingPlayerType()?aK(JM(a.Wc).ud):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.Pc)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.Iy:-1:2!==b||a.Qd()?a.Iy:a.xD};
   QHa=function(a){if(g.lF(a.X))return!1;var b=g.LM(a.wb()),c="none"===a.ra.getStyle("display")||0===eg(a.ra.dr()),d=NT(a.template),e=a.tb.getVideoData(),f=g.fF(a.X)||g.hF(a.X);e=e.Jn();a=!d||b||f||e||a.X.Hb;return c&&!a};
   UX=function(a){a.oa();oY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.GC={};a.zA={};a.Vs=[];var b=a.Pb;if(b.i){var c=b.i;c.i={};c.Su={}}b.u=!1;a.Pc?(b=a.Pc,a=a.sb,a.getPlayerType(),b.oa(),OS(b,!1),QS(b),b.Ca=a):(b=a.Fd,a=a.sb,1!==a.getPlayerType()&&b.ge("e.invalidParentVideoPlayerType"),b.oa(),aT(b,!1),cT(b),b.u=a)};
   gY=function(a){var b=RHa();if(b)if(!b.list)a.Cr();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ta.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.UM(a.playlist).videoId||(b.index=a.playlist.index));WM(a.playlist,b);a.Nw&&pY(a,a.Nw)}else a.Nw=null};
   hY=function(a,b){var c=(b?b:TX(a)).oO;a.Pb.tick("ep_pr_r");if(null!=c&&(WM(a.playlist,c),a.kG))a.playlist.onReady(function(){iY(a,b)})};
   fY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Cr,a),g.ue(a.playlist),a.playlist=null);b&&(a.pg&&(b.fetch=0),a.playlist=new SM(a.X,b),a.playlist.subscribe("error",a.Cr,a))};
   qY=function(a,b,c,d){b in a.GC||(c=new g.lA(c,d,{id:b,priority:2,namespace:"appad"}),a.sb.addCueRange(c),a.GC[b]=c)};
   VHa=function(a,b){if(!(b in a))return!1;a=a[b];Array.isArray(a)||(a=[a]);a.forEach(function(c){var d=void 0===d?!1:d;if(!(d=eA(fA(c,SHa),c,d,"Active View 3rd Party Integration URL"))){var e=void 0===e?!1:e;d=eA(fA(c,THa),c,e,"Google/YouTube Brand Lift URL")}if(!(e=d)){var f=void 0===f?!1:f;e=eA(fA(c,UHa),c,f,"Nielsen OCR URL")}g.av(c,void 0,e)});
   return!0};
   bY=function(a,b){a.oa();if(a.tb){var c=a.tb.getPlayerType();if(2===c&&!a.Qd()){a.xD!==b&&(a.xD=b,a.Ta.Oa("onAdStateChange",b));return}if(2===c&&a.Qd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Iy!==b&&(a.Iy=b,a.Ta.Oa("onStateChange",b))};
   mY=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Cc;var f=a.Iw.get(e);if(!f)return null;a.Iw.remove(e);if(g.U(f.getPlayerState(),128))return f.dispose(),null}if(f===g.PM(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Pu(f);return f};
   rY=function(a,b,c){c=g.PM(a,c);b&&c===a.sb&&(c.getVideoData().hf=!0)};
   sY=function(a,b,c){c=void 0===c?1:c;a.oa();if(b.isValid()){var d=a.Fl(c,b);a.cancelPlayback(4,c);aY(a,d);2===c&&a.sb.Qs(b.clientPlaybackNonce,b.uc||"",b.breakType||0,b.ye);1===c&&(a.Tk(1),MHa(a));a.oa()}else a.oa(),b.dispose(),g.ue(g.PM(a,c))};
   WHa=function(a,b,c,d,e){b=qua(b,c,d,e);(c=g.XE(a.X)&&!a.X.K)&&!a.pg&&(b.fetch=0);fY(a,b);g.XE(a.X)&&a.Pb.tick("ep_a_pr_s");if(c&&!a.pg)c=TX(a),Pua(c,b).then(function(f){a.kG=!0;hY(a,f)});
   else a.playlist.onReady(function(){iY(a)});
   g.XE(a.X)&&a.Pb.tick("ep_a_pr_r")};
   iY=function(a,b){var c=g.XE(a.X)&&!a.X.K,d=c&&b?b:g.UM(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Nk&&(a.X.Zg||a.X.dd)||!a.Sp?(b=b.hf,d=a.Ln(d,1),b&&rY(a,d)):sY(a,d,1));g.XE(a.X)&&a.Pb.tick("ep_p_l");a.kG=!1;a.Ta.Oa("onPlaylistUpdate")};
   KHa=function(a){if(a.playlist&&g.cF(a.X)&&a.vv()){var b=a.X.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
   pY=function(a,b){var c=g.Ga(b);c?((b=RHa())&&b.list&&c(),a.Nw=null):a.Nw=b};
   RHa=function(){var a=g.Ga("yt.www.watch.lists.getState");return a?a():null};
   tY=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=kA.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=kA.AD_MARKER:(b.style=kA.TIME_MARKER,b.color=e),b.visible=!0);a.Fu([new g.lA(1E3*c,1E3*d,b)],1);return!0};
   XHa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.Vs.push({id:b,MX:c,LX:d}),!1;e=f-a.getCurrentTime();return tY(a,b,c-e,d-e)};
   YHa=function(a,b){a.Vs=g.Ko(a.Vs,function(f){return f.id!==b});
   for(var c=a.sb.Ll(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.sb.removeCueRange(e),ZX(a,"cuerangesremoved",[e]),!0}return!1};
   ZHa=function(a){var b=(0,g.Q)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
   BM=function(a,b,c){a.X.Y&&(a.gg=b,b.muted||lY(a,!1),c&&a.X.storeUserVolume&&!a.X.qb&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Kz("yt-player-volume",c),g.Kz("yt-player-volume",c,2592E3))),$Ha(a),c=g.ej&&a.ra&&!a.ra.Df(),a.X.qb&&!c||a.Ta.Oa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.X.storeUserVolume}))};
   $Ha=function(a){var b=a.getVideoData();if(!b.Kg){b=a.X.qb?1:wpa(b);var c=a.ra;c.Xs(a.gg.muted);try{c.setVolume(a.gg.volume*b/100)}catch(d){g.My(new g.dw("b183742307","multiplier: "+b+", volume: "+a.gg.volume))}}};
   lY=function(a,b){b!==a.jw&&(a.jw=b,a.Ta.Oa("onMutedAutoplayChange",b))};
   uY=function(a){var b=hy(!0);return b&&(b===a.template.element||a.ra&&b===a.ra.Me())?b:null};
   bIa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.X.N("lock_fullscreen2")||a.X.C)&&c&&c.lock&&(!g.ej||!aIa))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.Ew||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ha);a.Ew=!0}}else a.Ew&&(a.Ew=!1,c.unlock())};
   ZX=function(a,b,c){a.Ta.ea(b,c);var d=g.lF(a.X)||g.eF(a.X)||g.fF(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ta.Oa(e,c.map(function(f){return{getId:function(){return this.id},
   end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
   vY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.PM(a,e);if(!h||(2!==h.getPlayerType()||a.Qd(h)||f)&&!g.KG(h.getVideoData()))3===a.getPresentingPlayerType()?JM(a.Wc).Kk("control_seek",b,c):(h===a.sb&&a.Sb&&!NHa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
   $X=function(a,b,c,d){c&&(a.Cg(),YX(a));c=g.PM(a);c.Sd(new g.KD("staleconfig",!1,{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?CG(e)&&g.xF(a.X)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.La&&(f.vvt=e.La);e.jb&&(f.vss_credentials_token=e.jb,f.vss_credentials_token_type=e.Uh);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Ug&&(f.force_gvi=e.Ug);f.autoplay=1;f.reload_count=e.Db+1;f.reload_reason=
   b;e.wu&&(f.unplugged_partner_opt_out=e.wu);e.Tc&&(f.ypc_is_premiere_trailer=e.Tc);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d)};
   cIa=function(a,b){TX(a).autonavState=b;g.Kz("yt-player-autonavstate",b);a.Ta.ea("autonavchange",b)};
   dIa=function(a){var b=a.getVideoData().Kg,c=a.X.Hb,d=a.ra;b||c?d.nD():(d.pD(),BM(a,a.gg))};
   yHa=function(a,b){return a.X.N("html5_enable_embedded_player_visibility_signals")&&g.XE(a.X)?new nT(b,a.X.N("embeds_enable_intersection_observer_v2")):null};
   oY=function(a){var b=lN(a.wb());b&&b.created&&(a.oa(),b.destroy())};
   eIa=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]=Wl(a,d);b.hidden=!!a.hidden};
   xHa=function(a){var b=a.X,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.gj&&d&&b.i?eu()||b.La?(g.Zv("embedsStorageAccessNotChecked",{isIosWebview:eu(),isPemPlayer:b.La}),a.gx=!1):c.hasStorageAccess().then(function(e){g.Zv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.gx=!e},function(e){g.Zv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
   resultedInError:!0});g.My(Error("Embeds ITP Error: "+e));a.gx=!1}):a.gx=!1};
   wY=function(a,b){var c=void 0;g.lF(a.X)&&Us(b)&&Ts(b)&&(a=a.getVideoData().nf())&&(c={Authorization:"Bearer "+a});g.av(b,void 0,void 0,c)};
   xY=function(a,b){b.forEach(function(c){wY(a,c)})};
   hBa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
   fIa=function(a){var b;a=null===(b=CM(a.wb()))||void 0===b?void 0:b.wv();if(!(a instanceof g.NN))return null;a=a.sK();return(null===a||void 0===a?void 0:a.S)||null};
   yY=function(a){this.controller=a};
   zY=function(a){this.gD=a};
   AY=function(a,b,c){this.gD=a;this.eh=b;this.wi=c};
   gIa=function(a,b,c){var d=a.gD();switch(b.type){case "SKIP":psa(d,a.eh,a.wi,c)}};
   BY=function(){};
   CY=function(){};
   DY=function(){};
   EY=function(a,b){this.Yo=a;this.Va=b};
   FY=function(a){this.I=a};
   GY=function(a,b){this.Oh=a;this.Va=b};
   iIa=function(a){g.I.call(this);this.i=a;this.PP=hIa(this)};
   hIa=function(a){var b=new DK(a.i.Jc);g.J(a,b);a=g.r([new yY(a.i.UQ),new EY(a.i.Yo,a.i.Va),new FY(a.i.I),new GY(a.i.Oh,a.i.Va),new AY(a.i.hT,a.i.eh,a.i.wi),new zY(a.i.jR),new CY,new DY,new BY]);for(var c=a.next();!c.done;c=a.next())c=c.value,hsa(b,c),isa(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())BK(b,c.value,function(){});
   return b};
   HY=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(!Wz(a.Ia,c.value))return!1;return!0};
   jIa=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}};
   IY=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
   this.i=b};
   Wz=function(a,b){return a.i.has(b)};
   X=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
   JY=function(a){return Array.from(a.i.keys())};
   lIa=function(a){var b;return(null===(b=kIa.get(a))||void 0===b?void 0:b.kt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
   LY=function(a,b){var c={type:b.rb,controlFlowManagerLayer:mIa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Vb&&(c.entryTriggerType=b.Vb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Vb)c.debugData.slotEntryTriggerData=KY(a);a=b.qc;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(KY(d.value));b=b.pc;c.debugData.expirationTriggerData=
   [];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(KY(a.value))}return c};
   nIa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:mIa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
   KY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Ig&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Ig);null!=a.Fe&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Fe);return c};
   oIa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.ym(d||[],function(e){return LY(a,e)}),b.debugData=Object.assign(Object.assign({},c&&0<c.length?{associatedSlotId:c}:{}),0<d.length?{slots:d}:{}));
   return b};
   NY=function(a,b){return function(c){return pIa(MY(a),b.slotId,b.rb,b.slotPhysicalPosition,b.gb,b.Vb,b.qc,b.pc,c.layoutId,c.layoutType,c.gb)}};
   pIa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:LY(a,{slotId:b,rb:c,slotPhysicalPosition:d,gb:e,Vb:f,qc:h,pc:l,Ia:new IY([])}),layoutData:nIa(a,{layoutId:m,layoutType:n,gb:p,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],tc:new Map,Ia:new IY([]),Dc:{}})}}};
   OY=function(a){this.Na=a;this.i=.1>Math.random()};
   MY=function(a){var b;(b=a.i)||(a=a.Na.get(),b=a.I.V().N("html5_force_debug_data_for_client_tmp_logs")||a.I.V().N("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
   PY=function(a,b,c,d){g.I.call(this);this.Pd=b;this.dc=c;this.Na=d;this.i=a(this,this,this,this,this);g.J(this,this.i);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.J(this,b.value)};
   QY=function(a,b){a.Pd.add(b);a.Na.get().I.V().N("html5_not_register_disposables_when_core_listens")||g.J(a,b)};
   Dqa=function(a,b){DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Pd);for(var c=a.next();!c.done;c=a.next())c.value.Nh(b)};
   Eqa=function(a,b){DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Pd);for(var c=a.next();!c.done;c=a.next())c.value.xf(b)};
   fqa=function(a,b){DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Pd);for(var c=a.next();!c.done;c=a.next())c.value.yf(b)};
   SY=function(a,b,c){T(c,b,void 0,void 0,c.Zo);RY(a,b,!0)};
   rIa=function(a,b,c){if(TY(a.i,b))if(UY(a.i,b).C=c?"filled":"not_filled",null===c){VY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Pd);for(var d=c.next();!d.done;d=c.next())d.value.Lk(b);RY(a,b,!1)}else{VY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.r(a.Pd);for(d=e.next();!d.done;d=e.next())d.value.Mk(b);if(TY(a.i,b))if(UY(a.i,b).D)RY(a,b,!1);else{VY(a.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!UY(f,b))throw new WY("Unknown slotState for onLayout");
   if(!f.Ld.cm.get(b.rb))throw new WY("No LayoutRenderingAdapterFactory registered for slot of type: "+b.rb);if(g.xb(c.wd)&&g.xb(c.Rc)&&g.xb(c.Qc)&&g.xb(c.Sc)&&g.xb(c.Vc))throw new WY("Layout has no exit triggers.");XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Rc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Qc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){a.wf(b,
   c,n);RY(a,b,!0);return}UY(a.i,b).J=!0;try{var h=a.i,l=UY(h,b),m=h.Ld.cm.get(b.rb).get().Oe(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new WY("Already had LayoutRenderingAdapter registered for slot");l.B=m;YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Rc);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Qc);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){ZY(a,
   b,!0);RY(a,b,!0);a.wf(b,c,n);return}VY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.r(a.Pd);for(d=e.next();!d.done;d=e.next())d.value.yj(b,c);ZY(a,b,!1);qIa(a,b)}else $Y(a.Na.get())&&T("slot is unscheduled after been fulfilled.",b,c)}};
   aZ=function(a,b,c){VY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Pd);for(var d=a.next();!d.done;d=a.next())d.value.yj(b,c)};
   Fqa=function(a,b,c){a=g.r(a.Pd);for(var d=a.next();!d.done;d=a.next())d.value.zj(b,c)};
   bZ=function(a,b,c){VY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Pd);for(var d=a.next();!d.done;d=a.next())d.value.Lc(b,c)};
   CJ=function(a,b,c,d){VY(a.dc,lIa(d),b,c);a=g.r(a.Pd);for(var e=a.next();!e.done;e=a.next())e.value.Xc(b,c,d)};
   ZY=function(a,b,c){TY(a.i,b)&&(UY(a.i,b).J=!1,c?a.Na.get().I.V().N("html5_enable_deferred_triggers_on_error")?cZ(a,sIa(a.i,b)):$Y(a.Na.get())&&T("Ignore deferred triggers due to error",b):cZ(a,sIa(a.i,b)))};
   cZ=function(a,b){b.sort(function(f,h){function l(m){T("TriggerCategoryOrder enum does not contain trigger category: "+m)}
   return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):jIa(f.category,l)-jIa(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,TY(a.i,d.slot))if(UY(a.i,d.slot).J)UY(a.i,d.slot).S.push(d);else{tIa(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(uIa);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))&&vIa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&wIa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&xIa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
   yIa(a,c)};
   vIa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&dZ(a.i,d.slot)&&zIa(a,d.slot,d.layout,c)};
   wIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())RY(a,c.value.slot,!1)};
   xIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(UY(a.i,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.tv(c.slot))}};
   yIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Pd),e=d.next();!e.done;e=d.next())e.value.Bj(c.slot);try{var f=a.i,h=c.slot,l=UY(f,h);if(!l)throw new eZ("Got enter request for unknown slot");if(!l.u)throw new eZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new eZ("Tried to enter a slot from stage: "+l.i);if(fZ(l))throw new eZ("Got enter request for already active slot");
   for(var m=g.r(gZ(f,h.rb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&fZ(p))throw new eZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(q){T(q,c.slot,hZ(a.i,c.slot),void 0,q.Zo);RY(a,c.slot,!0);continue}c=UY(a.i,c.slot);"scheduled"!==c.i&&iZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.u.Gy()}};
   qIa=function(a,b){var c;TY(a.i,b)&&fZ(UY(a.i,b))&&hZ(a.i,b)&&!dZ(a.i,b)&&(VY(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=hZ(a.i,b))&&void 0!==c?c:void 0),a=UY(a.i,b),"entered"!==a.i&&iZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.B.startRendering(a.layout))};
   zIa=function(a,b,c,d){if(TY(a.i,b)){var e=a.dc,f;var h=(null===(f=kIa.get(d))||void 0===f?void 0:f.Ts)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";VY(e,h,b,c);a=UY(a.i,b);"rendering"!==a.i&&iZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.B.gf(c,d)}};
   RY=function(a,b,c){if(TY(a.i,b)){a:switch(UY(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(UY(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(UY(a.i,b).D=!0,!c))return;if(fZ(UY(a.i,b)))UY(a.i,b).D=!0,AIa(a,b,c);else{a:switch(UY(a.i,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)UY(a.i,b).D=!0,TY(a.i,b)&&(DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=UY(a.i,b),b.C="fill_cancel_requested",b.K.TC());else{c=
   hZ(a.i,b);DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=UY(a.i,b);var e=b.Vb,f=d.ya.get(e.triggerId);f&&(f.Pi(e),d.ya.delete(e.triggerId));e=g.r(b.qc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Y.get(f.triggerId);h&&(h.Pi(f),d.Y.delete(f.triggerId))}e=g.r(b.pc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.Z.get(f.triggerId))h.Pi(f),d.Z.delete(f.triggerId);null!=d.layout&&(e=d.layout,jZ(d,e.wd),jZ(d,e.Rc),jZ(d,e.Qc),jZ(d,e.Sc),jZ(d,e.Vc));d.K=void 0;null!=d.u&&(d.u.release(),
   d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.i;UY(d,b)&&(d=gZ(d,b.rb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Pd);for(d=a.next();!d.done;d=a.next())d=d.value,d.Cj(b),c&&d.zj(b,c)}}}};
   AIa=function(a,b,c){if(TY(a.i,b)&&fZ(UY(a.i,b))){var d=hZ(a.i,b);if(d&&dZ(a.i,b))zIa(a,b,d,c?"error":"abandoned");else{DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=UY(a.i,b);if(!e)throw new eZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&iZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.u)throw e.i="scheduled",new eZ("Cannot exit slot because adapter is not defined");e.u.Hy()}catch(f){T(f,b,void 0,void 0,f.Zo)}}}};
   BIa=function(a){this.slot=a;this.ya=new Map;this.Y=new Map;this.Z=new Map;this.ma=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.S=[];this.i="not_scheduled";this.C="not_filled"};
   fZ=function(a){return"enter_requested"===a.i||a.isActive()};
   WY=function(a,b,c){c=void 0===c?!1:c;Sa.call(this,a);this.Zo=c;this.args=[];b&&this.args.push(b)};
   eZ=function(a,b,c){c=void 0===c?!1:c;Sa.call(this,a);this.Zo=c;this.args=[];b&&this.args.push(b)};
   kZ=function(a,b,c,d,e,f){g.I.call(this);this.Ld=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Na=f;this.i=new Map};
   gZ=function(a,b){return(a=a.i.get(b))?a:new Map};
   UY=function(a,b){return gZ(a,b.rb+"_"+b.slotPhysicalPosition).get(b.slotId)};
   CIa=function(a){var b=[];a.i.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};
   TY=function(a,b){return null!=UY(a,b)};
   sIa=function(a,b){a=UY(a,b);b=[].concat(g.v(a.S));yb(a.S);return b};
   dZ=function(a,b){a=UY(a,b);if(b=null!=a.layout)a:switch(a.i){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
   hZ=function(a,b){if(!lZ(a.Na.get()))return b=UY(a,b),null!=b.layout?b.layout:null;(a=UY(a,b))?null!=a.layout&&!a.layout&&T("Unexpected empty layout",b):T("Unexpected undefined slotState",b);return(null===a||void 0===a?void 0:a.layout)||null};
   mZ=function(a,b,c){if(g.xb(c))throw new eZ("No "+DIa.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.Ld.Sh.get(d.triggerType))throw new eZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
   XY=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ld.Sh.get(d.triggerType))throw new WY("No trigger adapter registered for "+DIa.get(b)+" trigger of type: "+d.triggerType);};
   YY=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.Ld.Sh.get(e.triggerType);f.Fi(c,e,b.slot,b.layout?b.layout:null);b.ma.set(e.triggerId,f)}};
   jZ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ma.get(c.triggerId);d&&(d.Pi(c),a.ma.delete(c.triggerId))}};
   iZ=function(a,b,c){T("Slot stage was "+b+" when calling method "+c,a)};
   EIa=function(a){return nZ(a.jq).concat(nZ(a.Sh)).concat(nZ(a.Kl)).concat(nZ(a.zm)).concat(nZ(a.cm))};
   nZ=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.nj&&b.push(c);return b};
   oZ=function(a){g.I.call(this);this.i=a;this.u=FIa(this)};
   FIa=function(a){var b=new PY(function(c,d,e,f){return new kZ(a.i.Ld,c,d,e,f,a.i.Na)},new Set(EIa(a.i.Ld).concat(a.i.listeners)),a.i.dc,a.i.Na);
   g.J(a,b);return b};
   pZ=function(a){g.I.call(this);var b=this;this.u=a;this.i=null;g.we(this,function(){g.ue(b.i);b.i=null})};
   Y=function(a){return new pZ(a)};
   GIa=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
   HIa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
   KIa=function(a,b,c,d,e,f,h){b=IIa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof eZ?b:JIa(a,d,e,b,c);return a instanceof eZ?a:[a]};
   LIa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
   PIa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,qZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return MIa(n)});
   a=[];b={};f=g.r(f);for(var h=f.next();!h.done;b={Nq:b.Nq},h=f.next()){b.Nq=h.value;h={};for(var l=g.r(b.Nq.DC),m=l.next();!m.done;h={Em:h.Em},m=l.next())h.Em=m.value,m=function(n,p){return function(q){return n.Em.DJ(q,p.Nq.instreamVideoAdRenderer.elementId,n.Em.RI)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Em.xr?a.push(NIa(c,d,h.Em.SI,e,b.Nq.instreamVideoAdRenderer.elementId,h.Em.adSlotLoggingData,m)):a.push(OIa(c,d,e,b.Nq.instreamVideoAdRenderer.elementId,h.Em.adSlotLoggingData,m))}return a};
   qZ=function(a,b,c){if(b=QIa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=RIa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.vz=c)}else T("InstreamVideoAdRenderer without externalVideoId")}};
   QIa=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};
   MIa=function(a){if(void 0===a.instreamVideoAdRenderer)return T("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.DC),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.DJ)return!1;if(void 0===c.RI)return T("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.vz||void 0===c.xr||a.vz!==c.xr&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.xr)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return T("InstreamVideoAdRenderer has no elementId",
   void 0,void 0,{kind:a.vz,"matching APSR kind":c.xr}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.xr&&void 0===c.SI)return T("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
   RIa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,vz:void 0,adVideoId:b,DC:[]});return a.get(b)};
   rZ=function(a,b,c,d,e,f,h){d?RIa(a,d).DC.push({SI:b,xr:c,RI:e,adSlotLoggingData:f,DJ:h}):T("Companion AdPlacementSupportedRenderer without adVideoId")};
   sZ=function(a){var b,c=0;a=g.r(a.questions);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d=d.instreamSurveyAdMultiSelectQuestionRenderer||d.instreamSurveyAdSingleSelectQuestionRenderer)c+=(null===(b=d.surveyAdQuestionCommon)||void 0===b?void 0:b.durationMilliseconds)||0;return c};
   tZ=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F,C,K,S,L=(null===(c=null===(b=a.questions)||void 0===b?void 0:b[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon)||(null===(e=null===(d=a.questions)||void 0===d?void 0:d[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===e?void 0:e.surveyAdQuestionCommon),W=[].concat(g.v((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.v((null===L||void 0===L?void 0:L.timeoutCommands)||
   []));return{impressionCommands:null===(h=a.playbackCommands)||void 0===h?void 0:h.impressionCommands,errorCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.errorCommands,muteCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.muteCommands,unmuteCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.unmuteCommands,pauseCommands:null===(p=a.playbackCommands)||void 0===p?void 0:p.pauseCommands,rewindCommands:null===(q=a.playbackCommands)||void 0===q?void 0:q.rewindCommands,resumeCommands:null===
   (t=a.playbackCommands)||void 0===t?void 0:t.resumeCommands,skipCommands:null===(u=a.playbackCommands)||void 0===u?void 0:u.skipCommands,progressCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.progressCommands,Eaa:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(z=a.playbackCommands)||void 0===z?void 0:z.fullscreenCommands,activeViewViewableCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null===
   (F=a.playbackCommands)||void 0===F?void 0:F.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(C=a.playbackCommands)||void 0===C?void 0:C.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(K=a.playbackCommands)||void 0===K?void 0:K.endFullscreenCommands,abandonCommands:null===(S=a.playbackCommands)||void 0===S?void 0:S.abandonCommands,completeCommands:W}};
   TIa=function(a,b,c,d,e,f,h){return function(l,m){return SIa(a,m.slotId,l,f,function(n,p){n=h(n);return uZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new NI(c),d],c.adLayoutLoggingData)})}};
   WIa=function(a,b,c,d,e,f,h){if(!UIa(a))return new eZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[VIa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=bA(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},q=new vZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",tc:new Map,wd:[q],Rc:[],
   Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new OI(l)]),Dc:n(p)}})]};
   UIa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
   ZIa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
   if(!uqa(a))return function(){return new eZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
   var h=a.playerOverlay.instreamSurveyAdRenderer,l=sZ(h);return 0>=l?function(){return new eZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=XIa(m,c,d,function(q){var t=n(q),u=q.slotId;
   q=tZ(h);u=bA(e.u.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new vZ(e.i,d),z=new wZ(e.i,u),G=new xZ(e.i,u),F=new YIa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",tc:new Map,wd:[y,F],Rc:[z],Qc:[],Sc:[G],Vc:[],gb:"core",Ia:new IY([new MI(h),new DI(b),new lJ(l/1E3),new oJ(q)]),Dc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}});
   m=WIa(a,c,p.slotId,d,e,m,n);return m instanceof eZ?m:[p].concat(g.v(m))}};
   gJa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=$Ia(u.slotId,c,b,e(u),d);h=u.mX;return u.sR};
   else if(c.renderer.instreamVideoAdRenderer)l=function(u){var x=u.slotId;u=e(u);var y,z=c.config.adPlacementConfig,G=aJa(z),F=G.SJ;G=G.VJ;var C=c.renderer.instreamVideoAdRenderer;if(null===(y=null===C||void 0===C?void 0:C.playerOverlay)||void 0===y?0:y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var K=bJa(C);y=Math.min(F+1E3*K.videoLengthSeconds,G);G=new zH(0,[K.videoLengthSeconds],y);var S=K.videoLengthSeconds,L=K.playerVars,W=K.instreamAdPlayerOverlayRenderer,
   pa=K.adVideoId,ta=cJa(c);K=new Map([].concat(g.v(K.tc),g.v(Ipa(c))));var rb=null===C||void 0===C?void 0:C.adLayoutLoggingData;C=null===C||void 0===C?void 0:C.sodarExtensionData;x=bA(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var ob={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,wd:[new yZ(b.i)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new HI(d),new YI(S),new ZI(L),new aJ(F),new bJ(y),W&&new II(W),new DI(z),new FI(pa),new EI(G),new gJ(ta),C&&new $I(C),
   new UI({current:null})].filter(dJa)),Dc:u(ob),adLayoutLoggingData:rb}};
   else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=eJa(a,d,l);f.push(m);for(var n=g.r(h),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof eZ)return t;f.push.apply(f,g.v(t))}}catch(u){return new eZ(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:fJa(c)})}return f};
   fJa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!==a&&void 0!==a&&a.length?a.filter(function(b){var c,d;return null!=(null===(d=null===(c=b.instreamVideoAdRenderer)||void 0===c?void 0:c.playerOverlay)||void 0===d?void 0:d.instreamSurveyAdRenderer)}).length:0};
   $Ia=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=aJa(f),l=h.SJ,m=h.VJ;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===h||void 0===h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={VN:l,WN:0,jX:n};h=h.map(function(t){return hJa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new zH(u,n,m);
   return t(u)});
   var q=h.map(function(t){return t.tR});
   return{sR:iJa(c,a,l,q,f,Ipa(b),cJa(b),d,m),mX:h.map(function(t){return t.lX})}};
   hJa=function(a,b,c,d,e,f,h,l){var m,n,p=bJa(b.instreamVideoAdRenderer),q=c.VN,t=c.WN,u=Math.min(q+1E3*p.videoLengthSeconds,l);c.VN=u;c.WN++;c.jX.push(p.videoLengthSeconds);var x=null===(n=null===(m=b.instreamVideoAdRenderer)||void 0===m?void 0:m.playerOverlay)||void 0===n?void 0:n.instreamSurveyAdRenderer;if("nPpU29QrbiU"===p.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z,G,F=p.playerVars;2<=y.u&&(F.slot_pos=y.i);F.autoplay="1";F=p.videoLengthSeconds;
   var C=p.playerVars,K=p.tc,S=p.instreamAdPlayerOverlayRenderer,L=p.adVideoId,W=null===(z=b.instreamVideoAdRenderer)||void 0===z?void 0:z.adLayoutLoggingData,pa=null===(G=b.instreamVideoAdRenderer)||void 0===G?void 0:G.sodarExtensionData,ta=bA(d.u.get(),"LAYOUT_TYPE_MEDIA",a),rb={layoutId:ta,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};y={layoutId:ta,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:"adapter",Ia:new IY([new HI(h),new YI(F),new ZI(C),new aJ(q),new bJ(u),new cJ(t),
   new UI({current:null}),S&&new II(S),new DI(f),new FI(L),new EI(y),pa&&new $I(pa),x&&new rJ(x)].filter(dJa)),Dc:e(rb),adLayoutLoggingData:W};F=ZIa(b.instreamVideoAdRenderer,f,h,y.layoutId,d);return{tR:y,lX:F}}};
   bJa=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=g.Ms(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,tc:a.pings?AH(a.pings):new Map}};
   cJa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
   aJa=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{SJ:b,VJ:a}};
   kJa=function(a,b,c,d,e,f,h,l){a=jJa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=bA(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",tc:q,wd:[new zZ(b.i,n)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new fJ(e),new DI(c)]),Dc:m(p)}});
   return a instanceof eZ?a:[a]};
   mJa=function(a,b,c,d,e,f,h,l){a=lJa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=bA(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,BZ(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=bA(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,BZ(b,n,p))):q.imageOverlayAdContentRenderer?(q=bA(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
   p),n=BZ(b,n,p),n.push(new CZ(b.i,q)),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new WY("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new WY("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
   return a instanceof eZ?a:[a]};
   pJa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new eZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return nJa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(m),function(n){return oJa(a,n,e,function(p,q){var t=p.slotId;p=h(p);t=bA(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return uZ(b,
   t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new KI(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
   qJa=function(a,b,c,d){if(!c.playerVars)return new eZ("No playerVars available in AdIntroRenderer.");var e=g.Ms(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=bA(a.u.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{Dq:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",tc:new Map,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:"adapter",Ia:new IY([new eJ({}),new DI(b),new UI({current:null}),new ZI(e)]),Dc:f(l)},Er:[new DZ(a.i,h)],mp:[],yy:[],wy:[]}}};
   sJa=function(a,b,c,d,e,f,h,l){var m=sZ(e);if(!sJ(e))return new eZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new eZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=TIa(a,b,e,f,c,d,h);return n instanceof eZ?n:function(p){return rJa(b,p.slotId,c,m,tZ(e),h(p),n,l)}};
   tJa=function(a,b,c,d,e,f,h){function l(p){return oJa(a,p,d,m)}
   function m(p,q){var t=p.slotId;p=h(p);t=bA(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return uZ(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new LI(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 eZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
   h(p);p=EZ(b,p.slotId,c,n,q,new Map,t,l);q=new QI(p.zF);return{Dq:{layoutId:p.layoutId,layoutType:p.layoutType,tc:p.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:p.gb,Ia:new IY([].concat(g.v(p.Qu),[q])),Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},Er:[],mp:p.Qc,yy:p.Sc,wy:p.Vc,jh:p.jh}}};
   xJa=function(a,b,c,d,e,f,h,l,m,n,p){function q(u){var x=new zH(0,[t.Wx]),y=uJa(t.playerVars,t.rN,l,p,x);u=m(u);var z=n.get(t.mB.externalVideoId);x=vJa(b,"core",t.mB,c,y,t.Wx,f,x,u,z);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,tc:x.tc,wd:x.wd,Rc:x.Rc,Qc:x.Qc,Sc:x.Sc,Vc:x.Vc,gb:x.gb,Ia:x.Ia,Dc:x.Dc,adLayoutLoggingData:x.adLayoutLoggingData},jm:[]}}
   var t=FZ(e);if(t instanceof WY)return new eZ(t);if(q instanceof eZ)return q;a=wJa(a,c,f,h,d,l.tf,q);return a instanceof eZ?a:a.jm.concat(a.DF)};
   FZ=function(a){if(!a.playerVars)return new WY("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null===(b=a.playerOverlay)||void 0===b?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new WY("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=g.Ms(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new WY("Expected valid length seconds in player vars"):
   {mB:a,playerVars:b,rN:a.playerVars,Wx:c}};
   uJa=function(a,b,c,d,e){a.iv_load_policy=d;b=g.Ms(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.Bg&&(a.ctrl=c.Bg);c.Hf&&(a.ytr=c.Hf);c.El&&(a.ytrcc=c.El);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Uh&&(a.vss_credentials_token_type=c.Uh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.i);a.autoplay="1";return a};
   AJa=function(a,b,c,d,e,f,h,l,m,n,p){b=yJa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=zJa(a,c,f,h),c instanceof eZ?d=c:(f=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER"),h=bA(a.u.get(),"LAYOUT_TYPE_SURVEY",f),c.pc.push(new GZ(a.i,h)),a=b({slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Vb:c.Vb,qc:c.qc,pc:c.pc},{slotId:f,layoutId:h}),d=a instanceof eZ?a:{DF:{slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition,
   Vb:c.Vb,qc:c.qc,pc:c.pc,gb:c.gb,Ia:new IY([new hJ(a.layout)]),adSlotLoggingData:d},jm:a.jm})):d=wJa(a,c,f,h,d,l.tf,b);return d instanceof eZ?d:d.jm.concat(d.DF)};
   yJa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=FZ(u.instreamVideoAdRenderer);if(u instanceof WY){q=new eZ(u);break b}q.push(u.Wx)}}if(q instanceof eZ)p=q;else{t=0;u=[];for(var x=[],y=[],z=[],G=[],F=[],C=new VI({current:null}),K=[],S=g.r(d),L=S.next();!L.done;L=S.next())if(L=L.value,L.adIntroRenderer){L=qJa(b,c,L.adIntroRenderer,h);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);x=[].concat(g.v(L.Er),
   g.v(x));y=[].concat(g.v(L.mp),g.v(y));L.jh&&(K=[L.jh].concat(g.v(K)))}else if(L.instreamVideoAdRenderer){var W=FZ(L.instreamVideoAdRenderer);if(W instanceof WY){p=new eZ(W);break a}var pa=new zH(t,q);L=b;var ta=W.mB,rb=uJa(W.playerVars,W.rN,f,m,pa),ob=h(n),Ib=l.get(W.mB.externalVideoId);W=vJa(L,"adapter",ta,c,rb,W.Wx,e,pa,ob,Ib);pa=W.Rc;ta.isCritical&&(pa=[new DZ(L.i,W.layoutId)].concat(g.v(pa)));L={layoutId:W.layoutId,layoutType:W.layoutType,tc:W.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:W.gb,Ia:W.Ia,
   Dc:W.Dc,adLayoutLoggingData:W.adLayoutLoggingData};ta=pa;W=W.Qc;t++;u.push(L);x=[].concat(g.v(ta),g.v(x));y=[].concat(g.v(W),g.v(y))}else if(L.adActionInterstitialRenderer){L=pJa(a,b,c,L.adActionInterstitialRenderer,e,t,h);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);x=[].concat(g.v(L.Er),g.v(x));y=[].concat(g.v(L.mp),g.v(y));L.jh&&(K=[L.jh].concat(g.v(K)))}else if(L.instreamSurveyAdRenderer){if(void 0===p){p=new eZ("Composite Survey must already have a Survey Bundle with required metadata.",
   {instreamSurveyAdRenderer:L.instreamSurveyAdRenderer});break a}L=sJa(a,b,c,e,L.instreamSurveyAdRenderer,C,h,p);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);L.jh&&K.push(L.jh);x=[].concat(g.v(L.Er),g.v(x));y=[].concat(g.v(L.mp),g.v(y));z=[].concat(g.v(L.yy),g.v(z));G=[].concat(g.v(L.wy),g.v(G));F=[C].concat(g.v(F))}else if(L.surveyTextInterstitialRenderer){L=tJa(a,b,c,e,L.surveyTextInterstitialRenderer,C,h);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);L.jh&&K.push(L.jh);y=[].concat(g.v(L.mp),
   g.v(y))}else{p=new eZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={kX:u,Rc:x,Sc:z,Vc:G,Qc:y,Qu:F,jm:K}}}p instanceof eZ?n=p:(z=n.slotId,q=p.kX,t=p.Rc,u=p.Qc,x=p.Sc,y=p.Qu,n=h(n),z=bA(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),G={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:new Map,wd:[new zZ(b.i,z)],Rc:t,Qc:u,Sc:x,Vc:[],gb:"core",Ia:new IY([new WI(q)].concat(g.v(y))),Dc:n(G)},
   jm:p.jm});return n}};
   CJa=function(a,b,c,d,e,f,h){if(!sJ(c))return new eZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=sZ(c);if(0>=l)return new eZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new VI({current:null}),n=TIa(a,b,c,m,d,f,h);return BJa(a,d,f,l,e,function(p,q){var t=p.slotId,u=tZ(c);p=h(p);t=bA(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,q);
   X(y.Ia,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new DI(d),new mJ(l),new oJ(u),new pJ(!0),m,new RI("LAYOUT_TYPE_SURVEY")];return{VS:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:new Map,wd:[new zZ(b.i,t)],Rc:[new wZ(b.i,q.layoutId)],Qc:[],Sc:[new xZ(b.i,q.layoutId)],Vc:[],gb:"core",Ia:new IY(u),Dc:p(x)},xS:y}})};
   HZ=function(a,b,c,d,e,f,h){this.u=a;this.i=b;this.Na=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===h?1:h};
   xja=function(a,b,c,d,e,f,h){var l,m,n,p,q,t,u,x,y,z,G,F=[];if(0===b.length)return F;b=b.filter(GIa);for(var C=new Map,K=new Map,S=g.r(b),L=S.next();!L.done;L=S.next())(L=L.value.renderer.remoteSlotsRenderer)&&L.hostElementId&&K.set(L.hostElementId,L);S=g.r(b);for(L=S.next();!L.done;L=S.next()){L=L.value;var W=DJa(a,C,L,d,e,f,h,K);W instanceof eZ?T(W,void 0,void 0,{renderer:L.renderer,config:L.config.adPlacementConfig,kind:L.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):F.push.apply(F,
   g.v(W))}if(null===a.D||f&&!h.KJ)return a=h.tf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),F.length||a||T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(q=null===(p=b[0])||void 0===p?void 0:p.config)||
   void 0===q?void 0:q.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),F;c=c.filter(GIa);F.push.apply(F,g.v(PIa(C,c,a.u.get(),a.D,d,a.Na.get())));F.length||T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(z=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===z?void 0:z.kind,renderer:null===
   (G=b[0])||void 0===G?void 0:G.renderer});return F};
   DJa=function(a,b,c,d,e,f,h,l){function m(x){return NY(a.B.get(),x)}
   var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,u=h.KJ&&"AD_PLACEMENT_KIND_START"===q;u=f&&!u;if(null!=n.actionCompanionAdRenderer)rZ(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var G=a.i.get(),F=n.actionCompanionAdRenderer,C=NY(a.B.get(),x);return IZ(G,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new vI(F),y,z,F.impressionPings,C,n.actionCompanionAdRenderer.adLayoutLoggingData)});
   else if(n.imageCompanionAdRenderer)rZ(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var G=a.i.get(),F=n.imageCompanionAdRenderer,C=NY(a.B.get(),x);return IZ(G,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new zI(F),y,z,F.impressionPings,C,n.imageCompanionAdRenderer.adLayoutLoggingData)});
   else if(n.shoppingCompanionCarouselRenderer)rZ(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var G=a.i.get(),F=n.shoppingCompanionCarouselRenderer,C=NY(a.B.get(),x);return IZ(G,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new AI(F),y,z,F.impressionPings,C,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
   else if(n.adBreakServiceRenderer){if(!LIa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return KIa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!f&&!JZ(a.Na.get()))return new eZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED AdBreakServiceRenderer but cue point event is unsupported");if(!a.C)return new eZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.tf||T("Received non-live cue point triggered AdBreakServiceRenderer",
   void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.tf),clientPlaybackNonce:h.clientPlaybackNonce});EJa(a.C,{adPlacementRenderer:c,contentCpn:d,zJ:e})}else{if(n.clientForecastingAdRenderer)return kJa(a.u.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return mJa(a.u.get(),a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&u)return gJa(a.u.get(),a.i.get(),
   c,d,m);if(n.linearAdSequenceRenderer&&!u)return qZ(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?AJa(a.u.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new eZ("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!u)return qZ(b,n,q),xJa(a.u.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return CJa(a.u.get(),a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=
   n.sandwichedLinearAdRenderer)return HIa(n.sandwichedLinearAdRenderer)?AJa(a.u.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new eZ("Received invalid SandwichedLinearAdRenderer.")}}return[]};
   KZ=function(a){g.I.call(this);this.i=a};
   Uz=function(a,b,c,d){a.i().Ai(b,d);c=c();a=a.i();LZ(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;DJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.$a(c.slotId))throw new eZ("Slot ID was empty");if(UY(e,c))throw new eZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Vb.triggerType});if(!e.Ld.Kl.has(c.rb))throw new eZ("No fulfillment adapter factory registered for slot of type: "+
   c.rb);if(!e.Ld.zm.has(c.rb))throw new eZ("No SlotAdapterFactory registered for slot of type: "+c.rb);mZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Vb?[c.Vb]:[]);mZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.qc);mZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.pc);var f=d.i,h=c.rb+"_"+c.slotPhysicalPosition,l=gZ(f,h);if(UY(f,c))throw new eZ("Duplicate slots not supported");l.set(c.slotId,new BIa(c));f.i.set(h,l)}catch(pa){T(pa,c,void 0,void 0,pa.Zo);break a}UY(d.i,c).J=!0;try{var m=d.i,n=UY(m,c),p=c.Vb,q=m.Ld.Sh.get(p.triggerType);
   q&&(q.Fi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ya.set(p.triggerId,q));for(var t=g.r(c.qc),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.Ld.Sh.get(x.triggerType);y&&(y.Fi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Y.set(x.triggerId,y))}for(var z=g.r(c.pc),G=z.next();!G.done;G=z.next()){var F=G.value,C=m.Ld.Sh.get(F.triggerType);C&&(C.Fi("TRIGGER_CATEGORY_SLOT_EXPIRATION",F,c,null),n.Z.set(F.triggerId,C))}var K=m.Ld.Kl.get(c.rb).get().Oe(m.B,c);n.K=K;var S=m.Ld.zm.get(c.rb).get().Oe(m.D,
   c);S.init();n.u=S}catch(pa){T(pa,c,void 0,void 0,pa.Zo);RY(d,c,!0);break a}DJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.Nh(c);for(var L=g.r(d.Pd),W=L.next();!W.done;W=L.next())W.value.Nh(c);ZY(d,c,!1)}};
   MZ=function(a,b,c,d){this.Ho=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
   NZ=function(a,b,c,d){g.I.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.i=new Map;d.get().addListener(this);g.we(this,function(){d.get().removeListener(e)})};
   uja=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.qc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof MZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new qr(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)};
   OZ=function(){g.I.apply(this,arguments);this.nj=!0;this.Ki=new Map;this.i=new Map};
   FJa=function(a,b){a=g.r(a.Ki.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
   GJa=function(a,b){a=g.r(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.$a(b)),layoutId:b})};
   GZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
   DZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
   vZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
   yZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
   PZ=function(a,b){this.i=b;this.rb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
   QZ=function(a,b){this.i=b;this.rb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
   zZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
   HJa=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)};
   YIa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
   wZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
   xZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
   CZ=function(a,b){this.durationMs=45E3;this.Fe=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
   IJa=function(a){return[new PI(a.ut),new II(a.instreamAdPlayerOverlayRenderer),new TI(a.ZM),new DI(a.adPlacementConfig),new YI(a.videoLengthSeconds),new lJ(a.LE)]};
   JJa=function(a,b,c,d,e,f){a=c.lE?c.lE:bA(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",tc:new Map,wd:[new vZ(function(l){return cA(f,l)},c.ut)],
   Rc:[],Qc:[],Sc:[],Vc:[],gb:b,Ia:d,Dc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
   RZ=function(a){var b=this;this.u=a;this.i=function(c){return cA(b.u.get(),c)}};
   KJa=function(a,b,c,d,e,f){c=new IY([new JI(c),new DI(d)]);b=bA(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",tc:new Map,wd:[new vZ(function(h){return cA(a.u.get(),h)},e)],
   Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:c,Dc:f(d),adLayoutLoggingData:void 0}};
   SZ=function(a,b,c,d,e){return JJa(b,c,d,new IY(IJa(d)),e,a.u.get())};
   LJa=function(a,b,c,d,e){var f=IJa(d);f.push(new BI(d.TQ));f.push(new CI(d.VQ));return JJa(b,c,d,new IY(f),e,a.u.get())};
   IZ=function(a,b,c,d,e,f,h,l,m){b=bA(a.u.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,tc:p,wd:[new zZ(a.i,b),new PZ(a.i,e)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([d,new DI(f),new PI(e)]),Dc:l(n),adLayoutLoggingData:m}};
   BZ=function(a,b,c){var d=[];d.push(new QZ(a.i,c));b&&d.push(b);return d};
   AZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,tc:new Map,wd:h,Rc:[new GZ(a.i,b)],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new yI(d),new DI(e)]),Dc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
   uZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,tc:new Map,wd:[new vZ(a.i,c)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new DI(d)].concat(g.v(h))),Dc:e(m),adLayoutLoggingData:l}};
   nJa=function(a,b,c,d,e,f,h,l,m,n){a=EZ(a,b,c,d,e,f,h,l,m,n);return{Dq:{layoutId:a.layoutId,layoutType:a.layoutType,tc:a.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:a.gb,Ia:new IY(a.Qu),Dc:a.Dc,adLayoutLoggingData:a.adLayoutLoggingData},Er:a.Rc,mp:a.Qc,yy:a.Sc,wy:a.Vc,jh:a.jh}};
   rJa=function(a,b,c,d,e,f,h,l){b=EZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0);
   a=new xZ(a.i,b.zF);c=new QI(b.zF);d=new RI("LAYOUT_TYPE_SURVEY");return{Dq:{layoutId:b.layoutId,layoutType:b.layoutType,tc:b.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:b.gb,Ia:new IY([].concat(g.v(b.Qu),[c,d])),Dc:b.Dc,adLayoutLoggingData:b.adLayoutLoggingData},Er:b.Rc,mp:b.Qc,yy:[].concat(g.v(b.Sc),[a]),wy:b.Vc,jh:b.jh}};
   EZ=function(a,b,c,d,e,f,h,l,m,n){b=bA(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var q=X(l.Ia,"metadata_type_fulfilled_layout");q||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new DI(c),new mJ(d),new oJ(e)];n&&c.push(new cJ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:f,wd:[],Rc:[new wZ(a.i,q)],Qc:[],Sc:[],Vc:[],gb:"adapter",
   Qu:c,Dc:h(p),adLayoutLoggingData:m,jh:l,zF:q}};
   vJa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new DI(d),new EI(l),new FI(c.externalVideoId),new HI(h),new II(c.playerOverlay.instreamAdPlayerOverlayRenderer),new oJ({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new ZI(e),new UI({current:null}),new YI(f)];e=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:bA(a.u.get(),
   "LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new QI(f));d.push(new SI(e));d.push(new cJ(l.i));c.adNextParams&&d.push(new wI(c.adNextParams));c.clickthroughEndpoint&&d.push(new xI(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new nJ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new $I(c.sodarExtensionData));n&&d.push(new kJ(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",tc:AH(c.pings),wd:[new zZ(a.i,p)],Rc:c.skipOffsetMilliseconds?[new wZ(a.i,f)]:[],Qc:[new wZ(a.i,
   f)],Sc:[],Vc:[],gb:b,Ia:new IY(d),Dc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
   iJa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return HY(p,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout");
   b=bA(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:f,wd:[new yZ(a.i)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new aJ(c),new bJ(m),new WI(d),new DI(e),new gJ(h)]),Dc:l(n)}};
   dJa=function(a){return null!=a};
   TZ=function(a,b,c){this.Ho=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
   UZ=function(a,b,c){this.Fe=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
   VZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
   MJa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
   WZ=function(a,b,c){this.Ho=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
   XZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
   YZ=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
   ZZ=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
   $Z=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
   a_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
   b_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
   c_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
   IIa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Ok:new qr(-0x8000000000000,-0x8000000000000),AA:d},null!=c&&(d.Nr=new qr(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Ok:new qr(0x7ffffffffffff,0x8000000000000),AA:d},null!=c&&(d.Nr=new qr(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
   e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new eZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Ok:new qr(a,e),AA:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Nr=new qr(a,e)}return d;default:return new eZ("AdPlacementKind not supported in convertToRange.",
   {kind:e,adPlacementConfig:a})}};
   d_=function(a){var b=this;this.u=a;this.i=function(c){return cA(b.u.get(),c)}};
   JIa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=aA(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Nr&&d.Nr.start!==d.Ok.start&&l.push(new MZ(a.i,c,new qr(d.Nr.start,d.Ok.start),!1));l.push(new MZ(a.i,c,new qr(d.Ok.start,d.Ok.end),d.AA));d={getAdBreakUrl:b.getAdBreakUrl,qN:d.Ok.start,pN:d.Ok.end};b=new b_(a.i,h);f=[new iJ(d)].concat(g.v(f));return{slotId:h,rb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Vb:b,qc:l,pc:[new XZ(a.i,c),new $Z(a.i,h),new a_(a.i,h)],gb:"core",Ia:new IY(f),adSlotLoggingData:e}};
   OJa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(NJa(a,b,e.value));return d};
   NJa=function(a,b,c){return null!=c.Ig&&c.Ig===a?c.clone(b):c};
   SIa=function(a,b,c,d,e){return PJa(a,b,c,d,e)};
   oJa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");return PJa(a,e,b,c,d)};
   PJa=function(a,b,c,d,e){var f=new VZ(a.i,c),h=[new ZZ(a.i,b)];a=[new $Z(a.i,b),new XZ(a.i,d)];return{slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:f,qc:h,pc:a,gb:"core",Ia:new IY([new hJ(e({slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:f,qc:h,pc:a},c))]),adSlotLoggingData:void 0}};
   BJa=function(a,b,c,d,e,f){var h=aA(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=bA(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=e_(a,b,c,d);d=[new ZZ(a.i,h)];a=[new $Z(a.i,h),new XZ(a.i,c),new GZ(a.i,m)];if(b instanceof eZ)return b;f=f({slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Vb:b,qc:d,pc:a},{slotId:l,layoutId:m});l=f.xS;return[{slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,qc:d,pc:a,gb:"core",Ia:new IY([new hJ(f.VS)]),adSlotLoggingData:e},
   l]};
   QJa=function(a,b,c,d,e){e=e?e:aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new VZ(a.i,c);var f=[new ZZ(a.i,e)];a=[new XZ(a.i,b),new $Z(a.i,e)];return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,qc:f,pc:a,gb:"core",Ia:new IY([new hJ(d({slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:c,qc:f,pc:a}))])}};
   RJa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new VZ(a.i,c);var f=[new ZZ(a.i,e)];a=[new XZ(a.i,b),new $Z(a.i,e)];return{slotId:e,rb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Vb:c,qc:f,pc:a,gb:"core",Ia:new IY([new hJ(d({slotId:e,rb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",Vb:c,qc:f,pc:a}))])}};
   lJa=function(a,b,c,d,e,f){b=e_(a,b,c,d);if(b instanceof eZ)return b;var h=b instanceof MZ?new WZ(a.i,c,b.i):null;d=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new ZZ(a.i,d)];a=[new XZ(a.i,c),new $Z(a.i,d)];f=f({slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:b,qc:l,pc:a},h);return f instanceof WY?new eZ(f):{slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:b,qc:l,pc:a,gb:"core",Ia:new IY([new hJ(f)]),adSlotLoggingData:e}};
   XIa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new VZ(a.i,c);var f=[new ZZ(a.i,e)],h=[new $Z(a.i,e),new XZ(a.i,b)];f={slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:c,qc:f,pc:h};return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,qc:[new ZZ(a.i,e)],pc:[new XZ(a.i,b),new $Z(a.i,e)],gb:"core",Ia:new IY([new hJ(d(f))])}};
   VIa=function(a,b,c,d,e){var f=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new UZ(a.i,d,c);d=[new ZZ(a.i,f)];a=[new XZ(a.i,b)];return{slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,qc:d,pc:a,gb:"core",Ia:new IY([new hJ(e({slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:c,qc:d,pc:a}))])}};
   OIa=function(a,b,c,d,e,f){var h=aA(a.u.get(),b);return SJa(a,h,b,new VZ(a.i,d),c,e,d,f)};
   NIa=function(a,b,c,d,e,f,h){return SJa(a,c,b,new YZ(a.i,c),d,f,e,h)};
   eJa=function(a,b,c){var d=aA(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new MJa(a.i),f=[new c_(a.i,d)];a=[new XZ(a.i,b)];return{slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:e,qc:f,pc:a,gb:"core",Ia:new IY([new hJ(c({slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Vb:e,qc:f,pc:a})),new dJ({})])}};
   wJa=function(a,b,c,d,e,f,h){a=zJa(a,b,c,d);if(a instanceof eZ)return a;h=h({slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,qc:a.qc,pc:a.pc,gb:a.gb});if(h instanceof eZ)return h;b=[new hJ(h.layout)];f&&b.push(new qJ({}));return{DF:{slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,qc:a.qc,pc:a.pc,gb:a.gb,Ia:new IY(b),adSlotLoggingData:e},jm:h.jm}};
   zJa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_PLAYER_BYTES");b=e_(a,b,c,d);if(b instanceof eZ)return b;d=[new ZZ(a.i,e)];a=[new $Z(a.i,e),new XZ(a.i,c)];return{slotId:e,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,qc:d,pc:a,gb:"core"}};
   jJa=function(a,b,c,d,e,f){var h=aA(a.u.get(),"SLOT_TYPE_FORECASTING");b=e_(a,b,c,d);if(b instanceof eZ)return b;d=[new ZZ(a.i,h)];a=[new $Z(a.i,h),new XZ(a.i,c)];return{slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Vb:b,qc:d,pc:a,gb:"core",Ia:new IY([new hJ(f({slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Vb:b,qc:d,pc:a}))]),adSlotLoggingData:e}};
   TJa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new Yz(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=IIa(b,d),a instanceof eZ?a:e(a.Ok,f);case "AD_PLACEMENT_KIND_END":return new TZ(a.i,c,f);default:return new eZ("Cannot construct entry trigger",{kind:b.kind})}};
   e_=function(a,b,c,d){return TJa(a,b,c,d,function(e,f){return new MZ(a.i,c,e,f)})};
   SJa=function(a,b,c,d,e,f,h,l){var m=[new c_(a.i,b)];a=[new XZ(a.i,e),new $Z(a.i,b),new DZ(a.i,h)];return{slotId:b,rb:c,slotPhysicalPosition:1,Vb:d,qc:m,pc:a,gb:"core",Ia:new IY([new hJ(l({slotId:b,rb:c,slotPhysicalPosition:1,gb:"core",Vb:d,qc:m,pc:a}))]),adSlotLoggingData:f}};
   f_=function(a,b,c){g.I.call(this);this.Na=a;this.u=b;this.i=c;this.eventCount=0};
   DJ=function(a,b,c){LZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
   VY=function(a,b,c,d){LZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
   tIa=function(a,b,c,d){var e=a.Na.get();(e.I.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.I.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&LZ(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)};
   LZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Na.get();if((p.I.V().N("html5_enable_ads_client_monitoring_log")||p.I.V().N("html5_enable_ads_client_monitoring_log_live_infra"))&&!a.Na.get().I.V().N("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){p=MY(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var q,t={organicPlaybackContext:{contentCpn:Vz(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=Vz(a.i.get(),1).tf;if(a=null===(q=Vz(a.i.get(),2))||void 0===
   q?void 0:q.clientPlaybackNonce)t.adVideoPlaybackContext={adVideoCpn:a};q={};f&&(q.slotData=LY(p,f));h&&(q.layoutData=nIa(p,h));l&&(q.triggerData=KY(l.trigger,l.category));c&&(q.opportunityData=oIa(p,c,d,e));t&&(q.externalContext=t);b.adClientData=q;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Zv("adsClientStateChange",{adsClientEvent:b})}};
   g_=function(){this.i=new Map};
   h_=function(a,b,c,d,e){g.I.call(this);this.I=a;this.B=b;this.Ga=c;this.C=d;this.u=e;this.listeners=[];var f=new ky(this);g.J(this,f);f.T(a,"internalAbandon",this.mF);g.we(this,function(){g.my(f)})};
   i_=function(a){g.I.call(this);this.I=a;this.i=new Map;this.u=new ky(this);g.J(this,this.u);this.u.T(this.I,g.nA("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.oA("ad"),this.onCueRangeExit,this)};
   UJa=function(a,b,c,d,e){g.lA.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
   j_=function(a){this.I=a};
   k_=function(a){this.I=a};
   l_=function(a){var b,c,d;return(null===(d=null===(c=null===(b=a.I.getVideoData(1).getPlayerResponse())||void 0===b?void 0:b.playerConfig)||void 0===c?void 0:c.daiConfig)||void 0===d?void 0:d.enableServerStitchedDai)||!1};
   lZ=function(a){return a.I.V().N("html5_recover_from_non_fatal_errors_in_player_bytes")};
   $Y=function(a){return g.xF(a.I.V())?!1:kF(a.I.V())?a.I.V().N("html5_enable_non_notify_composite_vod_lsar_pacf"):g.lF(a.I.V())?a.I.V().N("html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1};
   VJa=function(a){return a.I.V().N("html5_recognize_predict_start_cue_point")};
   JZ=function(a){return a.I.V().N("html5_pacf_enable_non_dai_live_video_ads")};
   m_=function(a){return a.I.V().N("html5_enable_common_timer_for_survey_web")};
   WJa=function(a){return a.I.V().experiments.ob("enable_desktop_player_underlay")};
   n_=function(a,b){this.Ga=a;this.I=b;this.i=new Map;yH().subscribe("adactiveviewmeasurable",this.pw,this);yH().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ow,this);yH().subscribe("adviewableimpression",this.qw,this)};
   p_=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?T("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),Epa(yH(),b,{Av:function(){return c?{currentTime:a.Ga.get().getCurrentTimeSec(2,!1),duration:c,Ec:2===a.Ga.get().getPresentingPlayerType()&&1===o_(a.Ga.get(),2),Vaa:!1,Waa:!0,volume:a.Ga.get().isMuted()?0:a.Ga.get().getVolume()/100}:{}}}))};
   q_=function(a,b){a.i.has(b)?(a.i.delete(b),delete yH().i[b]):T("Unexpected unregistration of layout in LidarApi")};
   r_=function(a,b){this.u=a;this.B=b};
   s_=function(a,b,c,d){var e=void 0===e?new r_(function(){var f=a.getVideoData(1);return f?f.nf():""},function(){return a.V().pageId}):e;
   this.I=a;this.u=b;this.B=c;this.C=d;this.Yo=e;this.ZA=null;this.i=new Map;this.Oh=new RH(e)};
   YJa=function(a,b,c,d){d=void 0===d?[]:d;var e=GJa(a.u.get(),c);e?(c=t_(a,XJa(e),e),b.hasOwnProperty("baseUrl")?a.Yo.send(b,c):a.Oh.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
   u_=function(a,b){g.Zv("adsClientStateChange",b)};
   v_=function(a,b){a.i.has(b.Dv())?T("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.Dv(),b)};
   w_=function(a,b){a.i.delete(b.Dv())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
   XJa=function(a){var b=X(a.Ia,"metadata_type_ad_placement_config");a=X(a.Ia,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,JL:a}};
   t_=function(a,b,c,d){var e=c?ZJa(a):{};c=c?$Ja(a,c.layoutId):{};var f={},h={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},LH(a.I,d)),Ppa(b.adPlacementConfig)),(f.SLOT_POS=KH(function(){return(b.JL||0).toString()}),f)),c),e),(h.FINAL=KH(function(){return"1"}),h.AD_CPN=KH(function(){var l;
   return(null===(l=Vz(a.C.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),h));
   e={};c=g.r(Object.values(aKa));for(f=c.next();!f.done;f=c.next())f=f.value,h=d[f],null!=h&&(e[f]=h.toString());return e};
   ZJa=function(a){var b,c={},d=null===(b=a.ZA)||void 0===b?void 0:bKa(b);null!=d&&(c.SURVEY_ELAPSED_MS=KH(function(){return Math.round(1E3*d).toString()}));
   c.SURVEY_LOCAL_TIME_EPOCH_S=KH(function(){return Math.round(Date.now()/1E3).toString()});
   return c};
   $Ja=function(a,b){a=a.i.get(b);if(!a)return{};a=a.CD();if(!a)return{};b={};return b.YT_ERROR_CODE=a.rB.toString(),b.ERRORCODE=a.yx.toString(),b.ERROR_MSG=a.errorMessage,b};
   x_=function(a,b,c){g.I.call(this);this.I=a;this.i=b;this.Na=c;this.listeners=[];this.DE=null;this.EC=new Map;b=new g.uD(this);g.J(this,b);b.T(a,"videodatachange",this.jW);b.T(a,"serverstitchedvideochange",this.GV);this.rp=Vz(this)};
   Vz=function(a,b){var c=a.I.getVideoData(b);return c?cKa(a,c,b||a.I.getPresentingPlayerType(!0)):null};
   dKa=function(a,b,c){var d=cKa(a,b,c);a.rp=d;a.listeners.forEach(function(e){e.AM(d)})};
   cKa=function(a,b,c){var d,e,f,h,l=b.author,m=b.clientPlaybackNonce,n=b.isListed,p=b.Cc,q=b.title,t=b.Bg,u=b.Hf,x=b.isMdxPlayback,y=b.Uh,z=b.mdxEnvironment,G=b.Fk,F=b.Nk,C=b.ip,K=b.videoId||"",S=b.Ph||"",L=b.Ri||"";b=b.El||void 0;p=a.i.get().i.get(p)||{layoutId:null,slotId:null};var W=a.I.getVideoData(1),pa=W.tf();W=W.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var ta=(null===(e=null===(d=null===W||void 0===W?void 0:W.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===
   e?void 0:e.enableDai)||!1;W=(null===(h=null===(f=null===W||void 0===W?void 0:W.playerConfig)||void 0===f?void 0:f.daiConfig)||void 0===h?void 0:h.enablePreroll)||!1;return Object.assign(Object.assign({},p),{videoId:K,author:l,clientPlaybackNonce:m,playbackDurationMs:c,zJ:a,daiEnabled:ta,KJ:W,isListed:n,tf:pa,Ph:S,title:q,Ri:L,Bg:t,Hf:u,El:b,isMdxPlayback:x,Uh:y,mdxEnvironment:z,Fk:G,Nk:F,ip:C})};
   y_=function(a,b){g.I.call(this);this.I=a;this.i=b;this.listeners=[];this.wp=function(){T("Called 'doUnlockPreroll' before it's initialized.")};
   b=new ky(this);g.J(this,b);b.T(a,"progresssync",this.hV);b.T(a,"presentingplayerstatechange",this.YU);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.yg);b.T(a,"resize",this.xb)};
   z_=function(a,b){var c;b=null!==(c=a.i.get().EC.get(b))&&void 0!==c?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a<b?0:a-b};
   o_=function(a,b){return a.I.yb(b)};
   eKa=function(a){var b=a.I.bb().rg();a=a.I.ij(!0,!0);return b.height-(a.height+a.top)};
   fKa=function(a,b){var c=a.I.V();bF(c)||"3"!==c.controlsType||a.I.bb().Zw(b)};
   A_=function(a,b){g.N(a.I.getRootNode(),b)};
   B_=function(a,b){g.Sq(a.I.getRootNode(),b)};
   gKa=function(a,b,c){g.I.call(this);var d=this;this.u=Y(function(){return new $z});
   g.J(this,this.u);this.Z=Y(function(){return new RZ(d.u)});
   g.J(this,this.Z);this.K=Y(function(){return new OZ});
   g.J(this,this.K);this.B=Y(function(){return new KZ(a)});
   g.J(this,this.B);this.C=Y(function(){return new d_(d.u)});
   g.J(this,this.C);this.ya=Y(function(){return new g_});
   g.J(this,this.ya);this.S=Y(function(){return new i_(b)});
   g.J(this,this.S);this.Jc=Y(function(){return new j_(b)});
   g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)});
   g.J(this,this.Na);this.D=Y(function(){return new OY(d.Na)});
   g.J(this,this.D);this.J=Y(function(){return new HZ(d.C,d.Z,d.Na,d.D,null,null)});
   g.J(this,this.J);this.i=Y(function(){return new x_(b,d.ya,d.Na)});
   g.J(this,this.i);this.dc=new f_(this.Na,this.D,this.i);g.J(this,this.dc);this.Ga=Y(function(){return new y_(b,d.i)});
   g.J(this,this.Ga);this.Y=Y(function(){return new n_(d.Ga,b)});
   g.J(this,this.Y);this.Va=Y(function(){return new s_(b,d.K,d.Y,d.i)});
   g.J(this,this.Va);this.yc=new Zz(this.B,this.J,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var e=new h_(b,this.yc,this.Ga,this.i);this.Aa=Y(function(){return e});
   this.Tn=e;this.ma=new NZ(this.B,this.C,this.S,this.Aa);g.J(this,this.ma);this.zc=new Tz(this.B,this.C,this.J,this.i,this.ma,c);g.J(this,this.zc);this.Ld={jq:new Map,Kl:new Map,Sh:new Map,zm:new Map,cm:new Map};this.listeners=[];this.Yp={zc:this.zc,fk:null,em:null,Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.u.get(),dm:null,wi:{cE:function(){}},
   eh:this.K.get()}};
   C_=function(a){this.i=a};
   D_=function(){};
   hKa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&ll(b.siub,b.scs,b.bgub,b.bgp)};
   iKa=function(a,b,c,d){this.callback=a;this.slot=b;this.B=c;this.u=d;this.i=null};
   jKa=function(a,b,c,d){a.i&&T("Currently active request ongoing for slot. This should never happen",a.slot);a.i=b();a.i.then(function(e){a.i=null;d&&d(e);var f=e.ot?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=NY(a.u.get(),{slotId:a.slot.slotId,rb:a.slot.rb,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,Vb:a.slot.Vb,qc:a.slot.qc,pc:a.slot.pc}),n=bA(h.u.get(),f,l),p={layoutId:n,layoutType:f,gb:"core"};e={layoutId:n,layoutType:f,
   tc:new Map,wd:[new HJa(h.i,l)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new jJ(e)]),Dc:m(p)};rIa(a.callback,a.slot,e)},function(e){a.i=null;
   c&&c();e instanceof vh||SY(a.callback,a.slot,new eZ(e,void 0,!0))})};
   kKa=function(a){if(null==a.i)a.callback.gA(a.slot);else try{a.i.cancel(),a.i=null,a.callback.gA(a.slot)}catch(b){a.i=null,SY(a.callback,a.slot,new eZ(b))}};
   E_=function(a,b,c,d,e,f){this.slot=b;this.u=c;this.B=f;this.i=new iKa(a,b,d,e)};
   lKa=function(a){var b;null===(b=a.B)||void 0===b?void 0:b.get().Xn(X(a.slot.Ia,"metadata_type_cue_point").identifier)};
   F_=function(a,b,c,d,e){this.callback=a;this.slot=b;this.u=c;this.i=new iKa(a,b,d,e)};
   G_=function(a,b){this.callback=a;this.slot=b};
   H_=function(a,b){return Xz(a,b.Vd,b.rb)?!0:!1};
   I_=function(){};
   J_=function(a,b,c,d){this.i=a;this.B=b;this.u=c;this.D=d};
   K_=function(){};
   mKa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
   L_=function(a,b){return HY(a,b.Vd,b.cf)?!0:!1};
   M_=function(a){this.i=a};
   N_=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Va=b;this.layoutId=d;this.i=0;this.B=null;this.C=new Set;this.u=Array.from(this.D.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
   this.J={adPlacementConfig:c,JL:e}};
   O_=function(){return["metadata_type_ad_placement_config"]};
   P_=function(a){var b=a.Va.get();return t_(b,a.J)};
   Q_=function(a,b){a.C.has(b)||a.Bf(b)};
   R_=function(a,b,c){for(c=void 0===c?!1:c;a.i<a.u.length;){var d=a.u[a.i];if(d.offsetMilliseconds<=b||c)nKa(a,"progress",[d]),a.i++;else break}};
   S_=function(a,b){return a.C.has(b)};
   nKa=function(a,b,c){var d,e=a.Va.get(),f=a.layoutId;a=null!==(d=a.B)&&void 0!==d?d:void 0;c=void 0===c?[]:c;var h=GJa(e.u.get(),f);if(h)for(b=e.B.get().Bf(f,b),f=t_(e,XJa(h),h,a),c=g.r(c),a=c.next();!a.done;a=c.next())a=a.value,a.baseUrl&&e.Oh.send(a.baseUrl,f,b,a.headers);else T("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
   oKa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Va=d;this.i=e;a=X(this.layout.Ia,"metadata_type_ad_placement_config");this.u=new N_(c.tc,this.Va,a,c.layoutId)};
   pKa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];O_().forEach(function(b){a.push(b)});
   return{Vd:a,cf:["LAYOUT_TYPE_FORECASTING"]}};
   T_=function(a,b){this.Va=a;this.i=b};
   U_=function(a,b,c,d){g.R.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.i=[]};
   V_=function(a,b,c,d,e,f,h){e=X(c.Ia,e);a=P_(a);var l=df(function(){d.Lc(b,c)});
   h.push(f(e,a,c.layoutId,{adsClientData:c.Dc},function(){l()}))};
   W_=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.rb&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():T("Tried to call engagePingCallback but it is null",h,l)}}else T("Companion AdUxClick received without a layoutId",h,l)};
   qKa=function(a,b,c,d,e){uH.call(this,"action-companion",a,b,c,d,e)};
   X_=function(a,b,c,d,e,f,h,l){U_.call(this,a,b,c,d);this.Va=e;this.Ze=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");QY(this.Ze(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new N_(c.tc,this.Va,a,c.layoutId)};
   rKa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];O_().forEach(function(b){a.push(b)});
   return{Vd:a,cf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
   Y_=function(a,b,c,d,e){U_.call(this,a,b,c,d);a=X(c.Ia,"metadata_type_ad_placement_config");this.B=new N_(c.tc,e,a,c.layoutId)};
   sKa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];O_().forEach(function(b){a.push(b)});
   return{Vd:a,cf:["LAYOUT_TYPE_ENDCAP"]}};
   Z_=function(a,b,c,d,e,f,h,l){U_.call(this,a,b,c,d);this.Ga=e;this.Va=f;this.C=h;this.Od=l;this.B=!1;this.D=X(this.layout.Ia,"metadata_type_linked_player_bytes_layout_id")};
   tKa=function(){return{Vd:["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"],cf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
   $_=function(a,b,c,d,e,f,h,l){return L_(c,tKa())?new Z_(a,b,c,d,e,f,h,l):L_(c,sKa())?new Y_(a,b,c,d,f):null};
   a0=function(a,b,c,d,e){this.i=a;this.Ga=b;this.Va=c;this.u=d;this.Od=e};
   b0=function(a,b,c,d,e,f){g.I.call(this);this.callback=a;this.Gd=b;this.Ga=c;this.fd=d;this.Ze=e;this.Na=f;this.nj=!0;this.kE=!1};
   c0=function(a,b,c,d,e,f,h,l,m,n){b0.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.J=l;this.u=[];this.i=-1;this.C=!1};
   d0=function(a,b,c){var d=X(a.Kb().Ia,"metadata_type_linked_in_player_layout_id");return d?d:(T("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Dd(),a.Kb(),{requestingSlot:b,requestingLayout:c}),null)};
   e0=function(a,b,c,d){if(!a.C){var e=a.u[a.i];e?(e.Kb().layoutId!==c.layoutId&&T("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Kb().layoutId}),a.C=!0,e.gf(e.Kb(),d),CJ(a.B,b,c,d),a.C=!1,a.D?(a.D(),NJ(a.fd.get())):uKa(a)):T("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
   uKa=function(a){if(a.i===a.u.length-1)a.i++,f0(a.J,a.layout.layoutId),NJ(a.fd.get());else{-1===a.i&&a.callback.Lc(a.slot,a.layout);a.i++;var b=a.u[a.i];0<a.i&&Uqa(a.fd.get());b.startRendering(b.Kb())}};
   g0=function(a){return!a.Sn.Ec()&&a.state.Ec()};
   h0=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
   vKa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.percent)};
   wKa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
   xKa=function(a,b,c,d){var e;this.D=a;this.layoutId=c;this.J=d;this.u=[];this.i=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,null===(e=b.adVideoOffset)||void 0===e?void 0:e.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":vKa(b)?this.u.push(b):T("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":wKa(b)?this.i.push(b):T("Invalid AdVideoProgressMillisecondsCommand");break;default:T("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(f,
   h){return f.adVideoOffset.percent-h.adVideoOffset.percent});
   this.i.sort(function(f,h){return Number(f.adVideoOffset.milliseconds)-Number(h.adVideoOffset.milliseconds)})};
   j0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){var x;g.I.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Va=d;this.ya=e;this.Ga=f;this.fd=h;this.La=l;this.B=m;this.K=n;this.position=q;this.Ka=t;this.Na=u;this.nj=!0;this.Ea=!1;this.u="not_rendering";this.Z=!1;a=X(this.layout.Ia,"metadata_type_ad_placement_config");this.i=new N_(c.tc,this.Va,a,c.layoutId);a=(null===(x=i0(this))||void 0===x?void 0:x.progressCommands)||[];this.Ya=new xKa(m,a,c.layoutId,function(){return y.Nl()});
   this.Aa=df(function(){y.callback.Lc(y.slot,y.layout)});
   this.S=df(function(){"rendering_stop_requested"!==y.u&&p(y);y.Y?y.callback.Xc(y.slot,y.layout,y.Y):T("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
   i0=function(a){return X(a.layout.Ia,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
   l0=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){R_(a.i,1E3*b,c);a.Z||R_(a.i,1E3*b,void 0===c?!1:c);var d=a.Nl();if(d){d/=1E3;if(b>=.25*d||c)Q_(a.i,"first_quartile"),k0(a,"unmuted_first_quartile");if(b>=.5*d||c)Q_(a.i,"midpoint"),k0(a,"unmuted_midpoint");if(b>=.75*d||c)Q_(a.i,"third_quartile"),k0(a,"unmuted_third_quartile");a=a.Ya;b*=1E3;if(c=a.J()){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.D.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.i.length;)if(c=
   a.i[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.D.get().executeCommand(c.command,a.layoutId),a.B++;else break}}}};
   m0=function(a,b){a.Z||a.i.Bf(b)};
   k0=function(a,b){a.Z||Q_(a.i,b)};
   o0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x){j0.call(this,a,b,c,d,e,f,h,m,n,p,q,t,u,x);var y=this;this.Jc=l;this.zz=!0;this.ma=this.C=0;m_(this.Na.get())?(this.J=new vJ(this.Nl(),function(z){l0(y,z/1E3);n0(y,z)},function(){l0(y,y.Nl()/1E3,!0);
   n0(y,y.Nl());y.S()}),g.J(this,this.J)):(this.D=new g.yh(200),this.D.Qa("tick",function(){y.Qb()}),g.J(this,this.D))};
   yKa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(O_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Vd:a,cf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
   zKa=function(a){m_(a.Na.get())?a.J.start():(a.ma=Date.now(),n0(a,a.C),a.D.start())};
   bKa=function(a){return m_(a.Na.get())?a.J.i/1E3:a.C/1E3};
   n0=function(a,b){b={current:b/1E3,duration:a.Nl()/1E3};a.Jc.get().Oa("onAdPlaybackProgress",b)};
   p0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F,C){j0.call(this,a,b,c,d,e,m,p,t,u,y,z,G,F,C);var K=this;this.Ua=f;this.Gd=h;this.ma=l;this.J=n;this.Jc=q;this.Ra=x;this.adCpn="";this.D=new g.M(function(){K.mw("load_timeout",new WY("Media layout load timeout.",{},!0))},1E4)};
   AKa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(O_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Vd:a,cf:["LAYOUT_TYPE_MEDIA"]}};
   q0=function(a,b,c,d,e,f,h){b0.call(this,a,b,c,d,f,h);this.i=e};
   CKa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F){if(L_(d,{Vd:["metadata_type_sub_layouts"],cf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var C=X(d.Ia,"metadata_type_sub_layouts");a=new c0(a,n,q,u,b,c,d,f,e,F);e=[];for(b={Ko:0};b.Ko<C.length;b={Ko:b.Ko},b.Ko++){var K=BKa({Lc:a.RV.bind(a),Xc:a.TV.bind(a),wf:a.SV.bind(a)},c,C[b.Ko],h,l,m,n,p,q,t,u,x,y,z,G,function(S){return function(L){L.gf(C[S.Ko],"normal")}}(b),b.Ko,C.length,F);
   if(!K)return;e.push(K)}a.u=e;return a}if(L_(d,{Vd:[],cf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=BKa({Lc:a.Lc.bind(a),Xc:a.Xc.bind(a),wf:a.wf.bind(a)},c,d,h,l,m,n,p,q,t,u,x,y,z,G,function(){f0(f,d.layoutId)},0,1,F))?new q0(a,n,q,u,c,e,F):c};
   BKa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F){if(L_(c,yKa()))return new o0(a,b,c,d,e,m,p,q,t,u,function(){},y,z,G,F);
   if(L_(c,AKa()))return Wz(c.Ia,"metadata_type_ad_intro")?new p0(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,function(C){q.get().Oa("onAdIntroStateChange",C)},y,z,G,F):new p0(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,function(C){q.get().Ci(C)},y,z,G,F)};
   r0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x){this.Ze=a;this.J=b;this.Va=c;this.D=d;this.S=e;this.Gd=f;this.K=h;this.Ga=l;this.B=m;this.fd=n;this.Jc=p;this.i=q;this.u=t;this.C=u;this.Na=x};
   s0=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.D=a;this.J=b;this.B=c;this.u=e;this.Ga=f;this.Na=h;this.C=l;this.i=null;d.get().addListener(this);g.we(this,function(){d.get().removeListener(m)});
   e.get().addListener(this);g.we(this,function(){e.get().removeListener(m)})};
   EJa=function(a,b){if(Vz(a.B.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind||JZ(a.Na.get()))if(a.i)T("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.r(a.u.get().fB);for(var c=b.next();!c.done;c=b.next())DKa(a,a.i,c.value)}};
   DKa=function(a,b,c){var d=a.Ga.get().getCurrentTimeSec(1,!1);Uz(a.D.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.J.get(),f=l_(a.Na.get());var h=1E3*c.startSecs;h={Ok:new qr(h,h+1E3*c.durationSecs),AA:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new qr(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new qr(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Nr=f;return[JIa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
   b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new XI(c)])]})};
   t0=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.J=a;this.S=b;this.K=c;this.D=d;this.u=e;this.B=f;this.i=h;this.Na=l;this.C=m;this.nj=!0};
   EKa=function(a,b,c){return RJa(a.u.get(),b.contentCpn,b.ut,function(d){return KJa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.ut,NY(a.i.get(),d))})};
   u0=function(a){var b,c=null===(b=X(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=X(a.Ia,"metadata_type_content_cpn"),f=X(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),h=X(a.Ia,"metadata_type_player_underlay_renderer"),l=X(a.Ia,"metadata_type_ad_placement_config"),m=X(a.Ia,"metadata_type_video_length_seconds");var n=Wz(a.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Wz(a.Ia,
   "metadata_type_layout_enter_ms")&&Wz(a.Ia,"metadata_type_layout_exit_ms")?(X(a.Ia,"metadata_type_layout_exit_ms")-X(a.Ia,"metadata_type_layout_enter_ms"))/1E3:void 0;a={ut:d,contentCpn:e,ZM:c,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,LE:n,lE:X(a.Ia,"metadata_type_linked_in_player_layout_id"),OK:X(a.Ia,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
   GKa=function(a,b){return FKa(a,b)};
   HKa=function(a,b){var c;b=FKa(a,b);if(!b)return null;b.LE=null===(c=X(a.Ia,"metadata_type_ad_pod_info"))||void 0===c?void 0:c.adBreakRemainingLengthSeconds;return b};
   FKa=function(a,b){var c,d=null===(c=X(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(Wz(a.Ia,"metadata_ad_video_is_listed"))var e=X(a.Ia,"metadata_ad_video_is_listed");else b?e=b.isListed:(T("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);Wz(a.Ia,"metadata_type_ad_info_ad_metadata")?b=X(a.Ia,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Ri,channelThumbnailUrl:b.Ph,channelTitle:b.author,videoTitle:b.title}:(T("No layout metadata nor AdPlayback specified for AdMetaData"),
   b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{TQ:b,adPlacementConfig:X(a.Ia,"metadata_type_ad_placement_config"),VQ:e,contentCpn:X(a.Ia,"metadata_type_content_cpn"),lE:X(a.Ia,"metadata_type_linked_in_player_layout_id"),OK:X(a.Ia,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,LE:void 0,ZM:d,ut:a.layoutId,videoLengthSeconds:X(a.Ia,"metadata_type_video_length_seconds")}};
   IKa=function(a,b){this.callback=a;this.slot=b};
   v0=function(){};
   JKa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
   KKa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c;this.u=!1;this.i=0};
   LKa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
   w0=function(a){this.Ga=a};
   x0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
   y0=function(a){g.I.call(this);this.aC=a;this.Gb=new Map};
   MKa=function(a,b){for(var c=[],d=g.r(a.Gb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof xZ&&f.Fe===b&&c.push(e)}c.length?cZ(a.aC(),c):T("Survey is submitted but no registered triggers can be activated.")};
   z0=function(a,b){y0.call(this,a);var c=this;b.get().addListener(this);g.we(this,function(){b.get().removeListener(c)})};
   A0=function(a){g.I.call(this);this.i=a;this.nj=!0;this.Gb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.J=new Set;this.u=new Set};
   B0=function(a,b){g.I.call(this);var c=this;this.i=a;this.Gb=new Map;b.get().addListener(this);g.we(this,function(){b.get().removeListener(c)})};
   NKa=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 XZ){var h=f.trigger.i===b;h===c?e.push(f):d&&h&&(T("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
   C0=function(a,b,c,d){g.I.call(this);var e=this;this.u=a;this.B=b;this.Ga=c;this.C=d;this.Gb=new Map;this.i=new Set;c.get().addListener(this);g.we(this,function(){c.get().removeListener(e)})};
   D0=function(a,b,c,d,e,f,h,l,m,n){if(Vz(a.C.get(),1).clientPlaybackNonce!==m)throw new eZ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Gb.set(c.triggerId,{bundle:new x0(b,c,d,e),Ay:f});a.B.get().addCueRange(f,h,l,n,a)};
   OKa=function(a,b){a=g.r(a.Gb.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.Ay)return c}return""};
   E0=function(a){g.I.call(this);this.B=a;this.nj=!0;this.Gb=new Map;this.u=this.i=null};
   f0=function(a,b){for(var c=[],d=g.r(a.Gb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof zZ){var f;if(f=e.trigger.layoutId===b)f=(f=uIa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&cZ(a.B(),c)};
   F0=function(a){g.I.call(this);this.i=a;this.nj=!0;this.Gb=new Map};
   G0=function(a,b,c,d,e,f){g.I.call(this);this.B=a;this.D=b;this.J=c;this.S=d;this.K=e;this.Na=f;this.i=this.u=null;this.C=!1;this.D.get().addListener(this)};
   Cqa=function(a,b,c,d,e){var f=aA(a.K.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:void 0,qc:[],pc:[],gb:"surface",Ia:new IY([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",tc:new Map,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:"surface",Ia:new IY(c),Dc:pIa(MY(a.J.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&(aZ(a.B(),a.u,a.i),a.C=!0,bZ(a.B(),a.u,a.i))};
   H0=function(a){this.Vo=a};
   PKa=function(a,b){if(!a)return{yl:[],ot:!0};a.trackingParams&&kra(hK(),a.trackingParams);if(a.adThrottled)return{yl:[],ot:!0};a=a.playerAds;if(!a||!a.length)return{yl:[],ot:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
   if(!a.length)return{yl:[],ot:!1};if(0<b.end){var c=b.end.toString();a.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===d.kind&&d.adTimeOffset&&"-1"===d.adTimeOffset.offsetEndMilliseconds&&d.adTimeOffset.offsetEndMilliseconds!==c&&(d.adTimeOffset.offsetEndMilliseconds=c)})}return{yl:a,
   ot:!1}};
   I0=function(a){g.I.call(this);this.I=a;this.listeners=[];this.i=new ky(this);g.J(this,this.i);this.i.T(this.I,"aduxclicked",this.onAdUxClicked);this.i.T(this.I,"aduxmouseover",this.YE);this.i.T(this.I,"aduxmouseout",this.XE);this.i.T(this.I,"muteadaccepted",this.xT)};
   QKa=function(a,b,c){b=g.ym(b,function(d){return new rA(d,c,d.id)});
   a.I.Oa("onAdUxUpdate",b)};
   J0=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
   K0=function(a,b,c,d){g.I.call(this);this.I=a;this.C=b;this.Na=c;this.Va=d;this.listeners=[];this.u=new Set;this.fB=[];this.B=new GJ(this,VJa(c.get()));this.i=new HJ;RKa(this)};
   RKa=function(a){var b,c=a.I.getVideoData(1);c.subscribe("cuepointupdated",a.fF,a);a.u.clear();a.fB.length=0;c=(null===(b=c.i)||void 0===b?void 0:nma(b,0))||[];a.fF(c)};
   SKa=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");}};
   L0=function(a){this.I=a};
   M0=function(a){this.I=a};
   N0=function(){this.listeners=[]};
   TKa=function(a){this.I=a};
   O0=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.K=e;this.D=f;this.Ga=h;this.i=l;this.Va=m;this.S=n;this.driftRecoveryMs=X(this.layout.Ia,"metadata_type_drift_recovery_ms")||null};
   UKa=function(a){var b=X(a.layout.Ia,"metadata_type_layout_enter_ms"),c=X(a.layout.Ia,"metadata_type_layout_exit_ms");a=a.D.get();b=IJ(a.i,b,c);return Math.min(c,null!==b?b:Infinity)};
   P0=function(a,b){var c;u_(a.Va.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.B.get().rp)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Dc.adClientDataEntry},b)})};
   Q0=function(a,b,c,d,e,f,h,l,m,n,p){O0.call(this,a,b,c,d,e,f,h,l,m,n);this.J=p;this.C=this.u=null;a=g.r(this.J);for(b=a.next();!b.done;b=a.next())b=b.value,Wz(b.Kb().Ia,"metadata_type_survey_overlay")&&(this.C=b.Kb().layoutId)};
   WKa=function(a,b){var c=VKa(a,b);a.u={Zh:c};c?c.startRendering(c.Kb()):b===a.C&&T("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
   VKa=function(a,b){return null==b?null:a.J.find(function(c){return c.Kb().layoutId===b})||null};
   XKa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=Wz(b.Ia,"metadata_type_survey_overlay");if(!p)return h.Sv(c,2,f,d,e,a.slotId),n.Yf("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q),null;c=h.yr(c,2,f,d,e,a.slotId);n.Yf("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q);if(!c)return T("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.i.has(c)&&T("Unexpected remap of timeline playback"),l.i.set(c,
   {slotId:a,layoutId:b})):T("Invalid timeline playback ID");d+f>e&&h.zt(c,e-d);return c};
   YKa=function(a,b){var c=X(b.Ia,"metadata_type_sodar_extension_data");if(c)try{hKa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}};
   ZKa=function(a,b,c,d,e,f){c=new g.dI(c,new g.SJ);R0(a,b,c,d,e,!1,f)};
   R0=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;g0(c)&&h0(e,0,null)&&(!S_(a,"impression")&&h&&h(),Q_(a,"impression"));S_(a,"impression")&&(g.fI(c,4)&&!g.fI(c,2)&&a.Bf("pause"),0>eI(c,4)&&!(0>eI(c,2))&&a.Bf("resume"),g.fI(c,16)&&.5<=e&&a.Bf("seek"),f&&g.fI(c,2)&&S0(a,c.state,b,d,e))};
   S0=function(a,b,c,d,e,f){if(S_(a,"impression")){var h=1>=Math.abs(d-e);T0(a,b,h?d:e,c,d,f);h&&Q_(a,"complete")}};
   T0=function(a,b,c,d,e,f){R_(a,1E3*c);0>=e||0>=c||(null===b||void 0===b?0:g.U(b,16))||(null===b||void 0===b?0:g.U(b,32))||(h0(c,.25*e,d)&&(f&&!S_(a,"first_quartile")&&f("first"),Q_(a,"first_quartile")),h0(c,.5*e,d)&&(f&&!S_(a,"midpoint")&&f("second"),Q_(a,"midpoint")),h0(c,.75*e,d)&&(f&&!S_(a,"third_quartile")&&f("third"),Q_(a,"third_quartile")))};
   $Ka=function(a,b){S_(a,"impression")&&a.Bf(b?"fullscreen":"end_fullscreen")};
   aLa=function(a){S_(a,"impression")&&a.Bf("clickthrough")};
   bLa=function(a){a.Bf("active_view_measurable")};
   cLa=function(a){S_(a,"impression")&&!S_(a,"seek")&&a.Bf("active_view_fully_viewable_audible_half_duration")};
   dLa=function(a){S_(a,"impression")&&!S_(a,"seek")&&a.Bf("active_view_viewable")};
   eLa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.u=e;this.Ga=f;this.K=h;this.B=l;this.J=m;this.Na=n;this.Va=p;this.C=q;this.zz=!0;this.Cc=this.i=null};
   fLa=function(a,b,c){var d;a.Va.get().Yf("ads_qua","cpn."+X(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(d=Vz(a.C.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
   gLa=function(a,b){var c;a.Va.get().Yf("ads_imp","cpn."+X(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(c=Vz(a.C.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
   U0=function(a){return{enterMs:X(a.Ia,"metadata_type_layout_enter_ms"),exitMs:X(a.Ia,"metadata_type_layout_exit_ms")}};
   V0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){O0.call(this,a,b,c,d,e,h,l,m,n,q);this.Z=f;this.J=p;this.C=t;this.Na=u;this.Cc=this.u=null};
   hLa=function(a,b){var c;a.Va.get().Yf("ads_imp","acpn."+(null===(c=Vz(a.B.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
   iLa=function(a,b,c){var d;a.Va.get().Yf("ads_qua","cpn."+X(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(d=Vz(a.B.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
   W0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F){this.Ze=a;this.ya=b;this.i=c;this.B=d;this.Ga=e;this.Va=f;this.K=h;this.D=l;this.u=m;this.C=n;this.Gd=p;this.Y=q;this.fd=t;this.Jc=u;this.S=x;this.Z=y;this.ma=z;this.Na=G;this.J=F};
   X0=function(a){g.I.call(this);this.i=a;this.Gb=new Map};
   Y0=function(a,b){for(var c=[],d=g.r(a.Gb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&cZ(a.i(),c)};
   Z0=function(a,b){var c;g.I.call(this);var d=this;this.C=a;this.u=new Map;this.B=new Map;this.i=null;b.get().addListener(this);g.we(this,function(){b.get().removeListener(d)});
   this.i=(null===(c=b.get().rp)||void 0===c?void 0:c.slotId)||null};
   jLa=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};
   $0=function(a){this.I=a};
   a1=function(){this.listeners=new Set};
   kLa=function(a,b,c,d,e){uH.call(this,"image-companion",a,b,c,d,e)};
   b1=function(a,b,c,d,e,f,h,l){U_.call(this,a,b,c,d);this.Va=e;this.Ze=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");QY(this.Ze(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new N_(c.tc,this.Va,a,c.layoutId)};
   lLa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];O_().forEach(function(b){a.push(b)});
   return{Vd:a,cf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
   mLa=function(a,b,c,d,e){uH.call(this,"shopping-companion",a,b,c,d,e)};
   c1=function(a,b,c,d,e,f,h,l){U_.call(this,a,b,c,d);this.Va=e;this.Ze=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");QY(this.Ze(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new N_(c.tc,this.Va,a,c.layoutId)};
   nLa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];O_().forEach(function(b){a.push(b)});
   return{Vd:a,cf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
   oLa=function(a,b,c,d,e){this.i=a;this.Va=b;this.Ze=c;this.u=d;this.B=e};
   d1=function(a,b,c){uH.call(this,"player-underlay",a,{},b,c);this.ub=c};
   e1=function(a,b,c,d){U_.call(this,a,b,c,d)};
   pLa=function(a){this.i=a};
   f1=function(a,b,c,d,e){U_.call(this,c,a,b,d);this.Va=e;a=X(b.Ia,"metadata_type_ad_placement_config");this.B=new N_(b.tc,e,a,b.layoutId)};
   g1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
   i1=function(a,b,c){c=void 0===c?h1:c;c.width<h1.width&&(c=h1);if(a.width<c.width||a.height<c.height)return{rB:3,yx:501,errorMessage:"ad("+g1(c)+") larger than container("+g1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{rB:3,yx:501,errorMessage:"ad("+g1(c)+") to container("+g1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{rB:3,yx:501,errorMessage:"ad("+g1(c)+") covers container("+g1(a)+") center."}};
   qLa=function(a,b){var c=X(a.Ia,"metadata_type_ad_placement_config");return new N_(a.tc,b,c,a.layoutId)};
   j1=function(a){return X(a.Ia,"metadata_type_invideo_overlay_ad_renderer")};
   k1=function(a,b,c,d){uH.call(this,"invideo-overlay",a,b,c,d);this.ub=d};
   l1=function(a,b,c,d,e,f,h,l,m,n,p,q){U_.call(this,f,a,b,e);this.Va=c;this.B=h;this.Ga=l;this.J=m;this.Na=n;this.Od=p;this.C=q;this.K=qLa(b,c)};
   rLa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];O_().forEach(function(b){a.push(b)});
   return{Vd:a,cf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
   m1=function(a,b,c,d,e,f,h,l,m,n,p,q,t){U_.call(this,f,a,b,e);this.Va=c;this.B=h;this.J=l;this.Ga=m;this.K=n;this.Na=p;this.Od=q;this.C=t;this.S=qLa(b,c)};
   sLa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(O_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Vd:a,cf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
   n1=function(a){this.Ga=a;this.i=!1};
   o1=function(a,b,c,d,e,f,h){U_.call(this,c,a,b,d);this.B=e;this.Ga=f;this.Na=h};
   tLa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ga=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Na=m;this.Od=n};
   p1=function(a){g.I.call(this);this.B=a;this.nj=!0;this.Gb=new Map;this.i=new Map;this.u=new Map};
   uLa=function(a,b){var c=[];if(b=a.i.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};
   q1=function(a,b,c){g.I.call(this);this.B=a;this.C=b;this.D=c;this.i=this.u=void 0;this.C.get().addListener(this)};
   vLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.K=Y(function(){return new $z});
   g.J(this,this.K);this.ya=Y(function(){return new RZ(f.K)});
   g.J(this,this.ya);this.B=Y(function(){return new OZ});
   g.J(this,this.B);this.Z=Y(function(){return new KZ(a)});
   g.J(this,this.Z);this.Y=Y(function(){return new d_(f.K)});
   g.J(this,this.Y);this.Mb=Y(function(){return new g_});
   g.J(this,this.Mb);this.uc=Y(function(){return new vH(b.V())});
   g.J(this,this.uc);this.ma=Y(function(){return new I0(b)});
   g.J(this,this.ma);this.Za=Y(function(){return new C_(e)});
   g.J(this,this.Za);this.fd=Y(function(){return new MJ(b)});
   g.J(this,this.fd);this.Ja=Y(function(){return new i_(b)});
   g.J(this,this.Ja);this.Gd=Y(function(){return new L0(b)});
   g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)});
   g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)});
   g.J(this,this.Na);this.Zb=Y(function(){return new H0(d)});
   g.J(this,this.Zb);this.C=Y(function(){return new OY(f.Na)});
   g.J(this,this.C);this.Ua=Y(function(){return new HZ(f.Y,f.ya,f.Na,f.C,"SLOT_TYPE_ABOVE_FEED",f.jb)});
   g.J(this,this.Ua);this.Tc=Y(function(){return new M0(b)});
   g.J(this,this.Tc);this.vb=Y(function(){return new N0});
   g.J(this,this.vb);this.qb=Y(function(){return new a1});
   g.J(this,this.qb);this.i=Y(function(){return new x_(b,f.Mb,f.Na)});
   g.J(this,this.i);this.dc=new f_(this.Na,this.C,this.i);g.J(this,this.dc);this.Ka=Y(function(){return new K0(b,f.i,f.Na,f.Va)});
   g.J(this,this.Ka);this.Ra=Y(function(){return new $0(b)});
   g.J(this,this.Ra);this.Ga=Y(function(){return new y_(b,f.i)});
   g.J(this,this.Ga);this.hf=Y(function(){return new D_});
   this.Aa=Y(function(){return new n_(f.Ga,b)});
   g.J(this,this.Aa);this.Va=Y(function(){return new s_(b,f.B,f.Aa,f.i)});
   g.J(this,this.Va);this.qd=new t0(u0,r1,function(l,m,n,p){return SZ(f.ya.get(),l,m,n,p)},this.Z,this.Y,this.ya,this.C,this.Na,this.i);
   g.J(this,this.qd);this.yc=new Zz(this.Z,this.Ua,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i,this.Ka);this.eb=Y(function(){return h});
   this.Tn=h;this.jb=new s0(this.Z,this.Y,this.i,this.eb,this.Ka,this.Ga,this.Na,this.Ra);g.J(this,this.jb);this.Db=new NZ(this.Z,this.Y,this.Ja,this.eb);g.J(this,this.Db);this.zc=new Tz(this.Z,this.Y,this.Ua,this.i,this.Db,c);g.J(this,this.zc);this.kc=Y(function(){return new J_(f.Zb,f.ya,f.C,f.Ra)});
   g.J(this,this.kc);this.D=Y(function(){return new K_});
   g.J(this,this.D);this.Ea=new z0(a,this.ma);g.J(this,this.Ea);this.u=new A0(a);g.J(this,this.u);this.Ya=new X0(a);g.J(this,this.Ya);this.kb=new B0(a,this.eb);g.J(this,this.kb);this.La=new C0(a,this.Ja,this.Ga,this.i);g.J(this,this.La);this.zb=new Z0(a,this.i);g.J(this,this.zb);this.S=new E0(a);g.J(this,this.S);this.cd=new F0(a);g.J(this,this.cd);this.Hb=new p1(a);g.J(this,this.Hb);this.J=Y(function(){return new v0});
   g.J(this,this.J);this.zd=Y(function(){return new w0(f.Ga)});
   g.J(this,this.zd);this.Nd=Y(function(){return new oLa(f.ma,f.Va,a,f.B,f.Aa)});
   g.J(this,this.Nd);this.ac=Y(function(){return new M_(f.zc)});
   g.J(this,this.ac);this.wc=Y(function(){return new T_(f.Va,f.S)});
   g.J(this,this.wc);this.dd=Y(function(){return new W0(a,f.S,f.i,f.Ra,f.Ga,f.Va,f.Mb,f.Ka,f.Aa,f.hf,f.Gd,f.Ja,f.fd,f.Jc,f.uc,f.Za,f.Tc,f.Na,f.B)});
   g.J(this,this.dd);this.Fc=Y(function(){return new tLa(f.ma,f.Ga,f.Va,f.B,f.Aa,f.Ya,f.Hb,f.Za,f.Na,c)});
   g.J(this,this.Fc);this.ye=Y(function(){return new pLa(f.ma)});
   g.J(this,this.ye);this.Ge=new q1(a,this.qb,this.K);g.J(this,this.Ge);this.Ye=new G0(a,this.vb,this.C,this.i,this.K,this.Na);g.J(this,this.Ye);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Db]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
   this.kc],["SLOT_TYPE_ABOVE_FEED",this.D],["SLOT_TYPE_FORECASTING",this.D],["SLOT_TYPE_IN_PLAYER",this.D],["SLOT_TYPE_PLAYER_BYTES",this.D],["SLOT_TYPE_PLAYER_UNDERLAY",this.D]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",
   this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ya],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
   this.zb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.cd],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Hb]]),zm:new Map([["SLOT_TYPE_ABOVE_FEED",this.J],["SLOT_TYPE_AD_BREAK_REQUEST",this.J],["SLOT_TYPE_FORECASTING",this.J],["SLOT_TYPE_IN_PLAYER",this.J],["SLOT_TYPE_PLAYER_BYTES",this.zd],["SLOT_TYPE_PLAYER_UNDERLAY",
   this.J]]),cm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Nd],["SLOT_TYPE_AD_BREAK_REQUEST",this.ac],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.dd],["SLOT_TYPE_IN_PLAYER",this.Fc],["SLOT_TYPE_PLAYER_UNDERLAY",this.ye]])};this.listeners=[this.B.get()];this.Yp={zc:this.zc,fk:this.S,em:this.vb.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.K.get(),dm:this.qb.get(),wi:this.Ea,eh:this.B.get()}};
   wLa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ga=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Na=m;this.Od=n};
   xLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.C=Y(function(){return new $z});
   g.J(this,this.C);this.K=Y(function(){return new RZ(f.C)});
   g.J(this,this.K);this.S=Y(function(){return new OZ});
   g.J(this,this.S);this.D=Y(function(){return new KZ(a)});
   g.J(this,this.D);this.J=Y(function(){return new d_(f.C)});
   g.J(this,this.J);this.dd=Y(function(){return new g_});
   g.J(this,this.dd);this.Mb=Y(function(){return new vH(b.V())});
   g.J(this,this.Mb);this.Ja=Y(function(){return new I0(b)});
   g.J(this,this.Ja);this.Ua=Y(function(){return new C_(e)});
   g.J(this,this.Ua);this.fd=Y(function(){return new MJ(b)});
   g.J(this,this.fd);this.Y=Y(function(){return new i_(b)});
   g.J(this,this.Y);this.Gd=Y(function(){return new L0(b)});
   g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)});
   g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)});
   g.J(this,this.Na);this.zb=Y(function(){return new H0(d)});
   g.J(this,this.zb);this.B=Y(function(){return new OY(f.Na)});
   g.J(this,this.B);this.Ka=Y(function(){return new HZ(f.J,f.K,f.Na,f.B,null,f.eb)});
   g.J(this,this.Ka);this.kc=Y(function(){return new M0(b)});
   g.J(this,this.kc);this.jb=Y(function(){return new N0});
   g.J(this,this.jb);this.kb=Y(function(){return new a1});
   g.J(this,this.kb);this.i=Y(function(){return new x_(b,f.dd,f.Na)});
   g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.zd=Y(function(){return new K0(b,f.i,f.Na,f.Va)});
   this.Ga=Y(function(){return new y_(b,f.i)});
   g.J(this,this.Ga);this.Ea=Y(function(){return new n_(f.Ga,b)});
   g.J(this,this.Ea);this.Va=Y(function(){return new s_(b,f.S,f.Ea,f.i)});
   g.J(this,this.Va);this.cd=Y(function(){return new D_});
   g.J(this,this.cd);this.Fc=new t0(u0,r1,function(l,m,n,p){return SZ(f.K.get(),l,m,n,p)},this.D,this.J,this.K,this.B,this.Na,this.i);
   g.J(this,this.Fc);this.yc=new Zz(this.D,this.Ka,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.Ya=Y(function(){return h});
   this.Tn=h;this.eb=new s0(this.D,this.J,this.i,this.Ya,this.zd,this.Ga,this.Na);g.J(this,this.eb);this.qb=new NZ(this.D,this.J,this.Y,this.Ya);g.J(this,this.qb);this.zc=new Tz(this.D,this.J,this.Ka,this.i,this.qb,c);g.J(this,this.zc);this.Hb=Y(function(){return new J_(f.zb,f.K,f.B)});
   g.J(this,this.Hb);this.ya=Y(function(){return new K_});
   g.J(this,this.ya);this.La=new z0(a,this.Ja);g.J(this,this.La);this.u=new A0(a);g.J(this,this.u);this.Ra=new X0(a);g.J(this,this.Ra);this.Za=new B0(a,this.Ya);g.J(this,this.Za);this.ma=new C0(a,this.Y,this.Ga,this.i);g.J(this,this.ma);this.Z=new E0(a);g.J(this,this.Z);this.uc=new F0(a);g.J(this,this.uc);this.vb=new p1(a);g.J(this,this.vb);this.Aa=Y(function(){return new v0});
   g.J(this,this.Aa);this.Tc=Y(function(){return new w0(f.Ga)});
   g.J(this,this.Tc);this.Db=Y(function(){return new M_(f.zc)});
   g.J(this,this.Db);this.Zb=Y(function(){return new T_(f.Va,f.Z)});
   g.J(this,this.Zb);this.ac=Y(function(){return new wLa(f.Ja,f.Ga,f.Va,f.S,f.Ea,f.Ra,f.vb,f.Ua,f.Na,c)});
   g.J(this,this.ac);this.wc=Y(function(){return new r0(a,f.Z,f.Va,f.Ea,f.cd,f.Gd,f.i,f.Ga,f.Y,f.fd,f.Jc,f.Mb,f.Ua,f.kc,f.Na)});
   g.J(this,this.wc);this.qd=new q1(a,this.kb,this.C);g.J(this,this.qd);this.Nd=new G0(a,this.jb,this.B,this.i,this.C,this.Na);g.J(this,this.Nd);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.eb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
   this.Hb],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.ya]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
   this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ra],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Za],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ma],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ma],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ma],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Z],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Z],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
   this.Za],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.vb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.Tc]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.Zb],["SLOT_TYPE_IN_PLAYER",this.ac],["SLOT_TYPE_PLAYER_BYTES",this.wc]])};this.listeners=[this.S.get()];this.Yp={zc:this.zc,fk:null,em:this.jb.get(),
   Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.C.get(),dm:this.kb.get(),wi:this.La,eh:this.S.get()}};
   yLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.D=Y(function(){return new $z});
   g.J(this,this.D);this.J=Y(function(){return new RZ(f.D)});
   g.J(this,this.J);this.K=Y(function(){return new OZ});
   g.J(this,this.K);this.Z=Y(function(){return new KZ(a)});
   g.J(this,this.Z);this.Y=Y(function(){return new d_(f.D)});
   g.J(this,this.Y);this.uc=Y(function(){return new g_});
   g.J(this,this.uc);this.jb=Y(function(){return new vH(b.V())});
   g.J(this,this.jb);this.Ea=Y(function(){return new I0(b)});
   g.J(this,this.Ea);this.qb=Y(function(){return new C_(e)});
   g.J(this,this.qb);this.fd=Y(function(){return new MJ(b)});
   g.J(this,this.fd);this.ma=Y(function(){return new i_(b)});
   g.J(this,this.ma);this.Gd=Y(function(){return new L0(b)});
   g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)});
   g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)});
   g.J(this,this.Na);this.Za=Y(function(){return new H0(d)});
   g.J(this,this.Za);this.B=Y(function(){return new OY(f.Na)});
   g.J(this,this.B);this.Aa=Y(function(){return new HZ(f.Y,f.J,f.Na,f.B,null,null)});
   g.J(this,this.Aa);this.Db=Y(function(){return new M0(b)});
   g.J(this,this.Db);this.Ra=Y(function(){return new N0});
   g.J(this,this.Ra);this.i=Y(function(){return new x_(b,f.uc,f.Na)});
   g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ga=Y(function(){return new y_(b,f.i)});
   g.J(this,this.Ga);this.Ua=Y(function(){return new n_(f.Ga,b)});
   g.J(this,this.Ua);this.Va=Y(function(){return new s_(b,f.K,f.Ua,f.i)});
   g.J(this,this.Va);this.kc=Y(function(){return new D_});
   g.J(this,this.kc);this.Zb=new t0(u0,r1,function(l,m,n,p){return SZ(f.J.get(),l,m,n,p)},this.Z,this.Y,this.J,this.B,this.Na,this.i);
   g.J(this,this.Zb);this.yc=new Zz(this.Z,this.Aa,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.vb=Y(function(){return h});
   this.Tn=h;this.Ya=new NZ(this.Z,this.Y,this.ma,this.vb);g.J(this,this.Ya);this.zc=new Tz(this.Z,this.Y,this.Aa,this.i,this.Ya,c);g.J(this,this.zc);this.kb=Y(function(){return new J_(f.Za,f.J,f.B)});
   g.J(this,this.kb);this.ya=Y(function(){return new K_});
   g.J(this,this.ya);this.Ka=new z0(a,this.Ea);g.J(this,this.Ka);this.u=new A0(a);g.J(this,this.u);this.Ja=new B0(a,this.vb);g.J(this,this.Ja);this.La=new C0(a,this.ma,this.Ga,this.i);g.J(this,this.La);this.S=new E0(a);g.J(this,this.S);this.Hb=new F0(a);g.J(this,this.Hb);this.C=Y(function(){return new v0});
   g.J(this,this.C);this.ac=Y(function(){return new w0(f.Ga)});
   g.J(this,this.ac);this.eb=Y(function(){return new M_(f.zc)});
   g.J(this,this.eb);this.zb=Y(function(){return new T_(f.Va,f.S)});
   g.J(this,this.zb);this.wc=Y(function(){return new a0(f.Ea,f.Ga,f.Va,f.K,c)});
   g.J(this,this.wc);this.Mb=Y(function(){return new r0(a,f.S,f.Va,f.Ua,f.kc,f.Gd,f.i,f.Ga,f.ma,f.fd,f.Jc,f.jb,f.qb,f.Db,f.Na)});
   g.J(this,this.Mb);this.Fc=new G0(a,this.Ra,this.B,this.i,this.D,this.Na);g.J(this,this.Fc);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",
   this.ya]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
   this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.ac]]),
   cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.zb],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.Mb]])};this.listeners=[this.K.get()];this.Yp={zc:this.zc,fk:null,em:this.Ra.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.D.get(),dm:null,wi:this.Ka,eh:this.K.get()}};
   zLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.C=Y(function(){return new $z});
   g.J(this,this.C);this.D=Y(function(){return new RZ(f.C)});
   g.J(this,this.D);this.J=Y(function(){return new OZ});
   g.J(this,this.J);this.S=Y(function(){return new KZ(a)});
   g.J(this,this.S);this.Z=Y(function(){return new d_(f.C)});
   g.J(this,this.Z);this.wc=Y(function(){return new g_});
   g.J(this,this.wc);this.kb=Y(function(){return new vH(b.V())});
   g.J(this,this.kb);this.Ea=Y(function(){return new I0(b)});
   g.J(this,this.Ea);this.jb=Y(function(){return new C_(e)});
   g.J(this,this.jb);this.fd=Y(function(){return new MJ(b)});
   g.J(this,this.fd);this.Y=Y(function(){return new i_(b)});
   g.J(this,this.Y);this.Gd=Y(function(){return new L0(b)});
   g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)});
   g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)});
   g.J(this,this.Na);this.Ya=Y(function(){return new H0(d)});
   g.J(this,this.Ya);this.B=Y(function(){return new OY(f.Na)});
   g.J(this,this.B);this.Aa=Y(function(){return new HZ(f.Z,f.D,f.Na,f.B,null,null)});
   g.J(this,this.Aa);this.Hb=Y(function(){return new M0(b)});
   g.J(this,this.Hb);this.La=Y(function(){return new N0});
   g.J(this,this.La);this.i=Y(function(){return new x_(b,f.wc,f.Na)});
   g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ga=Y(function(){return new y_(b,f.i)});
   g.J(this,this.Ga);this.Ra=Y(function(){return new n_(f.Ga,b)});
   g.J(this,this.Ra);this.Va=Y(function(){return new s_(b,f.J,f.Ra,f.i)});
   g.J(this,this.Va);this.uc=Y(function(){return new D_});
   g.J(this,this.uc);this.ac=new t0(u0,r1,function(l,m,n,p){return SZ(f.D.get(),l,m,n,p)},this.S,this.Z,this.D,this.B,this.Na,this.i);
   g.J(this,this.ac);this.yc=new Zz(this.S,this.Aa,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.qb=Y(function(){return h});
   this.Tn=h;this.Ua=new NZ(this.S,this.Z,this.Y,this.qb);g.J(this,this.Ua);this.zc=new Tz(this.S,this.Z,this.Aa,this.i,this.Ua,c);g.J(this,this.zc);this.eb=Y(function(){return new J_(f.Ya,f.D,f.B)});
   g.J(this,this.eb);this.ma=Y(function(){return new K_});
   g.J(this,this.ma);this.Ka=new z0(a,this.Ea);g.J(this,this.Ka);this.u=new A0(a);g.J(this,this.u);this.Ja=new B0(a,this.qb);g.J(this,this.Ja);this.vb=new C0(a,this.Y,this.Ga,this.i);g.J(this,this.vb);this.K=new E0(a);g.J(this,this.K);this.Mb=new F0(a);g.J(this,this.Mb);this.ya=Y(function(){return new v0});
   g.J(this,this.ya);this.kc=Y(function(){return new w0(f.Ga)});
   g.J(this,this.kc);this.Za=Y(function(){return new M_(f.zc)});
   g.J(this,this.Za);this.zb=Y(function(){return new T_(f.Va,f.K)});
   g.J(this,this.zb);this.Db=Y(function(){return new a0(f.Ea,f.Ga,f.Va,f.J,c)});
   g.J(this,this.Db);this.Zb=Y(function(){return new r0(a,f.K,f.Va,f.Ra,f.uc,f.Gd,f.i,f.Ga,f.Y,f.fd,f.Jc,f.kb,f.jb,f.Hb,f.Na)});
   g.J(this,this.Zb);this.Fc=new G0(a,this.La,this.B,this.i,this.C,this.Na);g.J(this,this.Fc);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ac],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ua]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",
   this.ma]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
   this.Ja],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.vb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ya],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Za],["SLOT_TYPE_FORECASTING",
   this.zb],["SLOT_TYPE_IN_PLAYER",this.Db],["SLOT_TYPE_PLAYER_BYTES",this.Zb]])};this.listeners=[this.J.get()];this.Yp={zc:this.zc,fk:null,em:this.La.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.C.get(),dm:null,wi:this.Ka,eh:this.J.get()}};
   s1=function(a,b,c,d,e,f,h,l,m){Z_.call(this,a,b,c,d,e,f,h,m);this.J=l};
   ALa=function(){var a=tKa();a.Vd.push("metadata_type_ad_info_ad_metadata");return a};
   BLa=function(a,b,c,d,e,f){this.u=a;this.Ga=b;this.Va=c;this.B=d;this.i=e;this.Od=f};
   CLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.C=Y(function(){return new $z});
   g.J(this,this.C);this.D=Y(function(){return new RZ(f.C)});
   g.J(this,this.D);this.J=Y(function(){return new OZ});
   g.J(this,this.J);this.S=Y(function(){return new KZ(a)});
   g.J(this,this.S);this.Z=Y(function(){return new d_(f.C)});
   g.J(this,this.Z);this.wc=Y(function(){return new g_});
   g.J(this,this.wc);this.jb=Y(function(){return new TKa(b)});
   g.J(this,this.jb);this.qb=Y(function(){return new vH(b.V())});
   g.J(this,this.qb);this.Ea=Y(function(){return new I0(b)});
   g.J(this,this.Ea);this.vb=Y(function(){return new C_(e)});
   g.J(this,this.vb);this.fd=Y(function(){return new MJ(b)});
   g.J(this,this.fd);this.Y=Y(function(){return new i_(b)});
   g.J(this,this.Y);this.Gd=Y(function(){return new L0(b)});
   g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)});
   g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)});
   g.J(this,this.Na);this.Za=Y(function(){return new H0(d)});
   g.J(this,this.Za);this.B=Y(function(){return new OY(f.Na)});
   g.J(this,this.B);this.Aa=Y(function(){return new HZ(f.Z,f.D,f.Na,f.B,null,null)});
   g.J(this,this.Aa);this.Hb=Y(function(){return new M0(b)});
   g.J(this,this.Hb);this.Ra=Y(function(){return new N0});
   g.J(this,this.Ra);this.i=Y(function(){return new x_(b,f.wc,f.Na)});
   g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ga=Y(function(){return new y_(b,f.i)});
   g.J(this,this.Ga);this.Ua=Y(function(){return new n_(f.Ga,b)});
   g.J(this,this.Ua);this.Va=Y(function(){return new s_(b,f.J,f.Ua,f.i)});
   g.J(this,this.Va);this.uc=Y(function(){return new D_});
   g.J(this,this.uc);this.ac=new t0(GKa,r1,function(l,m,n,p){return LJa(f.D.get(),l,m,n,p)},this.S,this.Z,this.D,this.B,this.Na,this.i);
   g.J(this,this.ac);this.yc=new Zz(this.S,this.Aa,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.zb=Y(function(){return h});
   this.Tn=h;this.Ya=new NZ(this.S,this.Z,this.Y,this.zb);g.J(this,this.Ya);this.zc=new Tz(this.S,this.Z,this.Aa,this.i,this.Ya,c);g.J(this,this.zc);this.kb=Y(function(){return new J_(f.Za,f.D,f.B)});
   g.J(this,this.kb);this.ma=Y(function(){return new K_});
   g.J(this,this.ma);this.Ka=new z0(a,this.Ea);g.J(this,this.Ka);this.u=new A0(a);g.J(this,this.u);this.Ja=new B0(a,this.zb);g.J(this,this.Ja);this.La=new C0(a,this.Y,this.Ga,this.i);g.J(this,this.La);this.K=new E0(a);g.J(this,this.K);this.Mb=new F0(a);g.J(this,this.Mb);this.ya=Y(function(){return new v0});
   g.J(this,this.ya);this.kc=Y(function(){return new w0(f.Ga)});
   g.J(this,this.kc);this.eb=Y(function(){return new M_(f.zc)});
   g.J(this,this.eb);this.Db=Y(function(){return new T_(f.Va,f.K)});
   g.J(this,this.Db);this.Zb=Y(function(){return new r0(a,f.K,f.Va,f.Ua,f.uc,f.Gd,f.i,f.Ga,f.Y,f.fd,f.Jc,f.qb,f.vb,f.Hb,f.Na)});
   g.J(this,this.Zb);this.Fc=Y(function(){return new BLa(f.Ea,f.Ga,f.Va,f.J,f.jb,c)});
   g.J(this,this.Fc);this.Tc=new G0(a,this.Ra,this.B,this.i,this.C,this.Na);g.J(this,this.Tc);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ac],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",
   this.ma]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
   this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ya],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
   this.eb],["SLOT_TYPE_FORECASTING",this.Db],["SLOT_TYPE_IN_PLAYER",this.Fc],["SLOT_TYPE_PLAYER_BYTES",this.Zb]])};this.listeners=[this.J.get()];this.Yp={zc:this.zc,fk:null,em:this.Ra.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.C.get(),dm:null,wi:this.Ka,eh:this.J.get()}};
   DLa=function(a,b,c,d,e,f){this.i=a;this.Ga=b;this.Va=c;this.u=d;this.B=e;this.Od=f};
   ELa=function(a,b,c,d,e){g.I.call(this);var f=this;this.K=Y(function(){return new $z});
   g.J(this,this.K);this.S=Y(function(){return new RZ(f.K)});
   g.J(this,this.S);this.C=Y(function(){return new OZ});
   g.J(this,this.C);this.D=Y(function(){return new KZ(a)});
   g.J(this,this.D);this.J=Y(function(){return new d_(f.K)});
   g.J(this,this.J);this.vb=Y(function(){return new g_});
   g.J(this,this.vb);this.Mb=Y(function(){return new TKa(b)});
   g.J(this,this.Mb);this.Zb=Y(function(){return new vH(b.V())});
   g.J(this,this.Zb);this.Ja=Y(function(){return new I0(b)});
   g.J(this,this.Ja);this.ac=Y(function(){return new C_(e)});
   g.J(this,this.ac);this.fd=Y(function(){return new MJ(b)});
   g.J(this,this.fd);this.ma=Y(function(){return new i_(b)});
   g.J(this,this.ma);this.Gd=Y(function(){return new L0(b)});
   g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)});
   g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)});
   g.J(this,this.Na);this.zb=Y(function(){return new H0(d)});
   g.J(this,this.zb);this.B=Y(function(){return new OY(f.Na)});
   g.J(this,this.B);this.Ka=Y(function(){return new HZ(f.J,f.S,f.Na,f.B,null,f.Ya,3)});
   g.J(this,this.Ka);this.wc=Y(function(){return new M0(b)});
   g.J(this,this.wc);this.eb=Y(function(){return new N0});
   g.J(this,this.eb);this.i=Y(function(){return new x_(b,f.vb,f.Na)});
   g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Y=Y(function(){return new K0(b,f.i,f.Na,f.Va)});
   g.J(this,this.Y);this.Ea=Y(function(){return new $0(b)});
   g.J(this,this.Ea);this.Ga=Y(function(){return new y_(b,f.i)});
   g.J(this,this.Ga);this.zd=Y(function(){return new D_});
   this.kb=Y(function(){return new n_(f.Ga,b)});
   g.J(this,this.kb);this.Va=Y(function(){return new s_(b,f.C,f.kb,f.i)});
   g.J(this,this.Va);this.yc=new Zz(this.D,this.Ka,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i,this.Y);this.Ra=Y(function(){return h});
   this.Tn=h;this.cd=new t0(HKa,r1,function(l,m,n,p){return LJa(f.S.get(),l,m,n,p)},this.D,this.J,this.S,this.B,this.Na,this.i);
   g.J(this,this.cd);this.Ya=new s0(this.D,this.J,this.i,this.Ra,this.Y,this.Ga,this.Na,this.Ea);g.J(this,this.Ya);this.qb=new NZ(this.D,this.J,this.ma,this.Ra);g.J(this,this.qb);this.zc=new Tz(this.D,this.J,this.Ka,this.i,this.qb,c);g.J(this,this.zc);this.Hb=Y(function(){return new J_(f.zb,f.S,f.B,f.Ea)});
   g.J(this,this.Hb);this.ya=Y(function(){return new K_});
   g.J(this,this.ya);this.La=new z0(a,this.Ja);g.J(this,this.La);this.u=new A0(a);g.J(this,this.u);this.Ua=new B0(a,this.Ra);g.J(this,this.Ua);this.Za=new C0(a,this.ma,this.Ga,this.i);g.J(this,this.Za);this.jb=new Z0(a,this.i);g.J(this,this.jb);this.Z=new E0(a);g.J(this,this.Z);this.Fc=new F0(a);g.J(this,this.Fc);this.Aa=Y(function(){return new v0});
   g.J(this,this.Aa);this.dd=Y(function(){return new w0(f.Ga)});
   g.J(this,this.dd);this.Db=Y(function(){return new M_(f.zc)});
   g.J(this,this.Db);this.kc=Y(function(){return new T_(f.Va,f.Z)});
   g.J(this,this.kc);this.Tc=Y(function(){return new W0(a,f.Z,f.i,f.Ea,f.Ga,f.Va,f.vb,f.Y,f.kb,f.zd,f.Gd,f.ma,f.fd,f.Jc,f.Zb,f.ac,f.wc,f.Na,f.C)});
   g.J(this,this.Tc);this.uc=Y(function(){return new DLa(f.Ja,f.Ga,f.Va,f.C,f.Mb,c)});
   g.J(this,this.uc);this.qd=new G0(a,this.eb,this.B,this.i,this.K,this.Na);g.J(this,this.qd);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hb],["SLOT_TYPE_FORECASTING",this.ya],
   ["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.ya]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
   this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ua],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Za],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Za],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Z],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Z],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ua],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fc]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
   this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.dd]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.Tc],["SLOT_TYPE_IN_PLAYER",this.uc]])};this.listeners=[this.C.get()];this.Yp={zc:this.zc,fk:null,em:this.eb.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.K.get(),dm:null,wi:this.La,eh:this.C.get()}};
   t1=function(a,b,c,d){g.I.call(this);var e=this;this.i=FLa(function(){return e.u},a,b,c,d);
   g.J(this,this.i);this.u=(new oZ(this.i)).B();g.J(this,this.u)};
   u1=function(a){return a.i.Yp};
   FLa=function(a,b,c,d,e){try{var f=b.V();if(g.vF(f))var h=new vLa(a,b,c,d,e);else if(g.yF(f))h=new xLa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)h=new zLa(a,b,c,d,e);else if(mF(f))h=new yLa(a,b,c,d,e);else if(g.fF(f))h=new CLa(a,b,c,d,e);else if(g.eF(f))h=new ELa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.V(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,
   Saa:e.deviceParams.cver,Raa:e.deviceParams.ctheme,Qaa:e.deviceParams.cplayer,dba:e.playerStyle}),new gKa(a,b,c,d)}};
   v1=function(a,b){this.i=a;this.fk=b};
   w1=function(a){nL.call(this,a)};
   x1=function(a,b,c,d,e){uL.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI);
   this.hide()};
   y1=function(a,b,c,d,e,f){QK.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
   "ad-action-interstitial",c,d);this.Eg=e;this.Ji=f;this.navigationEndpoint=this.i=this.skipButton=this.u=this.actionButton=null;this.Ja=this.Fa("ytp-ad-action-interstitial-image-container");this.C=new jL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-image");g.J(this,this.C);this.C.Da(this.Ja);this.Ea=this.Fa("ytp-ad-action-interstitial-headline-container");this.K=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-headline");g.J(this,this.K);this.K.Da(this.Ea);
   this.Aa=this.Fa("ytp-ad-action-interstitial-description-container");this.D=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-description");g.J(this,this.D);this.D.Da(this.Aa);this.Ua=this.Fa("ytp-ad-action-interstitial-background-container");this.Y=new jL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-background",!0);g.J(this,this.Y);this.Y.Da(this.Ua);this.La=this.Fa("ytp-ad-action-interstitial-action-button-container");this.B=new ky;g.J(this,this.B);this.hide()};
   GLa=function(a){var b=g.vg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
   z1=function(a,b,c,d){QK.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.K=[];this.Za=this.Aa=this.C=this.Ua=this.Ja=null;this.La=!1;this.D=null;this.Y=0;a=this.Fa("ytp-ad-overlay-container");this.Ea=new DL(a,45E3,6E3,.3,.4);g.J(this,this.Ea);this.B=HLa(this);g.J(this,this.B);this.B.Da(a);this.u=ILa(this);g.J(this,this.u);this.u.Da(a);this.i=JLa(this);g.J(this,this.i);this.i.Da(a);this.hide()};
   HLa=function(a){var b=new g.PK({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[cL(A1)]}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return B1(a,b.element,
   c)});
   a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return B1(a,b.element,c)});
   a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.zi);b.hide();return b};
   ILa=function(a){var b=new g.PK({G:"div",Ha:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[cL(A1)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
   va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return B1(a,b.element,c)});
   a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return B1(a,b.element,c)});
   a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.zi);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.WV);b.hide();return b};
   JLa=function(a){var b=new g.PK({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[cL(A1)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){return B1(a,b.element,c)});
   a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.zi);b.hide();return b};
   C1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.Ly(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.vg("video-ads ytp-ad-module")||null,null==b)g.Ly(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.PK({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Aa),a.Aa.Da(b),b=new rL(a.api,a.Wa,a.layoutId,a.ub,a.Aa.element,!1),g.J(a,b),b.init(tH("ad-info-hover-text-button"),c,
   a.macros),a.D){b.Da(a.D,0);b.subscribe("f",a.qT,a);b.subscribe("e",a.rF,a);a.T(a.D,"click",a.rT);var d=g.vg("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f,h;if(null===(h=null===(f=null===(e=c.button)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.serviceEndpoint)||void 0===h?0:h.adInfoDialogEndpoint)a.La=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
   a.Za=b}else g.Ly(Error("Ad info button container within overlay ad was not present."))}else g.My(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
   KLa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
   LLa=function(a,b){if(D1(a,E1)||a.api.Je())return!1;var c=RK(b.title),d=RK(b.description);if(g.$a(c)||g.$a(d))return!1;a.Rg(a.B.element,b.trackingParams||null);a.B.Sa("title",RK(b.title));a.B.Sa("description",RK(b.description));a.B.Sa("displayUrl",RK(b.displayUrl));b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);a.B.show();a.Ea.start();a.ib(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Y++});
   return!0};
   MLa=function(a,b){if(D1(a,E1)||a.api.Je())return!1;var c=RK(b.title),d=RK(b.description);if(g.$a(c)||g.$a(d))return!1;a.Rg(a.u.element,b.trackingParams||null);a.u.Sa("title",RK(b.title));a.u.Sa("description",RK(b.description));a.u.Sa("displayUrl",RK(b.displayUrl));a.u.Sa("imageUrl",Psa(b.image));b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);a.Ua=b.imageNavigationEndpoint||null;a.u.show();a.Ea.start();a.ib(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Y++});
   return!0};
   NLa=function(a,b){if(a.api.Je())return!1;var c=Qsa(b.image),d=c;c.width<E1.width&&(d=E1);if(0===c.width||0===c.height||D1(a,d))return!1;a.Rg(a.i.element,b.trackingParams||null);a.i.Sa("imageUrl",Psa(b.image));a.i.Sa("width",c.width);a.i.Sa("height",c.height);b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);b=a.i.Fa("ytp-ad-image-overlay");g.Sl(b,"max-width",c.width+"px");a.i.show();a.ib(a.i.element,!0);a.T(a.i.element,"mouseover",function(){a.Y++;a.api.YE("invideo-overlay",a.layoutId)});
   a.T(a.i.element,"mouseout",function(){a.api.XE("invideo-overlay",a.layoutId)});
   return!0};
   D1=function(a,b){var c=a.api.bb().rg(),d=a.api.ij(!0,!1);return(b=i1(c,c.height-(d.height+d.top),b))?(a.Ja&&b&&(c=g.pc(a.macros),c.ERRORCODE=b.yx.toString(),c.ERROR_MSG=b.errorMessage,a.Wa.executeCommand(a.Ja,c)),!0):!1};
   B1=function(a,b,c){var d=g.pc(a.macros),e=g.gm(b);d.AW={toString:function(){return e.width.toString()}};
   d.AH={toString:function(){return e.height.toString()}};
   var f=g.em(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
   d.NX={toString:function(){return f.x.toString()}};
   d.I_Y={toString:function(){return f.y.toString()}};
   d.NY={toString:function(){return f.y.toString()}};
   d.NM={toString:function(){return a.Y.toString()}};
   a.K.forEach(function(h){return a.Wa.executeCommand(h,d)});
   a.api.pauseVideo()};
   OLa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
   F1=function(a,b,c,d,e){uL.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",U:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.Y=-1;this.B=0;this.K=!1;this.Aa=this.Fa("ytp-ad-message-slot");this.u=new g.PK({G:"span",L:"ytp-ad-message-container"});this.u.Da(this.Aa);g.J(this,this.u);this.messageText=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-message-text");g.J(this,this.messageText);this.messageText.Da(this.u.element);this.D=new g.xL(this.u,400,!1,100,function(){return f.hide()});
   g.J(this,this.D);this.hide()};
   PLa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
   G1=function(a,b,c,d){QK.call(this,a,b,{G:"div",L:"ytp-ad-underlay-companion",U:[{G:"div",L:"ytp-ad-underlay-left-container",U:[{G:"div",L:"ytp-ad-underlay-image-container"},{G:"div",L:"ytp-ad-underlay-description-container"},{G:"div",L:"ytp-ad-underlay-headline-container"},{G:"div",L:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d);this.actionButton=null;this.Y=this.Fa("ytp-ad-underlay-image-container");this.i=new jL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-underlay-image");
   g.J(this,this.i);this.i.Da(this.Y);this.K=this.Fa("ytp-ad-underlay-headline-container");this.B=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-underlay-headline");g.J(this,this.B);this.B.Da(this.K);this.D=this.Fa("ytp-ad-underlay-description-container");this.u=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-underlay-description");g.J(this,this.u);this.u.Da(this.D);this.C=this.Fa("ytp-ad-underlay-action-button-container");this.hide()};
   QLa=function(a){var b=g.vg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
   H1=function(a,b,c,d){QK.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.i=null;this.toggledLoggingParams="";this.answer=this.Fa("ytp-ad-survey-answer");this.hide()};
   I1=function(a,b,c,d){QK.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.button=null;this.i=this.Fa("ytp-ad-survey-none-of-the-above");this.hide()};
   J1=function(a,b,c,d){dL.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
   K1=function(a,b,c,d,e,f){QK.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",U:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.B=e;this.Ji=f;this.u=this.i=null;this.C=this.Fa("ytp-ad-survey-player-overlay-instream-info");
   this.D=this.Fa("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Fa("ytp-ad-survey-player-overlay-submit");g.J(this,this.B);this.hide()};
   L1=function(a,b,c,d,e,f,h,l){QK.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",U:[{G:"div",Ha:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ha:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ha:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.Eg=f;this.Ji=h;this.B=l;this.D=null;this.u=[];this.i=null;this.question=this.Fa("ytp-ad-survey-question");this.Y=
   this.Fa("ytp-ad-survey-question-background");this.questionText=this.Fa("ytp-ad-survey-question-text");this.answers=this.Fa("ytp-ad-survey-answers");this.playerOverlay=this.Fa("ytp-ad-survey-question-player-overlay");this.C=g.Pa()};
   RLa=function(a,b,c){var d=new H1(a.api,a.Wa,a.layoutId,a.ub);d.Da(a.answers);d.init(tH("survey-answer"),b,c);a.u.push(d)};
   TLa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&iL(c)||"",g.$a(c)?g.My(Error("Found ThumbnailDetails without valid image URL")):g.Sl(a.Y,"backgroundImage","url("+c+")"));SLa(a,b)}else g.Ly(Error("addCommonComponents() needs to be called before starting countdown."))};
   SLa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.Ly(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Pa();a.i=a.Eg||a.B?new JL(a.api,b.durationMilliseconds):new KL(b.durationMilliseconds,a.Wa,a.B,!0);g.J(a,a.i);if(b.timeoutCommands&&!a.Eg&&!a.B){var c=b.timeoutCommands;a.i.subscribe("g",function(){c.forEach(function(e){return a.Wa.executeCommand(e,a.macros)})})}if(a.i&&b.instreamAdPlayerOverlay&&
   b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new K1(a.api,a.Wa,a.layoutId,a.ub,a.i,a.Ji);
   d.Da(a.playerOverlay);d.init(tH("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.J(a,d);a.tN()}catch(e){g.Ly(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.Ly(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.i&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new TL(a.api,a.i),b.Da(a.playerOverlay),g.J(a,b)):g.Ly(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
   JSON.stringify(b)))}};
   ULa=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.Pa()-a.C).toString()})};
   M1=function(a,b,c,d,e,f,h){L1.call(this,a,b,c,d,"survey-question-multi-select",e,f,h);this.noneOfTheAbove=null;this.submitEndpoints=[];this.K=null;this.hide()};
   VLa=function(a,b,c){a.noneOfTheAbove=new I1(a.api,a.Wa,a.layoutId,a.ub);a.noneOfTheAbove.Da(a.answers);a.noneOfTheAbove.init(tH("survey-none-of-the-above"),b,c)};
   WLa=function(a){a.u.forEach(function(b){b.i.toggleButton(!1)});
   N1(a,!0)};
   N1=function(a,b){var c=a.D;a=XLa(a);b=void 0===b?!1:b;c.i&&(a?c.i.hide():c.i.show(),b&&c.i instanceof FL&&!c.i.D&&zta(c.i,!1));c.u&&(a?c.u.show():c.u.hide())};
   XLa=function(a){return a.u.some(function(b){return b.i.isToggled()})||a.noneOfTheAbove.button.isToggled()};
   O1=function(a,b,c,d,e,f,h){L1.call(this,a,b,c,d,"survey-question-single-select",e,f,h);this.hide()};
   P1=function(a,b,c,d,e,f,h){QK.call(this,a,b,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.Eg=e;this.Ji=f;this.i=h;this.questions=[];this.u=this.Fa("ytp-ad-survey-questions");this.hide()};
   Q1=function(a,b,c,d,e,f){QK.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",U:[{G:"div",L:"ytp-ad-survey-interstitial-contents",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.Eg=e;this.lG=f;this.i=this.actionButton=null;this.interstitial=this.Fa("ytp-ad-survey-interstitial");this.u=this.Fa("ytp-ad-survey-interstitial-contents");this.text=this.Fa("ytp-ad-survey-interstitial-text");
   this.logoImage=this.Fa("ytp-ad-survey-interstitial-logo-image");this.transition=new g.xL(this,500,!1,300);g.J(this,this.transition)};
   YLa=function(a,b){b=b&&iL(b)||"";if(g.$a(b))g.My(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Qc&&10>document.documentMode)c=Ef;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Gg("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Sga(d.style)}b=Paa(c,Ff({"background-image":'url("'+b+'")'}));a.style.cssText=Cf(b)}};
   ZLa=function(a){var b=g.vg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
   R1=function(a,b,c){nL.call(this,a);this.api=a;this.u={};this.K=b;a=new g.V({G:"div",Ha:["video-ads","ytp-ad-module"]});g.J(this,a);UE&&g.N(a.element,"ytp-ads-tiny-mode");this.J=new JK(a.element);g.J(this,this.J);g.NM(this.api,a.element,4);WJa(c)&&(c=new g.V({G:"div",Ha:["ytp-ad-underlay"]}),g.J(this,c),this.B=new JK(c.element),g.J(this,this.B),g.NM(this.api,c.element,0));g.J(this,fta())};
   $La=function(a,b){a=nc(a.u,b.id,null);null==a&&g.My(Error("Component not found for element id: "+b.id));return a||null};
   S1=function(a){g.$M.call(this,a);var b=this;this.u=this.Wa=null;this.created=!1;this.Vo=new qK(this.player);this.B=function(){function d(){return b.Wa}
   if(null!=b.u)return b.u;var e=qsa({np:a.getVideoData(1)});e=new iIa({UQ:new v1(function(){return b.Wa},u1(b.i).fk),
   Yo:e.MR(),jR:d,hT:d,wi:u1(b.i).wi,Oh:e.QD(),I:b.player,Tf:u1(b.i).Tf,Va:b.i.i.Va,eh:u1(b.i).eh,Jc:b.i.i.Jc});b.u=e.PP;return b.u};
   this.i=new t1(this.player,this,this.Vo,this.B);g.J(this,this.i);var c=a.V();!kF(c)||g.eF(c)||mF(c)||(g.J(this,new R1(a,function(){return b.Wa},u1(this.i).Tf)),g.J(this,new w1(a)))};
   aMa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")};
   T1=function(a,b){b===a.To&&(a.To=void 0)};
   bMa=function(a){a.Wa?u1(a.i).yc.fE()||a.Wa.fE()||u1(a.i).Zn.wp():T("AdService is null when calling maybeUnlockPrerollIfReady")};
   cMa=function(a){a=g.r(u1(a.i).eh.Ki.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.rb&&"core"===b.gb)return!0;return!1};
   dMa=function(a){a=g.r(u1(a.i).eh.Ki.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
   vja=function(a,b,c){c=void 0===c?"":c;var d=u1(a.i).Tf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.tf()||!1;d=eMa(b,d,f,e);yja(u1(a.i).zc,c,d.oA,b);a.Wa&&0<d.Nu.length&&(a=a.Wa,b=d.Nu,b=xsa(a,b),b=ysa(a,b),HK(a,b))};
   eMa=function(a,b,c,d){var e={Nu:[],oA:[]};a=g.r(a);for(var f=a.next();!f.done;f=a.next())if((f=f.value)&&null!=f.renderer){var h=f.renderer,l=f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind,m=b,n=d;c?m=!0:null!=h.instreamSurveyAdRenderer?m=!!h.instreamSurveyAdRenderer.controlflowEnabled:null!=h.sandwichedLinearAdRenderer&&null!=h.sandwichedLinearAdRenderer.linearAd&&null!=h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer?m=!!h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer.controlflowEnabled:
   n&&!JZ(m)?m=!1:null!=h.clientForecastingAdRenderer||null!=h.actionCompanionAdRenderer||null!=h.imageCompanionAdRenderer||null!=h.shoppingCompanionCarouselRenderer||null!=h.invideoOverlayAdRenderer||null!=h.adBreakServiceRenderer&&("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==l||JZ(m))?m=!0:null!=h.instreamVideoAdRenderer||null!=h.remoteSlotsRenderer?((h=n)||(h=g.xF(m.I.V())?!1:kF(m.I.V())?m.I.V().N("html5_enable_single_video_vod_ivar_on_pacf"):g.lF(m.I.V())?m.I.V().N("html5_enable_single_video_vod_ivar_on_pacf_tv"):
   !1),m=h):m=h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds?h.linearAdSequenceRenderer.adStart?m.I.V().N("html5_enable_vod_lasr_with_notify_pacf"):n||$Y(m):null!=h.sandwichedLinearAdRenderer?m.I.V().N("html5_enable_vod_slar_with_notify_pacf"):!1;m?e.oA.push(f):e.Nu.push(f)}return e};
   fMa=function(){if(!g.Qc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
   g.U1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=hr(a);return b.parseFromString(g.Mf(a),"application/xml")}if(gMa){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.V1=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={G:"svg",W:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(-1.000000, -3.000000)"},U:[{G:"polygon",W:{points:"0 0 24 0 24 24 0 24"}},{G:"path",W:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
   fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Open video page";a.V().N("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={G:"svg",W:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},U:[{G:"path",W:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",
   fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Expand");g.V.call(this,{G:"button",Ha:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},U:[d]});this.I=a;this.Qa("click",this.onClick,this);this.Sa("title",AN(a,e,"i"));g.we(this,g.YN(b.fc(),this.element))};
   aa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
   ea=aaa(this);ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
   function c(f,h){this.i=f;fa(this,"description",{configurable:!0,writable:!0,value:h})}
   if(a)return a;c.prototype.toString=function(){return this.i};
   var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
   ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(da(this))}})}return a});
   var hMa="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)la(d,e)&&(a[e]=d[e])}return a};
   ha("Object.assign",function(a){return a||hMa});
   var ma="function"==typeof Object.create?Object.create:function(a){function b(){}
   b.prototype=a;return new b},iMa=function(){function a(){function c(){}
   new c;Reflect.construct(c,[],function(){});
   return new c instanceof c}
   if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
   e=ma(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),W1;
   if("function"==typeof Object.setPrototypeOf)W1=Object.setPrototypeOf;else{var X1;a:{var jMa={a:!0},kMa={};try{kMa.__proto__=jMa;X1=kMa.a;break a}catch(a){}X1=!1}W1=X1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=W1;
   oa.prototype.S=function(a){this.u=a};
   oa.prototype.return=function(a){this.B={return:a};this.i=this.C};
   oa.prototype.fb=function(a){this.i=a};
   ha("Reflect",function(a){return a?a:{}});
   ha("Reflect.construct",function(){return iMa});
   ha("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});
   ha("WeakMap",function(a){function b(m){this.i=(l+=Math.random()+1).toString();if(m){m=g.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(!la(m,h)){var n=new c;fa(m,h,{value:n})}}
   function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
   if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(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(!la(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
   b.prototype.get=function(m){return d(m)&&la(m,h)?m[h][this.i]:void 0};
   b.prototype.has=function(m){return d(m)&&la(m,h)&&la(m[h],this.i)};
   b.prototype.delete=function(m){return d(m)&&la(m,h)&&la(m[h],this.i)?delete m[h][this.i]:!1};
   return b});
   ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
   function c(l,m){var n=l.i;return ia(function(){if(n){for(;n.head!=l.i;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
   function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&la(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.i=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.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.entry),this.i.previous.next=n.entry,this.i.previous=n.entry,this.size++);return this};
   e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
   e.prototype.clear=function(){this.data_={};this.i=this.i.previous=b();this.size=0};
   e.prototype.has=function(l){return!!d(this,l).entry};
   e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
   e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
   e.prototype.keys=function(){return c(this,function(l){return l.key})};
   e.prototype.values=function(){return c(this,function(l){return l.value})};
   e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
   e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
   ha("Array.prototype.find",function(a){return a?a:function(b,c){return Ba(this,b,c).EO}});
   ha("Array.prototype.entries",function(a){return a?a:function(){return Ca(this,function(b,c){return[b,c]})}});
   ha("Object.setPrototypeOf",function(a){return a||na});
   ha("Promise",function(a){function b(h){this.i=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
   function c(){this.i=null}
   function d(h){return h instanceof b?h:new b(function(l){l(h)})}
   if(a)return a;c.prototype.u=function(h){if(null==this.i){this.i=[];var l=this;this.B(function(){l.D()})}this.i.push(h)};
   var e=ea.setTimeout;c.prototype.B=function(h){e(h,0)};
   c.prototype.D=function(){for(;this.i&&this.i.length;){var h=this.i;this.i=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.i=null};
   c.prototype.C=function(h){this.B(function(){throw h;})};
   b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
   var l=this,m=!1;return{resolve:h(this.ya),reject:h(this.D)}};
   b.prototype.ya=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ea(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.ma(h):this.J(h)}};
   b.prototype.ma=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ka(l,h):this.J(h)};
   b.prototype.D=function(h){this.S(2,h)};
   b.prototype.J=function(h){this.S(1,h)};
   b.prototype.S=function(h,l){if(0!=this.i)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.i);this.i=h;this.B=l;2===this.i&&this.Aa();this.Z()};
   b.prototype.Aa=function(){var h=this;e(function(){if(h.Y()){var l=ea.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
   b.prototype.Y=function(){if(this.K)return!1;var h=ea.CustomEvent,l=ea.Event,m=ea.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
   b.prototype.Z=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.Ea=function(h){var l=this.C();h.jy(l.resolve,l.reject)};
   b.prototype.Ka=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
   b.prototype.then=function(h,l){function m(t,u){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:u}
   var n,p,q=new b(function(t,u){n=t;p=u});
   this.jy(m(h,n),m(l,p));return q};
   b.prototype.catch=function(h){return this.then(void 0,h)};
   b.prototype.jy=function(h,l){function m(){switch(n.i){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.i);}}
   var n=this;null==this.u?f.u(m):this.u.push(m);this.K=!0};
   b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
   b.race=function(h){return new b(function(l,m){for(var n=g.r(h),p=n.next();!p.done;p=n.next())d(p.value).jy(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(x){return function(y){t[x]=y;u--;0==u&&n(t)}}
   var t=[],u=0;do t.push(void 0),u++,d(m.value).jy(q(t.length-1),p),m=l.next();while(!m.done)})};
   return b});
   ha("Array.prototype.keys",function(a){return a?a:function(){return Ca(this,function(b){return b})}});
   ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
   ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
   ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Da(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
   ha("Set",function(a){function b(c){this.i=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.i.size}
   if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.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.i.set(c,c);this.size=this.i.size;return this};
   b.prototype.delete=function(c){c=this.i.delete(c);this.size=this.i.size;return c};
   b.prototype.clear=function(){this.i.clear();this.size=0};
   b.prototype.has=function(c){return this.i.has(c)};
   b.prototype.entries=function(){return this.i.entries()};
   b.prototype.values=function(){return this.i.values()};
   b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.i.forEach(function(f){return c.call(d,f,f,e)})};
   return b});
   ha("Array.prototype.values",function(a){return a?a:function(){return Ca(this,function(b,c){return c})}});
   ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
   var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
   ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
   ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ba(this,b,c).NK}});
   ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)la(b,d)&&c.push([d,b[d]]);return c}});
   ha("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
   ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
   ha("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
   ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Da(this,b,"includes").indexOf(b,c||0)}});
   ha("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
   ha("Int8Array.prototype.fill",Ea);ha("Uint8Array.prototype.fill",Ea);ha("Uint8ClampedArray.prototype.fill",Ea);ha("Int16Array.prototype.fill",Ea);ha("Uint16Array.prototype.fill",Ea);ha("Int32Array.prototype.fill",Ea);ha("Uint32Array.prototype.fill",Ea);ha("Float32Array.prototype.fill",Ea);ha("Float64Array.prototype.fill",Ea);
   ha("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
   ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
   ha("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
   ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)la(b,d)&&c.push(b[d]);return c}});
   ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Da(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
   ha("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
   ha("WeakSet",function(a){function b(c){this.i=new WeakMap;if(c){c=g.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.i.set(c,!0);return this};
   b.prototype.has=function(c){return this.i.has(c)};
   b.prototype.delete=function(c){return this.i.delete(c)};
   return b});
   ha("Number.parseInt",function(a){return a||parseInt});
   ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
   Fi=Fi||{};g.D=this||self;Ma="closure_uid_"+(1E9*Math.random()>>>0);eaa=0;g.Qa(Sa,Error);Sa.prototype.name="CustomError";var pg;g.Qa(Ta,Sa);Ta.prototype.name="AssertionError";var gd,uaa="undefined"!==typeof TextDecoder;var jb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ab=/&/g,bb=/</g,cb=/>/g,db=/"/g,eb=/'/g,fb=/\x00/g,jaa=/[\x00&<>"']/;var vb,Am,vn;vb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
   for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
   g.lMa=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.Qb=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.Ko=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.ym=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};
   Am=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
   (0,g.Qb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
   return d};
   vn=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.zm=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
   return!0};var mMa,nMa=g.Ga("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");mMa=null!=nMa?nMa:!1;a:{var oMa=g.D.navigator;if(oMa){var pMa=oMa.userAgent;if(pMa){g.Ub=pMa;break a}}g.Ub=""}var Sb;if(mMa){var qMa=g.D.navigator;Sb=qMa?qMa.userAgentData||null:null}else Sb=null;var rc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Dc[" "]=g.Ha;var Ul,aU,aIa,rMa,sMa,tMa,TE,UE,Y1;g.VE=Sb?!1:Vb("Opera");g.Qc=Sb?!1:Vb("Trident")||Vb("MSIE");g.ax=Vb("Edge");g.BF=g.ax||g.Qc;Ul=Vb("Gecko")&&!(ib(g.Ub,"WebKit")&&!Vb("Edge"))&&!(Vb("Trident")||Vb("MSIE"))&&!Vb("Edge");g.Bg=ib(g.Ub,"WebKit")&&!Vb("Edge");aU=Vb("Macintosh");aIa=Vb("Windows");g.fu=Vb("Android");rMa=Ac();sMa=Vb("iPad");tMa=Vb("iPod");TE=Bc();UE=ib(g.Ub,"KaiOS");
   a:{var Z1="",$1=function(){var a=g.Ub;if(Ul)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.ax)return/Edge\/([\d\.]+)/.exec(a);if(g.Qc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Bg)return/WebKit\/(\S+)/.exec(a);if(g.VE)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
   $1&&(Z1=$1?$1[1]:"");if(g.Qc){var a2=Gc();if(null!=a2&&a2>parseFloat(Z1)){Y1=String(a2);break a}}Y1=Z1}var Hc=Y1,raa={},b2;if(g.D.document&&g.Qc){var uMa=Gc();b2=uMa?uMa:parseInt(Hc,10)||void 0}else b2=void 0;var saa=b2;var dF,$G;g.fj=wc();dF=Ac()||Vb("iPod");$G=Vb("iPad");g.WE=Vb("Android")&&!(xc()||wc()||(Sb?0:Vb("Opera"))||(vc()?Tb("Silk"):Vb("Silk")));g.ej=xc();g.gj=yc()&&!Bc();var Lc={},Sc=null;var taa="function"===typeof Uint8Array.prototype.slice,Tc,qd=0,rd=0;Xc.prototype.clone=function(){return Zc(this.u,this.C,this.B-this.C)};
   Xc.prototype.clear=function(){this.u=null;this.i=this.B=this.C=0;this.Bl=this.D=!1};
   Xc.prototype.reset=function(){this.i=this.C};
   Xc.prototype.advance=function(a){this.i+=a};
   var Yc=[];bd.prototype.reset=function(){this.i.reset();this.u=this.C=-1};
   bd.prototype.advance=function(a){this.i.advance(a)};jd.prototype.push=function(a){if(!(this.u+1<this.i.length)){var b=this.i;this.i=new Uint8Array(Math.ceil(1+2*this.i.length));this.i.set(b)}this.i[this.u++]=a};
   jd.prototype.length=function(){return this.u};
   jd.prototype.end=function(){var a=this.i,b=this.u;this.u=0;return Uc(a,0,b)};var xaa="function"===typeof Uint8Array,waa={IS:{value:!0,configurable:!0}},$d;g.k=Dd.prototype;g.k.isFrozen=function(){return!1};
   g.k.toJSON=function(){var a=this.oh(!1);return $d?a:xd(a,Ad)};
   g.k.oh=function(a){if(this.u){if(this.B){var b=this.map,c;for(c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=b[c].i;d&&d.oh(a)}}}else{this.i.length=0;b=Fd(this);b.sort();for(c=0;c<b.length;c++){d=this.map[b[c]];var e=d.i;e&&e.oh(a);this.i.push([d.key,d.value])}this.u=!0}return this.i};
   g.k.clear=function(){this.map={};this.u=!1};
   g.k.Jaa=function(a){a=a.toString();var b=this.map.hasOwnProperty(a);delete this.map[a];this.u=!1;return b};
   g.k.entries=function(){var a=[],b=Fd(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d.key,Ed(this,d)])}return new Gd(a)};
   g.k.keys=function(){var a=[],b=Fd(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map[b[c]].key);return new Gd(a)};
   g.k.values=function(){var a=[],b=Fd(this);b.sort();for(var c=0;c<b.length;c++)a.push(Ed(this,this.map[b[c]]));return new Gd(a)};
   g.k.forEach=function(a,b){var c=Fd(this);c.sort();for(var d=0;d<c.length;d++){var e=this.map[c[d]];a.call(b,Ed(this,e),e.key,this)}};
   g.k.set=function(a,b){var c=new Cd(a);this.B?(c.i=b,c.value=b.oh(!1)):c.value=b;this.map[a.toString()]=c;this.u=!1;return this};
   g.k.get=function(a){if(a=this.map[a.toString()])return Ed(this,a)};
   g.k.has=function(a){return a.toString()in this.map};
   Dd.prototype[Symbol.iterator]=function(){return this.entries()};
   Gd.prototype.next=function(){return this.u<this.i.length?{done:!1,value:this.i[this.u++]}:{done:!0,value:void 0}};
   Gd.prototype[Symbol.iterator]=function(){return this};var Hd;var Jd=Object.freeze(zd([]));Nd.prototype.toJSON=function(){var a=this.oh(!1);return $d?a:xd(a,Ad)};
   Nd.prototype.oh=function(a){if(this.i)for(var b in this.i){var c=this.i[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&c[d].oh(a);else c&&c.oh(a)}return this.u};
   Nd.prototype.toString=function(){return this.oh(!1).toString()};
   Nd.prototype.clone=function(){var a=this.constructor,b=xd(this.oh(!1),vaa);a=Id(a,b);be(a,this);return a};g.w(he,Nd);g.w(ie,Nd);g.w(je,Nd);g.w(ke,Nd);var de=[1,2,3];var kca={CN:5,QK:100,HL:6E5},gca={CN:10,QK:500,HL:6E5};g.w(le,Error);g.me.prototype.u=0;g.me.prototype.reset=function(){this.i=this.B=this.C;this.u=0};
   g.me.prototype.getValue=function(){return this.B};g.k=re.prototype;g.k.WQ=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(d=this.GD(c))?d.push(new pe(a)):this.HN(a,c)};
   g.k.HN=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Br.set(this.nK(c),[new pe(a)])};
   g.k.GD=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.nK(b);return this.Br.has(b)?this.Br.get(b):void 0};
   g.k.PR=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.GD(b))&&b.length?b[0]:void 0};
   g.k.clear=function(){this.Br.clear()};
   g.k.nK=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.w(se,re);se.prototype.B=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.PR(c);e&&(d=e.oJ);this.HN(d+a,c)};g.w(te,re);te.prototype.Pk=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.WQ(a,c)};g.I.prototype.Yh=!1;g.I.prototype.isDisposed=function(){return this.Yh};
   g.I.prototype.dispose=function(){this.Yh||(this.Yh=!0,this.xa())};
   g.I.prototype.xa=function(){if(this.wh)for(;this.wh.length;)this.wh.shift()()};g.xe.prototype.stopPropagation=function(){this.u=!0};
   g.xe.prototype.preventDefault=function(){this.defaultPrevented=!0};var ze={};var Haa=function(){if(!g.D.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
   try{g.D.addEventListener("test",g.Ha,b),g.D.removeEventListener("test",g.Ha,b)}catch(c){}return a}();var Eva;Eva=g.Bg?"webkitAnimationEnd":"animationend";g.Qa(Be,g.xe);var vMa={2:"touch",3:"pen",4:"mouse"};
   Be.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)?Ul&&(Ec(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:vMa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&Be.le.preventDefault.call(this)};
   Be.prototype.stopPropagation=function(){Be.le.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
   Be.prototype.preventDefault=function(){Be.le.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var Ce="closure_listenable_"+(1E6*Math.random()|0);var Eaa=0;Fe.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.i++);var h=He(a,b,d,e);-1<h?(b=a[h],c||(b.iy=!1)):(b=new Faa(b,this.src,f,!!d,e),b.iy=c,a.push(b));return b};
   Fe.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=He(e,b,c,d);return-1<b?(Ee(e[b]),g.zb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
   Fe.prototype.Ev=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=He(a,b,c,d));return-1<e?a[e]:null};var Ne="closure_lm_"+(1E6*Math.random()|0),Se={},Pe=0,Te="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Qa(g.Ue,g.I);g.Ue.prototype[Ce]=!0;g.k=g.Ue.prototype;g.k.addEventListener=function(a,b,c,d){Je(this,a,b,c,d)};
   g.k.removeEventListener=function(a,b,c,d){Qe(this,a,b,c,d)};
   g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.qb;d=a.type||a;if("string"===typeof a)a=new g.xe(a,b);else if(a instanceof g.xe)a.target=a.target||b;else{var e=a;a=new g.xe(d,b);g.tc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Ve(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Ve(h,d,!0,a)&&e,a.u||(e=Ve(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Ve(h,d,!1,a)&&e;return e};
   g.k.xa=function(){g.Ue.le.xa.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Ee(d[e]);delete a.listeners[c];a.i--}}this.La=null};
   g.k.Qa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
   g.k.Hz=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
   g.k.jc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
   g.k.Ev=function(a,b,c,d){return this.B.Ev(String(a),b,c,d)};Ze.prototype.get=function(){if(0<this.u){this.u--;var a=this.i;this.i=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var cba=g.Qc||g.Bg;var wMa={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 ef;jf.prototype.Ck=!0;jf.prototype.Hh=function(){return this.i};
   var hf={},gf={};g.lf("");var mf={};nf.prototype.Hh=function(){return this.i.toString()};
   nf.prototype.toString=function(){return this.i.toString()};var Vga,Uga,Tga,Wga;Vga=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.xMa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.yMa=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.mr=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]");Uga=/^http:\/\/.*/;g.zMa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Tga=/\s+/;Wga=/[\d\u06f0-\u06f9]/;g.k=pf.prototype;g.k.Ck=!0;g.k.Hh=function(){return this.i.toString()};
   g.k.jE=!0;g.k.Rr=function(){return 1};
   g.k.toString=function(){return this.i+""};
   var Laa=/%{(\w+)}/g,Kaa=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),of={};g.k=g.tf.prototype;g.k.Ck=!0;g.k.Hh=function(){return this.i.toString()};
   g.k.jE=!0;g.k.Rr=function(){return 1};
   g.k.toString=function(){return this.i.toString()};
   var Oaa=RegExp('^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$',"i"),Naa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,wf=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,sf={},xf=new g.tf("about:invalid#zClosurez",sf);var Af={};Bf.prototype.Hh=function(){return this.i};
   Bf.prototype.toString=function(){return this.i.toString()};
   var Ef=new Bf("",Af),Raa=RegExp("^[-,.\"'%_!# a-zA-Z0-9\\[\\]]+$"),Hf=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Gf=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),Saa=/\/\*/;var Kf={};Lf.prototype.Rr=function(){return this.u};
   Lf.prototype.Hh=function(){return this.i.toString()};
   Lf.prototype.toString=function(){return this.i.toString()};
   var AMa=/^[a-zA-Z0-9-]+$/,BMa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},CMa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Pf=new Lf(g.D.trustedTypes&&g.D.trustedTypes.emptyHTML||"",0,Kf);var Yaa=cf(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.Mf(Pf);return!b.parentElement}),Zaa=/^[\w+/_-]+[=]{0,2}$/;g.k=g.ag.prototype;g.k.clone=function(){return new g.ag(this.x,this.y)};
   g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
   g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
   g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
   g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.cg.prototype;g.k.clone=function(){return new g.cg(this.width,this.height)};
   g.k.aspectRatio=function(){return this.width/this.height};
   g.k.isEmpty=function(){return!eg(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.DMa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var wg={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=ng.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
   g.k.Fa=function(a){return g.vg(a,this.i)};
   g.k.createElement=function(a){return Dg(this.i,a)};
   g.k.appendChild=function(a,b){a.appendChild(b)};
   g.k.append=function(a,b){Eg(og(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.Kg;g.k.contains=g.Mg;var Sg;Vg.prototype.add=function(a,b){var c=ch.get();c.set(a,b);this.u?this.u.next=c:this.i=c;this.u=c};
   Vg.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.u=null),a.next=null);return a};
   var ch=new Ze(function(){return new Xg},function(a){return a.reset()});
   Xg.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
   Xg.prototype.reset=function(){this.next=this.scope=this.i=null};var Yg,Zg=!1,$g=new Vg;gh.prototype.reset=function(){this.context=this.onRejected=this.u=this.i=null;this.B=!1};
   var hh=new Ze(function(){return new gh},function(a){a.reset()});
   fh.prototype.then=function(a,b,c){return ph(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
   fh.prototype.$goog_Thenable=!0;fh.prototype.cancel=function(a){if(0==this.i){var b=new vh(a);g.ah(function(){rh(this,b)},this)}};
   fh.prototype.Z=function(a){this.i=0;eh(this,2,a)};
   fh.prototype.Y=function(a){this.i=0;eh(this,3,a)};
   fh.prototype.S=function(){for(var a;a=sh(this);)th(this,a,this.i,this.K);this.J=!1};
   var xh=Ug;g.Qa(vh,Sa);vh.prototype.name="cancel";g.Qa(g.yh,g.Ue);g.k=g.yh.prototype;g.k.enabled=!1;g.k.Lb=null;g.k.setInterval=function(a){this.Vf=a;this.Lb&&this.enabled?(this.stop(),this.start()):this.Lb&&this.stop()};
   g.k.sX=function(){if(this.enabled){var a=g.Pa()-this.vL;0<a&&a<.8*this.Vf?this.Lb=this.vx.setTimeout(this.eJ,this.Vf-a):(this.Lb&&(this.vx.clearTimeout(this.Lb),this.Lb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
   g.k.start=function(){this.enabled=!0;this.Lb||(this.Lb=this.vx.setTimeout(this.eJ,this.Vf),this.vL=g.Pa())};
   g.k.stop=function(){this.enabled=!1;this.Lb&&(this.vx.clearTimeout(this.Lb),this.Lb=null)};
   g.k.xa=function(){g.yh.le.xa.call(this);this.stop();delete this.vx};g.k=Bh.prototype;g.k.XW=function(a){this.D=a;this.C=1};
   g.k.PN=function(){var a=this.i.values();a=[].concat(g.v(a)).filter(function(b){return b.Br.size});
   a.length&&this.K.flush(a,this.D);jba(a);this.B=0;this.u.enabled&&this.u.stop()};
   g.k.YQ=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new se(a,c))};
   g.k.UI=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new te(a,c))};
   g.k.ZO=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.aP.apply(this,[a,1].concat(g.v(c)))};
   g.k.aP=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=Dh(this,a))&&e instanceof se&&(e.B(b,d),Ch(this))};
   g.k.Pk=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=Dh(this,a))&&e instanceof te&&(e.Pk(b,d),Ch(this))};Eh.prototype.Pk=function(a,b,c,d,e){this.i.Pk("/client_streamz/po/w/rl",a,b,c,d,e)};
   Fh.prototype.Pk=function(a,b,c){this.i.Pk("/client_streamz/po/w/el",a,b,c)};g.w(Gh,Nd);g.w(Hh,Nd);g.w(Ih,Nd);g.w(Jh,Nd);var lba=[3,6,4],mba=[1],c2=[1,2,3],EMa=[1,2,3];g.w(Kh,Nd);var nba=[1];var qba={};g.k=Oh.prototype;g.k.isEnabled=function(){if(!g.D.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Kz: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.kba;d=c.WW||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.Kz}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.i.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
   e:"")};
   g.k.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;e<d.length;e++){f=jb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
   g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{Kz:0,path:b,domain:c});return d};
   g.k.Vr=function(){return Ph(this).keys};
   g.k.Ip=function(){return Ph(this).values};
   g.k.isEmpty=function(){return!this.i.cookie};
   g.k.clear=function(){for(var a=Ph(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
   var Mt=new Oh("undefined"==typeof document?null:document);g.w(Wh,Nd);var rba=[2];var ai={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},tba=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;bi.prototype.u=null;bi.prototype.getOptions=function(){return this.u||(this.u=this.C())};var d2;g.Qa(ci,bi);ci.prototype.i=function(){var a=di(this);return a?new ActiveXObject(a):new XMLHttpRequest};
   ci.prototype.C=function(){var a={};di(this)&&(a[0]=!0,a[1]=!0);return a};
   d2=new ci;var gi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),wi=/#|$/,vba=/[?&]($|#)/;g.Qa(g.Ai,g.Ue);var zba=/^https?$/i,FMa=["POST","PUT"],Bi=[];g.k=g.Ai.prototype;g.k.iR=function(){this.dispose();g.Ab(Bi,this)};
   g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Z+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Z=a;this.C="";this.u=0;this.Ua=b;this.Ka=!1;this.D=!0;this.i=this.Ea?this.Ea.i():d2.i();this.Aa=this.Ea?this.Ea.getOptions():d2.getOptions();this.i.onreadystatechange=(0,g.E)(this.GM,this);try{Xh(Hi(this,"Opening Xhr")),this.Ja=!0,this.i.open(b,String(a),!0),this.Ja=!1}catch(h){Xh(Hi(this,"Error opening Xhr: "+h.message));Ei(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.D.FormData&&a instanceof g.D.FormData;!g.wb(FMa,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.i.setRequestHeader(d,c);this.Ra&&(this.i.responseType=this.Ra);"withCredentials"in this.i&&this.i.withCredentials!==this.S&&(this.i.withCredentials=this.S);try{Ki(this),0<this.K&&(this.ya=yba(this.i),Xh(Hi(this,"Will abort after "+this.K+"ms if incomplete, xhr2 "+this.ya)),
   this.ya?(this.i.timeout=this.K,this.i.ontimeout=(0,g.E)(this.uH,this)):this.ma=g.zh(this.uH,this.K,this)),Xh(Hi(this,"Sending request")),this.Y=!0,this.i.send(a),this.Y=!1}catch(h){Xh(Hi(this,"Send error: "+h.message)),Ei(this,h)}};
   g.k.uH=function(){"undefined"!=typeof Fi&&this.i&&(this.C="Timed out after "+this.K+"ms, aborting",this.u=8,Hi(this,this.C),this.dispatchEvent("timeout"),this.abort(8))};
   g.k.abort=function(a){this.i&&this.D&&(Hi(this,"Aborting"),this.D=!1,this.J=!0,this.i.abort(),this.J=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Di(this))};
   g.k.xa=function(){this.i&&(this.D&&(this.D=!1,this.J=!0,this.i.abort(),this.J=!1),Di(this,!0));g.Ai.le.xa.call(this)};
   g.k.GM=function(){this.isDisposed()||(this.Ja||this.Y||this.J?Ji(this):this.jV())};
   g.k.jV=function(){Ji(this)};
   g.k.isActive=function(){return!!this.i};
   g.k.isComplete=function(){return 4==g.Gi(this)};
   g.k.getStatus=function(){try{return 2<g.Gi(this)?this.i.status:-1}catch(a){return-1}};
   g.k.getResponseHeader=function(a){if(this.i&&this.isComplete())return a=this.i.getResponseHeader(a),null===a?void 0:a};
   g.k.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.w(Ni,Nd);g.w(Oi,Nd);g.w(Pi,Nd);Pi.prototype.N=function(){return null!=Od(this,7)};
   var Dba=[3,20,27];g.w(Qi,Nd);var Eba=[3,5];g.w(Ui,Nd);var Fba=[5];g.w(dj,Nd);var e2=new function(a,b,c,d,e){this.u=a;this.fieldName=b;this.i=c;this.isRepeated=e}(175237375,{Xaa:0},dj,function(a,b){if(null!=b){var c={tba:ce(b,1,-1)};
   a&&(c.UX=b);return c}},0);g.w(ij,g.Ue);g.k=ij.prototype;g.k.xa=function(){this.zD();g.Ue.prototype.xa.call(this)};
   g.k.dispatch=function(a){if(a instanceof Pi)this.log(a);else{var b=new Pi;a=ae(a);b=Pd(b,8,a);this.log(b)}};
   g.k.log=function(a){a=a.clone();var b=this.vb++;Pd(a,21,b);this.Y&&Pd(a,26,this.Y);if(!Od(a,1)){b=a;var c=Date.now().toString();Pd(b,1,c)}null!=Od(a,15)||Pd(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),Yd(a,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.K;this.u.push(a);this.dispatchEvent(new lj(a));this.Aa||this.i.enabled||this.i.start()};
   g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Ea)Hba(this);else{var d=Date.now();if(this.eb>d&&this.Ka<d)b&&b("throttled");else{var e=Ti(Si(Ri(this.D.clone()),this.u),this.K);d={};var f=this.Ua();f&&(d.Authorization=f);var h=jj(this);this.Z&&(d["X-Goog-AuthUser"]=this.Z,h=ui(h,"authuser",this.Z));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=ui(h,"pageId",this.pageId));if(f&&this.Za===f)b&&b("stale-auth-token");else{this.u=[];this.i.enabled&&this.i.stop();this.K=0;var l=
   ae(e),m;this.S&&this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:h,body:l,bR:1,uq:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(u){c.J.reset();c.i.setInterval(c.J.getValue());if(u){var x=null;try{var y=JSON.parse(u.replace(")]}'\n",""));x=new Ui(y)}catch(z){}x&&(u=Number(Rd(x,1,"-1")),0<u&&(c.Ka=Date.now(),c.eb=c.Ka+u),u=e2.u,y=e2.i,x=e2.isRepeated?y?Xd(x,y,u):Qd(x,u):y?Wd(x,y,u,0,!0):Od(x,u,!0))&&(x=ce(x,1,-1),-1!=x&&(c.Ra||
   kj(c,x)))}a&&a()},q=function(u){var x=Xd(e,Pi,3);
   g.ne(c.J);c.i.setInterval(c.J.getValue());401===u&&f&&(c.Za=f);if(500<=u&&600>u||401===u||0===u)c.u=x.concat(c.u),c.Aa||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.Ja?c.Ja.send(n,p,q):c.jb(n,p,q)};
   m?m.then(function(u){n.uq["Content-Encoding"]="gzip";n.uq["Content-Type"]="application/binary";n.body=u;n.bR=2;t()},function(){t()}):t()}}}};
   g.k.zD=function(){this.flush()};
   g.w(lj,g.xe);mj.prototype.Oe=function(){var a=new ij(1654,this.ma?this.ma:Vh,"0",this.J,this.B,this.C,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.Z){var b=this.Z;Od(b,1)||Pd(b,1,1);Yd(a.D,1,b)}if(this.u){b=this.u;var c=Wd(a.D,Oi,1),d=Wd(c,Ni,11);d||(d=new Ni);Pd(d,7,b);Yd(c,11,d);Od(c,1)||Pd(c,1,1);Yd(a.D,1,c)}this.D&&(a.S=this.D);this.i&&(a.Y=this.i);this.S&&((b=this.S)?(a.C||(a.C=new Wh),b=ae(b),Pd(a.C,4,b)):a.C&&Pd(a.C,4,void 0));this.ya&&(b=this.ya,a.C||(a.C=new Wh),Sd(a.C,2,b));this.Y&&(b=this.Y,
   a.Ra=!0,kj(a,b));return a};nj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Kh,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new Gh;h=Pd(h,1,f.u);for(var l=f,m=[],n=0;n<l.i.length;n++)m.push(l.i[n].cn);h=Sd(h,3,m);l=[];m=[];n=g.r(f.Br.keys());for(var p=n.next();!p.done;p=n.next())m.push(p.value.split(","));for(n=0;n<m.length;n++){p=m[n];var q=f.C;for(var t=f.GD(p)||[],u=[],x=0;x<t.length;x++){var y=t[x];y=y&&y.oJ;var z=new Jh;switch(q){case 3:Vd(z,1,EMa,Number(y));break;case 2:Vd(z,2,EMa,Number(y))}u.push(z)}q=
   u;for(t=0;t<q.length;t++){u=q[t];x=new Hh;u=Yd(x,2,u);x=p;y=[];z=f;for(var G=[],F=0;F<z.i.length;F++)G.push(z.i[F].dn);z=G;for(G=0;G<z.length;G++){F=z[G];var C=x[G],K=new Ih;switch(F){case 3:Vd(K,1,c2,String(C));break;case 2:Vd(K,2,c2,Number(C));break;case 1:Vd(K,3,c2,"true"==C)}y.push(K)}Zd(u,1,y);l.push(u)}}Zd(h,4,l);c.push(h);e.clear()}Zd(b,1,c);this.i.dispatch(b);this.i.flush()}};g.w(pj,Error);pj.prototype.name="RpcError";qj.prototype.Iz=function(){};
   qj.prototype.cw=function(){};
   qj.prototype.CL=function(){};
   rj.prototype.Iz=function(a){this.clientError.i.ZO("/client_streamz/po/w/cec",a,this.qm)};
   rj.prototype.cw=function(a,b){this.u.Pk(b,a,this.qm)};
   rj.prototype.CL=function(a,b,c){var d=this,e=Date.now();(function(){return g.H(d,function h(){var l,m,n=this,p;return g.B(h,function(q){if(1==q.i)return l=0,ua(q,2,3),g.A(q,c,3);if(2!=q.i)return xa(q),m=Date.now()-e,n.B.Pk(m,a,b,l,n.qm),ya(q,0);p=wa(q);p instanceof pj?l=p.code:(l=-1,n.Iz(1));return q.fb(3)})})})()};g.w(sj,Nd);g.w(tj,Nd);g.w(uj,Nd);g.w(vj,Nd);vj.WS="bfkj";g.w(wj,Nd);xj.prototype.Yy=function(){return this.B};
   xj.prototype.getMetadata=function(){return this.u};yj.prototype.getMetadata=function(){return this.i};
   yj.prototype.Yy=function(){return this.u};
   yj.prototype.getStatus=function(){return null};zj.prototype.getName=function(){return this.name};var GMa=new zj("/google.internal.waa.v1.Waa/Create",sj,wj,function(a){return ae(a)},function(a){return Id(wj,a?JSON.parse(a):null)});g.w(Bj,Nd);g.w(Cj,Nd);var Xba=new zj("/google.internal.waa.v1.Waa/GenerateIT",Bj,Cj,function(a){return ae(a)},function(a){return Id(Cj,a?JSON.parse(a):null)});var Rba=Promise;g.w(Dj,Nd);Dj.prototype.getValue=function(){return Rd(this,2,"")};
   Dj.prototype.setValue=function(a){null!=a&&0!==a.length?Pd(this,2,a):Pd(this,2,void 0);return this};g.w(Ej,Nd);var Jba=[3];Fj.prototype.gm=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.J.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
   Fj.prototype.removeListener=function(a,b){"data"==a?Lj(this.B,b):"metadata"==a?Lj(this.D,b):"status"==a?Lj(this.J,b):"end"==a?Lj(this.C,b):"error"==a&&Lj(this.u,b);return this};
   Fj.prototype.cancel=function(){this.i.abort()};
   Fj.prototype.cancel=Fj.prototype.cancel;Fj.prototype.removeListener=Fj.prototype.removeListener;Fj.prototype.on=Fj.prototype.gm;g.Qa(Mj,bi);Mj.prototype.i=function(){return new Nj(this.D,this.B)};
   Mj.prototype.C=af({});g.Qa(Nj,g.Ue);g.k=Nj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.ma=a;this.Y=b;this.readyState=1;Pj(this)};
   g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.i=!0;var b={headers:this.Z,method:this.ma,credentials:this.J,cache:void 0};a&&(b.body=a);(this.ya||g.D).fetch(new Request(this.Y,b)).then(this.iS.bind(this),this.nz.bind(this))};
   g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.");1<=this.readyState&&this.i&&4!=this.readyState&&(this.i=!1,Qj(this));this.readyState=0};
   g.k.iS=function(a){if(this.i&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,Pj(this)),this.i&&(this.readyState=3,Pj(this),this.i)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.gS.bind(this),this.nz.bind(this));else if("undefined"!==typeof g.D.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
   []}else this.response=this.responseText="",this.S=new TextDecoder;Oj(this)}else a.text().then(this.hS.bind(this),this.nz.bind(this))};
   g.k.YR=function(a){if(this.i){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.S.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Qj(this):Pj(this);3==this.readyState&&Oj(this)}};
   g.k.hS=function(a){this.i&&(this.response=this.responseText=a,Qj(this))};
   g.k.gS=function(a){this.i&&(this.response=a,Qj(this))};
   g.k.nz=function(){this.i&&Qj(this)};
   g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
   g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
   g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
   Object.defineProperty(Nj.prototype,"withCredentials",{get:function(){return"include"===this.J},
   set:function(a){this.J=a?"include":"same-origin"}});g.Rj.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Yj(b,HMa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.S)&&a.push(Yj(b,HMa,!0),"@"),a.push(fg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Yj(c,"/"==c.charAt(0)?IMa:JMa,!0));(c=this.u.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Yj(c,KMa));return a.join("")};
   g.Rj.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.Sj(b,a.C):c=!!a.S;c?b.S=a.S:c=!!a.i;c?g.Tj(b,a.i):c=null!=a.B;var d=a.getPath();if(c)g.Uj(b,a.B);else if(c=!!a.K){if("/"!=d.charAt(0))if(this.i&&!this.K)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=Ya(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||
   1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.K=d:c=""!==a.u.toString();c?Vj(b,a.u.clone()):c=!!a.D;c&&(b.D=a.D);return b};
   g.Rj.prototype.clone=function(){return new g.Rj(this)};
   g.Rj.prototype.getPath=function(){return this.K};
   var HMa=/[#\/\?@]/g,JMa=/[#\?:]/g,IMa=/[#\?]/g,Nba=/[#\?@]/g,KMa=/#/g;g.k=Xj.prototype;g.k.add=function(a,b){bk(this);this.B=null;a=ck(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
   g.k.remove=function(a){bk(this);a=ck(this,a);return this.i.has(a)?(this.B=null,this.u=this.u-this.i.get(a).length,this.i.delete(a)):!1};
   g.k.clear=function(){this.i=this.B=null;this.u=0};
   g.k.isEmpty=function(){bk(this);return 0==this.u};
   g.k.forEach=function(a,b){bk(this);this.i.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
   g.k.Vr=function(){bk(this);for(var a=Array.from(this.i.values()),b=Array.from(this.i.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
   g.k.Ip=function(a){bk(this);var b=[];if("string"===typeof a)dk(this,a)&&(b=b.concat(this.i.get(ck(this,a))));else{a=Array.from(this.i.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
   g.k.set=function(a,b){bk(this);this.B=null;a=ck(this,a);dk(this,a)&&(this.u=this.u-this.i.get(a).length);this.i.set(a,[b]);this.u=this.u+1;return this};
   g.k.get=function(a,b){if(!a)return b;a=this.Ip(a);return 0<a.length?String(a[0]):b};
   g.k.toString=function(){if(this.B)return this.B;if(!this.i)return"";for(var a=[],b=Array.from(this.i.keys()),c=0;c<b.length;c++){var d=b[c],e=fg(d);d=this.Ip(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+fg(d[f]));a.push(h)}}return this.B=a.join("&")};
   g.k.clone=function(){var a=new Xj;a.B=this.B;this.i&&(a.i=new Map(this.i),a.u=this.u);return a};g.Qa(g.fk,g.I);var LMa=[];g.k=g.fk.prototype;g.k.Qa=function(a,b,c,d){Array.isArray(b)||(b&&(LMa[0]=b.toString()),b=LMa);for(var e=0;e<b.length;e++){var f=Je(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.i[f.key]=f}return this};
   g.k.Hz=function(a,b,c,d){return gk(this,a,b,c,d)};
   g.k.jc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.jc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.La(d)?!!d.capture:!!d,e=e||this.u||this,c=Ke(c),d=!!d,b=De(a)?a.Ev(b,c,d,e):a?(a=Me(a))?a.Ev(b,c,d,e):null:null,b&&(Re(b),delete this.i[b.key])};
   g.k.xa=function(){g.fk.le.xa.call(this);g.hk(this)};
   g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};ik.prototype.isInputValid=function(){return this.B};kk.prototype.isInputValid=function(){return 3!=this.u};
   kk.prototype.qe=function(){return this.J};
   kk.prototype.Vx=function(){return!0};
   kk.prototype.parse=function(a){function b(m){m&128&&lk(f,h,l,"invalid tag");2!=(m&7)&&lk(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&lk(f,h,l,"unexpected tag");f.u=1;f.i=0;f.C=0}
   function c(m){f.C++;5==f.C&&m&240&&lk(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.C-1);m&128||(f.u=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.i):f.D=Array(f.i),0==f.i&&e())}
   function d(m){f.D[f.S++]=m;f.S==f.i&&e()}
   function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.u=0}
   for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.u){case 3:lk(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.u);}f.Z++;l++}a=f.K;f.K=[];return 0<a.length?a:null};mk.prototype.isInputValid=function(){return null===this.i};
   mk.prototype.qe=function(){return this.i};
   mk.prototype.Vx=function(){return!1};
   mk.prototype.parse=function(a){null!==this.i&&nk(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||jk(c,a,"stream already broken");c.i+=a;var d=Math.floor(c.i.length/4);if(0==d)var e=null;else{try{var f=Pc(c.i.substr(0,4*d))}catch(h){jk(c,c.i,h.message)}c.u+=4*d;c.i=c.i.substr(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){nk(this,a,h.message)}this.u+=a.length;return b};var MMa={INIT:0,Bu:1,qC:2,vr:3,Mt:4,Lt:5,STRING:6,kC:7,gI:8,vI:9,wI:10,xI:11,jH:12,kH:13,lH:14,mH:15,kI:16,lI:17,mI:18,IQ:19,oC:20};g.k=pk.prototype;g.k.isInputValid=function(){return 3!=this.D};
   g.k.qe=function(){return this.Z};
   g.k.done=function(){return 2===this.D};
   g.k.Vx=function(){return!1};
   g.k.parse=function(a){function b(){for(;t<a.length;)if(ok(a[t]))t++,f.B++;else break;return t<n}
   function c(){for(var x;;){x=a[t++];if(!x)break;f.B++;switch(f.i){case m.INIT:"{"===x?f.i=m.qC:"["===x?f.i=m.Mt:ok(x)||qk(f,a,t);continue;case m.kC:case m.qC:if(ok(x))continue;if(f.i===m.kC)h.push(m.gI);else if("}"===x){e("{}");f.i=d();continue}else h.push(m.vr);'"'===x?f.i=m.STRING:qk(f,a,t);continue;case m.gI:case m.vr:if(ok(x))continue;":"===x?(f.i===m.vr&&(h.push(m.vr),f.u++),f.i=m.Bu):"}"===x?(f.u--,e(),f.i=d()):","===x?(f.i===m.vr&&h.push(m.vr),f.i=m.kC):qk(f,a,t);continue;case m.Mt:case m.Bu:if(ok(x))continue;
   if(f.i===m.Mt)if(f.u++,f.i=m.Bu,"]"===x){f.u--;if(0===f.u){f.i=m.Lt;return}e("[]");f.i=d();continue}else h.push(m.Lt);'"'===x?f.i=m.STRING:"{"===x?f.i=m.qC:"["===x?f.i=m.Mt:"t"===x?f.i=m.vI:"f"===x?f.i=m.jH:"n"===x?f.i=m.kI:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.i=m.oC:qk(f,a,t));continue;case m.Lt:if(","===x)h.push(m.Lt),f.i=m.Bu,1===f.u&&(q=t);else if("]"===x){f.u--;if(0===f.u)return;e();f.i=d()}else if(ok(x))continue;else qk(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<f.S;)if(x=a[t++],
   4===f.S?f.S=0:f.S++,!x)break a;if('"'===x&&!f.K){f.i=d();break}if("\\"===x&&!f.K&&(f.K=!0,x=a[t++],!x))break;if(f.K)if(f.K=!1,"u"===x&&(f.S=1),x=a[t++])continue;else break;l.lastIndex=t;x=l.exec(a);if(!x){t=a.length+1;break}t=x.index+1;x=a[x.index];if(!x)break}f.B+=t-y;continue;case m.vI:if(!x)continue;"r"===x?f.i=m.wI:qk(f,a,t);continue;case m.wI:if(!x)continue;"u"===x?f.i=m.xI:qk(f,a,t);continue;case m.xI:if(!x)continue;"e"===x?f.i=d():qk(f,a,t);continue;case m.jH:if(!x)continue;"a"===x?f.i=m.kH:
   qk(f,a,t);continue;case m.kH:if(!x)continue;"l"===x?f.i=m.lH:qk(f,a,t);continue;case m.lH:if(!x)continue;"s"===x?f.i=m.mH:qk(f,a,t);continue;case m.mH:if(!x)continue;"e"===x?f.i=d():qk(f,a,t);continue;case m.kI:if(!x)continue;"u"===x?f.i=m.lI:qk(f,a,t);continue;case m.lI:if(!x)continue;"l"===x?f.i=m.mI:qk(f,a,t);continue;case m.mI:if(!x)continue;"l"===x?f.i=d():qk(f,a,t);continue;case m.IQ:"."===x?f.i=m.oC:qk(f,a,t);continue;case m.oC:if(-1!=="0123456789.eE+-".indexOf(x))continue;else t--,f.B--,f.i=
   d();continue;default:qk(f,a,t)}}}
   function d(){var x=h.pop();return null!=x?x:m.Bu}
   function e(x){1<f.u||(x||(x=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.Y?f.J.push(x):f.J.push(JSON.parse(x)),q=t)}
   for(var f=this,h=f.ma,l=f.ya,m=MMa,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return qk(f,a,t),null;case 2:return b()&&qk(f,a,t),null;case 0:if(b()){var u=a[t++];f.B++;if("["===u){f.D=1;p=t;f.i=m.Mt;continue}else qk(f,a,t)}return null;case 1:return c(),0===f.u&&f.i==m.Lt?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.J.length?(u=f.J,f.J=[],u):null}return null};rk.prototype.isInputValid=function(){return null===this.D};
   rk.prototype.qe=function(){return this.D};
   rk.prototype.Vx=function(){return!1};
   rk.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.i+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
   function c(){f.B=new pk({Caa:!0,uR:!0})}
   function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
   function e(m){if(m){(f.J||1<m.length)&&b("extra status: "+m);f.J=!0;var n={};n[2]=m[0];f.C.push(n)}}
   for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!ok(a[h])){l=!0;break a}h++;f.i++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.i++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.substr(h,5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.i++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-
   h,h=a.length);break;case 3:","===a[h]||"null,"==a.substr(h,5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.i++):"]"===a[h]&&(f.u=5,h++,f.i++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};sk.prototype.getStatus=function(){return this.C};
   sk.prototype.Y=function(a){a=a.target;try{if(a==this.i)a:{var b=g.Gi(this.i),c=this.i.u,d=this.i.getStatus(),e=g.Li(this.i);a=[];if(Mi(this.i)instanceof Array){var f=Mi(this.i);0<f.length&&f[0]instanceof Uint8Array&&(this.Z=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?tk(this,7):7==c?tk(this,8):d||tk(this,3)),this.u||(this.u=Qba(this.i),null==this.u&&tk(this,5)),2<this.C)uk(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.Vx())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.J){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.J=new TextDecoder}for(l=0;l<h;l++)m+=this.J.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){tk(this,5);uk(this);break a}}else if(e.length>this.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){tk(this,5);uk(this);break a}}4==b?(0!=e.length||
   this.Z?tk(this,2):tk(this,4),uk(this)):tk(this,1)}}}catch(p){tk(this,6),uk(this)}};g.k=vk.prototype;g.k.gm=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.gm(a,b);return this};
   g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Ab(c,b);(a=this.i[a])&&g.Ab(a,b);return this};
   g.k.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this};
   g.k.gU=function(a){var b=this.u.data;b&&wk(a,b);(b=this.i.data)&&wk(a,b);this.i.data=[]};
   g.k.QV=function(){switch(this.B.getStatus()){case 1:xk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:xk(this,"error");break;case 8:xk(this,"close");break;case 2:xk(this,"end")}};yk.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Fk(function(h){var l=h.Yy(),m=h.getMetadata(),n=Hk(e,!1);m=Ik(e,m,n,f+l.getName());var p=Jk(n,l.u,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.C).call(this,Aj(d,b,c))};Kk.prototype.create=function(a,b){return Gk(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},GMa)};Mk.prototype.snapshot=function(a){if(this.i)throw Error("Already disposed");return this.u.then(function(b){var c=b.aR;return new Promise(function(d){c(function(e){d(e)},[a.yJ,
   a.pba])})})};
   Mk.prototype.dispose=function(){this.i=!0;this.u.then(function(a){(a=a.eX)&&a()})};
   Mk.prototype.isDisposed=function(){return this.i};/*
   
    SPDX-License-Identifier: Apache-2.0
   */
   var Tk={};g.w(Ok,Nk);Ok.prototype.toString=function(){return this.i};
   var Eta=new Ok("about:invalid#zTSz",Tk);var Pk;var Sk=[Rk("data"),Rk("http"),Rk("https"),Rk("mailto"),Rk("ftp"),new Qk(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.w(Wk,Vk);Wk.prototype.toString=function(){return this.i.toString()};ea.Object.defineProperties(cl.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.i.a}},
   B:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.w(el,g.I);g.w(fl,el);fl.prototype.Tz=function(a){this.i+=1;var b=new cl(this.J(a.yJ));a=b.u;b=Rc(b.B);var c=new je;a=Pd(c,1,a);a=Pd(a,2,b);b=new ke;c=de;b.i||(b.i={});var d=a?a.oh(!1):a;b.i[3]=a;a=Vd(b,3,c,d);b=new md;ud(b,1,ee(a,he,1),Aaa);ud(b,2,ee(a,ie,2),Baa);ud(b,3,ee(a,je,3),Caa);fe(a,b);return pd(b)};
   fl.prototype.B=function(){return this.i>=this.C};
   fl.prototype.dispose=function(){this.D.dispose()};
   g.w(gl,el);gl.prototype.Tz=function(){return this.i};
   gl.prototype.B=function(){return!1};
   dl.prototype.isReady=function(){return!!this.Vu};
   dl.prototype.ready=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return g.A(d,c.LL,0)})})};
   dl.prototype.Tz=function(a){if(!this.isReady())throw Error("Not ready");try{var b=this.Vu,c=Date.now();void 0!==b.u&&this.logger.Iz(fca(b.u));try{var d=b.Tz(a)}catch(e){throw jl(this,5,e);}b.B()&&hl(this,1);this.logger.cw("m",Date.now()-c);return d}catch(e){return this.onError(e instanceof Error?e:Error(String(e)),"Could not mint"),a="WE:",a=e instanceof le?a+(e.code+":"+e.message+":"+e.stack):e instanceof Error?a+(e.message+":"+e.stack):a+(""+e),new Uint8Array(g.Va(a.substring(0,2048)))}};var Pn;Pn=["av.default","js","unreleased"].slice(-1)[0];var km=document,zl=window;var gda={NONE:0,w1:1},Mca={SO:0,y8:1,x8:2,z8:3};ml.prototype.isVisible=function(){return this.Qp?.3<=this.Zc:.5<=this.Zc};var Jm={xZ:0,N1:1},Kca={NONE:0,T2:1,n2:2};nl.prototype.getValue=function(){return this.u};
   g.w(ol,nl);ol.prototype.setValue=function(a){if(null!==this.u||!g.gc(this.B,a))return!1;this.u=a;return!0};
   g.w(pl,nl);pl.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0};
   g.w(ql,nl);ql.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};rl.prototype.disable=function(){this.u=!1};
   rl.prototype.enable=function(){this.u=!0};
   rl.prototype.isEnabled=function(){return this.u};
   rl.prototype.reset=function(){this.i={};this.u=!0;this.B={}};var hda=!g.Qc&&!yc();wl.prototype.now=function(){return 0};
   wl.prototype.u=function(){return 0};
   wl.prototype.B=function(){return 0};
   wl.prototype.i=function(){return 0};g.w(yl,wl);yl.prototype.now=function(){return xl()&&zl.performance.now?zl.performance.now():wl.prototype.now.call(this)};
   yl.prototype.u=function(){return xl()&&zl.performance.memory?zl.performance.memory.totalJSHeapSize||0:wl.prototype.u.call(this)};
   yl.prototype.B=function(){return xl()&&zl.performance.memory?zl.performance.memory.usedJSHeapSize||0:wl.prototype.B.call(this)};
   yl.prototype.i=function(){return xl()&&zl.performance.memory?zl.performance.memory.jsHeapSizeLimit||0:wl.prototype.i.call(this)};var qca=cf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
   g.D.addEventListener("test",null,b)}catch(c){}return a});El.prototype.isVisible=function(){return 1===Dl(km)};g.lf("csi.gstatic.com");g.lf("googleads.g.doubleclick.net");g.lf("pagead2.googlesyndication.com");g.lf("partner.googleadservices.com");g.lf("pubads.g.doubleclick.net");g.lf("securepubads.g.doubleclick.net");g.lf("tpc.googlesyndication.com");var tca=/https?:\/\/[^\/]+/,rca={pY:"allow-forms",qY:"allow-modals",rY:"allow-orientation-lock",sY:"allow-pointer-lock",tY:"allow-popups",uY:"allow-popups-to-escape-sandbox",vY:"allow-presentation",wY:"allow-same-origin",xY:"allow-scripts",yY:"allow-top-navigation",zY:"allow-top-navigation-by-user-activation"},wca=cf(function(){return sca()});g.k=Ml.prototype;g.k.getHeight=function(){return this.bottom-this.top};
   g.k.clone=function(){return new Ml(this.top,this.right,this.bottom,this.left)};
   g.k.contains=function(a){return this&&a?a instanceof Ml?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
   g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
   g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
   g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
   g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};g.k=g.Pl.prototype;g.k.clone=function(){return new g.Pl(this.left,this.top,this.width,this.height)};
   g.k.contains=function(a){return a instanceof g.ag?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
   g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
   g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
   g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
   g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
   g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Tl={};var im=!!window.google_async_iframe_id,jm=im&&window.parent||window;var Aca=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");pm.prototype.Xd=function(a,b,c,d){a=a+"//"+b+c;var e=Cca(this)-c.length-d.length;if(0>e)return"";this.i.sort(function(p,q){return p-q});
   c=null;b="";for(var f=0;f<this.i.length;f++)for(var h=this.i[f],l=this.u[h],m=0;m<l.length;m++){if(!e){c=null==c?h:c;break}var n=sm(l[m],this.B,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.B;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};Cm.prototype.setInterval=function(a,b){return zl.setInterval(a,b)};
   Cm.prototype.clearInterval=function(a){zl.clearInterval(a)};
   Cm.prototype.setTimeout=function(a,b){return zl.setTimeout(a,b)};
   Cm.prototype.clearTimeout=function(a){zl.clearTimeout(a)};Gm.prototype.getContext=function(){if(!this.i){if(!zl)throw Error("Context has not been set and window is undefined.");this.i=Bm(Cm)}return this.i};g.w(Hm,Nd);var Lca={a8:1,PQ:2,i6:3};rf(kf(g.lf("https://pagead2.googlesyndication.com/pagead/osd.js")));Km.prototype.HF=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.i[e])&&e.setValue(d)}}}};var f2=null;var Sm=g.D.performance,NMa=!!(Sm&&Sm.mark&&Sm.measure&&Sm.clearMarks),Qm=cf(function(){var a;if(a=NMa){var b;if(null===f2){f2="";try{a="";try{a=g.D.top.location.hash}catch(c){a=g.D.location.hash}a&&(f2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=f2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
   Rm.prototype.disable=function(){this.i=!1;this.events!=this.u.google_js_reporting_queue&&(Qm()&&g.Qb(this.events,Tm),this.events.length=0)};
   Rm.prototype.start=function(a,b){if(!this.i)return null;var c=Pm()||Om();a=new Oca(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Sm&&Qm()&&Sm.mark(b);return a};
   Rm.prototype.end=function(a){if(this.i&&"number"===typeof a.value){var b=Pm()||Om();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Sm&&Qm()&&Sm.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};Wm.prototype.IE=function(a,b,c,d,e){e=e||this.TJ;try{var f=new pm;f.i.push(1);f.u[1]=qm("context",a);b.error&&b.meta&&b.id||(b=new Xm(Ym(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.u[2]=qm("msg",h)}var l=b.meta||{};if(this.FC)try{this.FC(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.i.push(3);f.u[3]=b;var m=om();if(m.u){var n=m.u.url||"";f.i.push(4);f.u[4]=qm("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?ji(m.i.url):""}];f.i.push(5);f.u[5]=p;Mm(this.i,e,f,!1,c)}catch(q){try{Mm(this.i,
   e,{context:"ecmserr",rctx:a,msg:Ym(q),url:m&&m.i.url},!1,c)}catch(t){}}return this.nG};
   g.w(Xm,Nm);var Vm,$m,Um=new Rm;(function(){Vm=new Nca;$m=new Wm;var a=lm();a&&a.document&&("complete"==a.document.readyState?bn():Um.i&&Bl(a,"load",function(){bn()}))})();var Qca=Date.now(),jn=-1,gn=-1,Lo,kn=-1,hn=!1;var OMa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Go={LQ:"start",VO:"firstquartile",GQ:"midpoint",MQ:"thirdquartile",PO:"complete",FQ:"metric",PAUSE:"pause",JQ:"resume",KQ:"skip",OQ:"viewable_impression",HQ:"mute",NQ:"unmute",WO:"fullscreen",UO:"exitfullscreen",OO:"bufferstart",NO:"bufferfinish",XO:"fully_viewable_audible_half_duration_impression",EQ:"measurable_impression",LO:"abandon",TO:"engagedview",YO:"impression",QO:"creativeview",DQ:"loaded",i8:"progress",CLOSE:"close",
   oZ:"collapse",k7:"overlay_resize",l7:"overlay_unmeasurable_impression",m7:"overlay_unviewable_impression",o7:"overlay_viewable_immediate_impression",n7:"overlay_viewable_end_of_session_impression",RO:"custom_metric_viewable",f7:"verification_debug"},Fga="start firstquartile midpoint thirdquartile resume loaded".split(" "),Gga=["start","firstquartile","midpoint","thirdquartile"],Dfa=["abandon"],Dp={UNKNOWN:-1,LQ:0,VO:1,GQ:2,MQ:3,PO:4,FQ:5,PAUSE:6,JQ:7,KQ:8,OQ:9,HQ:10,NQ:11,WO:12,UO:13,XO:14,EQ:15,
   LO:16,TO:17,YO:18,QO:19,DQ:20,RO:21,OO:22,NO:23};var Sca={dY:"addEventListener",q2:"getMaxSize",s2:"getScreenSize",t2:"getState",u2:"getVersion",t8:"removeEventListener",b3:"isViewable"};if(km&&km.URL){var PMa,Jl=km.URL;PMa=!!Jl&&0<vca().length;$m.nG=!PMa};wn.prototype.update=function(a){a&&a.document&&(this.K=qn(!1,a,this.isMobileDevice),this.i=qn(!0,a,this.isMobileDevice),yn(this,a),xn(this,a))};Bn.prototype.cancel=function(){Dm().clearTimeout(this.i);this.i=null};
   Bn.prototype.schedule=function(){var a=this;this.i=Dm().setTimeout(Im(Lm().i.i,dn(143,function(){a.u++;a.B.sample()})),Rca())};g.k=Cn.prototype;g.k.Ot=function(){return!1};
   g.k.initialize=function(){return this.Zd=!0};
   g.k.Sr=function(){return this.i.Ea};
   g.k.Pv=function(){return this.i.Y};
   g.k.Bh=function(a,b){if(!this.Y||(void 0===b?0:b))this.Y=!0,this.Ea=a,this.S=0,this.i!=this||Hn(this)};
   g.k.getName=function(){return this.i.La};
   g.k.xn=function(){return this.i.lK()};
   g.k.lK=function(){return{}};
   g.k.Ql=function(){return this.i.S};
   g.k.vH=function(){var a=zn();a.i=qn(!0,this.B,a.isMobileDevice)};
   g.k.wH=function(){xn(zn(),this.B)};
   g.k.tK=function(){return this.C.i};
   g.k.sample=function(){};
   g.k.isActive=function(){return this.i.J};
   g.k.hs=function(a){var b=this.i;this.i=a.Ql()>=this.S?a:this;b!==this.i?(this.J=this.i.J,Hn(this)):this.J!==this.i.J&&(this.J=this.i.J,Hn(this))};
   g.k.En=function(a){if(a.u===this.i){var b=this.C,c=this.Z;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.B==a.B)b=b.i,c=a.i,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.C=a;!c&&Gn(this)}};
   g.k.Rk=function(){return this.Z};
   g.k.dispose=function(){this.Aa=!0};
   g.k.isDisposed=function(){return this.Aa};g.k=In.prototype;g.k.NB=function(){return!0};
   g.k.Pt=function(){};
   g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Ab(a.D,this);a.Z&&this.Rk()&&Fn(a);this.Pt();this.Y=!0}};
   g.k.isDisposed=function(){return this.Y};
   g.k.xn=function(){return this.u.xn()};
   g.k.Ql=function(){return this.u.Ql()};
   g.k.Sr=function(){return this.u.Sr()};
   g.k.Pv=function(){return this.u.Pv()};
   g.k.hs=function(){};
   g.k.En=function(){this.Qm()};
   g.k.Rk=function(){return this.ma};g.k=Jn.prototype;g.k.Ql=function(){return this.i.Ql()};
   g.k.Sr=function(){return this.i.Sr()};
   g.k.Pv=function(){return this.i.Pv()};
   g.k.create=function(a,b,c){var d=null;this.i&&(d=this.Gx(a,b,c),Dn(this.i,d));return d};
   g.k.xH=function(){return this.Qt()};
   g.k.Qt=function(){return!1};
   g.k.init=function(a){return this.i.initialize()?(Dn(this.i,this),this.C=a,!0):!1};
   g.k.hs=function(a){0==a.Ql()&&this.C(a.Sr(),this)};
   g.k.En=function(){};
   g.k.Rk=function(){return!1};
   g.k.dispose=function(){this.D=!0};
   g.k.isDisposed=function(){return this.D};
   g.k.xn=function(){return{}};Mn.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.i,f=e.push;a=new Kn(a,b,c);d=new Kn(a.u,a.i,a.B+d);f.call(e,d);this.u=!0;return this};Qn.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=On(this.i);0<b.length&&(a+="?"+b);return a};Tn.prototype.update=function(a,b,c){a&&(this.i+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var ada=[1,.75,.5,.3,0];Un.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.i[e].update(f&&l,d,!f||h)}};co.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.Zc):b.Zc;this.ma=Math.max(this.ma,b.Zc);this.ya=-1!=this.ya?Math.min(this.ya,b.nh):b.nh;this.Ea=Math.max(this.Ea,b.nh);this.Za.update(b.nh,c.nh,b.i,a,d);this.u.update(b.Zc,c.Zc,b.i,a,d);c=d||c.Qp!=b.Qp?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.La.update(c,a,b)};
   co.prototype.Tp=function(){return this.La.B>=this.Ya};var QMa=new Ml(0,0,0,0);var fda=new Ml(0,0,0,0);g.w(ho,g.I);g.k=ho.prototype;g.k.xa=function(){this.Sg.i&&(this.pp.UE&&(Cl(this.Sg.i,"mouseover",this.pp.UE),this.pp.UE=null),this.pp.SE&&(Cl(this.Sg.i,"mouseout",this.pp.SE),this.pp.SE=null));this.lx&&this.lx.dispose();this.Kd&&this.Kd.dispose();delete this.Oz;delete this.KE;delete this.tO;delete this.Sg.Mn;delete this.Sg.i;delete this.pp;delete this.lx;delete this.Kd;delete this.featureSet;g.I.prototype.xa.call(this)};
   g.k.yn=function(){return this.Kd?this.Kd.i:this.position};
   g.k.HF=function(a){Lm().HF(a)};
   g.k.Rk=function(){return!1};
   g.k.cz=function(){return new co};
   g.k.Xg=function(){return this.Oz};
   g.k.oK=function(a){return ko(this,a,1E4)};
   g.k.Pa=function(a,b,c,d,e,f,h){this.zs||(this.Dy&&(a=this.PC(a,c,e,h),d=d&&this.vf.Zc>=(this.Qp()?.3:.5),this.UG(f,a,d),this.lastUpdateTime=b,0<a.Zc&&-1===this.bO&&(this.bO=b),-1==this.gO&&this.Tp()&&(this.gO=b),-2==this.GE&&(this.GE=fo(this.yn())?a.Zc:-1),this.vf=a),this.KE(this))};
   g.k.UG=function(a,b,c){this.Xg().update(a,b,this.vf,c)};
   g.k.PD=function(){return new ml};
   g.k.PC=function(a,b,c,d){c=this.PD();c.i=b;b=Dm().u;b=0===Dl(km)?-1:b.isVisible()?0:1;c.u=b;c.Zc=this.dD(a);c.Qp=this.Qp();c.nh=d;return c};
   g.k.dD=function(a){return 0===this.opacity&&1===ul(this.featureSet,"opac")?0:a};
   g.k.Qp=function(){return!1};
   g.k.VA=function(){return this.CS||this.GS};
   g.k.Wz=function(){fn()};
   g.k.TE=function(){fn()};
   g.k.yk=function(){return 0};
   g.k.Tp=function(){return this.Oz.Tp()};g.$q="StopIteration"in g.D?g.D.StopIteration:{message:"StopIteration",stack:""};g.lo.prototype.sj=function(){throw g.$q;};
   g.lo.prototype.next=function(){return RMa};
   var RMa={done:!0,value:void 0};g.lo.prototype.Lg=function(){return this};g.w(mo,ml);po.prototype.getValue=function(){return this.u};
   po.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.u&=~(1<<a):this.i&1<<a||!b||(this.u|=1<<a),this.i|=1<<a)};g.w(qo,co);
   qo.prototype.update=function(a,b,c,d){if(!b.paused){co.prototype.update.call(this,a,b,c,d);var e=no(b)&&no(c),f=.5<=(d?Math.min(b.Zc,c.Zc):c.Zc);un(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.J=Math.max(this.J,b.volume));f&&(this.Aa+=a,this.Z+=e?a:0);this.i.update(b.Zc,c.Zc,b.i,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Y.update(c.fullscreen,a);this.eb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ka.update(a,b.isVisible());this.Ua.update(a,1<=b.Zc);this.Ra.update(a,
   no(b))}};g.w(so,qda);so.prototype.C=function(){return!0};
   so.prototype.D=function(){return!1};
   so.prototype.getId=function(){var a=this,b=jc(Go,function(c){return c==a.u});
   return Dp[b].toString()};
   so.prototype.toString=function(){var a="";this.D()&&(a+="c");this.i&&(a+="s");0<this.B&&(a+=":"+this.B);return this.getId()+a};g.w(vo,In);g.k=vo.prototype;g.k.SC=function(){if(this.element){var a=this.element,b=this.u.i.B;try{try{var c=sn(a.getBoundingClientRect())}catch(n){c=new Ml(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=cm(a,b),h=f.x,l=f.y;var m=new Ml(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=QMa.clone()}this.i=m}};
   g.k.gJ=function(){this.C=this.u.C.i};
   g.k.eL=function(a){var b=1==ul(this.featureSet,"od");return eda(a,this.C,this.element,b)};
   g.k.hJ=function(){this.timestamp=fn()};
   g.k.Qm=function(){this.hJ();this.SC();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.cg(a.videoWidth,a.videoHeight);a=this.i;var c=Nl(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.i=a}this.gJ();
   a=this.i;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Ml(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 Ml(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Ml(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.eL(c)?c=new Ml(0,0,0,0):(d=zn().C,b=new Ml(0,d.height,d.width,0),d=go(c,this.i),e=go(c,zn().i),b=go(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Ml(0,0,0,
   0):Ol(c,-this.i.left,-this.i.top);An()||(e=d=0);this.K=new mn(a,this.i,c,d,e,this.timestamp,b)};
   g.k.getName=function(){return this.u.getName()};var SMa=new Ml(0,0,0,0);g.w(wo,vo);g.k=wo.prototype;g.k.NB=function(){this.B();return!0};
   g.k.En=function(){vo.prototype.Qm.call(this)};
   g.k.hJ=function(){};
   g.k.SC=function(){};
   g.k.Qm=function(){this.B();vo.prototype.Qm.call(this)};
   g.k.hs=function(a){a=a.isActive();a!==this.J&&(a?this.B():(zn().i=new Ml(0,0,0,0),this.i=new Ml(0,0,0,0),this.C=new Ml(0,0,0,0),this.timestamp=-1));this.J=a};var g2={},Cfa=(g2.firstquartile=0,g2.midpoint=1,g2.thirdquartile=2,g2.complete=3,g2);g.w(yo,ho);g.k=yo.prototype;g.k.Rk=function(){return!0};
   g.k.Yl=function(){return 2==this.xg};
   g.k.oK=function(a){return ko(this,a,Math.max(1E4,this.B/3))};
   g.k.Pa=function(a,b,c,d,e,f,h){var l=this,m=this.S(this)||{};g.tc(m,e);this.B=m.duration||this.B;this.Z=m.isVpaid||this.Z;this.Ja=m.isYouTube||this.Ja;e=rda(this,b);1===Co(this)&&(f=e);ho.prototype.Pa.call(this,a,b,c,d,m,f,h);this.cq&&this.cq.i&&g.Qb(this.J,function(n){n.i||(n.i=uo(n,l))})};
   g.k.UG=function(a,b,c){ho.prototype.UG.call(this,a,b,c);Bo(this).update(a,b,this.vf,c);this.Za=no(this.vf)&&no(b);-1==this.Ea&&this.Ya&&(this.Ea=this.Xg().B.i);this.jf.B=0;a=this.Tp();b.isVisible()&&oo(this.jf,"vs");a&&oo(this.jf,"vw");un(b.volume)&&oo(this.jf,"am");no(b)&&oo(this.jf,"a");this.qs&&oo(this.jf,"f");-1!=b.u&&(oo(this.jf,"bm"),1==b.u&&oo(this.jf,"b"));no(b)&&b.isVisible()&&oo(this.jf,"avs");this.Za&&a&&oo(this.jf,"avw");0<b.Zc&&oo(this.jf,"pv");Do(this,this.Xg().B.i,!0)&&oo(this.jf,"gdr");
   2E3<=$n(this.Xg().u,1)&&oo(this.jf,"pmx")};
   g.k.cz=function(){return new qo};
   g.k.Xg=function(){return this.Oz};
   g.k.PD=function(){return new mo};
   g.k.PC=function(a,b,c,d){a=ho.prototype.PC.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.qs;a.paused=this.Yl();a.volume=c.volume;un(a.volume)||(this.eb++,b=this.vf,un(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
   g.k.dD=function(a){return zn(),this.qs?1:ho.prototype.dD.call(this,a)};
   g.k.yk=function(){return 1};
   g.k.getDuration=function(){return this.B};var TMa=g.Pa();No.prototype.reset=function(){this.i=[];this.u=[]};
   var Qo=Bm(No);g.w(Wo,Jn);g.k=Wo.prototype;g.k.getName=function(){return(this.u?this.u:this.i).getName()};
   g.k.xn=function(){return(this.u?this.u:this.i).xn()};
   g.k.Ql=function(){return(this.u?this.u:this.i).Ql()};
   g.k.init=function(a){var b=!1;(0,g.Qb)(this.B,function(c){c.initialize()&&(b=!0)});
   b&&(this.C=a,Dn(this.i,this));return b};
   g.k.dispose=function(){(0,g.Qb)(this.B,function(a){a.dispose()});
   Jn.prototype.dispose.call(this)};
   g.k.xH=function(){return vn(this.B,function(a){return a.Ot()})};
   g.k.Qt=function(){return vn(this.B,function(a){return a.Ot()})};
   g.k.Gx=function(a,b,c){return new vo(a,this.i,b,c)};
   g.k.En=function(a){this.u=a.u};var Wfa={threshold:[0,.3,.5,.75,1]};g.w(Xo,vo);g.k=Xo.prototype;g.k.NB=function(){var a=this;this.Z||(this.Z=fn());if(cn(298,function(){return Xfa(a)}))return!0;
   this.u.Bh("msf");return!1};
   g.k.Pt=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
   g.k.Qm=function(){var a=Yo(this);0<a.length&&Zo(this,a);vo.prototype.Qm.call(this)};
   g.k.SC=function(){};
   g.k.eL=function(){return!1};
   g.k.gJ=function(){};
   g.k.xn=function(){var a={};return Object.assign(this.u.xn(),(a.niot_obs=this.Z,a.niot_cbk=this.S,a))};
   g.k.getName=function(){return"nio"};g.w($o,Jn);$o.prototype.getName=function(){return"nio"};
   $o.prototype.Qt=function(){return!zn().u&&null!=this.i.i.B.IntersectionObserver};
   $o.prototype.Gx=function(a,b,c){return new Xo(a,this.i,b,c)};g.w(bp,Cn);bp.prototype.tK=function(){return zn().i};
   bp.prototype.Ot=function(){var a=ap();this.S!==a&&(this.i!=this&&a>this.i.S&&(this.i=this,Hn(this)),this.S=a);return 2==a};dp.prototype.sample=function(){op(this,Ro(),!1)};
   dp.prototype.C=function(){var a=An(),b=fn();a?(hn||(jn=b,g.Qb(Qo.i,function(c){var d=c.Xg();d.Ja=ro(d,b,1!=c.xg)})),hn=!0):(this.K=qp(this,b),hn=!1,Lo=b,g.Qb(Qo.i,function(c){c.Dy&&(c.Xg().S=b)}));
   op(this,Ro(),!a)};
   var ep=Bm(dp);var rp=null,cq="",bq=!1;var h2=xp([void 0,1,2,3,4,8,16]),i2=xp([void 0,4,8,16]),UMa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:wp("p0",i2),p1:wp("p1",i2),p2:wp("p2",i2),p3:wp("p3",i2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:vp("mtos1",[0,2,4],!1,i2),mtos2:vp("mtos2",[0,2,4],!1,i2),mtos3:vp("mtos3",[0,2,4],!1,i2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:wp("a0",i2),a1:wp("a1",i2),a2:wp("a2",i2),a3:wp("a3",i2),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:wp("c0",i2),c1:wp("c1",i2),c2:wp("c2",i2),c3:wp("c3",i2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:wp("qmtos",h2),qnc:wp("qnc",h2),qmv:wp("qmv",h2),qnv:wp("qnv",h2),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:wp("ss0",i2),ss1:wp("ss1",i2),ss2:wp("ss2",i2),ss3:wp("ss3",i2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},VMa={c:sp("c"),
   at:"at",atos:vp("atos",[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"),
   a:"a",dur:"dur",p:"p",tos:up(),j:"dom",mtos:vp("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:sp("ss"),vsv:af("w2"),t:"t"},WMa={atos:"atos",avt:vp("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:sp("ss"),t:"t"},XMa={a:"a",tos:up(),at:"at",c:sp("c"),mtos:vp("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:af("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},YMa={tos:up(),at:"at",c:sp("c"),mtos:vp("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:af("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:vp("qmtos",
   [0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.ym(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
   .5,0]),qmv:"qmv",qa:"qas",a:"a"};var Bp=zp().lk,Ap=zp().version;var fga={P1:"visible",GY:"audible",T9:"time",U9:"timetype"},Gp={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
   audible:function(a){return"0"==a||"1"==a},
   timetype:function(a){return"mtos"==a||"tos"==a},
   time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.w(Hp,so);Hp.prototype.getId=function(){return this.J};
   Hp.prototype.D=function(){return!0};
   Hp.prototype.C=function(a){var b=a.Xg(),c=a.getDuration();return vn(this.K,function(d){if(void 0!=d.i)var e=hga(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.i;break b;case "tos":e=d.u?b.D.i:b.B.i;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.w(Ip,so);Ip.prototype.C=function(a){var b=Yn(a.Xg().i,1);return Do(a,b)};g.w(Jp,so);Jp.prototype.C=function(a){return a.Xg().Tp()};g.w(Mp,iga);Mp.prototype.i=function(a){var b=new Kp;b.i=Lp(a,UMa);b.B=Lp(a,WMa);return b};g.w(Np,wo);Np.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=ul(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
   Np.prototype.getName=function(){return"gsv"};g.w(Op,Jn);Op.prototype.getName=function(){return"gsv"};
   Op.prototype.Qt=function(){var a=zn();Lm();return a.u&&!1};
   Op.prototype.Gx=function(a,b,c){return new Np(this.i,b,c)};g.w(Pp,wo);Pp.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=ul(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.lc(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=tn(d.opt_nativeViewBounds||{});var h=a.u.C;h.i=f?SMa.clone():tn(e);a.timestamp=d.opt_nativeTime||-1;zn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
   Pp.prototype.getName=function(){return"nis"};g.w(Qp,Jn);Qp.prototype.getName=function(){return"nis"};
   Qp.prototype.Qt=function(){var a=zn();Lm();return a.u&&!1};
   Qp.prototype.Gx=function(a,b,c){return new Pp(this.i,b,c)};g.w(Rp,Cn);g.k=Rp.prototype;g.k.Ot=function(){return null!=this.u.rj};
   g.k.lK=function(){var a={};this.Ka&&(a.mraid=this.Ka);this.ya&&(a.mlc=1);a.mtop=this.u.fX;this.K&&(a.mse=this.K);this.Ja&&(a.msc=1);a.mcp=this.u.compatibility;return a};
   g.k.uo=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.u.rj[a].apply(this.u.rj,c)}catch(e){en(538,e,.01,function(f){f.method=a})}};
   g.k.initialize=function(){var a=this;if(this.Zd)return!this.Pv();this.Zd=!0;if(2===this.u.compatibility)return this.K="ng",this.Bh("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.Bh("w"),!1;zn().S=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Vp(this):on(this.B,"load",function(){Dm().setTimeout(dn(292,function(){return Vp(a)}),100)},292);
   return!0};
   g.k.vH=function(){var a=zn(),b=Yp(this,"getMaxSize");a.i=new Ml(0,b.width,b.height,0)};
   g.k.wH=function(){zn().C=Yp(this,"getScreenSize")};
   g.k.dispose=function(){Wp(this);Cn.prototype.dispose.call(this)};g.k=Zp.prototype;g.k.Xu=function(a){io(a,!1);Tfa(a)};
   g.k.jz=function(){};
   g.k.Rw=function(a,b,c,d){var e=this;this.u||(this.u=this.EJ());b=c?b:-1;a=null==this.u?new yo(zl,a,b,7):new yo(zl,a,b,7,new so("measurable_impression",this.u),oga(this));a.Gf=d;nca(a.featureSet);tl(a.featureSet,"queryid",a.Gf);a.HF("");kda(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.AK.apply(e,g.v(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
   return e.kS.apply(e,g.v(h))});
   (d=Bm(Uo).i)&&jo(a,d);a.Sg.Mn&&Bm(cp);return a};
   g.k.hs=function(a){switch(a.Ql()){case 0:if(a=Bm(Uo).i)a=a.i,g.Ab(a.D,this),a.Z&&this.Rk()&&Fn(a);aq();break;case 2:fp()}};
   g.k.En=function(){};
   g.k.Rk=function(){return!1};
   g.k.kS=function(a,b){a.zs=!0;switch(a.yk()){case 1:gq(this,a,b);break;case 2:this.PF(a)}this.cG()};
   g.k.sS=function(a){Fo(a,0);return Io(a,"start",An())};
   g.k.wt=function(a,b,c){op(ep,[a],!An());return this.An(a,b,c)};
   g.k.An=function(a,b,c){return Io(a,c,An())};
   g.k.nS=function(a){return hq(a,"firstquartile",1)};
   g.k.pS=function(a){a.Ya=!0;return hq(a,"midpoint",2)};
   g.k.tS=function(a){return hq(a,"thirdquartile",3)};
   g.k.lS=function(a){var b=hq(a,"complete",4);zo(a);return b};
   g.k.AN=function(a,b,c){b=An();if(a.Yl()&&!b){var d=fn();a.Xg().S=d}op(ep,[a],!b);a.Yl()&&(a.xg=1);return Io(a,c,b)};
   g.k.rS=function(a,b){b=this.wt(a,b||{},"skip");zo(a);return b};
   g.k.oS=function(a,b){io(a,!0);return this.wt(a,b||{},"fullscreen")};
   g.k.mS=function(a,b){io(a,!1);return this.wt(a,b||{},"exitfullscreen")};
   g.k.AF=function(a,b,c){b=a.Xg();var d=fn();b.Ja=ro(b,d,1!=a.xg);op(ep,[a],!An());1==a.xg&&(a.xg=2);return Io(a,c,An())};
   g.k.qS=function(a){op(ep,[a],!An());return a.u()};
   g.k.eE=function(a){op(ep,[a],!An());this.vN(a);zo(a);return a.u()};
   g.k.AK=function(){};
   g.k.PF=function(){};
   g.k.vN=function(){};
   g.k.yH=function(){};
   g.k.cG=function(){};
   g.k.EJ=function(){};var lq=g.Pa(),nq=!1,oq=!1,pq=!1,uga=[function(a){return!(!a.chrome||!a.chrome.webstore)},
   function(a){return!!a.document.documentMode},
   function(a){return!!a.document.fonts.ready},
   function(){return mq(0)},
   function(a){return!!a.ActiveXObject},
   function(a){return!!a.chrome},
   function(a){return!!a.navigator.serviceWorker},
   function(a){return!!a.opera},
   function(a){return!!a.sidebar},
   function(){return!+"\v1"},
   function(){return mq(1)},
   function(a){return!a.ActiveXObject},
   function(a){return"-ms-ime-align"in a.document.documentElement.style},
   function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
   function(a){return"-webkit-font-feature-settings"in a.document.body.style},
   function(){return mq(2)},
   function(a){return"ActiveXObject"in a},
   function(a){return"MozAppearance"in a.document.documentElement.style},
   function(a){return"_phantom"in a},
   function(a){return"callPhantom"in a},
   function(a){return"content"in a.document.createElement("template")},
   function(a){return"getEntriesByType"in a.performance},
   function(){return mq(3)},
   function(a){return"image-rendering"in a.document.body.style},
   function(a){return"object-fit"in a.document.body.style},
   function(a){return"open"in a.document.createElement("details")},
   function(a){return"orientation"in a.screen},
   function(a){return"performance"in a},
   function(a){return"shape-image-threshold"in a.document.body.style},
   function(){return mq(4)},
   function(a){return"srcset"in a.document.createElement("img")},
   function(){return oq},
   function(){return pq},
   function(){return mq(5)},
   function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
   function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
   function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
   function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
   function(){return!1},
   function(){return mq(6)},
   function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||kq(a.navigator.vibrate)},
   function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
   function(a){a=a.document.createElement("div");return kq(a.matches)},
   function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
   function(a){return a.CSS.supports("image-rendering","pixelated")},
   function(a){return a.CSS.supports("object-fit","contain")},
   function(){return mq(7)},
   function(a){return a.CSS.supports("object-fit","inherit")},
   function(a){return a.CSS.supports("shape-image-threshold","0.9")},
   function(a){return a.CSS.supports("word-break","keep-all")},
   function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
   function(a){return kq(a.CSS.supports)},
   function(){return kq(Intl.Collator)},
   function(a){return kq(a.document.createElement("dialog").show)},
   function(){return mq(8)},
   function(a){return kq(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
   function(a){return kq(a.document.createElement("div").animate)},
   function(a){return kq(a.document.documentElement.webkitRequestFullScreen)},
   function(a){return kq(a.navigator.getBattery)},
   function(a){return kq(a.navigator.permissions.query)},
   function(){return!1},
   function(){return mq(9)},
   function(){return kq(webkitRequestAnimationFrame)},
   function(a){return kq(a.BroadcastChannel.call)},
   function(a){return kq(a.FontFace)},
   function(a){return kq(a.Gamepad)},
   function(){return mq(10)},
   function(a){return kq(a.MutationEvent)},
   function(a){return kq(a.MutationObserver)},
   function(a){return kq(a.crypto.getRandomValues)},
   function(a){return kq(a.document.body.createShadowRoot)},
   function(a){return kq(a.document.body.webkitCreateShadowRoot)},
   function(a){return kq(a.fetch)},
   function(){return mq(11)},
   function(a){return kq(a.navigator.serviceWorker.register)},
   function(a){return kq(a.navigator.webkitGetGamepads)},
   function(a){return kq(a.speechSynthesis.speak)},
   function(a){return kq(a.webkitRTCPeerConnection)},
   function(a){return a.CSS.supports("--fake-var","0")},
   function(){return mq(12)},
   function(a){return a.CSS.supports("cursor","grab")},
   function(a){return a.CSS.supports("cursor","zoom-in")},
   function(a){return a.CSS.supports("image-orientation","270deg")},
   function(){return mq(13)},
   function(a){return a.CSS.supports("position","sticky")},
   function(a){return void 0===a.document.createElement("style").scoped},
   function(a){return a.performance.getEntriesByType("resource")instanceof Array},
   function(){return"undefined"==typeof InstallTrigger},
   function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
   function(a){return"boolean"==typeof a.navigator.onLine},
   function(){return mq(14)},
   function(a){return"undefined"==typeof a.navigator.xba},
   function(a){return"number"==typeof a.performance.now()},
   function(){return 0==(new Uint16Array(1))[0]},
   function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
   function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],vga=[function(a){a=a.document.createElement("div");
   var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
   function(){return(new Date).getTimezoneOffset()},
   function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
   function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
   function(a){return a.screen.availWidth/a.screen.availHeight},
   function(a){return a.screen.width/a.screen.height}],wga=[function(a){return a.navigator.userAgent},
   function(a){return a.navigator.platform},
   function(a){return a.navigator.vendor}];g.Qa(qq,yga);qq.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.B=this.u=0};
   qq.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.C,e=this.u,f=0;f<b;){if(0==e)for(;f<=c;)rq(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){rq(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){rq(this,d);e=0;break}}this.u=e;this.B+=b};
   qq.prototype.digest=function(){var a=Array((56>this.u?this.blockSize:2*this.blockSize)-this.u);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.B;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.w(sq,Mp);sq.prototype.i=function(a){var b=Mp.prototype.i.call(this,a);var c=lq=g.Pa();var d=mq(5);c=(oq?!d:d)?c|2:c&-3;d=mq(2);c=(pq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=xga());b.D=this.u;b.J=Lp(a,VMa,c,"h",tq("kArwaWEsTs"));b.C=Lp(a,XMa,{},"h",tq("b96YPMzfnx"));b.u=Lp(a,YMa,{},"h",tq("yb8Wev6QDg"));return b};uq.prototype.u=function(){return g.Ga(this.i)};g.w(vq,Zp);g.k=vq.prototype;g.k.jz=function(a,b){var c=this,d=Bm(Uo);if(null!=d.i)switch(d.i.getName()){case "nis":var e=Cga(this,a,b);break;case "gsv":e=Bga(this,a,b);break;case "exc":e=Dga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=rga(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.yk()&&(e.S==g.Ha&&(e.S=function(f){return c.yH(f)}),Aga(this,e,b));
   return e};
   g.k.yH=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Lm();a.Ua&&(Lm(),"h"!=eq(this)&&eq(this));var b=g.Ga("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Gf)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ga("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Gf)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ga("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Gf)}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.lc(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.K=0;for(var d in OMa)null==b[d]&&(a.K|=OMa[d]);jq(b,"currentTime");jq(b,"duration");un(c.volume)&&un(void 0)&&(c.volume*=NaN);return c};
   g.k.EJ=function(){Lm();"h"!=eq(this)&&eq(this);var a=Ega(this);return null!=a?new uq(a,this.C):null};
   g.k.PF=function(a){!a.i&&a.zs&&fq(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
   g.k.vN=function(a){a.NN&&(a.Tp()?fq(this,a,"overlay_viewable_end_of_session_impression"):fq(this,a,"overlay_unviewable_impression"),a.NN=!1)};
   g.k.AK=function(){};
   g.k.cG=function(){};
   g.k.Rw=function(a,b,c,d){a=Zp.prototype.Rw.call(this,a,b,c,d);this.D&&(b=this.J,null==a.D&&(a.D=new lda),b.i[a.Gf]=a.D,a.D.D=TMa);return a};
   g.k.Xu=function(a){a&&1==a.yk()&&this.D&&delete this.J.i[a.Gf];return Zp.prototype.Xu.call(this,a)};
   var wq=new Kp;wq.D="stopped";wq.i="stopped";wq.B="stopped";wq.J="stopped";wq.C="stopped";wq.u="stopped";Object.freeze(wq);var ZMa=an(193,zq,iq);g.Fa("Goog_AdSense_Lidar_sendVastEvent",ZMa,void 0);var $Ma=dn(194,function(a,b){b=void 0===b?{}:b;a=xq(Bm(vq),a,b);return yq(a)});
   g.Fa("Goog_AdSense_Lidar_getViewability",$Ma,void 0);var aNa=an(195,function(){return Fm()},void 0);
   g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",aNa,void 0);var bNa=dn(196,function(){return JSON.stringify(Fm())});
   g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",bNa,void 0);var mha=(new Date).getTime();var Bq="://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(" "),Hga=/\bocr\b/;var Iga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var wna={b4:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Y3:"LIVING_ROOM_APP_MODE_MAIN",X3:"LIVING_ROOM_APP_MODE_KIDS",Z3:"LIVING_ROOM_APP_MODE_MUSIC",a4:"LIVING_ROOM_APP_MODE_UNPLUGGED",W3:"LIVING_ROOM_APP_MODE_GAMING"};Eq.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)};
   Eq.prototype.get=function(a){return!!this.data_[a]};g.Qa(g.Fq,g.I);g.k=g.Fq.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Hq(this),b=Iq(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.i=Je(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.i=a&&b?a.call(this.u,this.B):this.u.setTimeout(bf(this.B),20)};
   g.k.stop=function(){if(this.isActive()){var a=Hq(this),b=Iq(this);a&&!b&&this.u.mozRequestAnimationFrame?Re(this.i):a&&b?b.call(this.u,this.i):this.u.clearTimeout(this.i)}this.i=null};
   g.k.isActive=function(){return null!=this.i};
   g.k.bP=function(){this.C&&this.i&&Re(this.i);this.i=null;this.J.call(this.D,g.Pa())};
   g.k.xa=function(){this.stop();g.Fq.le.xa.call(this)};g.Qa(g.M,g.I);g.k=g.M.prototype;g.k.Rt=0;g.k.xa=function(){g.M.le.xa.call(this);this.stop();delete this.i;delete this.u};
   g.k.start=function(a){this.stop();this.Rt=g.zh(this.B,void 0!==a?a:this.Vf)};
   g.k.stop=function(){this.isActive()&&g.D.clearTimeout(this.Rt);this.Rt=0};
   g.k.isActive=function(){return 0!=this.Rt};
   g.k.zH=function(){this.Rt=0;this.i&&this.i.call(this.u)};Mq.prototype[Symbol.iterator]=function(){return this};
   Mq.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.u.call(void 0,a.value,this.B++),done:a.done}};Vq.prototype.Lg=function(){return new Wq(this.u())};
   Vq.prototype[Symbol.iterator]=function(){return new Xq(this.u())};
   Vq.prototype.i=function(){return new Xq(this.u())};
   g.w(Wq,g.lo);Wq.prototype.sj=function(){var a=this.u.next();if(a.done)throw g.$q;return a.value};
   Wq.prototype[Symbol.iterator]=function(){return new Xq(this.u)};
   Wq.prototype.i=function(){return new Xq(this.u)};
   g.w(Xq,Vq);Xq.prototype.next=function(){return this.B.next()};g.k=g.ar.prototype;g.k.Ip=function(){cr(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.u[this.i[b]]);return a};
   g.k.Vr=function(){cr(this);return this.i.concat()};
   g.k.has=function(a){return br(this.u,a)};
   g.k.isEmpty=function(){return 0==this.size};
   g.k.clear=function(){this.u={};this.Io=this.size=this.i.length=0};
   g.k.remove=function(a){return this.delete(a)};
   g.k.delete=function(a){return br(this.u,a)?(delete this.u[a],--this.size,this.Io++,this.i.length>2*this.size&&cr(this),!0):!1};
   g.k.get=function(a,b){return br(this.u,a)?this.u[a]:b};
   g.k.set=function(a,b){br(this.u,a)||(this.size+=1,this.i.push(a),this.Io++);this.u[a]=b};
   g.k.forEach=function(a,b){for(var c=this.Vr(),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.ar(this)};
   g.k.keys=function(){return Zq(this.Lg(!0)).i()};
   g.k.values=function(){return Zq(this.Lg(!1)).i()};
   g.k.entries=function(){var a=this;return Kga(this.keys(),function(b){return[b,a.get(b)]})};
   g.k.Lg=function(a){cr(this);var b=0,c=this.Io,d=this,e=new g.lo;e.sj=function(){if(c!=d.Io)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw g.$q;var f=d.i[b++];return a?f:d.u[f]};
   return e};g.Qa(g.dr,g.Ue);g.k=g.dr.prototype;g.k.Ec=function(){return 1==this.i};
   g.k.aA=function(){this.gi("begin")};
   g.k.yw=function(){this.gi("end")};
   g.k.onFinish=function(){this.gi("finish")};
   g.k.gi=function(a){this.dispatchEvent(a)};var cNa=cf(function(){if(g.Qc)return g.Ic("10.0");var a=g.Gg("DIV"),b=g.Bg?"-webkit":Ul?"-moz":g.Qc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!AMa.test("div"))throw Error("");if("DIV"in CMa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!AMa.test(l))throw Error("");var f=b[l];if(null!=f){var h=l;if(f instanceof jf)f=kf(f);else if("style"==h.toLowerCase()){if(!g.La(f))throw Error("");
   f instanceof Bf||(f=Ff(f));f=Cf(f)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in BMa)if(f instanceof pf)f=qf(f).toString();else if(f instanceof g.tf)f=g.uf(f);else if("string"===typeof f)f=g.yf(f).Hh();else throw Error("");}f.Ck&&(f=f.Hh());h=h+'="'+gb(String(f))+'"';e+=" "+h}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===wMa.div?l+=">":(c=Waa(d),l+=">"+g.Mf(c).toString()+"</div>",c=c.Rr());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Nf(l,c);g.Sf(a,b);return""!=
   g.Vl(a.firstChild,"transition")});g.Qa(er,g.dr);g.k=er.prototype;g.k.play=function(){if(this.Ec())return!1;this.aA();this.gi("play");this.startTime=g.Pa();this.i=1;if(cNa())return g.Sl(this.u,this.K),this.C=g.zh(this.wW,void 0,this),!0;this.OB(!1);return!1};
   g.k.wW=function(){g.gm(this.u);Lga(this.u,this.S);g.Sl(this.u,this.D);this.C=g.zh((0,g.E)(this.OB,this,!1),1E3*this.J)};
   g.k.stop=function(){this.Ec()&&this.OB(!0)};
   g.k.OB=function(a){g.Sl(this.u,"transition","");g.D.clearTimeout(this.C);g.Sl(this.u,this.D);this.endTime=g.Pa();this.i=0;if(a)this.gi("stop");else this.onFinish();this.yw()};
   g.k.xa=function(){this.stop();er.le.xa.call(this)};
   g.k.pause=function(){};var gr=g.Ha;var Mga={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};jr("Element","attributes")||jr("Node","attributes");jr("Element","innerHTML")||jr("HTMLElement","innerHTML");jr("Node","nodeName");jr("Node","nodeType");jr("Node","parentNode");jr("Node","childNodes");jr("HTMLElement","style")||jr("Element","style");jr("HTMLStyleElement","sheet");var Qga=kr("getPropertyValue"),Rga=kr("setProperty");jr("Element","namespaceURI")||jr("Node","namespaceURI");var Pga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.or.prototype.clone=function(){return new g.or(this.i,this.K,this.B,this.D,this.C,this.J,this.u,this.S)};qr.prototype.clone=function(){return new qr(this.start,this.end)};var dNa=new WeakMap;(function(){if(aIa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ub))?a[1]:"0"}return aU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Ub))?a[0].replace(/_/g,"."):"10"):g.fu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ub))?a[1]:""):rMa||sMa||tMa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ub))?a[1].replace(/_/g,"."):""):""})();var Yga=function(){if(g.fj)return rr(/Firefox\/([0-9.]+)/);if(g.Qc||g.ax||g.VE)return Hc;if(g.ej){if(Bc()||Vb("Macintosh")){var a=rr(/CriOS\/([0-9.]+)/);if(a)return a}return rr(/Chrome\/([0-9.]+)/)}if(g.gj&&!Bc())return rr(/Version\/([0-9.]+)/);if(dF||$G){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ub))return a[1]+"."+a[2]}else if(g.WE)return(a=rr(/Android\s+([0-9.]+)/))?a:rr(/Version\/([0-9.]+)/);return""}();g.Qa(g.tr,g.I);g.k=g.tr.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.J=e+3;d.push(e);return e};
   g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.eg(a)}return!1};
   g.k.eg=function(a){var b=this.i[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.i[a+1]=g.Ha):(c&&g.Ab(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
   g.k.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.K)for(e=0;e<c.length;e++){var h=c[e];Zga(this.i[h+1],this.i[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.i[h+1].apply(this.i[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.eg(c)}}return 0!=e}return!1};
   g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.eg,this),delete this.u[a])}else this.i.length=0,this.u={}};
   g.k.xa=function(){g.tr.le.xa.call(this);this.clear();this.B.length=0};g.ur.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.Zh(b))};
   g.ur.prototype.get=function(a){try{var b=this.i.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
   g.ur.prototype.remove=function(a){this.i.remove(a)};g.Qa(vr,g.ur);vr.prototype.set=function(a,b){vr.le.set.call(this,a,xr(b))};
   vr.prototype.u=function(a){a=vr.le.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
   vr.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.Qa(yr,vr);yr.prototype.set=function(a,b,c){if(b=xr(b)){if(c){if(c<g.Pa()){yr.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Pa()}yr.le.set.call(this,a,b)};
   yr.prototype.u=function(a,b){var c=yr.le.u.call(this,a);if(c)if(!b&&g.zr(c))yr.prototype.remove.call(this,a);else return c};g.Qa(g.Ar,yr);g.Qa(Br,$ga);Br.prototype[Symbol.iterator]=function(){return Zq(this.Lg(!0)).i()};
   Br.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.Qa(Cr,Br);g.k=Cr.prototype;g.k.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}};
   g.k.set=function(a,b){try{this.i.setItem(a,b)}catch(c){if(0==this.i.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
   g.k.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
   g.k.remove=function(a){this.i.removeItem(a)};
   g.k.Lg=function(a){var b=0,c=this.i,d=new g.lo;d.sj=function(){if(b>=c.length)throw g.$q;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
   return d};
   g.k.clear=function(){this.i.clear()};
   g.k.key=function(a){return this.i.key(a)};g.Qa(Dr,Cr);g.Qa(Er,Cr);g.Qa(Gr,Br);var aha={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Fr=null;g.k=Gr.prototype;g.k.isAvailable=function(){return!!this.i};
   g.k.set=function(a,b){this.i.setAttribute(Hr(a),b);Ir(this)};
   g.k.get=function(a){a=this.i.getAttribute(Hr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
   g.k.remove=function(a){this.i.removeAttribute(Hr(a));Ir(this)};
   g.k.Lg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.lo;d.sj=function(){if(b>=c.length)throw g.$q;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
   return d};
   g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Ir(this)};g.Qa(Jr,Br);Jr.prototype.set=function(a,b){this.u.set(this.i+a,b)};
   Jr.prototype.get=function(a){return this.u.get(this.i+a)};
   Jr.prototype.remove=function(a){this.u.remove(this.i+a)};
   Jr.prototype.Lg=function(a){var b=this.u.Lg(!0),c=this,d=new g.lo;d.sj=function(){for(var e=b.sj();e.substr(0,c.i.length)!=c.i;)e=b.sj();return a?e.substr(c.i.length):c.u.get(e)};
   return d};Lr.prototype.getKey=function(){return this.i};
   Lr.prototype.getValue=function(){return this.u};
   Lr.prototype.clone=function(){return new Lr(this.i,this.u)};g.k=Mr.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)yb(a);else{a[0]=a.pop();a=0;b=this.i;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
   g.k.Ip=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
   g.k.Vr=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
   g.k.clone=function(){return new Mr(this)};
   g.k.isEmpty=function(){return 0===this.i.length};
   g.k.clear=function(){yb(this.i)};g.Qa(Or,Mr);Ia(Pr);Pr.prototype.i=0;/*
   
   Math.uuid.js (v1.4)
   http://www.broofa.com
   mailto:robert@broofa.com
   Copyright (c) 2010 Robert Kieffer
   Dual licensed under the MIT and GPL licenses.
   */
   var Qr="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");/*
   
   
    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 Tr="@@redux/INIT"+Sr(),eha="@@redux/REPLACE"+Sr();var Vr="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(Wr,Nd);Wr.prototype.getType=function(){return Rd(this,11,0)};
   g.w(Xr,Nd);Xr.prototype.getKey=function(){return Od(this,3)};
   var fha=[2,13,14];g.w(Zr,Yr);g.w($r,Zr);$r.prototype.pe=function(){var a=[];this.i.alternateChannel&&a.push(this.i.alternateChannel);this.i.alternateChannelList&&a.push.apply(a,g.v(this.i.alternateChannelList));this.i.oneofChannelEntity&&a.push(this.i.oneofChannelEntity);return[].concat(g.v(new Set(a)))};g.w(as,Zr);as.prototype.pe=function(){var a=[];this.i.entryCollection&&a.push(this.i.entryCollection);return[].concat(g.v(new Set(a)))};
   g.w(bs,Zr);bs.prototype.pe=function(){var a=[];this.i.parentPlaylist&&a.push(this.i.parentPlaylist);if(this.i.entries)for(var b=g.r(this.i.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,g.v((new cs(c.value)).pe()));return[].concat(g.v(new Set(a)))};
   g.w(cs,Yr);cs.prototype.pe=function(){var a=[];this.i.video&&a.push(this.i.video);return[].concat(g.v(new Set(a)))};g.w(ds,Zr);ds.prototype.pe=function(){var a=[];this.i.descriptionEntity&&a.push(this.i.descriptionEntity);this.i.creators&&a.push.apply(a,g.v(this.i.creators));this.i.theBiggestFan&&a.push(this.i.theBiggestFan);return[].concat(g.v(new Set(a)))};
   g.w(es,Zr);es.prototype.pe=function(){return[]};g.w(fs,Zr);fs.prototype.pe=function(){return[]};g.w(gs,Zr);gs.prototype.pe=function(){return[]};g.w(hs,Zr);hs.prototype.pe=function(){return[]};g.w(is,Zr);is.prototype.pe=function(){return[]};g.w(js,Zr);js.prototype.pe=function(){var a=[];this.i.fakeChildren&&a.push.apply(a,g.v(this.i.fakeChildren));return[].concat(g.v(new Set(a)))};g.w(ks,Zr);ks.prototype.pe=function(){var a=[];this.i.video&&a.push(this.i.video);this.i.playbackData&&a.push(this.i.playbackData);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.v(new Set(a)))};g.w(ls,Zr);ls.prototype.pe=function(){return[]};g.w(ms,Zr);ms.prototype.pe=function(){var a=[];this.i.channelOwner&&a.push(this.i.channelOwner);this.i.playbackPosition&&a.push(this.i.playbackPosition);this.i.downloadStatus&&a.push(this.i.downloadStatus);return[].concat(g.v(new Set(a)))};g.w(ns,Zr);ns.prototype.pe=function(){return[]};g.w(os,Zr);os.prototype.pe=function(){return[]};g.w(ps,Zr);ps.prototype.pe=function(){return[]};g.w(qs,Zr);qs.prototype.pe=function(){return[]};g.w(rs,Zr);rs.prototype.pe=function(){return[]};g.w(ts,Zr);ts.prototype.pe=function(){var a=[];this.i.transfer&&a.push(this.i.transfer);this.i.adsPlaybackData&&a.push.apply(a,g.v(this.i.adsPlaybackData));this.i.drmLicense&&a.push(this.i.drmLicense);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.v(new Set(a)))};g.w(us,Zr);us.prototype.pe=function(){var a=[];this.i.offlineVideoStreams&&a.push.apply(a,g.v(this.i.offlineVideoStreams));this.i.captionTrack&&a.push.apply(a,g.v(this.i.captionTrack));return[].concat(g.v(new Set(a)))};g.w(xs,Nd);var j2,k2,l2,m2=g.D.window,ys=(null===(j2=null===m2||void 0===m2?void 0:m2.yt)||void 0===j2?void 0:j2.config_)||(null===(k2=null===m2||void 0===m2?void 0:m2.ytcfg)||void 0===k2?void 0:k2.data_)||{},eNa=(null===(l2=null===m2||void 0===m2?void 0:m2.ytcfg)||void 0===l2?void 0:l2.obfuscatedData_)||[];new xs(eNa);g.Fa("yt.config_",ys,void 0);g.Fa("yt.configJspb_",eNa,void 0);var Fs=[];var lha=/^[\w.]*$/,kha={q:!0,search_query:!0},jha=String(Ks);var Vs=new function(){var a=window.document;this.i=window;this.u=a};
   g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return Ls(pt(a))},void 0);g.Pa();var qt="XMLHttpRequest"in g.D?function(){return new XMLHttpRequest}:null;var xt={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL",
   "X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},pha="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.v("client_dev_mss_url client_dev_regex_map client_dev_root_url expflag jsfeat jsmode client_rollout_override".split(" "))),Dt=!1,xra=zt;g.w(Ft,Sa);It.prototype.then=function(a,b,c){return 1===this.u&&a?(a=a.call(c,this.i),dh(a)?a:Kt(a)):2===this.u&&b?(a=b.call(c,this.i),dh(a)?a:Jt(a)):this};
   It.prototype.getValue=function(){return this.i};
   It.prototype.$goog_Thenable=!0;var Lt=!1;var du=dF||$G;g.w(ku,Sa);ku.prototype.name="BiscottiError";g.w(ju,Sa);ju.prototype.name="BiscottiMissingError";var mu={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},lu=null;var Jha={appSettingsCaptured:!0,foregroundHeartbeat:!0,foregroundHeartbeatScreenAssociated:!0,screenCreated:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},Cv={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,
   tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0,adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,
   tvhtml5ApiTest:!0};var fNa=0,ru=g.Bg?"webkit":Ul?"moz":g.Qc?"ms":g.VE?"o":"",gNa=g.Ga("ytDomDomGetNextId")||function(){return++fNa};
   g.Fa("ytDomDomGetNextId",gNa,void 0);var xha={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};vu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
   vu.prototype.dL=function(){return this.event?!1===this.event.returnValue:!1};
   vu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
   vu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var xu=g.D.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",xu,void 0);var yu=g.D.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",yu,void 0);var Jia=cf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
   window.addEventListener("test",null,b)}catch(c){}return a}),zu=cf(function(){var a=!1;
   try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
   window.addEventListener("test",null,b)}catch(c){}return a});var FE=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.Qa(Lu,g.I);Lu.prototype.Z=function(a){void 0===a.i&&wu(a);var b=a.i;void 0===a.u&&wu(a);this.i=new g.ag(b,a.u)};
   Lu.prototype.yn=function(){return this.i||new g.ag};
   Lu.prototype.Y=function(){if(this.i){var a=FE();if(0!=this.C){var b=this.J,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.i;this.B=(this.B+1)%4}};
   Lu.prototype.xa=function(){window.clearInterval(this.S);g.Bu(this.ma)};g.w(Qu,Mu);Qu.prototype.start=function(){var a=g.Ga("yt.scheduler.instance.start");a&&a()};
   Qu.prototype.pause=function(){var a=g.Ga("yt.scheduler.instance.pause");a&&a()};Ru();var Yu={};var cv={},Dha=0;var hNa,ev,gv;hNa=g.D.ytPubsubPubsubInstance||new g.tr;ev=g.D.ytPubsubPubsubSubscribedKeys||{};gv=g.D.ytPubsubPubsubTopicToKeys||{};g.fv=g.D.ytPubsubPubsubIsSynchronous||{};g.tr.prototype.subscribe=g.tr.prototype.subscribe;g.tr.prototype.unsubscribeByKey=g.tr.prototype.eg;g.tr.prototype.publish=g.tr.prototype.ea;g.tr.prototype.clear=g.tr.prototype.clear;g.Fa("ytPubsubPubsubInstance",hNa,void 0);g.Fa("ytPubsubPubsubTopicToKeys",gv,void 0);g.Fa("ytPubsubPubsubIsSynchronous",g.fv,void 0);
   g.Fa("ytPubsubPubsubSubscribedKeys",ev,void 0);var n2;n2=window;g.Q=n2.ytcsi&&n2.ytcsi.now?n2.ytcsi.now:n2.performance&&n2.performance.timing&&n2.performance.now&&n2.performance.timing.navigationStart?function(){return n2.performance.timing.navigationStart+n2.performance.now()}:function(){return(new Date).getTime()};var Gha=Ds("initial_gel_batch_timeout",2E3),Bv=Math.pow(2,16)-1,pv=void 0,vv=0,wv=0,rv=0,xv=!0,ov=g.D.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",ov,void 0);var mv=g.D.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",mv,void 0);var Dv=g.D.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",Dv,void 0);var Hv=g.Ga("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",Hv,void 0);g.k=g.Iv.prototype;g.k.get=function(a,b){Mv(a);Lv(a);a=void 0!==Hv[a]?Hv[a].toString():null;return null!=a?a:b?b:""};
   g.k.set=function(a,b){Mv(a);Lv(a);if(null==b)throw Error("ExpectedNotNull");Hv[a]=b.toString()};
   g.k.remove=function(a){Mv(a);Lv(a);delete Hv[a]};
   g.k.save=function(){var a=!0;g.Cs("web_secure_pref_cookie_killswitch")&&(a=!1);g.Nt(this.i,this.dump(),63072E3,this.u,a)};
   g.k.clear=function(){g.mc(Hv)};
   g.k.dump=function(){var a=[],b;for(b in Hv)a.push(b+"="+encodeURIComponent(String(Hv[b])));return a.join("&")};
   Ia(g.Iv);var Ov={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},Qv={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Tv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Zh(b))}catch(f){return}else e=escape(b);g.Nt(a,e,c,this.u)};
   Tv.prototype.get=function(a,b){var c=void 0,d=!this.i;if(!d)try{c=this.i.get(a)}catch(e){d=!0}if(d&&(c=g.Ot(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
   Tv.prototype.remove=function(a){this.i&&this.i.remove(a);g.Pt(a,"/",this.u)};var Uv=function(){var a;return function(){a||(a=new Tv("ytidb"));return a}}();var $v=[],Wv,aw=!1;g.w(g.dw,Error);var o2={},iw=(o2.AUTH_INVALID="No user identifier specified.",o2.EXPLICIT_ABORT="Transaction was explicitly aborted.",o2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",o2.MISSING_INDEX="Index not created.",o2.MISSING_OBJECT_STORE="Object store not created.",o2.DB_DELETED_BY_MISSING_OBJECT_STORE="Database is deleted because an expected object store was not created.",o2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",o2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",
   o2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",o2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",o2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",o2),p2={},Mha=(p2.AUTH_INVALID="ERROR",p2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",p2.EXPLICIT_ABORT="IGNORED",p2.IDB_NOT_SUPPORTED="ERROR",p2.MISSING_INDEX="WARNING",p2.MISSING_OBJECT_STORE="ERROR",p2.DB_DELETED_BY_MISSING_OBJECT_STORE=
   "WARNING",p2.QUOTA_EXCEEDED="WARNING",p2.QUOTA_MAYBE_EXCEEDED="WARNING",p2.UNKNOWN_ABORT="WARNING",p2.INCOMPATIBLE_DB_VERSION="WARNING",p2),q2={},Nha=(q2.AUTH_INVALID=!1,q2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,q2.EXPLICIT_ABORT=!1,q2.IDB_NOT_SUPPORTED=!1,q2.MISSING_INDEX=!1,q2.MISSING_OBJECT_STORE=!1,q2.DB_DELETED_BY_MISSING_OBJECT_STORE=!1,q2.QUOTA_EXCEEDED=!1,q2.QUOTA_MAYBE_EXCEEDED=!0,q2.UNKNOWN_ABORT=!0,q2.INCOMPATIBLE_DB_VERSION=!1,q2);g.w(jw,g.dw);g.w(kw,jw);g.w(lw,Error);
   var Oha=["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"];pw.all=function(a){return new pw(new ow(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Oq:0};f.Oq<a.length;f={Oq:f.Oq},++f.Oq)pw.resolve(a[f.Oq]).then(function(h){return function(l){d[h.Oq]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
   pw.resolve=function(a){return new pw(new ow(function(b,c){a instanceof pw?a.then(b,c):b(a)}))};
   pw.reject=function(a){return new pw(new ow(function(b,c){c(a)}))};
   pw.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Qha,e=null!==b&&void 0!==b?b:Pha;return new pw(new ow(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){rw(c,c,d,f,h)}),c.onRejected.push(function(){tw(c,c,e,f,h)})):"FULFILLED"===c.state.status?rw(c,c,d,f,h):"REJECTED"===c.state.status&&tw(c,c,e,f,h)}))};
   pw.prototype.catch=function(a){return this.then(void 0,a)};g.k=xw.prototype;g.k.advance=function(a){this.cursor.advance(a);return yw(this.request)};
   g.k.continue=function(a){this.cursor.continue(a);return yw(this.request)};
   g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return yw(this.request)};
   g.k.getKey=function(){return this.cursor.key};
   g.k.fz=function(){return this.cursor.primaryKey};g.k=zw.prototype;g.k.add=function(a,b,c){return Dw(this,[a],{mode:"readwrite",Hc:!0},function(d){return d.objectStore(a).add(b,c)})};
   g.k.clear=function(a){return Dw(this,[a],{mode:"readwrite",Hc:!0},function(b){return b.objectStore(a).clear()})};
   g.k.close=function(){var a;this.i.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
   g.k.count=function(a,b){return Dw(this,[a],{mode:"readonly",Hc:!0},function(c){return c.objectStore(a).count(b)})};
   g.k.delete=function(a,b){return Dw(this,[a],{mode:"readwrite",Hc:!0},function(c){return c.objectStore(a).delete(b)})};
   g.k.get=function(a,b){return Dw(this,[a],{mode:"readonly",Hc:!0},function(c){return c.objectStore(a).get(b)})};
   g.k.objectStoreNames=function(){return Array.from(this.i.objectStoreNames)};
   g.k.getName=function(){return this.i.name};
   g.k=Aw.prototype;g.k.add=function(a,b){return vw(this.i.add(a,b))};
   g.k.autoIncrement=function(){return this.i.autoIncrement};
   g.k.clear=function(){return vw(this.i.clear()).then(function(){})};
   g.k.count=function(a){return vw(this.i.count(a))};
   g.k.delete=function(a){return a instanceof IDBKeyRange?Vha(this,a):vw(this.i.delete(a))};
   g.k.get=function(a){return vw(this.i.get(a))};
   g.k.index=function(a){try{return new Ow(this.i.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new lw(a,this.i.name);throw b;}};
   g.k.getName=function(){return this.i.name};
   g.k.keyPath=function(){return this.i.keyPath};
   Gw.prototype.abort=function(){this.i.abort();this.u=!0;throw new jw("EXPLICIT_ABORT");};
   Gw.prototype.objectStore=function(a){a=this.i.objectStore(a);var b=this.B.get(a);b||(b=new Aw(a),this.B.set(a,b));return b};
   g.k=Ow.prototype;g.k.count=function(a){return vw(this.i.count(a))};
   g.k.delete=function(a){return Qw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
   g.k.get=function(a){return vw(this.i.get(a))};
   g.k.getKey=function(a){return vw(this.i.getKey(a))};
   g.k.keyPath=function(){return this.i.keyPath};
   g.k.unique=function(){return this.i.unique};
   g.k=Rw.prototype;g.k.advance=function(a){this.cursor.advance(a);return Nw(this.request)};
   g.k.continue=function(a){this.cursor.continue(a);return Nw(this.request)};
   g.k.delete=function(){return vw(this.cursor.delete()).then(function(){})};
   g.k.getKey=function(){return this.cursor.key};
   g.k.fz=function(){return this.cursor.primaryKey};
   g.k.getValue=function(){return this.cursor.value};
   g.k.update=function(a){return vw(this.cursor.update(a))};Uw.prototype.u=function(a,b,c){c=void 0===c?{}:c;return Sw(a,b,c)};
   Uw.prototype.delete=function(a){a=void 0===a?{}:a;return Tw(this.name,a)};
   Uw.prototype.open=function(){function a(){return g.H(c,function h(){var l,m,n,p=this,q,t,u,x,y;return g.B(h,function(z){switch(z.i){case 1:return n=null!==(l=Error().stack)&&void 0!==l?l:"",ua(z,2),g.A(z,p.u(p.name,p.options.version,e),4);case 4:q=z.u;a:{var G=p.options;for(var F=g.r(Object.keys(G.Gs)),C=F.next();!C.done;C=F.next()){C=C.value;var K=G.Gs[C],S=void 0===K.KW?Number.MAX_VALUE:K.KW;if(q.i.version>=K.Mm&&!(q.i.version>=S)&&!q.i.objectStoreNames.contains(C)){G=C;break a}}G=void 0}t=G;if(void 0===
   t){z.fb(5);break}if(p.B){z.fb(6);break}p.B=!0;return g.A(z,p.delete(),7);case 7:return bw(new jw("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:p.name,YS:t})),z.return(a());case 6:throw new kw(t);case 5:return z.return(q);case 2:u=wa(z);if(u instanceof DOMException?"VersionError"!==u.name:"DOMError"in self&&u instanceof DOMError?"VersionError"!==u.name:!(u instanceof Object&&"message"in u)||"An attempt was made to open a database using a lower version than the existing version."!==u.message){z.fb(8);
   break}return g.A(z,p.u(p.name,void 0,Object.assign(Object.assign({},e),{upgrade:void 0})),9);case 9:x=z.u;y=x.i.version;if(void 0!==p.options.version&&y>p.options.version+1)throw x.close(),p.C=!1,Vw(p,y);return z.return(x);case 8:throw b(),u instanceof Error&&!g.Cs("ytidb_async_stack_killswitch")&&(u.stack=u.stack+"\n"+n.substring(n.indexOf("\n")+1)),mw(u,p.name,"",null!==(m=p.options.version)&&void 0!==m?m:-1);}})})}
   function b(){c.i===d&&(c.i=void 0)}
   var c=this;if(!this.C)throw Vw(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()},
   closed:b,pX:b,upgrade:this.options.upgrade};return this.i=d=a()};var Xw=new Uw("YtIdbMeta",{Gs:{databases:{Mm:1}},upgrade:function(a,b){b(1)&&Bw(a,"databases",{keyPath:"actualName"})}});var cx,bx=new function(){}(new function(){});new Lk;g.k=jx.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.re){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.df.set(d,this.databaseToken).then(function(e){d.id=e;c.Ve.Te()&&mx(c,d)}).catch(function(e){mx(c,d);
   ox(c,e)})}else this.wm(a,b)};
   g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.databaseToken&&this.re){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.Ve.Te()){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
   b.onError=function(h,l){return g.H(d,function n(){var p=this,q;return g.B(n,function(t){if(1==t.i)return q=p,g.A(t,p.df.set(e,p.databaseToken).catch(function(u){ox(q,u)}),2);
   f(h,l);g.sa(t)})})}}this.wm(a,b,e.skipRetry)}else this.df.set(e,this.databaseToken).catch(function(h){d.wm(a,b,e.skipRetry);
   ox(d,h)})}else c=this.ob&&this.ob("nwl_skip_retry")&&c,this.wm(a,b,c)};
   g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.re){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.df.Kr(d.id,c.databaseToken):e=!0;c.Ve.Pn&&c.ob&&c.ob("vss_network_hint")&&c.Ve.Pn(!0);f(h,l)};
   this.wm(d.url,d.options);this.df.set(d,this.databaseToken).then(function(h){d.id=h;e&&c.df.Kr(d.id,c.databaseToken)}).catch(function(h){ox(c,h)})}else this.wm(a,b)};
   g.k.sx=function(){var a=this;if(!this.databaseToken)throw g.nw("throttleSend");this.i||(this.i=g.Pu(0,function(){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){if(1==f.i)return g.A(f,d.df.pK("NEW",d.databaseToken),2);if(3!=f.i)return e=f.u,e?g.A(f,mx(d,e),3):(d.jJ(),f.return());d.i&&(d.i=0,d.sx());g.sa(f)})})},this.aO))};
   g.k.jJ=function(){g.Tu(this.i);this.i=0};qx.prototype.toString=function(){return this.topic};var iNa=g.Ga("ytPubsub2Pubsub2Instance")||new g.tr;g.tr.prototype.subscribe=g.tr.prototype.subscribe;g.tr.prototype.unsubscribeByKey=g.tr.prototype.eg;g.tr.prototype.publish=g.tr.prototype.ea;g.tr.prototype.clear=g.tr.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",iNa,void 0);var tx=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",tx,void 0);var vx=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",vx,void 0);
   var ux=g.Ga("ytPubsub2Pubsub2IsAsync")||{};g.Fa("ytPubsub2Pubsub2IsAsync",ux,void 0);g.Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.w(yx,Uw);yx.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.bx?dia:cia)(a,b,Object.assign({},c))};
   yx.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.bx?hx:eia)(this.name,a)};var Ax;var jNa={},oia=zx("ServiceWorkerLogsDatabase",{Gs:(jNa.SWHealthLog={Mm:1},jNa),bx:!0,upgrade:function(a,b){b(1)&&Jw(Bw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
   version:1});var Jx;var tia=Ds("network_polling_interval",3E4);g.w(Mx,g.Ue);g.k=Mx.prototype;g.k.Te=function(){return this.i};
   g.k.Pn=function(a,b){a!==this.i&&((void 0===b?0:b)?this.Sk():this.i=a)};
   g.k.ZS=function(a){this.u=!0;if(void 0===a?0:a)this.J||Ox(this)};
   g.k.VD=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
   g.k.zR=function(){this.K=!0};
   g.k.Qa=function(a,b){return g.Ue.prototype.Qa.call(this,a,b)};
   g.k.Sk=function(a){var b=this;return this.C?this.C:this.C=new Promise(function(c){return g.H(b,function e(){var f,h,l,m=this;return g.B(e,function(n){switch(n.i){case 1:return f=window.AbortController?new window.AbortController:void 0,h=null===f||void 0===f?void 0:f.signal,l=!1,ua(n,2,3),f&&(m.D=g.Pu(0,function(){f.abort()},a||2E4)),g.A(n,fetch("/generate_204",{method:"HEAD",
   signal:h}),5);case 5:l=!0;case 3:xa(n);m.C=void 0;m.D&&g.Tu(m.D);l!==m.i&&(m.i=l,m.i&&m.u?m.dispatchEvent("ytnetworkstatus-online"):m.u&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);ya(n,0);break;case 2:wa(n),l=!1,n.fb(3)}})})})};
   Mx.prototype.sendNetworkCheckRequest=Mx.prototype.Sk;Mx.prototype.listen=Mx.prototype.Qa;Mx.prototype.enableErrorFlushing=Mx.prototype.zR;Mx.prototype.getWindowStatus=Mx.prototype.VD;Mx.prototype.monitorNetworkStatusChange=Mx.prototype.ZS;Mx.prototype.networkStatusHint=Mx.prototype.Pn;Mx.prototype.isNetworkAvailable=Mx.prototype.Te;Mx.getInstance=Nx;g.w(Qx,g.Ue);Qx.prototype.Te=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0};
   Qx.prototype.Pn=function(a,b){b=void 0===b?!1:b;var c=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.i);c&&c(a,b)};
   Qx.prototype.Sk=function(a){return g.H(this,function c(){var d=this,e;return g.B(c,function(f){return(e=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var Zx=0,ay=0,by,$x=g.D.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,databaseToken:void 0,potentialEsfErrorCounter:ay,isIdbSupported:!1};g.Fa("ytNetworklessLoggingInitializationOptions",$x,void 0);g.w(cy,jx);cy.prototype.writeThenSend=function(a,b){b||(b={});fw()||(this.re=!1);jx.prototype.writeThenSend.call(this,a,b)};
   cy.prototype.sendThenWrite=function(a,b,c){b||(b={});fw()||(this.re=!1);jx.prototype.sendThenWrite.call(this,a,b,c)};
   cy.prototype.sendAndWrite=function(a,b){b||(b={});fw()||(this.re=!1);jx.prototype.sendAndWrite.call(this,a,b)};g.ey.prototype.isReady=function(){!this.config_&&Sv()&&(this.config_=g.zv());return!!this.config_};var Bia=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Dia=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var Hia={};g.w(ky,g.I);ky.prototype.T=function(a,b,c,d,e){c=Hs((0,g.E)(c,d||this.Ra));c={target:a,name:b,callback:c};var f;e&&Jia()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.D.push(c);return c};
   ky.prototype.jc=function(a){for(var b=0;b<this.D.length;b++)if(this.D[b]==a){this.D.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
   ky.prototype.xa=function(){g.my(this);g.I.prototype.xa.call(this)};g.Qa(g.R,g.I);g.R.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Nd.subscribe(a,b,c)};
   g.R.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Nd.unsubscribe(a,b,c)};
   g.R.prototype.eg=function(a){return this.isDisposed()?!1:this.Nd.eg(a)};
   g.R.prototype.ea=function(a,b){return this.isDisposed()?!1:this.Nd.ea.apply(this.Nd,arguments)};g.w(g.qy,g.R);g.k=g.qy.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.ea("dragend",0,0,null));this.u&&(this.u=!1,this.ea("hoverend",0,0,null),sy(this),py(this))};
   g.k.QL=function(a){sy(this);ry(this,ty("move"),this.OL);ry(this,ty("out"),this.PL);ry(this,"touchstart",this.IG);this.i&&ry(this,ty("down"),this.RE);var b=g.Cu(a);a=Fu(a);this.u=!0;this.ea("hoverstart",a.x,a.y,b);this.ea("hovermove",a.x,a.y,b)};
   g.k.OL=function(a){var b=g.Cu(a);a=Fu(a);if(this.D){var c=this.D;this.D=null;if(Eu(c)==b&&bg(Fu(c),a))return}this.ea("hovermove",a.x,a.y,b)};
   g.k.PL=function(a){var b=Fu(a),c=Eu(a);try{if(c&&g.Mg(this.J,c)){this.D=a;this.ea("hovermove",b.x,b.y,c);return}}catch(d){}sy(this);py(this);this.u=!1;this.ea("hoverend",b.x,b.y,c)};
   g.k.bT=function(a){this.QL(a);this.RE(a)};
   g.k.RE=function(a){if("number"!==typeof a.button||0==a.button){sy(this);this.C.T(document,ty("move"),this.aT);this.C.T(document,ty("up"),this.fT);var b=g.Cu(a);if(g.Bg)ry(this,"dragstart",this.wR);else if(g.Gu(a),(g.BF||Ul)&&b)a:{for(var c=b;c;){if(Pg(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=Fu(a);this.ea("dragstart",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)}};
   g.k.wR=function(a){g.Gu(a)};
   g.k.aT=function(a){var b=g.Cu(a);b==document&&(b=null);a=Fu(a);this.ea("hovermove",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)};
   g.k.fT=function(a){sy(this);this.B=!1;var b=Du(a),c=g.Cu(a);a=Fu(a);b&&g.Mg(this.J,b)?(ry(this,ty("move"),this.OL),ry(this,ty("out"),this.PL),ry(this,ty("down"),this.RE),ry(this,"touchstart",this.IG),this.ea("dragend",a.x,a.y,c)):(py(this),this.u=!1,this.ea("dragend",a.x,a.y,c),this.ea("hoverend",a.x,a.y,c))};
   g.k.IG=function(a){var b=a.changedTouches[0];b&&(sy(this),ry(this,"touchmove",this.wX),ry(this,"touchend",this.iO),ry(this,"touchcancel",this.iO),this.K=b.identifier,a=g.Cu(a),this.u||(this.u=!0,this.ea("hoverstart",b.pageX,b.pageY,a)),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&(this.B=!0,this.ea("dragstart",b.pageX,b.pageY,a),this.ea("dragmove",b.pageX,b.pageY,a)))};
   g.k.wX=function(a){var b=Kia(this,a);b&&(this.i&&g.Gu(a),a=g.Cu(a),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&this.ea("dragmove",b.pageX,b.pageY,a))};
   g.k.iO=function(a){var b=Kia(this,a);if(b){sy(this);py(this);this.u=!1;var c=g.Cu(a);this.i&&(this.S||g.Gu(a),this.B=!1,this.ea("dragend",b.pageX,b.pageY,c));this.ea("hoverend",b.pageX,b.pageY,c)}};
   g.k.xa=function(){this.i&&(g.Bg&&this.J.removeAttribute("draggable"),this.J.style.touchAction="");sy(this);g.R.prototype.xa.call(this)};uy.prototype.clone=function(){var a=new uy,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ja(c)?g.pc(c):c}return a};var Oua=["embedded_player"],kNa=["share/get_web_player_share_panel"],lNa=["feedback"],mNa=["notification/modify_channel_preference"],Jya=["offline"],Fya=["offline/get_playback_data_entity"],QGa=["player"],nNa=["browse/edit_playlist"],oNa=["subscription/subscribe"],pNa=["subscription/unsubscribe"],SGa=["next","unplugged/watch_next"];var vy=Date.now().toString();var Sia,r2=g.D.ytLoggingDocDocumentNonce_;r2||(r2=yy(),g.Fa("ytLoggingDocDocumentNonce_",r2,void 0));Sia=r2;var ora={SO:0,jZ:1,yZ:2,R5:3,b1:4,Z$:5,M6:6,W8:7,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE"};var Nia=1;zy.prototype.getAsJson=function(){var a={};void 0!==this.i.trackingParams?a.trackingParams=this.i.trackingParams:(a.veType=this.i.veType,void 0!==this.i.veCounter&&(a.veCounter=this.i.veCounter),void 0!==this.i.elementIndex&&(a.elementIndex=this.i.elementIndex));void 0!==this.i.dataElement&&(a.dataElement=this.i.dataElement.getAsJson());void 0!==this.i.youtubeData&&(a.youtubeData=this.i.youtubeData);return a};
   zy.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
   zy.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Fa("yt_logging_screen.getRootVeType",Pia,void 0);g.Fa("yt_logging_screen.getCurrentCsn",g.Ey,void 0);g.Fa("yt_logging_screen.getCttAuthInfo",Fy,void 0);g.Fa("yt_logging_screen.setCurrentScreen",Tia,void 0);var bja=[{NE:function(a){return"Cannot read property '"+a.key+"'"},
   pA:{Error:[{Ag:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ag:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ag:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ag:/\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"]},{Ag:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ag:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ag:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{NE:function(a){return"Cannot call '"+a.key+"'"},
   pA:{TypeError:[{Ag:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ag:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ag:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ag:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ag:/\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"]},
   {Ag:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{NE:function(a){return a.key+" is not defined"},
   pA:{ReferenceError:[{Ag:/(.*) is not defined/,groups:["key"]},{Ag:/Can't find variable: (.*)/,groups:["key"]}]}}];var Xia={fm:[],Rm:[{callback:Uia,weight:500}]};var Gy;var Ny=new g.tr;var cja=new Set,$ia=0,eja=0,dja=0,aja=[],fja=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.w(Oy,px);var kja=new qx("screen-created",Oy),Sy=[],nra=jja,Ty=0;var qNa={iZ:3611,VX:27686,XX:85013,YX:23462,aY:42016,bY:62407,cY:26926,ZX:43781,eY:51236,fY:79148,gY:50160,hY:77504,BY:87907,CY:18630,EY:54445,FY:80935,KY:105675,LY:37521,MY:47786,PY:98349,QY:123695,UY:6827,VY:29434,gZ:7282,hZ:124448,qZ:32276,pZ:76278,rZ:93911,tZ:106531,uZ:27259,vZ:27262,wZ:27263,zZ:21759,AZ:27107,BZ:62936,CZ:49568,EZ:38408,FZ:80637,GZ:68727,HZ:68728,IZ:80353,JZ:80356,KZ:74610,LZ:45707,MZ:83962,NZ:83970,OZ:46713,PZ:89711,QZ:74612,RZ:93265,SZ:74611,TZ:131380,VZ:128979,WZ:128978,UZ:131391,
   XZ:105350,ZZ:134800,YZ:131392,b_:113533,c_:93252,d_:99357,f_:94521,g_:114252,h_:113532,i_:94522,e_:94583,j_:88E3,k_:93253,l_:93254,m_:94387,n_:94388,o_:93255,p_:97424,a_:72502,q_:110111,r_:76019,t_:117092,u_:117093,s_:89431,v_:110466,w_:77240,x_:60508,y_:137401,z_:137402,A_:137046,B_:73393,C_:113534,D_:92098,E_:131381,F_:84517,G_:83759,H_:80357,I_:86113,J_:72598,K_:72733,L_:107349,M_:124275,N_:118203,O_:133275,P_:133274,Q_:133272,R_:133273,S_:133276,U_:117431,T_:133797,V_:128572,W_:133405,X_:117429,
   Y_:117430,Z_:117432,b0:120080,d0:117259,e0:121692,f0:132972,g0:133051,h0:133658,j0:132971,k0:97615,l0:31402,n0:133624,o0:133623,q0:133622,m0:133621,r0:84774,s0:95117,t0:98930,u0:98931,v0:98932,w0:43347,x0:129889,y0:45474,z0:100352,A0:84758,B0:98443,C0:117985,D0:74613,E0:74614,F0:64502,G0:136032,H0:74615,I0:74616,J0:122224,K0:74617,L0:77820,M0:74618,N0:93278,O0:93274,P0:93275,Q0:93276,R0:22110,S0:29433,V0:133798,W0:132295,X0:120541,d1:82047,e1:113550,f1:75836,g1:75837,l1:42352,q1:84512,t1:76065,v1:75989,
   B1:16623,C1:32594,D1:27240,F1:32633,O1:74858,R1:3945,Q1:16989,S1:45520,T1:25488,U1:25492,V1:25494,X1:55760,Y1:14057,Z1:18451,b2:57204,d2:57203,e2:17897,f2:57205,g2:18198,h2:17898,j2:17909,l2:43980,m2:46220,w2:11721,A2:49954,F2:96369,G2:3854,N2:56251,O2:25624,U2:16906,V2:99999,X2:68172,Y2:27068,d3:47973,e3:72773,f3:26970,g3:26971,h3:96805,j3:17752,l3:73233,m3:109512,n3:22256,o3:14115,q3:22696,r3:89278,s3:89277,t3:109513,u3:43278,v3:43459,w3:43464,x3:89279,y3:43717,z3:55764,A3:22255,B3:89281,C3:40963,
   D3:43277,E3:43442,G3:91824,I3:120137,K3:96367,L3:36850,M3:72694,N3:37414,O3:36851,Q3:124863,P3:121343,R3:73491,S3:54473,T3:43375,U3:46674,i4:32473,n4:72901,o4:72906,p4:50947,q4:50612,r4:50613,s4:50942,t4:84938,u4:84943,v4:84939,w4:84941,x4:84944,y4:84940,z4:84942,A4:35585,B4:51926,C4:79983,D4:63238,E4:18921,F4:63241,G4:57893,H4:41182,I4:135732,J4:33424,K4:22207,L4:42993,M4:36229,N4:22206,O4:22205,P4:18993,Q4:19001,R4:18990,S4:18991,T4:18997,U4:18725,V4:19003,W4:36874,X4:44763,Y4:33427,Z4:67793,a5:22182,
   b5:37091,c5:34650,d5:50617,e5:47261,f5:22287,g5:25144,h5:97917,j5:62397,k5:125598,l5:137935,m5:36961,n5:108035,o5:27426,p5:27857,q5:27846,r5:27854,s5:69692,t5:61411,u5:39299,v5:38696,w5:62520,x5:36382,y5:108701,z5:50663,A5:36387,B5:14908,C5:37533,D5:105443,E5:61635,F5:62274,G5:133818,H5:65702,I5:65703,J5:65701,K5:76256,M5:37671,N5:49953,U5:36216,V5:28237,W5:39553,X5:29222,Y5:26107,Z5:38050,a6:26108,c6:120745,b6:26109,d6:26110,e6:66881,f6:28236,g6:14586,k6:57929,m6:74723,n6:44098,o6:44099,r6:23528,
   s6:61699,p6:134104,q6:134103,t6:59149,u6:101951,v6:97346,w6:118051,x6:95102,y6:64882,z6:119505,A6:63595,B6:63349,C6:95101,D6:75240,E6:27039,F6:68823,G6:21537,H6:83464,I6:75707,J6:83113,K6:101952,L6:101953,N6:79610,Q6:125755,R6:24402,S6:24400,T6:32925,U6:57173,W6:122502,X6:64423,Y6:64424,Z6:33986,a7:100828,b7:129089,c7:21409,s7:135155,t7:135156,u7:135157,v7:135158,w7:135159,x7:135160,y7:135161,z7:135162,A7:135163,B7:135164,C7:135165,D7:135166,p7:11070,q7:11074,r7:17880,E7:14001,G7:30709,H7:30707,I7:30711,
   J7:30710,K7:30708,F7:26984,L7:63648,M7:63649,P7:51879,U7:111059,W7:5754,X7:20445,c8:130975,b8:130976,d8:110386,f8:113746,g8:66557,m8:17310,n8:28631,p8:21589,q8:68012,r8:60480,s8:31571,w8:76980,A8:41577,B8:45469,G8:38669,H8:13768,I8:13777,L8:62985,M8:4724,N8:59369,O8:43927,P8:43928,T8:12924,V8:100355,Y8:56219,Z8:27669,a9:10337,X8:47896,b9:122629,c9:121258,d9:107598,e9:127991,f9:96639,g9:107536,h9:130169,i9:96661,j9:96658,k9:116646,l9:121122,m9:96660,n9:127738,o9:127083,p9:104443,q9:96659,r9:106442,
   t9:134840,w9:63667,x9:63668,y9:63669,z9:130686,E9:78314,H9:55761,I9:127098,J9:134841,N9:96368,O9:67374,P9:48992,S9:49956,W9:31961,X9:26388,c$:23811,d$:5E4,e$:126250,g$:96370,h$:47355,i$:47356,j$:37935,k$:45521,l$:21760,m$:83769,n$:49977,o$:49974,p$:93497,q$:93498,r$:34325,t$:115803,u$:123707,v$:100081,w$:35309,x$:68314,y$:25602,z$:100339,B$:59018,C$:18248,D$:50625,E$:9729,F$:37168,G$:37169,H$:21667,I$:16749,J$:18635,K$:39305,L$:18046,N$:53969,O$:8213,Q$:93926,T$:102852,U$:110099,V$:22678,W$:69076,
   X$:137575,aaa:100856,caa:17736,daa:3832,faa:55759,haa:64031,iaa:93044,maa:93045,oaa:34388,paa:17657,qaa:17655,raa:39579,saa:39578,taa:77448,uaa:8196,vaa:11357,waa:69877,xaa:8197,zaa:82039};Hz.prototype.clear=function(){this.u.clear();this.i.clear();this.B.clear()};
   Ia(Hz);var Jz;g.Iz=cf(function(){var a=new Dr;return a.isAvailable()?new g.Ar(a):null});
   Jz=cf(function(){var a=new Er;return a.isAvailable()?new g.Ar(a):null});var nja=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,oja=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,rja={};g.w(Tz,g.I);var zja=!1;g.w(Zz,g.I);Zz.prototype.fE=function(){var a=this.C().RD("SLOT_TYPE_PLAYER_BYTES",1),b=Vz(this.i.get(),1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.rb&&d.Vb instanceof Yz?d.Vb.Ho:void 0;e&&e===b&&(c&&T("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
   Zz.prototype.hh=function(a,b,c,d,e,f){var h=this,l=Vz(this.i.get(),1);l.ip?this.Ga.get().wp():(Uz(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return xja(h.u.get(),d,e,a,b,f,l)}),bMa(this.CC))};
   Zz.prototype.wj=function(){};var s2={},kA=(s2.AD_MARKER="ytp-ad-progress",s2.CHAPTER_MARKER="ytp-chapter-marker",s2.TIME_MARKER="ytp-time-marker",s2);var SHa=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/)"),Cja=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
   THa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Lja=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
   Jja=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)|$))"),Eja=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/)"),
   UHa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Hja=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)"),Dja=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/.*$)"),
   Fja=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)"),
   ona=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
   rNa=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://stadia\\.google\\.com|https://one\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.lA.prototype.getId=function(){return this.id};
   g.lA.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Pja(this.start)+", "+Pja(this.end)+"]"};
   g.lA.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 Oja=1;g.lA.prototype.getId=g.lA.prototype.getId;g.w(pA,g.lA);pA.prototype.deactivate=function(){this.B=!0};
   pA.prototype.zv=function(){return this.end-this.start};var t2;var sNa=g.Ub,tNa=sNa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!tNa||2>tNa.length)t2=void 0;else{var u2=sNa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);t2=u2&&6==u2.length?Number(u2[5].replace("_",".")):0}var aH=t2,PN=0<=aH;PN&&0<=g.Ub.search("Safari")&&g.Ub.search("Version");g.w(uA,px);g.w(vA,px);var Yja=new qx("aft-recorded",uA),YA=new qx("timing-sent",vA);var v2=window,yA=v2.performance||v2.mozPerformance||v2.msPerformance||v2.webkitPerformance||new Tja;var Xja=!1,w2={'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"},
   kka=(0,g.E)(yA.clearResourceTimings||yA.webkitClearResourceTimings||yA.mozClearResourceTimings||yA.msClearResourceTimings||yA.oClearResourceTimings||g.Ha,yA);var KA=g.D.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",KA,void 0);IA.prototype.tick=function(a,b,c,d){LA(this,"tick_"+a+"_"+b)||g.Zv("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
   IA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");LA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Zv("latencyActionInfo",a,{cttAuthInfo:c}))};
   IA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");LA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Zv("latencyActionSpan",a,{cttAuthInfo:c}))};var x2={},ika=(x2.auto_search="LATENCY_ACTION_AUTO_SEARCH",x2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",x2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",x2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",x2.app_startup="LATENCY_ACTION_APP_STARTUP",x2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",x2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",x2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",x2.browse="LATENCY_ACTION_BROWSE",x2.channels="LATENCY_ACTION_CHANNELS",
   x2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",x2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",x2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",x2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",x2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",x2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",x2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",x2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",
   x2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",x2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",x2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",x2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",x2.chips="LATENCY_ACTION_CHIPS",x2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",x2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",x2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",x2.embed=
   "LATENCY_ACTION_EMBED",x2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",x2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",x2.explore="LATENCY_ACTION_EXPLORE",x2.home="LATENCY_ACTION_HOME",x2.library="LATENCY_ACTION_LIBRARY",x2.live="LATENCY_ACTION_LIVE",x2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",x2.onboarding="LATENCY_ACTION_ONBOARDING",x2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",x2.parent_tools_collection=
   "LATENCY_ACTION_PARENT_TOOLS_COLLECTION",x2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",x2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",x2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",x2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",x2.prebuffer="LATENCY_ACTION_PREBUFFER",x2.prefetch="LATENCY_ACTION_PREFETCH",x2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",x2.profile_switcher="LATENCY_ACTION_LOGIN",x2.reel_watch="LATENCY_ACTION_REEL_WATCH",x2.results="LATENCY_ACTION_RESULTS",
   x2.search_ui="LATENCY_ACTION_SEARCH_UI",x2.search_suggest="LATENCY_ACTION_SUGGEST",x2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",x2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",x2.seek="LATENCY_ACTION_PLAYER_SEEK",x2.settings="LATENCY_ACTION_SETTINGS",x2.tenx="LATENCY_ACTION_TENX",x2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",x2.watch="LATENCY_ACTION_WATCH",x2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",x2["watch,watch7"]="LATENCY_ACTION_WATCH",x2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",
   x2["watch,watch7ad"]="LATENCY_ACTION_WATCH",x2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",x2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",x2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",x2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",x2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",x2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",x2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",x2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",x2["video.live_settings"]=
   "LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",x2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",x2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",x2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",x2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",x2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",x2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",x2),y2={},cka=(y2.ad_allowed="adTypesAllowed",y2.yt_abt=
   "adBreakType",y2.ad_cpn="adClientPlaybackNonce",y2.ad_docid="adVideoId",y2.yt_ad_an="adNetworks",y2.ad_at="adType",y2.aida="appInstallDataAgeMs",y2.browse_id="browseId",y2.p="httpProtocol",y2.t="transportProtocol",y2.cs="commandSource",y2.cpn="clientPlaybackNonce",y2.ccs="creatorInfo.creatorCanaryState",y2.ctop="creatorInfo.topEntityType",y2.csn="clientScreenNonce",y2.docid="videoId",y2.GetHome_rid="requestIds",y2.GetSearch_rid="requestIds",y2.GetPlayer_rid="requestIds",y2.GetWatchNext_rid="requestIds",
   y2.GetBrowse_rid="requestIds",y2.GetLibrary_rid="requestIds",y2.is_continuation="isContinuation",y2.is_nav="isNavigation",y2.b_p="kabukiInfo.browseParams",y2.is_prefetch="kabukiInfo.isPrefetch",y2.is_secondary_nav="kabukiInfo.isSecondaryNav",y2.nav_type="kabukiInfo.navigationType",y2.prev_browse_id="kabukiInfo.prevBrowseId",y2.query_source="kabukiInfo.querySource",y2.voz_type="kabukiInfo.vozType",y2.yt_lt="loadType",y2.mver="creatorInfo.measurementVersion",y2.yt_ad="isMonetized",y2.nr="webInfo.navigationReason",
   y2.nrsu="navigationRequestedSameUrl",y2.ncnp="webInfo.nonPreloadedNodeCount",y2.pnt="performanceNavigationTiming",y2.prt="playbackRequiresTap",y2.plt="playerInfo.playbackType",y2.pis="playerInfo.playerInitializedState",y2.paused="playerInfo.isPausedOnLoad",y2.yt_pt="playerType",y2.fmt="playerInfo.itag",y2.yt_pl="watchInfo.isPlaylist",y2.yt_pre="playerInfo.preloadType",y2.yt_ad_pr="prerollAllowed",y2.pa="previousAction",y2.yt_red="isRedSubscriber",y2.rce="mwebInfo.responseContentEncoding",y2.rc="resourceInfo.resourceCache",
   y2.scrh="screenHeight",y2.scrw="screenWidth",y2.st="serverTimeMs",y2.ssdm="shellStartupDurationMs",y2.br_trs="tvInfo.bedrockTriggerState",y2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",y2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",y2.label="tvInfo.label",y2.is_mdx="tvInfo.isMdx",y2.preloaded="tvInfo.isPreloaded",y2.aac_type="tvInfo.authAccessCredentialType",y2.upg_player_vis="playerInfo.visibilityState",y2.query="unpluggedInfo.query",y2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",
   y2.yt_vst="videoStreamType",y2.vph="viewportHeight",y2.vpw="viewportWidth",y2.yt_vis="isVisible",y2.rcl="mwebInfo.responseContentLength",y2.GetSettings_rid="requestIds",y2.GetTrending_rid="requestIds",y2.GetMusicSearchSuggestions_rid="requestIds",y2.REQUEST_ID="requestIds",y2),dka="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(" "),
   z2={},eka=(z2.ccs="CANARY_STATE_",z2.mver="MEASUREMENT_VERSION_",z2.pis="PLAYER_INITIALIZED_STATE_",z2.yt_pt="LATENCY_PLAYER_",z2.pa="LATENCY_ACTION_",z2.ctop="TOP_ENTITY_TYPE_",z2.yt_vst="VIDEO_STREAM_TYPE_",z2),fka="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 A2=window;A2.ytcsi&&(A2.ytcsi.info=g.SA,A2.ytcsi.tick=TA);var Roa={h1:1,E1:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var $T=16/9,uNa=[.25,.5,.75,1,1.25,1.5,1.75,2],vNa=uNa.concat([3,4,5,6,7,8,9,10,15]);var wNa=["h","H"],xNa=["9","("],yNa=["9h","(h"],zNa=["8","*"],ANa=["a","A"],BNa=["o","O"],CNa=["m","M"],DNa=["mac3","MAC3"],ENa=["meac3","MEAC3"],B2={},Mma=(B2.h=wNa,B2.H=wNa,B2["9"]=xNa,B2["("]=xNa,B2["9h"]=yNa,B2["(h"]=yNa,B2["8"]=zNa,B2["*"]=zNa,B2.a=ANa,B2.A=ANa,B2.o=BNa,B2.O=BNa,B2.m=CNa,B2.M=CNa,B2.mac3=DNa,B2.MAC3=DNa,B2.meac3=ENa,B2.MEAC3=ENa,B2);bB.prototype.getLanguageInfo=function(){return this.Ac};
   bB.prototype.toString=function(){return this.Ac.name};
   bB.prototype.getLanguageInfo=bB.prototype.getLanguageInfo;var C2,hB;C2={};g.eB=(C2.auto=0,C2.tiny=144,C2.light=144,C2.small=240,C2.medium=360,C2.large=480,C2.hd720=720,C2.hd1080=1080,C2.hd1440=1440,C2.hd2160=2160,C2.hd2880=2880,C2.highres=4320,C2);hB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};cB.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.i};
   cB.prototype.compose=function(a){if(a.B&&gB(a))return nG;if(a.B||gB(this))return a;if(this.B||gB(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.u&&c===this.i?this:new cB(b,c,!1,c===this.i?this.reason:a.reason)};
   cB.prototype.C=function(a){return a.video?qka(this,a.video.quality):!1};
   var FNa=fB("auto","hd1080",!1,"l"),iEa=fB("auto","large",!1,"l"),nG=fB("auto","auto",!1,"p");fB("small","auto",!1,"p");jB.prototype.qn=function(a){a=a||nG;for(var b=g.Ko(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};
   jB.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var tB={Xi:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
   Gt:function(a){a.reverse()},
   vC:function(a,b){a.splice(0,b)}};g.uB.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
   g.uB.prototype.get=function(a){vB(this);return this.i[a]||null};
   g.uB.prototype.Xd=function(){this.url||(this.url=Fka(this));return this.url};
   g.uB.prototype.clone=function(){var a=new g.uB(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.i=g.pc(this.i);a.url=this.url;return a};g.k=BB.prototype;g.k.PB=function(a){this.segments.push(a)};
   g.k.getDuration=function(a){return(a=this.ej(a))?a.duration:0};
   g.k.getDurationTicks=function(a){return this.getDuration(a)};
   g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ma:-1};
   g.k.getIngestionTime=function(a){return(a=this.ej(a))?a.ingestionTime:NaN};
   g.k.getStitchedVideoInfo=function(a){return(a=this.ej(a))?a.i:null};
   g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
   g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
   g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
   g.k.getNumberOfSegments=function(){return this.segments.length};
   g.k.getOffset=function(){return 0};
   g.k.getSegmentNumberForTime=function(a){return(a=this.Or(a))?a.Ma:-1};
   g.k.getSegmentURL=function(a){return(a=this.ej(a))?a.sourceURL:""};
   g.k.getStartTime=function(a){return(a=this.ej(a))?a.startTime:0};
   g.k.getStartTimeInPeriod=function(a){return(a=this.ej(a))?a.u:0};
   g.k.isLoaded=function(){return 0<this.segments.length};
   g.k.ej=function(a){a=g.Kb(this.segments,new AB(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
   return 0<=a?this.segments[a]:null};
   g.k.Or=function(a){a=g.Kb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
   return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
   g.k.append=function(a){if(a.length)if(a=g.Db(a),this.segments.length){var b=this.segments.length?g.pb(this.segments).endTime:0,c=a[0].Ma-this.getLastSegmentNumber();1<c&&yb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
   g.k.getLocalMaxByterate=function(){return 0};var PQ=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}();FB.prototype.skip=function(a){this.i+=a};
   FB.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var D2={},GNa=(D2.predictStart="predictStart",D2.start="start",D2["continue"]="continue",D2.stop="stop",D2),Jka={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};OB.prototype.Qv=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"])};
   OB.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 Ska=!1;oC.prototype.set=function(a,b){this.jg.get(a);this.i[a]=b;this.url=""};
   oC.prototype.get=function(a){return this.i[a]||this.jg.get(a)};
   oC.prototype.Xd=function(){this.url||(this.url=ala(this));return this.url};fla.prototype.lj=function(a,b){a.jg===this.i&&(this.i=pC(a,b));a.jg===this.B&&(this.B=pC(a,b))};uC.prototype.Se=function(){return!!this.i&&this.index.isLoaded()};
   uC.prototype.Tt=function(){return!1};
   uC.prototype.BH=function(a){return[a]};
   uC.prototype.Vw=function(a){return[a]};wC.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};AC.prototype.isEncrypted=function(){return this.i.info.isEncrypted()};
   AC.prototype.isVideo=function(){return!!this.i.info.video};HC.prototype.Qr=function(){return this.B?this.B.Xd():""};
   HC.prototype.dj=function(){return BC(this.i[0])};
   HC.prototype.lj=function(a,b){this.u.lj(a,b);if(this.B){this.B=pC(a,b);b=g.r(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.B.set(c.value,null)}this.requestId=a.get("req_id")};g.w(LC,uC);g.k=LC.prototype;g.k.Pg=function(){return!1};
   g.k.Wv=function(){return!1};
   g.k.Tt=function(){return!this.Z};
   g.k.Fp=function(){var a=new AC(1,this,this.initRange,"getMetadataRequestInfo");return new HC([a],this.Z)};
   g.k.Yq=function(){return null};
   g.k.St=function(a){this.Hm(a);return this.Im(a.Rd?a.Ma+1:a.Ma,!1)};
   g.k.Pl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.lc()||this.info.lc();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.Im(a,!0)};
   g.k.bE=function(a){this.i=new Uint8Array(cD(a).buffer)};
   g.k.Hm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
   g.k.update=function(a,b,c){this.index.append(a);Hka(this.index,c);this.K=b};
   g.k.Se=function(){return this.Tt()?!0:uC.prototype.Se.call(this)};
   g.k.Im=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.Nb?this.info.Nb*e:1E3;b=!b;var h=f;f=a===this.index.getLastSegmentNumber()&&!this.K&&0<f;a=new AC(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,h,f,b);return new HC([a],c)};
   g.k.OD=function(){return this.Tt()?0:this.initRange.length};
   g.k.CF=function(){return!1};OC.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new OC,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+MC(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+MC(a,"startNumber")||0;d.C=h;var m=h,n=+MC(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(sla(MC(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.K=MC(a,"media"));a=c?l-c.Ma:1;d.J=0<a?0:-a+1;a=g.r(e);for(e=a.next();!e.done;e=a.next()){e=
   e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,q=+e.getAttribute("r")||0,t=0;t<=q;t++)if(c&&l<=c.Ma)l++;else{var u=new qla(l,b,n,m+p,h);d.i.push(u);var x=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);x=-u/f+x;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,G=e.getAttribute("yt:cuepointIdentifier")||"";var F=e.getAttribute("yt:cuepointEvent")||"";F=GNa[F]||"unknown";u=new dA(x,y,z,G,
   F,u)}else u=null;u&&d.B.push(u);l++;b+=n;h+=n;m+=n+p}}d.i.length&&(d.u=g.pb(d.i))}this.J=d.J;this.u=d.u||this.u;Eb(this.i,d.i);Eb(this.B,d.B);this.D=d.D;this.K=d.K;-1===this.C&&(this.C=d.getStreamTimeOffset())};
   OC.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(PC,BB);g.k=PC.prototype;g.k.getFirstSegmentNumber=function(){return this.gk?this.segments.length?this.Or(this.getMinSeekableTime()).Ma:-1:BB.prototype.getFirstSegmentNumber.call(this)};
   g.k.getMinSeekableTime=function(){if(this.bf)return 0;if(!this.gk)return BB.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.pb(this.segments).endTime-this.Il,0);return 0<this.xe&&this.Or(a).Ma<this.xe?this.ej(this.xe).startTime:a};
   g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return BB.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.gk||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new AB(a,Math.max(0,b.startTime-(b.Ma-a)*this.Fg),this.Fg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.u&&a.pending&&3===this.u?this.bf?Math.min(this.Il,a.startTime):a.startTime:this.bf?Math.min(this.Il,a.endTime):
   a.endTime};
   g.k.getNumberOfSegments=function(){return this.gk?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:BB.prototype.getNumberOfSegments.call(this)};
   g.k.getLastSegmentNumber=function(){var a=Math.min(this.wg,Math.max(BB.prototype.getLastSegmentNumber.call(this),this.Ut)),b=1E3*this.Il;b=0<this.i&&this.i<b;this.bf&&0<this.Il&&0<this.Ut&&!b&&(b=this.Or(this.Il))&&(a=Math.min(b.Ma-1,a));return a};
   g.k.Wr=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
   g.k.PB=function(a){var b=QC(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.ew&&0===a.Ma%(300/this.Fg)){var c=this.segments[0].Ma,d=Math.floor(this.ew/this.Fg);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
   g.k.Or=function(a){if(!this.gk)return BB.prototype.Or.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ma-Math.ceil((this.segments[0].startTime-a)/this.Fg));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Fg+1);else{b=Lb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
   if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.ej(b)};
   g.k.ej=function(a){if(!this.gk)return BB.prototype.ej.call(this,a);if(!this.segments.length)return null;var b=QC(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Fg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new AB(a,d,b,0,"sq/"+a,void 0,void 0,
   !0)};g.w(SC,LC);g.k=SC.prototype;g.k.Wv=function(){return!0};
   g.k.Se=function(){return!0};
   g.k.Hm=function(a){return!a.B};
   g.k.Fp=function(){};
   g.k.Pl=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?LC.prototype.Pl.call(this,a,b):(a=new AC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Li,void 0,this.Li*this.info.Nb),new HC([a],""))};
   g.k.Im=function(a,b){var c=void 0===c?!1:c;if(RC(this.index,a))return LC.prototype.Im.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Li*this.info.Nb;b=!b;c=new AC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.K&&0<e,b);return new HC([c],0<=a?"sq/"+a:"")};g.w(TC,uC);g.k=TC.prototype;g.k.Pg=function(){return!1};
   g.k.Wv=function(){return!1};
   g.k.Fp=function(){var a=new AC(1,this,void 0,"otfInit");return new HC([a],this.K)};
   g.k.Yq=function(){return null};
   g.k.St=function(a){this.Hm(a);return Ala(this,a.Ma+(a.Rd?1:0),!1)};
   g.k.Pl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Ala(this,a,!0)};
   g.k.bE=function(a){1===a.info.type&&(this.i||(this.i=Fla(a.i)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&Bla(this,a.u))};
   g.k.Hm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
   g.k.OD=function(){return 0};
   g.k.CF=function(){return!1};g.k=UC.prototype;g.k.getOffset=function(a){return this.offsets[a]};
   g.k.getStartTime=function(a){return this.i[a]/this.B};
   g.k.getStartTimeInPeriod=function(){return 0};
   g.k.getIngestionTime=function(){return NaN};
   g.k.getStitchedVideoInfo=function(){return null};
   g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
   g.k.getDurationTicks=function(a){return a+1<this.count||this.u?this.i[a+1]-this.i[a]:-1};
   g.k.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
   g.k.getFirstSegmentNumber=function(){return 0};
   g.k.getLastSegmentNumber=function(){return this.count-1};
   g.k.getMaxKnownEndTime=function(){return this.u?this.i[this.count]/this.B:NaN};
   g.k.getMinSeekableTime=function(){return 0};
   g.k.getNumberOfSegments=function(){return this.count};
   g.k.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
   g.k.getSegmentURL=function(){return""};
   g.k.getSegmentNumberForTime=function(a){a=g.Kb(this.i.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
   g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
   g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c};
   g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.i;this.i=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.i[a]=c[a]};
   g.k.setTimebase=function(a){this.B=a};
   g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.i[0]=b;this.u=!0};
   g.k.addSegmentBySize=function(a,b){this.count++;VC(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.i[this.count]=this.i[this.count-1]+b};
   g.k.addSegmentByStart=function(a,b){VC(this);this.offsets[this.count]=a;this.i[this.count]=b;this.count++};
   g.k.cap=function(a,b){VC(this);this.u=!0;this.i[this.count]=b;this.offsets[this.count]=a};WC.prototype.append=function(a){if(Cla(this,a)){var b=this.i[this.i.length-1];this.i[this.i.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);YC(this)}else this.i.push(a);this.totalLength+=a.length};
   WC.prototype.split=function(a){for(var b=new WC,c=new WC,d=g.r(this.i),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{oz:b,Eq:c}};
   WC.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.i[this.u].length};
   WC.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&YC(this);this.B+this.i[this.u].length<=a&&this.u<this.i.length;)this.B+=this.i[this.u].length,this.u+=1;this.C=void 0}};bD.prototype.verify=function(a){if(this.info.u!==this.i.totalLength)return a.slength=this.info.u.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=cD(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.Cb)return 1836019558===b||1936286840===
   b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.i.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=cD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Cb)return 524531317===c||440786851===c}return!0};g.w(fD,uC);g.k=fD.prototype;g.k.Fp=function(a){var b=new AC(1,this,this.initRange,"initInfo"),c=new AC(2,this,this.indexRange,"indexInfo");b=[b,c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&(a=yC(c,a),b.push(new AC(4,this,a,"tbdRange"))));return new HC(b)};
   g.k.bE=function(a){if(1===a.info.type){if(this.i)return;this.i=Fla(a.i)}else if(2===a.info.type){if(this.K||0<=this.index.getLastSegmentNumber())return;if(g.dD(this.info)){var b=this.index,c=cD(a);a=a.info.range.start;var d=g.QB(c,0,1936286840);c=Qka(d);b.setTimebase(c.AG);b.setFirstSegmentStart(c.IR+a+d.size,c.yR);a=c.vG.length;for(d=0;d<a;d++)b.addSegmentBySize(c.FW[d],c.vG[d])}else this.K=cD(a)}if(this.info.ue()&&this.i&&this.K){a=new DataView(this.i.buffer);b=this.index;d=this.K;c=this.indexRange.end;
   var e=new $B(a);a=e;e=a.i;var f={eO:1E6,fO:1E9,duration:0,FN:0,ZF:0};if(dC(a,408125543))if(f.FN=eC(a,!0),f.ZF=a.start+a.i,dC(a,357149030)){for(var h=cC(a);!aC(h);){var l=eC(h,!1);2807729===l?f.eO=hC(h):2807730===l?f.fO=hC(h):17545===l?f.duration=jC(h):iC(h)}a.i=e;a=f}else a.i=e,a=null;else a.i=e,a=null;if(null!==a){b.setTimebase(a.fO/a.eO);e=new $B(d);d=e;h=a.ZF;e=d.i;f=[];if(dC(d,475249515)){for(l=cC(d);dC(l,187);){var m=cC(l);if(dC(m,179)){var n=hC(m);if(dC(m,183)){m=cC(m);for(var p=h;dC(m,241);)p=
   hC(m)+h;f.push({vy:p,qR:n})}}}if(0<f.length&&c===f[0].vy)for(c=0;c<f.length;c++)f[c].vy+=1;d.i=e;c=f}else d.i=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.vy,d.qR);b.cap(a.FN+a.ZF,a.duration)}}this.K=null}};
   g.k.BH=function(a){for(var b=this.Vw(a.info),c=a.info.range.start+a.info.Cb,d=a.B,e=[],f=0;f<b.length;f++){var h=b[f].u;h=a.i.split(b[f].range.start+b[f].Cb-c).Eq.split(h).oz;e.push(new bD(b[f],h,d));d=!1}return e};
   g.k.Vw=function(a){for(var b=a.range.start+a.Cb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return gD(this,c,b,a.u).i};
   g.k.Hm=function(a){return this.Se()?!0:a.range.end+1<this.info.contentLength};
   g.k.Yq=function(a,b){this.Hm(a);if(!this.Se())return b=yC(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new wC(b.start,this.info.contentLength-1)),a=[new AC(4,a.i,b,"getNextRequestInfoByLength")],new HC(a);4===a.type&&(a=this.Vw(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Cb+a.u;3===a.type&&(c=a.Ma,d===a.range.end+1&&(c+=1));return gD(this,c,d,b)};
   g.k.St=function(){return null};
   g.k.Pl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return gD(this,a,this.index.getOffset(a),0)};
   g.k.Pg=function(){return!0};
   g.k.Wv=function(){return!1};
   g.k.OD=function(){return this.indexRange.length+this.initRange.length};
   g.k.CF=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var E2={},pB=(E2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},E2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},E2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},E2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},E2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},E2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},E2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},E2.DECODETOTEXTURE={name:"decode-to-texture",
   video:!0,valid:"false",invalid:"nope"},E2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},E2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},E2);var Z={},mD=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
   Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["313"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]=
   "o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]=
   "(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z);var kD="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");jD.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=nD.prototype;g.k.lc=function(){return this.id.split(";",1)[0]};
   g.k.ue=function(){return 2===this.containerType};
   g.k.isEncrypted=function(){return!!this.Bd};
   g.k.Ek=function(){return!!this.audio};
   g.k.isVideo=function(){return!!this.video};tD.prototype.getName=function(){return this.name};
   tD.prototype.getId=function(){return this.id};
   tD.prototype.getIsDefault=function(){return this.isDefault};
   tD.prototype.toString=function(){return this.name};
   tD.prototype.getName=tD.prototype.getName;tD.prototype.getId=tD.prototype.getId;tD.prototype.getIsDefault=tD.prototype.getIsDefault;g.w(g.uD,ky);g.uD.prototype.T=function(a,b,c,d,e){return ky.prototype.T.call(this,a,b,c,d,e)};g.w(ID,g.R);g.k=ID.prototype;g.k.appendBuffer=function(a,b,c){if(this.xd.Uy()!==this.appendWindowStart+this.start||this.xd.ED()!==this.appendWindowEnd+this.start||this.xd.Uc()!==this.timestampOffset+this.start)this.xd.supports(1),this.xd.dG(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.xd.TA(this.timestampOffset+this.start);this.xd.appendBuffer(a,b,c)};
   g.k.abort=function(){this.xd.abort()};
   g.k.remove=function(a,b){this.xd.remove(a+this.start,b+this.start)};
   g.k.dG=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
   g.k.SD=function(){return this.timestampOffset+this.start};
   g.k.Uy=function(){return this.appendWindowStart};
   g.k.ED=function(){return this.appendWindowEnd};
   g.k.TA=function(a){this.timestampOffset=a};
   g.k.Uc=function(){return this.timestampOffset};
   g.k.lf=function(a){a=this.xd.lf(void 0===a?!1:a);return HD(a,this.start,this.end)};
   g.k.bh=function(){return this.xd.bh()};
   g.k.Bp=function(){return this.xd.Bp()};
   g.k.Wy=function(){return this.xd.Wy()};
   g.k.SG=function(a,b){this.xd.SG(a,b)};
   g.k.supports=function(a){return this.xd.supports(a)};
   g.k.Xy=function(){return this.xd.Xy()};
   g.k.isView=function(){return!0};
   g.k.gB=function(a,b,c){return this.isActive?this.xd.gB(a,b,c):!1};
   g.k.ly=function(){return this.xd.ly()?this.isActive:!1};
   g.k.isLocked=function(){return this.Cx&&!this.isActive};
   g.k.Ib=function(a){return this.xd.Ib(a)+(";vw."+this.start+"-"+this.end)};
   g.k.Bv=function(){return this.xd.Bv()};
   g.k.xa=function(){oy(this.xd,this.FK);g.R.prototype.xa.call(this)};var OU=!1;g.w(MD,g.R);g.k=MD.prototype;g.k.appendBuffer=function(a,b,c){var d;this.ey=!1;c&&(this.Ez=c);b&&(b.isEncrypted()&&(this.oL=this.Ez),3===b.type&&(this.Ue=b));(null===(d=this.Wb)||void 0===d?0:d.appendBuffer)?this.Wb.appendBuffer(a):this.Wb?this.Wb.append(a):this.Ke&&this.Ke.webkitSourceAppend(this.id,a)};
   g.k.abort=function(){try{this.Wb?this.Wb.abort():this.Ke&&this.Ke.webkitSourceAbort(this.id)}catch(a){}this.Ez=this.Ue=null};
   g.k.remove=function(a,b){var c;this.ey=!1;(null===(c=this.Wb)||void 0===c?0:c.remove)&&this.Wb.remove(a,b)};
   g.k.Uy=function(){var a;return OU&&this.isVideo?this.appendWindowStart:(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowStart)||0};
   g.k.ED=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowEnd)||0};
   g.k.dG=function(a,b){this.Wb&&(OU&&this.isVideo?(this.appendWindowStart=a,this.Wb.appendWindowEnd=b):a>this.Uy()?(this.Wb.appendWindowEnd=b,this.Wb.appendWindowStart=a):(this.Wb.appendWindowStart=a,this.Wb.appendWindowEnd=b))};
   g.k.SD=function(){return this.timestampOffset};
   g.k.TA=function(a){OU?this.timestampOffset=a:this.supports(1)&&(this.Wb.timestampOffset=a)};
   g.k.Uc=function(){return OU?this.timestampOffset:this.supports(1)?this.Wb.timestampOffset:0};
   g.k.lf=function(a){if(void 0===a?0:a)return this.ey||this.bh()||(this.fJ=this.lf(!1),this.ey=!0),this.fJ;try{return this.Wb?this.Wb.buffered:this.Ke?this.Ke.webkitSourceBuffered(this.id):BD([0],[Infinity])}catch(b){return BD([],[])}};
   g.k.bh=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.updating)||!1};
   g.k.Bp=function(){return this.Ez};
   g.k.Wy=function(){return this.oL};
   g.k.SG=function(a,b){this.containerType!==a&&(this.supports(4),ND()&&this.Wb.changeType(b));this.containerType=a};
   g.k.Xy=function(){return this.Ue};
   g.k.isView=function(){return!1};
   g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.Wb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Wb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Wb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Wb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Wb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Wb||!this.Wb.changeType);default:return!1}};
   g.k.ly=function(){return!this.bh()};
   g.k.isLocked=function(){return!1};
   g.k.Ib=function(a){var b,c;a.to=""+this.Uc();a.up=""+ +this.bh();var d=(null===(b=this.Wb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Wb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=CD(this.lf())}catch(f){}return g.JD(a)};
   g.k.xa=function(){this.supports(3)&&(this.Wb.removeEventListener("updateend",this.Ae),this.Wb.removeEventListener("error",this.Ae));g.R.prototype.xa.call(this)};
   g.k.gB=function(a,b,c){if(!this.supports(2)||this.bh())return!1;var d=this.lf(),e=DD(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.oa();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.oa(),this.remove(0,l),!0}catch(m){}return!1};
   g.k.oa=function(){};
   g.k.Bv=function(){return this.containerType};OD.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.i)}catch(a){}this.B=!0}};
   OD.prototype.isDisposed=function(){return this.B};
   OD.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.w(PD,g.I);g.k=PD.prototype;g.k.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.B};
   g.k.Ej=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Ke.webkitSourceSetDuration(a))}catch(b){}};
   g.k.rf=function(){try{return"closed"===RD(this)}catch(a){return!0}};
   g.k.bh=function(){return!!(this.i&&this.i.bh()||this.u&&this.u.bh())};
   g.k.OV=function(){!this.isDisposed()&&QD(this)&&this.callback&&(this.callback(this),this.callback=null)};
   g.k.NV=function(){this.dispose()};var $la=/action_display_post/;var ama;g.w(UD,g.R);g.k=UD.prototype;g.k.isFailed=function(){return 3===this.state};
   g.k.uW=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.tf=this.B=!0;this.timeline||(this.timeline=new ula);yla(this.timeline,a,this.Ya);this.ea("refresh");for(a=0;a<c.length;a++){var d=rma(this,c[a]),e=this.isLive&&g.dD(d)&&this.eb;if(!this.i[d.id]){var f=XD(NC(c[a],"BaseURL").textContent),h=NC(c[a],"Initialization"),l=MC(h,"sourceURL");h=xC(MC(h,"range"));e&&(l="",h=void 0);this.i[d.id]=
   new LC(f,d,l,h)}d=this.i[d.id];f=MC(c[a],"id","AdaptationSet");f=""!==f?f:MC(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.i||null;f=l.i;!this.u&&l.getStreamTimeOffset()&&(this.u=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.Nb,p=h.Ma,q=h.startSecs;var t=l.K.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
   n.toString()),t[b]=t[b].replace("$Time$",q.toString());e.push(new AB(h.Ma,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.u))}else{l=Fb(NC(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.J);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;q=f[m];t=void 0;var u=l[m];b=u.getAttribute("media");if(!e&&(u=u.getAttribute("mediaRange"))){var x=u.split("-");x[1]&&0<=Number(x[1])?t=xC(u):b=b+"?range="+u}p.call(n,new AB(q.Ma,q.startSecs,q.durationSecs,q.i,b,t,q.u))}e=h}d.update(e,this.isLive,this.La)}zla(this.timeline);
   return!0}this.duration=rla(MC(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=rma(this,f);e=XD(NC(f,"BaseURL").textContent);l=NC(f,"SegmentBase");f=xC(l.attributes.getNamedItem("indexRange").value);l=xC(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new fD(e,d,l,f);if(!d){c=!1;break a}VD(this,d)}c=!0}return c};
   g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.ti(this.sourceUrl,{start_seq:vma(this).toString()});g.qh(tma(this,a),function(){})}};
   g.k.resume=function(){sma(this)};
   g.k.hd=function(){if(this.isManifestless&&this.S&&aE(this))return aE(this);var a=this.i,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.J&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Ek()&&(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(bE(this))return bE(this);if(this.K){var a=this.getIngestionTime(this.hd());if(a&&(a-=this.K,0<a))return this.hd()-a}}a=this.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
   g.k.getStreamTimeOffset=function(){return this.u};
   g.k.getIngestionTime=function(a){for(var b in this.i){var c=this.i[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
   var YD=null,mma=!!navigator.mediaCapabilities,qma={commentary:1,alternate:2,dub:3,main:4};kE.prototype.clone=function(a){return new kE(this.flavor,a,this.C,this.experiments)};
   kE.prototype.Ib=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
   kE.prototype.mf=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
   var F2={},tE=(F2.playready=["com.youtube.playready","com.microsoft.playready"],F2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],F2),G2={},WDa=(G2.widevine="DRM_SYSTEM_WIDEVINE",G2.fairplay="DRM_SYSTEM_FAIRPLAY",G2.playready="DRM_SYSTEM_PLAYREADY",G2),H2={},HNa=(H2.widevine=1,H2.fairplay=2,H2.playready=3,H2);g.w(uE,g.I);
   uE.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.Bd)for(var h=g.r(Object.keys(f.Bd)),l=h.next();!l.done;l=h.next())if(l=l.value,tE[l])for(var m=g.r(tE[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new kE(l,n,f.Bd[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}Xt()&&(this.u["com.youtube.fairplay"]=new kE("fairplay","com.youtube.fairplay","",
   this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=Nma(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),g.jE(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
   uE.prototype.oa=function(){};
   uE.prototype.N=function(a){return this.experiments.ob(a)};var INa={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},I2;a:{var J2=g.Ub;J2=J2.toLowerCase();if(-1!=J2.indexOf("android")){var JNa=J2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(JNa){var KNa=parseFloat(JNa[1]);if(100>KNa){I2=KNa;break a}}var LNa=J2.match("("+g.ec(INa).join("|")+")");I2=LNa?INa[LNa[0]]:0}else I2=void 0}var aF=I2,$E=0<=aF;var sna={RED:"red",jaa:"white"};var yna={nY:"adunit",Y0:"detailpage",u1:"editpage",z1:"embedded",A1:"embedded_unbranded",J3:"leanback",e8:"previewpage",h8:"profilepage",s$:"unplugged",V7:"playlistoverview",F9:"sponsorshipsoffer",s9:"shortspage"};Uma.prototype.ob=function(a){return"true"===this.flags[a]};wE.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;du?a=a||MNa[b]:2.2===aF?a=a||NNa[b]:Ut()&&(a=a||ONa[b]);return!!a};
   wE.prototype.isTypeSupported=function(a){this.oa();return this.J?window.cast.receiver.platform.canDisplayType(a):xD(a)};
   wE.prototype.disableAv1=function(){this.S=!0};
   wE.prototype.oa=function(){};
   var NNa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ONa={"application/x-mpegURL":"maybe"},MNa={"application/x-mpegURL":"maybe"};g.w(zE,g.R);zE.prototype.add=function(a,b){!this.items[a]&&(b.Ou||b.py||b.xx)&&(this.items[a]=uc(b),this.ea("vast_info_card_add",a))};
   zE.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
   zE.prototype.get=function(a){return this.items[a]||null};
   zE.prototype.isEmpty=function(){return g.lc(this.items)};var iF={d4:1,e4:2,f4:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};Xma.prototype.load=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(c.i)return e.return();c.i=hE();return c.i?e.return():g.A(e,Yma(c),2)}d=e.u;if(!d)return e.return();c.i={primary:d};Hma(d);g.sa(e)})})};CE.prototype.Mg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.u+=a};
   CE.prototype.qg=function(){return this.i/(1-Math.pow(this.alpha,this.u))};DE.prototype.Mg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.C=!0};
   DE.prototype.qg=function(){return this.D?(EE(this,this.B-this.D)+EE(this,this.B)+EE(this,this.B+this.D))/3:EE(this,this.B)};g.w(jna,g.I);var mna=/^([0-9\.]+):([0-9\.]+)$/;var qna="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),xna={RY:"cbrand",SY:"cbr",TY:"cbrver",P2:"c",S2:"cver",R2:"ctheme",Q2:"cplayer",h6:"cmodel",O6:"cnetwork",i7:"cos",j7:"cosver",N7:"cplatform"};g.w(oF,g.I);g.k=oF.prototype;g.k.N=function(a){return this.experiments.ob(a)};
   g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.rF(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.eF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,du&&(a=vs())&&(b.ebc=a));return g.ti(d,b)};
   g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.rF(this)+"/embed/"+a;c&&(a=g.ti(a,{list:c}));c=b.width;b=b.height;a=g.hg(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
   g.k.supportsGaplessAudio=function(){return g.ej&&!du&&74<=Rt()||g.fj&&g.Ic(68)?!0:!1};
   g.k.getPlayerType=function(){return this.deviceParams.cplayer};
   g.k.xa=function(){this.Ug&&(window.clearInterval(this.Ug),this.Ug=void 0);g.I.prototype.xa.call(this)};
   var Cna=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=GF.prototype;g.k.mf=function(){return this.i};
   g.k.Vt=function(){return null};
   g.k.hK=function(){var a=this.Vt();return a?(a=g.Os(a.i),Number(a.expire)):NaN};
   g.k.aG=function(){};
   g.k.lc=function(){return this.i.lc()};
   g.k.getHeight=function(){return this.i.video.height};Dna.prototype.Oe=function(){Gna(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ac){if(e.Ac.getIsDefault()){c=e.Ac.getId();break a}c||(c=e.Ac.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Ac||e.Ac.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.i])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.Ac){p=f.Ac;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.i?this.i===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=IF(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Fna(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=PNa,d=(h=d.Ac)?'#EXT-X-MEDIA:URI="'+IF(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?PNa:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.i],0<(null===h||void 0===h?void 0:h.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Fna(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
   e.fps),e.Ft&&(h+=",VIDEO-RANGE="+e.Ft),a.push(h),a.push(IF(this,e.url,"")));return a.join("\n")};
   var PNa="text";g.w(JF,GF);JF.prototype.hK=function(){return this.expiration};
   JF.prototype.Vt=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Oe();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new OD(a)}return this.u};g.w(KF,GF);KF.prototype.Vt=function(){return new OD(this.u.Xd())};
   KF.prototype.aG=function(){this.u=yB(this.u)};g.w(LF,GF);LF.prototype.Vt=function(){return new OD(this.u)};MF.prototype.toString=function(){return this.type+this.id};var Sna={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Tna={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.QF.prototype.Ie=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.i)return sF(this.u,this.i,a)};
   g.QF.prototype.zk=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.RF.prototype.Ie=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:sF(this.i,this.videoId,a)};
   g.RF.prototype.zk=function(){return this.watchUrl||this.i.getVideoUrl(this.videoId)};var K2={},Zna=zx("yt-player-local-media",{Gs:(K2.index={Mm:2},K2.media={Mm:2},K2.captions={Mm:5},K2),bx:!1,upgrade:function(a,b){b(2)&&(Bw(a,"index"),Bw(a,"media"));b(5)&&Bw(a,"captions");b(6)&&(Cw(a,"metadata"),Cw(a,"playerdata"))},
   version:5});var SF=void 0;Vna().LMS=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(UF())})})};var YF=0,boa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Vna().LMDB=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.A(e,g.ex(),2);if(3!=e.i){c=e.u;if(!c)throw g.nw("edd");return g.A(e,(0,g.XF)(c),3)}d=e.u;return e.return(Dw(d,["index","media","captions"],{mode:"readonly",Hc:!0},function(f){var h={};f=[Kw(f.objectStore("index"),{},function(l){h[l.getKey()]=l.getValue();return l.continue()}),
   Lw(f.objectStore("media")),Lw(f.objectStore("captions"))];return pw.all(f).then(function(l){var m=g.r(l);m.next();l=m.next().value;m=m.next().value;return{index:h,media:noa(l||[]),captions:m}})}))})})};g.k=g.$F.prototype;g.k.getId=function(){return this.id};
   g.k.getName=function(){return this.name};
   g.k.isServable=function(){return this.i};
   g.k.Xd=function(){return this.url};
   g.k.toString=function(){return this.languageCode+": "+g.aG(this)+" - "+this.vssId};
   g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var poa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},qoa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},roa=/^(\d*)_((\d*)_?(\d*))$/;var L2={},Uoa=(L2.ALWAYS=1,L2.BY_REQUEST=3,L2.UNKNOWN=void 0,L2),M2={},Foa=(M2.COLOR_PRIMARIES_BT709="bt709",M2.COLOR_PRIMARIES_BT2020="bt2020",M2.COLOR_PRIMARIES_UNKNOWN=null,M2.COLOR_PRIMARIES_UNSPECIFIED=null,M2),N2={},toa=(N2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",N2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",N2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",N2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",N2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,N2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
   null,N2),O2={},fG=(O2.FAIRPLAY="fairplay",O2.PLAYREADY="playready",O2.WIDEVINE="widevine",O2.CLEARKEY=null,O2.FLASHACCESS=null,O2.UNKNOWN=null,O2.WIDEVINE_CLASSIC=null,O2),P2={},Voa=(P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",P2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",P2),Q2={},Coa=(Q2.UNKNOWN=0,Q2.RECTANGULAR=1,Q2.EQUIRECTANGULAR=2,Q2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
   3,Q2.MESH=4,Q2),R2={},Eoa=(R2.SPATIAL_AUDIO_TYPE_NONE=0,R2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,R2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,R2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,R2),S2={},Doa=(S2.STEREO_LAYOUT_UNKNOWN=0,S2.STEREO_LAYOUT_LEFT_RIGHT=1,S2.STEREO_LAYOUT_TOP_BOTTOM=2,S2),T2={},Boa=(T2.FORMAT_STREAM_TYPE_UNKNOWN=0,T2.FORMAT_STREAM_TYPE_OTF=3,T2);g.w(gG,g.R);gG.prototype.xa=function(){this.i&&(this.i=this.i.onload=null);g.R.prototype.xa.call(this)};g.k=g.jG.prototype;g.k.getHeight=function(){return this.height};
   g.k.mK=ba(0);g.k.LD=function(){return this.B};
   g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
   g.k.isLoaded=function(a){return this.loaded.has(a)};
   g.k.Xd=function(a){var b=this.D;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.ti(b,{sigh:this.signature}));return jA(b)};
   g.k.Hx=function(a){var b=this.LD()-1;return g.Xf(0===this.i?Math.round(a*this.B/this.videoLength):Math.round(1E3*a/this.i),0,b)};
   g.k.Wt=function(){return this.B-1};
   g.k.QB=function(){return this.B?0:-1};
   g.k.CH=function(){};g.w(kG,gG);kG.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.J(e-1,d,a[e],b);(this.S||180>f.getHeight())&&c.push(f)}return c};
   kG.prototype.J=function(a,b,c,d){return new g.jG(a,b,c,d)};g.w(lG,g.jG);g.k=lG.prototype;g.k.LD=function(){return this.u.getNumberOfSegments()};
   g.k.Hx=function(a){var b=this.rows*this.columns*this.J,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
   g.k.Wt=function(){return this.u.getLastSegmentNumber()};
   g.k.QB=function(){return this.u.getFirstSegmentNumber()};
   g.k.CH=function(a){this.u=a};g.w(mG,kG);mG.prototype.u=function(a,b){return kG.prototype.u.call(this,"$N|"+a,b)};
   mG.prototype.J=function(a,b,c){return new lG(a,b,c,this.isLive)};g.w(oG,g.R);g.k=oG.prototype;g.k.V=function(){return this.C};
   g.k.N=function(a){return this.C.N(a)};
   g.k.sf=function(){return!this.isLivePlayback||this.allowLiveDvr};
   g.k.nM=function(){this.isDisposed()||(this.i.B||this.i.unsubscribe("refresh",this.nM,this),this.uJ(-1))};
   g.k.uJ=function(a){if(!this.isLivePlayback||!this.J||"fairplay"!=this.J.flavor){var b=nma(this.i,this.PG);if(0<b.length&&(this.ea("cuepointupdated",b,a),this.PG+=b.length,CG(this)&&g.yG(this))){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ba("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs+";id."+c.identifier.slice(-16)),"start"===c.event&&(c=c.startSecs,this.yu.start=this.pu,this.yu.end=c+3)}}};
   g.k.Dh=function(){var a={};this.u&&(a.fmt=this.u.lc(),this.K&&this.K.lc()!=this.u.lc()&&(a.afmt=this.K.lc()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Kg&&(a.infringe=1);this.hf&&(a.splay=1);var b=HG(this);b&&(a.live=b);this.Nk&&(a.autoplay=1);this.HI&&(a.sdetail=this.HI);this.Ka&&(a.partnerid=this.Ka);this.osid&&(a.osid=this.osid);return a};
   g.k.Gh=function(){if(this.cotn)return null;var a=g.xF(this.C)||this.N("web_l3_storyboard");if(!this.Qf)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Qf=new kG(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=cc(this.i.i).index)&&(this.Qf=new mG(b.spec,this.i.isLive,c,a))}else this.Lo?this.Qf=new kG(this.Lo,this.lengthSeconds,void 0,!1,a):this.Fq&&this.i&&
   (b=cc(this.i.i).index)&&(this.Qf=new mG(this.Fq,this.i.isLive,b,a));return this.Qf};
   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.Lo||this.Fq};
   g.k.hd=function(){return this.i&&!isNaN(this.i.hd())?this.i.hd():CG(this)?0:this.lengthSeconds};
   g.k.getMinSeekableTime=function(){return this.i&&!isNaN(this.i.getMinSeekableTime())?this.i.getMinSeekableTime():0};
   g.k.getPlaylistSequenceForTime=function(a){if(this.i&&this.u){var b=this.i.i[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.Ei)};
   g.k.isLoaded=function(){return pG(this)&&!this.dd&&!this.Pj};
   g.k.Ie=function(a){if(30==this.Ka)return(a=this.Z["default.jpg"])?a:this.videoId?g.ti("//docs.google.com/vt",{id:this.videoId,authuser:this.tI,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.C.K||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:sF(this.C,this.videoId,a)};
   g.k.tf=function(){return this.isLivePlayback||this.bf||this.Zi||!(!this.liveUtcStartSeconds||!this.Wg)};
   g.k.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.bf&&!this.isLivePlayback&&this.i.B)};
   g.k.getAvailableAudioTracks=function(){return this.B?0<this.B.getAvailableAudioTracks().length?this.B.getAvailableAudioTracks():this.tq||[]:[]};
   g.k.getAudioTrack=function(){var a=this;if(this.K&&!rD(this.K))return g.tb(this.getAvailableAudioTracks(),function(d){return d.id==a.K.id})||this.Vi;
   if(this.tq){if(!this.Sj)for(var b=g.r(this.tq),c=b.next();!c.done;c=b.next())if(c=c.value,c.Ac.getIsDefault()){this.Sj=c;break}return this.Sj||this.Vi}return this.Vi};
   g.k.getPlayerResponse=function(){return this.playerResponse};
   g.k.zk=function(){return this.watchUrl?this.watchUrl:this.C.getVideoUrl(this.videoId)};
   g.k.isAd=function(){return!!this.adFormat};
   g.k.nf=function(){return this.oauthToken||this.C.Ge};
   g.k.Jn=function(){var a=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],b="TVHTML5_SIMPLY"===this.C.deviceParams.c&&"MUSIC"===this.C.deviceParams.ctheme;!this.Ge&&(g.fF(this.C)||b)&&a.includes(this.musicVideoType)&&(this.Ge=!0);if(a=g.Wt())a=/Starboard\/([0-9]+)/.exec(g.Ub),a=10>(a?parseInt(a[1],10):NaN);b=this.C;b=("TVHTML5_CAST"===b.deviceParams.c||"TVHTML5"===b.deviceParams.c&&(b.deviceParams.cver.startsWith("6.20130725")||b.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===
   this.C.deviceParams.ctheme;!this.Ge&&(b||Ana(this.C))&&!a&&(a="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===this.musicVideoType,b=(this.N("cast_prefer_audio_only_for_atv_and_uploads")||this.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===this.musicVideoType,a||b)&&(this.Ge=!0);return!this.C.deviceHasDisplay||this.Ge&&this.C.u};
   g.k.jG=function(){return this.Oi||this.Tc};
   g.k.ex=function(){return this.Ye||this.Tc};
   g.k.HC=function(){return zG(this,"html5_samsung_vp9_live")};
   g.k.useInnertubeDrmService=function(){if(!(this.J&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForWidevine||a||b)};
   g.k.Ba=function(a,b,c){this.ea("ctmp",a,b,c)};
   g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
   g.k.xa=function(){g.R.prototype.xa.call(this);delete this.ol;this.vl=null;delete this.rX;delete this.accountLinkingConfig;delete this.i;this.B=this.playerResponse=this.watchNextResponse=null;this.Gi=this.adaptiveFormats="";delete this.botguardData;this.Kq={};this.suggestions=null};cH.prototype.Vv=function(){return!1};
   cH.prototype.Ja=function(){return function(){return null}};var xH=null;g.w(wH,g.R);wH.prototype.Av=function(a){return this.i.hasOwnProperty(a)?this.i[a].Av():{}};
   g.Fa("ytads.bulleit.getVideoMetadata",function(a){return yH().Av(a)},void 0);
   g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=yH();c=Dpa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})},void 0);g.w(BH,cH);g.k=BH.prototype;g.k.us=function(){return!0};
   g.k.Oo=function(){return!1};
   g.k.isSkippable=function(){return null!=this.Ea};
   g.k.getVideoUrl=function(){return this.ya};
   g.k.Vv=function(){return!0};g.w(IH,cH);IH.prototype.us=function(){return!0};
   IH.prototype.Oo=function(){return!1};
   IH.prototype.Vv=function(){return!0};
   IH.prototype.Ja=function(){return function(){return g.vg("video-ads")}};Mpa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var aKa={WX:"FINAL",iY:"AD_BREAK_LENGTH",jY:"AD_CPN",kY:"AH",lY:"AD_MT",mY:"ASR",oY:"AW",lZ:"NM",mZ:"NX",nZ:"NY",sZ:"CONN",DZ:"CPN",o1:"DV_VIEWABILITY",G1:"ERRORCODE",K1:"ERROR_MSG",M1:"EI",v2:"GOOGLE_VIEWABILITY",M2:"IAS_VIEWABILITY",H3:"LACT",V3:"LIVE_TARGETING_CONTEXT",g4:"I_X",h4:"I_Y",L5:"MT",P5:"MIDROLL_POS",Q5:"MIDROLL_POS_MS",S5:"MOAT_INIT",T5:"MOAT_VIEWABILITY",Q7:"P_H",R7:"PV_H",S7:"PV_W",T7:"P_W",Y7:"TRIGGER_TYPE",K8:"SDKV",C9:"SLOT_POS",R9:"SURVEY_LOCAL_TIME_EPOCH_S",Q9:"SURVEY_ELAPSED_MS",
   PQ:"VIS",R$:"VIEWABILITY",S$:"VED",Y$:"VOL",baa:"WT",yaa:"YT_ERROR_CODE"};var Tpa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];PH.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.Dq(a.baseUrl,Qpa(b,d,c)),f;if(a.headers)for(var h=g.r(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.nf();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.i();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.av(e,void 0,d,f)}catch(p){}};g.w(QH,PH);QH.prototype.nf=function(){return this.np?this.np.nf():""};
   QH.prototype.i=function(){return this.np?this.np.V().pageId:""};RH.prototype.send=function(a,b,c){try{var d=a.match(gi);if("https"===d[1])var e=a;else d[1]="https",e=ei("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=Cq(a);e=[];Us(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.Yo.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.w(Upa,g.I);g.w(gI,g.R);g.k=gI.prototype;g.k.Av=function(){return{}};
   g.k.UF=function(){};
   g.k.ld=function(a){this.jk();this.ea(a)};
   g.k.DH=function(){};
   g.k.jk=function(){bqa(this,this.ya,3);this.ya=[]};
   g.k.getDuration=function(){return this.I.getDuration(2,!1)};
   g.k.Bn=function(){var a=this.i;TH(a)||!aI(a,"impression")&&!aI(a,"start")||aI(a,"abandon")||aI(a,"complete")||aI(a,"skip")||cI(a,"pause");this.C||(a=this.i,TH(a)||!aI(a,"unmuted_impression")&&!aI(a,"unmuted_start")||aI(a,"unmuted_abandon")||aI(a,"unmuted_complete")||cI(a,"unmuted_pause"))};
   g.k.Cn=function(){this.Aa||this.K||this.Ef()};
   g.k.qh=function(){WH(this.i,this.getDuration());if(!this.C){var a=this.i;this.getDuration();TH(a)||(Ypa(a,0,!0),Zpa(a,0,0,!0),SH(a,"unmuted_complete"))}};
   g.k.vg=function(){var a=this.i;!aI(a,"impression")||aI(a,"skip")||aI(a,"complete")||$H(a,"abandon");this.C||(a=this.i,aI(a,"unmuted_impression")&&!aI(a,"unmuted_complete")&&$H(a,"unmuted_abandon"))};
   g.k.Kp=function(){var a=this.i;UH(a)?SH(a,"skip"):!aI(a,"impression")||aI(a,"abandon")||aI(a,"complete")||SH(a,"skip")};
   g.k.Ef=function(){if(!this.K){var a=this.Ty();this.i.macros.AD_CPN=a;a=this.i;if(UH(a)){var b=a.i.getCurrentTime(2,!1);ZH(a,"impression",b,0)}else SH(a,"impression");SH(a,"start");TH(a)||a.i.isFullscreen()&&$H(a,"fullscreen");this.K=!0;this.C=this.I.isMuted();this.C||(a=this.i,SH(a,"unmuted_impression"),SH(a,"unmuted_start"),TH(a)||a.i.isFullscreen()&&$H(a,"unmuted_fullscreen"))}};
   g.k.Yg=function(a){a=a||"";var b="",c="",d="";dH(this.I)&&(b=this.I.yb(2).state,this.I.jd()&&(c=this.I.jd().rh(),null!=this.I.jd().aj()&&(d=this.I.jd().aj())));var e=this.i;e.macros=OH(e.macros,MH(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));SH(e,"error");this.C||Vpa(this.i,3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))};
   g.k.Ff=function(){};
   g.k.gN=function(){this.ea("adactiveviewmeasurable")};
   g.k.hN=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")};
   g.k.iN=function(){this.ea("adoverlaymeasurableimpression")};
   g.k.jN=function(){this.ea("adoverlayunviewableimpression")};
   g.k.kN=function(){this.ea("adoverlayviewableendofsessionimpression")};
   g.k.lN=function(){this.ea("adoverlayviewableimmediateimpression")};
   g.k.mN=function(){this.ea("adviewableimpression")};
   g.k.dispose=function(){this.isDisposed()||(this.jk(),this.u.unsubscribe("adactiveviewmeasurable",this.gN,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.hN,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.iN,this),this.u.unsubscribe("adoverlayunviewableimpression",this.jN,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.kN,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.lN,this),this.u.unsubscribe("adviewableimpression",
   this.mN,this),delete this.u.i[this.ad.K],g.R.prototype.dispose.call(this))};
   g.k.Ty=function(){var a=this.I.getVideoData(2);return a&&a.clientPlaybackNonce||""};
   g.k.RJ=function(){return""};g.w(jI,cH);jI.prototype.us=function(){return!0};
   jI.prototype.Oo=function(){return!1};g.w(kI,uH);g.w(lI,gI);g.k=lI.prototype;g.k.Zq=function(){0<this.B&&this.Ef()};
   g.k.Ef=function(){var a=this;this.Lb=new g.M(function(){a.qh();for(var b=g.r(a.D.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.J.executeCommand(c.value,a.macros);a.ld("adended")},this.B,this);
   g.J(this,this.Lb);this.Lb.start();hI(this,[new kI(this.D.i,this.macros)]);gI.prototype.Ef.call(this)};
   g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")};
   g.k.qh=function(){gI.prototype.qh.call(this)};
   g.k.ld=function(a){this.Lb&&this.Lb.stop();gI.prototype.ld.call(this,a)};g.w(mI,cH);mI.prototype.us=function(){return!0};
   mI.prototype.Oo=function(){return!1};g.w(nI,cH);nI.prototype.us=function(){return!0};
   nI.prototype.Oo=function(){return!1};g.w(oI,cH);oI.prototype.us=function(){return!0};
   oI.prototype.Oo=function(){return!1};dqa.prototype.create=function(a,b){return a instanceof BH?this.J.create(a,b):a instanceof IH?this.C.create(a,b):a instanceof jI?this.i.create(a,b):a instanceof oI?this.D.create(a,b):a instanceof nI?this.B.create(a,b):a instanceof mI?this.u.create(a,b):null};g.w(pI,gI);g.k=pI.prototype;g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")};
   g.k.Bn=function(){gI.prototype.Bn.call(this);this.ea("adpause",2)};
   g.k.Cn=function(){gI.prototype.Cn.call(this);this.ea("adplay",1)};
   g.k.Ef=function(){gI.prototype.Ef.call(this);this.B.stop();this.D.T(this.I,g.nA("bltplayback"),this.cP);var a=new g.lA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Ad([a],2);this.ea("adplay",1)};
   g.k.qh=function(){gI.prototype.qh.call(this);this.ld("adended")};
   g.k.Yg=function(a){gI.prototype.Yg.call(this,a);this.ld("aderror")};
   g.k.Zq=function(){sH(this.I,!1);var a=this.J.u||{};a.autoplay="1";this.I.cueVideoByPlayerVars(a,2);this.B.start();this.I.playVideo(2);this.I.Oa("onAdIntroStateChange",1)};
   g.k.ld=function(a){this.B.stop();sH(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");this.I.Oa("onAdEnd");this.ea(a);this.I.Oa("onAdIntroStateChange",0)};
   g.k.cP=function(a){"bltcompletion"==a.getId()&&(this.I.We("bltplayback",2),WH(this.i,this.getDuration()))};g.w(eqa,uH);g.w(qI,gI);g.k=qI.prototype;
   g.k.Zq=function(){if(this.J)for(var a=g.r(this.J.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.u={slotId:aA(b.D.get(),"SLOT_TYPE_IN_PLAYER"),rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:void 0,qc:[],pc:[],gb:"surface",Ia:new IY([])};Dqa(b.B(),b.u);var c=b.B();b=b.u;c=g.r(c.Pd);for(var d=c.next();!d.done;d=c.next())d.value.Bj(b)}0>=this.Z&&(g.Gs(Error("durationMs was specified incorrectly with a value of: "+this.Z)),this.qh());this.Ef();this.I.addEventListener("progresssync",this.ma)};
   g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandonedreset")};
   g.k.Ef=function(){var a=this.I.V();gI.prototype.Ef.call(this);this.B=a.N("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.D=this.B+this.Z/1E3;g.lF(a)?this.I.Oa("onAdMessageChange",{renderer:this.S.i,startTimeSecs:this.B}):hI(this,[new eqa(this.S.i)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Ey(),c=this.S.i.videoAdBreakOffsetMsInt64;b&&g.Zv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.D),timeToAdBreakSec:Math.ceil(this.D-
   this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J)for(this.Y=!0,a=g.r(this.J.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u?b.i?T("Received AdNotify started event before another one exited"):(b.i=b.u,Eqa(b.B(),b.i)):T("Received AdNotify started event without start requested event");g.U(this.I.yb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Ey(),c=this.S.i.videoAdBreakOffsetMsInt64,b&&g.Zv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
   this.D),timeToAdBreakSec:Math.ceil(this.D-this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.qh())};
   g.k.qh=function(){gI.prototype.qh.call(this);this.ld("adended")};
   g.k.Yg=function(a){gI.prototype.Yg.call(this,a);this.ld("aderror")};
   g.k.ld=function(a){this.I.removeEventListener("progresssync",this.ma);this.jk();this.ea(a);gqa(this)};
   g.k.dispose=function(){this.I.removeEventListener("progresssync",this.ma);gqa(this);gI.prototype.dispose.call(this)};
   g.k.jk=function(){g.lF(this.I.V())?this.I.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.B}):gI.prototype.jk.call(this)};tI.prototype.sendAdsPing=function(a){this.J.send(a,qqa(this),{})};
   tI.prototype.Id=function(a){var b=this;if(a){var c=qqa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};uI.prototype.get=function(){return this.value};
   g.w(vI,uI);vI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
   g.w(wI,uI);wI.prototype.getType=function(){return"metadata_type_ad_next_params"};
   g.w(xI,uI);xI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
   g.w(yI,uI);yI.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
   g.w(zI,uI);zI.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
   g.w(AI,uI);AI.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
   g.w(BI,uI);BI.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
   g.w(CI,uI);CI.prototype.getType=function(){return"metadata_ad_video_is_listed"};
   g.w(DI,uI);DI.prototype.getType=function(){return"metadata_type_ad_placement_config"};
   g.w(EI,uI);EI.prototype.getType=function(){return"metadata_type_ad_pod_info"};
   g.w(FI,uI);FI.prototype.getType=function(){return"metadata_type_ad_video_id"};
   g.w(GI,uI);GI.prototype.getType=function(){return"metadata_type_ad_video_url"};
   g.w(HI,uI);HI.prototype.getType=function(){return"metadata_type_content_cpn"};
   g.w(II,uI);II.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
   g.w(JI,uI);JI.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
   g.w(KI,uI);KI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
   g.w(LI,uI);LI.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
   g.w(MI,uI);MI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
   g.w(NI,uI);NI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
   g.w(OI,uI);OI.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
   g.w(PI,uI);PI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
   g.w(QI,uI);QI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
   g.w(RI,uI);RI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
   g.w(SI,uI);SI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
   g.w(TI,uI);TI.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
   g.w(UI,uI);UI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
   g.w(VI,uI);VI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
   g.w(WI,uI);WI.prototype.getType=function(){return"metadata_type_sub_layouts"};
   g.w(XI,uI);XI.prototype.getType=function(){return"metadata_type_cue_point"};
   g.w(YI,uI);YI.prototype.getType=function(){return"metadata_type_video_length_seconds"};
   g.w(ZI,uI);ZI.prototype.getType=function(){return"metadata_type_player_vars"};
   g.w($I,uI);$I.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
   g.w(aJ,uI);aJ.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
   g.w(bJ,uI);bJ.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
   g.w(cJ,uI);cJ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
   g.w(dJ,uI);dJ.prototype.getType=function(){return"metadata_type_dai"};
   g.w(eJ,uI);eJ.prototype.getType=function(){return"metadata_type_ad_intro"};
   g.w(fJ,uI);fJ.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
   g.w(gJ,uI);gJ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
   g.w(hJ,uI);hJ.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
   g.w(iJ,uI);iJ.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
   g.w(jJ,uI);jJ.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
   g.w(kJ,uI);kJ.prototype.getType=function(){return"metadata_type_remote_slots_data"};
   g.w(lJ,uI);lJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
   g.w(mJ,uI);mJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
   g.w(nJ,uI);nJ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
   g.w(oJ,uI);oJ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
   g.w(pJ,uI);pJ.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
   g.w(qJ,uI);qJ.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
   g.w(rJ,uI);rJ.prototype.getType=function(){return"metadata_type_survey_overlay"};wqa.prototype.Id=function(a){this.i.Id(a)};g.w(tJ,g.R);tJ.prototype.getProgressState=function(){return this.B};
   tJ.prototype.start=function(){this.C=Date.now();yqa(this,{current:this.i/1E3,duration:this.u/1E3});this.Lb.start()};
   tJ.prototype.stop=function(){this.Lb.stop()};g.w(uJ,uH);g.w(vJ,g.R);vJ.prototype.start=function(){this.B||(this.B=!0,this.u.start(),this.C=Date.now())};
   vJ.prototype.stop=function(){this.B&&(this.B=!1,this.u.stop())};
   vJ.prototype.Qb=function(){var a=Date.now(),b=a-this.C;this.C=a;this.i+=b;this.i>=this.durationMs?(this.i=this.durationMs,this.u.stop(),this.D(this.i),this.J()):this.D(this.i)};g.w(yJ,gI);g.k=yJ.prototype;g.k.Zq=function(){this.Ef()};
   g.k.Ef=function(){var a=this,b=this.D.i;if(g.lF(this.I.V()))zqa(this,b),this.Y=Date.now(),this.B&&this.B.start();else if(hI(this,[new uJ(b)]),this.D.i.controlWithFixEnabled){var c=1E3*this.D.u;this.S=new vJ(c,function(d){var e={current:d/1E3,duration:c/1E3};iI(a,d/1E3);a.I.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3,
   duration:c/1E3};xJ(a);a.I.Oa("onAdPlaybackProgress",d)});
   g.J(this,this.S);this.S.start()}wJ();gI.prototype.Ef.call(this)};
   g.k.getDuration=function(){return this.D.u};
   g.k.Bn=function(){gI.prototype.Bn.call(this);this.B&&this.B.stop()};
   g.k.Cn=function(){gI.prototype.Cn.call(this);this.B&&this.B.start()};
   g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")};
   g.k.Kp=function(){gI.prototype.Kp.call(this);this.ld("adended")};
   g.k.DH=function(){var a=this.I.V();this.D.i.controlWithFixEnabled&&!g.lF(a)&&(a=2===this.I.getPresentingPlayerType(!0),this.K&&!a&&(xJ(this),this.ld("adended")))};
   g.k.Yg=function(a){this.I.V().experiments.ob("html5_block_player_errors_while_survey_active")?T("Unexpected Player Error while the Survey is playing."):(gI.prototype.Yg.call(this,a),this.ld("aderror"))};
   g.k.ld=function(a){this.jk();this.ea(a)};
   g.k.Ff=function(a){switch(a){case "skip-button":this.Kp();break;case "survey-submit":this.ld("adended")}};
   g.k.jk=function(){g.lF(this.I.V())?(this.B&&this.B.stop(),this.I.Oa("onAdInfoChange",null)):gI.prototype.jk.call(this)};g.w(zJ,uH);g.w(AJ,gI);AJ.prototype.Zq=function(){this.Ef()};
   AJ.prototype.Ef=function(){wJ();hI(this,[new zJ(this.B.i,this.macros)]);gI.prototype.Ef.call(this)};
   AJ.prototype.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")};
   AJ.prototype.Yg=function(a){gI.prototype.Yg.call(this,a);this.ld("aderror")};g.w(BJ,gI);g.k=BJ.prototype;g.k.Av=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:Bpa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}};
   g.k.Zq=function(){if(this.B.Z)cqa(this),this.ld("aderror");else{var a=this.B.i.legacyInfoCardVastExtension,b=this.B.D;a&&b&&this.I.V().S.add(b,{Ou:a});try{var c=this.B.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{ll(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.lf("//tpc.googlesyndication.com/sodar/%{path}");g.My(new g.dw("Load Sodar Error.",d instanceof jf,d.constructor===jf,{Message:e.message,"Escaped injector basename":g.hg(c.siub),"BG vm basename":c.bgub}));if(d.constructor===jf)throw e;
   }}catch(e){g.Ly(e)}sH(this.I,!1);a=Kpa(this.B);b=this.I.V();a.iv_load_policy=b.isMobile||g.lF(b)||g.xF(b)?3:1;b=this.I.getVideoData(1);b.Bg&&(a.ctrl=b.Bg);b.Hf&&(a.ytr=b.Hf);b.El&&(a.ytrcc=b.El);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Uh&&(a.vss_credentials_token_type=b.Uh),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.Y?this.J.start():(this.I.cueVideoByPlayerVars(a,2),this.J.start(),this.I.playVideo(2))}};
   g.k.Bn=function(){gI.prototype.Bn.call(this);this.ea("adpause",2)};
   g.k.Cn=function(){gI.prototype.Cn.call(this);this.ea("adplay",1)};
   g.k.Ef=function(){gI.prototype.Ef.call(this);this.J.stop();this.ma.T(this.I,g.nA("bltplayback"),this.dP);var a=new g.lA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Ad([a],2);a=FJ(this);this.D.Ja=a;if(this.I.isMuted()){a=this.i;var b=this.I.isMuted();UH(a)||SH(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.Z){a=null!==this.D.i.getVideoData(1)?this.D.i.getVideoData(1).clientPlaybackNonce:"";b=Bqa(this);for(var c=this.B,d=Aqa(this),e=g.r(this.Z.listeners),
   f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.D,q=l.getVideoUrl();p&&n.push(new FI(p));q&&n.push(new GI(q));(q=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new II(q)),(q=q.elementId)&&n.push(new QI(q))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new JI(p));l.i.adNextParams&&n.push(new wI(l.i.adNextParams||""));(p=l.Ka)&&n.push(new xI(p));(p=Vz(f.S.get(),2))?(n.push(new BI({channelId:p.Ri,
   channelThumbnailUrl:p.Ph,channelTitle:p.author,videoTitle:p.title})),n.push(new CI(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new EI(l.B));n.push(new YI(l.u));n.push(new HI(a));n.push(new UI({current:this}));p=l.Ua;null!=p.kind&&n.push(new DI(p));(p=l.Ra)&&n.push(new kJ(p));void 0!==m&&n.push(new lJ(m));f.i?T(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):Cqa(f,h,n,!0,l.i.adLayoutLoggingData)}}this.S.To=
   this;this.I.Oa("onAdStart",FJ(this));a=g.r(this.B.i.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
   g.k.dP=function(a){"bltcompletion"==a.getId()&&(this.I.We("bltplayback",2),WH(this.i,this.getDuration()),EJ(this,"adended"),T1(this.S,this))};
   g.k.qh=function(){gI.prototype.qh.call(this);this.ld("adended");for(var a=g.r(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
   g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")};
   g.k.JA=function(){var a=this.i;TH(a)||$H(a,"clickthrough");this.C||(a=this.i,TH(a)||$H(a,"unmuted_clickthrough"))};
   g.k.Bw=function(){this.Kp()};
   g.k.Kp=function(){gI.prototype.Kp.call(this);this.ld("adended")};
   g.k.Yg=function(a){gI.prototype.Yg.call(this,a);this.ld("aderror")};
   g.k.ld=function(a){this.J.stop();sH(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");EJ(this,a);T1(this.S,this);this.I.Oa("onAdEnd",FJ(this));this.ea(a)};
   g.k.jk=function(){var a=this.I.V();g.lF(a)&&(g.xF(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.lF(a))?this.I.Oa("onAdInfoChange",null):gI.prototype.jk.call(this)};
   g.k.hm=function(){this.UF()};
   g.k.UF=function(){this.JS&&this.I.playVideo()};
   g.k.JS=function(){return 2==this.I.getPlayerState(2)};
   g.k.RJ=function(a,b){if(this.B.Z)return cqa(this),this.ld("aderror"),"";if(!Number.isFinite(a))return g.Ly(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Ly(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=Kpa(this.B);d=this.I.yr(d,2,c,a,b);a+c>b&&this.I.zt(d,b-a);return d};
   g.k.dispose=function(){Bpa(this.I)&&!this.Y&&this.I.stopVideo(2);EJ(this,"adabandoned");T1(this.S,this);gI.prototype.dispose.call(this)};GJ.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.i[b];c?b=c:(c={Wu:null,wL:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.wL))if(b.wL=c,b.Wu){if(c<b.Wu.end){a:{c=b.Wu;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.Wu.end=a,this.u.mM(a))}}else if(a=
   Hqa(a,this.B))c=a.AS,b.Wu=a.pR,this.u.sF(c)};
   GJ.prototype.updateTime=function(){};JJ.prototype.If=function(a){var b=this.i;g.ah(function(){return b.If(a,1)})};MJ.prototype.Mu=function(a,b,c,d,e){var f=this;Pqa(this,a,b,d,e,function(){Qqa(f);f.B=!b&&0===c})};
   MJ.prototype.reset=function(){return new MJ(this.I)};var U2={},V2=(U2.BUFFERING="buffering-mode",U2.CUED="cued-mode",U2.ENDED="ended-mode",U2.PAUSED="paused-mode",U2.PLAYING="playing-mode",U2.SEEKING="seeking-mode",U2.UNSTARTED="unstarted-mode",U2);var QNa,W2,Wqa;
   QNa={AY:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",HY:"AUTHENTICATION_MALFORMED",IY:"AUTHENTICATION_MISSING",OY:"BAD_REQUEST",ZY:"CAST_SESSION_DEVICE_MISMATCHED",aZ:"CAST_SESSION_VIDEO_MISMATCHED",bZ:"CAST_TOKEN_EXPIRED",cZ:"CAST_TOKEN_FAILED",dZ:"CAST_TOKEN_MALFORMED",eZ:"CGI_PARAMS_MALFORMED",fZ:"CGI_PARAMS_MISSING",Z0:"DEVICE_FALLBACK",H1:"GENERIC_WITH_LINK_AND_CPN",I1:"ERROR_HDCP",J1:"LICENSE",L1:"VIDEO_UNAVAILABLE",W1:"FORMAT_UNAVAILABLE",o2:"GEO_FAILURE",H2:"HTML5_AUDIO_RENDERER_ERROR",
   I2:"GENERIC_WITHOUT_LINK",J2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",K2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",L2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",W2:"INVALID_DRM_MESSAGE",k8:"PURCHASE_NOT_FOUND",l8:"PURCHASE_REFUNDED",u8:"RENTAL_EXPIRED",C8:"RETRYABLE_ERROR",Q8:"SERVER_ERROR",G9:"STOPPED_BY_ANOTHER_PLAYBACK",K9:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",L9:"STREAMING_NOT_ALLOWED",M9:"STREAM_LICENSE_NOT_FOUND",Y9:"TOO_MANY_REQUESTS",Z9:"TOO_MANY_REQUESTS_WITH_LINK",a$:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
   b$:"TOO_MANY_STREAMS_PER_USER",A$:"UNSUPPORTED_DEVICE",M$:"VIDEO_FORBIDDEN",P$:"VIDEO_NOT_FOUND"};W2={};
   g.DN=(W2.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.",W2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",W2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",W2.LICENSE="Sorry, there was an error licensing this video.",W2.VIDEO_UNAVAILABLE=
   "Video unavailable",W2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",W2.GEO_FAILURE="This video isn't available in your country.",W2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",W2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",W2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",W2.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",
   W2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",W2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",W2.PURCHASE_NOT_FOUND="This video requires payment.",W2.PURCHASE_REFUNDED="This video's purchase has been refunded.",W2.RENTAL_EXPIRED="This video's rental has expired.",W2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",W2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
   W2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",W2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",W2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",W2.SERVER_ERROR="There was an internal server error. Please try again later.",W2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",W2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
   W2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",W2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",W2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",W2.TOO_MANY_REQUESTS="Please log in to watch this video.",W2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",W2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
   W2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",W2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",W2.VIDEO_FORBIDDEN="Access to this video is forbidden.",W2.VIDEO_NOT_FOUND="This video can not be found.",W2);
   Wqa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
   5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.w(OJ,g.I);g.k=OJ.prototype;g.k.Ix=function(){return this.u};
   g.k.wr=function(a){var b="";a&&(Zqa(this,a),b=a.i);if(!this.Df()||b)b&&this.Df()!==b&&this.Mx(b),RNa||a&&a.u||this.load(),this.J||(this.addEventListener("volumechange",this.wJ),this.J=!0)};
   g.k.Ep=function(){var a=this.Me();a=window.MediaSource?new PD(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new PD(new window.WebKitMediaSource,void 0,!1):new PD(void 0,a,!1);this.wr(a.gw);return a};
   g.k.playVideo=function(){var a=this;this.Gk()&&this.seekTo(0);!this.Df()&&this.u&&(g.Gs(Error("playVideo without src")),this.Mx(this.u.i),this.u.u||this.load());var b=this.play();!b&&SNa&&PN&&7<=(aH||0)&&g.Ju(this,"playing",function(){g.ut(function(){Yqa(a,a.getCurrentTime(),0)},500)});
   return b};
   g.k.seekTo=function(a){0<this.rh()&&(TNa&&PN&&4>aH&&(a=Math.max(.1,a)),this.Lx(a))};
   g.k.stopVideo=function(){this.Df()&&(UNa&&du&&0<this.getCurrentTime()&&this.seekTo(0),this.HA(),this.load(),Zqa(this,null))};
   g.k.Yr=function(){var a=this.Uf();return 0<GD(a)&&this.getDuration()?FD(a,this.getCurrentTime()):0};
   g.k.Cp=function(){var a=this.getDuration();return Infinity===a?1:a?this.Yr()/a:0};
   g.k.Ib=function(){try{var a=this.dr();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:CD(this.Gp(),",",3),vbu:CD(this.Uf()),vpa:""+ +this.al(),vsk:""+ +this.Xt(),ven:""+ +this.Gk(),vpr:""+this.getPlaybackRate(),vrs:""+this.rh(),vns:""+this.bz(),vec:""+this.aj(),vemsg:this.qe(),vvol:""+this.getVolume(),vdom:""+ +this.qE(),vsrc:""+ +!!this.Df(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
   g.k.addEventListener=function(a,b){this.B.Qa(a,b,!1,this);this.rD(a)};
   g.k.removeEventListener=function(a,b){this.B.jc(a,b,!1,this)};
   g.k.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
   g.k.pD=function(){this.D=!1};
   g.k.nD=function(){this.D=!0;this.Xs(!0)};
   g.k.wJ=function(){this.D&&!this.Zy()&&this.Xs(!0)};
   g.k.xa=function(){this.J&&this.removeEventListener("volumechange",this.wJ);g.I.prototype.xa.call(this)};
   var RNa=!1,UNa=!0,SNa=!0,TNa=!0;g.k=g.SJ.prototype;g.k.getData=function(){return this.stateData};
   g.k.Ec=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)};
   g.k.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)};
   g.k.isError=function(){return g.U(this,128)};
   g.k.isSuspended=function(){return g.U(this,512)};
   g.k.toString=function(){return"PSt."+this.state.toString(16)};g.w(bK,g.R);g.k=bK.prototype;g.k.Np=function(){var a=this.i;return a.u instanceof BH||a.u instanceof IH||a.u instanceof CH};
   g.k.LB=function(){return this.i.u.Oo()};
   g.k.rH=function(){return this.i.i};
   g.k.MB=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
   g.k.sH=function(){return JH(this.i)};
   g.k.vK=function(a){if(!qA(a)){this.Z&&(this.Aa=this.I.isAtLiveHead(),this.ya=Math.ceil(g.Pa()/1E3));var b=new JJ(this.Rf);a=Jqa(a);b.If(a)}this.tH()};
   g.k.hL=function(){return!0};
   g.k.Hk=function(){return this.K instanceof IH};
   g.k.Yv=function(){return this.K instanceof BH};
   g.k.tH=function(){var a=this.Rf;this.hL()&&(a.u&&eK(a,!1),a.u=this,this.Np()&&Fsa(a));if(!this.i.D.hasOwnProperty("ad_placement_start")){a=g.r(this.i.ma);for(var b=a.next();!b.done;b=a.next())cra(b.value);this.i.D.ad_placement_start=!0}Tqa(this.C);this.YM()};
   g.k.YM=function(){this.K?this.Yt(this.K):fK(this)};
   g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Ci(0);fK(this,a,b)};
   g.k.ZL=function(){this.onAdEnd()};
   g.k.oT=function(){SH(this.u.i,"active_view_measurable")};
   g.k.pT=function(){var a=this.u.i;TH(a)||aqa(a)||SH(a,"active_view_fully_viewable_audible_half_duration")};
   g.k.sT=function(){};
   g.k.tT=function(){};
   g.k.uT=function(){};
   g.k.vT=function(){};
   g.k.yT=function(){var a=this.u.i;TH(a)||aqa(a)||SH(a,"active_view_viewable")};
   g.k.eK=function(){return this.Yv()?[this.ez()]:[]};
   g.k.Mc=function(a){if(null!==this.u){this.ma||(a=new g.dI(a.state,new g.SJ),this.ma=!0);this.u.DH();var b=this.I.V();if(null!==this.u||!this.Hk()||g.lF(b)||!this.I.V().experiments.ob("html5_use_normal_timer_for_survey")){b=a.state;if(g.fI(a,2))this.u.qh();else{var c=a;(this.I.V().experiments.ob("html5_bulleit_handle_gained_playing_state")?c.state.Ec()&&!c.Sn.Ec():c.state.Ec())?(Vqa(this.C),this.u.Cn()):b.isError()?this.u.Yg(b.getData().errorCode):g.fI(a,4)&&(this.Y||this.u.Bn())}if(null!==this.u){if(g.fI(a,
   16)&&(b=this.u.i,!(TH(b)||.5>b.i.getCurrentTime(2,!1)&&!b.i.V().N("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;if(c.Vv()){var d=b.B.I.V().N("html5_dai_enable_active_view_creating_completed_adblock");Aq(c.K,d)}b.ad.J.seek=!0}0>eI(a,4)&&!(0>eI(a,2))&&(b=this.u,c=b.i,TH(c)||cI(c,"resume"),b.C||(b=b.i,TH(b)||cI(b,"unmuted_resume")));!this.I.V().experiments.ob("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.fI(a,512)&&!g.$J(a.state)&&NJ(this.C)}}}};
   g.k.onVideoDataChange=function(){return this.daiEnabled?bra(this):!1};
   g.k.resume=function(){this.u&&this.u.UF()};
   g.k.Ym=function(){this.u&&this.u.ld("adended")};
   g.k.pk=function(){this.Ym()};
   g.k.Ci=function(a){this.Rf.Ci(a)};
   g.k.eP=function(a){this.Rf.i.Oa("onAdUxUpdate",a)};
   g.k.onAdUxClicked=function(a){this.u.Ff(a)};
   g.k.DD=function(){return 1};
   g.k.KG=function(a){this.daiEnabled&&this.i.K&&this.i.i.start<=a&&a<dK(this)&&this.I.lp(a,this.i.i.end)};
   g.k.Yt=function(a){g.ue(this.u);this.u=a=this.Wo.create(a,NH(Rpa(this.i)),this.i.i.i);a.subscribe("adabandoned",g.Oa(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Oa(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.oT,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.ZL,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.pT,this);a.subscribe("adoverlaymeasurableimpression",this.sT,this);a.subscribe("adoverlayunviewableimpression",
   this.tT,this);a.subscribe("adoverlayviewableendofsessionimpression",this.uT,this);a.subscribe("adoverlayviewableimmediateimpression",this.vT,this);a.subscribe("adpause",this.dE,this);a.subscribe("adplay",this.dE,this);a.subscribe("adunstarted",this.dE,this);a.subscribe("onAdUxUpdate",this.eP,this);a.subscribe("adviewableimpression",this.yT,this);a.Aa?a.Yg("ui_unstable"):a.Zq();Rqa(this.C,this.i.i.i,!1,this.DD(),this.isLiveStream())};
   g.k.dE=function(a){this.Ci(a)};
   g.k.ez=function(){return this.K};
   g.k.isLiveStream=function(){return this.Z};
   g.k.reset=function(){return new bK(this.Rf,this.I,this.C.reset(),this.i,this.Gl,this.Jr,this.Wo,this.daiEnabled)};
   g.k.xa=function(){g.ue(this.u);this.u=null;g.R.prototype.xa.call(this)};ira.prototype.create=function(a){return(a.u instanceof CH?this.B:""===a.J?this.i:this.u)(a)};gK.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Ey(void 0===c?0:c))?(ija(this.client,c,g.Ay(a),b),b=!0):b=!1:b=!1;return b};jK.prototype.handleResponse=function(a,b){var c,d,e;b=(null===(d=null===(c=b.Vl.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars)||[];(a=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
   jK.prototype.replace=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())delete this.i[c.value.encryptedTokenJarContents];pra(this,b)};var X2;kK.getInstance=function(){X2=g.Ga("yt.clientLocationService.instance");X2||(X2=new kK,g.Fa("yt.clientLocationService.instance",X2,void 0));return X2};
   kK.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.i?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=1E7*this.i.coords.latitude,a.client.locationInfo.longitudeE7=1E7*this.i.coords.longitude,a.client.locationInfo.horizontalAccuracyMeters=this.i.coords.accuracy,a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
   kK.prototype.handleResponse=function(a){var b;a=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.i=void 0,"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")?(this.localStorage=qra(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Nt("YT_CL",JSON.stringify({Yaa:a}),15552E3,void 0,!0))};
   kK.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.Cs("web_enable_browser_geolocation_api")&&!g.Cs("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Cs("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.i=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
   maximumAge:0,timeout:c})})};
   kK.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null===a||void 0===a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null===a||void 0===a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null===a||void 0===a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};mK.prototype.Vy=function(a,b){a={};var c=Vh([]);c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.P("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in ys||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in ys&&(a["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return a};var oK;g.w(nK,mK);nK.prototype.Vy=function(a,b){a=mK.prototype.Vy.call(this,a,b);return Object.assign(Object.assign({},a),this.uq)};var Era=/[&\?]action_proxy=1/,Dra=/[&\?]token=([\w-]*)/,Fra=/[&\?]video_id=([\w-]*)/,Gra=/[&\?]index=([\d-]*)/,Hra=/[&\?]m_pos_ms=([\d-]*)/,Kra=/[&\?]vvt=([\w-]*)/,yra="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(" "),Ira="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(" "),Ara={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"},Bra={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Jra={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};qK.prototype.Ds=function(a){this.player.Ap().tick(a)};
   qK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return sK(this,a,b);var d=1===this.i;d&&this.Ds("a_bid_s");var e=tra();if(null!==e)return d&&this.Ds("a_bid_f"),sK(this,a,b,e);e=ura();d&&oh(e,function(){c.Ds("a_bid_f")});
   return e.then(function(f){return sK(c,a,b,f)})};
   qK.prototype.reset=function(){this.u=this.i=1};g.w(tK,g.R);g.k=tK.prototype;g.k.rH=function(){return this.i.i};
   g.k.MB=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
   g.k.sH=function(){return JH(this.i)};
   g.k.Np=function(){return!1};
   g.k.LB=function(){return!1};
   g.k.onAdUxClicked=function(){};
   g.k.vK=function(a){var b=this;this.B.V().N("html5_pacf_enable_non_dai_live_video_ads")&&T("Fetching logic is still in use while live midroll is on PACF");if(1!==this.i.B&&2!==this.i.B){var c=[];this.MB()||(c=Jqa(a));this.i.B=1;oh(this.D.fetch(this.i.J,{Tu:this.i.C||void 0,Cd:this.i.i}).then(function(d){if(!b.isDisposed()){var e=c;b.B.isFullscreen();d=Mra(b,d);var f=b.C;f.u&&d.isEmpty&&LJ("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.iL||(b.i.B=2,(new JJ(b.u)).If(e),d.isEmpty||vja(b.J,d.yl))}},function(){(new JJ(b.u)).If(c);
   var d=b.C;d.u&&LJ("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.B&&(b.i.B=0);
   b.MB()&&GK(b.u)})}};
   g.k.tH=function(){};
   g.k.KG=function(){};var Pra=Object.freeze([jI,mI,IH,oI,BH]);g.w(uK,bK);g.k=uK.prototype;g.k.eK=function(){for(var a=this.B.i,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
   g.k.hL=function(){return(0>=this.D?this.B.i:this.B.i.slice(this.D)).some(function(a){return a.us()})};
   g.k.Hk=function(){return this.J instanceof IH||this.J instanceof oI};
   g.k.Yv=function(){return this.J instanceof BH||this.J instanceof mI};
   g.k.YM=function(){this.daiEnabled?dH(this.I)&&bra(this):Ora(this)};
   g.k.Yt=function(a){var b=Nra(a);this.J&&b&&this.S!==b&&(b?Fsa(this.Rf):Hsa(this.Rf),this.S=b);this.J=a;this.daiEnabled&&(this.D=this.B.i.findIndex(function(c){return c===a}));
   bK.prototype.Yt.call(this,a)};
   g.k.pk=function(){this.D=this.B.i.length;this.u&&this.u.ld("adended");fK(this)};
   g.k.Ym=function(){this.onAdEnd()};
   g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ci(0),a?fK(this,a,b):Ora(this))};
   g.k.ZL=function(){if(1==this.B.u)fK(this);else this.onAdEnd()};
   g.k.ez=function(){var a=0>=this.D?this.B.i:this.B.i.slice(this.D);return 0<a.length?a[0]:null};
   g.k.Np=function(){return this.S};
   g.k.LB=function(){return this.B.i.every(function(a){return a.Oo()})};
   g.k.reset=function(){return new uK(this.Rf,this.I,this.C.reset(),this.i,this.Gl,this.Jr,this.Wo,this.daiEnabled)};
   g.k.DD=function(){return this.B.i.length};Qra.prototype.bK=function(){return this.i};g.w(Rra,CH);g.w(Tra,CH);Ura.prototype.create=function(a,b){function c(l){return new BH(l,d.B,b,d.i,d.u)}
   var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,h=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new IH(f):null!=h?new Tra(h,c,this.i):null!=a?new Rra(a,c):null};Vra.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 Bja(h.B,h.u,h.daiEnabled,h.C),m=h.oe;m&&(l.oe=new dA(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.i));h.i&&(l.i=h.i);l.visible=h.visible;h=l;h.oe=f;e.push(Wra(this,a[0],c,h));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(Wra(this,d.value,c,b)),c++;return e};g.w(vK,g.I);vK.prototype.addEventListener=function(a,b){this.i=b};
   vK.prototype.removeEventListener=function(){this.i=null};
   g.w(wK,g.I);wK.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
   wK.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.w(Zra,g.I);var xK=null,asa=null,yK=null,zK=null,AK=null;g.Fa("yt.www.ads.eventcache.getLastCompanionData",function(){return xK},void 0);
   g.Fa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return asa},void 0);
   g.Fa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return yK},void 0);
   g.Fa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return zK},void 0);
   g.Fa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return AK},void 0);var msa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(DK,g.I);DK.prototype.xa=function(){this.Ld.clear();g.I.prototype.xa.call(this)};
   DK.prototype.Id=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)};
   DK.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&nsa(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?jsa(this,e):"confirmDialogEndpoint"===d?ksa(this,e):msa.hasOwnProperty(d)||nsa(this,d,e,b,c)}};g.w(ssa,g.I);g.w(FK,g.R);g.k=FK.prototype;g.k.fE=function(){return!Asa(this,Dsa(this))};
   g.k.Ty=function(){return this.Ja};
   g.k.xa=function(){this.ya=!0;g.my(this.C);this.J&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.lM,this);if(rH(this.i)){var a=vsa(this.i);a.removeEventListener("updateKevlarOrC3Companion",$ra);a.removeEventListener("onPlaShelfInfoCardsReady",bsa);a.removeEventListener("updateEngagementPanelAction",csa);a.removeEventListener("changeEngagementPanelVisibility",dsa);a.removeEventListener("scrollToEngagementPanel",esa);window.removeEventListener("yt-navigate-start",fsa);AK=zK=yK=xK=null}a=
   g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())Gsa(this,b.value);eK(this,!1);this.Xo.clear();this.Y=[];this.S.clear();g.ue(this.ma);this.ma=new Map;g.ue(this.K);this.K=new Map;this.B.clear();g.R.prototype.xa.call(this)};
   g.k.gF=function(a){if(a instanceof pA&&!a.B&&(!Rja(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.U(this.i.yb(1),32))this.S.add(a);else{var b=this.B.get(a);b&&((this.i.V().experiments.ob("enable_eviction_protection_for_bulleit")?this.u?this.u.LB():1:1)?b.vK(a):a.deactivate())}};
   g.k.fU=function(a){a instanceof pA&&(a.B&&(a.B=!1),this.S.delete(a))};
   g.k.lM=function(a){Mqa(this.Ka,a);null==this.J?g.Gs(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request.")):0!=(this.i.getCurrentTime(1)||0)&&(a=a.filter(function(b){return"start"==b.event}),HK(this,[this.J],a))};
   g.k.sF=function(a){HK(this,[this.J],[a])};
   g.k.mM=function(a){var b=1E3*a;this.u&&this.u.KG(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.KG(b);g.Pb(this.Ra.i,1E3*a)};
   g.k.Kk=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.Yv()?a.I.Kc().playVideo():a.Hk()&&a.u.Cn());break;case "control_pause":this.u&&(a=this.u,a.Yv()?a.I.Kc().pauseVideo():a.Hk()&&a.u.Bn())}};
   g.k.gP=function(a){this.u&&this.u.Mc(a)};
   g.k.IT=function(a){0>eI(a,16)&&(this.S.forEach(this.gF,this),this.S.clear())};
   g.k.iW=function(){if(this.u)this.u.onVideoDataChange()};
   g.k.lW=function(){if(dH(this.i)&&this.u){var a=this.i.getCurrentTime(2,!1),b=this.u;b.u&&iI(b.u,a)}};
   g.k.mT=function(){this.Ya=!0;if(this.u){var a=this.u;a.u&&a.u.vg()}};
   g.k.wT=function(a){if(this.u)this.u.onAdUxClicked(a)};
   g.k.mW=function(){if(2==this.i.getPresentingPlayerType()&&this.u){var a=this.u.u,b=a.i,c=a.I.isMuted();UH(b)||SH(b,c?"mute":"unmute");a.C||(b=a.I.isMuted(),SH(a.i,b?"unmuted_mute":"unmuted_unmute"))}};
   g.k.oU=function(a){if(this.u){var b=this.u.u,c=b.i;TH(c)||$H(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.i,TH(b)||$H(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
   g.k.If=function(a,b){this.i.If(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Xo.delete(b),this.B.delete(b)};
   g.k.HX=function(){for(var a=[],b=g.r(this.Xo),c=b.next();!c.done;c=b.next())c=c.value,qA(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||ZX(b,"cuerangemarkersupdated",a)};
   g.k.Ci=function(a){this.i.Ci(a);switch(a){case 1:this.sz=1;break;case 0:this.sz=0}};
   g.k.mG=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.Z:!1};
   g.k.Ym=function(){this.u&&this.u.Np()&&this.u.Ym()};
   g.k.pk=function(){this.u&&this.u.Np()&&this.u.pk()};
   g.k.Jy=function(){};
   g.k.sy=function(){};
   g.k.Qb=function(a){if(this.u){var b=this.u;b.u&&iI(b.u,a)}};
   g.k.Hk=function(){return dH(this.i)&&!!this.u&&this.u.Hk()};
   g.k.executeCommand=function(a,b,c){var d=this.jb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.u,c=f.ad.Vv()?XH(f.i,c):{}):c={}}else c={};e.call(d,a,b,c)};
   g.k.bK=function(){return this.Ea};
   g.k.cK=function(){return this.La};g.w(IK,g.I);IK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
   g.w(JK,IK);g.w(Ksa,g.I);var Msa=1;g.w(g.LK,g.I);g.k=g.LK.prototype;
   g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ha;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.BF&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.Gg(a.G);if(c){if(c=MK(this,e,"class",c))NK(this,e,"class",c),this.Ya[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Ya[f.value]=e;NK(this,e,"class",d.join(" "))}d=a.va;c=a.U;if(d)b=MK(this,e,"child",d),void 0!==b&&e.appendChild(g.Hg(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=MK(this,e,"child",f),null!=f&&e.appendChild(g.Hg(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ob&&(h=KK(),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.Jg(e,f,d++))}if(a=a.W)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],NK(this,b,c,"string"===typeof f?
   MK(this,b,c,f):f);return e};
   g.k.Fa=function(a){return this.Ya[a]};
   g.k.Da=function(a,b){"number"===typeof b?g.Jg(a,this.element,b):a.appendChild(this.element)};
   g.k.detach=function(){g.Kg(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.Sa(c,a[c])};
   g.k.Sa=function(a,b){(a=this.Zb["{{"+a+"}}"])&&NK(this,a[0],a[1],b)};
   g.k.xa=function(){this.Ya={};this.Zb={};this.detach();g.I.prototype.xa.call(this)};g.w(g.V,g.LK);g.k=g.V.prototype;g.k.kd=function(a,b){this.Sa(b||"content",a)};
   g.k.show=function(){this.Ab||(g.Sl(this.element,"display",""),this.Ab=!0)};
   g.k.hide=function(){this.Ab&&(g.Sl(this.element,"display","none"),this.Ab=!1)};
   g.k.Yb=function(a){this.Z=a};
   g.k.Qa=function(a,b,c){return this.T(this.element,a,b,c)};
   g.k.T=function(a,b,c,d){c=(0,g.E)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
   g.k.jc=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;Pg(a);a.focus()};
   g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.LK.prototype.xa.call(this)};g.w(g.PK,g.V);g.PK.prototype.subscribe=function(a,b,c){return this.Ka.subscribe(a,b,c)};
   g.PK.prototype.unsubscribe=function(a,b,c){return this.Ka.unsubscribe(a,b,c)};
   g.PK.prototype.eg=function(a){return this.Ka.eg(a)};
   g.PK.prototype.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.Ka.ea.apply(this.Ka,[a].concat(g.v(c)))};var VNa=new WeakSet;g.w(QK,g.PK);g.k=QK.prototype;g.k.bind=function(a){if(!this.Ra&&a.renderer){var b=Object.assign({},Jsa(this.api,this.Wa),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
   g.k.init=function(a,b,c){this.Ra=a;this.element.setAttribute("id",this.Ra);this.kb&&g.N(this.element,this.kb);this.S=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Rg(this.element,this.J)};
   g.k.clear=function(){};
   g.k.hide=function(){g.PK.prototype.hide.call(this);null!=this.J&&this.ib(this.element,!1)};
   g.k.show=function(){g.PK.prototype.show.call(this);if(!this.jb){this.jb=!0;var a=this.S&&this.S.impressionCommand;a&&Osa(this,a,null)}null!=this.J&&this.ib(this.element,!0)};
   g.k.onClick=function(a){if(this.J&&!VNa.has(a)){var b=this.element;this.api.Rv(b)&&this.Ab&&this.api.Fb(b,this.ub);VNa.add(a)}if(a=this.S&&this.S.clickCommand)a=this.fN(a),Osa(this,a,this.fK())};
   g.k.fN=function(a){return a};
   g.k.fK=function(){return null};
   g.k.jP=function(a){var b=this.ma;b.K=!0;b.u=a.touches.length;b.i.isActive()&&(b.i.stop(),b.D=!0);a=a.touches;b.J=Lsa(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.S=Infinity,b.Z=Infinity):(b.S=c.clientX,b.Z=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
   g.k.iP=function(a){var b=this.ma;a=a.changedTouches.item(0);if(Bc()&&!(0<=g.nb(Cc(),8))||a&&Math.pow(a.clientX-b.S,2)+Math.pow(a.clientY-b.Z,2)>Math.pow(5,2))b.C=!0};
   g.k.hP=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&Lsa(b,c)&&(b.Y=a,b.i.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}};
   g.k.Rg=function(a,b){this.api.Rg(a,this);this.api.ym(a,b)};
   g.k.ib=function(a,b){this.api.Rv(a)&&this.api.ib(a,b,this.ub)};
   g.k.xa=function(){this.clear(null);this.jc(this.eb);for(var a=g.r(this.ya),b=a.next();!b.done;b=a.next())this.jc(b.value);g.PK.prototype.xa.call(this)};g.w(dL,QK);
   dL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.i=b;if(null==b.text&&null==b.icon)Is(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.N(this.element,a);null!=b.text&&(a=g.sA(b.text),g.$a(a)||(this.element.setAttribute("aria-label",a),this.B=new g.PK({G:"span",L:"ytp-ad-button-text",va:a}),g.J(this,this.B),this.B.Da(this.element)));null!=b.icon&&(b=cL(b.icon),null!=
   b&&(this.u=new g.PK({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.J(this,this.u)),this.C?g.Jg(this.element,this.u.element,0):this.u.Da(this.element))}};
   dL.prototype.clear=function(){this.hide()};
   dL.prototype.onClick=function(a){var b=this;QK.prototype.onClick.call(this,a);eta(this).forEach(function(c){return b.Wa.executeCommand(c,b.macros)});
   this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(eL,g.I);eL.prototype.xa=function(){this.u&&g.Bu(this.u);this.i.clear();fL=null;g.I.prototype.xa.call(this)};
   eL.prototype.register=function(a,b){b&&this.i.set(a,b)};
   var fL=null;g.w(hL,QK);
   hL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.Gs(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new dL(this.api,this.Wa,this.layoutId,this.ub),g.J(this,this.button),this.button.init(tH("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.sA(a)),this.button.Da(this.element),this.D&&!g.Qq(this.button.element,"ytp-ad-clickable")&&g.N(this.button.element,"ytp-ad-clickable"),
   a&&(this.u=new g.PK({G:"div",L:"ytp-ad-hover-text-container"}),this.C&&(b=new g.PK({G:"div",L:"ytp-ad-hover-text-callout"}),b.Da(this.u.element),g.J(this,b)),g.J(this,this.u),this.u.Da(this.element),b=gL(a),g.Jg(this.u.element,b,0)),this.show())};
   hL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();QK.prototype.hide.call(this)};
   hL.prototype.show=function(){this.button&&this.button.show();QK.prototype.show.call(this)};g.w(jL,QK);jL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&iL(a)||"";g.$a(b)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&Is(Error("Found AdImage without valid image URL")):(this.i?g.Sl(this.element,"backgroundImage","url("+b+")"):xg(this.element,{src:b}),xg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
   jL.prototype.clear=function(){this.hide()};g.w(kL,QK);g.k=kL.prototype;g.k.hide=function(){QK.prototype.hide.call(this);this.B&&this.B.focus()};
   g.k.show=function(){this.B=document.activeElement;QK.prototype.show.call(this);this.C.focus()};
   g.k.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.Gs(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.Gs(Error("ConfirmDialogRenderer.cancelLabel was not set.")):ita(this,b):g.Gs(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
   g.k.clear=function(){g.my(this.i);this.hide()};
   g.k.dF=function(){this.hide()};
   g.k.RB=function(){var a=this.u.cancelEndpoint;a&&this.Wa.executeCommand(a,this.macros);this.hide()};
   g.k.eF=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Wa.executeCommand(a,this.macros);this.hide()};g.w(lL,QK);g.k=lL.prototype;
   g.k.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.Gs(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.Gs(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.N(this.B,a)}a={};b.defaultText?
   (c=g.sA(b.defaultText),g.$a(c)||(a.buttonText=c,this.i.setAttribute("aria-label",c))):g.hm(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.i.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=cL(b.defaultIcon),this.Sa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.K=!0,c=cL(b.toggledIcon),this.Sa("toggledIconTemplateSpec",c)):(g.hm(this.D,!0),g.hm(this.C,!1)),g.hm(this.i,!1)):g.hm(this.Y,!1);g.lc(a)||this.update(a);b.isToggled&&
   (g.N(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));mL(this);this.T(this.element,"change",this.EH);this.show()}};
   g.k.onClick=function(a){0<this.ya.length&&(this.toggleButton(!this.isToggled()),this.EH());QK.prototype.onClick.call(this,a)};
   g.k.EH=function(){var a=this;g.O(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());jta(this,this.isToggled()).forEach(function(b){return a.Wa.executeCommand(b,a.macros)});
   if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);mL(this)};
   g.k.clear=function(){this.hide()};
   g.k.toggleButton=function(a){g.O(this.B,"ytp-ad-toggle-button-toggled",a);this.i.checked=a;mL(this)};
   g.k.isToggled=function(){return this.i.checked};g.w(nL,ky);nL.prototype.S=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 rA&&this.C(b)}};g.w(oL,QK);g.k=oL.prototype;g.k.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.Gs(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&Is(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&Is(Error("AdFeedbackRenderer.title was not set.")),nta(this,b)):g.Gs(Error("AdFeedbackRenderer.reasons were not set."))};
   g.k.clear=function(){Ku(this.D);Ku(this.K);this.C.length=0;this.hide()};
   g.k.hide=function(){this.i&&this.i.hide();this.u&&this.u.hide();QK.prototype.hide.call(this);this.B&&this.B.focus()};
   g.k.show=function(){this.i&&this.i.show();this.u&&this.u.show();this.B=document.activeElement;QK.prototype.show.call(this);this.D.focus()};
   g.k.gM=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ea("a");this.hide()};
   g.k.hW=function(){this.hide()};
   ota.prototype.isChecked=function(){return this.B.checked};g.w(pL,kL);pL.prototype.dF=function(a){kL.prototype.dF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
   pL.prototype.RB=function(a){kL.prototype.RB.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
   pL.prototype.eF=function(a){kL.prototype.eF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ea("b")};g.w(qL,QK);g.k=qL.prototype;
   g.k.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.D=b;if(null==b.dialogMessage&&null==b.title)g.Gs(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&Is(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.i=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.J(this,this.i),
   this.i.init(tH("button"),a,this.macros),this.i.Da(this.element);b.title&&(a=g.sA(b.title),this.Sa("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=gL(a[c]);if(!g.$a(d.textContent)){var e=Fg("LI");e.appendChild(d);this.Ea.appendChild(e)}}else g.hm(this.Ea,!1);b.dialogMessage&&(a=gL(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.sA(b.confirmLabel),this.Sa("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?Is(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?qta(this,a):c&&rta(this,c),this.B=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-info-dialog-mute-button"],"button",!0),g.J(this,this.B),this.B.init(tH("button"),b,this.macros),this.B.Qa("click",this.KU,this),this.B.Da(this.Ua)));
   sta(this)}};
   g.k.clear=function(){Ku(this.K);this.hide()};
   g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.i&&this.i.hide();this.B&&this.B.hide();QK.prototype.hide.call(this);this.Y&&this.Y.focus()};
   g.k.show=function(){this.i&&this.i.show();this.B&&this.B.show();this.Ja||(pta(this),this.Ja=!0);this.Y=document.activeElement;QK.prototype.show.call(this);this.K.focus()};
   g.k.FH=function(){this.D&&this.D.confirmServiceEndpoint&&this.Wa.executeCommand(this.D.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ea("d");this.hide()};
   g.k.KU=function(){var a=this.u?this.u:this.C;a&&!a.Ab&&(this.hide(),a.show())};g.w(rL,hL);rL.prototype.init=function(a,b,c){hL.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(vta(this,a,c),this.show())};
   rL.prototype.hide=function(){this.button&&this.button.hide();this.i&&this.i.hide();hL.prototype.hide.call(this)};
   rL.prototype.show=function(){this.button&&this.button.show();hL.prototype.show.call(this)};
   rL.prototype.clear=function(){this.hide()};g.w(sL,QK);sL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.i=b;this.isTemplated()||g.Ng(this.element,RK(this.i));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?iL(a):"",c=(c=this.api.getVideoData(1))&&c.Tj,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
   sL.prototype.isTemplated=function(){return this.i.isTemplated||!1};
   sL.prototype.clear=function(){this.hide()};var Ata={seekableStart:0,seekableEnd:1,current:0};g.w(uL,QK);uL.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.r(f);f=h.next().value;h=ka(h);return a.apply(f,h)}
   function d(f){f=g.r(f);f.next();f=ka(f);return b(e,f)}
   b=void 0===b?Xga:b;var e=g.Na(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.D;var m=dNa.get(l);m||(m={},dNa.set(l,m));return Fc(m,[this].concat(g.v(h)),c,d)}})(function(a){var b=g.Gg("DIV");
   a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Gg("DIV");g.fm(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Kg(b);return a});g.w(g.xL,g.I);g.k=g.xL.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.kB(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.Ab||(yL(this,!0),this.state=1,a?this.delay.start(a):this.kB()))};
   g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ab&&(yL(this,!0),this.state=4,this.delay.start(this.C)))};
   g.k.kB=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:yL(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();yL(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.kB()};
   g.k.xa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.xa.call(this)};g.w(zL,uL);g.k=zL.prototype;
   g.k.init=function(a,b,c){uL.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.Gs(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ua&&g.N(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.i.zv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(tH("ad-text"),d,c);(d=this.api.getVideoData(1))&&
   d.Tj&&b.thumbnail?this.D.init(tH("ad-image"),b.thumbnail,c):this.K.hide()};
   g.k.clear=function(){this.hide()};
   g.k.hide=function(){this.u.hide();this.B.hide();this.D.hide();wL(this);uL.prototype.hide.call(this)};
   g.k.show=function(){vL(this);this.u.show();this.B.show();this.D.show();uL.prototype.show.call(this)};
   g.k.qq=function(){this.hide()};
   g.k.ao=function(){if(null!=this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ja&&a>=this.Aa?(this.Y.hide(),this.Ja=!0,this.ea("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.La&&(tL(this.B,{TIME_REMAINING:String(a)}),this.La=a)))}};g.w(BL,uL);g.k=BL.prototype;
   g.k.init=function(a,b,c){uL.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.$a(g.ig(d[0].url))&&(d[0].url=a.Ph)}else g.My(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.K.init(tH("ad-image"),b.image,c);this.D.init(tH("ad-text"),
   b.headline,c);this.B.init(tH("ad-text"),b.description,c);this.u.init(tH("button"),b.actionButton.buttonRenderer,c);this.Y=b.actionButton.buttonRenderer.navigationEndpoint;this.api.sE()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.DK.bind(this));this.Aa=b.startMs||0;vL(this)}else g.Ly(Error("FlyoutCtaRenderer has no valid action button."));else g.Ly(Error("FlyoutCtaRenderer has no description AdText."));else g.Ly(Error("FlyoutCtaRenderer has no headline AdText."));else g.My(Error("FlyoutCtaRenderer has no image."))};
   g.k.onClick=function(a){uL.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Mg(this.u.element,a.target)&&this.Y&&this.Wa.executeCommand(this.Y,this.macros)};
   g.k.ao=function(){if(this.i){var a=this.i.getProgressState();a&&a.current&&1E3*a.current>=this.Aa&&(wL(this),g.Sq(this.element,"ytp-flyout-cta-inactive"))}};
   g.k.qq=function(){this.clear()};
   g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.DK.bind(this))};
   g.k.show=function(){this.u&&this.u.show();uL.prototype.show.call(this)};
   g.k.hide=function(){this.u&&this.u.hide();uL.prototype.hide.call(this)};
   g.k.DK=function(a){a?this.hide():this.show()};g.w(CL,QK);g.k=CL.prototype;g.k.init=function(a,b,c){var d=this;QK.prototype.init.call(this,a,b,c);this.i=b;this.i.rectangle&&(wta(this,c),this.C.show(100),this.show(),(this.i&&this.i.impressionCommands||[]).forEach(function(e){return d.Wa.executeCommand(e,d.macros)}))};
   g.k.clear=function(){this.hide()};
   g.k.hide=function(){this.B.hide();this.u.hide();QK.prototype.hide.call(this)};
   g.k.show=function(){this.B.show();this.u.show();QK.prototype.show.call(this)};
   g.k.GH=function(){Uq(this.element,"ytp-ad-instream-user-sentiment-selected");this.i.postMessageAction&&this.api.Oa("onYtShowToast",this.i.postMessageAction);this.C.hide()};
   g.k.onClick=function(a){0<this.ya.length&&this.GH();QK.prototype.onClick.call(this,a)};g.w(DL,g.I);g.k=DL.prototype;g.k.xa=function(){this.reset();g.I.prototype.xa.call(this)};
   g.k.reset=function(){g.my(this.C);this.J=!1;this.i&&this.i.stop();this.D.stop();this.u&&(this.u=!1,this.K.play())};
   g.k.start=function(){this.reset();this.C.T(this.B,"mouseover",this.lP,this);this.C.T(this.B,"mouseout",this.kP,this);this.i?this.i.start():(this.J=this.u=!0,g.Sl(this.B,{opacity:this.Z}))};
   g.k.lP=function(){this.u&&(this.u=!1,this.K.play());this.D.stop();this.i&&this.i.stop()};
   g.k.kP=function(){this.J?this.D.start():this.i&&this.i.start()};
   g.k.XI=function(){this.u||(this.u=!0,this.S.play(),this.J=!0)};g.w(EL,uL);g.k=EL.prototype;
   g.k.init=function(a,b,c){uL.prototype.init.call(this,a,b,c);this.K=b;this.Aa=yta(this);if(!b||g.lc(b))g.Gs(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.lc(b.message))g.Gs(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=cL(a);null==b?g.Gs(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.D=new g.PK({G:"button",Ha:["ytp-ad-skip-button","ytp-button"],U:[{G:"span",
   L:"ytp-ad-skip-button-icon",U:[b]}]}),g.J(this,this.D),this.D.Da(this.B.element),this.u=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-skip-button-text"),this.u.init(tH("ad-text"),this.K.message,c),g.J(this,this.u),g.Jg(this.D.element,this.u.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.ya.length)&&c.isMobile&&(UE?0:"ontouchstart"in document.documentElement&&(Gl()||Fl()))&&(this.jc(this.eb),d&&this.jc(d),this.ya=[this.T(this.element,"touchstart",this.jP,this),this.T(this.element,
   "touchmove",this.iP,this),this.T(this.element,"touchend",this.hP,this)])}};
   g.k.clear=function(){this.Y.reset();this.hide()};
   g.k.hide=function(){this.B.hide();this.u&&this.u.hide();wL(this);uL.prototype.hide.call(this)};
   g.k.onClick=function(a){if(null!=this.D&&(a&&g.Gu(a),uL.prototype.onClick.call(this,a),this.ea("j"),this.Ja||!this.Aa))this.api.onAdUxClicked(this.componentType,this.layoutId)};
   g.k.fN=function(a){if(!this.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")||!this.Ja)return a;var b,c=null==(b=a.commandExecutorCommand)?void 0:b.commands;if(!c)return a;b=[];for(var d=0;d<c.length;d++){var e=a.commandExecutorCommand.commands[d];e.adLifecycleCommand&&xta(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
   g.k.fK=function(){return"skip"};
   g.k.show=function(){this.Y.start();this.B.show();this.u&&this.u.show();vL(this);uL.prototype.show.call(this)};
   g.k.qq=function(){this.ea("k")};
   g.k.ao=function(){};g.w(FL,uL);g.k=FL.prototype;
   g.k.init=function(a,b,c){uL.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.lc(a)?null:a){this.K=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.jE(this.api.V().experiments,"preskip_button_style_ads_backend")&&kF(this.api.V());this.u=new zL(this.api,this.Wa,this.layoutId,this.ub,this.i,d);this.u.init(tH("preskip-component"),a,c);AL(this.u);g.J(this,this.u);this.u.Da(this.element)}else b.skipOffsetMilliseconds&&
   (this.K=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.lc(b)?null:b;null==b?g.Gs(Error("SkipButtonRenderer was not set in player response.")):(this.B=new EL(this.api,this.Wa,this.layoutId,this.ub,this.i,this.Y),this.B.init(tH("skip-button"),b,c),g.J(this,this.B),this.B.Da(this.element),this.show())};
   g.k.show=function(){this.D&&this.B?this.B.show():this.u&&this.u.show();vL(this);uL.prototype.show.call(this)};
   g.k.qq=function(){};
   g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();wL(this);uL.prototype.hide.call(this)};
   g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();wL(this);uL.prototype.hide.call(this)};
   g.k.ao=function(){1E3*this.i.getProgressState().current>=this.K&&zta(this,!0)};g.w(GL,dL);GL.prototype.init=function(a,b,c){dL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.sA(b.text),a=!g.$a(a));a?null==b.navigationEndpoint?Is(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?Is(Error("Button style was not a link-style type in renderer,")):this.show():Is(Error("No visit advertiser text was present in the renderer."))};g.w(HL,QK);HL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);a=b.text;g.$a(RK(a))?Is(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.i&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new sL(this.api,this.Wa,this.layoutId,this.ub),a.init(tH("simple-ad-badge"),b,c),a.Da(this.element),g.J(this,a)),this.show())};
   HL.prototype.clear=function(){this.hide()};g.w(IL,uH);g.w(JL,g.R);g.k=JL.prototype;g.k.zv=function(){return this.durationMs};
   g.k.stop=function(){this.i&&this.Ae.jc(this.i)};
   g.k.Qb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")};
   g.k.getProgressState=function(){return this.u};
   g.k.Mc=function(a){g.fI(a,2)&&this.ea("g")};g.w(KL,g.R);g.k=KL.prototype;g.k.zv=function(){return this.durationMs};
   g.k.start=function(){this.B||(this.B=!0,this.i.start(),this.C=Date.now())};
   g.k.stop=function(){this.B&&(this.B=!1,this.i.stop())};
   g.k.Qb=function(){var a=Date.now(),b=a-this.C;this.J?(this.C=a,this.u+=b):this.u+=100;a=!1;this.u>this.durationMs&&(this.u=this.durationMs,this.i.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.u/1E3};this.Wa&&this.Wa.Qb(this.D.current);this.ea("h");a&&this.ea("g")};
   g.k.getProgressState=function(){return this.D};g.w(NL,uL);g.k=NL.prototype;g.k.init=function(a,b,c){var d;uL.prototype.init.call(this,a,b,c);if(null===(d=null===b||void 0===b?void 0:b.templatedCountdown)||void 0===d?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){Is(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new sL(this.api,this.Wa,this.layoutId,this.ub);this.u.init(tH("ad-text"),a,{});this.u.Da(this.element);g.J(this,this.u)}this.show()};
   g.k.clear=function(){this.hide()};
   g.k.hide=function(){wL(this);uL.prototype.hide.call(this)};
   g.k.qq=function(){this.hide()};
   g.k.ao=function(){if(null!=this.i){var a=this.i.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.i instanceof JL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.i instanceof KL?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.LL(a);tL(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
   g.k.show=function(){vL(this);uL.prototype.show.call(this)};g.w(OL,sL);OL.prototype.onClick=function(a){sL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(TL,g.PK);TL.prototype.Qb=function(){var a=this.u.getProgressState();this.Oc.style.width=100*SL(new PL(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
   TL.prototype.onStateChange=function(){g.eF(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.u.subscribe("h",this.Qb,this),this.Qb()):-1!==this.i&&(this.hide(),this.u.eg(this.i),this.i=-1))};g.w(UL,QK);
   UL.prototype.init=function(a,b,c,d){QK.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new FL(this.api,this.Wa,this.layoutId,this.ub,this.i,this.D),c.Da(this.C),c.init(tH("skip-button"),a.skipAdRenderer,this.macros),g.J(this,c)):a.adPreviewRenderer&&(c=new zL(this.api,this.Wa,this.layoutId,this.ub,this.i,!1),c.Da(this.C),c.init(tH("ad-preview"),a.adPreviewRenderer,this.macros),AL(c),g.J(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
   new CL(this.api,this.Wa,this.layoutId,this.ub),c.Da(this.Y),c.init(tH("instream-user-sentiment"),a,this.macros),g.J(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new BL(this.api,this.Wa,this.layoutId,this.ub,this.i),g.J(this,c),c.Da(this.K),c.init(tH("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 HL(this.api,this.Wa,this.layoutId,
   this.ub,!0),g.J(this,c),c.Da(this.u),c.init(tH("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 NL(this.api,this.Wa,this.layoutId,this.ub,this.i,d),g.J(this,d),d.Da(this.u),d.init(tH("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new rL(this.api,this.Wa,this.layoutId,
   this.ub,this.element),g.J(this,a),a.Da(this.u),a.init(tH("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=Bta(this)&&this.B?this.B:this.u))&&(a=new GL(this.api,this.Wa,this.layoutId,this.ub),g.J(this,a),a.Da(d),a.init(tH("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!bF(b)&&"3"==b.controlsType&&(b=new TL(this.api,this.i),b.Da(this.Aa),g.J(this,b));this.api.V().N("enable_updated_html5_player_focus_style")&&
   g.N(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
   UL.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.jv,void 0);var dM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Y2={},Lta=(Y2.WEB_UNPLUGGED="^unplugged/",Y2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Y2.WEB_UNPLUGGED_OPS="^unplugged/",Y2.WEB_UNPLUGGED_PUBLIC="^unplugged/",Y2.WEB_CREATOR="^creator/",Y2.WEB_KIDS="^kids/",Y2.WEB_EXPERIMENTS="^experiments/",Y2.WEB_MUSIC="^music/",Y2.WEB_REMIX="^music/",Y2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Y2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Y2);aM.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?dM:c;var d={context:lK(a.clickTrackingParams,!1,this.C)};var e=this.i(a);if(e){this.u(d,e,b);var f,h;b=g.YL(this.B());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=Nta(ZL(b),void 0);d={input:f,wq:$L(f),Vl:d,config:Object.assign({},void 0)};d.config.fp?d.config.fp.identity=c:d.config.fp={identity:c};return d}g.Ly(new g.dw("Error: Failed to create Request from Command.",
   a))};
   ea.Object.defineProperties(aM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(bM,aM);bM.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",wq:$L("/getDatasyncIdsEndpoint","GET"),Vl:{}}};
   bM.prototype.B=function(){return[]};
   bM.prototype.i=function(){};
   bM.prototype.u=function(){};var WNa={},Ota=(WNa.GET_DATASYNC_IDS=bM,WNa);g.w(fM,aM);fM.prototype.B=function(){return oNa};
   fM.prototype.i=function(a){return a.subscribeEndpoint};
   fM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
   ea.Object.defineProperties(fM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(gM,aM);gM.prototype.B=function(){return pNa};
   gM.prototype.i=function(a){return a.unsubscribeEndpoint};
   gM.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
   ea.Object.defineProperties(gM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(hM,aM);hM.prototype.B=function(){return lNa};
   hM.prototype.i=function(a){return a.feedbackEndpoint};
   hM.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
   ea.Object.defineProperties(hM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(iM,aM);iM.prototype.B=function(){return mNa};
   iM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
   iM.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(jM,aM);jM.prototype.B=function(){return nNa};
   jM.prototype.i=function(a){return a.playlistEditEndpoint};
   jM.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(kM,aM);kM.prototype.B=function(){return kNa};
   kM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
   kM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};lM.prototype.fetch=function(a,b){var c=this;a=new window.Request(a,b);return Promise.resolve(fetch(a).then(function(d){return c.handleResponse(d)}).catch(function(d){g.My(d)}))};
   lM.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
   a.redirected||a.ok||(b=b.then(function(c){g.My(new g.dw("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
   return b};var mM;oM.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f,h,l=new XMLHttpRequest;l.onerror=function(){e(d.handleResponse(a,l.status,l.response))};
   l.onload=function(){e(d.handleResponse(a,l.status,l.response))};
   if(null===c||void 0===c?0:c.Js)l.onreadystatechange=function(q){c.Js(l,q)};
   l.open(null!==(f=b.method)&&void 0!==f?f:"GET",a,!0);l.responseType="text";l.withCredentials=!0;if(b.headers)for(var m=g.r(Object.entries(b.headers)),n=m.next();!n.done;n=m.next()){var p=g.r(n.value);n=p.next().value;p=p.next().value;l.setRequestHeader(n,p)}l.send(null!==(h=b.body)&&void 0!==h?h:null)})};
   oM.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.My(new g.dw("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.My(new g.dw("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var Vta=[],pM=!1;qM.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new qM,g.Fa("ytglobal.storage_",a,void 0));return a};
   qM.prototype.estimate=function(){var a,b;return g.H(this,function d(){var e;return g.B(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f.return(e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?f.return(Yta()):f.return()})})};
   g.Fa("ytglobal.storageClass_",qM,void 0);Xv.prototype.ge=function(a){this.handleError(a)};
   Xv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Cs("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Cs("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":$ta(this,b);break;case "TRANSACTION_ENDED":this.B&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},
   b),{hasWindowUnloaded:this.u}),this.i("idbTransactionAborted",a)}};rM.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var h=null!==(e=a.interpreterScript)&&void 0!==e?e:null,l=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){var m=a.interpreterSafeScript;h=g.lf("From proto message. b/166824318");m=m.privateDoNotAccessOrElseSafeScriptWrappedValue||"";kf(h);kf(h);h=(h=ff())?h.createScript(m):m;h=(new nf(h,mf)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl,l=Rf(g.lf("From proto message. b/166824318"),
   l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());bua(this,h,l,a.program,b,c,d)}else g.My(Error("Cannot initialize botguard without program"))};
   rM.prototype.Zd=function(){return!!this.i};
   rM.prototype.invoke=function(a){a=void 0===a?{}:a;return this.i?this.i.hasOwnProperty("hot")?this.i.hot(void 0,void 0,a):this.i.invoke(void 0,void 0,a):null};
   rM.prototype.dispose=function(){this.i=null};var tM;g.sM=new rM;tM=0;var iua=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var Z2={},XNa=(Z2["api.invalidparam"]=2,Z2.auth=150,Z2["drm.auth"]=150,Z2["heartbeat.net"]=150,Z2["heartbeat.servererror"]=150,Z2["heartbeat.stop"]=150,Z2["html5.unsupportedads"]=5,Z2["fmt.noneavailable"]=5,Z2["fmt.decode"]=5,Z2["fmt.unplayable"]=5,Z2["html5.missingapi"]=5,Z2["html5.unsupportedlive"]=5,Z2["drm.unavailable"]=5,Z2);g.w(zM,g.I);g.k=zM.prototype;
   g.k.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&fA(c,rNa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Sj&&!this.Z.has(a)&&(this.Z.add(a),g.Zv("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.My(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,
   b)}throw Error('Unknown API method: "'+a+'".');};
   g.k.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.K[a]&&b&&fA(b,rNa))};
   g.k.getBandwidthEstimate=function(){return IE(this.app.V().schedule)};
   g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.PM(this.app);b&&(a={gpu:(0,g.wW)(),d:a},b.handleError(new g.KD("feedback",!1,a)))};
   g.k.getApiInterface=function(){return this.S.slice()};
   g.k.getInternalApiInterface=function(){return g.ec(this.u)};
   g.k.XQ=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];g.Ga(b).apply(window,e)};
   this.J[b]=c}else c=b;this.app.Jl.subscribe(a,c)};
   g.k.HW=function(a,b){if("string"===typeof b){var c=this.J[b],d=this.J;b in d&&delete d[b];b=c}this.app.Jl.unsubscribe(a,b)};
   g.k.getPlayerState=function(){return PHa(this.app)};
   g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
   g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
   g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
   g.k.seekTo=function(a,b,c){this.i&&rY(this.app,!0,this.playerType);vY(this.app,a,b,c,this.playerType)};
   g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
   g.k.startSeekCsiAction=function(){this.app.Ap().B.i=(0,g.Q)()};
   g.k.seekToStreamTime=function(a,b,c){this.i&&rY(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.PM(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Uc()&&(l=h.getStreamTimeOffset());vY(d,a-l,b,c,e,f)};
   g.k.getStreamTimeOffset=function(){var a=g.PM(this.app,1);return a?a.getStreamTimeOffset():0};
   g.k.seekToLiveHead=function(a,b){var c=g.PM(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&vY(this.app,Infinity,a,b,this.playerType)};
   g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
   g.k.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
   g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
   g.k.getVolume=function(){return this.app.gg.volume};
   g.k.setVolume=function(a){sua(this,a)};
   g.k.isMuted=function(){return this.app.gg.muted};
   g.k.mute=function(){tua(this)};
   g.k.unMute=function(){uua(this)};
   g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Pf&&TX(this.app).allowImaMonetization,autoplay:UG(TX(this.app)),mutedAutoplay:TX(this.app).mutedAutoplay});return a};
   g.k.playVideo=function(){this.i&&rY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Qd()){var b=lN(this.app.wb());if(!cMa(b)){b.Kk("control_play");return}if(dMa(b))return}3===a?JM(this.app.wb()).Kk("control_play"):this.app.playVideo(a)};
   g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Qd()){var b=lN(this.app.wb());if(!cMa(b)){b.Kk("control_pause");return}}3===a?JM(this.app.wb()).Kk("control_pause"):this.app.pauseVideo(a)};
   g.k.stopVideo=function(){var a=this.app;a.X.eb&&a.Ta.ea("pageTransition");a.stopVideo()};
   g.k.clearVideo=function(){};
   g.k.getPlaybackRate=function(){return g.PM(this.app,1).getPlaybackRate()};
   g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
   g.k.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.kc){var b=a.i||a.N("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Xj?vNa:uNa}else a=[1];return a};
   g.k.getPlaybackQuality=function(a){return(a=g.PM(this.app,a))?a.getPlaybackQuality():"unknown"};
   g.k.setPlaybackQuality=function(){};
   g.k.getAvailableQualityLevels=function(){var a=g.PM(this.app,this.playerType);return a?(a=g.ym(a.qn(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
   g.k.getAvailableQualityLabels=function(){var a=g.PM(this.app,this.playerType);return a?g.ym(a.qn(),function(b){return b.qualityLabel}):[]};
   g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
   g.k.getVideoBytesTotal=function(){return 1};
   g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
   g.k.getVideoStartBytes=function(){return 0};
   g.k.setSize=function(){this.app.bb().resize()};
   g.k.channelSubscribed=function(){this.Oa("SUBSCRIBE",TX(this.app).Ri)};
   g.k.channelUnsubscribed=function(){this.Oa("UNSUBSCRIBE",TX(this.app).Ri)};
   g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
   g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
   g.k.getCurrentPlaylistSequence=function(){return g.PM(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
   g.k.getPlaylistSequenceForTime=function(a){return g.PM(this.app).getPlaylistSequenceForTime(a)};
   g.k.shouldSendVisibilityState=function(){return!0};
   g.k.updateFullerscreenEduButtonVisibility=function(a){var b=fIa(this.app);b&&(b.u=a,b.Pa())};
   g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=fIa(this.app);b&&(g.O(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.we(b,g.YN(b.B.fc(),b.element)),b.C=!0))};
   g.k.confirmYpcRental=function(){var a=g.PM(this.app,this.playerType);a&&a.Md("ypc_clickwrap")};
   g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
   g.k.setConnectedRemoteApps=function(a){this.app.V().Tj=a};
   g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=NE("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,wna)};
   g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
   g.k.isPictureInPictureAllowed=function(){return TX(this.app).Cu};
   g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
   g.k.loadModule=function(a){"captions"===a&&(a=g.hN(this.app.wb()))&&!a.loaded&&a.load()};
   g.k.unloadModule=function(a){"captions"===a&&(a=g.hN(this.app.wb()))&&a.loaded&&a.DX()};
   g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(wM(a,b,c),this.playerType),this.i&&rY(this.app,a,this.playerType))};
   g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(wM(a,b,c),this.playerType)};
   g.k.loadVideoByUrl=function(a,b,c){a=pua(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&rY(this.app,a,this.playerType)};
   g.k.cueVideoByUrl=function(a,b,c){a=pua(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
   g.k.getVideoUrl=function(){var a=this.app.V();if(a.K)return"";var b=TX(this.app),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
   g.k.getDebugText=function(){return this.app.getDebugText()};
   g.k.getVideoEmbedCode=function(){var a=this.app.V();return a.K?"":a.getVideoEmbedCode(TX(this.app).videoId,this.app.bb().getPlayerSize(),this.getPlaylistId()||void 0)};
   g.k.addCueRange=function(a,b,c){return tY(this.app,a,b,c)};
   g.k.addUtcCueRange=function(a,b,c){return XHa(this.app,a,b,c)};
   g.k.removeCueRange=function(a){return YHa(this.app,a)};
   g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.i&&rY(this.app,!0,this.playerType)};
   g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
   g.k.nextVideo=function(){this.app.nextVideo();this.i&&rY(this.app,!0,this.playerType)};
   g.k.previousVideo=function(){this.app.previousVideo();this.i&&rY(this.app,!0,this.playerType)};
   g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&rY(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.RR=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.UM(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.wb();return"captions"===a?(a=g.hN(d))&&a.kf(b,c):null};
   g.k.getOption=function(a,b,c){var d=g.PM(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().i?{}:this.setOption(a,b,c)};
   g.k.getOptions=function(a){var b=this.app.wb();if("captions"===a)return(b=g.hN(b))&&b.getOptions();if(!a)return a=[],g.hN(b)&&a.push("captions"),a};
   g.k.kz=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.PM(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.u&&a.u.video){b.video_quality=a.u.video.quality;a=a.u.video;var c=[];32<a.fps&&c.push("hfr");a.isHdr()&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
   g.k.showVideoInfo=function(){FHa(this.app,!0)};
   g.k.hideVideoInfo=function(){FHa(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.PM(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.U(a,128)&&5===XNa[b.errorCode])};
   g.k.getSphericalProperties=function(){var a=g.LM(this.app.wb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
   g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.LM(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
   g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
   g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
   g.k.clearQueue=function(){this.app.clearQueue()};
   g.k.destroy=function(){this.app.dispose()};
   g.k.sendAbandonmentPing=function(){var a=g.PM(this.app);a&&a.sendAbandonmentPing()};
   g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
   g.k.refreshAllVideos=function(){return this.app.refreshAllVideos()};
   g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
   g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
   g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
   g.k.setAutonavState=function(a){cIa(this.app,a)};
   g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
   g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
   g.k.getLoopRange=function(){return this.app.getLoopRange()};
   g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
   g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
   g.k.getAppState=function(){return this.app.getAppState()};
   g.k.addInfoCardXml=function(a,b,c){this.app.V().S.add(a,{py:b,xx:c})};
   g.k.updateLastActiveTime=function(){Vu()};
   g.k.setBlackout=function(a){this.app.setBlackout(a)};
   g.k.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
   g.k.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
   g.k.setUserEngagement=function(a){this.app.V().Gi!==a&&(this.app.V().Gi=a,(a=g.PM(this.app,this.playerType))&&GX(a))};
   g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.hN(this.app.wb()).zO(a,b)};
   g.k.getCaptionWindowContainerId=function(){var a=g.hN(this.app.wb());return a?a.getCaptionWindowContainerId():""};
   g.k.toggleSubtitlesOn=function(){var a=g.hN(this.app.wb());a&&a.hO()};
   g.k.setUseFastSizingOnWatch=function(a){this.app.bb().setUseFastSizingOnWatch(a)};
   g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Qd()&&(a=1);return a};
   g.k.getPlayerResponse=function(){var a=g.PM(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
   g.k.getStoryboardFrame=function(a,b){var c=this.app.Gh();if(!c)return null;b=c.levels[b];return b?(a=g.iG(b,a))?{column:a.column,columns:a.columns,height:a.Uz,row:a.row,rows:a.rows,url:a.url,width:a.Vz}:null:null};
   g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Gh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Uc();return b.Hx(a)};
   g.k.getStoryboardLevel=function(a){var b=this.app.Gh();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.Wt(),minFrameIndex:b.QB()}:null:null};
   g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Gh();return a?a.levels.length:0};
   g.k.GR=function(){return this.getAudioTrack()};
   g.k.getAudioTrack=function(){var a=g.PM(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Vi};
   g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&JM(this.app.wb()).Kk("control_set_audio_track",a);var b=g.PM(this.app,this.playerType);if(b){var c,d,e;if(!b.isDisposed()&&!g.U(b.playerState,128))if(null===(c=b.videoData.B)||void 0===c?0:c.i)b.Xa.setAudioTrack(a);else if(c=null===(d=b.ra)||void 0===d?void 0:d.audioTracks(),b.N("html5_native_audio_track_switching")&&(null===(e=b.videoData.u)||void 0===e?0:rD(e))&&c&&1<c.length){a:{for(d=0;d<c.length;++d)if(e=c[d],e.label===a.Ac.getName()){if(e.enabled){c=
   !1;break a}c=e.enabled=!0;break a}c=void 0}c&&b.Ba("hlsaudio",a.id)}else{a:if(c=b.videoData,c.K&&!rD(c.K)||a==c.Sj||!c.Hb||0>=c.Hb.length)c=!1;else{d=g.r(c.Hb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof JF)){c=!1;break a}var f=a.Ac.getId();e.B&&(Ena(e.B,f),e.u=null)}c.Sj=a;c=!0}c&&xX(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.Ba("hlsaudio",a.id))}}};
   g.k.HR=function(){return this.getAvailableAudioTracks()};
   g.k.getAvailableAudioTracks=function(){return g.PM(this.app,this.playerType).getAvailableAudioTracks()};
   g.k.getMaxPlaybackQuality=function(){var a=g.PM(this.app,this.playerType);return a&&a.getVideoData().u?iB(a.Ee?zEa(a.Zf,a.Ee,a.Xr()):nG):"unknown"};
   g.k.getUserPlaybackQualityPreference=function(){var a=g.PM(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
   g.k.getSubtitlesUserSettings=function(){var a=g.hN(this.app.wb());return a?a.TR():null};
   g.k.resetSubtitlesUserSettings=function(){g.hN(this.app.wb()).OW()};
   g.k.setMinimized=function(a){this.app.setMinimized(a)};
   g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
   g.k.setGlobalCrop=function(a){this.app.bb().setGlobalCrop(a)};
   g.k.getVisibilityState=function(){var a=this.Je();return this.app.getVisibilityState(this.qf(),this.isFullscreen()||bF(this.app.V()),a,this.isInline(),this.app.ws(),this.app.rs())};
   g.k.isMutedByMutedAutoplay=function(){return this.app.jw};
   g.k.isInline=function(){return this.app.isInline()};
   g.k.setInternalSize=function(a,b){this.app.bb().setInternalSize(new g.cg(a,b))};
   g.k.Uc=function(){var a=g.PM(this.app,void 0);return a?a.Uc():0};
   g.k.Je=function(){return this.app.Je()};
   g.k.qf=function(){var a=g.PM(this.app,this.playerType);return!!a&&a.qf()};
   g.k.isFullscreen=function(){return this.app.isFullscreen()};
   g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
   g.k.canPlayType=function(a){return this.app.canPlayType(a)};
   g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.N("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.UM(b).videoId||(a.index=b.index)):fY(this.app,{list:a.list,index:a.index,playlist_length:d.length});WM(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()};
   g.k.updateVideoData=function(a,b){var c=g.PM(this.app,this.playerType||1);c&&g.rG(c.getVideoData(),a,b)};
   g.k.updateEnvironmentData=function(a){jF(this.app.V(),a,!1)};
   g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
   g.k.setCardsVisible=function(a,b,c){var d=g.oN(this.app.wb());d&&d.yh()&&d.setCardsVisible(a,b,c)};
   g.k.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
   g.k.setInline=function(a){this.app.setInline(a)};
   g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
   g.k.getVideoAspectRatio=function(){return this.app.bb().getVideoAspectRatio()};
   g.k.getPreferredQuality=function(){var a=g.PM(this.app);return a?a.getPreferredQuality():"unknown"};
   g.k.setPlaybackQualityRange=function(a,b){var c=g.PM(this.app,this.playerType);c&&(a=fB(a,b||a,!0,"m"),Mza(c,a,!0))};
   g.k.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)};
   g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
   g.k.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.V().u&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Jl.ea.apply(this.app.Jl,[a].concat(g.v(c)));this.app.nm.ea.apply(this.app.nm,[a].concat(g.v(c)))};
   g.k.Oa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.Jl.ea.apply(this.app.Jl,[a].concat(g.v(c)));this.app.nm.ea.apply(this.app.nm,[a].concat(g.v(c)))};
   g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
   g.k.logImaAdEvent=function(a,b){if(this.app.V().Pf&&TX(this.app).allowImaMonetization){var c=this.app.V().loaderUrl.match(gi);g.Zv("embedsAdEvent",{adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:ei(c[1],c[2],c[3],c[4]),eventType:a})}};
   g.k.N=function(a){return this.app.V().N(a)};
   g.k.oa=function(){};
   g.k.xa=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.J={};g.I.prototype.xa.call(this)};g.w(FM,zM);g.k=FM.prototype;g.k.addCueRange=function(a,b,c,d,e){return tY(this.app,a,b,c,d,e)};
   g.k.getPlayerState=function(a){return PHa(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){vY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
   g.k.seekTo=function(a,b,c,d){vY(this.app,a,b,c,d||this.playerType)};
   g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
   g.k.kz=function(a){a=void 0===a?this.playerType:a;var b,c=zM.prototype.kz.call(this,a)||{};if(a=g.PM(this.app,a)){a=a.getVideoData();c.backgroundable=a.backgroundable;c.eventId=a.eventId;c.cpn=a.clientPlaybackNonce;c.hasProgressBarBoundaries=a.hasProgressBarBoundaries();c.isLive=a.isLivePlayback;c.isWindowedLive=a.Zi;c.isManifestless=CG(a);c.allowLiveDvr=a.allowLiveDvr;c.isListed=a.isListed;c.itct=a.Ya;var d;var e=a.hasProgressBarBoundaries()&&(null===(d=a.progressBarStartPosition)||void 0===d?0:
   d.utcTimeMillis)?kg(a.progressBarStartPosition.utcTimeMillis):null;c.progressBarStartPositionUtcTimeMillis=e;var f;d=a.hasProgressBarBoundaries()&&(null===(f=a.progressBarEndPosition)||void 0===f?0:f.utcTimeMillis)?kg(a.progressBarEndPosition.utcTimeMillis):null;c.progressBarEndPositionUtcTimeMillis=d;c.ypcOriginalItct=a.TX;c.ypcPreview=a.ypcPreview;c.paidContentOverlayText=rpa(a);c.paidContentOverlayDurationMs=GG(a);null!=a.liveUtcStartSeconds&&(c.liveUtcStartSeconds=a.liveUtcStartSeconds);a.i&&
   kB(a.i)&&(c.usingLocalMedia="true");wG(a)&&(c.isEncrypted=!0);if(a.B)for(f=g.r(a.B.videoInfos),d=f.next();!d.done;d=f.next())if(null===(b=d.value.video)||void 0===b?0:b.isHdr()){c.isHdr=!0;break}}return c};
   g.k.getCurrentTime=function(a,b){var c;return 2===this.app.getAppState()&&5===this.getPlayerState()?(null===(c=this.app.getVideoData())||void 0===c?void 0:c.startSeconds)||0:a?this.app.getCurrentTime(a,b):zM.prototype.getCurrentTime.call(this)};
   g.k.getDuration=function(a,b){return 3===this.getPresentingPlayerType()?(a=JM(this.app.wb()).getProgressState(),(null===a||void 0===a?void 0:a.duration)||0):a?this.app.getDuration(a,b):zM.prototype.getDuration.call(this)};
   g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return JM(this.app.wb()).getProgressState();var b=this.app.getVideoData(),c=(g.PM(this.app,a)||g.PM(this.app)).getPlayerType(),d;a:{var e=this.app.getVideoData();if(null===(d=e.progressBarStartPosition)||void 0===d?0:d.utcTimeMillis)if(d=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=xua(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null===(f=e.progressBarEndPosition)||void 0===f?0:f.utcTimeMillis)if(f=
   Number(e.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(f)){f=xua(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.Yr(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.PM(p,c))?(c=dY(p,c),c=nY(p,zS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.sf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime: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.DM(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.DM(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.DM(this);a&&a.showControls(!0)};
   g.k.hideControls=function(){var a=g.DM(this);a&&a.showControls(!1)};
   g.k.getVideoContentRect=function(a){a=this.app.bb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
   g.k.setFauxFullscreen=function(a){g.gy();this.app.Hi(a?2:0)};
   g.k.toggleFullscreen=function(){function a(c){g.My(c)}
   var b=this.app.V();if(b.externalFullscreen){if(!g.yF(b))return this.isFullscreen()?iy(window.document.documentElement):fy(window.document.documentElement).catch(a)}else if(g.gy()||b.C)return this.isFullscreen()?iy(hy()):"3"!==b.controlsType&&g.gy()?fy(this.app.bb().element).catch(a):(b=this.app.jd().Me())?fy(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
   g.k.cancelPlayback=function(){var a=lN(this.app.wb());a&&a.created&&a.destroy();(a=g.PM(this.app))&&a.stopVideo();(a=this.app.wb().Ed.get("endscreen"))&&a.BS()&&g.IM(this.app.Ta,!0)};
   g.k.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&tF(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():zM.prototype.stopVideo.call(this)};
   g.k.getVideoStats=function(){return g.PM(this.app,this.playerType).Ib(!0)};
   g.k.toggleSubtitles=function(){var a=g.hN(this.app.wb());a&&a.uX()};
   g.k.getDebugText=function(a){return this.app.getDebugText(a)};
   g.k.setSphericalProperties=function(a){if(a){var b=g.LM(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
   g.k.getSphericalProperties=function(){var a=g.LM(this.app.wb());return a?a.getSphericalProperties():{}};
   g.k.setVolume=function(a,b){sua(this,a,b)};
   g.k.mute=function(a){tua(this,a)};
   g.k.unMute=function(a){uua(this,a)};
   g.k.mutedAutoplay=function(){this.N("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
   g.k.loadModule=function(a){if("annotations_module"===a){var b=g.oN(this.app.wb());b&&!b.loaded&&b.load()}zM.prototype.loadModule.call(this,a)};
   g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.oN(this.app.wb());b&&b.loaded&&b.unload()}zM.prototype.unloadModule.call(this,a)};
   g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();switch(a){case "ad":return(a=lN(d))&&a.kf&&a.kf(b,c);case "kids":return(a=mN(d))&&a.kf(b,c);case "remote":return(a=JM(d))&&a.kf(b,c);case "unplugged":return(a=nN(d))&&a.kf(b,c);case "annotations_module":return(a=g.oN(d))&&a.kf(b,c);case "creatorendscreen":return(a=pN(d))&&a.kf(b,c)}return zM.prototype.setOption.call(this,a,b,c)};
   g.k.getOptions=function(a){var b=this.app.wb();switch(a){case "ad":return(b=lN(b))&&b.getOptions&&b.getOptions();case "remote":return(b=JM(b))&&b.getOptions();case "annotations_module":return(b=g.oN(b))&&b.getOptions();case "creatorendscreen":return(b=pN(b))&&b.getOptions();case "unplugged":return(b=nN(b))&&b.getOptions();case "kids":return(b=mN(b))&&b.getOptions()}if(!a){a=zM.prototype.getOptions.call(this);if(!a)return a;lN(b)&&a.push("ad");JM(b)&&a.push("remote");g.oN(b)&&a.push("annotations_module");
   pN(b)&&a.push("creatorendscreen");nN(b)&&a.push("unplugged");mN(b)&&a.push("kids");return a}return zM.prototype.getOptions.call(this,a)};
   g.k.getPlayerSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}};
   g.k.wakeUpControls=function(){var a=g.DM(this);a&&a.Wk()};
   g.k.setCenterCrop=function(a){this.app.bb().setCenterCrop(a)};
   g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
   g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
   var vua="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
   wua="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.w(g.GM,FM);g.k=g.GM.prototype;g.k.Lj=function(a,b,c,d,e,f){return this.app.Lj(a,b,c,d,e,f)};
   g.k.vv=function(){return this.app.vv()};
   g.k.zp=ba(2);g.k.wb=function(){return this.app.wb()};
   g.k.Yd=function(){var a=this.wb().Ed.get("endscreen");return!!a&&a.Yd()};
   g.k.getRootNode=function(){return this.bb().element};
   g.k.V=function(){return this.app.V()};
   g.k.Fv=ba(4);g.k.Ml=function(a){return this.app.Ml(a)};
   g.k.zn=function(){return this.settingsMenu};
   g.k.yb=function(a){return this.app.yb(a)};
   g.k.bb=function(){return this.app.bb()};
   g.k.getPlaylist=function(){return this.app.getPlaylist()};
   g.k.getVideoData=function(a){var b=g.PM(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.Pc)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=NS(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
   g.k.Gh=function(a){return this.app.Gh(a)};
   g.k.isWidescreen=function(){return this.app.isWidescreen()};
   g.k.isHdr=function(){var a=g.PM(this.app);return a?a.isHdr():!1};
   g.k.tE=function(){return this.app.tE()};
   g.k.Zs=function(a){this.app.Zs(a)};
   g.k.Kf=function(a,b,c,d){this.app.Le(a,b,c,d)};
   g.k.Uk=ba(8);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){JM(this.app.wb()).Kk("control_play");return}if(2===this.getPresentingPlayerType()){var b=lN(this.app.wb());if(b&&(b.Hk()||dMa(b)))return}}catch(c){g.Ly(c)}this.app.playVideo(a)};
   g.k.stopVideo=function(a){g.PM(this.app,a).stopVideo()};
   g.k.pm=function(a){g.PM(this.app,a).pm()};
   g.k.addEventListener=function(a,b){this.app.nm.subscribe(a,b)};
   g.k.removeEventListener=function(a,b){this.app.nm.unsubscribe(a,b)};
   g.k.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];FM.prototype.ea.call.apply(FM.prototype.ea,[this,a].concat(g.v(c)))};
   g.k.Ci=function(a){this.app.Ci(a)};
   g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
   g.k.qn=function(){var a={},b=g.PM(this.app).qn();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.Gv=ba(10);g.k.LA=function(a){this.app.LA(a);a&&cIa(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.Hv=ba(12);g.k.xj=ba(16);g.k.Ds=function(a,b){this.wb().Ds(a,b)};
   g.k.yh=function(){var a=g.oN(this.wb());return!!a&&a.yh()};
   g.k.hk=function(){var a=g.oN(this.wb());return!!a&&a.hk()};
   g.k.setCardsVisible=function(a,b,c){var d=g.oN(this.wb());d&&d.setCardsVisible(a,b,c)};
   g.k.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
   g.k.Ws=ba(17);g.k.Iq=function(){var a=g.PM(this.app);a&&a.Iq()};
   g.k.Zw=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")};
   g.k.ij=function(a,b){var c=g.DM(this);if(c)return c.ij(a,b);a=this.app.bb().rg();return new g.Pl(0,0,a.width,a.height)};
   g.k.Jp=function(){return this.app.Jp()};
   g.k.Xv=function(){var a=this.wb().Ed.get("heartbeat");return!!a&&a.Xv()};
   g.k.sf=function(){var a=this.V();if(a.ma||a.disableSeek)return!1;a=g.PM(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.KG(b)||2===this.getPresentingPlayerType()&&!this.app.Qd()||a.Tl()&&3!==this.getPresentingPlayerType()?!1:!0};
   g.k.Uv=function(){var a;return(null===(a=g.PM(this.app))||void 0===a?void 0:a.Uv)||!1};
   g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
   g.k.zo=function(){var a=g.PM(this.app);a&&a.zo()};
   g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
   g.k.Ad=function(a,b,c){this.app.Fu(a,b,c)};
   g.k.If=function(a,b){this.app.GA(a,b)};
   g.k.We=function(a,b){var c=this.app,d=g.PM(c,b);d&&(a=d.Ah.We(a),b&&c.getPresentingPlayerType()!==b||ZX(c,"cuerangesremoved",a))};
   g.k.Md=function(a,b){(b=g.PM(this.app,b))&&b.Md(a)};
   g.k.Tl=function(){var a=g.PM(this.app,void 0);return a?a.Tl():!0};
   g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
   g.k.setVolume=function(a){a=g.Xf(a,0,100);BM(this.app,{volume:a,muted:this.isMuted()},!0)};
   g.k.mute=function(){BM(this.app,{muted:!0,volume:this.getVolume()},!0)};
   g.k.unMute=function(){BM(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.jd=function(){return this.app.jd()};
   g.k.Ap=function(){return this.app.Ap()};
   g.k.Eh=function(a){return this.app.Eh(a)};
   g.k.getBandwidthEstimate=function(){return IE(this.V().schedule)};
   g.k.Rb=function(a,b,c,d){this.V().Ja&&this.app.In.Rb(a,b,c,void 0===d?!1:d)};
   g.k.Rg=function(a,b,c){this.V().Ja&&this.app.In.Rg(a,b,void 0===c?!1:c)};
   g.k.ym=function(a,b){this.V().Ja&&this.app.In.ym(a,b)};
   g.k.Fb=function(a,b){this.V().Ja&&this.app.In.click(a,b)};
   g.k.ib=function(a,b,c){if(this.V().Ja){var d=this.app.In;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.Ey(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Ez(e,[f]):g.Fz(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Ry(e,f,c),d.B.add(a))}};
   g.k.Rv=function(a){return this.V().Ja?this.app.In.Rv(a):!1};
   g.k.Kc=function(){return g.PM(this.app)};
   g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
   g.k.Fj=function(a){this.app.Fj(a)};
   g.k.Pu=function(a){this.app.Pu(a)};
   g.k.po=function(a){this.app.getPresentingPlayerType()===a&&this.app.po(a)};
   g.k.Fl=function(a,b){return this.app.Fl(a,b)};
   g.k.Tk=function(a){this.app.Tk(a)};
   g.k.HE=function(){this.app.HE()};
   g.k.yr=function(a,b,c,d,e,f){return this.app.yr(a,b,c,d,e,f)};
   g.k.Sv=function(a,b,c,d,e,f){return this.app.Sv(a,b,c,d,e,f)};
   g.k.Xn=function(a){this.app.Xn(a)};
   g.k.lp=function(a,b){b=void 0===b?Infinity:b;this.app.lp(void 0===a?-1:a,b)};
   g.k.zt=function(a,b,c){this.app.zt(a,b,c)};
   g.k.vn=function(){return this.app.vn()};
   g.k.Fy=function(a,b,c){this.app.Fy(a,b,void 0===c?0:c)};
   g.k.ys=function(){return this.app.ys()};
   g.k.clearQueue=function(){this.app.clearQueue()};
   g.k.Qd=function(){return this.app.Qd()};
   g.k.Ln=function(a,b,c){return this.app.Ln(a,b,c)};
   g.k.Ba=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.PM(this.app,d))||void 0===e?void 0:e.Ba(a,b,c)};
   g.k.UA=function(){return this.app.UA()};
   g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
   g.k.YE=function(a,b){this.ea("aduxmouseover",a,b)};
   g.k.XE=function(a,b){this.ea("aduxmouseout",a,b)};
   g.k.rF=function(a,b){this.ea("muteadaccepted",a,b)};
   g.k.sE=function(){return this.app.bb().sE()};
   g.k.QA=function(a){this.app.bb().QA(a)};QM.prototype.cF=function(){this.u=(0,g.Q)()};
   QM.prototype.reset=function(){this.i=this.u=NaN};
   QM.prototype.iF=function(a,b){a&&!isNaN(this.i)&&(Math.random()<this.B&&(b=b?"pbp":"pbs",RA("seek",this.i),g.SA("cpn",a,"seek"),isNaN(this.u)||TA("pl_ss",this.u,"seek"),TA(b,(0,g.Q)(),"seek")),this.reset())};RM.prototype.reset=function(){OA(this.timerName)};
   RM.prototype.tick=function(a,b){TA(a,b,this.timerName)};
   RM.prototype.info=function(a,b){g.SA(a,b,this.timerName)};g.w(SM,g.R);g.k=SM.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
   g.k.Ak=function(a){return this.loop||!!a||0<=this.index-1};
   g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ea("shuffle")};
   g.k.Ie=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.u.K||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return sF(this.u,this.C[0],a)};
   g.k.onReady=function(a){this.i=a;this.loaded&&g.ut(this.i,0)};
   g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
   g.k.zk=function(){return this.u.getVideoUrl(g.UM(this).videoId,this.getPlaylistId())};
   g.k.xa=function(){this.i=null;g.ve(this.items);g.R.prototype.xa.call(this)};var Iua={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Jua={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"},Kua={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Hua={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Fua={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"},Gua={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var YM=new Map;g.w(g.$M,g.R);g.k=g.$M.prototype;g.k.create=function(){};
   g.k.load=function(){this.loaded=!0};
   g.k.unload=function(){this.loaded=!1};
   g.k.kf=function(){};
   g.k.Ii=function(){return!0};
   g.k.xa=function(){this.loaded&&this.unload();g.R.prototype.xa.call(this)};
   g.k.Ib=function(){return{}};
   g.k.getOptions=function(){return[]};g.w(g.cN,g.I);g.k=g.cN.prototype;g.k.Kn=ba(20);g.k.Cs=function(){};
   g.k.Cm=function(){};
   g.k.Hp=function(){return""};
   g.k.GF=ba(21);g.k.xa=function(){this.Cm();g.I.prototype.xa.call(this)};g.w(g.dN,g.cN);g.dN.prototype.Kn=ba(19);g.dN.prototype.Cs=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.bN(this.u,c.value);a()};
   g.dN.prototype.Hp=function(a,b){var c=a.Xd(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Wt()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.cG(a));return Qs(c,d)};
   g.dN.prototype.Cm=function(){this.i&&this.i.abort()};g.YNa=new Map;g.w(g.fN,g.cN);g.fN.prototype.Kn=ba(18);
   g.fN.prototype.Cs=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.PK&&(d.asrs=1);c=Qs(c,d);this.Cm();this.i=g.Ct(c,{format:"RAW",onSuccess:function(e){b.i=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),u="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
   l=l.getAttribute("vss_id");g.bN(b.u,new g.$F({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:u}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
   withCredentials:!0})};
   g.fN.prototype.Hp=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.cG(a));return c=Qs(c,b)};
   g.fN.prototype.Cm=function(){this.i&&this.i.abort()};g.w(gN,g.I);g.k=gN.prototype;g.k.ex=function(){return this.I.getVideoData().ex()};
   g.k.jG=function(){return this.I.getVideoData().jG()};
   g.k.CJ=function(){var a=this.Ed.get("heartbeat");jN(this,"heartbeat",!1,!0,this.CJ);!a&&this.Ed.has("heartbeat")&&this.I.ea("offlineslatestatechange")};
   g.k.iD=function(){jN(this,"annotations_module",!0,void 0,this.iD);var a=this.Ed.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.BJ=function(){if(!this.Ed.get("ad"))try{iN(this)?jN(this,"ad",!1,!0,this.BJ):this.I.Md("ad")}catch(a){this.I.Md("ad"),g.Ly(a)}};
   g.k.Ap=function(){return this.i};
   g.k.UD=function(){var a={},b=g.hN(this);b&&Object.assign(a,b.UD());return a};
   g.k.Ds=function(a,b){Object.assign(this.i,a||null);Object.assign(this.Su,b||null)};
   g.k.xa=function(){g.I.prototype.xa.call(this);kN(this,1,!0);for(var a=g.r(Object.entries(gva)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&YM.delete(b)}this.C.clear()};
   var $2={},gva=($2.ad="ad.js",$2.annotations_module="annotations_module.js",$2.attribution="attribution.js",$2.creatorendscreen="annotations_module.js",$2.embed="embed.js",$2.endscreen="endscreen.js",$2.heartbeat="heartbeat.js",$2.inline_preview="inline_preview.js",$2.kids="kids.js",$2.remote="remote.js",$2.miniplayer="miniplayer.js",$2.music="music.js",$2.captions="captions.js",$2.unplugged="unplugged.js",$2.ux="ux.js",$2.webgl="webgl.js",$2.ypc="ypc.js",$2.ypc_clickwrap="ypc_clickwrap.js",$2.yto=
   "yto.js",$2);g.w(qN,g.xe);qN.prototype.preventDefault=function(){g.xe.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
   qN.prototype.stopPropagation=function(){g.xe.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.w(g.rN,OJ);g.k=g.rN.prototype;g.k.Po=function(){return!0};
   g.k.isView=function(){return!1};
   g.k.RF=function(){return!1};
   g.k.Me=function(){return this.i};
   g.k.Df=function(){return this.i.src};
   g.k.Mx=function(a){this.oa();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
   g.k.HA=function(){this.oa();this.i.removeAttribute("src")};
   g.k.getPlaybackRate=function(){try{return 0<=this.i.playbackRate?this.i.playbackRate:1}catch(a){return 1}};
   g.k.setPlaybackRate=function(a){this.oa();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
   g.k.Dp=function(){return this.i.loop};
   g.k.setLoop=function(a){this.oa();this.i.loop=a};
   g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
   g.k.al=function(){return this.i.paused};
   g.k.Xt=function(){return this.i.seeking};
   g.k.Gk=function(){return this.i.ended};
   g.k.Zy=function(){return this.i.muted};
   g.k.Xs=function(a){AD();this.oa();this.i.muted=a};
   g.k.Gp=function(){return this.i.played||BD([],[])};
   g.k.Uf=function(){try{var a=this.i.buffered}catch(b){}return a||BD([],[])};
   g.k.Jv=function(){return this.i.seekable||BD([],[])};
   g.k.Jx=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
   g.k.getCurrentTime=function(){return this.i.currentTime};
   g.k.Lx=function(a){this.oa();this.i.currentTime=a};
   g.k.getDuration=function(){return this.i.duration};
   g.k.load=function(){this.oa();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
   g.k.pause=function(){this.oa();this.i.pause()};
   g.k.play=function(){this.oa();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
   return a};
   g.k.rh=function(){return this.i.readyState};
   g.k.bz=function(){return this.i.networkState};
   g.k.aj=function(){return this.i.error?this.i.error.code:null};
   g.k.qe=function(){return this.i.error?this.i.error.message:""};
   g.k.Kx=function(){if(window.HTMLVideoElement&&this.i instanceof window.HTMLVideoElement&&this.i.getVideoPlaybackQuality)return this.i.getVideoPlaybackQuality();if(this.i){var a=this.i,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
   g.k.qf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
   g.k.zo=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
   g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;yD()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():zD()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
   g.k.yn=function(){var a=this.i;return new g.ag(a.offsetLeft,a.offsetTop)};
   g.k.dr=function(){return g.gm(this.i)};
   g.k.setSize=function(a){g.fm(this.i,a)};
   g.k.getVolume=function(){return this.i.volume};
   g.k.setVolume=function(a){AD();this.oa();this.i.volume=a};
   g.k.rD=function(a){this.C[a]||(this.i.addEventListener(a,this.listener),this.C[a]=this.listener)};
   g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
   g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
   g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
   g.k.Gu=ba(23);g.k.nx=ba(25);g.k.ox=ba(27);g.k.Dr=ba(29);g.k.ov=function(){return iy(this.i)};
   g.k.Lm=function(a){g.N(this.i,a)};
   g.k.getStyle=function(a){return g.Vl(this.i,a)};
   g.k.qE=function(){return g.Mg(document.body,this.i)};
   g.k.audioTracks=function(){var a=this.i;if("audioTracks"in a)return a.audioTracks};
   g.k.xa=function(){for(var a=g.r(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.C[b]);OJ.prototype.xa.call(this)};
   g.k.oa=function(){};g.w(tN,g.R);g.k=tN.prototype;g.k.cT=function(a){a=Fu(a);if(!bg(a,this.C)){var b=2;this.J&&(b|=8);this.C=a;sN(this,b,!0)}};
   g.k.dT=function(){this.J&&sN(this,8,!0);sN(this,2,!1)};
   g.k.Wz=function(a){var b=Fu(a);bg(b,this.C)||(this.C=b,(a=g.Cu(a))&&this.oy(a)&&(sN(this,4,!0),this.i.jc(this.B),this.B=this.i.T(this.target,"mouseover",this.TE),this.K=this.i.T(this.target,"mouseout",this.TE)))};
   g.k.TE=function(a){a=Eu(a);a&&this.oy(a)||(this.C=new g.ag(NaN,NaN),hva(this))};
   g.k.KS=function(){sN(this,1,!0)};
   g.k.JR=function(a){a=g.Cu(a);a instanceof Element&&!(0<a.tabIndex)||sN(this,1,!0)};
   g.k.NL=function(){this.J=!0;this.i.jc(this.D);this.D=this.i.T(document,"mouseup",this.eT)};
   g.k.eT=function(){this.J=!1;sN(this,8,!1);this.i.jc(this.D);this.D=this.i.T(this.target,"mousedown",this.NL)};
   g.k.jO=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.i.jc(this.S),this.S=this.i.T(this.target,"touchend",this.vX,void 0,!0),sN(this,1024,!0)};
   g.k.vX=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Aa){var d=c;break}}d&&(this.i.jc(this.S),this.S=this.i.T(this.target,"touchstart",this.jO,void 0,!0),sN(this,1024,!1))};
   g.k.Wk=function(){sN(this,2,!0)};
   g.k.resize=function(){g.ej&&hva(this)};
   g.k.toString=function(){return g.R.prototype.toString.call(this)};g.w(g.uN,g.V);
   g.uN.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();if(a.D&&(a.Ua||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
   fill:"#212121","fill-opacity":"0.8"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.D?(g.O(this.element,"ytp-touch-device",b.isMobile),c=[b.D?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
   W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
   W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Sa("largePlayButtonChildren",c);a.D&&(a.Ua||b.pfpChazalUi)&&(a=a.Ua?a.Ua:"#1f1f1f",this.Fa("ytp-dni-large-play-button-bg").setAttribute("fill",
   a))};g.w(vN,g.V);g.k=vN.prototype;g.k.show=function(){var a=this;this.Ab||(this.B.T(this.api,"videodatachange",function(){g.Jq(a.i)}),this.B.T(this.api,"videoplayerreset",function(){g.Jq(a.i)}));
   g.V.prototype.show.call(this)};
   g.k.hide=function(){this.B&&g.my(this.B);g.V.prototype.hide.call(this)};
   g.k.xb=function(){g.Jq(this.i)};
   g.k.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&tF(b)&&(a=a.state.isCued()&&!a.Sn.isCued()||g.KM(this.api)&&g.U(a.state,2),g.Sl(this.element,"transition-delay",a?"2s":""));g.Jq(this.i)};
   g.k.sW=function(){g.Jq(this.i)};
   g.k.mP=function(){this.u.stop();this.hide();g.Jq(this.i)};
   g.k.Pa=function(){var a=this.api.yb();if(3===this.api.getPresentingPlayerType()&&(a.Ec()||g.U(a,4)))var b=!0;else(b=this.api.wb().Ed.get("ypc"))&&b.nA?b=!0:(b=this.api.V(),b=g.U(a,2)&&HM(this.api)&&b.cd?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().N("disable_new_pause_state3"),b=!(!g.U(a,2)||HM(this.api)||b&&this.api.vv())||g.U(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.IX(this.api.getPlaylist(),a)):(this.u.hide(),
   g.U(a,1)||this.u.stop())};
   g.k.IX=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=g.r(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof oG&&!c.videoId)){var d=this.api.bb().getPlayerSize();var e=g.uF(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.Ie("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.Ie("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.Ie("sddefault.jpg")||c.Ie("hqdefault.jpg")||c.Ie("mqdefault.jpg"))break;if(d=c.Ie("default.jpg"))break}this.D.style.backgroundImage=
   d?"url("+d+")":""};g.w(g.BN,g.V);g.BN.prototype.resize=function(){};
   g.BN.prototype.u=function(a){var b=this;mva(this);var c=a.tD,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.kd(EN(this,"TOO_MANY_REQUESTS_WITH_LINK",d.zk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.kd(g.CN(a.errorMessage)):this.kd(EN(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.ti(c,{hl:a})),this.kd(EN(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.eb&&!d.i&&lva(this,function(e){if(g.wN(e,b.api,!tF(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Oa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
   var kva=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(FN,g.uD);FN.prototype.Mh=function(){qva(this)};
   FN.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.V(),d=[],e="";if(!c.K){var f=ova(this);c.N("enable_web_media_session_metadata_fix")&&g.fF(c)&&f?(d=pva(f.thumbnailDetails),f.album&&(e=g.sA(f.album))):d=[{src:b.Ie("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}qva(this);nva(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.KM(this.I)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),
   b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()});
   GN(this,"nexttrack",b);GN(this,"previoustrack",c)}};
   FN.prototype.xa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.i),b=a.next();!b.done;b=a.next())GN(this,b.value,null);g.uD.prototype.xa.call(this)};g.w(HN,g.V);g.k=HN.prototype;g.k.onClick=function(a){g.wN(a,this.I,!0);this.I.Fb(this.element)};
   g.k.onVideoDataChange=function(a,b){rva(this,b);this.ud&&sva(this,this.ud)};
   g.k.Mc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&rva(this,b);this.i&&sva(this,a.state);this.ud=a.state};
   g.k.td=function(){this.B.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.ib(this.element,!0)};
   g.k.Eb=function(){this.B.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.ib(this.element,!1)};g.w(IN,g.V);IN.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
   IN.prototype.onStateChange=function(a){tva(a.state)?this.i.start():this.hide()};
   IN.prototype.u=function(){this.message.style.display="block"};g.w(g.JN,g.PK);g.k=g.JN.prototype;g.k.show=function(){var a=this.Wf();g.PK.prototype.show.call(this);this.Ea&&(this.K.T(window,"blur",this.Eb),this.K.T(document,"click",this.nP));a||this.ea("show",!0)};
   g.k.hide=function(){var a=this.Wf();g.PK.prototype.hide.call(this);uva(this);a&&this.ea("show",!1)};
   g.k.td=function(a,b){this.u=a;this.Y.show();b?(this.S||(this.S=this.K.T(this.I,"appresize",this.VI)),this.VI()):this.S&&(this.K.jc(this.S),this.S=void 0)};
   g.k.VI=function(){var a=g.DM(this.I);this.u&&a.nq(this.element,this.u)};
   g.k.Eb=function(){var a=this.Wf();uva(this);this.Y.hide();a&&this.ea("show",!1)};
   g.k.nP=function(a){var b=Du(a);b&&(g.Mg(this.element,b)||this.u&&g.Mg(this.u,b)||!g.ML(a))||this.Eb()};
   g.k.Wf=function(){return this.Ab&&4!==this.Y.state};g.w(LN,g.JN);LN.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(vva(this),this.td()):(this.i&&this.Fb(),this.Eb()))};
   LN.prototype.Mh=function(a){this.api.isMutedByMutedAutoplay()&&g.fI(a,2)&&this.Eb()};
   LN.prototype.onClick=function(){this.api.unMute();this.Fb()};
   LN.prototype.Fb=function(){this.clicked||(this.clicked=!0,this.api.Fb(this.element))};g.w(g.NN,g.uD);g.k=g.NN.prototype;g.k.init=function(){var a=this.api.yb();this.Ub(a);this.Dm();this.xb()};
   g.k.onVideoDataChange=function(a,b){this.AE!==b.videoId&&(this.AE=b.videoId,a=this.rd,a.ya=b&&0<b.cd.length?5E3:3E3,sN(a,512,!0),this.Dm())};
   g.k.WU=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
   g.k.xo=function(){var a=this.api.yh()&&this.api.hk();return this.zy||a||this.hE};
   g.k.Qi=function(){var a=!this.xo();g.O(this.api.getRootNode(),"ytp-menu-shown",!a)};
   g.k.oy=function(a){try{if(!g.Mg(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Pg(a);)a=a===this.api.getRootNode()?null:g.Lg(a);return!!a};
   g.k.vj=function(a){var b=this.api.getRootNode();g.O(b,"ytp-autohide",a);g.O(b,"ytp-autohide-active",!0);this.YI.start(a?250:100);a&&(this.dB=!1,g.Sq(b,"ytp-touch-mode"));this.hD=!a;this.api.Zw(!a)};
   g.k.ZE=function(){var a=this.api.getRootNode();g.O(a,"ytp-autohide-active",!1)};
   g.k.AV=function(){this.GG=!0};
   g.k.zV=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().C)this.GG=!1,this.HG&&this.jc(this.HG),0===this.nw&&QN(this,a)?(this.qz(),this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().C&&PN&&12>=aH&&this.api.yb().isCued()?MN(this):this.Cy.start(),this.HG=this.T(this.api.bb(),"touchmove",this.AV,void 0,!0)):this.Cy.stop();!xva(this)||!QN(this,a)||this.api.V().C&&this.api.V().N("embeds_enable_mobile_dtts")||MN(this);var b=this.iB.Wf();
   if(TE&&yva(this,a))b&&g.Gu(a);else if(this.rd.u||ON(this,Du(a))||this.iB.Wf()||(this.api.yb().isCued(),g.Gu(a)),this.dB=!0,g.N(this.api.getRootNode(),"ytp-touch-mode"),this.rd.Wk(),this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().C)if(b=this.api.yb(),!(!this.api.sf()||g.U(b,2)&&HM(this.api)||g.U(b,64))){b=Date.now()-this.tL;this.nw+=1;if(350>=b){this.Yu=!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.nw-1);0<d&&d<b?(this.Rs(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Rs(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Gu(a)}else this.api.V().C&&this.api.V().N("embeds_enable_mobile_dtts")&&PN&&QN(this,a)&&g.Gu(a);this.tL=Date.now();this.yN.start()}};
   g.k.vV=function(a){if(!yva(this,a)){if(!xva(this)&&QN(this,a)&&!this.Cy.isActive()){if(g.yF(this.api.V())&&this.api.yb().isCued()){var b=void 0===b?{}:b;PA("warm");HA();OA();BA(!1);b.cttAuthInfo&&(CA().cttAuthInfo=b.cttAuthInfo);zs("TIMING_AFT_KEYS",[]);b.Uaa?g.SA("yt_lt","hot"):g.SA("yt_lt","warm");zs("TIMING_ACTION","");zs("TIMING_WAIT",[]);delete g.P("TIMING_INFO",{}).yt_lt;QA("warm",b.startTime);b=["pbs","pbu"];GA("").info.actionType="watch";b&&zs("TIMING_AFT_KEYS",b);zs("TIMING_ACTION","watch");
   b=g.P("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.SA(c,b[c]);g.SA("is_nav",1);(c=g.Ey())&&g.SA("csn",c);(c=g.P("PREVIOUS_ACTION",void 0))&&!MA()&&g.SA("pa",c);c=DA();b=g.P("CLIENT_PROTOCOL");var d=g.P("CLIENT_TRANSPORT");b&&g.SA("p",b);d&&g.SA("t",d);g.SA("yt_vis",nka());if("cold"===c.yt_lt){g.SA("yt_lt","cold");b=Uja();if(d=AA())TA("srt",b.responseStart),1!==c.prerender&&QA("n",d);c=$ja();0<c&&TA("fpt",c);c=Uja();c.isPerformanceNavigationTiming&&g.SA("pnt",1,void 0);TA("nreqs",c.requestStart,
   void 0);TA("nress",c.responseStart,void 0);TA("nrese",c.responseEnd,void 0);0<c.redirectEnd-c.redirectStart&&(TA("nrs",c.redirectStart,void 0),TA("nre",c.redirectEnd,void 0));0<c.domainLookupEnd-c.domainLookupStart&&(TA("ndnss",c.domainLookupStart,void 0),TA("ndnse",c.domainLookupEnd,void 0));0<c.connectEnd-c.connectStart&&(TA("ntcps",c.connectStart,void 0),TA("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=AA()&&0<c.connectEnd-c.secureConnectionStart&&(TA("nstcps",c.secureConnectionStart,
   void 0),TA("ntcpe",c.connectEnd,void 0));yA&&yA.getEntriesByType&&pka();c=[];if(document.querySelector&&yA&&yA.getEntriesByName)for(var e in w2)w2.hasOwnProperty(e)&&(b=w2[e],oka(e,b)&&c.push(b));for(e=0;e<c.length;e++)g.SA("rc",c[e])}jka();e=DA();b=wA();if("cold"===e.yt_lt&&(c=NA(),d=c.gelTicks?c.gelTicks:c.gelTicks={},c=c.gelInfos?c.gelInfos:c.gelInfos={},MA())){for(var f in b)"tick_"+f in d||bka(f,b[f]);f=hka();b=EA();d=CA().cttAuthInfo;var h={},l=!1,m;for(m in e)if(!("info_"+m in c)){var n=gka(m,
   e[m]);n&&(Rz(f,n),Rz(h,n),l=!0)}l&&JA().info(h,b,d)}BA(!0);lka()}MN(this);g.Gu(a)}this.Yu&&(this.Yu=!1)}};
   g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Zv("embedsRequestStorageAccessResult",{resolved:!0});Ima(!0);qv();window.location.reload()},function(){g.Zv("embedsRequestStorageAccessResult",{resolved:!1});
   a.qt()})};
   g.k.qz=function(){};
   g.k.Bq=function(){};
   g.k.Rs=function(){};
   g.k.uN=function(){};
   g.k.qt=function(){var a=this.api.yb();g.U(a,2)&&HM(this.api)||(g.YJ(a)?this.api.pauseVideo():(this.api.HE(),this.api.playVideo(),this.Ir&&document.activeElement===this.Ir.C.element&&this.api.getRootNode().focus()))};
   g.k.wV=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!ON(this,Du(a)))if(a=this.api.V(),(this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().C)&&this.Yu)this.Yu=!1;else if(a.Ua&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Nv(d)})}catch(d){this.Nv(d)}};
   g.k.Nv=function(a){String(a).includes("fullscreen error")?g.My(a):g.Ly(a)};
   g.k.xV=function(a){zva(this,.3,a.scale);g.Gu(a)};
   g.k.yV=function(a){zva(this,.1,a.scale)};
   g.k.xb=function(){var a=this.api.bb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.rd.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.uf());g.O(b,"ytp-tiny-mode",this.Az());g.O(b,"ytp-big-mode",this.Re());this.ze&&this.ze.resize(a)};
   g.k.Mh=function(a){this.Ub(a.state);this.Dm()};
   g.k.MD=function(){var a=!!this.AE&&!this.api.Yd(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(sMa&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=lN(this.api.wb());return a&&b.mG()}return a&&(c.Mj||this.api.isFullscreen()||c.Kg)};
   g.k.Dm=function(){var a=this.MD();this.Dk!==a&&(this.Dk=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
   g.k.Ub=function(a){var b=a.isCued()||this.api.Tl()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.JG&&this.jc(this.JG),this.JG=this.T(this.api.bb(),"touchstart",this.zV,void 0,b));var c=a.Ec()&&!g.U(a,32)||this.api.Xv();sN(this.rd,128,!c);c=3===this.api.getPresentingPlayerType();sN(this.rd,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[V2.ENDED];else d=[],g.U(a,8)?d.push(V2.PLAYING):g.U(a,4)&&d.push(V2.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(V2.BUFFERING),g.U(a,32)&&
   d.push(V2.SEEKING),g.U(a,64)&&d.push(V2.UNSTARTED);g.Ob(this.AC,d)||(g.Tq(c,this.AC),this.AC=d,g.Rq(c,d));d=this.api.V();var e=g.U(a,2);g.O(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.hE);g.U(a,128)&&!g.XE(d)?(this.ze||(this.ze=new g.BN(this.api),g.J(this,this.ze),g.NM(this.api,this.ze.element,4)),this.ze.u(a.getData()),this.ze.show()):this.ze&&(this.ze.dispose(),this.ze=null)};
   g.k.vk=function(){return this.api.yh()&&this.api.hk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Yd()?(g.IM(this.api,!0),!0):!1};
   g.k.onMutedAutoplayChange=function(a){this.hE=a;this.Qi()};
   g.k.Re=function(){return!1};
   g.k.uf=function(){return!this.Re()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
   g.k.Az=function(){return this.uf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
   g.k.ni=function(){return this.dB};
   g.k.zn=function(){return null};
   g.k.ij=function(){var a=this.api.bb().getPlayerSize();return new g.Pl(0,0,a.width,a.height)};
   g.k.handleGlobalKeyDown=function(){return!1};
   g.k.handleGlobalKeyUp=function(){return!1};
   g.k.nq=function(){};
   g.k.showControls=function(a){void 0!==a&&this.api.bb().Zw(a)};
   g.k.Wk=function(){};
   g.k.sK=function(){return null};g.w(RN,g.R);g.k=RN.prototype;g.k.zv=function(){return 1E3*this.api.getDuration(this.Kj,!1)};
   g.k.stop=function(){this.i&&this.Ae.jc(this.i)};
   g.k.Qb=function(){var a=this.api.getProgressState(this.Kj);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Kj,!1)};this.ea("h")};
   g.k.getProgressState=function(){return this.u};
   g.k.Mc=function(a){g.fI(a,2)&&this.ea("g")};g.w(SN,g.V);SN.prototype.onClick=function(){this.I.Oa("BACK_CLICKED")};g.w(g.TN,g.V);g.TN.prototype.show=function(){g.V.prototype.show.call(this);g.Jq(this.i)};
   g.TN.prototype.hide=function(){this.u.stop();g.V.prototype.hide.call(this)};
   g.TN.prototype.Bq=function(a){a?g.U(this.I.yb(),64)||UN(this,bta(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?UN(this,dta(),"Stop live playback"):UN(this,$sa(),"Pause"))};g.w(XN,g.V);g.k=XN.prototype;g.k.td=function(){this.I.V().N("player_new_info_card_format")&&g.Qq(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.XE(this.I.V())||(this.u.show(),g.jv("iv-button-shown"))};
   g.k.Eb=function(){g.jv("iv-button-hidden");this.u.hide()};
   g.k.Wf=function(){return this.Ab&&4!==this.u.state};
   g.k.xa=function(){this.i&&this.i();g.V.prototype.xa.call(this)};
   g.k.uU=function(){g.jv("iv-button-mouseover")};
   g.k.onClicked=function(a){this.I.yh();var b=g.Qq(this.I.getRootNode(),"ytp-cards-teaser-shown");g.jv("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.hk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(ZN,g.V);g.k=ZN.prototype;g.k.uO=function(){this.I.yh()&&this.I.hk()&&this.Wf()&&this.Eb()};
   g.k.xG=function(){this.Eb();g.jv("iv-teaser-clicked",null!=this.i);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
   g.k.oP=function(){g.jv("iv-teaser-mouseover");this.i&&this.i.stop()};
   g.k.VV=function(a){this.I.V().N("player_new_info_card_format")&&!g.XE(this.I.V())&&this.di.Eb();this.i||!a||this.I.hk()||this.u&&this.u.isActive()||(this.td(a),g.jv("iv-teaser-shown"))};
   g.k.td=function(a){this.Sa("text",a.teaserText);this.element.setAttribute("dir",g.nr(a.teaserText));this.C.show();this.u=new g.M(function(){g.N(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.N("player_new_info_card_format")&&!g.XE(this.I.V())&&this.di.Eb();this.VG()},0,this);
   this.u.start();WN(this.di,!1);this.i=new g.M(this.Eb,580+a.durationMs,this);this.i.start();this.D.push(this.Qa("mouseover",this.IH,this));this.D.push(this.Qa("mouseout",this.HH,this))};
   g.k.VG=function(){if(!this.I.V().N("player_new_info_card_format")&&g.XE(this.I.V())&&this.Ab){var a=this.di.element.offsetLeft,b=g.vg("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.di.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
   g.k.kR=function(){g.XE(this.I.V())&&this.Y.uf()&&this.Ab&&this.S.start()};
   g.k.IH=function(){this.J.stop();this.i&&this.i.isActive()&&this.K.start()};
   g.k.HH=function(){this.K.stop();this.i&&!this.i.isActive()&&this.J.start()};
   g.k.IU=function(){this.i&&this.i.stop()};
   g.k.HU=function(){this.Eb()};
   g.k.zi=function(){this.Eb()};
   g.k.Eb=function(){!this.i||this.B&&this.B.isActive()||(g.jv("iv-teaser-hidden"),this.C.hide(),g.Sq(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.M(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.jc(b.value);this.D=[];this.i&&(this.i.dispose(),this.i=null);WN(this.di,!0)},330,this),this.B.start())};
   g.k.Wf=function(){return this.Ab&&4!==this.C.state};
   g.k.xa=function(){var a=this.I.getRootNode();a&&g.Sq(a,"ytp-cards-teaser-shown");g.ve(this.u,this.B,this.i);g.V.prototype.xa.call(this)};var a3={},$N=(a3.BUTTON="ytp-button",a3.TITLE_NOTIFICATIONS="ytp-title-notifications",a3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",a3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",a3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",a3);g.w(aO,g.V);aO.prototype.onClick=function(){this.api.Fb(this.element);var a=!this.i;this.Sa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Sa("pressed",a);Bva(this,a)};g.w(g.cO,g.V);g.cO.prototype.u=function(){g.N(this.element,"ytp-sb-subscribed")};
   g.cO.prototype.B=function(){g.Sq(this.element,"ytp-sb-subscribed")};g.w(dO,g.V);g.k=dO.prototype;g.k.SF=function(){Fva(this);this.channel.classList.remove("ytp-title-expanded")};
   g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
   g.k.wD=function(){if(Dva(this)&&!this.isExpanded()){this.Sa("flyoutUnfocusable","false");this.Sa("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.ib(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Di&&a.subscribed&&(this.u.show(),this.api.ib(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
   g.k.bD=function(){this.Sa("flyoutUnfocusable","true");this.Sa("channelTitleFocusable","-1");this.B&&this.B.start()};
   g.k.Pa=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.ac&&!!a.Ph:g.XE(b)&&(c=!!a.videoId&&!!a.ac&&!!a.Ph&&!(a.D&&b.pfpChazalUi)&&!(b.C&&200>this.api.getPlayerSize().width));var d=g.FF(this.api.V())+a.ac;g.XE(this.api.V())&&(d=g.ti(d,g.vM("emb_ch_name_ex")));var e=a.ac,f=a.Ph;b=g.XE(b)?a.Xp:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.FF(this.api.V())+e,this.K!==f&&(this.i.style.backgroundImage=
   "url("+f+")",this.K=f),this.Sa("channelLink",e),this.Sa("channelLogoLabel",g.rI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.N(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Sq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.ib(this.i,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=a.Ri);this.Sa("expandedTitle",a.Xp);this.Sa("channelTitleLink",d);this.Sa("expandedSubtitle",a.expandedSubtitle)};g.w(g.fO,g.PK);g.fO.prototype.Sa=function(a,b){g.PK.prototype.Sa.call(this,a,b);this.ea("size-change")};g.w(iO,g.PK);iO.prototype.iM=function(){this.ea("size-change")};
   iO.prototype.focus=function(){this.content.focus()};
   iO.prototype.LT=function(){this.ea("back")};g.w(g.jO,iO);g.jO.prototype.Gc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Kb(this.items,a,Gva);if(0<=b)return;b=~b;g.Gb(this.items,b,0,a);g.Jg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.qF,this);this.menuItems.ea("size-change")};
   g.jO.prototype.Jf=function(a){a.unsubscribe("size-change",this.qF,this);this.isDisposed()||(g.Ab(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))};
   g.jO.prototype.qF=function(){this.menuItems.ea("size-change")};
   g.jO.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.w(lO,g.fO);lO.prototype.i=function(a){g.Hu(a)||39!==g.Iu(a)||(this.element.click(),g.Gu(a))};g.w(nO,g.fO);nO.prototype.onClick=function(){this.setValue(!this.checked);this.ea("select",this.checked)};
   nO.prototype.getValue=function(){return this.checked};
   nO.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.w(oO,g.jO);g.k=oO.prototype;g.k.eU=function(){zN(this.Gr.element)};
   g.k.pU=function(){qO(this,this.I.getDebugText(!0))&&UN(this.xc,SK())};
   g.k.qU=function(){qO(this,this.I.getVideoEmbedCode())&&UN(this.xc,Vsa());this.I.Fb(this.gj.element);VL("EMBED",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
   g.k.rU=function(){qO(this,this.I.getVideoUrl(!0,!0))&&UN(this.xc,XK());this.I.Fb(this.getVideoUrl.element);VL("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
   g.k.sU=function(){qO(this,this.I.getVideoUrl(!1,!0))&&UN(this.xc,XK());this.I.Fb(this.jj.element);VL("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
   g.k.tM=function(a){var b;null===(b=this.ri)||void 0===b?void 0:b.setValue(a)};
   g.k.BU=function(){this.I.setLoopVideo(this.ri.getValue());this.Bb.Eb();this.I.Fb(this.ri.element)};
   g.k.qV=function(a){this.I.reportPlaybackIssue();if(g.wN(a,this.I,!tF(this.I.V()))){a=this.I;var b=a.app.getFeedbackProductData();a.Oa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Bb.Eb()};
   g.k.JV=function(){this.I.showVideoInfo();this.Bb.Eb()};
   g.k.onVideoDataChange=function(a,b){Iva(this,b)};
   g.k.Yb=function(a){g.jO.prototype.Yb.call(this,a);this.I.ib(this.gj.element,a);this.I.ib(this.getVideoUrl.element,a);this.I.ib(this.jj.element,a);this.ri&&this.I.ib(this.ri.element,a)};g.w(g.rO,g.JN);g.k=g.rO.prototype;g.k.show=function(){g.JN.prototype.show.call(this);this.Bt()};
   g.k.hide=function(){g.JN.prototype.hide.call(this);1<this.i.length&&g.tO(this)};
   g.k.Bt=function(){Kva(this);this.Ab&&(Jva(this),g.fm(this.element,this.size))};
   g.k.kh=function(){var a=this.i.pop();sO(this,a,this.i[this.i.length-1],!0)};
   g.k.pP=function(a){if(!g.Hu(a))switch(g.Iu(a)){case 27:this.Eb();g.Gu(a);break;case 37:1<this.i.length&&this.kh();g.Gu(a);break;case 39:g.Gu(a)}};
   g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
   g.k.xa=function(){g.JN.prototype.xa.call(this);this.C&&this.C.dispose();this.J&&this.J.dispose()};g.w(g.uO,g.rO);g.k=g.uO.prototype;g.k.rP=function(a){var b,c=Du(a);c&&(Rg(c,"a")||Rg(c,null,"ytp-no-contextmenu",void 0))||this.Ab||(this.ya=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.ag(a.clientX,a.clientY):new g.ag(0,0),this.ma.start())};
   g.k.QM=function(){this.ma.stop()};
   g.k.bW=function(){this.open(this.ya)};
   g.k.show=function(){this.D||(this.D=new oO(this.I,this.Aa,this,this.xc),g.J(this,this.D),g.pO(this,this.D));this.D.tM(this.I.getLoopVideo());g.rO.prototype.show.call(this);this.I.ib(this.element,!0);this.D.Yb(!0)};
   g.k.hide=function(){Mva(this);g.rO.prototype.hide.call(this);this.I.ib(this.element,!1);this.D&&this.D.Yb(!1)};
   g.k.bU=function(a){var b=Du(a);this.Ab||b&&(Rg(b,"a")||Rg(b,null,"ytp-no-contextmenu",void 0))||(g.Gu(a),this.open(Fu(a)))};
   g.k.open=function(a){Nva(this);var b=this.I.getVideoData();g.O(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.td();var c=document.body;b=new Ml(0,Infinity,Infinity,0);var d=qg(c);for(var e=d.i.body,f=d.i.documentElement,h=zg(d.i);c=yca(c);)if(!(g.Qc&&0==c.clientWidth||g.Bg&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Xl(c,"overflow")){var l=g.am(c),m=new g.ag(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,
   l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.i;d=yg(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=a,e=b,f=5,65==(f&65)&&(h.x<d.left||h.x>=d.right)&&(f&=-2),132==(f&132)&&(h.y<d.top||h.y>=d.bottom)&&
   (f&=-5),h.x<d.left&&f&1&&(h.x=d.left),f&16&&(c=h.x,h.x<d.left&&(h.x=d.left),h.x+e.width>d.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.y<d.top&&f&4&&(h.y=d.top),f&32&&(c=h.y,h.y<d.top&&(h.y=d.top),h.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.Pl(0,0,0,0);d.left=
   a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Zl(this.element,new g.ag(d.left,d.top));g.my(this.B);this.B.T(document,"contextmenu",this.kU);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.qP)};
   g.k.kU=function(a){if(!g.Hu(a)){var b=Du(a);g.Mg(this.element,b)||this.Eb();this.I.V().disableNativeContextMenu&&g.Gu(a)}};
   g.k.onFullscreenToggled=function(){this.Eb();Nva(this)};
   g.k.qP=function(){this.Eb()};g.w(g.vO,g.V);g.vO.prototype.onClick=function(){return g.H(this,function b(){var c=this,d,e,f,h;return g.B(b,function(l){if(1==l.i)return d=c.api.V(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.A(l,Pva(c,h),2);l.u&&Ova(c);c.api.Fb(c.element);g.sa(l)})})};
   g.vO.prototype.Pa=function(){var a=this.api.V(),b=this.api.getVideoData();this.Sa("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.Sa("title-attr","Copy link");var c=this.api.bb().getPlayerSize().width;this.visible=
   !!b.videoId&&c>=this.u&&b.Xj&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.OK(this,this.visible);xO(this.tooltip);this.api.ib(this.element,this.visible&&this.Z)};
   g.vO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};
   g.vO.prototype.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.element,"ytp-copylink-button-visible")};g.w(yO,g.V);g.k=yO.prototype;g.k.show=function(){g.V.prototype.show.call(this);g.Jq(this.i)};
   g.k.hide=function(){this.u.stop();g.Sq(this.element,"ytp-chapter-seek");g.Sq(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
   g.k.Rs=function(a,b,c,d){this.Ss(a,d)};
   g.k.Ss=function(a,b){g.Lq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Sq(this.element,"ytp-chapter-seek");this.Sa("chapterSeekText","");a=g.rI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Sa("seekTime",a)};
   g.k.IA=function(a,b){g.Lq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(this.element,"ytp-chapter-seek");this.Sa("chapterSeekText",b);this.Sa("seekTime","")};g.w(zO,g.V);g.k=zO.prototype;g.k.show=function(){g.V.prototype.show.call(this);g.Jq(this.u)};
   g.k.hide=function(){this.B.stop();g.Sq(this.element,"ytp-chapter-seek");g.Sq(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
   g.k.Rs=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.Fb(e);g.Lq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.bb().getPlayerSize().height;e=this.I.bb().getPlayerSize();e=e.width/3-3*e.height;this.i.style.width=f+"px";this.i.style.height=f+"px";1===a?(this.i.style.left="",this.i.style.right=e+"px"):-1===a&&(this.i.style.right="",this.i.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=
   h+"px";1===a?(a=this.I.bb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");Qva(this,d)};
   g.k.Ss=function(a,b){var c=this.I.bb().getPlayerSize();g.Lq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(this.element,"ytp-time-seeking");this.i.style.width="110px";this.i.style.height="110px";1===a?(this.i.style.right="",this.i.style.left=.8*c.width-30+"px"):-1===a&&(this.i.style.right="",this.i.style.left=.1*c.width-15+"px");this.i.style.top=.5*c.height+15+"px";Qva(this,b)};
   g.k.IA=function(a,b){g.Lq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.i.style.width="0";this.i.style.height="0";g.N(this.element,"ytp-chapter-seek");this.Sa("seekText",b);this.Sa("seekTime","")};var ZNa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ZNa).reduce(function(a,b){a[ZNa[b]]=b;return a},{});
   var $Na={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys($Na).reduce(function(a,b){a[$Na[b]]=b;return a},{});
   var aOa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(aOa).reduce(function(a,b){a[aOa[b]]=b;return a},{});var b3,bOa;b3=[{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"}];bOa=[{option:0,text:AO(0)},{option:.25,text:AO(.25)},{option:.5,text:AO(.5)},{option:.75,text:AO(.75)},{option:1,text:AO(1)}];
   g.EO=[{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:b3},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:AO(.5)},{option:-1,text:AO(.75)},{option:0,text:AO(1)},{option:1,text:AO(1.5)},{option:2,text:AO(2)},
   {option:3,text:AO(3)},{option:4,text:AO(4)}]},{option:"background",text:"Background color",options:b3},{option:"backgroundOpacity",text:"Background opacity",options:bOa},{option:"windowColor",text:"Window color",options:b3},{option:"windowOpacity",text:"Window opacity",options:bOa},{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:AO(.25)},{option:.5,text:AO(.5)},{option:.75,text:AO(.75)},{option:1,text:AO(1)}]}];g.w(g.DO,g.uD);g.k=g.DO.prototype;
   g.k.BK=function(a){var b=!1,c=g.Iu(a),d=Du(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.Hu(a)?(e=!1,h=!0):l.Ye&&(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);VN(this.xc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);VN(this.xc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.sf()&&(this.api.startSeekCsiAction(),
   this.api.seekTo(0),h=f=!0);break;case 35:this.api.sf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&CO(this,!0);(b||h)&&this.rd.Wk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Gu(a);l.u&&(a={keyCode:g.Iu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Hu(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))};
   g.k.CK=function(a){this.handleGlobalKeyUp(g.Iu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
   g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.LM(this.api.wb());c&&(c=c.Ao)&&c.Ab&&(c.xK(a),b=!0);9===a&&(CO(this,!0),b=!0);return b};
   g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.Ye)return h;var l=g.LM(this.api.wb());if(l&&(l=l.Ao)&&l.Ab)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.wK(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&Uq(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){f=(f=this.api.getVideoData())?f.ql:[];l=aU?d:c;switch(a){case 80:b&&
   !e.ma&&(UN(this.xc,cta(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ma&&(UN(this.xc,YK(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(-1,10):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
   this.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(1,10):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
   this.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=Sva(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.IA(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(-1,5):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
   this.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=Rva(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.IA(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&null!=this.i?this.i.Ss(1,5):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
   this.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),VN(this.xc,this.api.getVolume(),!1)):(this.api.mute(),VN(this.xc,0,!0));h=!0;break;case 32:case 75:e.ma||(h=!g.YJ(this.api.yb()),this.xc.Bq(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.kc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),Ava(this.xc,!1),h=!0):this.api.sf()&&(Uva(this,1),h=!0);break;case 188:b?e.kc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-
   .25,!0),Ava(this.xc,!0),h=!0):this.api.sf()&&(Uva(this,-1),h=!0);break;case 70:iva(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
   break;case 27:this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.hN(this.api.wb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),UN(this.xc,jva(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:FO(this,"textOpacity");break;case 87:FO(this,"windowOpacity");break;case 187:case 61:FO(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:FO(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48:
   96<=a&&105>=a&&(m=a-96));null!=m&&this.api.sf()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.rd.Wk()}return h};
   g.k.xa=function(){g.Lq(this.B);g.uD.prototype.xa.call(this)};g.w(GO,g.V);GO.prototype.Pa=function(){var a=g.XE(this.I.V())&&g.KM(this.I)&&g.U(this.I.yb(),128),b=this.I.getPlayerSize();this.visible=this.i.uf()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&xO(this.tooltip);this.I.ib(this.element,this.visible&&this.Z)};
   GO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};
   GO.prototype.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.element,"ytp-overflow-button-visible")};g.w(HO,g.JN);g.k=HO.prototype;g.k.sP=function(a){a=Du(a);g.Mg(this.element,a)&&(g.Mg(this.i,a)||g.Mg(this.closeButton,a)||KN(this))};
   g.k.Eb=function(){g.JN.prototype.Eb.call(this);this.tooltip.cj(this.element)};
   g.k.show=function(){this.Ab&&this.I.ea("OVERFLOW_PANEL_OPENED");g.JN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Vva(this,!0)};
   g.k.hide=function(){g.JN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Vva(this,!1)};
   g.k.onFullscreenToggled=function(a){!a&&this.Wf()&&KN(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.Ab){b.focus();break}};g.w(JO,g.V);JO.prototype.onClick=function(a){g.wN(a,this.api)&&this.api.playVideoAt(this.index)};g.w(KO,g.JN);g.k=KO.prototype;g.k.show=function(){g.JN.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.SB);this.B.T(this.api,"onPlaylistUpdate",this.SB);this.SB()};
   g.k.hide=function(){g.JN.prototype.hide.call(this);g.my(this.B);this.updatePlaylist(null)};
   g.k.SB=function(){this.updatePlaylist(this.api.getPlaylist())};
   g.k.MA=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.r(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;d<c;d++){var e=new JO(this.api,a,d);this.i.push(e);e.Da(this.items)}this.selected=this.i[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
   g.k.aW=function(a){var b=this.api.getVideoUrl(!0);g.xN(b,this.api,a)};
   g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.MA,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.MA,this);var b=a.author,c={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(c.AUTHOR=b);this.update({title:a.title,subtitle:g.rI(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.MA()}else this.Ab&&this.hide();
   else this.playlist&&this.MA()};
   g.k.focus=function(){this.selected.focus()};
   g.k.xa=function(){this.hide();g.JN.prototype.xa.call(this)};g.w(LO,g.V);
   LO.prototype.Pa=function(){var a=g.XE(this.api.V());g.O(this.element,"ytp-playlist-menu-button-tiny",400>this.api.bb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.rI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.rI("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Ab||(this.show(),xO(this.tooltip)),this.visible=!0,this.Yb(!0)):
   this.Ab&&(this.hide(),this.Yb(!1),xO(this.tooltip))};
   LO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};
   LO.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Pa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Pa,this);this.Pa()};g.w(MO,g.V);g.k=MO.prototype;
   g.k.TB=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n;a=this.tooltipRenderer.text;var p=!1;(null===(c=null===a||void 0===a?void 0:a.runs)||void 0===c?0:c.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),p=!0);g.hm(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1<d)if(this.tooltipRenderer.targetId){a=
   [];p=p.split("$TARGET_ICON");var q=new g.LK({G:"span",L:"ytp-promotooltip-details-icon",U:[cOa[this.tooltipRenderer.targetId]]});g.J(this,q);for(var t=[],u=g.r(p),x=u.next();!x.done;x=u.next())x=new g.LK({G:"span",L:"ytp-promotooltip-details-component",va:x.value}),g.J(this,x),t.push(x);2===p.length?(a.push(t[0].element),a.push(q.element),a.push(t[1].element)):1===p.length&&(0===d?(a.push(q.element),a.push(t[0].element)):(a.push(t[0].element),a.push(q.element)));d=a.length?a:null}else d=null;else d=
   p;if(d){if("string"!==typeof d)for(g.Ig(this.details),c=g.r(d),d=c.next();!d.done;d=c.next())this.details.appendChild(d.value);else this.update({details:d});c=!0}}g.hm(this.details,c);c=this.tooltipRenderer.acceptButton;d=!1;(null===(h=null===(f=null===(e=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===e?void 0:e.text)||void 0===f?void 0:f.runs)||void 0===h?0:h.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),d=!0);
   g.hm(this.acceptButton,d);e=this.tooltipRenderer.dismissButton;f=!1;(null===(n=null===(m=null===(l=null===e||void 0===e?void 0:e.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?0:n.length)&&e.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.hm(this.dismissButton,f)}b&&(this.B=b);this.i=Wva(this);this.D=!1;this.I.V().N("web_player_hide_nitrate_promo_tooltip")||g.OK(this,!0);(b=!this.i)||(b=this.i,
   l=window.getComputedStyle(b),b="none"===l.display||"hidden"===l.visibility||"true"===b.getAttribute("aria-hidden"));b||this.I.Je()?g.OK(this,!1):(b=g.gm(this.i),b.width&&b.height?(this.K.nq(this.element,this.i),l=this.I.bb().getPlayerSize().height-g.gm(this.element).height-b.height-12,this.element.style.top=l+"px",l=this.Fa("ytp-promotooltip-pointer"),m=g.em(this.i,this.I.getRootNode()),n=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.I.isFullscreen()?18:12,l.style.left=m.x-n+b.width/
   2-e+"px"):g.OK(this,!1));this.J||(this.J=!0,OO(this,0));this.u&&this.I.ib(this.element,this.Ab)}};
   g.k.dU=function(){NO(this);this.D=!0};
   g.k.nT=function(){this.C=!0;OO(this,1);this.I.ea("promotooltipacceptbuttonclicked",this.acceptButton);NO(this);this.u&&this.I.Fb(this.acceptButton)};
   g.k.jU=function(){this.C=!0;OO(this,2);NO(this);this.u&&this.I.Fb(this.dismissButton)};
   g.k.tP=function(a){var b,c;if(1===this.I.getPresentingPlayerType()){var d=!0,e=g.vg("ytp-ad-overlay-ad-info-dialog-container"),f=Du(a);if(this.B&&f&&g.Mg(this.B,f))this.B=null;else{1===this.I.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
   var h=Xva(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.Mg(this.element,f)):"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null===(c=this.tooltipRenderer.dismissStrategy)||void 0===c?void 0:c.type)&&(d=h?!1:d&&g.Mg(this.element,f));this.i&&this.Ab&&!e&&(!f||d&&g.ML(a))&&(this.C=!0,NO(this))}}};
   g.k.xb=function(){this.D||(this.i||(this.i=Wva(this)),this.TB())};
   var cOa={"ytp-settings-button":g.aL()};g.w(PO,g.V);PO.prototype.onStateChange=function(a){g.OK(this,g.U(a.state,2))};
   PO.prototype.onClick=function(){this.I.yb();this.I.playVideo()};g.w(g.QO,g.V);g.QO.prototype.onClick=function(){var a=this.api.V(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(Yva)}catch(e){e instanceof Error&&Yva(e)}else this.i.vk(),KN(this.B,this.element,!1);this.api.Fb(this.element)};
   g.QO.prototype.Pa=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.XE(a)&&g.KM(this.api)&&g.U(this.api.yb(),128);this.Sa("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.disableSharing&&2!==this.api.getPresentingPlayerType()||
   !b.showShareButton||b.Xj||c||b.D&&a.pfpChazalUi;c=this.api.bb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.OK(this,this.visible);xO(this.tooltip);this.api.ib(this.element,this.visible&&this.Z)};
   g.QO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};
   g.QO.prototype.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.element,"ytp-share-button-visible")};g.w(g.RO,g.JN);g.k=g.RO.prototype;g.k.uP=function(a){a=Du(a);g.Mg(this.D,a)||g.Mg(this.closeButton,a)||KN(this)};
   g.k.Eb=function(){g.JN.prototype.Eb.call(this);this.tooltip.cj(this.element)};
   g.k.show=function(){var a=this.Ab;g.JN.prototype.show.call(this);this.Pa();a||this.api.Oa("onSharePanelOpened")};
   g.k.RS=function(){this.Ab&&this.Pa()};
   g.k.Pa=function(){var a=this;g.N(this.element,"ytp-share-panel-loading");g.Sq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&eM(this.api.Ml(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Sq(a.element,"ytp-share-panel-loading"),$va(a,d))});
   b=this.api.getVideoUrl(!0,!0,!1,!1);g.hF(this.api.V())&&(b=g.ti(b,g.vM("emb_share")));this.Sa("link",b);this.Sa("linkText",b);this.Sa("shareLinkWithUrl",g.rI("Share link $URL",{URL:b}));zN(this.B)};
   g.k.onFullscreenToggled=function(a){!a&&this.Wf()&&KN(this)};
   g.k.focus=function(){this.B.focus()};
   g.k.xa=function(){g.JN.prototype.xa.call(this);Zva(this)};g.w(UO,g.V);g.k=UO.prototype;g.k.aF=function(){};
   g.k.bF=function(){};
   g.k.hx=function(){return!0};
   g.k.gX=function(){if(this.expanded){this.Aa.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.Aa.hide();this.Za=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Za)+"px";this.ya.start()};
   g.k.DR=function(){this.badge.element.style.width=(this.expanded?this.Za:34)+"px";this.Ja.start()};
   g.k.FX=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
   g.k.Th=function(){this.hx()?this.S.show():this.S.hide();awa(this)};
   g.k.vP=function(){this.enabled=!1;this.Th()};
   g.k.EX=function(a){this.eb=a;this.Th()};
   g.k.PT=function(a){this.Ra=1===a;this.Th();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
   g.k.nU=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.Th()};g.w(VO,UO);g.k=VO.prototype;g.k.xa=function(){WO(this);UO.prototype.xa.call(this)};
   g.k.aF=function(a){a.target!==this.dismissButton.element&&(cwa(this,!1),this.I.Oa("innertubeCommand",this.onClickCommand))};
   g.k.bF=function(){this.B=!0;cwa(this,!0);this.Th()};
   g.k.ZU=function(a){this.Ka=a;this.Th()};
   g.k.RU=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.Ea&&(this.Y=a,a||(a=3+this.I.getCurrentTime(),this.Ad(a)))};
   g.k.onVideoDataChange=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.i=!0,this.Y=this.Ea=this.u=this.K=!1,WO(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ka=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.C){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.C=!!h)&&this.I.ym(this.badge.element,h||null)}this.D||(this.D=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&
   this.I.ym(this.dismissButton.element,(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.sA(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Ua=g.sA(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;GG(b)?this.Y=this.Ea=!0:this.Ad()}bwa(this);TO(this);this.Th()};
   g.k.hx=function(){return this.eb&&!this.Ka&&this.enabled&&!this.B&&!this.kb.uf()&&!this.Ra&&!this.Y&&(this.u||this.i)};
   g.k.De=function(a){(this.u=a)?(SO(this),TO(this,!1)):(WO(this),this.ma.start());this.Th()};
   g.k.Ad=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.lA(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.lA(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.Ad(b)};g.w(XO,g.JN);XO.prototype.show=function(){g.JN.prototype.show.call(this);this.C.start()};
   XO.prototype.hide=function(){g.JN.prototype.hide.call(this);this.C.stop()};
   XO.prototype.gs=function(a,b){"dataloaded"===a&&((this.B=b.AI,this.i=b.yI,isNaN(this.B)||isNaN(this.i))?this.D&&(this.I.We("intro"),this.I.removeEventListener(g.nA("intro"),this.ya),this.I.removeEventListener(g.oA("intro"),this.ma),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.nA("intro"),this.ya),this.I.addEventListener(g.oA("intro"),this.ma),this.I.addEventListener("onShowControls",this.J),a=new g.lA(this.B,this.i,{priority:9,namespace:"intro"}),
   this.I.Ad([a]),this.D=!0))};g.w(YO,g.V);YO.prototype.onClick=function(){this.I.zo()};
   YO.prototype.Pa=function(){var a=!0,b=this.I.V();(b.N("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.N("embeds_use_native_controls_killswitch")&&b.isMobile)&&g.XE(b)&&(a=a&&480<=this.I.bb().getPlayerSize().width);g.OK(this,a);this.Sa("icon",this.I.qf()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
   fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new Tv("yt.autonav");g.w(ZO,g.V);g.k=ZO.prototype;
   g.k.Zt=function(){if(3!==this.I.getPresentingPlayerType()&&g.OM(this.I)&&400<=this.I.bb().getPlayerSize().width&&!1!==this.I.getVideoData().EW){if(!this.i){this.i=!0;g.OK(this,this.i);this.u.push(this.T(this.I,"videodatachange",this.Zt));this.u.push(this.T(this.I,"videoplayerreset",this.Zt));this.u.push(this.T(this.I,"onPlaylistUpdate",this.Zt));this.u.push(this.T(this.I,"autonavchange",this.JH));var a=this.I.getVideoData();this.JH(a.autonavState);this.I.ib(this.element,this.i)}}else{this.i=!1;g.OK(this,
   this.i);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.jc(b.value)}};
   g.k.JH=function(a){(a=1!==a)||(g.Iv.getInstance(),a=g.Cs("web_autonav_allow_off_by_default")&&!g.Kv(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Kv(0,140));this.isChecked=a;dwa(this)};
   g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.LA(this.isChecked?2:1);dwa(this);this.I.Fb(this.element)};
   g.k.getValue=function(){return this.isChecked};
   g.k.setValue=function(a){this.isChecked=a;this.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.w(g.aP,g.V);g.aP.prototype.xa=function(){this.ctx=null;g.V.prototype.xa.call(this)};g.w(bP,g.V);bP.prototype.onClick=function(){this.I.Oa("innertubeCommand",this.B)};
   bP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Qb()};
   bP.prototype.updateVideoData=function(a,b){a=b.RX;this.B=null===a||void 0===a?void 0:a.command;this.u.disabled=null==this.B;g.O(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Qb()};
   bP.prototype.Qb=function(){var a="",b=this.K.i;if(1<b.length){a=1E3*this.I.getProgressState().current;var c=BO(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.i)this.I.Oa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.C&&(this.update({title:a}),this.C=a);a?this.show():this.hide()};g.w(g.cP,g.V);g.cP.prototype.Mc=function(a){g.U(a.state,32)?dP(this,this.api.Gh()):this.Ab&&(g.U(a.state,16)||g.U(a.state,1))||this.i.hide()};
   g.cP.prototype.od=function(){var a=this.api.yb();(g.U(a,32)||g.U(a,16))&&eP(this)};
   g.cP.prototype.D=function(){this.B=NaN;eP(this)};
   g.cP.prototype.hide=function(){this.u&&dP(this,null);g.V.prototype.hide.call(this)};g.w(fP,g.V);fP.prototype.onClick=function(){this.Ta.Fb(this.element);this.Ta.Oa("onFullerscreenEduClicked")};
   fP.prototype.Pa=function(){this.Ta.isFullscreen()?this.u?this.i.hide():this.i.show():this.hide();this.Ta.ib(this.element,this.Ta.isFullscreen()&&!this.u)};g.w(g.gP,g.V);g.k=g.gP.prototype;g.k.onClick=function(){var a=this;if(this.I.V().Ua||this.I.V().C)try{this.I.toggleFullscreen().catch(function(b){a.Nv(b)})}catch(b){this.Nv(b)}else KN(this.message,this.element,!0)};
   g.k.Nv=function(a){String(a).includes("fullscreen error")?g.My(a):g.Ly(a);this.kF()};
   g.k.kF=function(){this.disable();this.message.td(this.element,!0)};
   g.k.im=function(){hy()===this.I.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
   g.k.fR=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.kF()}};
   g.k.disable=function(){var a=this;if(!this.message){var b=(null!=uu(["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.JN(this.I,{G:"div",Ha:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://support.google.com/youtube/answer/6276924",
   target:this.I.V().J},va:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.u.Mr(a.message,c)});
   g.NM(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
   g.k.Pa=function(){var a=iva(this.I),b=this.I.V().C&&250>this.I.getPlayerSize().width;g.OK(this,a&&!b)};
   g.k.Hi=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
   L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=AN(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path",
   Ob:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=AN(this.I,"Full screen","f");a=this.message?null:a;this.update({title:a,label:a,icon:b});xO(this.u.fc())};
   g.k.xa=function(){this.message||((0,this.i)(),this.i=null);g.V.prototype.xa.call(this)};g.w(hP,g.V);hP.prototype.onClick=function(){this.I.Oa("onCollapseMiniplayer");this.I.Fb(this.element)};
   hP.prototype.Pa=function(){this.visible=!this.I.isFullscreen();g.OK(this,this.visible);this.I.ib(this.element,this.visible&&this.Z)};
   hP.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};g.w(iP,g.V);iP.prototype.onVideoDataChange=function(a){this.Pa("newdata"===a)};
   iP.prototype.Pa=function(a){var b=this.I.getVideoData(),c=b.cd,d=this.I.yb();d=(g.YJ(d)||g.U(d,4))&&0<c.length;g.OK(this,d);a&&(this.i=!0);if(d){this.i&&g.Jq(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.rI("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.Ie("default.jpg")});xO(this.tooltip)}else this.u.stop()};
   iP.prototype.B=function(){wO(this.tooltip,this.element,"More cameras available");this.i=!1};g.w(jP,g.JN);g.k=jP.prototype;g.k.show=function(){var a=this.Ab;g.JN.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Pa),this.B.T(this.api,"videodatachange",this.Pa),this.Pa())};
   g.k.hide=function(){this.B&&(g.my(this.B),g.JN.prototype.hide.call(this))};
   g.k.Pa=function(){var a=this,b=this.api.getVideoData(),c=b.cd,d,e={};for(d=0;d<c.length;e={sB:e.sB},d++){var f=this.i[d];f||(f=new g.V({G:"button",Ha:["ytp-multicam-menu-item","ytp-button"],W:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},U:[{G:"div",L:"ytp-multicam-menu-item-title",va:"{{cameraName}}"}]}),e.sB=d,f.Qa("click",function(n){return function(){var p=n.sB,q=a.api.getVideoData(),t=a.api,u=q.cd[p];p=g.PM(t.app,1).getVideoData();q=t.getCurrentTime();u.id===p.videoId?(u=g.PM(t.app,
   1),g.PM(t.app)!==u&&(t.app.Fj(1),p.isLivePlayback||t.seekTo(q))):(t.app.Fj(4),t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.nH}}}},4))}}(e)),f.Da(this.items),this.i[d]=f);
   var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=sF(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.i.length;)this.i.pop().dispose();d=this.api.yb();b=c.length||!b.isLoaded();g.YJ(d)||g.U(d,4)||b||!this.Wf()||KN(this)};
   g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.cd,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
   g.k.xa=function(){g.ve(this.i);g.JN.prototype.xa.call(this)};g.w(kP,g.I);kP.prototype.i=function(){var a=(0,g.Q)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.pr(dOa,a));1>a&&this.delay.start()};
   var dOa=new g.or(0,0,.4,0,.2,1,1,1),jwa=/[0-9.-]+|[^0-9.-]+/g;g.w(g.mP,g.V);g.k=g.mP.prototype;g.k.KH=function(a){this.visible=300<=a.width;g.OK(this,this.visible);this.I.ib(this.element,this.visible&&this.Z)};
   g.k.JU=function(){this.I.V().Y?this.I.isMuted()?this.I.unMute():this.I.mute():KN(this.message,this.element,!0);this.I.Fb(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.I.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.ma;isNaN(f)?mwa(this,a):lP(this.Aa,function(l){mwa(c,f+(c.D-f)*l)},250);
   this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.S;isNaN(h)?nwa(this,d):lP(this.Y,function(l){nwa(c,h+(c.C-h)*l)},250);
   this.C=d}e.Y&&(e=AN(this.I,"Mute","m"),d=AN(this.I,"Unmute","m"),b=b?d:e,this.Sa("title",b),this.Sa("label",b),xO(this.tooltip))};
   g.k.Yb=function(a){g.V.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};
   var kwa=["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"],lwa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
   23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.w(nP,g.V);nP.prototype.onClick=function(){this.I.togglePictureInPicture()};g.w(g.oP,g.V);g.oP.prototype.onStateChange=function(a){owa(this,a.state);a=g.U(a.state,2);AF(this.I.V())&&(!this.u&&!a||this.u&&a?(this.hide(),this.I.ib(this.element,!1)):(this.show(),this.I.ib(this.element,!0)))};
   g.oP.prototype.onVideoDataChange=function(){g.O(this.element,"ytp-play-button-playlist",g.KM(this.I))};
   g.oP.prototype.qt=function(a){this.I.Fb(this.element);g.YJ(this.I.yb())?this.I.pauseVideo():(this.I.Je()&&this.I.yb().isCued()&&RA("direct_playback"),this.I.Ap().timerName="direct_playback",this.I.playVideo());this.I.V().N("miniplayer_disable_play_button_click_focus")&&this.I.Je()&&a&&"click"===a.type&&this.element.blur()};g.w(g.qP,g.V);g.k=g.qP.prototype;g.k.onVideoDataChange=function(){qwa(this);this.C&&(this.jc(this.C),this.C=null);this.videoData=this.I.getVideoData(1);if(this.playlist=this.I.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.T(this.I,"progresssync",this.wP);this.B=rwa(this);pP(this);this.UB(this.I.bb().getPlayerSize())};
   g.k.UB=function(a){a=void 0===a?this.I.bb().getPlayerSize():a;a=(g.KM(this.I)||this.i&&g.OM(this.I)||swa(this))&&(this.i||400<=a.width);g.OK(this,a);this.I.ib(this.element,a)};
   g.k.onClick=function(a){this.I.Fb(this.element);var b=!0;this.isLinkable?b=g.wN(a,this.I):g.Gu(a);b&&(this.i&&5===this.I.getPresentingPlayerType()?this.I.ea("ytoprerollinternstitialnext"):this.i?this.I.nextVideo(!0):this.B?this.I.seekTo(0):this.I.previousVideo(!0))};
   g.k.wP=function(){var a=rwa(this);a!==this.B&&(this.B=a,pP(this))};
   g.k.xa=function(){this.u&&(this.u(),this.u=null);qwa(this);g.V.prototype.xa.call(this)};g.w(twa,g.V);g.w(sP,g.V);wwa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.i=b-c-d;this.position=g.Xf(a,c,c+this.i);this.C=this.position-c;this.B=this.C/this.i};g.w(xwa,g.V);g.w(g.wP,g.PK);g.k=g.wP.prototype;g.k.xb=function(){g.xP(this);AP(this);Cwa(this,this.ya)};
   g.k.onClickCommand=function(a){if(a=null===a||void 0===a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&yP(this,b)}};
   g.k.ZV=function(a){this.api.Oa("innertubeCommand",this.zd[a.id])};
   g.k.Qb=function(){AP(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.FA()};
   g.k.yP=function(a){if(!g.Hu(a)){var b=!1;switch(g.Iu(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.Gu(a)}};
   g.k.gs=function(a,b){this.updateVideoData(b,"newdata"===a)};
   g.k.dS=function(){this.gs("newdata",this.api.getVideoData())};
   g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(bH(a)||DP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?this.zb=!1:this.zb=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null===a||void 0===a||!bH(a))));Nwa(this,this.api.sf());if(b){if(c)for(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,GP(this),BP(this,this.S,this.Ra);0<this.D.length;)this.D.pop().dispose();else this.FA();g.zQ(this.tooltip)}if(a){b=a.watchNextResponse;
   if(b=!a.isLivePlayback&&b)b=this.api.getVideoData(),c=b.zC,b=null!=b.multiMarkersPlayerBarRenderer||null!=c&&0<c.length;if(!b||this.Sb||this.Sb)ywa(this),zwa(this);else{b=this.api.getVideoData();if(c=b.multiMarkersPlayerBarRenderer){var d;b=this.api.getVideoData();b.tp=(null===(d=c.visibleOnLoad)||void 0===d?void 0:d.key)||b.tp;d=g.r(c.markersMap);for(c=d.next();!c.done;c=d.next())c=c.value,c.key&&c.value&&(this.qb[c.key]=c.value);null!=b.tp&&yP(this,b.tp)}else if(d=b.zC)Bwa(this,d),b.ql=this.i,Awa(this);
   a.cH&&(d=a.cH,b=d.key,d.isVisible&&b&&yP(this,b),a.cH=void 0)}}AP(this)};
   g.k.xP=function(a){this.K&&!g.U(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.K.cancel()};
   g.k.LH=function(a){var b=!!this.Sb!==!!a;(this.Sb=a)?(this.Sa("clipstarticon",Zsa()),this.Sa("clipendicon",Zsa()),this.Sa("clipstarttitle",null),this.Sa("clipendtitle",null)):(this.Sa("clipstarticon",Usa()),this.Sa("clipendicon",Tsa()),this.Sa("clipstarttitle","Watch full video"),this.Sa("clipendtitle","Watch full video"));GP(this);BP(this,this.S,this.Ra);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.xP(this))};
   g.k.cV=function(a,b,c){var d,e=g.am(this.element),f=zP(this).i,h=c?c.getAttribute("data-tooltip"):void 0,l=c?c.getAttribute("data-position"):void 0,m=c?c.getAttribute("data-offset-y"):void 0;m=m?Number(m):0;l&&(a=SL(this.u,Number(c.getAttribute("data-position")),0)*f+g.am(this.Oc).x);this.kb.x=a-e.x;this.kb.y=b-e.y;a=zP(this);e=FP(this,a);b=0;if(null===(d=this.api.getVideoData())||void 0===d?0:bH(d))(b=this.api.getProgressState().seekableEnd)&&e>b&&(e=b,c=-this.ma,b=SL(this.u,b)*zP(this).i+c,a.position=
   b),b=this.u.u;DP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(b=this.u.u);b=h||g.LL(this.zb?e-this.u.i:e-b);c=a.position+this.cd;e-=this.api.Uc();if(this.api.Gh()){if(1<this.i.length){f=EP(this,this.kb.x,!0);for(l=0;l<this.i.length;)g.O(this.i[l].i,"ytp-exp-chapter-hover-effect",l===f),l++;l=this.i[f].startTime;for(var n=f===this.i.length-1?Infinity:this.i[f+1].startTime,p=g.r(this.ya),q=p.next();!q.done;q=p.next())q=q.value,g.O(q.element,"ytp-timed-marker-hover",q.timeRangeStartMillis>=
   l&&q.timeRangeStartMillis<n);if(1<this.D.length)for(l=0;l<this.i.length;l++)g.O(this.D[l].element,"ytp-heatmap-hover",l===f)}l=this.tooltip.scale;m=(isNaN(m)?0:m)-45*l;f=BO(this.i,1E3*e);(f=this.i[f].title)||(m+=16*l);.6===this.tooltip.scale&&(m=f?110:126);l=BO(this.i,1E3*e);this.La=Hwa(this,e,l)?l:Hwa(this,e,l+1)?l+1:-1;g.O(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.La&&1<this.i.length);g.Sq(this.api.getRootNode(),"ytp-progress-bar-decoration");l=g.r(this.heatMarkersDecorations);for(n=
   l.next();!n.done;n=l.next())n=n.value,p=1E3*e,p>=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&&(f=n.label,b=g.LL(n.decorationTimeMillis/1E3),g.N(this.api.getRootNode(),"ytp-progress-bar-decoration"));l=320*this.tooltip.scale;n=f.length*(this.B?8.55:5.7);l=n<=l?n:l;n=l<160*this.tooltip.scale;p=3;!n&&l/2>a.position&&(p=1);!n&&l/2>this.C-a.position&&(p=2);this.api.V().C&&(m-=10);0<this.D.length&&this.D[0].isValid&&(m-=14*(this.B?2:1));gxa(this.tooltip,c,e,b,!!h,m,f,p)}else gxa(this.tooltip,
   c,e,b,!!h,m);g.N(this.api.getRootNode(),"ytp-progress-bar-hover");Gwa(this)};
   g.k.bV=function(){g.zQ(this.tooltip);g.Sq(this.api.getRootNode(),"ytp-progress-bar-hover")};
   g.k.aV=function(a,b){this.J&&(this.J.dispose(),this.J=null);this.dd=b;1<this.i.length&&-1!==this.La?this.api.seekTo(this.i[this.La].startTime/1E3,!1):this.api.seekTo(FP(this,zP(this)),!1);g.N(this.element,"ytp-drag");(this.ac=g.YJ(this.api.yb()))&&this.api.pauseVideo()};
   g.k.dV=function(){var a=this;this.vb=0;g.Sq(this.element,"ytp-pull-ui");g.Sq(this.element,"ytp-pulling");this.J&&(this.J.dispose(),this.J=null);if(0<this.Y){var b=(0,g.Q)();this.J=new g.Fq(function(){var c=a.Y,d=zP(a).position,e=1-Math.pow(1-((0,g.Q)()-b)/200,3);d+=e*(a.S*a.C-d);if(0>e||1<e)e=1;Iwa(a,(1-e)*c,d,a.S);1>e&&a.J.start()});
   this.J.start()}if(g.U(this.api.yb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1<this.i.length&&-1!==this.La?this.api.seekTo(this.i[this.La].startTime/1E3):this.api.seekTo(FP(this,zP(this))),g.Sq(this.element,"ytp-drag"),this.ac&&!g.U(this.api.yb(),2)&&this.api.playVideo()};
   g.k.eV=function(a,b){var c=this,d=!1,e=!1;a=zP(this);3600<=QL(this.u)&&1===this.i.length&&(Iwa(this,this.dd-b-10,a.position,a.B),e=!0,d=this.Y>.1*(this.B?60:40),a=zP(this));g.O(this.element,"ytp-pull-ui",e);d&&g.N(this.element,"ytp-pulling");b=0;a.u&&0>=a.position&&1===this.i.length?b=-1:a.D&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.vb!==b&&1===this.i.length&&(this.vb=b,this.J&&(this.J.dispose(),this.J=null),b)){var f=(0,g.Q)();this.J=new g.Fq(function(){var h=c.C*(c.Ja-1);c.ma=g.Xf(c.ma+
   c.vb*((0,g.Q)()-f)*.3,0,h);CP(c);c.api.seekTo(FP(c,zP(c)),!1);0<c.ma&&c.ma<h&&c.J.start()});
   this.J.start()}this.api.seekTo(FP(this,a),!1)};
   g.k.fM=function(){this.Sb||(this.Sa("clipstarticon",Ssa()),this.Sa("clipendicon",Ssa()),g.N(this.element,"ytp-clip-hover"))};
   g.k.eM=function(){this.Sb||(this.Sa("clipstarticon",Usa()),this.Sa("clipendicon",Tsa()),g.Sq(this.element,"ytp-clip-hover"))};
   g.k.FA=function(){this.clipStart=0;this.clipEnd=Infinity;GP(this);BP(this,this.S,this.Ra)};
   g.k.xO=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.Ea[c]){var d=g.Gg("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ea[c]=b;this.jb[c]=d;g.Pq(d,b.style);Jwa(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.i[0].B.appendChild(d)}}else Mwa(this,b)};
   g.k.IW=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())Mwa(this,b.value)};
   g.k.xa=function(){Nwa(this,!1);g.PK.prototype.xa.call(this)};g.w(KP,g.V);KP.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
   KP.prototype.Pa=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.OK(this,a&&400<=this.I.bb().getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Sa("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
   fill:"#fff"}}]});break;case 2:this.Sa("icon",g.Rsa())}g.O(this.element,"ytp-remote-button-active",this.isActive())}};
   KP.prototype.u=function(){if(this.I.getOption("remote","quickCast"))this.I.setOption("remote","quickCast",!0);else{var a=this.Bb,b=this.element;if(a.Wf())a.Eb();else{a.initialize();a:{var c=g.r(a.Wd.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0===d.priority){c=d;break a}c=null}c&&(c.open(),a.td(b));a.td(b)}}};g.w(LP,g.V);LP.prototype.i=function(a){var b=400;this.I.V().C&&(b=200);a=this.u&&a.width>=b;g.OK(this,a);this.I.ib(this.element,a)};
   LP.prototype.B=function(){if(this.Bb.Ab)this.Bb.Eb();else{var a=g.hN(this.I.wb());a&&!a.loaded&&(a.kf("tracklist",{includeAsr:!0}).length||a.load());this.I.Fb(this.element);this.Bb.td(this.element)}};
   LP.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.MM(this.I),e=c&&!!g.LM(this.I.wb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge",
   !a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(NP,nO);NP.prototype.isLoaded=function(){var a=g.oN(this.I.wb());return void 0!==a&&a.loaded};
   NP.prototype.Pa=function(){void 0!==g.oN(this.I.wb())&&3!==this.I.getPresentingPlayerType()?this.i||(this.Bb.Gc(this),this.i=!0):this.i&&(this.Bb.Jf(this),this.i=!1);this.setValue(this.isLoaded())};
   NP.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)};
   NP.prototype.xa=function(){this.i&&this.Bb.Jf(this);nO.prototype.xa.call(this)};g.w(g.OP,g.fO);g.k=g.OP.prototype;g.k.open=function(){g.pO(this.Bb,this.B)};
   g.k.Vh=function(a){Pwa(this);this.options[a].element.setAttribute("aria-checked","true");this.kd(this.bj(a));this.u=a};
   g.k.QC=function(a,b,c){var d=this;b=new g.fO({G:"div",Ha:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ha:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.bj(a,!0));b.Qa("click",function(){d.Cf(a)});
   return b};
   g.k.enable=function(a){this.C?a||(this.C=!1,this.er(!1)):a&&(this.C=!0,this.er(!0))};
   g.k.er=function(a){a?this.Bb.Gc(this):this.Bb.Jf(this)};
   g.k.Cf=function(a){this.ea("select",a)};
   g.k.bj=function(a){return a.toString()};
   g.k.zP=function(a){g.Hu(a)||39!==g.Iu(a)||(this.open(),g.Gu(a))};
   g.k.xa=function(){this.C&&this.Bb.Jf(this);g.fO.prototype.xa.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(QP,g.OP);QP.prototype.Pa=function(){var a=this.I.getAvailableAudioTracks();1<a.length?(g.PP(this,g.ym(a,this.D)),this.tracks=g.Rb(a,this.D,this),this.i.kd(a.length?" ("+a.length+")":""),this.ea("size-change"),this.Vh(this.D(this.I.getAudioTrack())),this.enable(!0)):this.enable(!1)};
   QP.prototype.Cf=function(a){g.OP.prototype.Cf.call(this,a);this.I.setAudioTrack(this.tracks[a]);this.Bb.kh()};
   QP.prototype.D=function(a){return a.toString()};g.w(RP,nO);
   RP.prototype.u=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&g.OM(this.I))this.i||(this.Bb.Gc(this),this.i=!0,this.B.push(this.T(this.I,"videodatachange",this.u)),this.B.push(this.T(this.I,"videoplayerreset",this.u)),this.B.push(this.T(this.I,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.I,"autonavchange",this.C)),a=this.I.getVideoData(),this.C(a.autonavState),this.I.ib(this.element,this.i));else if(this.i){this.Bb.Jf(this);this.i=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.jc(b.value)}};
   RP.prototype.C=function(a){this.setValue(1!==a)};
   RP.prototype.D=function(a){this.I.LA(a?2:1);this.i&&(this.I.ib(this.element,this.i),this.I.Fb(this.element))};
   RP.prototype.xa=function(){this.i&&this.Bb.Jf(this);nO.prototype.xa.call(this)};g.w(SP,g.JN);SP.prototype.td=function(){g.JN.prototype.td.call(this);this.dialog.focus()};g.w(TP,g.fO);TP.prototype.Yb=function(a){this.u&&this.I.ib(this.element,this.i&&a)};
   TP.prototype.C=function(){var a,b,c=null===(b=null===(a=this.I.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.i){var d,e,f,h,l,m;c=null===(d=this.I.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.eO(this,UP(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.B=new SP(this.I,UP(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),UP(null===(h=null===c||
   void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),UP(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.J(this,this.B);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.u=!!d)this.I.Rg(this.element,this,!0),this.I.ym(this.element,d);this.Bb.Gc(this);this.i=!0}else!c&&this.i&&(this.Bb.Jf(this),this.i=!1)};
   TP.prototype.onClick=function(){this.u&&this.I.Fb(this.element);this.Bb.Eb();this.B&&this.B.td()};g.w(VP,g.OP);g.k=VP.prototype;g.k.au=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.I.qn(),a=this.I.getAvailableQualityLevels(),g.yua(this.I)&&g.zua(this.I)&&a.unshift("missing-qualities"),Aua(this.I)&&a.unshift("inline-survey"),g.PP(this,a),a.length)){this.MH();this.enable(!0);return}this.enable(!1)};
   g.k.MH=function(){var a=this.I.getPreferredQuality();this.options[a]&&(this.i=this.I.getPlaybackQuality(),this.Vh(a),"auto"===a&&this.kd(this.bj(a)))};
   g.k.Cf=function(a){"missing-qualities"!==a&&(g.OP.prototype.Cf.call(this,a),this.I.setPlaybackQuality(a),this.Bb.Eb(),this.au())};
   g.k.QC=function(a,b,c){var d=this;if("inline-survey"!==a)return g.OP.prototype.QC.call(this,a,b,c);a=[{G:"span",va:"Looks good?"}];c={};for(var e=g.r([!0,!1]),f=e.next();!f.done;c={Fx:c.Fx},f=e.next())c.Fx=f.value,f=new g.V({G:"span",L:"ytp-menuitem-inline-survey-response",U:[c.Fx?g.WK():Wsa()],W:{tabindex:"0",role:"button"}}),f.Qa("click",function(h){return function(){var l=h.Fx,m=g.PM(d.I.app);m&&(m.Ba("iqsr",l?"0":"1"),m.getVideoData().eH=!0);d.Bb.Eb();d.au()}}(c)),a.push(f);
   return new g.fO({G:"div",L:"ytp-menuitem",W:{"aria-disabled":"true"},U:[{G:"div",Ha:["ytp-menuitem-label"],U:a}]},b)};
   g.k.bj=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.I.V().J},va:"Missing options?"};if("inline-survey"===a)return"";var c=[Qwa(this,a)],d=this.I.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(Qwa(this,this.i,["ytp-menu-label-secondary"])));return{G:"div",U:c}};g.w(WP,g.V);g.k=WP.prototype;g.k.init=function(){this.zq(this.i);this.Sa("minvalue",this.minimumValue);this.Sa("maxvalue",this.maximumValue)};
   g.k.CP=function(a){if(!g.Hu(a)){switch(g.Iu(a)){case 37:case 40:var b=-this.J;break;case 39:case 38:b=this.J;break;default:return}this.zq(this.i+b);g.Gu(a)}};
   g.k.AP=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.zq(b);g.Gu(a)};
   g.k.BP=function(a){a=(a-g.am(this.u).x)/this.K*this.range+this.minimumValue;this.zq(a)};
   g.k.zq=function(a,b){b=void 0===b?"":b;a=g.Xf(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Sa("valuenow",a);this.Sa("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.K-this.ma)+"px";this.i=a};
   g.k.focus=function(){this.ya.focus()};g.w(YP,WP);YP.prototype.Y=function(){this.I.setPlaybackRate(this.i,!0)};
   YP.prototype.zq=function(a){WP.prototype.zq.call(this,a,ZP(this,a).toString());this.B&&(XP(this),this.Aa())};
   YP.prototype.Ea=function(){var a=this.I.getPlaybackRate();ZP(this,this.i)!==a&&(this.zq(a),XP(this))};g.w($P,g.PK);$P.prototype.focus=function(){this.i.focus()};g.w(Rwa,iO);g.w(aQ,g.OP);g.k=aQ.prototype;g.k.bj=function(a){return"1"===a?"Normal":a.toLocaleString()};
   g.k.Pa=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);Uwa(this)};
   g.k.er=function(a){g.OP.prototype.er.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),Uwa(this),Swa(this,this.I.getPlaybackRate())):(this.jc(this.K),this.K=null)};
   g.k.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||Twa(this,b);Swa(this,a)};
   g.k.Cf=function(a){g.OP.prototype.Cf.call(this,a);a===this.i?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.Bb.kh()};g.w(cQ,g.OP);g.k=cQ.prototype;g.k.Vh=function(a){g.OP.prototype.Vh.call(this,a)};
   g.k.getKey=function(a){return a.option.toString()};
   g.k.getOption=function(a){return this.settings[a]};
   g.k.bj=function(a){return this.getOption(a).text||""};
   g.k.Cf=function(a){g.OP.prototype.Cf.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.w(dQ,g.jO);dQ.prototype.Af=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.On[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Vh(e),c.D.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
   dQ.prototype.ih=function(a,b){this.ea("settingChange",a,b)};g.w(eQ,g.OP);eQ.prototype.getKey=function(a){return a.languageCode};
   eQ.prototype.bj=function(a){return this.languages[a].languageName||""};
   eQ.prototype.Cf=function(a){this.ea("select",a);this.I.Fb(this.element);g.tO(this.Bb)};g.w(fQ,g.OP);g.k=fQ.prototype;g.k.getKey=function(a){return g.lc(a)?"__off__":a.displayName};
   g.k.bj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
   g.k.Cf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.uM(this.I.V(),this.I.getVideoData()),g.XL(a)):(this.I.Fb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.OP.prototype.Cf.call(this,a),this.Bb.kh())};
   g.k.Pa=function(){var a,b=this.I.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.I.getVideoData();c=c&&c.Ro;var d=!(null===(a=this.I.getVideoData())||void 0===a||!g.ZG(a)),e={};if(b||c){if(b){var f=this.I.getOption("captions","track");e=this.I.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.Rb(e,this.getKey,this);d=g.ym(e,this.getKey);if(h.length&&!g.lc(f)){var l=f.translationLanguage;if(l&&l.languageName){var m=
   l.languageName;l=h.findIndex(function(n){return n.languageName===m});
   qaa(h,l)}Wwa(this.i,h);d.push("__translate__")}h=this.getKey(f)}else this.tracks={},d=[],h="__off__";d.unshift("__off__");this.tracks.__off__={};c&&d.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=f,d.push(h));g.PP(this,d);this.Vh(h);f&&f.translationLanguage?this.i.Vh(this.i.getKey(f.translationLanguage)):Pwa(this.i);b&&this.D.Af(this.I.getSubtitlesUserSettings());this.K.kd(e&&e.length?" ("+e.length+")":"");this.ea("size-change");this.I.ib(this.element,!0);this.enable(!0)}else this.enable(!1)};
   g.k.DP=function(a){var b=this.I.getOption("captions","track");b=g.pc(b);b.translationLanguage=this.i.languages[a];this.I.setOption("captions","track",b)};
   g.k.ih=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}Xwa(this,!0);this.J.start();this.D.Af(this.I.getSubtitlesUserSettings())};
   g.k.IV=function(a){a||g.Lq(this.J)};
   g.k.xa=function(){g.Lq(this.J);g.OP.prototype.xa.call(this)};g.w(gQ,g.rO);g.k=gQ.prototype;g.k.initialize=function(){if(!this.Zd){this.Zd=!0;this.FE=new TP(this.I,this);g.J(this,this.FE);var a=new VP(this.I,this);g.J(this,a);a=new fQ(this.I,this);g.J(this,a);a=new NP(this.I,this);g.J(this,a);this.I.V().kc&&(a=new aQ(this.I,this),g.J(this,a));this.I.V().Mb&&!this.I.V().N("web_player_move_autonav_toggle")&&(a=new RP(this.I,this),g.J(this,a));a=new QP(this.I,this);g.J(this,a);MP(this.settingsButton,this.Wd.items.length)}};
   g.k.Gc=function(a){this.initialize();this.Wd.Gc(a);MP(this.settingsButton,this.Wd.items.length)};
   g.k.Jf=function(a){this.Ab&&1>=this.Wd.items.length&&this.hide();this.Wd.Jf(a);MP(this.settingsButton,this.Wd.items.length)};
   g.k.td=function(a){this.initialize();0<this.Wd.items.length&&g.rO.prototype.td.call(this,a)};
   g.k.show=function(){g.rO.prototype.show.call(this);g.N(this.I.getRootNode(),"ytp-settings-shown")};
   g.k.hide=function(){g.rO.prototype.hide.call(this);g.Sq(this.I.getRootNode(),"ytp-settings-shown")};
   g.k.De=function(a){var b;this.I.ib(this.element,a);null===(b=this.FE)||void 0===b?void 0:b.Yb(a)};g.w(hQ,g.V);hQ.prototype.onClick=function(){var a=this.I.app;a.Ta.Oa("SIZE_CLICKED",!a.vE)};
   hQ.prototype.Pa=function(){g.OK(this,this.I.tE()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.Ab){var a=this.I.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
   fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.Sa("icon",b):iwa(this.transition,this.element,b);this.isWidescreen=a;b=AN(this.I,"Default view","t");var c=AN(this.I,"Theater mode","t");this.Sa("title",a?b:c);xO(this.tooltip)}}};g.w(g.iQ,g.V);g.iQ.prototype.onClick=function(){this.I.toggleSubtitles();this.I.Fb(this.element);if(!this.isEnabled()){var a=!1,b=g.Kv(g.Iv.getInstance(),65);g.zF(this.I.V())&&null!=b&&(a=!b);a&&this.I.V().N("web_player_nitrate_promo_tooltip")&&this.I.ea("showpromotooltip",this.element)}};
   g.iQ.prototype.i=function(a){var b,c;null===(c=null===(b=g.DM(this.I))||void 0===b?void 0:b.zn())||void 0===c?void 0:c.td(a)};
   g.iQ.prototype.isEnabled=function(){return!!this.I.getOption("captions","track").displayName};
   g.iQ.prototype.Pa=function(){var a=null!=g.hN(this.I.wb()),b=300;this.I.V().C&&(b=480);b=a&&this.I.bb().getPlayerSize().width>=b;g.OK(this,b);this.I.ib(this.element,b);a&&this.Sa("pressed",this.isEnabled())};g.w(g.jQ,g.V);g.k=g.jQ.prototype;
   g.k.Qb=function(){var a=this.api.bb().getPlayerSize().width,b=a>=this.K&&(!lQ(this)||!g.U(this.api.yb(),64));g.OK(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);kQ(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(c-=this.Sb.startTimeMs/1E3);c=g.LL(c);this.B!==c&&(this.Sa("currenttime",
   c),this.B=c);b=kQ(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?g.LL((this.Sb.endTimeMs-this.Sb.startTimeMs)/1E3):g.LL(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Sa("duration",b),this.C=b)}a=a.isAtLiveHead;!lQ(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Qb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.kd(this.isPremiere?"Premiere":"Live"),a?this.i&&(this.i(),this.i=null,
   b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.i=g.YN(this.tooltip,this.liveBadge.element)));this.VB(this.api.getLoopRange())};
   g.k.VB=function(a){var b=!!this.Sb!==!!a;this.Sb=a;b&&Zwa(this)};
   g.k.oW=function(){this.api.setLoopRange(null)};
   g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Qb();Zwa(this)};
   g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.kb;this.u=bH(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",lQ(this))};
   g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
   g.k.xa=function(){this.i&&this.i();g.V.prototype.xa.call(this)};g.w(oQ,g.V);g.k=oQ.prototype;g.k.im=function(){var a=this.i.Re();this.C!==a&&(this.C=a,nQ(this,this.api.getVolume(),this.api.isMuted()))};
   g.k.NH=function(a){g.OK(this,350<=a.width)};
   g.k.GP=function(a){if(!g.Hu(a)){var b=g.Iu(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.Xf(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Gu(a))}};
   g.k.EP=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.Xf(b/10,-10,10));g.Gu(a)};
   g.k.MV=function(){mQ(this,this.u,!0,this.B,this.i.ni());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
   g.k.FP=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.am(this.S).x;this.api.setVolume(100*g.Xf((a-c/2)/(b-c),0,1))};
   g.k.LV=function(){mQ(this,this.u,!1,this.B,this.i.ni());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
   g.k.onVolumeChange=function(a){nQ(this,a.volume,a.muted)};
   g.k.vJ=function(){mQ(this,this.u,this.isDragging,this.B,this.i.ni())};
   g.k.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.K,"ytp-volume-slider-active")};g.w(g.pQ,g.V);g.pQ.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.OK(this,this.visible);this.api.ib(this.element,this.visible&&this.Z);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Sa("url",a))};
   g.pQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.ML(a),!1,!0,!0);if(g.XE(this.api.V())||g.hF(this.api.V()))b=g.ti(b,g.vM("emb_logo"));g.xN(b,this.api,a);this.api.Fb(this.element)};
   g.pQ.prototype.xb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]};
   if(g.hF(this.api.V())){var b=this.Fa("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",W:{fill:"none",height:"24",width:"24"},U:[{G:"circle",W:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",W:{viewBox:"0 0 80 24"},U:[{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",W:{cx:"12.18",
   cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
   fill:"#fff"}}]};g.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Sa("logoSvg",a)};
   g.pQ.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};g.w(rQ,g.uD);g.k=rQ.prototype;g.k.od=function(){this.Oc.Qb();this.Gg.Qb()};
   g.k.vj=function(){var a,b;this.WB();this.rd.u?(this.od(),null===(b=this.K)||void 0===b?void 0:b.show()):(g.zQ(this.Oc.tooltip),null===(a=this.K)||void 0===a?void 0:a.hide())};
   g.k.gq=function(){this.od();this.Jd.start()};
   g.k.WB=function(){var a=!this.I.V().isMobile&&300>g.Owa(this.Oc)&&this.I.yb().Ec()&&!!window.requestAnimationFrame,b=!a;this.rd.u||(a=b=!1);b?this.J||(this.J=this.T(this.I,"progresssync",this.od)):this.J&&(this.jc(this.J),this.J=null);a?this.Jd.isActive()||this.Jd.start():this.Jd.stop()};
   g.k.xb=function(){var a=this.u.Re(),b=this.I.bb().getPlayerSize(),c=sQ(this),d=Math.max(b.width-2*c,100);if(this.Ja!==b.width||this.Ka!==a){this.Ja=b.width;this.Ka=a;var e=bxa(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";g.JP(this.Oc,c,e,a);this.u.fc().XB=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-tQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Nx=e;c.Bt();this.WB();!this.I.V().N("html5_player_bottom_linear_gradient")&&this.I.V().N("html5_player_dynamic_bottom_gradient")&&
   g.$O(this.La,b.height)};
   g.k.onVideoDataChange=function(){var a=this.I.getVideoData();this.ya.style.background=a.D?a.Ua:"";g.OK(this.Z,a.JB)};g.w(uQ,UO);g.k=uQ.prototype;g.k.aF=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())};
   g.k.bF=function(){this.B=!0;this.S.hide()};
   g.k.onVideoDataChange=function(a,b){var c;"newdata"===a&&(this.u=this.B=!1,vQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.K=this.enabled=!0;this.text=rP(a.title)||"View Chapters";var d=null===(c=a.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(d){b=[];var e=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=e&&null!=d&&b.push(new g.lA(e,d,{priority:9,namespace:"suggested_action_button_visible"}));this.I.Ad(b)}this.onClickCommand=a.tapCommand;bwa(this);
   TO(this);this.Th()}};
   g.k.hx=function(){return!this.B&&this.enabled&&(this.u||this.i)};
   g.k.De=function(a){this.B||((this.u=a)?SO(this):(vQ(this),this.ma.start()),this.Th())};
   g.k.xa=function(){vQ(this);UO.prototype.xa.call(this)};var c3={},wQ=(c3.CHANNEL_NAME="ytp-title-channel-name",c3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",c3.LINK="ytp-title-link",c3.SESSIONLINK="yt-uix-sessionlink",c3.SUBTEXT="ytp-title-subtext",c3.TEXT="ytp-title-text",c3.TITLE="ytp-title",c3);g.w(xQ,g.V);xQ.prototype.onClick=function(a){this.api.Fb(this.element);var b=this.api.getVideoUrl(!g.ML(a),!1,!0);g.XE(this.api.V())&&(b=g.ti(b,g.vM("emb_title")));g.xN(b,this.api,a)};
   xQ.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();this.Sa("title",a.title);cxa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.ac&&c.Ph?(this.Sa("channelLink",c.ac),this.Sa("channelName",c.author),this.Sa("channelTitleFocusable","0")):cxa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Kg;g.O(this.link,wQ.FULLERSCREEN_LINK,c);b.K||!a.videoId||c||a.D&&b.pfpChazalUi?this.i&&(this.Sa("url",null),this.jc(this.i),
   this.i=null):(this.Sa("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.T(this.link,"click",this.onClick)))};g.w(g.yQ,g.V);g.k=g.yQ.prototype;g.k.pM=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,exa(this,a))};
   g.k.NS=function(){Joa(this.i,this.B,160*this.scale)};
   g.k.Uj=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.Y);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.Y);a.addEventListener("focus",this.C);hxa(this);break;case 3:hxa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.pM,this),this.i=null),this.api.removeEventListener("videoready",this.ma),this.ya.stop()}this.type=null;this.K&&this.D.hide()};
   g.k.cj=function(a){for(var b=0;b<arguments.length;++b);if(this.u)for(b=0;b<arguments.length;b++)g.Mg(arguments[b],this.u)&&this.Uj()};
   g.k.xa=function(){null!=this.type&&this.Uj();this.i&&this.i.dispose();g.V.prototype.xa.call(this)};g.w(g.AQ,g.V);g.k=g.AQ.prototype;g.k.Ox=function(){var a=this.I.getPlayerSize(),b=this.I.V(),c=this.I.getVideoData(),d=g.XE(b)&&g.KM(this.I)&&g.U(this.I.yb(),128);this.visible=b.Qj&&240<=a.width&&!c.isAd()&&c.Pf&&!d&&!(c.D&&b.pfpChazalUi);g.OK(this,this.visible);this.icon&&lxa(this,this.icon);this.I.ib(this.element,this.visible&&this.Z)};
   g.k.OH=function(){return this.I.getVideoData().videoId};
   g.k.onClick=function(){var a=this;this.I.Fb(this.element);var b=this.I.V(),c=this.OH();b.Z?ixa(this):this.I.UA()?this.I.requestStorageAccess(function(){g.Zv("embedsItpWatchLaterResult",{accepted:!0});qv();jxa(a,c)},function(){g.Zv("embedsItpWatchLaterResult",{accepted:!1});
   kxa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):jxa(this,c)};
   g.k.HP=function(){this.isRequestPending=this.i=!1;this.Pa(2)};
   g.k.Pa=function(a,b){var c=this.I.V();lxa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.i?g.rI("Added as $USER_NAME",a):g.rI("Watch later as $USER_NAME",a),image:EF(c)})):this.update({title:"Watch later",image:null});xO(this.tooltip)};
   g.k.Yb=function(a){g.V.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};g.w(BQ,g.NN);g.k=BQ.prototype;g.k.fc=function(){return this.tooltip};
   g.k.sK=function(){return this.dg};
   g.k.Xm=function(a,b){b?this.nk=a:this.nk=null;this.Qi()};
   g.k.Mr=function(a,b){if(b)this.Rn.push(a);else for(b=this.Rn.length;0<=b;b--)if(this.Rn[b]===a){this.Rn.splice(b,1);break}sN(this.rd,64,0<this.Rn.length)};
   g.k.xo=function(){this.api.yh()&&this.api.hk();return!!this.nk||mxa(this)||g.NN.prototype.xo.call(this)};
   g.k.Qi=function(){var a=!this.xo(),b=a&&this.api.yh()&&!g.U(this.api.yb(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi),c=this.Op&&g.KM(this.api)&&g.U(this.api.yb(),128);a||c?(this.EG.show(),this.FG.show()):(this.EG.hide(),this.FG.hide(),this.tooltip.cj(this.Rh.element));b?this.di.td():this.di.Eb();this.dg&&axa(this.dg,!a);g.NN.prototype.Qi.call(this)};
   g.k.nq=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.gm(a),h=d||this.dg&&g.Mg(this.dg.i.element,b),l=d=null;null!=c&&h||(d=g.gm(b),l=g.em(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.dg,d=sQ(b),l=bxa(b),h=this.api.bb().getPlayerSize().height,c=g.Xf(c,d,d+l-f.width),f=h-tQ(b)-f.height):g.Mg(this.Rh.element,b)?(b=this.api.bb().getPlayerSize().width,c=g.Xf(c,12,b-f.width-12),f=this.Re()?this.aD:this.ZC,"gvn"===this.api.V().playerStyle&&(f+=
   20),this.Op&&(f-=this.Re()?26:18)):(b=this.api.bb().getPlayerSize(),c=g.Xf(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.vj=function(a){a&&(this.tooltip.cj(this.Rh.element),this.dg&&this.tooltip.cj(this.dg.i.element));this.yz&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.NN.prototype.vj.call(this,a)};
   g.k.ZE=function(){g.NN.prototype.ZE.call(this);this.yz&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.yz&&(this.contextMenu.hide(),this.ag&&this.ag.hide()))};
   g.k.ij=function(a,b){var c=this.api.bb().getPlayerSize();c=new g.Pl(0,0,c.width,c.height);if(a||this.rd.u&&!this.xo()){if(this.api.V().Mj||b)a=this.Re()?this.aD:this.ZC,c.top+=a,c.height-=a;this.dg&&(c.height-=tQ(this.dg))}return c};
   g.k.im=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.Oy.element,b),b.parentElement.insertBefore(this.Ny.element,b.nextSibling))):g.Gs(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Oy.detach(),this.Ny.detach());this.xb();this.Dm()};
   g.k.Re=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.C||!1};
   g.k.showControls=function(a){this.zy=!a;this.Qi()};
   g.k.xb=function(){var a=this.Re();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.Qi();if(this.uf()&&this.ag)this.ph&&IO(this.ag,this.ph),this.shareButton&&IO(this.ag,this.shareButton),this.Qg&&IO(this.ag,this.Qg);else{if(this.ag){a=this.ag;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.ph&&!g.Mg(this.Hg.element,this.ph.element)&&this.ph.Da(this.Hg.element);this.shareButton&&!g.Mg(this.Hg.element,
   this.shareButton.element)&&this.shareButton.Da(this.Hg.element);this.Qg&&!g.Mg(this.Hg.element,this.Qg.element)&&this.Qg.Da(this.Hg.element)}this.Dm();g.NN.prototype.xb.call(this)};
   g.k.MD=function(){if(mxa(this)&&!g.KM(this.api))return!1;var a=this.api.getVideoData();return!g.XE(this.api.V())||2===this.api.getPresentingPlayerType()||!this.og||((a=this.og||a.og)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.NN.prototype.MD.call(this):!1};
   g.k.Dm=function(){g.NN.prototype.Dm.call(this);this.api.ib(this.title.element,!!this.Dk);this.Ms&&this.Ms.Yb(!!this.Dk);this.channelAvatar.Yb(!!this.Dk);this.overflowButton&&this.overflowButton.Yb(this.uf()&&!!this.Dk);this.shareButton&&this.shareButton.Yb(!this.uf()&&!!this.Dk);this.ph&&this.ph.Yb(!this.uf()&&!!this.Dk);this.Qg&&this.Qg.Yb(!this.uf()&&!!this.Dk);if(!this.Dk){this.tooltip.cj(this.Rh.element);for(var a=0;a<this.wx.length;a++){var b=this.wx[a];b.Wf()&&b.Eb()}}};
   g.k.Ub=function(a){this.dg&&axa(this.dg,this.xo());this.Qi();g.NN.prototype.Ub.call(this,a)};
   g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Zl?this.Zl.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
   g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Zl?this.Zl.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
   g.k.vk=function(){return this.contextMenu.Ab?(this.contextMenu.Eb(),!0):this.Rn.length?(this.Rn[this.Rn.length-1].Eb(),!0):this.nk?(this.nk.Eb(),!0):g.NN.prototype.vk.call(this)};
   g.k.RA=function(a,b){this.iG=b;this.Mr(a,b);this.BO()};
   g.k.BO=function(){var a=this.iG||this.contextMenu.Wf();this.NC!==a&&(this.NC=a,this.api.Oa("onAutonavPauseRequest",this.NC))};
   g.k.KR=function(){CQ(this,this.api.getRootNode(),!0).focus()};
   g.k.LR=function(){CQ(this,this.api.getRootNode(),!1).focus()};
   g.k.zn=function(){return this.dg&&this.dg.settingsMenu};
   g.k.Wk=function(){this.rd.Wk()};
   g.k.qz=function(){this.xc.hide()};
   g.k.Bq=function(a){this.xc.Bq(!g.YJ(a))};
   g.k.Rs=function(a,b,c,d){this.Zu.Rs(a,b,c,d)};
   g.k.uN=function(a,b){this.Zu.IA(a,b)};
   g.k.cU=function(){nxa(this,!0)};
   g.k.DU=function(a){nxa(this,!1,a)};g.w(g.DQ,g.$M);g.DQ.prototype.Ii=function(){return!1};
   g.DQ.prototype.create=function(){var a=this.player.V();g.fF(a)&&a.isMobile?this.chrome=new g.NN(this.player):this.chrome=new BQ(this.player);g.J(this,this.chrome);this.chrome.init();this.player.Md("ux")};
   g.DQ.prototype.wv=function(){return this.chrome};EQ.prototype.getState=function(){return this.store.getState()};
   EQ.prototype.dispatch=function(a){return this.store.dispatch(a)};
   EQ.prototype.subscribe=function(a){return this.store.subscribe(a)};
   EQ.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
   EQ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var txa={captionTrack:225,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,liveChatPollStateEntity:217,logoEntity:245,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,transfer:120,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},sxa={},eOa=
   g.r(Object.entries(txa)),d3=eOa.next();!d3.done;d3=eOa.next()){var fOa=g.r(d3.value),gOa=fOa.next().value,hOa=fOa.next().value,iOa=gOa,jOa=hOa;jOa&&(sxa[jOa]=iOa)};var uxa=!1,VQ,WQ,XQ,YQ,ZQ;$Q.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.i;)a[d++]^=c[this.i++];for(var e=b-(b-d)%16;d<e;)wxa(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(wxa(this),this.i=0;d<b;)a[d++]^=c[this.i++];return a};var xxa=!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})();aR.prototype.encrypt=function(a,b){return g.H(this,function d(){var e,f=this,h;return g.B(d,function(l){if(1==l.i){e=yxa();if(!e)return l.return(f.i(a,b));ua(l,3);return g.A(l,f.ev(a,b,e),5)}if(3!=l.i)return l.return(l.u);h=wa(l);g.My(h);xxa=!0;return l.return(f.i(a,b))})})};
   aR.prototype.ev=function(a,b,c){return g.H(this,function e(){var f=this,h,l;return g.B(e,function(m){switch(m.i){case 1:if(f.C){m.fb(2);break}return g.A(m,c.importKey("raw",f.B,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:f.C=m.u;case 2:return h={name:"AES-CTR",counter:b,length:128},g.A(m,c.encrypt(h,f.C,a),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})})};
   aR.prototype.i=function(a,b){this.u||(this.u=new $Q(this.B));vxa(this.u,b);return this.u.encrypt(a)};
   aR.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
   bR.prototype.encrypt=function(a,b){this.i||(this.i=new $Q(this.u));vxa(this.i,b);return this.i.encrypt(a)};
   bR.prototype.decrypt=function(a,b){return this.encrypt(a,b)};cR.prototype.reset=function(){Bxa(this);this.update(this.B)};
   cR.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.J.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,Axa(this,this.J,0));for(;b+64<=c;b+=64)Axa(this,a,b);b<c&&(a=a.subarray(b),this.J.set(a,this.u),this.u+=a.length)};
   var zxa=[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 e3={},Dxa=(e3.INVALID_ENCODER_VERSION="Invalid encoder version",e3.KEY_CREATION_FAILED="Failed to create encoder key",e3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",e3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",e3.WRONG_DATA_TYPE="Encoder cannot process the data type",e3);g.w(dR,g.dw);g.w(fR,Ixa);fR.prototype.B=function(a,b){b=eR(b);a=(new TextEncoder).encode(JSON.stringify(a));return this.i.encrypt(a,b)};
   fR.prototype.u=function(a,b){if(!(a instanceof Uint8Array))throw Exa(1);var c=new TextDecoder;b=eR(b);a=this.i.decrypt(a,b);return JSON.parse(c.decode(a))};g.w(gR,Ixa);gR.prototype.B=function(a){return a};
   gR.prototype.u=function(a){if(a instanceof Uint8Array)throw Exa(0);return a};var Lxa={captionTrack:os,downloadQualityPickerEntity:hs,fakeChannel:$r,fakePlaylist:as,fakePlaylistEntryCollection:bs,fakeVideo:ds,fakeVideoDescription:es,liveChatPollStateEntity:gs,logoEntity:fs,offlineOrchestrationActionWrapperEntity:ps,offlineVideoPolicy:qs,offlineVideoStreams:rs,offlineabilityEntity:is,orchestrationWebSamplingEntity:js,pinnedProductEntity:ns,playbackData:ts,transfer:us,ytMainChannelEntity:ls,ytMainDownloadedVideoEntity:ks,ytMainVideoEntity:ms};var iR;g.w(qR,g.I);qR.prototype.B=function(a){Xxa(this,a.data)};
   qR.prototype.xa=function(){this.channel.close()};
   var wR,$xa=void 0;fya.prototype.request=function(a,b,c){b=void 0===b?{}:b;return this.locks.request(a,b,function(d){return c(d)})};var DR=g.D.caches,CR,ER;zR.prototype.open=function(a){return DR.open(BR(a))};
   zR.prototype.has=function(a){return DR.has(BR(a))};
   zR.prototype.delete=function(a){return DR.delete(BR(a))};
   zR.prototype.match=function(a,b){return g.H(this,function d(){var e=this,f,h,l,m,n,p;return g.B(d,function(q){switch(q.i){case 1:return g.A(q,e.keys(),2);case 2:f=q.u,h=g.r(f),l=h.next();case 3:if(l.done){q.fb(5);break}m=l.value;return g.A(q,e.open(m),6);case 6:return n=q.u,g.A(q,n.match(a,b),7);case 7:if(p=q.u)return q.return(p);l=h.next();q.fb(3);break;case 5:return q.return()}})})};
   g.w(AR,zR);AR.prototype.keys=function(){return g.H(this,function b(){var c,d,e,f,h,l,m,n,p;return g.B(b,function(q){if(1==q.i)return c=[],d=ew("CacheStorage keys"),g.A(q,DR.keys(),2);e=q.u;f=g.r(e);for(h=f.next();!h.done;h=f.next()){l=h.value;var t=l.indexOf(":");m=-1===t?{lA:l}:{lA:l.substring(0,t),datasyncId:l.substring(t+1)};n=m.lA;p=m.datasyncId;p===d&&c.push(n)}return q.return(c)})})};var kOa={WY:"captionTrack",j4:"ytMainChannelEntity",l4:"ytMainDownloadedVideoEntity",m4:"ytMainVideoEntity",V6:"offlineOrchestrationActionWrapperEntity",d7:"offlineVideoPolicy",e7:"offlineVideoStreams",O7:"playbackData",f$:"transfer",F8:"orchestrationWebSamplingEntity"},eAa=Object.keys(kOa).map(function(a){return kOa[a]}),pya="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");uya.prototype.De=function(){this.i&&MR(this)};g.w(NR,g.I);NR.prototype.i=function(a){this.api.Oa("onOfflineOperationFailure",a.data)};
   NR.prototype.xa=function(){var a;null===(a=this.channel)||void 0===a?void 0:a.close()};g.w(RR,PR);RR.prototype.u=function(a){return g.H(this,function c(){var d,e=this,f,h;return g.B(c,function(l){switch(l.i){case 1:ua(l,2);d=a.entityKey;if(!d)throw Error("EntityKey is missing from the orchestration action.");return g.A(l,rR(e.i,{mode:"readonly",tag:"IDB_TRANSACTION_TAG_RSE"},function(m){return jR(m,d,"orchestrationWebSamplingEntity")}),4);
   case 4:f=l.u;if(!f)throw Error("Entity cannot be found in PES.");if("undefined"===typeof f.taskDelayMs)throw Error("Task delay is undefined.");return g.A(l,Aya(f.taskDelayMs),5);case 5:return g.A(l,Zxa(e.i,d),6);case 6:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",!1));case 2:return h=wa(l),yR("OrchestrationWebSamplingEntityController",h),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",!1))}})})};var oxa=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{dha(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 t=f[q],u=l[t],x=(0,c[t])(u,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');
   p[t]=x;n=n||x!==u}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
   switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null===(f=e.options)||void 0===f?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.Ly(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.Ly(new g.dw("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=bc(e.payload);return UQ(d,l,e.entityKey,
   e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=RQ(e).entityType;l=UQ(d,m,e,void 0)}catch(n){if(n instanceof Error)g.Ly(new g.dw("Failed to deserialize entity key",{entityKey:e,originalMessage:n.message})),l=d;else throw n;}}else l=d;return l},a);
   case "REPLACE_ENTITY":var c=b.payload;return UQ(a,c.entityType,c.key,c.Laa);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 UQ(h,e,l,f[l])},d)},a);
   default:return a}}}),bya=new EQ;g.w(SR,PR);SR.prototype.u=function(a){return IR(a)?Dya(this,a):JR(a)?Eya(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.w(UR,PR);UR.prototype.u=function(a){return IR(a)?Hya(this,a):JR(a)?Iya(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_UPDATE"===a.actionType&&a.entityKey?this.handleUpdate(a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
   UR.prototype.handleUpdate=function(a){return g.H(this,function c(){var d,e=this,f,h;return g.B(c,function(l){switch(l.i){case 1:return d=HR(a),g.A(l,uR(e.i,a.entityKey,"transfer"),2);case 2:f=l.u;if(!f||"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"!==f.transferState)return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d));ua(l,3);f.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE";return g.A(l,tR(e.i,f,"transfer"),5);case 5:h=RQ(f.key).entityId;GR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_PLAYER_RESPONSE_REFRESH",
   statusType:"ADDED_TO_QUEUE"},{videoId:h,Go:f});va(l,4);break;case 3:return wa(l),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",d,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d))}})})};g.w(VR,PR);VR.prototype.u=function(a){return IR(a)?Nya(this,a):JR(a)?Oya(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?Pya(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
   var Rya=[10];var hza=["OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"];var ZR;Zya.prototype.i=function(a,b){var c=a.action.actionMetadata.priority-b.action.actionMetadata.priority;0===c&&(a.i<b.i?c=-1:a.i>b.i&&(c=1));return c};g.w(bS,g.I);bS.prototype.xa=function(){this.K&&this.K();g.I.prototype.xa.call(this)};
   bS.prototype.createAction=function(a,b){var c=RQ(a.entityKey).entityType,d=yy();return new WR(c,d,a,b.actionId,b.rootActionId)};
   bS.prototype.Y=function(a){var b;return g.H(this,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i){if(e.isDisposed())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.r(f);for(m=l.next();!m.done;m=l.next())n=m.value,p=RQ(n),q=p.entityId,aza(e.i,q)||h.push(n);return g.A(u,jza(e,h),2)}t=u.u;return g.A(u,dS(e,t),0)})})};
   bS.prototype.retry=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return g.A(d,kza(c),0)})})};nza.prototype.B=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p;return g.B(b,function(q){if(1==q.i)return g.A(q,vR(c.u,"orchestrationWebSamplingEntity"),2);if(3!=q.i){d=q.u;if(50<d.length)return q.return();e=c.J();f=c.D();h={id:SQ(f,"orchestrationWebSamplingEntity"),taskDelayMs:e.duration,addedTimestampMs:(0,g.Q)().toString(),fakeChildren:oza(),fakeResponseJson:Array(102401).join("a")};l={priority:5};m={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h.id,actionMetadata:l};
   n=new WR("orchestrationWebSamplingEntity","W_"+f+"|"+e.bucket+"|"+e.duration,m);p=YR(n);$R(n,5);return g.A(q,rR(c.u,{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WSE"},function(t){return pw.all([mR(t,h,"orchestrationWebSamplingEntity"),mR(t,p,"offlineOrchestrationActionWrapperEntity")])}),3)}c.C();
   c.i+=1;10>c.i&&g.Pu(0,c.B.bind(c),Math.floor(Wf(3E4,3E5)));g.sa(q)})})};tza.prototype.info=function(){};g.k=uza.prototype;
   g.k.lU=function(a){var b,c;return g.H(this,function e(){var f=this,h;return g.B(e,function(l){if(!g.U(a.state,128))return l.fb(0);var m=null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,n=null===(c=a.state.getData())||void 0===c?void 0:c.KF;h="net.retryexhausted"===m&&(null===n||void 0===n?0:n.includes("net.connect"))?"TRANSFER_FAILURE_REASON_NETWORK_LOST":(null===m||void 0===m?0:m.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.A(l,f.hq(f.player.getVideoData().videoId,
   h),0)})})};
   g.k.hq=function(a,b){return g.H(this,function d(){var e=this;return g.B(d,function(f){if(1==f.i){if(e.u)return f.return();e.u=!0;return"TRANSFER_FAILURE_REASON_NETWORK_LOST"===b?(Aza(e,a,!1),f.fb(0)):g.A(f,eS(e,a),3)}WF(a,4);return g.A(f,e.i.hq(b),0)})})};
   g.k.Hs=function(a){2===a.status?(a.status!==this.B&&(jS(this.i),WF(a.videoId,2)),a.Kw&&Qza(this.i,a.videoId,a.Kw)):4===a.status?(eS(this,a.videoId),this.hq(a.videoId,a.rz?"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":"TRANSFER_FAILURE_REASON_INTERNAL")):1===a.status&&Pza(this.i);this.B=a.status;this.api.Oa("localmediachange",{videoId:a.videoId,status:a.status})};
   g.k.nF=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(c.u)return e.return();c.u=!0;d=c.player.getVideoData().videoId;return g.A(e,eS(c,d),2)}return g.A(e,c.i.nF(),0)})})};
   g.k.N=function(a){return this.api.V().N(a)};g.w(fS,g.I);fS.prototype.xa=function(){this.u&&this.u();g.I.prototype.xa.call(this)};
   fS.prototype.B=function(a){var b;return g.H(this,function d(){var e,f,h,l,m,n,p,q=this;return g.B(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.r(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=RQ(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.A(t,Cza(q,f),0)})})};g.w(gS,g.I);g.k=gS.prototype;g.k.xa=function(){this.K&&this.K();this.S.dispose();this.B.dispose();this.ya&&Ge(this.D.B,this.ya);this.ma&&Ge(this.D.B,this.ma);g.I.prototype.xa.call(this)};
   g.k.vW=function(a){this.i&&this.C&&Aza(this.J,this.C,void 0===a?!1:a);this.B.stop()};
   g.k.RW=function(){this.i?Iza(this,this.i):hS(this)};
   g.k.IP=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){switch(e.i){case 1:if(!d.i){e.fb(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.fb(3);break}return g.A(e,uR(d.u,d.i.key,"transfer"),4);case 4:d.i=e.u;if(d.i){e.fb(3);break}return g.A(e,Jza(d),3);case 3:if(d.i)return e.return();case 2:return g.A(e,hS(d),0)}})})};
   g.k.hq=function(a,b){return g.H(this,function d(){var e=this,f,h;return g.B(d,function(l){if(1==l.i){a:switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_PLAYABILITY":case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":var m=!1;break a;default:m=!0}return m&&Rza(e)?g.A(l,lS(e,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),5):g.A(l,Sza(e,a),3)}3!=l.i&&(f=RQ(e.i.key).entityId,GR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_RETRY",
   statusType:"ADDED_TO_QUEUE"},{videoId:f,Go:e.i}));iS(e);h=hS(e,!0);b&&b(h);g.sa(l)})})};
   g.k.nF=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n;return g.B(c,function(p){if(1==p.i)return Rza(d)?g.A(p,lS(d,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.A(p,Sza(d,"TRANSFER_FAILURE_REASON_STREAM_MISSING"),3);if(3!=p.i)return e=RQ(d.i.key).entityId,GR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"},{videoId:e,Go:d.i}),f=Tya(),f.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},h=SQ(e,
   "playbackData"),l={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h,actionMetadata:f},m=YR(new WR("playbackData",e,l)),g.A(p,tR(d.u,m,"offlineOrchestrationActionWrapperEntity"),3);iS(d);n=hS(d,!0);a&&a(n);g.sa(p)})})};
   var f3={},mS=(f3.TRANSFER_STATE_TRANSFERRING=1,f3.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,f3);g.k=Xza.prototype;g.k.YB=function(){vya(this.u)};
   g.k.isOrchestrationLeader=function(){return this.u.i};
   g.k.refreshAllVideos=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(!c.J.Te())return e.return(cAa(c));d=c.Mw;return g.A(e,bAa(c),2)}return e.return(d.call(c,e.u,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
   g.k.deleteVideos=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){return e.return(d.Mw(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
   g.k.deleteAllVideos=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return d.return(c.Mw(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
   g.k.Mw=function(a,b,c){return g.H(this,function e(){var f=this,h,l,m;return g.B(e,function(n){if(1==n.i)return g.A(n,xR(),2);h=n.u;if(!h||!f.X.N("woffle_orchestration"))return n.return([]);l=a.map(function(p){var q=SQ(p,"ytMainDownloadedVideoEntity");q={actionType:b,entityKey:q,actionMetadata:Object.assign(Object.assign({},Tya()),c)};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(q.actionMetadata.priority=0);p=new WR("ytMainDownloadedVideoEntity",p,q);return YR(p)});
   m=Yxa(h,l);f.YB();return n.return(m)})})};var oS=[],uHa=!1;g.wW=cf(function(){var a="";try{var b=g.Gg("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(g.pS,OJ);g.k=g.pS.prototype;g.k.isView=function(){return!0};
   g.k.RF=function(){var a=this.ra.getCurrentTime();if(a<this.start)try{var b=this.ra.Uf(),c=FD(b,a);return!(this.start<c)}catch(d){}return!1};
   g.k.Gp=function(){return HD(this.ra.Gp(),this.start,this.end)};
   g.k.Uf=function(){return HD(this.ra.Uf(),this.start,this.end)};
   g.k.Jv=function(){return HD(this.ra.Jv(),this.start,this.end)};
   g.k.getCurrentTime=function(){return this.ra.getCurrentTime()-this.start};
   g.k.Lx=function(a){this.ra.Lx(a+this.start)};
   g.k.getDuration=function(){return isFinite(this.end)&&!this.i?this.end-this.start:this.ra.getDuration()-this.start};
   g.k.play=function(){if(this.RF()){this.ra.getCurrentTime();try{this.ra.Lx(this.start)}catch(a){}}return this.ra.play()};
   g.k.Ib=function(){var a=OJ.prototype.Ib.call(this);a.view=this.start+"-"+this.end;return a};
   g.k.addEventListener=function(a,b){this.ra.addEventListener(a,b)};
   g.k.removeEventListener=function(a,b){this.ra.removeEventListener(a,b)};
   g.k.Ix=function(){return this.ra.Ix()};
   g.k.wr=function(a){this.ra.wr(a)};
   g.k.Ep=function(){return this.ra.Ep()};
   g.k.playVideo=function(){return this.ra.playVideo()};
   g.k.pD=function(){this.ra.pD()};
   g.k.nD=function(){this.ra.nD()};
   g.k.Po=function(){return this.ra.Po()};
   g.k.Me=function(){return this.ra.Me()};
   g.k.Df=function(){return this.ra.Df()};
   g.k.Mx=function(a){this.ra.Mx(a)};
   g.k.HA=function(){this.ra.HA()};
   g.k.getPlaybackRate=function(){return this.ra.getPlaybackRate()};
   g.k.setPlaybackRate=function(a){return this.ra.setPlaybackRate(a)};
   g.k.Dp=function(){return this.ra.Dp()};
   g.k.setLoop=function(a){this.ra.setLoop(a)};
   g.k.canPlayType=function(a,b){return this.ra.canPlayType(a,b)};
   g.k.al=function(){return this.ra.al()};
   g.k.Xt=function(){return this.ra.Xt()};
   g.k.Gk=function(){return this.ra.Gk()};
   g.k.Zy=function(){return this.ra.Zy()};
   g.k.Xs=function(a){this.ra.Xs(a)};
   g.k.Jx=function(){return this.ra.Jx()};
   g.k.load=function(){this.ra.load()};
   g.k.pause=function(){this.ra.pause()};
   g.k.rh=function(){return this.ra.rh()};
   g.k.bz=function(){return this.ra.bz()};
   g.k.aj=function(){return this.ra.aj()};
   g.k.qe=function(){return this.ra.qe()};
   g.k.Kx=function(){return this.ra.Kx()};
   g.k.qf=function(){return this.ra.qf()};
   g.k.zo=function(){return this.ra.zo()};
   g.k.togglePictureInPicture=function(){this.ra.togglePictureInPicture()};
   g.k.yn=function(){return this.ra.yn()};
   g.k.dr=function(){return this.ra.dr()};
   g.k.setSize=function(a){this.ra.setSize(a)};
   g.k.getVolume=function(){return this.ra.getVolume()};
   g.k.setVolume=function(a){this.ra.setVolume(a)};
   g.k.setAttribute=function(a,b){this.ra.setAttribute(a,b)};
   g.k.removeAttribute=function(a){this.ra.removeAttribute(a)};
   g.k.hasAttribute=function(a){return this.ra.hasAttribute(a)};
   g.k.Gu=ba(22);g.k.nx=ba(24);g.k.ox=ba(26);g.k.Dr=ba(28);g.k.ov=function(){return this.ra.ov()};
   g.k.Lm=function(a){this.ra.Lm(a)};
   g.k.getStyle=function(a){return this.ra.getStyle(a)};
   g.k.qE=function(){return this.ra.qE()};
   g.k.stopVideo=function(){this.ra.stopVideo()};
   g.k.rD=function(a){this.ra.rD(a)};
   g.k.audioTracks=function(){return this.ra.audioTracks()};rS.prototype.Pk=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.B+=a;var d=a/b;qS.forEach(function(e,f){d<e||(c.u[f]+=b)})};
   rS.prototype.toString=function(){return""};
   var qS=[20,100,500,2E3];g.k=mAa.prototype;g.k.isActive=function(){return!0};
   g.k.wz=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.wB=a.prototype[e],d.zB=b[e],a.prototype[e]=function(f){return function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];m=(0,g.Q)();l=f.wB.apply(this,l);sS(c,f.zB,(0,g.Q)()-m);return l}}(d)),d={wB:d.wB,
   zB:d.zB}}};
   g.k.Bo=function(a){return new lAa(a)};
   g.k.fn=function(a,b){b=void 0===b?1:b;a instanceof lAa&&(sS(this,a.name,(0,g.Q)()-a.startTimeMs,b),a.i=!0)};
   g.k.MF=function(a,b){var c=void 0===c?1:c;var d=(0,g.Q)();b();sS(this,a,(0,g.Q)()-d,c)};
   g.k.ZJ=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.i)c=null;else{for(var d=c.i.toString()+"."+Math.round(c.B).toString(),e=0;e<qS.length;++e)if(0<c.u[e])d+="."+qS[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new kAa;return a};
   g.k.toString=function(){return""};g.k=tS.prototype;g.k.isActive=function(){return!1};
   g.k.wz=function(){};
   g.k.Bo=function(){};
   g.k.fn=function(){};
   g.k.MF=function(a,b){b()};
   g.k.ZJ=function(){return{}};
   g.k.toString=function(){return""};var g3,yX,h3,yU,BHa;g3=new tS;yX=As("html5_enable_profiler")||As("html5_onesie_enable_profiler")||As("html5_offline_encryption_enable_profiler")||0<As("html5_performance_impact_profiling_timer_ms")?new mAa:new tS;g.wS=As("html5_enable_profiler")?yX:g3;h3=As("html5_onesie_enable_profiler")?yX:g3;yU=As("html5_offline_encryption_enable_profiler")?yX:g3;BHa=As("html5_performance_impact_profiling_timer_ms")?yX:g3;uS.prototype.then=function(a,b){return this.promise.then(a,b)};
   uS.prototype.resolve=function(a){this.u(a)};
   uS.prototype.reject=function(a){this.i(a)};g.w(vS,g.I);g.k=vS.prototype;g.k.isFinished=function(){return 6===this.status.status};
   g.k.getStatus=function(){return this.status};
   g.k.bp=function(){var a=this.i.getVideoData(),b=this.u.getVideoData();if(a.B){var c;if(c=a.i){c=a.i;for(var d=!1,e=!1,f=g.r(Object.values(c.i)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.oa();else if(this.i.jd()){h=jAa(this.policy,this.i,this.u,this.Ij);f=nAa(this);c=f.rR;e=f.VL;d=f.JJ;f=f.UL;if(!this.J){var l=1E3*this.u.Ch(),m=this.i.Ch();m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=
   a.isAd();this.u.Qw(l,m,a);this.J=!0}h?this.Le("cannot_apply"+h+";transitionTimeMs."+this.Ij):2===this.status.status?uAa(this):(a=this.i.Ep())?a.i||a.u?!QD(a)&&g.Wt()?this.Le("mse_closed"):b.i&&qB(b.i)&&a.u&&!a.u.Wy()?this.Le("encr_upgrade"):(b=this.i.jd(),b.Gk()?this.Le("elem_ended"):0>e?this.Le("next_player_future"):(this.D=d,this.B=Xla(a,c,d,!0),this.C=Xla(a,e,f,!1),a=this.u.getVideoData().clientPlaybackNonce,this.i.Ba("gaplessPrep","cpn."+a),yS(this.i,this.B),this.i.setMediaElement(oAa(b,c,d,!this.i.getVideoData().isAd())),
   xS(this,2),uAa(this))):this.oa():this.oa()}else this.Le("no-elem")}else this.oa()};
   g.k.gr=function(a){var b=tAa(this).KN,c=a===b;b=c?this.B.i:this.B.u;c=c?this.C.i:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;ED(a.lf(),d-.01)&&(xS(this,4),b.isActive=!1,b.Cx=b.Cx||b.isActive,this.u.Ba("sbh","1"),c.isActive=!0,c.Cx=c.Cx||c.isActive);a=this.C.u;this.C.i.isActive&&a.isActive&&xS(this,5)}};
   g.k.vM=function(){4<=this.status.status&&6>this.status.status&&this.Le("player-reload-after-handoff")};
   g.k.Le=function(a){if(!this.isDisposed()&&!this.isFinished()){this.oa();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.u){var c=this.u.getVideoData().clientPlaybackNonce;this.i.Ba("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Ja=!1;b&&iW(a);a.Xa&&mDa(a.Xa)}this.Vk.reject(void 0);this.dispose()}};
   g.k.xa=function(){sAa(this);this.i.unsubscribe("newelementrequired",this.vM,this);if(this.B){var a=this.B.u;this.B.i.xd.unsubscribe("updateend",this.gr,this);a.xd.unsubscribe("updateend",this.gr,this)}g.I.prototype.xa.call(this)};
   g.k.Mc=function(a){g.fI(a,128)&&this.Le("player-error-event")};
   g.k.oa=function(){};g.w(AS,g.I);AS.prototype.clearQueue=function(){this.oa();this.C&&this.C.reject("Queue cleared");BS(this)};
   AS.prototype.ys=function(){return!this.u};
   AS.prototype.xa=function(){BS(this);g.I.prototype.xa.call(this)};
   AS.prototype.oa=function(){};g.w(ES,g.R);g.k=ES.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:yAa()?3:b?2:c?1:d?5:e?7:f?8:0};
   g.k.Hi=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.De())};
   g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.De())};
   g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.De())};
   g.k.Ys=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.De())};
   g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.De())};
   g.k.qf=function(){return this.i};
   g.k.isFullscreen=function(){return 0!==this.fullscreen};
   g.k.Ur=function(){return this.fullscreen};
   g.k.Je=function(){return this.B};
   g.k.isInline=function(){return this.inline};
   g.k.isBackground=function(){return yAa()};
   g.k.ws=function(){return this.pictureInPicture};
   g.k.rs=function(){return this.u};
   g.k.De=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Je(),this.isInline(),this.ws(),this.rs());a!==this.D&&this.ea("visibilitystatechange");this.D=a};
   g.k.xa=function(){BAa(this.C);g.R.prototype.xa.call(this)};g.w(g.IS,g.I);g.k=g.IS.prototype;g.k.onCueRangeEnter=function(a){this.Ea.push(a);var b=this.B.get(a),c=null==b;this.Ka.add(a.u);c||this.Ca.Ba("sdai","enterAdCueRange");if(this.Ja){this.Ja=!1;if(!c){var d=this.u.find(function(e){return e.cpn===b});
   d&&(this.api.ea("serverstitchedvideochange",d.Cc,d.Eu),this.Ca.Ba("sdai",{ssvc:"midab"}),this.Uu=1)}this.S=!1}else if(this.i){if(this.i.Pp)this.Ca.Ba("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Mf,cpn:b,currentTime:this.Ca.getCurrentTime()}),this.X.N("web_player_same_transition_fallback_killswitch")||(d=this.Ca.getCurrentTime(),a={Cd:a,isAd:!c,Pp:!0,Mf:d,adCpn:b},d={Cd:this.i.Cd,isAd:this.i.isAd,Pp:!1,Mf:d,adCpn:this.i.adCpn},this.Ka.delete(this.i.Cd.u),
   LS(this,a,d));else{if(this.i.Cd===a){this.Ca.Ba("sdai",{same_cue_range_pair_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Mf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Ca.Ba("sdai",{dchtsc:b});this.i=void 0;return}d={Cd:a,isAd:!c,Pp:!0,Mf:this.Ca.getCurrentTime(),adCpn:b};LS(this,d,this.i)}this.i=void 0;this.S=!1}else this.i={Cd:a,isAd:!c,Pp:!0,Mf:this.Ca.getCurrentTime(),adCpn:b}};
   g.k.onCueRangeExit=function(a){if(this.X.N("web_player_same_transition_fallback_killswitch")||this.Ka.has(a.u)){this.Ka.delete(a.u);this.Ea=this.Ea.filter(function(d){return d!==a});
   this.Ja&&(this.S=this.Ja=!1,this.Ca.Ba("sdai","cref"));var b=this.B.get(a),c=null==b;if(this.i){if(this.i.Pp){if(this.i.Cd===a){this.Ca.Ba("sdai",{same_cue_range_pair_exit:1,acpn:this.i.adCpn,transitionTime:this.i.Mf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Ca.Ba("sdai",{dchtsc:b});this.i=void 0;return}c={Cd:a,isAd:!c,Pp:!1,Mf:this.Ca.getCurrentTime(),adCpn:b};LS(this,this.i,c)}else this.Ca.Ba("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.i.adCpn,
   transitionTime:this.i.Mf,upcomingCpn:b,contentCpn:this.Ca.getVideoData().clientPlaybackNonce,currentTime:this.Ca.getCurrentTime()});this.i=void 0;this.S=!1}else this.i={Cd:a,isAd:!c,Pp:!1,Mf:this.Ca.getCurrentTime(),adCpn:b};this.X.N("web_player_halftime_dai")&&(c=this.u.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.Ca.getCurrentTime()<this.Ca.hj()&&GS(this,Infinity))}else this.Ca.Ba("sdai","ignore_single_exit")};
   g.k.isAdPlaying=function(a){return!!NS(this,1E3*a)};
   g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.S=!0;if(void 0===b?0:b)GS(this,a);else{b=this.api.Kc();var d=b===this.Y?this.ya:null;OS(this,!1);this.Ya=a;null!=c&&this.Ua.start(c);b&&(this.ya=d||b.getPlayerState(),OX(b),this.Y=b)}};
   g.k.xa=function(){OS(this,!1);QS(this);g.I.prototype.xa.call(this)};
   g.k.oa=function(){};
   g.k.hG=function(a){this.jb=a;this.Ca.Ba("sdai","swebm."+a)};
   g.k.lj=function(a,b,c){if(c&&b){var d=this.ma.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.uB(c);this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{hdlredir:1,itag:b,seg:a,hostport:wB(c)});d.locations.set(e,c)}}};
   g.k.Qr=function(a,b,c,d){var e,f,h,l=Number(c.split(";")[0]),m=3===d;if(g.MAa(this,b))return this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{gdu:"undec",seg:b,itag:l}),null;a=SS(this,a,b);this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{gdu:1,seg:b,itag:l,pb:""+!!a});if(!a)return US(this,b,m),null;if(this.ac&&a.errorCount>=this.ac)return this.Ca.Ba("sdai",{gdu:1,seg:b,itag:l,err:a.errorCount}),null;a.locations||(a.locations=new Map);if(!a.locations.has(l)){var n=null===(f=null===(e=a.playerResponse)||
   void 0===e?void 0:e.streamingData)||void 0===f?void 0:f.adaptiveFormats;if(!n)return this.Ca.Ba("sdai",{gdu:"noadpfmts",seg:b,itag:l}),US(this,b,m),null;var p=n.find(function(q){return q.itag===l});
   if(!p||!p.url){a={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:l,itags:""};if(!this.X.N("html5_ssdai_log_missing_itags_killswitch")){d=[];c=g.r(n);for(n=c.next();!n.done;n=c.next())d.push(n.value.itag);a.itags=d.join(",")}this.Ca.Ba("sdai",a);US(this,b,m);return null}n=!this.X.N("html5_ssdai_decipher_killswitch");a.locations.set(l,new g.uB(p.url,n))}n=a.locations.get(l);if(!n)return this.Ca.Ba("sdai",{gdu:"nourl",seg:b,itag:l}),US(this,b,m),null;n=new oC(n);this.jb&&n.set("dvc","webm");this.X.experiments.ob("ssdai_return_original_content")&&
   n.set("dairoc","1");(c=KAa(this,b-1,c,d))&&n.set("daistate",c);a.pG&&b>=a.pG&&n.set("skipsq",""+a.pG);(p=this.Ca.getVideoData().clientPlaybackNonce)&&n.set("cpn",p);c=[];a.hg&&(c=NAa(this,a.hg),0<c.length&&n.set("acpns",c.join(",")));this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{ast:a.Ic.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn});m||this.ma.set(b,a);this.X.N("web_player_ssdai_acpns_aids_logging_killswitch")||(m=n.get("aids"),((null===(h=null===m||void 0===m?void 0:m.split(","))||
   void 0===h?void 0:h.length)||0)!==c.length&&(a.hg?this.Ca.Ba("sdai",{acpns_aids_nm:1,ids:PAa(this,a.hg).join("_"),aids:null===m||void 0===m?void 0:m.replace(/,/g,"_"),cpn:p,trackType:d}):this.Ca.Ba("sdai",{acpns_aids_nm:"noAdBreakId",cpn:p})));m=n.Xd();2048<(null===m||void 0===m?void 0:m.length)&&this.Ca.Ba("sdai",{urltoolong:1,sq:b,itag:l,len:m.length});m&&(d=a.cpn,b=a.hg,RAa(this,d,b),b&&!this.Hb.has(b)&&(a=OAa(this,d,b),d=QAa(this,b),this.Ca.Ba("sdai",{iofa:a}),this.Ca.Ba("sdai",{noawnzd:d-a}),
   this.Ca.Ba("sdai",{acpns:c.join(".")}),this.Hb.add(b)));return m};
   g.k.oG=function(a,b){if(a=SS(this,a,b)){a=a.hg;this.Ca.Ba("sdai",{skip_adbreakid:a});for(var c=g.r(this.u),d=c.next();!d.done;d=c.next())d=d.value,d.hg===a&&(d.pG=b)}};
   g.k.uF=function(a,b,c,d,e,f,h,l){l&&(h?this.Ra.set(a,l):this.Aa.set(a,l));if(h)if(d.length&&e.length)for(c=1E3*(b+RS(this)),a={},b=g.r(d.entries()),h=b.next();!h.done;a={Fm:a.Fm},h=b.next()){l=g.r(h.value);h=l.next().value;l=l.next().value;a.Fm=l;var m=1E3*e[h];if(a.Fm===this.Ca.getVideoData().clientPlaybackNonce)TS(this,c,c+m,!1),c+=m;else{this.zb.has(a.Fm)||(this.Ca.Ba("sdai","adCpnFromEmsg"),this.zb.add(a.Fm));l=void 0;for(var n=g.r(this.B),p=n.next();!p.done;p=n.next()){var q=g.r(p.value);p=q.next().value;
   q=q.next().value;q===a.Fm&&(l=p)}l&&l.start<=c&&l.end>=c+m||(n=!1,l?c<l.start?l.start=c:l.end<c+m&&(l.end=c+m):(l=HAa(c,c+m),this.B.set(l,a.Fm),this.Ca.Ba("sdai","newAdCR"),n=!0),(m=this.u.find(function(t){return function(u){return u.cpn===t.Fm}}(a)))&&f.length===d.length&&(c=c/1E3-f[h],m.Eu=null!=m.Eu?Math.min(m.Eu,c):c),c=l.end,TS(this,l.start,l.end,!0),n&&this.Ca.addCueRange(l))}}else 5!==c&&4!==c||TS(this,1E3*(b+RS(this)),1E3*(b+RS(this))+5E3,!1)};
   g.k.yv=ba(31);g.k.ge=function(a){this.Ca.Ba("timelineerror",a);this.oa()};
   g.k.Mv=function(a){this.K&&this.J&&this.Z.push(this.J);!this.X.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.J&&this.kb.push(this.J);this.J=null;this.Ca.Mv(a)};
   g.k.YD=function(a){var b;a.identifier&&this.Zb.has(a.identifier)?(this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{startnoad:a.identifier}),VS(this)):vn(this.Z,function(c){return c.identifier===a.identifier})?(this.Ca.Ba("sdai",{timedoutcp:1}),this.D.start(0)):!this.X.N("web_player_skip_fetched_cuepoint_killswitch")&&vn(this.kb,function(c){return c.identifier===a.identifier})?(this.Ca.Ba("sdai","fetchedcp"),VS(this)):this.D.isActive()?this.Ca.Ba("sdai","racingcp_"+(null===(b=this.J)||void 0===
   b?void 0:b.identifier)+"_"+a.identifier):(this.qb=(new Date).getTime()/1E3,this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{adf:1}),this.K=!1,this.D.start(),this.J=a,this.Aa.clear(),this.Ra.clear(),this.X.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.ma.clear(),this.La=[])};
   g.k.Ov=function(a,b){(a=SS(this,a,b))&&a.errorCount++};
   g.k.Xn=function(a){var b;this.Zb.add(a);(null===(b=this.J)||void 0===b?void 0:b.identifier)===a&&VS(this)};
   var FAa=0;g.w(WS,g.I);g.k=WS.prototype;g.k.onCueRangeEnter=function(a){if(this.u===this.api.Kc()){var b=this.J.get(a);if(b){var c=b.target;this.oa();YAa(this,c,b.Ij,a)}else this.ge("e.unexpectedCueRangeTriggered")}else if(b=this.i.find(function(e){return e.Zm.Cd===a})){var d=b.Zm;
   this.oa();c=d.target;d=d.Ij;c?YAa(this,c,d,a):XAa(this,b.pd,d,a)}};
   g.k.onQueuedVideoLoaded=function(){var a=this.K;ZS(this);if(a){YS(this,a)||this.ge("e.unexpectedPresentingPlayer");var b=this.api.Kc();a=a.Zm;this.oa();b.addCueRange(a.Cd)}};
   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)SAa(this,a);else{b=this.api.Kc();var d=b===this.C?this.D:null;aT(this,!1);this.Z=a;null!=c&&this.S.start(c);b&&(this.D=d||b.getPlayerState(),OX(b),this.C=b)}};
   g.k.Mh=function(a){g.fI(a,128)&&aBa(this)};
   g.k.isManifestless=function(){return CG(this.u.getVideoData())};
   g.k.xa=function(){aT(this,!1);cT(this);g.I.prototype.xa.call(this)};
   g.k.oa=function(){};
   g.k.ge=function(a){this.u.Ba("timelineerror",a)};
   var TAa=0;var cBa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(fT,g.I);fT.prototype.get=function(a){dT(this);var b=this.data.find(function(c){return c.key===a});
   return b?b.value:null};
   fT.prototype.set=function(a,b,c){this.remove(a,!0);dT(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.Q)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&gT(this,c,!0);eT(this)};
   fT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
   c&&(gT(this,c,b),g.Bb(this.data,function(d){return d.key===a}),eT(this))};
   fT.prototype.xa=function(){var a=this;g.I.prototype.xa.call(this);this.data.forEach(function(b){gT(a,b,!0)});
   this.data=[]};g.w(hT,g.tr);hT.prototype.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(this.D.has(a))return this.D.get(a).push(c),!0;d=!1;try{for(c=[c],this.D.set(a,c);c.length;)d=g.tr.prototype.ea.call.apply(g.tr.prototype.ea,[this,a].concat(g.v(c.shift())))}finally{this.D.delete(a)}return d};iT.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
   iT.prototype.forEach=function(a){for(var b=this.i+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.i;b++)a(this.data[b]||0)};
   iT.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.i=this.data.length-1};g.w(jT,g.I);jT.prototype.start=function(){this.u.start()};
   jT.prototype.stop=function(){this.u.stop()};
   jT.prototype.clear=function(){for(var a=g.r(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
   jT.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.i.has(b)||this.i.set(b,new mT(lOa.has(b)));this.i.get(b).update(c())}this.u.start()};
   var lOa=new Set(["networkactivity"]);mT.prototype.update=function(a){this.u?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
   mT.prototype.clear=function(){this.buffer.clear();this.i=0};g.w(nT,g.I);nT.prototype.xa=function(){g.I.prototype.xa.call(this);this.i=null;this.u&&this.u.disconnect()};g.mOa=cf(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var i3;i3={};g.oT=(i3.STOP_EVENT_PROPAGATION="html5-stop-propagation",i3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",i3.IV_DRAWER_OPEN="ytp-iv-drawer-open",i3.MAIN_VIDEO="html5-main-video",i3.VIDEO_CONTAINER="html5-video-container",i3.HOUSE_BRAND="house-brand",i3);g.w(pT,g.V);g.k=pT.prototype;g.k.Lm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.Rq(this.element,b)};
   g.k.Cg=function(){this.Jb&&(this.Jb.removeEventListener("focus",this.jF),g.Kg(this.Jb),this.Jb=null)};
   g.k.lD=function(){this.isDisposed();var a=this.app.V();a.Vi||this.Lm("tag-pool-enabled");a.D&&this.Lm(g.oT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Lm("ytp-gvn"),this.element.style.backgroundColor="transparent");a.eb&&(this.eD=g.hv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
   g.k.Zw=function(a){bF(this.app.V());this.pz=!a;qT(this)};
   g.k.resize=function(){if(this.Jb){var a=this.rg();if(!a.isEmpty()){var b=this.Os;b=!g.dg(a,new g.cg(b.width,b.height));var c=lBa(this);b&&(this.Os.width=a.width,this.Os.height=a.height);a=this.app.V();(c||b||a.eb)&&this.app.Ta.ea("resize",this.getPlayerSize())}}};
   g.k.gs=function(a,b){this.updateVideoData(b)};
   g.k.updateVideoData=function(a){if(this.Jb){var b=this.app.V();du&&(this.Jb.setAttribute("x-webkit-airplay","allow"),a.title?this.Jb.setAttribute("title",a.title):this.Jb.removeAttribute("title"));ipa(a)?this.Jb.setAttribute("disableremoteplayback",""):this.Jb.removeAttribute("disableremoteplayback");this.Jb.setAttribute("controlslist","nodownload");b.xl&&a.videoId&&(this.Jb.poster=a.Ie("default.jpg"))}b=g.IG(a,"yt:bgcolor");this.Ru.style.backgroundColor=b?b:"";this.OE=QE(g.IG(a,"yt:stretch"));this.PE=
   QE(g.IG(a,"yt:crop"),!0);g.O(this.element,"ytp-dni",a.D);this.resize()};
   g.k.setGlobalCrop=function(a){this.WD=QE(a,!0);this.resize()};
   g.k.setCenterCrop=function(a){this.pJ=a;this.resize()};
   g.k.Hi=function(){};
   g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ta.isFullscreen();if(b&&Ut())return new g.cg(window.outerWidth,window.outerHeight);if(b||a.Zj){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.dw&&this.dw.media===a||(this.dw=window.matchMedia(a));var c=this.dw&&this.dw.matches}if(c)return new g.cg(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.uv.width)&&!isNaN(this.uv.height))return this.uv.clone();if(this.pB&&this.XG&&!this.app.isWidescreen()&&
   this.app.V().N("web_player_fast_sizing_killswitch"))for(a=0;a<this.pB.length;a++)if(b=this.pB[a],b.query.matches)return new g.cg(b.size.width,b.size.height)}return new g.cg(this.element.clientWidth,this.element.clientHeight)};
   g.k.rg=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize();return a&&this.FF&&768<b.width?new g.cg(.46*b.width,b.height):b};
   g.k.getVideoAspectRatio=function(){return isNaN(this.OE)?jBa(this):this.OE};
   g.k.getVideoContentRect=function(a){var b=this.rg();a=kBa(this,b,this.getVideoAspectRatio(),a);return new g.Pl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
   g.k.QA=function(a){this.FF=a;this.resize()};
   g.k.sE=function(){return this.uA};
   g.k.onMutedAutoplayChange=function(){qT(this)};
   g.k.setUseFastSizingOnWatch=function(a){this.XG!==a&&(this.XG=a,this.resize())};
   g.k.setInternalSize=function(a){g.dg(this.uv,a)||(this.uv=a,this.resize())};
   g.k.xa=function(){this.eD&&g.iv(this.eD);this.Cg();g.V.prototype.xa.call(this)};g.k=mBa.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.Ey();c&&a.visualElement&&g.Gz(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=Oia(c);a.visualElement=c;var f=g.Ey(),h=g.Dy();f&&h&&g.Qy(void 0,f,h,[c]);g.we(b,function(){nBa(e,a)});
   d&&this.u.add(a)};
   g.k.Rg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.we(b,function(){nBa(d,a)});
   c&&this.u.add(a)};
   g.k.ym=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Ay(b))};
   g.k.Rv=function(a){return this.elements.has(a)};g.w(bU,g.V);
   bU.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.i,0,this.i,this.heightPx),this.ctx.fillStyle=this.C[c+1],this.ctx.fillRect(a*this.i,this.heightPx*(1-b),this.i,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.C[c+
   1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.w(dU,g.V);g.k=dU.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.Pa()};
   g.k.hide=function(){g.V.prototype.hide.call(this);this.delay.stop()};
   g.k.stop=function(){this.delay.stop()};
   g.k.start=function(){this.delay.isActive()||this.Pa()};
   g.k.Pa=function(){var a=(0,g.Q)(),b=this.Ta.getStatsForNerds();cU(this.i,b.bandwidth_samples);cU(this.C,b.network_activity_samples);cU(this.B,b.live_latency_samples);cU(this.u,b.buffer_health_samples);this.update(b);a=25<(0,g.Q)()-a?5E3:500;this.delay.start(a)};eU.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
   eU.prototype.getPlaybackRate=function(){return this.playbackRate};iU.prototype.seek=function(a){a!==this.B&&(this.seekCount=0);this.B=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.Wb,e=wBa(this,this.videoTrack,a,this.videoTrack.Wb);d=wBa(this,this.audioTrack,this.policy.ya?a:e,d);a=Math.max(a,e,d);this.i=!0;this.u.isManifestless&&(uBa(this,this.videoTrack,b),uBa(this,this.audioTrack,c));return a};
   iU.prototype.oa=function(){};
   var vBa=2/24;BBa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.Q)()};g.w(nU,g.R);
   nU.prototype.pF=function(a,b){if(this.S){var c=[],d=[],e=[],f=void 0;a.i&&(f=a.i,c=f.u,d=f.B,e=f.C,f=f.i);this.S.uF(a.Ma,a.startTime,this.i,c,d,e,b,f)}b&&this.policy.wc&&(b=this.Z&&a.Ma===this.Z.Ma+1,this.Z=a,c=this.u&&a.Ma===this.u.Ma+1,c=this.u&&b&&c&&"stop"!==this.u.oe.event&&"predictStart"!==this.u.oe.event,d=a.oe||null,e=this.D.i.index.getLastSegmentNumber()<=a.Ma,f=this.K.isManifestless&&this.policy.xl,d?(this.u={oe:d,Ma:a.Ma,Qv:!!a.i},e?oU(this,d,a.Ma):f&&(b?c?oU(this,d,a.Ma):"continue"===d.event||
   "stop"===d.event?FBa(this,a):oU(this,d,a.Ma):oU(this,d,a.Ma))):c&&FBa(this,a))};
   nU.prototype.oF=function(a,b,c){var d=this.D.i.index.getLastSegmentNumber()<=b;this.u={oe:a,Ma:b,Qv:c};d&&oU(this,a,b)};
   nU.prototype.Ba=function(a,b){this.Xa.Ba(a,b)};
   nU.prototype.kx=function(a,b){var c=this.D.i.index.getSegmentNumberForTime(a);return 0<=c&&this.D.i.index.getStitchedVideoInfo(c)?(this.Ba("sdai","skipad_on"+c+"_t"+a.toFixed(3)),b.oG(a,c),EBa(this,a,a,c),!0):!1};qU.prototype.xt=function(a){var b,c,d=this.policy.S;this.policy.S=iE(a,{},this.J);d!==this.policy.S&&(rU(this,this.B),tU(this),d>this.policy.S&&(null===(b=this.i)||void 0===b?0:qD(b.info))&&(null===(c=this.nextVideo)||void 0===c||!qD(c.info))&&(this.S=!0))};
   qU.prototype.oa=function(){};zU.prototype.dispose=function(){this.Y=!0};
   zU.prototype.isDisposed=function(){return this.Y};GU.prototype.skip=function(a){this.offset+=a};
   GU.prototype.getOffset=function(){return this.offset};IU.prototype.Qh=function(){this.u.shift()};
   IU.prototype.Ek=function(){return!!this.D.info.audio};
   IU.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};
   IU.prototype.oa=function(){};g.k=QU.prototype;g.k.HD=function(){return 0};
   g.k.PH=function(){return null};
   g.k.kK=function(){return null};
   g.k.isComplete=function(){return 3<=this.state};
   g.k.isFailed=function(){return 5===this.state};
   g.k.onStateChange=function(){};
   g.k.isDisposed=function(){return-1===this.state};
   g.k.dispose=function(){this.info.dj()&&4!==this.state&&(this.info.i[0].i.C=!1);RU(this,-1)};g.w(UU,QU);g.k=UU.prototype;g.k.onStateChange=function(){this.isDisposed()&&(gGa(this.Ce,this.u),this.B.dispose())};
   g.k.du=function(){return{}};
   g.k.gK=function(){return 0};
   g.k.fu=function(){return!0};
   g.k.ZB=function(){this.Dn();this.S=!0;return uCa(this.i)};
   g.k.QH=function(){this.Dn();return this.i.ke};
   g.k.Ns=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.ke)||void 0===b||!b.length)||this.Ce.Xf(this.u)};
   g.k.Dn=function(){for(;this.Ce.Xf(this.u);){var a=this.i,b=this.Ce.Qh(this.u),c=this.Ce.Ne.get(this.u);tCa(a,b,c.rf&&!c.ke.totalLength&&wCa(this.Ce,this.u))}};VU.prototype.cg=function(){return dCa(this.C)};
   VU.prototype.Qh=function(a){this.C.Qh(a);a=a.info;var b=a.i.info.Nb;this.policy.Cu&&a.Rd&&a.duration&&(b=Math.max(b,(a.Cb+a.u)/a.duration));this.Nb=Math.max(this.Nb,b||0)};
   VU.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()};
   VU.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.i[0].Ma:!1};g.k=iV.prototype;g.k.Js=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.C.Ks()};
   g.k.onError=function(){this.D=!0;this.onDone()};
   g.k.onDone=function(){this.isDisposed||(this.u&&(this.i.append(this.u),delete this.u),this.C.Yn())};
   g.k.Fn=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.xv=function(){return+this.getResponseHeader("content-length")};
   g.k.Ol=function(){return this.B};
   g.k.Ow=function(){return 200<=this.status&&300>this.status&&!!this.B};
   g.k.Xf=function(){return 0<this.i.totalLength};
   g.k.Qh=function(){var a=this.i;this.i=new WC;return a};
   g.k.cg=function(){return this.i};
   g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
   g.k.nt=function(){return!0};
   g.k.CA=function(){return this.D};
   g.k.qe=function(){return""};g.k=JCa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""};
   g.k.abort=function(){};
   g.k.Fn=function(){return!0};
   g.k.xv=function(){return this.range.length};
   g.k.Ol=function(){return this.loaded};
   g.k.Ow=function(){return!!this.loaded};
   g.k.Xf=function(){return!!this.u.totalLength};
   g.k.Qh=function(){var a=this.u;this.u=new WC;return a};
   g.k.cg=function(){return this.u};
   g.k.nt=function(){return!0};
   g.k.CA=function(){return!!this.error};
   g.k.qe=function(){return this.error};var KCa=0;g.k=jV.prototype;g.k.un=function(){this.ya||(this.ya=this.K.un?this.K.un():1);return this.ya};
   g.k.Ks=function(){this.Ra=this.now();this.K.Ks()};
   g.k.iq=function(a,b){lV(this,a,b);50>a-this.C&&nV(this)||NCa(this,a,b);this.K.iq(a,b)};
   g.k.Yn=function(){this.K.Yn()};
   g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
   g.k.now=function(){return(0,g.Q)()};var UCa=0;g.k=rV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Ea);this.C&&(b.signal=this.C.signal);a=new Request(a,b);fetch(a).then(this.Ja,this.onError).then(void 0,Yv)};
   g.k.onDone=function(){if(!this.isDisposed()){this.oa();this.Y=!0;if(TCa(this)&&!this.i.totalLength&&!this.J&&this.u){$A(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.u+=a.length}this.D.Yn()}};
   g.k.getResponseHeader=function(a){return this.S?this.S.get(a):null};
   g.k.Fn=function(){return!!this.S};
   g.k.Ol=function(){return this.u};
   g.k.xv=function(){return+this.getResponseHeader("content-length")};
   g.k.Ow=function(){return 200<=this.status&&300>this.status&&!!this.u};
   g.k.oa=function(){};
   g.k.Xf=function(){if(this.Y||this.policy.i)return!!this.i.totalLength;if(!this.Fn()||this.ya+10>Date.now())return!1;var a=16384;this.Aa||(a=Math.max(a,16384));(this.policy.i?0:this.policy.fg&&$A(this))&&(a=1);return this.i.totalLength>=a};
   g.k.Qh=function(){this.Xf();this.ya=Date.now();this.Aa=!0;var a=this.i;this.i=new WC;return a};
   g.k.cg=function(){this.Xf();return this.i};
   g.k.isDisposed=function(){return this.Z};
   g.k.abort=function(){this.oa();this.B&&this.B.cancel().catch(function(){});
   this.C&&this.C.abort();this.Z=!0};
   g.k.nt=function(){return!0};
   g.k.CA=function(){return this.J};
   g.k.qe=function(){return this.errorMessage};g.k=sV.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.i=!0;this.B.Yn()}};
   g.k.Js=function(){2===this.xhr.readyState&&this.B.Ks()};
   g.k.od=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.u=a.loaded),this.B.iq((0,g.Q)(),a.loaded))};
   g.k.Fn=function(){return 2<=this.xhr.readyState};
   g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Is(Error("Could not read XHR header "+a)),""}};
   g.k.xv=function(){return+this.getResponseHeader("content-length")};
   g.k.Ol=function(){return this.u};
   g.k.Ow=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.u};
   g.k.Xf=function(){return this.i&&!!this.response&&!!this.response.byteLength};
   g.k.Qh=function(){this.Xf();var a=this.response;this.response=void 0;return new WC([new Uint8Array(a)])};
   g.k.cg=function(){this.Xf();return new WC([new Uint8Array(this.response)])};
   g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
   g.k.nt=function(){return!1};
   g.k.CA=function(){return!1};
   g.k.qe=function(){return""};g.w(vV,QU);g.k=vV.prototype;g.k.Xd=function(){return this.u.Xd()};
   g.k.du=function(){var a=kV(this.timing);a.shost=wB(this.u.jg);this.B&&(a.rc=this.B.toString());a.itag=this.info.i[0].i.info.lc();a.ml=""+ +this.info.i[0].i.Se();a.sq=""+this.info.i[0].Ma;this.u&&(a.ifi=""+ +Dka(this.u.jg));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.qe()&&(a.msg=this.xhr.qe());this.mx&&(a.smb="1");if(this.i){var b=this.i.ke;b.length&&Hla(b[0],a)}return a};
   g.k.gK=function(){return RCa(this.timing)};
   g.k.qe=function(){return this.xhr.qe()||""};
   g.k.fu=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.mA&&oV(a,a.u));return a};
   g.k.iq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.Ns()?SU(this,2):!this.Aa&&this.fu()&&(SU(this),this.Aa=!0))};
   g.k.Ks=function(){if(!this.isDisposed()&&this.xhr){if(!this.Y&&this.xhr.Fn()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Y=((0,g.Q)()-a)/1E3}this.xhr.Fn()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Gq&&!Gma()&&g.Kz("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.J=a||this.J;this.K=b||this.K}};
   g.k.Yn=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.Z.stop(),this.B=a.status,a=ZCa(this,a),5===a?uV(this):RU(this,a))};
   g.k.canRetry=function(){this.isDisposed();var a=tV(this);return a.timedOut<this.policy.Lo&&a.i<this.policy.Yi};
   g.k.onStateChange=function(){this.isComplete()&&(this.policy.wh?wV(this):this.timing.deactivate())};
   g.k.LW=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.Q)(),b=!1;nV(this.timing)?(a=this.timing.J,MCa(this.timing),this.timing.J-a>=.8*this.ya?(this.C++,this.oa(),b=5<=this.C):this.C=0):(b=this.timing,b.gh&&qV(b,b.now()),a-=b.ma,this.policy.Db&&0<a&&(this.C+=1),b=ela(tV(this),this.policy,!1)*this.policy.Xj,(b=a>1E3*b)&&this.oa());this.C&&this.callback&&this.callback(this,this.state);b?$Ca(this,!1):this.Z.start()}};
   g.k.dispose=function(){QU.prototype.dispose.call(this);this.Z.dispose();this.policy.wh||wV(this)};
   g.k.ZB=function(){if(!this.QH().length)return[];this.S=!0;return uCa(this.i)};
   g.k.Ns=function(){var a;return 1>this.state?!1:this.i&&this.i.ke.length||(null===(a=this.xhr)||void 0===a?0:a.Xf())?!0:!1};
   g.k.QH=function(){this.Dn(!1);return this.i?this.i.ke:[]};
   g.k.Dn=function(a){if(a||this.xhr.Fn()&&this.xhr.Xf()&&!XCa(this)&&!this.D){if(!this.i){if(this.xhr.nt())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Ol();this.i=new sCa(this.info.i,b)}for(;this.xhr.Xf();)tCa(this.i,this.xhr.Qh(),a&&!this.xhr.Xf())}};
   g.k.Ol=function(){return this.xhr.Ol()};
   g.k.HD=function(){return this.Y};
   g.k.un=function(){return aDa(this)?2:1};
   g.k.oa=function(){};
   g.k.PH=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J};
   g.k.kK=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};
   var YCa=-1;xV.prototype.clear=function(){this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1};
   xV.prototype.oa=function(){};g.w(g.zV,g.I);g.k=g.zV.prototype;
   g.k.initialize=function(a,b,c){this.oa();a=a||0;this.Ca.cA(OBa(this.u));if(this.i.isManifestless){if(this.policy.Di){b=Aka(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.u=b)}kDa(this)}this.D&&cDa(this.D,this.videoTrack.i);this.policy.La&&ZA()&&this.Ba("streaming","ac."+(!!window.AbortController||aB()),!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.ma&&(jDa(this,this.videoTrack),jDa(this,this.audioTrack),hGa(this.ma),
   delete this.ma,this.policy.vu&&(a=tC(this.audioTrack.i.u,!1),AE("https://"+a+"/generate_204","oprobe")));c?(this.policy.Tc?(this.jb=c,EV(this,c)):EV(this,!1),g.Jq(this.La)):(c=0===this.currentTime,AV(this,this.videoTrack,this.videoTrack.i,c),AV(this,this.audioTrack,this.audioTrack.i,c),g.qh(this.seek(this.currentTime),function(){}),this.timing.tick("gv"));
   (this.i.xe||this.i.wg||this.i.J||this.i.D||this.i.K)&&this.Ba("minMaxSq","minSq."+this.i.xe+";maxSq."+this.i.wg+";minDvrTime."+this.i.J+";maxDvrTime."+this.i.D+";startWalltime."+this.i.K)};
   g.k.resume=function(){if(this.isSuspended||this.Aa){this.oa();this.Ua=this.Aa=this.isSuspended=!1;try{this.uh()}catch(a){g.Ly(a)}}};
   g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.u=b.D.i[a.id];b.K=b.u;a=new pU(b.K,b.i,"m");this.oa();MV(this.Ca,a.reason,a.audio.info);OV(this.Ca)}};
   g.k.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)};
   g.k.Ov=function(a){var b=a.info.i[0].i,c=a.lastError;if(xB(b.u.i)){var d=g.Mc(g.Va(a.qe()),3);this.Ba("dldbrerr",d||"none")}this.K&&(d=a.info.i[0].Ma,this.K.Ov(CBa(this.B,a.info.i[0].C,d),d));if(a.canRetry()){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!wU(this.u)&&!xB(b.u.i);var e=a.du(),f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(!1,c,e);this.isDisposed()||(d&&(this.oa(),vU(this.u,b)),this.policy.Og&&1===a.info.i.length&&0<a.info.i[0].Cb&&b!==
   f.i&&this.Aa?OV(this.Ca,Object.assign({reattachOnStuckRequest:1},e)):(fV(f,a),this.uh()))}else this.handleError(!1,c,a.du()),!a.info.dj()||this.policy.u||xB(b.u.i)?this.handleError(!0,"net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()}):(b.D=c,this.uh())};
   g.k.uh=function(){HV(this);if(this.mediaSource&&QD(this.mediaSource)&&!this.mediaSource.bh()){var a=XU(this.videoTrack);a=this.policy.Rj&&a&&a.B;this.i.isManifestless&&this.i.S&&aE(this.i)?(this.S=aE(this.i),this.mediaSource.Ej(this.S)):this.i.isLive&&!a?isNaN(this.S)?(this.S=this.currentTime+3600,this.mediaSource.Ej(this.S)):this.S<=this.currentTime+1800&&(this.S=Math.max(this.S+1800,this.currentTime+3600),this.mediaSource.Ej(this.S)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
   this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==a)&&0<a&&(this.mediaSource.Ej(a),this.S=a))}if(!this.isDisposed())if($D(this.i)&&this.i.isFailed())this.handleError(!0,"manifest.net.retryexhausted",{rc:this.i.ma.toString()});else if(!this.i.B||!FCa(this.videoTrack)&&!FCa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Ua?a=!1:(FV(this),this.Ca.seekTo(Infinity,{Td:"checkLoaderTracksSync",ep:!0}),a=!0),!a&&(HV(this),ZU(this.videoTrack),!this.isDisposed()&&(ZU(this.audioTrack),
   !this.isDisposed()))){this.i.isManifestless&&(GCa(this.videoTrack),GCa(this.audioTrack),zBa(this.C),(a=this.videoTrack.cg())&&a.u&&(a=a.u.D&&!this.policy.Hl,this.Ba(a===this.policy.D.fg?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.D.fg?"1":"0")+";dfs."+(this.policy.Hl?"1":"0"),!0)));if(this.mediaSource)lDa(this);else if(this.policy.u){(a=this.videoTrack.cg())&&this.videoTrack.Qh(a);var b=this.audioTrack.cg();b&&this.audioTrack.Qh(b);aV(this.videoTrack)&&aV(this.audioTrack)?this.oa():
   (a||b)&&g.Jq(this.Z)}DV(this);AV(this,this.videoTrack,this.videoTrack.i,!1);AV(this,this.audioTrack,this.audioTrack.i,!1);a=this.audioTrack.i.D;b=this.videoTrack.i.D;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";this.handleError(!0,c,{metadata:"1",video:this.videoTrack.i.D||"",audio:this.audioTrack.i.D||""})}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||QD(this.mediaSource)&&!this.policy.Ya)&&!this.C.i&&gV(a)&&a.i.Se()&&
   this.u.S)a:{if(b=this.currentTime,c=this.J,d=gU(c,a.i.info.Nb,d.i.info.Nb,0),c=GE(c.schedule)+d/IE(c.schedule),b+=Math.max(c,c+10-d/a.i.info.Nb),this.oa(),a.B.length){if(a.B[0].info.i[0].startTime<=b)break a;jU(a)}c=a.C;for(d=c.u.length-1;0<=d;d--)c.u[d].info.startTime>b&&c.u.pop();a.B.length?a.u=g.pb(g.pb(a.B).info.i):a.C.u.length?a.u=JU(a.C).info:a.u=XU(a);a.u&&b<a.u.startTime&&(a.Y=0,a.i.Se()?a.u=a.i.Pl(b,!0).i[0]:a.u=null)}qDa(this,this.videoTrack,this.audioTrack);qDa(this,this.audioTrack,this.videoTrack);
   this.policy.ll&&this.Ja&&!this.isSuspended&&fna(this.schedule)&&(xDa(this,this.Ja),this.Ja="");this.D&&(a=this.D,a.C?(b=a.J+a.policy.dh,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.uc)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.Jq(this.vb,a));g.Jq(this.qb)}}};
   g.k.JP=function(a){if(this.policy.kb&&this.mediaSource){var b=a===this.mediaSource.i,c=a.Xy();c&&(!c.Cb||c.Rd)&&this.Ba("sbu",a.Ib({a:""+ +b}))}this.uh()};
   g.k.ET=function(a){if(this.mediaSource){a=XU(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=FC(a));this.handleError(!0,"fmt.unplayable",b)}};
   g.k.Is=function(a){this.Ca.Is(a)};
   g.k.pF=function(a,b){this.i.isManifestless&&nCa(this,b,!!a.info.video)};
   g.k.oF=function(a,b,c,d){a.info.video&&this.B.oF(b,c,d)};
   g.k.Kv=ba(6);
   g.k.seek=function(a){if(this.isDisposed())return kh();if(this.videoTrack.K||this.audioTrack.K)return this.policy.wu?jh():kh("seeking to head");HV(this);this.Za=(0,g.Q)();DV(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.u&&(this.mediaSource.i.isLocked()||this.mediaSource.u.isLocked())&&OV(this.Ca,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.i.isLocked()});var b=this.currentTime;this.currentTime=this.C.seek(a);GBa(this.B,a,b);g.Jq(this.Z);return jh(this.currentTime)};
   g.k.getCurrentTime=function(){return this.currentTime};
   g.k.ID=function(){return this.audioTrack.i.info.i};
   g.k.JD=function(){return this.videoTrack.i.info.i};
   g.k.xa=function(){try{GV(this),jU(this.audioTrack),jU(this.videoTrack),g.I.prototype.xa.call(this)}catch(a){g.Ly(a)}};
   g.k.handleError=function(a,b,c){this.isDisposed()||(c=new g.KD(b,a,c),g.Na(this),g.JD(c.details),this.Ca.handleError(c),"html5.invalidstate"!==b&&"fmt.unplayable"!==c.errorCode&&"fmt.unparseable"!==b&&a&&this.dispose())};
   g.k.oa=function(){};
   g.k.Ib=function(){var a=XU(this.audioTrack),b=XU(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.C.i,lmf:xU(this.u),lbw:HE(this.schedule).toFixed(3),lhd:GE(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.qg()||0)).toFixed(3),laa:a?zC(a):"",lva:b?zC(b):"",lar:this.audioTrack.u?zC(this.audioTrack.u):"",lvr:this.videoTrack.u?zC(this.videoTrack.u):"",laq:""+bV(this.audioTrack),lvq:""+bV(this.videoTrack)};this.mediaSource&&!this.mediaSource.rf()&&this.mediaSource.i&&this.mediaSource.u&&
   (a.lab=CD(this.mediaSource.i.lf()),a.lvb=CD(this.mediaSource.u.lf()));this.ya&&(a.lapt=((0,g.Q)()-this.ya).toFixed(0),a.lapr=tDa(this));return a};
   g.k.FD=function(){return fU(this.J)};
   g.k.Ba=function(a,b,c){this.Ca.Ba(a,b,void 0===c?!1:c)};
   g.k.ep=function(a,b){a/=b;isNaN(this.timestampOffset)&&BDa(this,a-Math.min(a,this.policy.Ge));return(a-this.timestampOffset)*b};
   g.k.xt=function(a){this.u.xt(a)};
   g.k.kx=function(a,b){return this.K&&this.B.kx(a,this.K)?(BDa(this,this.timestampOffset-b),!0):!1};
   var pDa=2/24;g.k=g.PV.prototype;g.k.Qr=function(a,b,c,d){return this.Fd.Qr(a,b,c,d)};
   g.k.YD=function(a){this.Fd.YD(a)};
   g.k.Ov=function(a,b){this.Fd.Ov(a,b)};
   g.k.oG=function(a,b){this.Fd.oG(a,b)};
   g.k.yv=ba(30);g.k.lj=function(a,b,c){this.Fd.lj(a,b,c)};
   g.k.uF=function(a,b,c,d,e,f,h,l){this.Fd.uF(a,b,c,d,e,f,h,l)};
   g.k.hG=function(a){this.Fd.hG(a)};g.w(QV,g.R);g.w(RV,QV);RV.prototype.J=function(a,b){if(a&&b){var c=1*Number(xi(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.i={}):(c>this.B&&(this.B=c,g.lc(this.i)||(this.i={},this.C.stop(),this.u.stop())),this.i[b]=a,g.Jq(this.u))}};
   RV.prototype.D=function(){for(var a=g.r(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.i[c].match(gi),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="+fg(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 EU(d,"fairplay",!0))}this.i={}};
   RV.prototype.xa=function(){this.i={};QV.prototype.xa.call(this)};var j3={},LDa=(j3.DRM_TRACK_TYPE_AUDIO="AUDIO",j3.DRM_TRACK_TYPE_SD="SD",j3.DRM_TRACK_TYPE_HD="HD",j3.DRM_TRACK_TYPE_UHD1="UHD1",j3);g.w(SV,g.I);SV.prototype.oa=function(){};g.w(UV,g.R);g.k=UV.prototype;g.k.Wn=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=nE(b.u)?d:c;d=new Uint8Array(nE(b.u)?c:d);nE(b.u)&&$Da(d);c=g.Mc(d,4);$Da(d);d=g.Mc(d,4);b.i[c]?b.i[c].status=e:b.i[d]?b.i[d].status=e:b.i[c]={type:"",status:e}}),this.oa("Key statuses changed: "+XDa(this,",")),TV(this,"onkeystatuschange"),this.status="kc",this.ea("keystatuseschange",this))};
   g.k.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.ea("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
   g.k.shouldRetry=function(a,b){return this.Aa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
   g.k.xa=function(){this.i={};g.R.prototype.xa.call(this)};
   g.k.Ib=function(){var a={requestedKeyIds:this.ya,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a};
   g.k.mf=function(){var a=this.D.join();if(VV(this)){var b=new Set,c;for(c in this.i)"usable"!==this.i[c].status&&b.add(this.i[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
   g.k.oa=function(){};
   g.k.Xd=function(){return this.url};g.w(XV,g.I);g.k=XV.prototype;g.k.KP=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
   g.k.Wn=function(){this.K&&this.K(this.i.keyStatuses)};
   g.k.DM=function(a){this.D&&this.D(a.message,"license-request")};
   g.k.CM=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.BM=function(){this.J&&this.J()};
   g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,Hs(function(c){cEa(b,"t.update",c)}));
   this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.S.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,a,this.initData,this.sessionId);return Kt()};
   g.k.xa=function(){this.i&&this.i.close();this.element=null;g.I.prototype.xa.call(this)};g.w(YV,g.I);g.k=YV.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.i.B):null};
   g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.u.createSession();pE(this.i)&&(c=eEa(c,this.i.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new XV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},Hs(function(f){cEa(e,"t.generateRequest",f)}));
   return e}if(mE(this.i))return gEa(this,c);if(oE(this.i))return fEa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.C=new XV(this.element,this.i,c,null,null)};
   g.k.NP=function(a){var b=$V(this,a);b&&b.DM(a)};
   g.k.MP=function(a){var b=$V(this,a);b&&b.CM(a)};
   g.k.LP=function(a){var b=$V(this,a);b&&b.BM(a)};
   g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
   g.k.xa=function(){var a;this.B=this.u=null;null===(a=this.C)||void 0===a?void 0:a.dispose();for(var b=g.r(Object.values(this.J)),c=b.next();!c.done;c=b.next())c.value.dispose();this.J={};g.I.prototype.xa.call(this);delete this.element};g.w(aW,g.I);
   aW.prototype.init=function(){return g.H(this,function b(){var c=this,d,e;return g.B(b,function(f){if(1==f.i)return g.Sl(c.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.i.src=c.B.D,document.body.appendChild(c.i),c.C.T(c.i,"encrypted",c.J),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.u;c.B.keySystemAccess=
   e;c.u=new YV(c.i,c.B);g.J(c,c.u);ZV(c.u);g.sa(f)})})};
   aW.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new EU(c,a.initDataType);var d=DDa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.oa()});
   f&&(g.J(this,f),this.D.push(f),ODa(f,function(h){aEa(h,f.i,d,e)},function(){b.oa()},function(){},function(){}))}};
   aW.prototype.oa=function(){};
   aW.prototype.xa=function(){this.D=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.I.prototype.xa.call(this)};g.w(bW,QV);
   bW.prototype.J=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.i.length)for(var c=g.r(this.i),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}b=!b}if(b){b=(0,g.Q)();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.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe","wvagt.delay."+
   c+".cpi."+a.cryptoPeriodIndex+".reqlen."+this.i.length);this.C&&0>=c?hEa(this,a):(this.i.push({time:b+c,info:a}),g.Jq(this.u,c))}};
   bW.prototype.xa=function(){this.i=[];QV.prototype.xa.call(this)};cW.prototype.get=function(a){a=eW(this,a);return-1!==a?this.values[a]:null};
   cW.prototype.remove=function(a){a=eW(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
   cW.prototype.set=function(a,b){var c=eW(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.w(fW,g.R);g.k=fW.prototype;g.k.OP=function(a){this.Jg("onecpt");a.initData&&mEa(this,new Uint8Array(a.initData),a.initDataType)};
   g.k.LU=function(a){this.Jg("onndky");mEa(this,a.initData,a.contentType)};
   g.k.Is=function(a){this.Jg("onneedkeyinfo");this.X.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));lEa(this,a)};
   g.k.TI=function(a){this.B.push(a);gW(this)};
   g.k.createSession=function(a){var b=nEa(this)?$Ba(a):g.Mc(a.initData);this.u.get(b);this.ya=!0;a=new UV(this.videoData,this.X,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.dM,this);a.subscribe("keystatuseschange",this.Wn,this);a.subscribe("licenseerror",this.bA,this);a.subscribe("newlicense",this.xM,this);a.subscribe("newsession",this.yM,this);a.subscribe("sessionready",this.LM,this);a.subscribe("fairplay_next_need_key_info",this.oM,this);QDa(a,this.C)};
   g.k.xM=function(a){this.isDisposed()||(this.oa(),this.Jg("onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))};
   g.k.yM=function(){this.isDisposed()||(this.oa(),this.Jg("newlcssn"),this.B.shift(),this.ya=!1,gW(this))};
   g.k.LM=function(){if(mE(this.i)&&(this.oa(),this.Jg("onsnrdy"),this.Ka--,0===this.Ka)){var a=this.Y;a.element.msSetMediaKeys(a.B)}};
   g.k.Wn=function(a){if(!this.isDisposed()){!this.Ea&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(oEa(this),this.Ea=!0);this.oa();this.Jg("onksch");if(!VV(a)&&g.ax&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(VV(a))for(var d=g.r(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!VV(a)||c)b=a.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=fB("auto",b,!1,"l");if(this.videoData.Og){if(dB(this.S,c))break a}else if(qka(this.S,b))break a;this.S=c;this.ea("qualitychange");this.oa();this.Jg("updtlq"+b)}this.ea("keystatuseschange",a)}};
   g.k.dM=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)};
   g.k.oM=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)};
   g.k.bA=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&oEa(this),this.ea("licenseerror",a,b,c,d))};
   g.k.Xr=function(){return this.S};
   g.k.xa=function(){this.i.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.dM,this),b.unsubscribe("keystatuseschange",this.Wn,this),b.unsubscribe("licenseerror",this.bA,this),b.unsubscribe("newlicense",this.xM,this),b.unsubscribe("newsession",this.yM,this),b.unsubscribe("sessionready",this.LM,this),b.unsubscribe("fairplay_next_need_key_info",this.oM,this),b.dispose();
   this.u.clear();dW(this.J);dW(this.K);this.heartbeatParams=null;g.R.prototype.xa.call(this)};
   g.k.Ib=function(){for(var a={systemInfo:this.i.Ib(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Ib());return a};
   g.k.mf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.mf()+(this.D?"/KR":"")};
   g.k.Jg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.oa(),(this.videoData.Y||b)&&this.ea("ctmp","drmlog",a))};
   g.k.oa=function(){};g.w(jW,g.I);g.k=jW.prototype;g.k.Bz=function(){return this.B};
   g.k.handleError=function(a){var b=this,c;tEa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!lW(this,a.errorCode,a.details))&&!vEa(this,a))if(a.i){var d=null===(c=this.Ca.Xa)||void 0===c?void 0:c.u.B;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Ca.Kf(a.errorCode,
   e,g.JD(a.details),f)}else this.Ca.ea("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Sd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q)(),AE(a,"manifest",function(h){b.K=!0;b.Ba("pathprobe",h)},function(h){b.Sd(h.errorCode,h.details)}))};
   g.k.Ba=function(a,b){this.Ca.Xb.Ba(a,b)};
   g.k.Sd=function(a,b){b=g.JD(b);this.Ca.Xb.Sd(a,b)};
   g.k.oa=function(){};mW.prototype.setPlaybackRate=function(a){this.playbackRate=a};
   mW.prototype.N=function(a){return this.X.N(a)};g.w(nW,g.I);nW.prototype.Mc=function(a){QEa(this);this.playerState=a.state;0<=this.B&&g.fI(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
   nW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(nOa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
   nW.prototype.send=function(){if(!(this.C||0>this.u)){QEa(this);var a=g.CS(this.i)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&g.U(this.playerState,
   4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=HG(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=REa(this.i);var e=0>this.B?a:this.B-this.u;a=this.i.X.jb+36E5<(0,g.Q)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,
   rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.FG(this.i.videoData),isGapless:this.i.videoData.Ja,isServerStitchedDai:this.i.videoData.enableServerStitchedDai};!a&&this.i.N("html5_health_to_gel")&&g.Zv("html5PlayerHealthEvent",b);this.i.N("html5_health_to_qoe")&&(b.muted=a,this.K(g.JD(b)));this.C=!0;this.dispose()}};
   nW.prototype.xa=function(){this.C||this.send();g.I.prototype.xa.call(this)};
   var nOa=/\bnet\b/;var VEa=window;var TEa=/[?&]cpn=/;g.w(g.rW,g.I);g.k=g.rW.prototype;g.k.fS=function(){var a=g.CS(this.i);sW(this,a)};
   g.k.Cv=function(){return this.Ra};
   g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.CS(this.i),-1<["PL","B","S"].indexOf(this.ud)&&(!g.lc(this.u)||a>=this.C+30)&&(g.qW(this,a,"vps",[this.ud]),this.C=a),!g.lc(this.u))){7E3===this.sequenceNumber&&g.My(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){tW(this,a);var b=a,c=this.i.Ca.Lv(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.eb,h=e&&!this.qb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+
   ";tf."+c.totalVideoFrames);else(0<f||h)&&g.qW(this,b,"df",[f]);this.eb=d;this.qb=e;!this.i.X.N("disable_webgl_reporting")&&0<this.S&&(g.qW(this,a,"glf",[this.S]),this.S=0);a={event:"streamingstats"};this.i.videoData.u&&(a.fmt=this.i.videoData.u.lc(),(b=this.i.videoData.K)&&b.lc()!==a.fmt&&(a.afmt=b.lc()));a.cpn=this.i.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.Z&&(a.addocid=this.Z);this.i.videoData.cotn&&(a.cotn=this.i.videoData.cotn);a.ei=this.i.videoData.eventId;a.el=SG(this.i.videoData);
   a.docid=this.i.videoData.videoId;a.content_v=TG(this.i.videoData);a.ns=this.i.X.ya;a.fexp=this.i.X.experiments.experimentIds.toString();a.cl=(402169965).toString();(b=this.i.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=HG(this.i.videoData))&&(a.live=b);wG(this.i.videoData)&&(a.drm=1,this.i.videoData.J&&(a.drm_system=HNa[this.i.videoData.J.flavor]||0),this.i.videoData.OC&&(a.drm_product=this.i.videoData.OC));Ts()&&this.i.videoData.jb&&(a.ctt=this.i.videoData.jb,a.cttype=this.i.videoData.Uh,
   this.i.videoData.mdxEnvironment&&(a.mdx_environment=this.i.videoData.mdxEnvironment));WG(this.i.videoData)?a.dai=this.i.videoData.enableServerStitchedDai?"ss":"cs":this.i.videoData.Cc?a.dai="cs":this.i.videoData.JE&&(a.dai="disabled");a.seq=this.sequenceNumber++;g.tc(a,this.i.X.deviceParams);if(!this.i.videoData.IL&&this.i.N("html5_log_server_url_param")&&a){b=this.i.videoData.CX;c=new Set("docid ei event live ns drm_product".split(" "));d=new Set("osid plid feature referrer sdetail sourceid q".split(" "));
   e=new Set(["cl","fexp","drm"]);for(var l in b)d.has(l)||e.has(l)||(a[l]?a[l]!==b[l]?g.My(new g.dw("b161906944_qoe_diff",l,a[l],b[l])):c.has(l)||g.My(new g.dw("b161906944_qoe_same",l)):g.My(new g.dw("b161906944_qoe_pass",l)));l=new Set("fmt afmt cpn el seq cbrand cbr cbrver c cver ctheme cplayer cos cosver cplatform".split(" "));c=g.r(Object.keys(a));for(d=c.next();!d.done;d=c.next())d=d.value,l.has(d)||a[d]&&b&&!b[d]&&g.My(new g.dw("b161906944_qoe_missing",d,a[d]));this.i.videoData.IL=!0}l=g.ti("//"+
   this.i.X.Yi+"/api/stats/qoe",a);a=b="";c=g.r(Object.keys(this.u));for(d=c.next();!d.done;d=c.next())d=d.value,null===this.u[d]?g.My(new g.dw("Stats report key has invalid value",d)):(d="&"+d+"="+this.u[d].join(","),100<d.length?a+=d:b+=d);l+=b;a=a.replace(/ /g,"%20");e=this.i.videoData.nf();c=this.i.X.N("qoe_with_networkless")||this.i.X.N("kevlar_woffle");b=this.i.X.N("qoe_send_and_write");d=this.i.X;f=this.i.N("web_player_vss_pageid_header")?this.i.X.pageId:void 0;(e=oW(l,d,f,this.i.X.sendVisitorIdHeader?
   this.i.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=a,pW(l,e,{token:this.i.videoData.jb,CG:this.i.videoData.Uh,mdxEnvironment:this.i.videoData.mdxEnvironment},d,void 0,c,b&&this.Aa)):c?(c=this.i.X.N("networkless_ajax"),d={method:"POST",postBody:a},b&&this.Aa?this.i.X.N("use_new_nwl")?dy().sendAndWrite(l,d):Yx(l,d):c?g.Ct(l,{method:"POST",postBody:a}):this.i.X.N("use_new_nwl")?dy().sendThenWrite(l,d):Xx(l,d)):bv(l,void 0,a)}this.u={}}};
   g.k.Pw=function(a){0<a&&(this.u.aft=[a.toString()])};
   g.k.IN=function(){if(this.i.videoData.J){var a=this.i.videoData.J;vW(this,"eme-"+(a.keySystemAccess?"final":mE(a)?"ms":pE(a)?"ytfp":oE(a)?"safarifp":"nonfinal"))}};
   g.k.onError=function(a,b){var c=g.CS(this.i);this.Sd(c,a,b);tW(this,c);uW(this)};
   g.k.Sd=function(a,b,c){var d=this.i.Ca.getCurrentTime();b=[b,d.toFixed(3)];c&&b.push(cFa(c));g.qW(this,a,"error",b);this.D=!0};
   g.k.Mc=function(a){var b=a.state,c=g.CS(this.i),d=this.getPlayerState(a.state);if(d!==this.ud){if(!(c<this.C)){if("PL"===this.ud)this.playTimeSecs+=c-this.C;else if("B"===this.ud&&this.ya){this.ya=!1;var e=g.rE(this.i.X.experiments,"html5_disable_last_state_change")?this.C:this.Ua;this.rebufferTimeSecs+=c-e;!this.La&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.i.Ca.xw(),this.u.qoealert=["1"],this.La=!0)}"B"!==d||"PL"!==this.ud&&"PB"!==this.ud||(this.ya=!0);this.C=c}"PL"===this.ud&&("B"===
   d||"S"===d)||this.i.videoData.Y?tW(this,c):sW(this,c);"PL"===d&&g.Jq(this.Db);this.i.N("html5_unstarted_buffering")&&this.i.videoData.Y&&g.U(a.state,64)&&"N"!==d&&this.Ba("unstub",d);g.qW(this,c,"vps",[d]);this.ud=d;this.C=this.Ua=c;this.D=!0}a=b.getData();g.U(b,128)&&a&&this.Sd(c,a.errorCode,a.KF);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.Ec()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);uW(this)};
   g.k.Cw=function(a){var b=g.CS(this.i);g.qW(this,b,"vfs",[a.i.id,a.u,this.vb,a.reason]);this.vb=a.i.id;var c=this.i.Ca.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.uF();1<d&&c.push(d);g.qW(this,b,"view",c)}this.Ja||(this.i.videoData.Y&&vW(this,"rqs"),this.i.videoData.i&&kB(this.i.videoData.i)&&(this.u.preload=["1"]));this.D=this.Ja=!0;"m"===a.reason&&100===++this.Mb&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.qW(this,b,"vps",[this.ud]);this.reportStats(b)};
   g.k.uw=function(a){var b=g.CS(this.i);a.i.id!==this.Ea&&(g.qW(this,b,"afs",[a.i.id,this.Ea,a.reason]),this.Ea=a.i.id)};
   g.k.Vn=ba(34);g.k.Un=ba(37);g.k.onPlaybackRateChange=function(a){var b=g.CS(this.i);a&&a!==this.jb&&(g.qW(this,b,"rate",[a]),this.jb=a);this.reportStats(b)};
   g.k.xj=ba(15);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";if(g.YJ(a)&&g.U(a,64))return"B";var b=oOa[aK(a)];g.lF(this.i.X)&&"B"===b&&3===this.i.Ca.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b};
   g.k.xa=function(){g.I.prototype.xa.call(this);window.clearInterval(this.Ya)};
   g.k.Ba=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Hb.indexOf(a);e||this.Hb.push(a);if(!c||!e){b="string"!==typeof b?g.JD(b):b;b=cFa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.CS(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.oa();this.u.ctmp=d;uW(this);return f}};
   g.k.Qw=function(a,b,c){this.K={TW:Number(this.Ba("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),WL:a,GW:b,isAd:c}};
   g.k.Qs=function(a,b,c){g.qW(this,g.CS(this.i),"ad_playback",[a,b,c])};
   g.k.oa=function(){};
   var k3={},oOa=(k3[5]="N",k3[-1]="N",k3[3]="B",k3[0]="EN",k3[2]="PA",k3[1]="PL",k3);dFa.prototype.update=function(){if(this.S){var a=this.i.Ca.getCurrentTime()||0;this.i.X.N("html5_vss_media_time_killswitch")||(a=this.i.Ca.Ch()||0);var b=g.CS(this.i);if(a!==this.u||hFa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||hFa(this,a,b))){var d=this.i.Dh();c=d.volume;var e=c!==this.Y;d=d.muted;d!==this.Z?(this.Z=d,c=!0):(!e||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(yW(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};zW.prototype.send=function(a){if(!this.La){var b=BW(this);b=g.ti(this.uri,b);if(this.qb)this.attestationResponse&&(a=AW(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.Y?this.ma?this.ya?dy().sendAndWrite(b,a):Yx(b,a):this.ya?dy().sendThenWrite(b,a):Xx(b,a):g.Ct(b,a));else{var c=AW(this,a);pW(b,c,{token:this.S,CG:this.kb,mdxEnvironment:this.mdxEnvironment},this.X,a,this.Y,this.isFinal&&this.ye||this.ma||this.B&&this.Ge)}this.La=!0}};
   zW.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
   var l3={},jFa=(l3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,l3.LIVING_ROOM_APP_MODE_MAIN=1,l3.LIVING_ROOM_APP_MODE_KIDS=2,l3.LIVING_ROOM_APP_MODE_MUSIC=3,l3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,l3.LIVING_ROOM_APP_MODE_GAMING=5,l3);g.w(DW,g.I);g.k=DW.prototype;g.k.od=function(){this.u.update();var a;if(a=this.i.videoData.isLoaded()&&this.i.videoData.Mb&&this.C&&!this.Y)a=this.u,a=(a.i.X.N("html5_vss_media_time_killswitch")?a.J+a.i.Ca.getCurrentTime()-a.B:a.J+a.i.Ca.Ch()-a.B)>=this.i.videoData.Mb;a&&(this.C&&this.i.videoData.Mb&&(a=EW(this,"delayplay"),a.wh=!0,a.send(),this.Y=!0),lFa(this))};
   g.k.Mc=function(a){this.isDisposed()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.fI(a,2)&&this.C&&HW(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&FW(this,!1)):this.currentPlayerState="paused")};
   g.k.xa=function(){g.I.prototype.xa.call(this);g.wt(this.B);this.B=NaN;fFa(this.u)};
   g.k.Ib=function(){return BW(EW(this,"playback"))};
   g.k.At=function(){this.i.videoData.S.eventLabel=SG(this.i.videoData);this.i.videoData.S.playerStyle=this.i.X.playerStyle;this.i.videoData.dh&&(this.i.videoData.S.feature="pyv");this.i.videoData.S.vid=this.i.videoData.videoId;var a=this.i.videoData.S;var b=this.i.videoData;b=b.isAd()||!!b.dh;a.isAd=b};
   g.k.Eh=function(a){var b=EW(this,"engage");b.Z=a;return iFa(b,qFa(this.i))};pFa.prototype.isEmpty=function(){return this.endTime===this.startTime};JW.prototype.N=function(a){return this.X.N(a)};
   var rFa={other:1,none:2,wifi:3,cellular:7};g.w(g.KW,g.I);g.k=g.KW.prototype;g.k.Mc=function(a){var b;if(g.fI(a,1024)||g.fI(a,512)||g.fI(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.J||(c.B=-1))}this.u.videoData.enableServerStitchedDai&&this.Sf?null===(b=this.C.get(this.Sf))||void 0===b?void 0:b.Mc(a):this.i&&this.i.Mc(a);this.qoe&&this.qoe.Mc(a);this.B&&this.B.Mc(a)};
   g.k.od=function(){var a;this.u.videoData.enableServerStitchedDai&&this.Sf?null===(a=this.C.get(this.Sf))||void 0===a?void 0:a.od():this.i&&this.i.od()};
   g.k.Sd=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
   g.k.Cw=function(a){this.qoe&&this.qoe.Cw(a)};
   g.k.uw=function(a){this.qoe&&this.qoe.uw(a)};
   g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
   g.k.Vn=ba(33);g.k.Ba=function(a,b,c){this.qoe&&this.qoe.Ba(a,b,c)};
   g.k.Qw=function(a,b,c){this.qoe&&this.qoe.Qw(a,b,c)};
   g.k.Pw=function(a){this.qoe&&this.qoe.Pw(a)};
   g.k.Qs=function(a,b,c){this.qoe&&this.qoe.Qs(a,b,c)};
   g.k.Un=ba(36);g.k.xj=ba(14);g.k.Cv=function(){if(this.qoe)return this.qoe.Cv()};
   g.k.Ib=function(){var a;if(this.u.videoData.enableServerStitchedDai&&this.Sf)null===(a=this.C.get(this.Sf))||void 0===a?void 0:a.Ib();else if(this.i)return this.i.Ib();return{}};
   g.k.Eh=function(a){return this.i?this.i.Eh(a):function(){}};
   g.k.At=function(){this.i&&this.i.At()};g.w(LW,g.I);g.k=LW.prototype;g.k.Ad=function(a,b){this.bl();if(b&&2E3<=this.i.i.length){var c=(isNaN(this.u)?g.U(this.D(),2)?0x8000000000000:1E3*this.S():this.u)-1E4;b=this.Ll().filter(function(d){return"captions"===d.namespace&&d.end<c});
   this.If(b)}FFa(this.i,a);this.u=NaN;this.bl()};
   g.k.If=function(a){1E4<a.length&&g.My(new g.dw("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)});
   GFa(this.i,b);this.bl()}};
   g.k.Ll=function(){return this.isDisposed()?[]:this.i.i};
   g.k.reset=function(){this.started=!1;this.C.stop();this.i.i=[];this.B=[];this.bl()};
   g.k.We=function(a){var b=this.Ll().filter(function(c){return c.namespace===a});
   this.If(b);return b};
   g.k.Mc=function(a){this.started&&(this.bl(),g.U(a.Sn,16)&&(a=EFa(this.i,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
   g.k.sD=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.vD=function(a){var b=[];if(!a.length)return b;a.sort(g.mA);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.bl=function(){this.J=!0;if(!this.K){for(var a=3;this.J&&a;)this.J=!1,this.K=!0,this.aL(),this.K=!1,a--;this.D().Ec()&&(a=EFa(this.i,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.ma(),this.C.start(a)))}};
   g.k.aL=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.U(a,32)&&this.Y.start();for(var b=g.U(this.D(),2)?0x8000000000000:1E3*this.S(),c=g.U(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.vD(e));f=e=null;c?(a=CFa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=DFa(this.i)):a=this.u<=b&&ZJ(a)?BFa(this.i,this.u,b):CFa(this.i,b);
   d=d.concat(this.sD(a));e&&(d=d.concat(this.vD(e)));f&&(d=d.concat(this.sD(f)));this.u=b;HFa(this,d)}};
   g.k.xa=function(){this.B=[];this.i.i=[];g.I.prototype.xa.call(this)};
   g.wS.wz(LW,{Ad:"crmacr",sD:"crmncr",vD:"crmxcr",aL:"crmis",If:"crmrcr"});g.w(PW,g.R);PW.prototype.Xl=function(){return this.K};
   PW.prototype.hj=function(){return Math.max(this.S()-NFa(this,!0),this.videoData.getMinSeekableTime())};
   PW.prototype.oa=function(){};g.w(UW,g.I);UW.prototype.Mc=function(){g.Jq(this.B)};
   UW.prototype.D=function(){var a=this,b=this.Ca.jd(),c=this.Ca.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.i,f=g.U(c,8)&&g.U(c,16),h=this.Ca.Jp().isBackground()||c.isSuspended();VW(this,this.Ea,f&&!h,e,"qoe.slowseek",function(){},"timeout");
   f=f&&isFinite(this.i)&&0<this.i&&$qa(b,this.i);var l=!d||10<Math.abs(d-this.i);VW(this,this.Ka,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
   var m=f&&ED(b.Uf(),this.i);f=this.Ca.Xa;l=!f||!f.policy.Zb;var n=function(){b.seekTo(a.i+.001)};
   VW(this,this.ma,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return iW(a.Ca)};
   VW(this,this.ya,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=ZJ(c);m=g.$J(c);var q=b.Uf(),t=DD(q,d);QFa(this,b,q,d,h,p,m);q=0<=t&&q.end(t)>d+5;q=p&&m&&q;VW(this,this.K,q&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");VW(this,this.S,q&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.Gp();n=Ula(n,u);n=!f.C.i&&d===n;VW(this,this.Ua,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}VW(this,this.Z,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},
   "timeout");
   n=c.isSuspended();n=g.wb(this.Ca.Dj,"ad")&&!n;VW(this,this.J,n,!n,"qoe.start15s",function(){a.Ca.Md("ad")},"ads_preroll_timeout");
   n=this.Ca.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Ca,y=x.Yx.Kc();(!y||!x.videoData.isAd()||y.getVideoData().Cc!==x.getVideoData().Cc)&&x.videoData.Qd||x.Kf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)};
   VW(this,this.Ja,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&ED(b.Uf(),d+5)&&q;VW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");VW(this,this.Ra,g.YJ(c)&&g.U(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
   VW(this,this.Y,!!f&&!f.mediaSource&&g.YJ(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
   UW.prototype.Sd=function(a,b,c){b=this.Ib(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Ca.Sd(new g.KD(a,!1,b));this.u[a]=!0};
   UW.prototype.Ib=function(a){a=Object.assign(this.Ca.Ib(!0),a.Ib());this.i&&(a.stt=this.i.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
   SW.prototype.reset=function(){this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
   SW.prototype.Ib=function(){var a={},b=(0,g.Q)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.w(XW,g.I);g.k=XW.prototype;g.k.setMediaElement=function(a){g.my(this.Ja);(this.ra=a)?(dGa(this),WW(this)):ZW(this)};
   g.k.Mc=function(a){this.Y.Mc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Ec()?g.Jq(this.ma):this.ma.stop());var b;if(b=this.ra)b=8===a.Sn.state&&ZJ(a.state)&&g.$J(a.state)&&this.policy.B;if(b){a=this.ra.getCurrentTime();b=this.ra.Uf();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?DD(b,Math.max(a-3.5,0)):DD(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.Ca.Ba("seekover","b."+CD(b,
   "_")+";cmt."+a),this.Ua=c,this.seekTo(c,{Mp:!0,Td:"playbacktimeline_postLiveDisc"})))}};
   g.k.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.ra&&aGa(this)?this.ra.getCurrentTime()+this.timestampOffset:this.B||0};
   g.k.Ch=function(){return this.getCurrentTime()-this.Uc()};
   g.k.hj=function(){return this.u?this.u.hj():Infinity};
   g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return RW(this.u,a)};
   g.k.Xl=function(){return!!this.u&&this.u.Xl()};
   g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.pO?!1:c.pO;var d=void 0===c.qO?0:c.qO,e=void 0===c.Mp?!1:c.Mp,f=void 0===c.DG?0:c.DG,h=void 0===c.Td?"":c.Td;if(void 0===c.ep?0:c.ep)a+=this.Uc();c=a;var l=!isFinite(c)||(this.u?RW(this.u,c):c>=this.hd())||!g.KG(this.videoData);l||this.Ca.Ba("seeknotallowed",c+";"+this.hd());if(!l)return this.C&&(this.C=null,bX(this)),jh(this.getCurrentTime());this.oa();if(.005>Math.abs(a-this.i)&&this.S)return this.oa(),this.D;h&&(c=a,(g.yG(this.videoData)||
   this.N("html5_log_seek_reasons"))&&this.Ca.Ba("seekreason","reason."+h+";tgt."+c));this.S&&ZW(this);this.D||(this.D=new uS);a&&!isFinite(a)&&YW(this,!1);h=a;(aX(this)&&!(this.ra&&0<this.ra.rh()&&0<PJ(this.ra))||CG(this.videoData)&&this.getMinSeekableTime()===this.hd(!1)?0:isFinite(h)||!CG(this.videoData))&&(a=$Fa(this,a,e));a&&!isFinite(a)&&YW(this,!1);this.B=a;this.Ea=f;this.i=a;this.u&&(e=this.u,f=a,OFa(e,f,!1),PFa(e,f));e=this.Ca;e.Nc.B=a;f=e.Lu;f.mediaTime=a;f.i=!0;b&&OX(e);e.qk&&a>e.videoData.endSeconds&&
   isFinite(a)&&(e.removeCueRange(e.qk),e.qk=null);a<e.hd()-.01&&(f=VJ(e.playerState,2),g.U(f,8)&&(f=VJ(f,4)),e.Ub(f));e.ea("SEEK_TO",e,a);this.D&&(b?d&&this.Ka.start(d):(this.oa(),this.S=!0,UFa(this)));return this.D};
   g.k.hd=function(a){var b;if(!this.videoData.isLivePlayback)return this.videoData.hd();if(!this.N("html5_linear_live_max_seekable_killswitch")&&bH(this.videoData)&&(null===(b=this.ra)||void 0===b?0:b.al())&&this.videoData.i)return a=this.getCurrentTime(),xpa(1E3*this.getIngestionTime(a))+a;if(CG(this.videoData)&&this.videoData.Zi&&this.videoData.i)return this.videoData.i.hd()+this.timestampOffset;if(this.videoData.B&&this.videoData.B.i){if(!a&&this.u)return this.u.hj();a=this.videoData.hd();this.policy.i&&
   this.ra&&(a=Math.max(a,ara(this.ra)));return a+this.timestampOffset}return this.ra?Xt()?xpa(this.ra.Jx().getTime()):PJ(this.ra)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
   g.k.getMinSeekableTime=function(){var a,b=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(bH(this.videoData)&&this.videoData.i){var c=Number(null===(a=this.videoData.progressBarStartPosition)||void 0===a?void 0:a.utcTimeMillis)/1E3,d=this.getCurrentTime();d=this.getIngestionTime(d)-d;if(!isNaN(c)&&!isNaN(d))return Math.max(b,c-d)}return b};
   g.k.xa=function(){$W(this,null);this.Y.dispose();g.I.prototype.xa.call(this)};
   g.k.Ib=function(){var a={};this.Xa&&Object.assign(a,this.Xa.Ib());this.ra&&Object.assign(a,this.ra.Ib());return a};
   g.k.vF=function(a){this.N("html5_unrewrite_timestamps")?this.timestampOffset=a:this.Ra=a};
   g.k.getStreamTimeOffset=function(){return CG(this.videoData)?this.Ra:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
   g.k.Uc=function(){return this.timestampOffset};
   g.k.getIngestionTime=function(a){return this.videoData.i.getIngestionTime(a-this.timestampOffset)};
   g.k.Cp=function(){if(!this.ra)return 0;if(LG(this.videoData)){var a=ara(this.ra)+this.timestampOffset-this.getMinSeekableTime(),b=this.hd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.ra.Cp()};
   g.k.cA=function(a){this.J&&(this.J.i=a.audio.index)};
   g.k.N=function(a){return this.X&&this.X.N(a)};
   g.k.oa=function(){};cX.prototype.isFinished=function(){return this.i};
   cX.prototype.start=function(){this.started=!0};
   cX.prototype.reset=function(){this.i=this.started=!1};g.w(dX,aR);dX.prototype.i=function(a,b){var c=h3.Bo("oap");b=aR.prototype.i.call(this,a,b);h3.fn(c,Math.ceil(a.length/16));return b};
   dX.prototype.ev=function(a,b,c){var d=Object.create(null,{ev:{get:function(){return aR.prototype.ev}}});
   return g.H(this,function f(){var h,l=this,m;return g.B(f,function(n){if(1==n.i)return h=h3.Bo("oan2"),g.A(n,d.ev.call(l,a,b,c),2);m=n.u;h3.fn(h,Math.ceil(a.byteLength/16));return n.return(m)})})};
   g.w(eX,bR);eX.prototype.encrypt=function(a,b){var c=h3.Bo("oap");b=bR.prototype.encrypt.call(this,a,b);h3.fn(c,Math.ceil(a.byteLength/16));return b};gX.prototype.encrypt=function(a){return(new eX(this.i.i)).encrypt(a,this.iv)};
   gX.prototype.decrypt=function(a,b){return(new eX(this.i.i)).decrypt(a,b)};g.w(hX,g.I);g.k=hX.prototype;g.k.Xf=function(a){var b;return!(null===(b=this.Ne.get(a))||void 0===b||!b.ke.totalLength)};
   g.k.Qh=function(a){a=this.Ne.get(a);var b=a.ke;a.RC+=b.totalLength;a.ke=new WC;return b};
   g.k.rf=function(a){return this.Ne.get(a).rf};
   g.k.oa=function(){};
   g.k.xa=function(){g.I.prototype.xa.call(this);for(var a=g.r(this.Ne.keys()),b=a.next();!b.done;b=a.next())iX(this,b.value);this.Ne.clear()};var m3={},lGa=(m3.f="video",m3["1"]="video",m3["1h"]="video",m3.h="video",m3.H="video",m3["9"]="video",m3["("]="video",m3["9h"]="video",m3["(h"]="video",m3.o="audio",m3.O="audio",m3.a="audio",m3.ah="audio",m3.A="audio",m3.m="audio",m3.M="audio",m3.mac3="audio",m3.MAC3="audio",m3.meac3="audio",m3.MEAC3="audio",m3.so="audio",m3.sa="audio",m3["8"]="unknown",m3["*"]="unknown",m3.w="unknown",m3["3"]="unknown",m3["6"]="unknown",m3[""]="unknown",m3);rGa.prototype.decrypt=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n;return g.B(c,function(p){switch(p.i){case 1:if(d.i.length&&!d.i[0].isEncrypted)return p.return();d.u=!0;e=new Uint8Array(16);fX()?f=new dX(a):h=new eX(a);case 2:if(!d.i.length||!d.i[0].isEncrypted){p.fb(3);break}l=d.i.shift();if(!f){m=h.decrypt(l.buffer,e);p.fb(4);break}return g.A(p,f.decrypt(l.buffer,e),5);case 5:m=p.u;case 4:n=m;for(var q=0;q<e.length;q++)if(255===e[q])e[q]=0;else{e[q]+=1;break}sGa(d.eq.yd,l.tG,
   n);p.fb(2);break;case 3:jX(d),d.u=!1,g.sa(p)}})})};kX.prototype.feed=function(a,b){var c=b.totalLength;this.oa();switch(a){case 10:var d=IQ(new FQ(b),1);this.oa();a=!1;switch(d){case 5:c=this.yd;c.Xe("orfb");if(c.X.N("html5_onesie_host_probing")&&c.xhr){var e={rc:c.xhr.status,lb:c.xhr.Ol(),rt:RCa(c.Qk).toFixed(3),shost:g.ii(c.Dw),trigger:"o1"};c.Ba("pathprobe",g.JD(e))}break;case 0:this.iv=(new jGa(b)).i.iv;break;case 16:this.hA(b);break;case 2:break;case 23:c=new nGa(b);e=this.yd;c.videoId!==e.videoData.videoId?e.Ba("ompp","vid."+c.videoId):e.ME=
   !0;break;case 24:c=this.yd;c.X.N("html5_onesie_use_media_promise")&&(c.ME=!1,c.Uw=!1,lX(c));break;default:a=!0}this.yd.mj&&this.yd.Ba("ombup","id.10;pt."+d+";len."+b.totalLength+(a?";ignored.1":""));this.u=d;break;case 11:vGa(this,b);break;case 20:c=new mGa(b);e=c.B;a=c.u;var f=c.Ek,h=void 0!==this.i[a];this.yd.mj&&this.yd.Ba("ombup","id.20;len."+b.totalLength+";hid."+e+";fid"+a);this.oa();this.B[e]=a;h?(b=this.i[a].headers,b.push(c),c.i&&2===b.length&&this.yd.hA(a,b[0].i+b[1].i)):(this.i[a]={IK:!1,
   Ek:f,headers:[c]},null===(d=this.yd.Ce)||void 0===d?void 0:(b=f,b=void 0===b?!1:b,d.Ne.set(a,{ke:new WC,RC:0,bytesReceived:0,rf:!1,Ek:b}),d.oa()));break;case 21:wGa(this,b,!1);break;case 12:wGa(this,b,!0);break;case 22:d=aD(b,0);this.yd.mj&&this.yd.Ba("ombup","id.22;len."+b.totalLength+";hid."+d);b=this.B[d]||null;this.oa();b&&(d=this.i[b],1===d.headers.length&&d.headers[0].i||tGa(this.queue,b));break;case 37:b=new kGa(b);b.i&&(this.yd.AD=b);break;default:this.yd.mj&&this.yd.Ba("ombup","id."+a+";len."+
   c+";ignored.1"),this.oa()}};
   kX.prototype.hA=function(a){a=new qGa(a);this.yd.hA(a.i,a.u);this.oa()};
   kX.prototype.hF=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n,p,q,t,u,x;return g.B(c,function(y){if(1==y.i){d.yd.hF();e=$C(a);var z=d.yd;var G=d.iv;z=fX()?fGa(z.xF,e,G):Promise.resolve(z.xF.decrypt(e,G));return g.A(y,z,2)}f=y.u;try{h=new oGa(new WC([f]))}catch(F){return l=F instanceof Error?{name:F.name,message:F.message}:{},l.webcrypto=""+ +fX(),m=new g.KD("onesie.response.parse",!1,l),y.return(Promise.reject(m))}if(1!==h.onesieProxyStatus)return n={st:h.onesieProxyStatus,webcrypto:""+
   +fX()},p=new g.KD("onesie.response.badproxystatus",!1,n),y.return(Promise.reject(p));if(200!==h.httpStatus)return q={st:h.httpStatus},t=new g.KD("onesie.response.badstatus",!1,q),y.return(Promise.reject(t));u=h.body;x=g.D.TextDecoder?(new TextDecoder).decode(u):g.Xa(u);d.oa();d.oa();return y.return(x)})})};
   kX.prototype.oa=function(){};g.w(oX,mX);oX.prototype.u=function(a){QQ(a,1,this.name);QQ(a,2,this.value)};g.w(pX,mX);pX.prototype.u=function(a){QQ(a,1,this.url);for(var b=g.r(this.httpHeaders),c=b.next();!c.done;c=b.next())c=c.value,qxa(a),c.u(a),rxa(a);QQ(a,3,this.postBody)};g.w(qX,mX);qX.prototype.u=function(a){this.i.dO&&NQ(a,13,this.i.dO);if(void 0!==this.i.lastManualDirection){var b=this.i.lastManualDirection;MQ(a,112);MQ(a,b<<1^b>>31)}this.i.qL&&NQ(a,16,this.i.qL);this.i.viewportHeight&&this.i.viewportWidth&&(NQ(a,18,this.i.viewportWidth),NQ(a,19,this.i.viewportHeight));this.i.UN&&NQ(a,21,this.i.UN);this.i.cJ&&NQ(a,23,this.i.cJ);void 0!==this.i.visibilityState&&NQ(a,34,this.i.visibilityState);void 0!==this.i.cO&&NQ(a,39,this.i.cO);this.i.Jn&&NQ(a,40,1)};g.w(rX,mX);rX.prototype.u=function(a){OQ(a,2,this.i);OQ(a,5,this.encryptedClientKey);OQ(a,6,this.iv);OQ(a,7,this.hmac);NQ(a,10,this.serializeResponseAsJson?1:0)};g.w(sX,mX);sX.prototype.u=function(a){qxa(a);this.i.u(a);rxa(a);OQ(a,3,nX(this.B));this.onesieUstreamerConfig&&OQ(a,4,this.onesieUstreamerConfig)};tX.prototype.feed=function(a){XC(this.i,a);yGa(this)};
   tX.prototype.dispose=function(){this.i=new WC};var n3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},EGa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},n3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},n3),Object.assign({itag:"298",bitrate:"3500000",size:"1280x720",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
   n3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},n3),Object.assign({itag:"302",bitrate:"2500000",fps:"60",size:"1280x720",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},n3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},n3)],o3=["136","135",
   "134","133","160"],p3=["247","244","243","242"],q3={},DGa=(q3["137"]=o3,q3["248"]=p3,q3["399"]=["398","397","396","395","394"],q3["298"]=o3,q3["302"]=p3,q3["299"]=["298","137"].concat(o3),q3["303"]=["302","248"].concat(p3),q3["140"]=[],q3["251"]=["250"],q3),r3={},BGa=(r3["133"]=240,r3["134"]=360,r3["135"]=480,r3["136"]=720,r3["137"]=1080,r3["242"]=240,r3["243"]=360,r3["244"]=480,r3["247"]=720,r3["248"]=1080,r3["298"]=720,r3["299"]=1080,r3["302"]=720,r3["303"]=1080,r3["395"]=240,r3["396"]=360,r3["397"]=
   480,r3["398"]=720,r3["399"]=1080,r3);g.w(uX,g.I);g.k=uX.prototype;g.k.Xe=function(a){this.Ca.Xe(a)};
   g.k.hF=function(){this.Xe("orpr");this.HK=!0};
   g.k.hA=function(a,b){var c;null===(c=this.Ce)||void 0===c?void 0:(c.Ne.get(a).wk=b,c.oa());lX(this)};
   g.k.Ba=function(a,b){this.Ca.Ba(a,b)};
   g.k.fetch=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p,q,t;return g.B(b,function(u){if(1==u.i){c.oa();c.kA.start();c.UM&&c.jA.start();c.Xe("ogpd");var x=c.playerRequest,y=c.X,z=c.videoData,G=y.Og;G="https://youtubei.googleapis.com/youtubei/"+G.innertubeApiVersion+"/player?key="+G.innertubeApiKey;var F=[new oX({name:"Content-Type",value:"application/json"})],C=z.nf();C&&F.push(new oX({name:"Authorization",value:"Bearer "+C}));F.push(new oX({name:"User-Agent",value:g.Ub}));(z=
   z.visitorData||g.P("VISITOR_DATA",void 0))&&F.push(new oX({name:"X-Goog-Visitor-Id",value:z}));(y=g.jE(y.experiments,"debug_sherlog_username"))&&F.push(new oX({name:"X-Youtube-Sherlog-Username",value:y}));x=JSON.stringify(x);e=new pX({url:G,httpHeaders:F,postBody:x});try{var K=c.X,S=c.videoData,L=c.Ca.getPlayerSize(),W=c.Ca.getVisibilityState(),pa=c.HJ.onesieUstreamerConfig,ta=c.xF;var rb=ta.encrypt(nX(e));var ob=ta.i.encryptedClientKey,Ib=ta.iv,sc=ta.iv,dd=new cR(ta.i.u);dd.update(rb);dd.update(sc);
   var We=Cxa(dd);dd.update(dd.D);dd.update(We);var $b=Cxa(dd);dd.reset();var zk=new rX(rb,ob,Ib,$b);ta={};var Vi=eE(0);if(Vi){ta.qL=Vi;ta.lastManualDirection=Cma();var Wi=mja()||0;0<Wi&&(ta.dO=(0,g.Q)()-Wi)}ta.UN=eE();ta.cJ=IE(K.schedule,!0);var Xi=g.uF();ta.viewportHeight=L.height*Xi;ta.viewportWidth=L.width*Xi;ta.visibilityState=W;ta.cO=Zu();K.N("html5_onesie_audio_only_playback")&&(ta.Jn=S.Jn());d=new sX(zk,new qX(ta),pa)}catch(Oc){return c.oa(),Oc instanceof g.KD?c.Bh(Oc):(f=new g.KD("onesie.request",
   !1),c.Bh(f)),u.return(c.Vk)}c.Xe("osor");h=Tua(c.X);l=nX(d);g.Wt()&&(l=new Uint8Array(l.buffer.slice(0,l.length)));m={method:"POST",body:l,headers:{"Content-Type":"text/plain",Referer:location.origin}};K=c.videoData;var kb,sb,hc,Ld;S=K.V();L=S.Tc;(null===L||void 0===L?0:L.baseUrl)&&(W=g.jE(S.experiments,"debug_bandaid_hostname")||(null===(kb=hE())||void 0===kb?void 0:kb.primary)||(null===(hc=null===(sb=S.Bi)||void 0===sb?void 0:sb.i)||void 0===hc?void 0:hc.primary))&&(Ld=GGa(new g.uB("https://"+W+
   L.baseUrl),K));if(Ld)kb=Ld;else{var Nb;kb=null!==(Nb=K.Gq)&&void 0!==Nb&&Nb.url?new g.uB(K.Gq.url):null}n=kb;return c.X.N("html5_onesie_advance_redirector")||n?u.fb(2):g.A(u,HGa(c.videoData),3)}2!=u.i&&(n=u.u);if(!n)return c.oa(),p={url:"0"},q=new g.KD("onesie.unavailable.hotconfig",!1,p),c.Bh(q),u.return(c.Vk);Nb=n;kb=c.videoData;a:{if(c.Ce){sb=CGa(c.Ca.getVideoData());hc=sb.video;sb=sb.audio;K=c.Ca;Ld=K.Zf;K=K.videoData;Ld=BEa(Ld).compose(LEa(Ld)).compose(NEa(Ld,K));if(c.X.N("html5_onesie_format_constraint")){K=
   [];hc=g.r(hc);for(S=hc.next();!S.done;S=hc.next())S=S.value,L=BGa[S]||0,Ld.i&&L>Ld.i||K.push(S);hc=K}if(hc.length){sb={video:hc,audio:sb};break a}c.Ba("ombspf","l."+Ld.u+";u."+Ld.i+";o."+Ld.B+";r."+Ld.reason)}sb=void 0}Nb.set("ack","1");Nb.set("cpn",kb.clientPlaybackNonce);Nb.set("opr","1");Nb.set("oaad","0");Nb.set("oavd","0");Nb.set("por","1");sb?(kb=sb.audio,Nb.set("pvi",sb.video.join(",")),Nb.set("pai",kb.join(",")),ZA()||Nb.set("osh","1")):(Nb.set("pvi","135"),Nb.set("pai","140"),Nb.set("oad",
   "0"),Nb.set("ovd","0"));c.oa();c.mj&&c.Ba("ombrs","1");t=c.Ca.V().schedule;c.Qk=new jV(c,{Ng:t,qD:c.mj});n.set("rn",""+c.Qk.requestNumber);c.Dw=n.Xd();c.Xe("ocs");ZA()?aB()?c.xhr=new iV(c.Dw,h,c.Qk,m):c.xhr=new rV(c.Dw,h,c.Qk,m):c.xhr=new sV(c.Dw,c.Qk,m);c.X.N("html5_onesie_host_probing")&&c.iE&&(c.iE.u=c,Nb=c.iE,kb=Nb.i||hE(),(sb=null===kb||void 0===kb?void 0:kb.secondary)&&Zma(Nb,sb,"o2"),kb=null===kb||void 0===kb?void 0:kb.primary)&&(kb=$ma(kb),Zma(Nb,kb,"o3"));return u.return(c.Vk)})})};
   g.k.Ks=function(){};
   g.k.iq=function(){this.Dn();this.jA.isActive()&&this.jA.start()};
   g.k.Yn=function(){this.oa();this.Dn();var a=IGa(this),b=this.xhr;if(b.qe()){var c="onesie.net";a.msg=b.qe()}else 400<=b.status?c="onesie.net.badstatus":b.Ow()?this.HK||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.Bh(new g.KD(c,!1,a)):(this.Xe("orf"),OCa(this.Qk,(0,g.Q)(),this.Qk.u,0),this.mj&&this.Ba("rqs",a));this.mj&&this.Ba("ombre","ok."+ +!c);this.Uw=!1;lX(this);uGa(this.eq)};
   g.k.EK=function(){this.oa();this.Uw=!1;if(!lX(this)){var a=IGa(this);a.timeout="1";this.Bh(new g.KD("onesie.request",!1,a))}};
   g.k.Bh=function(a){this.Vk.reject(a);this.kA.stop();this.Xe("ore");this.dispose()};
   g.k.xa=function(){var a;this.playerResponse="";null===(a=this.xhr)||void 0===a?void 0:a.abort();uGa(this.eq);this.rO.dispose();g.I.prototype.xa.call(this)};
   g.k.Dn=function(){var a=this.xhr;102400<a.Ol()&&!this.bL&&(this.Xe("or100k"),this.bL=!0);for(;a.Xf();){var b=a.Qh(),c=b.totalLength;this.oa();this.mj&&this.Ba("ombrss","len."+c);this.rO.feed(b)}};
   g.k.oa=function(){};g.w(g.zX,g.R);g.k=g.zX.prototype;g.k.xa=function(){this.oa();this.wN();this.yA.stop();window.clearInterval(this.rA);BAa(this.De);this.visibility.unsubscribe("visibilitystatechange",this.De);uFa(this.Xb);g.ue(this.Xb);EX(this);g.Tu(this.rq);this.Cg();this.Ee=null;g.ue(this.videoData);g.ue(this.rk);g.ve(this.lT);this.qk=null;g.R.prototype.xa.call(this)};
   g.k.Pw=function(a){this.Xb.Pw(a)};
   g.k.Qs=function(a,b,c,d){this.Xb.Qs(a,b,c);this.N("html5_log_media_perf_info")&&this.Ba("adloudness","ld."+d.toFixed(3)+";cpn."+a);this.videoData.Y&&this.Ba("adpb","cpn."+a)};
   g.k.ID=function(){var a;return null===(a=this.Xa)||void 0===a?void 0:a.ID()};
   g.k.JD=function(){var a;return null===(a=this.Xa)||void 0===a?void 0:a.JD()};
   g.k.getVideoData=function(){return this.videoData};
   g.k.V=function(){return this.X};
   g.k.Jp=function(){return this.visibility};
   g.k.jd=function(){return this.ra};
   g.k.YC=function(){if(this.videoData.isLoaded()){var a=this.rk;0<g.rE(a.i.experiments,"html5_player_min_build_cl")&&402169965<g.rE(a.i.experiments,"html5_player_min_build_cl")&&uEa(a,"oldplayer");$Ga(this)}else this.videoData.dd||this.videoData.Pj?this.xs&&g.lF(this.X)&&this.videoData.isLivePlayback||(this.videoData.dd?hpa(this.videoData):(a=this.Xb,a.qoe&&(a=a.qoe,vW(a,"protected"),a.i.videoData.J?a.IN():a.i.videoData.subscribe("dataloaded",a.IN,a)),cpa(this.videoData))):!this.videoData.Ea&&this.cR&&
   ZGa(this)};
   g.k.Fv=ba(3);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
   g.k.isBackground=function(){return this.visibility.isBackground()};
   g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.ea("internalAbandon"),this.bG(!0),uFa(this.Xb),g.ue(this.Xb),g.Tu(this.rq))};
   g.k.Iq=function(){tFa(this.Xb)};
   g.k.Kf=function(a,b,c,d,e){this.oa();var f,h;g.gc(QNa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+Xta());(b=h)||(b=g.DN[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,tD:f,ji:e||"",KF:c};CX(this,"dataloaderror");this.Ub(TJ(this.playerState,128,a));g.Tu(this.rq);EX(this);this.pm()};
   g.k.Md=function(a){this.Dj=this.Dj.filter(function(b){return a!==b});
   this.oa();this.mm.started&&DX(this)};
   g.k.Tl=function(){var a;(a=!!this.Dj.length)||(a=this.Ah.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
   g.k.Xl=function(){return this.Nc.Xl()};
   g.k.Ec=function(){return this.playerState.Ec()};
   g.k.getPlayerState=function(){return this.playerState};
   g.k.getPlayerType=function(){return this.playerType};
   g.k.getPreferredQuality=function(){if(this.Ee){var a=this.Ee;a=a.videoData.Sq.compose(a.videoData.YL);a=iB(a)}else a="auto";return a};
   g.k.Gv=ba(9);g.k.isGapless=function(){return!!this.ra&&this.ra.isView()};
   g.k.setMediaElement=function(a){this.oa();if(this.ra&&a.Me()===this.ra.Me()&&(a.isView()||this.ra.isView())){if(a.isView()||!this.ra.isView())g.my(this.Dt),this.ra=a,iHa(this),this.Nc.setMediaElement(this.ra)}else{this.ra&&this.Cg();if(!this.playerState.isError()){var b=VJ(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=UJ(b,1));a.isView()&&(b=VJ(b,64));this.Ub(b)}this.ra=a;this.ra.setLoop(this.loop);this.ra.setPlaybackRate(this.playbackRate);iHa(this);this.Nc.setMediaElement(this.ra)}};
   g.k.Cg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.oa();if(this.ra){var c=this.getCurrentTime();0<c&&(this.Nc.B=c);this.Nc.setMediaElement(null);MX(this);this.Xa&&(g.Jq(this.Xa.Z),NX(this,b));this.aq.stop();if(this.ra){!this.mm.started||this.playerState.isError()||g.U(this.playerState,2)||this.Ub(UJ(this.playerState,512));g.my(this.Dt);if(a||!this.ra.isView())this.ra.stopVideo(),RX(this);this.ra=null}}};
   g.k.playVideo=function(){return g.H(this,function b(){var c=this,d,e,f,h;return g.B(b,function(l){if(1==l.i){c.oa();if(!c.N("html5_clear_globalcache_killswitch")){var m=window.google_image_requests;m&&10<m.length&&(window.google_image_requests=m.slice(-10))}if(g.U(c.playerState,128))return l.return();if(c.rk.Bz())return c.ea("signatureexpired"),l.return();c.ra&&sFa(c.Xb);IX(c);g.U(c.playerState,64)&&c.Ub(UJ(c.playerState,8));return c.mm.isFinished()&&c.ra?c.Ee||!c.Fw?l.fb(2):g.A(l,c.Fw,2):l.return()}if(!c.videoData.B)return d=
   c.videoData.isLivePlayback&&!g.yE(c.X.B,!0)?"html5.unsupportedlive":wG(c.videoData)?"fmt.unplayable":"fmt.noneavailable",g.My(Error("selectableFormats")),c.Kf(d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(c.qf()&&c.videoData.B.i)return c.oa(),l.return(BX(c));if(c.videoData.isLivePlayback){e=c.getCurrentTime()<c.getMinSeekableTime()-15;f=g.KG(c.videoData)&&g.U(c.playerState,4);h=!c.N("html5_dompaused_unpause_killswitch")&&g.U(c.playerState,1024);h||!e&&!f||(f?(c.oa(),
   c.seekTo(Infinity,{Td:"videoplayer_unpauseLiveOnly"})):(c.oa(),c.seekTo(c.getMinSeekableTime(),{Td:"videoplayer_outOfWindow"})));!c.isAtLiveHead(void 0,!0)&&c.Xl()&&(c.oa(),c.seekTo(Infinity,{Td:"videoplayer_peggedToLive"}));if(m=g.U(c.playerState,256)&&c.videoData.qb)m=c.Nc,m=m.S&&!isFinite(m.i);if(m)return c.Ub(WJ(c.playerState,8,4)),l.return()}g.U(c.playerState,4)&&g.U(c.playerState,16)&&c.Ub(WJ(c.playerState,9,4));if(xX(c))return oHa(c),l.return();QX(c);g.sa(l)})})};
   g.k.qn=function(){if(!this.Ee)return[];var a=zEa(this.Zf,this.Ee,this.Xr());return this.Ee.i.qn(a)};
   g.k.Xr=function(){var a=this.Hd?this.Hd.Xr():vG(this.videoData)&&this.videoData.i&&qB(this.videoData.i)?this.videoData.Og?nG:iEa:nG;this.WF&&(a=a.compose(FNa));return a};
   g.k.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.i?iB(this.videoData.Sq):hB[eE()]};
   g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
   g.k.getAudioTrack=function(){if(this.N("html5_native_audio_track_switching")){var a=eHa(this);if(a)return a}return this.videoData.getAudioTrack()};
   g.k.Ep=function(){return this.mediaSource};
   g.k.Is=function(a){this.oa();this.Ls.set(a.initData,a);this.Hd&&(this.Hd.Is(a),this.N("html5_eme_loader_sync")||this.Ls.remove(a.initData))};
   g.k.cA=function(a){KX(this,a.reason,a.video.info,a.audio.info);this.Nc.cA(a)};
   g.k.Hs=function(a){this.ea("localmediachange",a)};
   g.k.xt=function(){var a;null===(a=this.Xa)||void 0===a?void 0:a.xt(this.X)};
   g.k.Bz=function(){return this.rk.Bz()};
   g.k.handleError=function(a){this.rk.handleError(a)};
   g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.U(this.playerState,64)||g.U(this.playerState,2))&&!a)if(g.U(this.playerState,8))this.Ub(WJ(this.playerState,4,8));else return;this.N("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.kx()||(g.U(this.playerState,128)||(a?this.Ub(UJ(this.playerState,256)):this.Ub(WJ(this.playerState,4,8))),this.ra&&this.ra.pause(),g.KG(this.videoData)&&this.Xa&&NX(this,!1))};
   g.k.stopVideo=function(){this.pauseVideo();this.Xa&&(NX(this,!1),FV(this.Xa))};
   g.k.pm=function(a){a=void 0===a?!1:a;var b;null===(b=this.ra)||void 0===b?void 0:b.stopVideo();RX(this);EX(this);g.U(this.playerState,128)||(a?this.Ub(VJ(VJ(UJ(this.playerState,4),8),16)):this.Ub(TJ(this.playerState)));this.videoData.videoId&&this.X.S.remove(this.videoData.videoId)};
   g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.oa("SeekTo "+a+", "+JSON.stringify(b));g.U(this.playerState,2)&&xX(this);if(this.Fd){var c=this.Fd;isFinite(a)&&a<c.Ca.hj()?c.isLiveNow=!1:c.isLiveNow=!0}this.Nc.seekTo(a,b)};
   g.k.getCurrentTime=function(){return this.Nc.getCurrentTime()};
   g.k.Ch=function(){return this.Nc.Ch()};
   g.k.hj=function(){return this.Nc.hj()};
   g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Uc())};
   g.k.Yr=function(){var a=NaN;this.ra&&(a=this.ra.Yr());return 0<=a?a:this.getCurrentTime()};
   g.k.getIngestionTime=function(){var a;if(null===(a=this.videoData.i)||void 0===a?0:a.getIngestionTime)return this.videoData.i.getIngestionTime(this.getCurrentTime()-this.Uc());if((!this.N("html5_disable_limit_ingestion_tvos")||Xt())&&this.ra){var b=this.ra.Jx();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+this.getCurrentTime()}return NaN};
   g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Uc():this.hd()?this.hd():0};
   g.k.iz=function(){var a=new yFa;if(this.Xa){var b=this.X.schedule;a.u=b.Z;a.C=b.Y;a.bandwidthEstimate=IE(b);a.i={d:GE(b).toFixed(2),st:(1E9*(b.i.qg()||0)).toFixed(2),bw:b.B.qg().toFixed(0),abw:b.J.qg().toFixed(0),v50:EE(b.u,.5).toFixed(2),v92:EE(b.u,.92).toFixed(2),v96:EE(b.u,.96).toFixed(2),v98:EE(b.u,.98).toFixed(2)};b=this.Xa;if(b.mediaSource&&!b.mediaSource.rf()&&(a.hp=cV(b.videoTrack,b.currentTime),a.B=cV(b.audioTrack,b.currentTime),b.policy.eb)){var c=bV(b.videoTrack),d=bV(b.audioTrack),e=CD(b.mediaSource.u.lf(),
   "_",5),f=CD(b.mediaSource.i.lf(),"_",5);Object.assign(a.i,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=fU(b.J);b.oa(g.JD(a.i))}else this.ra&&(a.hp=QJ(this.ra));a.D=this.isAtLiveHead()&&this.Ec()?wX(this):NaN;return a};
   g.k.Cp=function(){return this.ra?g.KG(this.videoData)?1:LG(this.videoData)?this.isAtLiveHead()||this.Xl()?1:this.Nc.Cp():this.ra.Cp():0};
   g.k.Ib=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Xb.Ib());this.ra&&(Object.assign(b,this.ra.Ib()),Object.assign(b,this.Lv()));this.Xa&&Object.assign(b,this.Xa.Ib());this.Hd&&(b.drm=JSON.stringify(this.Hd.Ib()));b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.Tl()&&(b.prerolls=this.Dj.join(","));this.videoData.Nj&&(b.ismb=this.videoData.Nj);"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.Yx.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.i&&cE(this.videoData.i)&&(b.segduration=cE(this.videoData.i)),a=this.Nc,b.lat=a.J?eBa(a.J.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.ye.toFixed(3);if(a=g.JX(this))b.optimal_format=a.video.qualityLabel;b.user_qual=
   eE();b.release_version="youtube.player.web_20211010_0_RC0"}b.debug_videoId=this.videoData.videoId;return b};
   g.k.addCueRange=function(a){this.Fu([a])};
   g.k.removeCueRange=function(a){this.Ah.If([a])};
   g.k.Fu=function(a,b){this.Ah.Ad(a,b)};
   g.k.GA=function(a){this.Ah.If(a)};
   g.k.Ll=function(){return this.Ah.Ll()||[]};
   g.k.qf=function(){return this.visibility.qf()};
   g.k.zo=function(){this.ra&&this.ra.zo()};
   g.k.kW=function(){CX(this)};
   g.k.togglePictureInPicture=function(){this.ra&&this.ra.togglePictureInPicture()};
   g.k.wF=function(a){this.bB.stop();var b=a.target.Df();if(this.ra&&this.ra.Df()&&this.ra.Df()===b){rHa(this,a.type);switch(a.type){case "error":var c=RJ(this.ra)||"";if("capability.changed"===c){BX(this);return}if(0<this.ra.aj()&&lW(this.rk,c,{msg:this.ra.qe()}))return;if(this.isBackground()&&4===this.ra.aj()){this.pm();FX(this,"unplayable");return}break;case "durationchange":c=this.ra.getDuration();isFinite(c)&&(!this.mediaSource||0<c)&&1!==c&&this.Ej(c);break;case "ratechange":this.Xa&&this.Xa.setPlaybackRate(this.ra.getPlaybackRate());
   c=this.Ah;c.started=!0;c.bl();this.Xb.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":tHa(this);this.ea("onLoadedMetadata");lHa(this);break;case "loadstart":lHa(this);break;case "progress":case "suspend":this.Qb();this.ea("onLoadProgress",this,this.Cp());break;case "playing":if(this.N("html5_force_manifestless_seeking_state")&&CG(this.videoData)&&this.Xa&&this.Xa.C.i){this.Ba("mflForceSeek","reason.play");return}this.Pb.tick("plev");kHa(this);WA("plev",void 0,"video_to_ad");
   this.YF&&(this.YF=!1,this.isAtLiveHead()||(this.oa(),this.seekTo(Infinity,{Td:"videoplayer_onPlaying"})));break;case "timeupdate":kHa(this);c=this.ra&&!this.ra.getCurrentTime();var d=this.ra&&0===this.ra.rh();if(c&&(!this.Yz||d))return;this.Yz=this.Yz||!!this.ra.getCurrentTime();PX(this);this.Qb();if(!this.ra||this.ra.Df()!==b)return;this.ea("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.ra.Gp().length&&0===this.ra.Uf().length&&0<this.ra.getCurrentTime()&&5>this.ra.getCurrentTime()&&
   this.Xa)return;break;case "resize":tHa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.aJ&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.gj){FX(this,"safari_autoplay_disabled");return}}if(this.ra&&this.ra.Df()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.Lu;var e=this.ra,f=this.X.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();
   if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Gk()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!MW(c,h);if("pause"===a.type&&e.Gk()||l&&h)0<e.bz()&&e.Df()&&(d=14);else switch(a.type){case "error":RJ(e)&&(d|=128);break;case "pause":g.U(b,256)?(d^=256)||(d=64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(d=4,g.U(b,1)&&g.U(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1029;f&&f.ob("html5_playing_clears_unstarted_killswitch")||(d&=-65);
   MW(c,e.getCurrentTime())&&(d&=-2);g.U(b,1)&&NW(c,e.getCurrentTime(),(0,g.Q)(),QJ(e))&&(d|=1);break;case "seeking":d|=16;g.U(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.U(b,2)||(d|=1);NW(c,e.getCurrentTime(),(0,g.Q)(),QJ(e));break;case "timeupdate":f=g.U(b,16),l=g.U(b,4),(g.U(b,8)||f)&&!l&&MW(c,e.getCurrentTime())&&(d=8),NW(c,e.getCurrentTime(),(0,g.Q)(),QJ(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=RJ(d))?(f="GENERIC_WITHOUT_LINK",l=d.Ib(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.qe())&&
   (f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.DN[f]||"",tD:f,KF:g.JD(l)}):d=null);b=TJ(b,c,d)}!g.U(this.playerState,1)&&g.U(b,1)&&SX(this,"evt"+a.type);this.Ub(b)}}};
   g.k.YV=function(){this.Ba("misstimeupdate","");jHa(this)&&!g.U(this.playerState,2)&&DS(this,!0,!1)};
   g.k.zT=function(a){a="available"===a.i.availability;a!==this.Uv&&(this.Uv=a,this.ea("airplayavailabilitychange"))};
   g.k.AT=function(){var a=(0,g.Q)(),b=this.ra.qf();this.Ba("airplay",b?"on":"off");if(!this.N("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.Dz)||!(2E3>a-this.Dz))this.Dz=a,b!==this.qf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.De()),this.Ba("airplay","rbld_"+b),kW(this)),this.ea("airplayactivechange")};
   g.k.Mv=function(a){if(this.Xa){var b=this.Xa,c=b.B,d=b.currentTime;c.Ba("sdai","adfetchdone_"+a);a&&!isNaN(c.C)&&EBa(c,d,c.C,c.B);c.i=4;g.Jq(b.Z)}};
   g.k.Qb=function(a){var b=this;a=void 0===a?!1:a;if(this.ra&&this.videoData){WFa(this.Nc,this.Ec());var c=this.getCurrentTime();this.Xa&&(g.U(this.playerState,4)&&g.KG(this.videoData)||zDa(this.Xa,c));5<c&&(this.Nc.B=c);var d=g.Su();d?g.Tu(this.rq):g.wt(this.rq);var e=this.ra.al();if((g.$J(this.playerState)||!e||bH(this.videoData))&&!g.U(this.playerState,128)){var f=function(){if(b.ra&&!g.U(b.playerState,128)){b.videoData.Y&&g.rE(b.X.experiments,"html5_log_rebuffer_events")&&rHa(b,"pfx");var h=b.getCurrentTime(),
   l=QJ(b.ra),m=g.U(b.playerState,8),n=MW(b.Lu,h),p=NW(b.Lu,h,(0,g.Q)(),l);m&&n?b.Ub(VJ(b.playerState,1)):m&&p?(m=b.getDuration(),n=b.videoData.isLivePlayback,(b.N("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-h)?(b.Ba("setended","ct."+h+";bh."+l+";dur."+m+";live."+ +n),n&&b.N("html5_set_ended_in_pfx_live_cfl")||(b.ra.Dp()?(b.oa(),b.seekTo(0,{Td:"videoplayer_loop"})):DS(b))):(g.$J(b.playerState)||SX(b,"progress_fix"),b.Ub(UJ(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.Gz)/1E3,n=b.getDuration(),
   h>n-1&&b.Ba("misspg","t:"+h.toFixed(2)+";d:"+n.toFixed(2)+";r:"+m.toFixed(2)+";bh:"+l.toFixed(2))),g.U(b.playerState,4)&&g.$J(b.playerState)&&5<QJ(b.ra)&&b.Ub(VJ(b.playerState,1)));b.Qb()}};
   0===this.ra.Gp().length?this.rq=d?Nu(f,1,100):g.ut(f,100):this.rq=d?Nu(f,1,500):g.ut(f,500)}this.videoData.pu=c;!a&&this.Ec()&&nHa(this);IEa(this.Zf,this.Ee,this.jd(),this.isBackground())&&LV(this);JEa(this.Zf,this.videoData.u)&&(this.Xb.Sd("qoe.restart","droprate."+this.Zf.K),this.X.B.K=!1,kW(this));this.ea("progresssync",this,a);!this.N("html5_progress_event_linear_paused_killswitch")&&e&&bH(this.videoData)&&this.ea("onVideoProgress",this,this.getCurrentTime())}};
   g.k.UR=function(){this.Kf("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
   g.k.Cv=function(){return this.Xb.Cv()};
   g.k.FD=function(){return this.Xa?this.Xa.FD():IE(this.X.schedule,!0)};
   g.k.gR=function(){g.$J(this.playerState)&&GEa(this.Zf,this.Ee)&&LV(this)};
   g.k.Ub=function(a){if(!g.XJ(this.playerState,a)){this.oa();var b=new g.dI(a,this.playerState);this.playerState=a;sHa(this);var c=!this.tA.length;this.tA.push(b);var d=this.ra&&this.ra.Xt();g.fI(b,1)&&!g.U(b.Sn,16)&&!d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.Xa&&(d=this.Xa,d.oa(),d.Aa=!0,this.ra&&5<=QJ(this.ra)&&((d=g.rE(this.X.experiments,"html5_non_network_rebuffer_duration_ms"))?this.XL.start(d):GEa(this.Zf,this.Ee)&&LV(this)));(d=g.rE(this.X.experiments,"html5_ad_timeout_ms"))&&
   this.videoData.isAd()&&g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.BC.start(d):this.BC.stop();(0>eI(b,8)||g.fI(b,1024))&&this.aq.stop();!g.fI(b,8)||this.videoData.qb||g.U(b.state,1024)||this.aq.start();g.U(b.state,8)&&0>eI(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&LG(this.videoData)&&(this.Ej(this.getCurrentTime()),this.Qb(!0));g.fI(b,2)&&this.bG(!0);g.fI(b,128)&&this.pm();this.videoData.i&&this.videoData.isLivePlayback&&!this.wO&&(0>eI(b,8)?(a=this.videoData.i,a.C&&a.C.stop()):
   g.fI(b,8)&&this.videoData.i.resume());this.Nc.Mc(b);this.Xb.Mc(b);if(c&&!this.isDisposed())try{for(var e=g.r(this.tA),f=e.next();!f.done;f=e.next()){var h=f.value;this.Ah.Mc(h);this.ea("statechange",h)}}finally{this.tA.length=0}}};
   g.k.xw=function(){this.videoData.isLivePlayback||this.ea("connectionissue")};
   g.k.tF=function(){this.Pb.tick("qoes")};
   g.k.bA=function(a,b,c,d){a:{var e=this.rk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.Hd&&1<this.Hd.u.keys.length&&96>e.D)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.N("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.J&&(e.J++,RX(e.Ca),1<e.videoData.Zg.length&&(e.oa(),e.videoData.J=e.videoData.Zg[1]),lW(e,a,{detail:c})))break a;if(b)if(e.videoData.u&&e.videoData.u.video.isHdr())wEa(e,a);else{if(e.Ca.Kf(a,d,c),e.videoData.N("html5_exile_on_drm_fatal")&&
   pEa(e,{detail:c}))break a}else e.Sd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Ba("retrydrm","s"),e.D++,qHa(e.Ca))}};
   g.k.wU=function(){var a=this,b=g.rE(this.X.experiments,"html5_license_constraint_delay"),c=hu();b&&c?(b=new g.M(function(){GX(a);CX(a)},b),g.J(this,b),b.start()):(GX(this),CX(this))};
   g.k.zw=function(a){this.ea("heartbeatparams",a)};
   g.k.Wn=function(a){this.Ba("keystatuses",YDa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=ZDa(b,c);d=VV(a)?WV(a,d):a.D.includes(d)}else{a:{b=ZDa(b,c);for(d in a.i)if("output-restricted"===a.i[d].status){var e=a.i[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.Y&&d;c&&!b?wEa(this.rk):d||WV(a,"AUDIO")&&WV(a,"SD")||(this.oa(),this.WF?(this.oa(),this.ea("drmoutputrestricted")):
   (this.WF=!0,this.Ba("retrydrm","o"),HX(this),qHa(this)))};
   g.k.zU=function(){var a,b;if(!this.videoData.qb&&this.ra&&!this.isBackground()){var c="0";0<this.ra.rh()&&5<=QJ(this.ra)&&this.videoData.B&&this.videoData.B.i&&(this.Ub(UJ(this.playerState,1)),SX(this,"load_soft_timeout"),this.ea("playbackstalledatstart"),c="1");sHa(this);if(this.N("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.Tl()&&(c.prerolls=this.Dj.join(",")),this.Xa&&Object.assign(c,this.Xa.Ib()),this.ra&&Object.assign(c,this.ra.Ib());else{var d=this.videoData.B;c={restartmsg:c,
   mfmt:vG(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Bd&&!this.Hd?"1":"0",mfmtinfo:this.videoData.u?"0":"1",prerolls:this.Tl()?this.Dj.join(","):"0"};if(this.Hd){d=c;var e=this.Hd;if(0>=e.u.size){var f="ns;";e.Z||(f+="nr;");e=f+="ql."+e.B.length}else e=YDa(e.u.values().next().value);d.drmp=e}Object.assign(c,(null===(a=this.Xa)||void 0===a?void 0:a.Ib())||{});Object.assign(c,(null===(b=this.ra)||void 0===b?void 0:b.Ib())||{})}this.Xb.Sd("qoe.start15s",g.JD(c));
   this.ea("loadsofttimeout")}};
   g.k.Ej=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,CX(this))};
   g.k.bG=function(a){var b=this;a=void 0===a?!1:a;if(!this.Zx){VA("att_s","player_att")||WA("att_s",void 0,"player_att");var c=new g.lua(this.videoData);if("c1a"in c.i&&!g.sM.Zd()&&(WA("att_wb",void 0,"player_att"),2===this.LC&&.01>Math.random()&&g.My(Error("Botguard not available after 2 attempts")),!a&&5>this.LC)){g.Jq(this.MC);this.LC++;return}if("c1b"in c.i){var d=wFa(this.Xb);d&&oua(c).then(function(e){e&&!b.Zx&&d?(WA("att_f",void 0,"player_att"),d(e),b.Zx=!0):WA("att_e",void 0,"player_att")},
   function(){WA("att_e",void 0,"player_att")})}else(a=g.mua(c))?(WA("att_f",void 0,"player_att"),vFa(this.Xb,a),this.Zx=!0):WA("att_e",void 0,"player_att")}};
   g.k.hd=function(a){return this.Nc.hd(void 0===a?!1:a)};
   g.k.getMinSeekableTime=function(){return this.Nc.getMinSeekableTime()};
   g.k.Uc=function(){return this.Nc?this.Nc.Uc():0};
   g.k.getStreamTimeOffset=function(){return this.Nc?this.Nc.getStreamTimeOffset():0};
   g.k.setPlaybackRate=function(a){var b=this.videoData.B&&this.videoData.B.videoInfos&&32<this.videoData.B.videoInfos[0].video.fps&&g.lF(this.X);this.playbackRate!==a&&b&&(this.Zf.setPlaybackRate(a),HX(this));this.playbackRate=a;this.ra&&this.ra.setPlaybackRate(a)};
   g.k.getPlaybackRate=function(){return this.playbackRate};
   g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.ra)){var b=bI(this);b&&0<b.videoHeight&&(a=iD(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.At=function(){this.Xb.At()};
   g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Xb;c.i?(c=EW(c.i,"engage"),c.Z=a,c.send(b)):b&&b()};
   g.k.Eh=function(a){return this.Xb.Eh(a)};
   g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.GK||(void 0===b?0:b))?this.Nc.isAtLiveHead(a):!1};
   g.k.vn=function(){var a=this.hd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Nc,c=!(c.u&&c.u.B));return c||this.Xl()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
   g.k.xj=ba(13);g.k.Vn=ba(32);g.k.Un=ba(35);g.k.Lv=function(){return this.ra?this.ra.Kx():{}};
   g.k.setLoop=function(a){this.loop=a;this.ra&&this.ra.setLoop(a)};
   g.k.Dp=function(){return this.ra?this.ra.Dp():this.loop};
   g.k.vF=function(a){var b=this.N("html5_unrewrite_timestamps");this.Ba("timestamp","enabled."+b+";t."+a.toString());this.Nc.vF(a)};
   g.k.Xe=function(a){this.Pb.tick(a)};
   g.k.Ba=function(a,b,c){this.Xb.Ba(a,b,void 0===c?!1:c)};
   g.k.Sd=function(a){this.Xb.Sd(a.errorCode,g.JD(a.details))};
   g.k.Qw=function(a,b,c){this.Xb.Qw(a,b,c)};
   g.k.getPlayerSize=function(){return this.jx.getPlayerSize()};
   g.k.rg=function(){return this.jx.rg()};
   g.k.oa=function(){};
   g.k.N=function(a){return this.X.N(a)};
   g.k.KC=function(){if(zG(this.videoData,"html5_set_debugging_opt_in")){var a=g.Iv.getInstance();if(!g.Kv(0,183)){var b="f"+(Math.floor(183/31)+1),c=Jv(b)||0;c|=268435456;0==c?delete Hv[b]:(c=c.toString(16),Hv[b]=c.toString());a.save()}}};
   g.k.wN=function(){if(g.YJ(this.playerState)){var a=yX.ZJ();0!==Object.keys(a).length&&this.Xb.Ba("profile",a)}this.yA.start()};
   g.k.kx=function(){var a,b=this.getCurrentTime();return(null===(a=this.Xa)||void 0===a?0:a.kx(b,100))?(eGa(this.Nc,b+100+5),!0):!1};g.w(g.WX,g.I);g.WX.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Na(a),e=s3[d];if(e){try{e.dispose()}catch(h){g.Ly(h)}s3[d]=null}var f=new g.WX(a,b,c);g.we(f,function(){s3[d]=null;f.sO&&f.sO()});
   return s3[d]=f}catch(h){throw g.Ly(h),h.stack;}};
   g.k=g.WX.prototype;g.k.Jp=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.Ml=function(){this.pE||(this.pE=g.nM(pK(),Uta()));return this.pE};
   g.k.isVideoInfoVisible=function(){return!(!this.Ti||!this.Ti.Ab)};
   g.k.Cg=function(){if(this.ra){this.Ht&&(this.events.jc(this.Ht),this.Ht=null);g.my(this.Nn);this.tb&&this.tb.Cg(!0);this.template.Cg();if(!this.N("html5_unset_src_on_remove_killswitch"))try{this.ra.HA()}catch(a){}this.ra=null}};
   g.k.Fj=function(a){if(this.N("html5_skip_setPresenting"))1===a&&this.tb&&cY(this,this.tb);else{var b=g.PM(this,a);if(!b||b.isDisposed())b=new oG(this.X),b=this.Fl(a,b);aY(this,b)}};
   g.k.Kc=function(){return this.tb};
   g.k.po=function(a){this.N("html5_skip_setPresenting")?this.tb&&cY(this,this.tb):(a=g.PM(this,a))&&cY(this,a)};
   g.k.Fl=function(a,b,c){var d=this,e=this.Pb;2===a&&(e=new RM(this.X));return new g.zX(this.X,a,e,this.template,function(f,h){for(var l=[],m=1;m<arguments.length;++m)l[m-1]=arguments[m];return d.nm.ea.apply(d.nm,[f].concat(g.v(l)))},function(){return d.Ta.getVisibilityState()},this.visibility,this,b,c)};
   g.k.setIsExternalPlaylist=function(a){this.pg=ME(!1,a)};
   g.k.FT=function(){XX(this)||(this.oa(),this.Tk(5))};
   g.k.VU=function(a){XX(this)||(this.oa(),$Ha(this),g.YJ(a.getPlayerState())&&this.playVideo())};
   g.k.canPlayType=function(a){return wD(a)};
   g.k.V=function(){return this.X};
   g.k.getVideoData=function(){return this.tb.getVideoData()};
   g.k.Kv=ba(5);g.k.getVideoLoadedFraction=function(a){a=g.PM(this,a);return a?g.ZG(a.getVideoData())?1:(a=a.jd())?a.Cp():0:0};
   g.k.bb=function(){return this.template};
   g.k.wb=function(){return this.Wc};
   g.k.Ap=function(){return this.Pb};
   g.k.Zs=function(a){var b=g.PM(this,1);b&&DS(b,a)};
   g.k.Dh=function(){var a=this.Wc.UD();a.fs=this.Ta.isFullscreen();a.volume=Math.round(this.Ta.getVolume());a.muted=this.Ta.isMuted()?1:0;a.mos=a.muted;if(this.X.N("html5_enable_embedded_player_visibility_signals")&&g.XE(this.X)){if(this.YG){var b=this.YG;b=null==b.i?null:Math.round(100*b.i)/100;null!=b&&(a.inview=b)}b=this.template.getPlayerSize();if(0<b.height&&0<b.width){b=[Math.round(b.width),Math.round(b.height)];var c=g.uF();1<c&&b.push(c);a.size=b.join(":")}}this.tb===this.sb&&this.Sb&&(a.clipid=
   this.Sb.postId);return a};
   g.k.Ci=function(a){1===a&&(this.Pb.tick("vr"),this.Fo||(this.Fo=xx(YA,this.jM,this)),mHa(this.tb),Bua(this.Pb,this.tb.getVideoData(),ZHa(this)));var b=this.X;(DF(b)&&b.u||g.eF(b))&&(this.Qd()||this.Ta.Oa("onAdStateChange",a))};
   g.k.setLoopVideo=function(a){this.tb===this.sb&&this.tb.Dp()!==a&&(this.tb.setLoop(a),this.Ta.ea("loopchange",a))};
   g.k.getLoopVideo=function(){return this.tb.Dp()};
   g.k.setLoopRange=function(a){var b=!1;!!this.Sb!==!!a?b=!0:this.Sb&&a&&(b=this.Sb.startTimeMs!==a.startTimeMs||this.Sb.endTimeMs!==a.endTimeMs||this.Sb.postId!==a.postId);b&&(this.sb.Ah.We("applooprange"),a?(b=new g.lA(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(b)):TX(this).clipConfig=void 0,this.Sb=a,this.Ta.Oa("onLoopRangeChange",a||void 0),this.tb===this.sb&&(this.OA(),this.tb.Iq()))};
   g.k.getLoopRange=function(){return this.Sb};
   g.k.OA=function(){this.Sb&&this.tb===this.sb&&(NHa(this,this.sb.getCurrentTime())||OHa(this))};
   g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=CHa(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.X.i&&g.Kz("yt-player-playback-rate",a),this.Ta.Oa("onPlaybackRateChange",a)))};
   g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return JM(this.Wc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.PM(this):g.PM(this,a);if(!a)return 0;if(b){if(c&&this.Pc&&(b=this.Pc.Za/1E3,0!==b))return b;b=eY(this,a);return nY(this,b.getCurrentTime(),b)}c&&this.Pc?(b=a.getCurrentTime(),b=(c=IAa(this.Pc,1E3*b))?b-c.start/1E3:b):b=a.getCurrentTime();return b};
   g.k.Yr=function(){var a=g.PM(this,void 0);if(!a)return 0;a=eY(this,a);return nY(this,a.Yr(),a)};
   g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c,d,e=this.getVideoData(),f=2===a&&e.enableServerStitchedDai;a=f?g.PM(this):g.PM(this,a);if(!a)return 0;if(this.N("enable_linear_player_handling")&&e.hasProgressBarBoundaries()){var h=Number(null===(c=e.progressBarStartPosition)||void 0===c?void 0:c.utcTimeMillis);e=Number(null===(d=e.progressBarEndPosition)||void 0===d?void 0:d.utcTimeMillis);if(!isNaN(h)&&!isNaN(e))return(e-h)/1E3}if(b)return b=dY(this,a),nY(this,b.getDuration(),b);f&&this.Pc?
   (b=a.getCurrentTime(),b=(b=NS(this.Pc,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b};
   g.k.getMinSeekableTime=function(a){a=g.PM(this,a);if(!a)return 0;a=dY(this,a);return nY(this,a.getMinSeekableTime(),a)};
   g.k.getIngestionTime=function(a){var b=g.PM(this,a);return b?this.Qd(b)?(b=dY(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
   g.k.lD=function(){this.template.lD();var a=this.I;a.element=this.template.element;var b=a.element,c;for(c in a.u)a.u.hasOwnProperty(c)&&(b[c]=a.u[c]);(a=jy(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.tV)};
   g.k.getDebugText=function(a){var b=this.sb.Ib(a);if(this.tb&&this.tb!==this.sb){for(var c=this.tb.Ib(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=rg("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.vg("video-ads");f?(eIa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.vg("videoAdUiSkipContainer"),l=g.vg("ytp-ad-skip-button-container"),m=h||l;m?(eIa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
   videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.ra&&(b["0sz"]=""+(0===+eg(this.ra.dr())),b.op=this.ra.getStyle("opacity"),c=this.ra.yn().y+this.ra.dr().height,b.yof=""+(0>=+c),b.dis=this.ra.getStyle("display"));(a=a?(0,g.wW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
   g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.yb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
   g.k.getPresentingPlayerType=function(a){var b;return 1===this.appState?1:XX(this)?3:a&&(null===(b=this.Pc)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.PM(this).getPlayerType()};
   g.k.yb=function(a){return 3===this.getPresentingPlayerType()?JM(this.Wc).ud:g.PM(this,a).getPlayerState()};
   g.k.getAppState=function(){return this.appState};
   g.k.wF=function(a){var b=this;switch(a.type){case "loadedmetadata":VA("fvb",this.Pb.timerName)||this.Pb.tick("fvb");WA("fvb",void 0,"video_to_ad");this.NA.start();g.Qb(this.Vs,function(c){XHa(b,c.id,c.MX,c.LX,!1)});
   this.Vs=[];break;case "loadstart":VA("gv",this.Pb.timerName)||this.Pb.tick("gv");WA("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!VA("l2s",this.Pb.timerName)&&2<=GD(a.target.Uf())&&this.Pb.tick("l2s");break;case "playing":g.BF&&this.NA.start(),QHa(this)&&(this.tb.Ba("hidden","1",!0),this.getVideoData().Db||(this.N("html5_new_elem_on_hidden")?(this.getVideoData().Db=1,this.wM(null),this.tb.playVideo()):$X(this,"hidden",!0)))}};
   g.k.onLoadProgress=function(a,b){this.Ta.Oa("onLoadProgress",b)};
   g.k.PV=function(){this.Ta.ea("playbackstalledatstart")};
   g.k.onVideoProgress=function(a,b){a=eY(this,a);b=nY(this,a.getCurrentTime(),a);this.Ta.Oa("onVideoProgress",b)};
   g.k.onDompaused=function(){this.Ta.Oa("onDompaused")};
   g.k.onAutoplayBlocked=function(){this.Ta.Oa("onAutoplayBlocked")};
   g.k.gV=function(){this.Ta.ea("progresssync")};
   g.k.HT=function(a){if(1===this.getPresentingPlayerType()){g.fI(a,1)&&!g.U(a.state,64)&&TX(this).isLivePlayback&&this.sb.isAtLiveHead()&&1<this.Ta.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.fI(a,2)){if(this.Sb&&this.Sb.endTimeMs>=1E3*(this.getDuration()-1)){OHa(this);return}JHa(this)}if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.Oa("onError",XNa[b.errorCode]||5);this.Ta.Oa("onDetailedError",{errorCode:b.errorCode,
   errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.tD});6048E5<(0,g.Q)()-this.X.jb&&this.Ta.Oa("onReloadRequired")}b={};if(a.state.Ec()&&!g.$J(a.state)&&!VA("pbresume","ad_to_video")&&VA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);UA(b,"ad_to_video");TA("pbresume",void 0,"ad_to_video")}this.Ta.ea("applicationplayerstatechange",a)}};
   g.k.TM=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("presentingplayerstatechange",a)};
   g.k.Mh=function(a){bY(this,aK(a.state));g.U(a.state,1024)&&this.Ta.isMutedByMutedAutoplay()&&(BM(this,{muted:!1,volume:this.gg.volume},!1),lY(this,!1))};
   g.k.XU=function(a){a.state.Ec()&&!g.$J(a.state)&&(ava(this.Wc),g.my(this.QE))};
   g.k.DT=function(a,b,c){"newdata"===a&&UX(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId})};
   g.k.uw=function(){this.Ta.Oa("onPlaybackAudioChange",this.Ta.getAudioTrack().Ac.name)};
   g.k.Cw=function(a){var b=this.tb.getVideoData();a===b&&this.Ta.Oa("onPlaybackQualityChange",a.u.video.quality)};
   g.k.onVideoDataChange=function(a,b,c){this.oa("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.sb&&(this.X.Ge=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Pc?this.Pc=new g.IS(this.Ta,this.X,this.sb):!this.getVideoData().enableServerStitchedDai&&this.Pc&&(this.Pc=null);if("newdata"===a)this.oa(),kN(this.Wc,2),this.Ta.ea("videoplayerreset",b);else{if(!this.ra)return;if("dataloaded"===a)if(this.tb===this.sb)if(jF(c.C,c.hI),this.oa(),this.sb.getPlayerState().isError())this.oa();
   else{var d=XX(this);TX(this).isLoaded();d&&this.Tk(6);LHa(this);d||(d=lN(this.Wc))&&!d.created&&iN(this.Wc)&&d.create()}else LHa(this);if(1===b.getPlayerType()&&(this.X.Y&&dIa(this),this.getVideoData().isLivePlayback&&!this.X.vl&&this.Le("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded())){if(c.dh||c.CB||c.Mq||c.S.focEnabled||c.S.rmktEnabled||this.getVideoData().vl)d=this.getVideoData(),qY(this,"part2viewed",1,0x8000000000000),qY(this,"engagedview",Math.max(1,1E3*d.Mb),0x8000000000000),d.isLivePlayback||
   (d=1E3*d.lengthSeconds,qY(this,"videoplaytime25",.25*d,d),qY(this,"videoplaytime50",.5*d,d),qY(this,"videoplaytime75",.75*d,d),qY(this,"videoplaytime100",d,0x8000000000000),qY(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null===(e=this.getVideoData().progressBarEndPosition)||void 0===e?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.zA.progressEndBoundary,(null===d||void 0===d?void 0:d.start)!==
   e&&(d&&this.GA([d]),e=new g.lA(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.sb.addCueRange(e),this.zA.progressEndBoundary=e))}}this.Ta.ea("videodatachange",a,c,b.getPlayerType())}this.Ta.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.OA();if(b=c.Xw){if(a=this.In,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=hK();var f=void 0===f?{}:f;Object.values(qNa).includes(c)||(g.My(new g.dw("createClientScreen() called with a non-page VE",
   c)),c=83769);f.isHistoryNavigation||b.i.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];f.LJ?mra(b,c,f):lra(b,c,f);oBa(a)}}else oBa(this.In)};
   g.k.Cr=function(){fY(this,null);this.Ta.Oa("onPlaylistUpdate")};
   g.k.bM=function(a){var b=a.getId(),c=TX(this);"part2viewed"===b?(c.qI&&g.av(c.qI),c.CB&&wY(this,c.CB),c.Mq&&xY(this,c.Mq)):"conversionview"===b?this.sb.At():"engagedview"===b&&g.av(c.dh);if(c.sI){var d=a.getId();d=Qs(c.sI,{label:d});g.av(d)}switch(b){case "videoplaytime25":c.nI&&wY(this,c.nI);c.EB&&xY(this,c.EB);c.zI&&g.av(c.zI);break;case "videoplaytime50":c.oI&&wY(this,c.oI);c.FB&&xY(this,c.FB);c.BI&&g.av(c.BI);break;case "videoplaytime75":c.pI&&wY(this,c.pI);c.HB&&xY(this,c.HB);c.DI&&g.av(c.DI);
   break;case "videoplaytime100":c.jI&&wY(this,c.jI),c.DB&&xY(this,c.DB),c.uI&&g.av(c.uI)}(b=this.getVideoData().vl)&&VHa(b,a.getId())&&VHa(b,a.getId()+"gaia");this.sb.removeCueRange(a)};
   g.k.fV=function(a){delete this.zA[a.getId()];this.sb.removeCueRange(a);var b;a:{a=this.getVideoData();var c,d,e,f,h,l,m,n,p,q,t,u,x,y=(null===(h=null===(f=null===(e=null===(d=null===(c=a.watchNextResponse)||void 0===c?void 0:c.contents)||void 0===d?void 0:d.singleColumnWatchNextResults)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.autoplay)||void 0===h?void 0:h.sets)||(null===(q=null===(p=null===(n=null===(m=null===(l=a.watchNextResponse)||void 0===l?void 0:l.contents)||void 0===m?void 0:m.twoColumnWatchNextResults)||
   void 0===n?void 0:n.autoplay)||void 0===p?void 0:p.autoplay)||void 0===q?void 0:q.sets);if(y)for(c=g.r(y),d=c.next();!d.done;d=c.next())if(d=d.value,d=d.autoplayVideo||(null===(t=null===(b=d.autoplayVideoRenderer)||void 0===b?void 0:b.autoplayEndpointRenderer)||void 0===t?void 0:t.endpoint),(null===(u=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===u?void 0:u.videoId)===a.videoId&&(null===(x=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===x?0:x.continuePlayback)){b=d;break a}b=null}t=
   null===b||void 0===b?void 0:b.watchEndpoint;this.N("enable_linear_player_handling")&&t&&this.Ta.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null===b||void 0===b?void 0:b.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})};
   g.k.Tk=function(a){a!==this.appState&&(this.oa(),2===a&&1===this.getPresentingPlayerType()&&(bY(this,-1),bY(this,5)),this.appState=a,this.Ta.ea("appstatechange",a))};
   g.k.Le=function(a,b,c,d){this.sb.Kf(a,b,c,d)};
   g.k.Uk=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.PM(this,a);if(!c)return!1;a=dY(this,c);c=eY(this,c);return a!==c?a.isAtLiveHead(nY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
   g.k.vn=function(){var a=g.PM(this,void 0);return a?dY(this,a).vn():0};
   g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.PM(this,d))2===this.appState&&jY(this),this.Qd(d)?this.Pc?this.Pc.seekTo(a,b,c):this.Fd.seekTo(a,b,c):d.seekTo(a,{pO:!b,qO:c,Td:"application"})};
   g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
   g.k.fA=function(){this.Ta.Oa("SEEK_COMPLETE")};
   g.k.FV=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.U(a.getPlayerState(),512)||jY(this):this.Ta.Oa("SEEK_TO",b)};
   g.k.onAirPlayActiveChange=function(){this.Ta.ea("airplayactivechange");this.X.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayActiveChange",this.Ta.qf())};
   g.k.onAirPlayAvailabilityChange=function(){this.Ta.ea("airplayavailabilitychange");this.X.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayAvailabilityChange",this.Ta.Uv())};
   g.k.showAirplayPicker=function(){var a;null===(a=this.tb)||void 0===a?void 0:a.zo()};
   g.k.cF=function(){this.Ta.ea("beginseeking")};
   g.k.iF=function(){this.Ta.ea("endseeking")};
   g.k.getStoryboardFormat=function(a){return(a=g.PM(this,a))?dY(this,a).getVideoData().getStoryboardFormat():null};
   g.k.Gh=function(a){return(a=g.PM(this,a))?dY(this,a).getVideoData().Gh():null};
   g.k.Qd=function(a){if(a=a||this.tb){a=a.getVideoData();if(this.Pc)a=a===this.Pc.Ca.getVideoData();else a:{var b=this.Fd;if(a===b.u.getVideoData()&&b.i.length)a=!0;else{b=g.r(b.i);for(var c=b.next();!c.done;c=b.next())if(a.Cc===c.value.Cc){a=!0;break a}a=!1}}if(a)return!0}return!1};
   g.k.yr=function(a,b,c,d,e,f){var h;this.oa();if(!this.X.N("web_player_ssdai_add_to_timeline_logging_killswitch")){var l=this.getVideoData().enableServerStitchedDai;null===(h=this.tb)||void 0===h?void 0:h.Ba("sdai","app.attl."+(null!=this.Pc)+"_"+l+"_"+XX(this))}a=this.Pc?GAa(this.Pc,a,b,c,d,e,f):WAa(this.Fd,a,b,c,d,e);this.oa();return a};
   g.k.Sv=function(a,b,c,d,e,f){var h;this.X.N("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.tb)||void 0===h?void 0:h.Ba("sdai","app.attlr."+(null!=this.Pc)));this.Pc&&(GAa(this.Pc,a,b,c,d,e,f),this.oa());return""};
   g.k.Xn=function(a){var b;null===(b=this.Pc)||void 0===b?void 0:b.Xn(a)};
   g.k.lp=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.Pc?this.X.N("web_player_ssdai_prevent_clearing_timeline_killswitch")&&QS(this.Pc,a,b):cT(this.Fd,a,b)};
   g.k.zt=function(a,b,c){if(this.Pc){var d=this.Pc,e=c;c=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Cc===a){c=h;break}c?(d.oa(),void 0===e&&(e=c.pd),a=c,d.oa(),a.durationMs=b,a.pd=e,d.X.N("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&JAa(d,c)):d.ge("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Fd;e=null;f=g.r(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Cc===a){e=h;break}e?(d.oa(),void 0===c&&(c=e.pd),bBa(d,e,b,c)):d.ge("e.InvalidTimelinePlaybackId timelinePlaybackId="+
   a)}};
   g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Qd();a=new oG(this.X,a);d&&(a.Cc=d);c=void 0===c?Infinity:c;this.oa();b=b||this.tb.getPlayerType();var e;this.X.N("html5_gapless_preloading")&&(e=mY(this,b,a,!0));e||(e=this.Fl(b,a));2===b&&this.sb&&(a=e.getVideoData(),this.sb.Qs(a.clientPlaybackNonce,a.uc||"",a.breakType||0,a.ye));this.Fy(e,c)};
   g.k.Fy=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.PM(this);e&&(dY(this,e).wO=!0);wAa(this.Et,a,b,c).then(function(){d.Ta.Oa("onQueuedVideoLoaded")},function(){})};
   g.k.ys=function(){return this.Et.ys()};
   g.k.clearQueue=function(){this.oa();this.Et.clearQueue()};
   g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f,h=!1,l=new oG(this.X,a),m=null!==(f=l.vb)&&void 0!==f?f:"";this.Pb.timerName=m;if(!this.N("web_player_load_video_context_killswitch")&&e){for(;l.oi.length&&l.oi[0].isExpired();)l.oi.shift();h=l.oi.length-1;h=0<h&&e.u(l.oi[h])&&e.u(l.oi[h-1]);l.oi.push(e)}c||(a&&TM(a)?(tF(this.X)&&!this.pg&&(a.fetch=0),fY(this,a)):this.playlist&&fY(this,null),a&&this.setIsExternalPlaylist(a.external_list),tF(this.X)&&!this.pg&&gY(this));a=this.Ln(l,
   b,d);h&&this.Le("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+l.oi.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=RE(a);if(this.Iw.get(b+"_"+d+"_"+e))this.oa();else{a=new oG(this.X,a);e&&(a.Cc=e);e=b+"_"+a.videoId+"_"+a.Cc;this.oa();if(d=this.tb){d=this.tb.getPlayerType();var f=this.tb.getVideoData().videoId,h=this.tb.getVideoData().Cc;d=e===d+"_"+f+"_"+h}d?(kS(this.tb,!0),a.dispose()):(a.zd=!0,a=this.Fl(b,a),1===b&&wF(this.X)||kS(a,!0),this.Iw.set(e,a,c||3600))}};
   g.k.Pu=function(a){if(this.N("html5_skip_setPresenting"))aY(this,a);else{var b=a.getPlayerType();a!==g.PM(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.sb.getVideoData().autonavState,DHa(this,a)):(b=g.PM(this,b))&&b.dispose(),this.tb.getPlayerType()===a.getPlayerType()?aY(this,a):IHa(this,a))}};
   g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Wc;a=a.I.V().showMiniplayerUiWhenMinimized?a.Ed.get("miniplayer"):void 0;a&&(this.Je()?a.load():a.unload());this.Ta.ea("minimized")};
   g.k.setInline=function(a){this.visibility.setInline(a)};
   g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Wc;a=a.I.V().showInlinePreviewUi?a.Ed.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ta.Oa("onInlinePreviewModeChange"))};
   g.k.Ys=function(a){var b=this.X.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.X.Kh&&this.X.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.BD&&b?this.BD.start():this.iJ():this.visibility.Ys(a)};
   g.k.iJ=function(){var a,b=null===(a=this.ra)||void 0===a?void 0:a.Me();b&&iy(b).catch(function(c){return g.My(c)})};
   g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
   g.k.BV=function(){"picture-in-picture"===this.ra.Me().webkitPresentationMode?this.Ys(!0):this.Ys(!1)};
   g.k.togglePictureInPicture=function(){var a=g.PM(this);a&&a.togglePictureInPicture()};
   g.k.Ln=function(a,b,c){b=void 0===b?1:b;this.oa();VA("_start",this.Pb.timerName)||(QA("p",void 0,this.Pb.timerName),this.Pb.info("srt",0));var d=mY(this,b,a,!1);d?a.dispose():(d=this.Fl(b,a,c),this.N("html5_onesie")&&AX(d)&&kS(d),this.NA.stop(),this.cancelPlayback(4,b),aY(this,d),this.Pu(d));d===this.sb&&(this.X.Ge=a.oauthToken);if(!AX(d))return!1;if(d===this.sb)return this.Tk(1),jY(this);IX(d);return!0};
   g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&TM(a))if(this.Sp=!0,fY(this,a),(a=g.UM(this.playlist))&&a.isValid())sY(this,a,b);else this.playlist.onReady(function(){iY(c)});
   else{b||(b=this.getPresentingPlayerType());1===b&&this.Cr();var d=new oG(this.X,a);!g.XE(this.X)||this.X.K||d.isAd()||d.uc||!this.X.N("embeds_enable_iframe_apis_through_oneplatform")?sY(this,d,b):Pua(d,a?a:{}).then(function(e){sY(c,e,b)})}};
   g.k.Lj=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(ZE(this.X)||g.xF(this.X))return b=b||{},b.lact=Zu(),b.vis=this.Ta.getVisibilityState(),this.Ta.Oa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.Pb;b.i&&(e=b.i,e.i={},e.Su={});b.u=!1;this.Pb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
   g.k.cuePlaylist=function(a,b,c,d){this.Sp=!0;WHa(this,a,b,c,d)};
   g.k.loadPlaylist=function(a,b,c,d){this.Sp=!1;WHa(this,a,b,c,d)};
   g.k.vv=function(){if(this.Ta.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;tF(this.X)&&!this.pg&&gY(this);return!(!this.playlist||!this.playlist.hasNext())};
   g.k.zp=ba(1);
   g.k.nextVideo=function(a,b){var c=this.sb.getVideoData().suggestions;g.OM(this.Ta)&&c&&0<c.length?(a=c[0],this.Lj(a.videoId,b?a.fv:a.sessionData,a.playlistId,b,void 0,a.ZI||void 0)):this.pg?this.Ta.Oa("onPlaylistNext"):3===this.getPresentingPlayerType()?JM(this.Wc).nextVideo():this.playlist&&(tF(this.X)&&!this.Ta.isFullscreen()?pY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&VM(this.playlist,Cua(this.playlist)),this.playlist.loaded?(a=b&&this.X.N("html5_player_autonav_logging"),this.Ln(g.UM(this.playlist,
   void 0,b,a),1)):this.Sp=!1))};
   g.k.previousVideo=function(a){this.pg?this.Ta.Oa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?JM(this.Wc).wA():this.playlist&&(tF(this.X)&&!this.Ta.isFullscreen()?pY(this,"yt.www.watch.lists.prev"):(this.playlist.Ak(a)&&VM(this.playlist,Dua(this.playlist)),this.playlist.loaded?this.Ln(g.UM(this.playlist),1):this.Sp=!1))};
   g.k.playVideoAt=function(a){this.pg?this.Ta.Oa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Ln(g.UM(this.playlist,a),1):this.Sp=!1,VM(this.playlist,a))};
   g.k.getPlaylist=function(){return this.playlist};
   g.k.Hv=ba(11);g.k.BT=function(a){this.Ta.Oa("onCueRangeEnter",a.getId())};
   g.k.CT=function(a){this.Ta.Oa("onCueRangeExit",a.getId())};
   g.k.Fu=function(a,b,c){var d=g.PM(this,b);d&&(d.Fu(a,c),b&&this.getPresentingPlayerType()!==b||ZX(this,"cuerangesadded",a))};
   g.k.GA=function(a,b){var c=g.PM(this,b);c&&(c.GA(a),b&&this.getPresentingPlayerType()!==b||ZX(this,"cuerangesremoved",a))};
   g.k.GT=function(){var a=this;this.getPresentingPlayerType();this.Fo||(this.Fo=xx(YA,this.jM,this));Bua(this.Pb,this.tb.getVideoData(),ZHa(this));VX(this)&&this.X.i&&"embedded"===SG(TX(this))&&this.AL&&.01>Math.random()&&g.Zv("autoplayTriggered",{intentional:this.ZK});this.AL=!1;this.Ta.Oa("onPlaybackStartExternal");this.X.N("mweb_client_log_screen_associated");(function(){var c=g.Ey(a.EN||(a.Je()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(a.X.N("web_playback_associated_ve")&&
   a.getVideoData().Ya){var e=g.Ay(a.getVideoData().Ya);g.Ry(c,e,void 0);d.playbackVe=e.getAsJson()}a.X.N("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.N("web_playback_associated_log_ctt")&&a.getVideoData().jb&&(c.cttAuthInfo={token:a.getVideoData().jb,videoId:a.getVideoData().videoId});g.Zv("playbackAssociated",d,c)}})();
   RA("player_att");if(this.N("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.N("web_player_botguard_inline_skip_config_killswitch")&&(zs("BG_I",b.interpreterScript),zs("BG_IU",b.interpreterUrl),zs("BG_P",b.program)),g.vF(this.X)||"MWEB"===this.X.deviceParams.c?Ou(Ru(),function(){kY(a)}):kY(this))}this.OA()};
   g.k.mF=function(){this.Ta.ea("internalAbandon");this.N("html5_ad_module_cleanup_killswitch")||oY(this)};
   g.k.jM=function(a){a=a.i;!isNaN(a)&&0<a&&this.sb&&this.sb.Pw(a)};
   g.k.onApiChange=function(){this.X.u&&this.tb?this.Ta.Oa("onApiChange",this.tb.getPlayerType()):this.Ta.Oa("onApiChange")};
   g.k.GU=function(){var a=this.ra;a={volume:g.Xf(Math.floor(100*a.getVolume()),0,100),muted:a.Zy()};a.muted||lY(this,!1);this.gg=g.pc(a);this.Ta.Oa("onVolumeChange",a)};
   g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ta.Oa("onMutedAutoplayStarts"))};
   g.k.onFullscreenChange=function(){var a=uY(this);this.Hi(a?1:0);bIa(this,!!a)};
   g.k.Hi=function(a){var b=!!a,c=!!this.Ur()!==b;this.visibility.Hi(a);this.template.Hi(b);this.N("html5_media_fullscreen")&&!b&&this.ra&&uY(this)===this.ra.Me()&&this.ra.ov();this.template.resize();c&&this.Pb.tick("fsc");c&&(this.Ta.ea("fullscreentoggled",b),a=TX(this),b={fullscreen:b,videoId:a.tC||a.videoId,time:this.getCurrentTime()},this.Ta.getPlaylistId()&&(b.listId=this.Ta.getPlaylistId()),this.Ta.Oa("onFullscreenChange",b))};
   g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
   g.k.Ur=function(){return this.visibility.Ur()};
   g.k.tV=function(){this.tb&&(0!==this.Ur()&&1!==this.Ur()||this.Hi(uY(this)?1:0),this.X.Kh&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.ra&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.ra.ov())};
   g.k.yU=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("liveviewshift",a)};
   g.k.playVideo=function(a){this.oa();if(a=g.PM(this,a))2===this.appState?jY(this):(null!=this.Ti&&this.Ti.Ab&&this.Ti.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
   g.k.pauseVideo=function(a){(a=g.PM(this,a))&&a.pauseVideo()};
   g.k.stopVideo=function(){this.oa();var a=this.sb.getVideoData(),b=new oG(this.X,{video_id:a.tC||a.videoId,oauth_token:a.oauthToken});b.Z=g.pc(a.Z);this.cancelPlayback(6);sY(this,b,1);null!=this.Ti&&this.Ti.stop()};
   g.k.cancelPlayback=function(a,b){this.oa();wx(this.Fo);this.Fo=0;var c=g.PM(this,b);c?(this.X.N("html5_high_res_logging")&&c.Ba("canclpb","r."+a),1===this.appState||2===this.appState?this.oa():(c===this.tb&&(this.oa(),kN(this.Wc,a)),1===b&&(this.X.N("html5_stop_video_in_cancel_playback")&&c.stopVideo(),oY(this)),c.pm(),ZX(this,"cuerangesremoved",c.Ll()),c.Ah.reset(),this.Et&&c.isGapless()&&(c.Cg(!0),c.setMediaElement(this.ra)))):this.oa()};
   g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.PM(this,b))&&this.X.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
   g.k.Eh=function(a){var b=g.PM(this,void 0);return b&&this.X.enabledEngageTypes.has(a.toString())?b.Eh(a):null};
   g.k.updatePlaylist=function(){tF(this.X)?gY(this):g.XE(this.X)&&hY(this);this.Ta.Oa("onPlaylistUpdate")};
   g.k.setSizeStyle=function(a,b){this.ON=a;this.vE=b;this.Ta.ea("sizestylechange",a,b);this.template.resize()};
   g.k.isWidescreen=function(){return this.vE};
   g.k.Je=function(){return this.visibility.Je()};
   g.k.isInline=function(){return this.visibility.isInline()};
   g.k.ws=function(){return this.visibility.ws()};
   g.k.rs=function(){return this.visibility.rs()};
   g.k.tE=function(){return this.ON};
   g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return JM(this.Wc).getAdState();if(!this.Qd()){var a=lN(this.wb());if(a)return a.getAdState()}return-1};
   g.k.sV=function(a){var b=this.template.getVideoContentRect();Ql(this.uL,b)||(this.uL=b,this.tb&&GX(this.tb),this.sb&&this.sb!==this.tb&&GX(this.sb),1===this.Ur()&&this.Ew&&bIa(this,!0));this.BE&&g.dg(this.BE,a)||(this.Ta.ea("appresize",a),this.BE=a)};
   g.k.sf=function(){return this.Ta.sf()};
   g.k.KV=function(){2===this.getPresentingPlayerType()&&this.Fd.isManifestless()&&!this.N("web_player_manifestless_ad_signature_expiration_killswitch")?aBa(this.Fd):(this.Pc&&QS(this.Pc),$X(this,"signature",void 0,!0))};
   g.k.wM=function(){this.Cg();YX(this)};
   g.k.rV=function(a){yS(a,this.ra.Ep())};
   g.k.MU=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ta.Oa("onPlayerRequestAuthFailed")};
   g.k.xw=function(){this.Ta.Oa("CONNECTION_ISSUE")};
   g.k.zw=function(a){this.Ta.ea("heartbeatparams",a)};
   g.k.LA=function(a){this.Ta.Oa("onAutonavChangeRequest",1!==a)};
   g.k.jd=function(){return this.ra};
   g.k.setBlackout=function(a){this.X.Hb=a;this.tb&&(this.tb.Iq(),this.X.Y&&dIa(this))};
   g.k.setAccountLinkState=function(a){var b=g.PM(this);b&&(b.getVideoData().rI=a,b.Iq())};
   g.k.updateAccountLinkingConfig=function(a){var b=g.PM(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ta.ea("videodatachange","dataupdated",c,b.getPlayerType())}};
   g.k.OU=function(){var a=g.PM(this);if(a){var b=!this.Ta.Xv();(a.GK=b)||a.aq.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.C&&c.C.stop()}a.X.N("html5_suspend_loader")&&a.Xa&&(b?a.Xa.resume():NX(a,!0));a.X.N("html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Ub(VJ(a.playerState,512)):a.Ub(UJ(a.playerState,512)));a=a.Xb;a.qoe&&(a=a.qoe,g.qW(a,g.CS(a.i),"stream",[b?"A":"I"]))}};
   g.k.onLoadedMetadata=function(){this.Ta.Oa("onLoadedMetadata")};
   g.k.onDrmOutputRestricted=function(){this.Ta.Oa("onDrmOutputRestricted")};
   g.k.KC=function(){this.N("html5_skip_empty_load")&&(RNa=!0);UNa=this.N("html5_ios_force_seek_to_zero_on_stop");SNa=this.N("html5_ios7_force_play_on_stall");TNa=this.N("html5_ios4_seek_above_zero");this.N("html5_mediastream_applies_timestamp_offset")&&(OU=!0);this.N("html5_dont_override_default_sample_desc_index")&&(Ska=!0);if(this.N("html5_androidtv_quic")){var a=window;"h5vcc"in a&&"settings"in a.h5vcc&&a.h5vcc.settings.set("QUIC",1)}Error.stackTraceLimit=25;var b=g.rE(this.X.experiments,"html5_idle_rate_limit_ms");
   b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}})};
   g.k.HE=function(){this.ZK=!0};
   g.k.xa=function(){this.Wc.dispose();this.Fd.dispose();this.Pc&&this.Pc.dispose();this.sb.dispose();this.Cg();g.ve(dc(this.zx),this.playlist);wx(this.Fo);this.Fo=0;g.I.prototype.xa.call(this)};
   g.k.oa=function(){};
   g.k.N=function(a){return this.X.N(a)};
   g.k.UA=function(){return this.gx};
   g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
   g.k.setScreenLayer=function(a){this.EN=a};
   g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=CM(this.wb()))||void 0===b?void 0:b.wv(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.ql;if(this.N("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.NN&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;e=g.r(e);for(var h=e.next();!h.done;h=e.next())if(h=h.value,h.index===a){d.uN(f,h.title);vY(this,h.startTime/1E3);break}}};
   g.k.downloadVideo=function(a,b){return g.H(this,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return e.Jk&&e.N("woffle_orchestration")?g.A(h,$za(e.Jk,[a],b),2):h.return(Promise.reject());f=h.u;return h.return(f[0])})})};
   g.k.refreshAllVideos=function(){return this.Jk&&this.N("woffle_orchestration")?nS(this.Jk,14400):Promise.reject()};
   g.k.deleteVideos=function(a){return this.Jk&&this.N("woffle_orchestration")?this.Jk.deleteVideos(a):Promise.reject()};
   g.k.deleteAllVideos=function(){return this.Jk&&this.N("woffle_orchestration")?this.Jk.deleteAllVideos():Promise.reject()};
   g.k.isOrchestrationLeader=function(){return this.Jk&&this.N("woffle_orchestration")?this.Jk.isOrchestrationLeader():!1};
   g.k.getStatsForNerds=function(){var a=this.Ta,b=g.PM(this),c=a.getVideoData(),d=a.jd(),e=d.Me(),f=b.Lv(),h=b.rG,l=8*lT(h,"bandwidth")/1024,m=lT(h,"networkactivity")/1024,n=lT(h,"bufferhealth");if(b.Hd){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Hd.i.mf()+"/"+iB(b.Xr());p+="/"+b.Hd.mf()}else p="";var q=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=CD(d.Uf(),",",3),x="";if(WG(c)){c.enableServerStitchedDai&&(x+="SS");x+="DAI, ";a:{if(b.Fd){var y=b.Fd.Uu;if(0<y){y=
   "AD"+y+", ";break a}}y=""}y&&(x+=y)}if(c.fetchType){switch(c.fetchType){case "onesie":y="o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}x+="s:"+q+" t:"+t+" b:"+u+" ";d.Xt()&&(x+="S");d.al()&&(x+="P");d.Gk()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.Cv())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.yu;d&&d>q.start&&d<q.end&&(x+=" as");d=x;x=g.uF();q=g.MM(a).yS;t=c.B&&!c.B.i?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=0;for(var z="",G=0;10>G;G++)if(y=
   (y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(G)),4==G%5){for(var F="",C=0;6>C;C++)F="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+F,y>>=5;z+=F}u=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:d,bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+
   " KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<x?"*"+x.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=wpa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.ye.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.u)if(e=a.video)f=e.fps,1<f&&(l.resolution+=
   "@"+f),(f=g.JX(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=fBa(a),!c.K||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+fBa(c.K),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.bf;l.live_mode_style=e||a?"":"display:none";
   l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(CG(c)?" Manifestless":"");else if(e){a=lT(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=CG(c)?"Manifestless, ":"";c.Zi&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=
   c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=kT(h,"bandwidth");l.network_activity_samples=kT(h,"networkactivity");l.live_latency_samples=kT(h,"livelatency");l.buffer_health_samples=kT(h,"bufferhealth");c.N("woffle_orchestration")&&
   (b=g.ZG(c),c.cotn||b)&&(l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b);l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";zG(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20211010_0_RC0",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.X.getVideoUrl(a),a=yi(a,"v"),a.replace("/watch","/clip/"+this.Sb.postId)):this.X.getVideoUrl(a,b,c,d,e)};
   var s3={};g.Fa("yt.player.Application.create",g.WX.create,void 0);g.Fa("yt.player.Application.createAlternate",g.WX.create,void 0);Wia(Hy(),{fm:[{hw:/Unable to load player module/,weight:5},{hw:/Failed to fetch/,weight:500},{hw:/XHR API fetch failed/,weight:10},{hw:/JSON parsing failed after XHR fetch/,weight:10},{hw:/Retrying OnePlatform request/,weight:10}]});var pOa=g.Ga("ytcsi.tick");pOa&&pOa("pe");var qOa={v8:"replaceUrlMacros",Z2:"isExternalShelfAllowedFor",g7:"onAboutThisAdPopupClosed"};yY.prototype.xk=function(){return"adLifecycleCommand"};
   yY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.ah(function(){b.controller.Ym()});
   break;case "END_LINEAR_AD_PLACEMENT":g.ah(function(){b.controller.pk()});
   break;case "FILL_ABOVE_FEED_SLOT":g.ah(function(){a.elementId&&b.controller.Jy(a.elementId)});
   break;case "CLEAR_ABOVE_FEED_SLOT":g.ah(function(){b.controller.sy()})}};
   yY.prototype.Sl=function(a){this.handle(a)};zY.prototype.xk=function(){return"clearCueRangesCommand"};
   zY.prototype.handle=function(){var a=this.gD();g.ah(function(){a.If(Array.from(a.Xo))})};
   zY.prototype.Sl=function(a){this.handle(a)};AY.prototype.xk=function(){return"muteAdEndpoint"};
   AY.prototype.handle=function(a){gIa(this,a)};
   AY.prototype.Sl=function(a,b){gIa(this,a,b)};BY.prototype.xk=function(){return"openPopupAction"};
   BY.prototype.handle=function(){};
   BY.prototype.Sl=function(a){this.handle(a)};CY.prototype.xk=function(){return"pingingEndpoint"};
   CY.prototype.handle=function(){};
   CY.prototype.Sl=function(a){this.handle(a)};DY.prototype.xk=function(){return"urlEndpoint"};
   DY.prototype.handle=function(a,b){b=g.Dq(a.url,b);var c,d,e;if((null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)){if(null===(e=a.browserConversionApiData)||void 0===e?0:e.originTrialToken)c=document.createElement("meta"),c.setAttribute("http-equiv","origin-trial"),c.setAttribute("content",a.browserConversionApiData.originTrialToken),document.head.appendChild(c);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,
   attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.XL(b,void 0,void 0,a)};
   DY.prototype.Sl=function(){T("Trying to handle UrlEndpoint with no macro in controlflow")};EY.prototype.xk=function(){return"adPingingEndpoint"};
   EY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Yo.send(a,b,c)};
   EY.prototype.Sl=function(a,b){YJa(this.Va.get(),a,b,void 0)};FY.prototype.xk=function(){return"changeEngagementPanelVisibilityAction"};
   FY.prototype.handle=function(a){this.I.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
   FY.prototype.Sl=function(a){this.handle(a)};GY.prototype.xk=function(){return"loggingUrls"};
   GY.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.Oh.send(d.baseUrl,b,c,d.headers)};
   GY.prototype.Sl=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,YJa(this.Va.get(),c.baseUrl,b,c.headers)};g.w(iIa,g.I);var uIa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var DIa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
   "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var mIa=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"]]),kIa=new Map([["normal",{Ts:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Ts:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
   ["muted",{Ts:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Ts:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Ts:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Ts:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.w(PY,g.I);g.k=PY.prototype;g.k.RD=function(a,b){return this.i.RD(a,b)};
   g.k.Ai=function(a,b){LZ(this.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Pd),d=c.next();!d.done;d=c.next())d.value.Ai(a,b)};
   g.k.xf=function(a){if(TY(this.i,a)){DJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.xf(a);for(var b=g.r(this.Pd),c=b.next();!c.done;c=b.next())c.value.xf(a);qIa(this,a)}};
   g.k.yf=function(a){if(TY(this.i,a)){DJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.yf(a);for(var b=g.r(this.Pd),c=b.next();!c.done;c=b.next())c.value.yf(a);TY(this.i,a)&&UY(this.i,a).D&&RY(this,a,!1)}};
   g.k.gA=function(a){DJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);TY(this.i,a)&&(this.i.gA(a),RY(this,a,!1))};
   g.k.Lc=function(a,b){if(TY(this.i,a)){VY(this.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Pd),d=c.next();!d.done;d=c.next())d.value.Lc(a,b)}};
   g.k.Xc=function(a,b,c){if(TY(this.i,a)){VY(this.dc,lIa(c),a,b);this.i.Xc(a,b);for(var d=g.r(this.Pd),e=d.next();!e.done;e=d.next())e.value.Xc(a,b,c);(c=hZ(this.i,a))&&b.layoutId===c.layoutId&&AIa(this,a,!1)}};
   g.k.wf=function(a,b,c){T(c,a,b,void 0,c.Zo);RY(this,a,!0)};
   g.k.xa=function(){var a=CIa(this.i);a=g.r(a);for(var b=a.next();!b.done;b=a.next())RY(this,b.value,!1);g.I.prototype.xa.call(this)};BIa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(WY,Sa);g.w(eZ,Sa);g.w(kZ,g.I);g.k=kZ.prototype;g.k.RD=function(a,b){b=gZ(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.Nh=function(a){a=UY(this,a);"not_scheduled"!==a.i&&iZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
   g.k.tv=function(a){a=UY(this,a);a.C="fill_requested";a.K.tv()};
   g.k.xf=function(a){a=UY(this,a);"enter_requested"!==a.i&&iZ(a.slot,a.i,"onSlotEntered");a.i="entered"};
   g.k.gA=function(a){UY(this,a).C="fill_canceled"};
   g.k.yf=function(a){a=UY(this,a);"exit_requested"!==a.i&&iZ(a.slot,a.i,"onSlotExited");a.i="scheduled"};
   g.k.Xc=function(a,b){a=UY(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&iZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.w(oZ,g.I);oZ.prototype.B=function(){return this.u};g.w(pZ,g.I);pZ.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.u());return this.i};g.w(KZ,g.I);g.w(NZ,g.I);NZ.prototype.onCueRangeEnter=function(){};
   NZ.prototype.onCueRangeExit=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.u.get().removeCueRange(a),Uz(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=aA(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Vb:c.Vb?NJa(c.slotId,d,c.Vb):void 0,qc:OJa(c.slotId,d,c.qc),pc:OJa(c.slotId,d,c.pc)})]},c.slotId))};
   NZ.prototype.hh=function(){for(var a=g.r(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.i.clear()};
   NZ.prototype.wj=function(){};g.w(OZ,g.I);g.k=OZ.prototype;g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.xf=function(){};
   g.k.Bj=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
   g.k.zj=function(a,b){this.Ki.has(a)&&this.Ki.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.i.has(a)){var c=this.i.get(a);c.has(b)?(c.delete(b),0===c.size&&this.i.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)};
   g.k.Lc=function(a,b){this.Ki.set(a,b)};
   g.k.Xc=function(a){this.Ki.delete(a)};
   g.k.Ai=function(){};ZZ.prototype.clone=function(a){var b=this;return new ZZ(function(){return b.triggerId},a)};$Z.prototype.clone=function(a){var b=this;return new $Z(function(){return b.triggerId},a)};a_.prototype.clone=function(a){var b=this;return new a_(function(){return b.triggerId},a)};b_.prototype.clone=function(a){var b=this;return new b_(function(){return b.triggerId},a)};c_.prototype.clone=function(a){var b=this;return new c_(function(){return b.triggerId},a)};g.w(f_,g.I);f_.prototype.logEvent=function(a){LZ(this,a)};g.w(h_,g.I);g.k=h_.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.hh=function(a,b,c,d,e,f,h){var l;if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Ga.get().hh(a,b,c,d,e,f,h);this.C.get().hh(a,b,c,d,e,f,h);null===(l=this.u)||void 0===l?void 0:l.get().hh(a,b,c,d,e,f,h);this.B.hh(a,b,c,d,e,f,h);for(var m=g.r(this.listeners),n=m.next();!n.done;n=m.next())n.value.hh(a,b,c,d,e,f,h)}};
   g.k.mF=function(){this.i&&this.wj(this.i)};
   g.k.wj=function(a){this.i=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.wj(a)};g.w(i_,g.I);i_.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.i.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new UJa(a,b,c,d,f),this.i.set(a.id,{Cd:a,listener:e,Kj:h}),this.I.Ad([a],h))};
   i_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.I.If([b.Cd],b.Kj),this.i.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
   i_.prototype.onCueRangeEnter=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeEnter(a.id)};
   i_.prototype.onCueRangeExit=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeExit(a.id)};
   g.w(UJa,g.lA);j_.prototype.Ci=function(a){this.I.Ci(a)};
   j_.prototype.Oa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.I.Oa.apply(this.I,[a].concat(g.v(c)))};n_.prototype.Bf=function(a,b){if(!this.i.has(a))return{};if("seek"===b)return b=this.I.V().N("html5_dai_enable_active_view_creating_completed_adblock"),Aq(a,b),{};b=$pa(b);if(null===b||this.I.V().N("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.Kc();c=c&&(this.I.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&bI(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ga.get().isFullscreen()};return zq(b,a,c)};
   n_.prototype.pw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.pw()};
   n_.prototype.ow=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.ow()};
   n_.prototype.qw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.qw()};g.w(r_,PH);r_.prototype.nf=function(){return this.u()};
   r_.prototype.i=function(){return this.B()};s_.prototype.Eh=function(){var a=this.I.Kc();return a&&(a=a.Eh(1))?a:null};
   s_.prototype.Yf=function(a,b){this.I.getVideoData(1).Ba(a,b)};g.w(x_,g.I);g.k=x_.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.hh=function(){this.EC.clear();this.DE=null};
   g.k.wj=function(){};
   g.k.jW=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Yf("ads_ssm_vdc_s","pt."+c+";dvt."+a);if(!l_(this.Na.get())&&!this.Na.get().I.V().N("html5_debug_client_stitched")||"dataloaded"===a)this.I.V().N("html5_server_stitched_dai_group")&&g.xF(this.I.V())&&this.Yf("ads_vdc","pt."+c+";cpn."+b.clientPlaybackNonce),dKa(this,b,c)};
   g.k.GV=function(a,b){void 0!==a&&(this.DE=a,void 0===b?T("Expected ad video start time on SS video changed"):this.EC.set(a,b));b=this.I.getPresentingPlayerType(!0);var c=this.I.getVideoData(b);this.I.getVideoData(1).Ba("ads_ssvc","pt."+b+";cpn."+(null===c||void 0===c?void 0:c.clientPlaybackNonce));c?dKa(this,c,b):T("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
   g.k.xa=function(){this.listeners.length=0;this.rp=null;g.I.prototype.xa.call(this)};
   g.k.Yf=function(a,b){this.I.getVideoData(1).Ba(a,b)};g.w(y_,g.I);g.k=y_.prototype;g.k.hh=function(){var a=this;this.wp=df(function(){a.I.isDisposed()||a.I.Md("ad",1)})};
   g.k.wj=function(){};
   g.k.addListener=function(a){this.listeners.push(a)};
   g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
   g.k.playVideo=function(){this.I.playVideo()};
   g.k.pauseVideo=function(){this.I.pauseVideo()};
   g.k.resumeVideo=function(a){this.Yl(a)&&this.I.playVideo()};
   g.k.Yl=function(a){return 2===this.I.getPlayerState(a)};
   g.k.getCurrentTimeSec=function(a,b){var c=this.i.get().DE;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):z_(this,c)};
   g.k.getVolume=function(){return this.I.getVolume()};
   g.k.isMuted=function(){return this.I.isMuted()};
   g.k.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)};
   g.k.getPlayerState=function(a){return this.I.getPlayerState(a)};
   g.k.isFullscreen=function(){return this.I.isFullscreen()};
   g.k.isAtLiveHead=function(){return this.I.isAtLiveHead()};
   g.k.hV=function(){if(2===this.I.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.xi(a)};
   g.k.YU=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Aj(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.yg=function(){for(var a=this.I.Je(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.yg(a)};
   g.k.xb=function(){for(var a=this.I.bb().rg(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.uj(a)};g.w(gKa,g.I);C_.prototype.executeCommand=function(a,b){EK(this.i(),a,b)};
   C_.prototype.Id=function(a,b){gsa(this.i(),a,b)};E_.prototype.tv=function(){var a=this;jKa(this.i,function(){var b=X(a.slot.Ia,"metadata_type_ad_break_request_data");return a.u.get().fetch({CO:b.getAdBreakUrl,IJ:new g.lA(b.qN,b.pN),Tu:X(a.slot.Ia,"metadata_type_cue_point")})},function(){lKa(a)},function(b){b=b.yl;
   2<=b.length&&T("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!(null===(f=null===(e=null===(d=c.renderer)||void 0===d?void 0:d.linearAdSequenceRenderer)||void 0===e?void 0:e.linearAds)||void 0===f||!f.length)||!(null===(h=c.renderer)||void 0===h||!h.instreamVideoAdRenderer)})||lKa(a)})};
   E_.prototype.TC=function(){kKa(this.i)};F_.prototype.tv=function(){var a=this;jKa(this.i,function(){var b=X(a.slot.Ia,"metadata_type_ad_break_request_data");return a.u.get().fetch({CO:b.getAdBreakUrl,IJ:new g.lA(b.qN,b.pN)})})};
   F_.prototype.TC=function(){kKa(this.i)};G_.prototype.tv=function(){rIa(this.callback,this.slot,X(this.slot.Ia,"metadata_type_fulfilled_layout"))};
   G_.prototype.TC=function(){SY(this.callback,this.slot,new eZ("Got CancelSlotFulfilling request for "+this.slot.rb+" in DirectFulfillmentAdapter."))};I_.prototype.Oe=function(a,b){return H_(b,{Vd:["metadata_type_fulfilled_layout"]})?new G_(a,b):this.C(a,b)};g.w(J_,I_);J_.prototype.C=function(a,b){if(H_(b,{Vd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],rb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new E_(a,b,this.i,this.B,this.u,this.D);if(H_(b,{Vd:["metadata_type_ad_break_request_data"],rb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new F_(a,b,this.i,this.B,this.u);throw new eZ("Unsupported slot with type: "+b.rb+" and client metadata: "+JY(b.Ia)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(K_,I_);K_.prototype.C=function(a,b){throw new eZ("Unsupported slot with type: "+b.rb+" and client metadata: "+JY(b.Ia)+" in DefaultFulfillmentAdapterFactory.");};g.k=mKa.prototype;g.k.Dd=function(){return this.slot};
   g.k.Kb=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.wf(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Ia,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.rb?(this.callback.Lc(this.slot,a),wja(this.i,this.slot,b)):T("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
   this.slot,a)}};
   g.k.gf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xc(this.slot,a,b)};M_.prototype.Oe=function(a,b,c,d){if(L_(d,{Vd:["metadata_type_ad_break_response_data"],cf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new mKa(a,c,d,this.i);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};N_.prototype.Bf=function(a){var b=this.D.get(a)||[];nKa(this,a,b);this.C.add(a)};g.k=oKa.prototype;g.k.Dd=function(){return this.slot};
   g.k.Kb=function(){return this.layout};
   g.k.init=function(){};
   g.k.release=function(){};
   g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Lc(this.slot,a),Q_(this.u,"impression"),f0(this.i,a.layoutId))};
   g.k.gf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xc(this.slot,a,b)};T_.prototype.Oe=function(a,b,c,d){if(L_(d,pKa()))return new oKa(a,c,d,this.Va,this.i);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(U_,g.R);g.k=U_.prototype;g.k.Dd=function(){return this.slot};
   g.k.Kb=function(){return this.layout};
   g.k.init=function(){this.u.get().addListener(this)};
   g.k.release=function(){this.u.get().removeListener(this);this.dispose()};
   g.k.cE=function(){};
   g.k.aE=function(){};
   g.k.ZD=function(){};
   g.k.mz=function(){};
   g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),QKa(a,this.i,1))};
   g.k.gf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.wf(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();QKa(c,this.i,3);this.i=[];this.callback.Xc(this.slot,a,b)}};
   g.k.xa=function(){this.u.get().removeListener(this);g.R.prototype.xa.call(this)};g.w(qKa,uH);g.w(X_,U_);g.k=X_.prototype;g.k.Ff=function(a,b){W_("action-companion",a,this.J.get().Ki,this.Va.get(),this.B,this.C,this.Dd(),this.Kb(),b)};
   g.k.startRendering=function(a){V_(this.D,this.Dd(),this.Kb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new qKa(b,c,d,e,f)},this.i);
   U_.prototype.startRendering.call(this,a)};
   g.k.Lc=function(a,b){b.layoutId===this.layout.layoutId?Q_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Va.get().Eh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
   g.k.Xc=function(){};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.Bj=function(){};
   g.k.xf=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Ai=function(){};
   g.k.xa=function(){this.Ze().Pd.delete(this);U_.prototype.xa.call(this)};g.w(Y_,U_);Y_.prototype.init=function(){U_.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_ad_action_interstitial_renderer"),b=P_(this.B);this.i.push(new kI(a,b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0))};
   Y_.prototype.startRendering=function(a){U_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
   Y_.prototype.Ff=function(){};
   Y_.prototype.xa=function(){U_.prototype.xa.call(this)};g.w(Z_,U_);g.k=Z_.prototype;g.k.init=function(){U_.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Dc},c=!X(this.layout.Ia,"metadata_type_player_bytes_callback").zz;this.i.push(new IL(a,this.layout.layoutId,X(this.layout.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
   g.k.hm=function(){this.B||this.Ga.get().resumeVideo(2)};
   g.k.startRendering=function(a){U_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a);this.Od.To=this};
   g.k.gf=function(a,b){U_.prototype.gf.call(this,a,b);T1(this.Od,this)};
   g.k.Ff=function(a){if(FJa(this.C.get(),this.D))switch(a){case "visit-advertiser":this.Va.get().I.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Ga.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ga.get().Yl(2))||this.Ga.get().pauseVideo();break;case "visit-advertiser":this.Ga.get().pauseVideo();X(this.layout.Ia,"metadata_type_player_bytes_callback").JA();
   break;case "skip-button":a=X(this.layout.Ia,"metadata_type_player_bytes_callback"),a.zz&&a.Bw(this.Dd(),this.layout)}};
   g.k.xa=function(){U_.prototype.xa.call(this)};a0.prototype.Oe=function(a,b,c,d){if(a=$_(a,c,d,this.i,this.Ga,this.Va,this.u,this.Od))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(b0,g.I);g.k=b0.prototype;g.k.init=function(){var a=X(this.Kb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Hn()};
   g.k.release=function(){var a=X(this.Kb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.oo()};
   g.k.startRendering=function(a){a.layoutId!==this.Kb().layoutId?this.callback.wf(this.Dd(),a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Kb().layoutId+("and LayoutType: "+this.Kb().layoutType))):(this.Ga.get().addListener(this),QY(this.Ze(),this),this.Ga.get().I.Fj(2),Tqa(this.fd.get()),this.Co(a))};
   g.k.gf=function(a,b){this.kE=!0;this.Do(a,b);this.Ga.get().I.po(2);this.Gd.get().I.cueVideoByPlayerVars({},2);a=o_(this.Ga.get(),1);g.U(a,4)&&!g.U(a,2)&&this.Ga.get().playVideo();this.Ga.get().removeListener(this);this.kE&&this.GL()};
   g.k.Xc=function(a,b){b.layoutId===this.Kb().layoutId&&(this.kE=!1,this.Ze().Pd.delete(this))};
   g.k.Aj=function(a,b){var c,d;if(a.state.isError()){if(this.Na.get().I.V().N("html5_ignore_organic_playback_error_when_ads_presenting")&&(T("Presenting player state error caught in PlayerBytes layout.",this.Dd(),this.Kb(),{playerType:String(b)}),1===b))return;this.wf(null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,new WY("There was a player error during this media layout.",{playerErrorCode:null===(d=a.state.getData())||void 0===d?void 0:d.errorCode}),b)}else this.EM(a)};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.Bj=function(){};
   g.k.xf=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Ai=function(){};g.w(c0,b0);g.k=c0.prototype;g.k.Dd=function(){return this.slot};
   g.k.Kb=function(){return this.layout};
   g.k.Hn=function(){if(1>=this.u.length)throw new eZ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),aZ(this.B,this.slot,b.Kb())};
   g.k.oo=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,Fqa(this.B,this.slot,b.Kb()),b.release()};
   g.k.lq=function(a,b){var c=this.u[this.i];b.layoutId!==d0(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.lq()};
   g.k.xq=function(a,b){var c=this.u[this.i];b.layoutId!==d0(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.xq()};
   g.k.Bw=function(a,b){var c=this.u[this.i];b.layoutId!==d0(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.Dd(),c.Kb(),{requestingSlot:a,requestingLayout:b}):e0(this,c.Dd(),c.Kb(),"skipped")};
   g.k.Co=function(){-1===this.i&&uKa(this)};
   g.k.RV=function(a,b){bZ(this.B,a,b)};
   g.k.Do=function(a,b){var c=this;this.i!==this.u.length?(a=this.u[this.i],a.gf(a.Kb(),b),this.D=function(){c.callback.Xc(c.slot,c.layout,b)}):this.callback.Xc(this.slot,this.layout,b)};
   g.k.Lc=function(a,b){var c=this.u[this.i];c&&c.Lc(a,b)};
   g.k.Xc=function(a,b,c){b0.prototype.Xc.call(this,a,b,c);var d=this.u[this.i];d&&d.Xc(a,b,c)};
   g.k.GL=function(){var a=this.u[this.i];a&&a.lz()};
   g.k.xi=function(a){var b=this.u[this.i];b&&b.xi(a)};
   g.k.EM=function(a){var b=this.u[this.i];b&&b.Aj(a)};
   g.k.wf=function(a,b){-1===this.i&&(this.callback.Lc(this.slot,this.layout),this.i++);var c=this.u[this.i];c?c.mw(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Kb().layoutId})};
   g.k.onFullscreenToggled=function(a){var b=this.u[this.i];if(b)b.onFullscreenToggled(a)};
   g.k.yg=function(a){var b=this.u[this.i];b&&b.yg(a)};
   g.k.uj=function(a){var b=this.u[this.i];b&&b.uj(a)};
   g.k.onVolumeChange=function(){var a=this.u[this.i];if(a)a.onVolumeChange()};
   g.k.TV=function(a,b,c){e0(this,a,b,c)};
   g.k.SV=function(a,b){e0(this,a,b,"error")};g.w(j0,g.I);g.k=j0.prototype;g.k.Dd=function(){return this.slot};
   g.k.Kb=function(){return this.layout};
   g.k.init=function(){var a=X(this.layout.Ia,"metadata_type_video_length_seconds");p_(this.ya.get(),this.layout.layoutId,a,this);v_(this.Va.get(),this);this.Hn()};
   g.k.release=function(){q_(this.ya.get(),this.layout.layoutId);w_(this.Va.get(),this);this.oo()};
   g.k.lq=function(){};
   g.k.xq=function(){};
   g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",Cpa(this.La.get(),1)?(this.Mu(!1),this.K(-1),this.Co(a)):this.mw("ui_unstable",new WY("Failed to render media layout because ad ui unstable.")))};
   g.k.Lc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.u="rendering",Q_(this.i,"impression"),Q_(this.i,"start"),this.Ga.get().isMuted()&&(Q_(this.i,"mute"),a=(null===(c=i0(this))||void 0===c?void 0:c.muteCommands)||[],this.B.get().Id(a,this.layout.layoutId)),this.Ga.get().isFullscreen()&&(this.i.Bf("fullscreen"),a=(null===(d=i0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.B.get().Id(a,this.layout.layoutId)),this.Z=this.Ga.get().isMuted(),k0(this,"unmuted_impression"),
   k0(this,"unmuted_start"),this.Ga.get().isFullscreen()&&m0(this,"unmuted_fullscreen"),Vqa(this.fd.get()),this.K(1),this.rM(),a=(null===(e=i0(this))||void 0===e?void 0:e.impressionCommands)||[],this.B.get().Id(a,this.layout.layoutId))};
   g.k.mw=function(a,b,c){this.Ja={rB:3,yx:"load_timeout"===a?402:400,errorMessage:b.message};var d;X(this.layout.Ia,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.Dd(),this.Kb(),{playerType:String(c)});Q_(this.i,"error");k0(this,"unmuted_error");a=(null===(d=i0(this))||void 0===d?void 0:d.errorCommands)||[];this.B.get().Id(a,this.layout.layoutId);this.callback.wf(this.slot,this.layout,b)};
   g.k.lz=function(){this.S()};
   g.k.yK=function(){var a;if("rendering"===this.u){this.i.Bf("pause");m0(this,"unmuted_pause");var b=(null===(a=i0(this))||void 0===a?void 0:a.pauseCommands)||[];this.B.get().Id(b,this.layout.layoutId);this.K(2)}};
   g.k.zK=function(){var a;if("rendering"===this.u){this.i.Bf("resume");m0(this,"unmuted_resume");var b=(null===(a=i0(this))||void 0===a?void 0:a.resumeCommands)||[];this.B.get().Id(b,this.layout.layoutId)}};
   g.k.gf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.Y=b,this.Do(a,b))};
   g.k.Xc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.Y=void 0,this.Na.get().I.V().N("html5_check_ad_position_and_reset_on_new_ad_playback_csi")?(a="normal"!==c||this.position+1===this.Ka)&&this.Mu(a):this.Mu(!0),this.sM(c),this.K(0),c){case "abandoned":var d;if(S_(this.i,"impression")){Q_(this.i,"abandon");k0(this,"unmuted_abandon");var e=(null===(d=i0(this))||void 0===d?void 0:d.abandonCommands)||[];this.B.get().Id(e,this.layout.layoutId)}break;case "normal":Q_(this.i,
   "complete");k0(this,"unmuted_complete");d=(null===(e=i0(this))||void 0===e?void 0:e.completeCommands)||[];this.B.get().Id(d,this.layout.layoutId);break;case "skipped":var f;Q_(this.i,"skip");d=(null===(f=i0(this))||void 0===f?void 0:f.skipCommands)||[];this.B.get().Id(d,this.layout.layoutId)}};
   g.k.Dv=function(){return this.layout.layoutId};
   g.k.CD=function(){return this.Ja};
   g.k.Aj=function(a){if("not_rendering"!==this.u){this.Ea||(a=new g.dI(a.state,new g.SJ),this.Ea=!0);var b=2===this.Ga.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&g0(a)&&this.Aa():b?g.fI(a,2)?this.RH():(g0(a)?this.K(1):g.fI(a,4)&&!g.fI(a,2)&&this.yK(),0>eI(a,4)&&!(0>eI(a,2))&&this.zK()):this.lz()}};
   g.k.pw=function(){var a;if("rendering"===this.u){Q_(this.i,"active_view_measurable");var b=(null===(a=i0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Id(b,this.layout.layoutId)}};
   g.k.ow=function(){var a;if("rendering"===this.u){Q_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=i0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Id(b,this.layout.layoutId)}};
   g.k.qw=function(){var a;if("rendering"===this.u){Q_(this.i,"active_view_viewable");var b=(null===(a=i0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.B.get().Id(b,this.layout.layoutId)}};
   g.k.Mu=function(a){this.fd.get().Mu(X(this.layout.Ia,"metadata_type_ad_placement_config").kind,a,this.position,this.Ka,!1)};
   g.k.onFullscreenToggled=function(a){var b,c;"rendering"===this.u&&(a?(this.i.Bf("fullscreen"),m0(this,"unmuted_fullscreen"),a=(null===(b=i0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.B.get().Id(a,this.layout.layoutId)):(this.i.Bf("end_fullscreen"),m0(this,"unmuted_end_fullscreen"),a=(null===(c=i0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.B.get().Id(a,this.layout.layoutId)))};
   g.k.onVolumeChange=function(){var a,b;if("rendering"===this.u)if(this.Ga.get().isMuted()){Q_(this.i,"mute");k0(this,"unmuted_mute");var c=(null===(a=i0(this))||void 0===a?void 0:a.muteCommands)||[];this.B.get().Id(c,this.layout.layoutId)}else Q_(this.i,"unmute"),k0(this,"unmuted_unmute"),c=(null===(b=i0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.B.get().Id(c,this.layout.layoutId)};
   g.k.yg=function(){};
   g.k.uj=function(){};g.w(o0,j0);g.k=o0.prototype;g.k.Hn=function(){};
   g.k.oo=function(){var a=this.Va.get();a.ZA===this&&(a.ZA=null);m_(this.Na.get())?this.J.stop():this.D.stop()};
   g.k.Co=function(){this.Va.get().ZA=this;wJ();this.Aa()};
   g.k.rM=function(){zKa(this)};
   g.k.RH=function(){};
   g.k.lq=function(){m_(this.Na.get())?this.J.stop():this.D.stop();j0.prototype.yK.call(this)};
   g.k.xq=function(){zKa(this);j0.prototype.zK.call(this)};
   g.k.Nl=function(){return X(this.Kb().Ia,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
   g.k.Do=function(){m_(this.Na.get())?this.J.stop():this.D.stop()};
   g.k.Qb=function(){var a=Date.now(),b=a-this.ma;this.ma=a;this.C+=b;this.C>=this.Nl()?(this.C=this.Nl(),l0(this,this.C/1E3,!0),n0(this,this.C),this.S()):(l0(this,this.C/1E3),n0(this,this.C))};
   g.k.sM=function(){};
   g.k.xi=function(){};g.w(p0,j0);g.k=p0.prototype;g.k.Hn=function(){X(this.Kb().Ia,"metadata_type_player_bytes_callback_ref").current=this};
   g.k.oo=function(){X(this.Kb().Ia,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.J.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()};
   g.k.Co=function(a){var b=X(a.Ia,"metadata_type_ad_video_id"),c=X(a.Ia,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Ra.get().I.V().S.add(b,{Ou:c});(b=X(a.Ia,"metadata_type_sodar_extension_data"))&&hKa(this.Ua.get(),b);fKa(this.Ga.get(),!1);b=this.Gd.get();a=X(a.Ia,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.Gd.get().I.playVideo(2)};
   g.k.rM=function(){var a;this.D.stop();this.C="adcompletioncuerange:"+this.Kb().layoutId;this.J.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=(null===(a=Vz(this.ma.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Jc.get().Oa("onAdStart",this.adCpn)};
   g.k.RH=function(){this.S()};
   g.k.Nl=function(){var a;return null===(a=Vz(this.ma.get(),2))||void 0===a?void 0:a.playbackDurationMs};
   g.k.JA=function(){this.i.Bf("clickthrough")};
   g.k.Do=function(){this.D.stop();fKa(this.Ga.get(),!0)};
   g.k.onCueRangeEnter=function(a){a!==this.C?T("Received CueRangeEnter signal for unknown layout.",this.Dd(),this.Kb(),{cueRangeId:a}):(this.J.get().removeCueRange(this.C),this.C=void 0,a=X(this.Kb().Ia,"metadata_type_video_length_seconds"),l0(this,a,!0),Q_(this.i,"complete"))};
   g.k.sM=function(a){"abandoned"!==a&&this.Jc.get().Oa("onAdComplete");this.Jc.get().Oa("onAdEnd",this.adCpn)};
   g.k.onCueRangeExit=function(){};
   g.k.xi=function(a){"rendering"===this.u&&l0(this,a)};g.w(q0,b0);g.k=q0.prototype;g.k.Dd=function(){return this.i.Dd()};
   g.k.Kb=function(){return this.i.Kb()};
   g.k.Hn=function(){this.i.init()};
   g.k.oo=function(){this.i.release()};
   g.k.lq=function(){this.i.lq()};
   g.k.xq=function(){this.i.xq()};
   g.k.Bw=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Dd(),this.Kb(),{requestingSlot:a,requestingLayout:b})};
   g.k.Co=function(a){this.i.startRendering(a)};
   g.k.Do=function(a,b){this.i.gf(a,b)};
   g.k.Lc=function(a,b){this.i.Lc(a,b)};
   g.k.Xc=function(a,b,c){b0.prototype.Xc.call(this,a,b,c);this.i.Xc(a,b,c);b.layoutId===this.Kb().layoutId&&NJ(this.fd.get())};
   g.k.GL=function(){this.i.lz()};
   g.k.xi=function(a){this.i.xi(a)};
   g.k.EM=function(a){this.i.Aj(a)};
   g.k.wf=function(a,b,c){this.i.mw(a,b,c)};
   g.k.onFullscreenToggled=function(a){this.i.onFullscreenToggled(a)};
   g.k.yg=function(a){this.i.yg(a)};
   g.k.uj=function(a){this.i.uj(a)};
   g.k.onVolumeChange=function(){this.i.onVolumeChange()};r0.prototype.Oe=function(a,b,c,d){if(a=CKa(a,b,c,d,this.Ze,this.J,this.Va,this.D,this.S,this.Gd,this.K,this.Ga,this.B,this.fd,this.Jc,this.i,this.u,this.C,this.Na))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(s0,g.I);g.k=s0.prototype;g.k.uM=function(a){var b;this.i?DKa(this,this.i,a):null===(b=this.C)||void 0===b?void 0:b.get().Xn(a.identifier)};
   g.k.kM=function(){};
   g.k.hh=function(a){this.i&&this.i.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)};
   g.k.wj=function(a){this.i&&this.i.contentCpn!==a&&T("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn},!0);this.i=null};
   g.k.xa=function(){g.I.prototype.xa.call(this);this.i=null};g.w(t0,g.I);g.k=t0.prototype;g.k.Lc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&HY(b,this.S)){var d=Vz(this.C.get(),2),e=this.J(b,d);e?Uz(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[QJa(c.u.get(),e.contentCpn,e.ut,function(h){return c.K(h.slotId,"core",e,NY(c.i.get(),h))},e.OK)];
   e.instreamAdPlayerUnderlayRenderer&&WJa(c.Na.get())&&f.push(EKa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.xf=function(){};
   g.k.Bj=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Ai=function(){};
   g.k.Xc=function(){};var r1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=IKa.prototype;g.k.init=function(){};
   g.k.Dd=function(){return this.slot};
   g.k.Gy=function(){this.callback.xf(this.slot)};
   g.k.Hy=function(){this.callback.yf(this.slot)};
   g.k.release=function(){};v0.prototype.Oe=function(a,b){return new IKa(a,b)};g.k=JKa.prototype;g.k.init=function(){};
   g.k.Dd=function(){return this.slot};
   g.k.Gy=function(){A_(this.Ga.get(),"ad-showing");this.callback.xf(this.slot)};
   g.k.Hy=function(){this.callback.yf(this.slot);B_(this.Ga.get(),"ad-showing")};
   g.k.release=function(){};g.k=KKa.prototype;g.k.init=function(){};
   g.k.Dd=function(){return this.slot};
   g.k.Gy=function(){A_(this.Ga.get(),"ad-showing");A_(this.Ga.get(),"ad-interrupting");this.u=this.Ga.get().isAtLiveHead();this.i=Math.ceil(Date.now()/1E3);this.callback.xf(this.slot)};
   g.k.Hy=function(){B_(this.Ga.get(),"ad-showing");B_(this.Ga.get(),"ad-interrupting");var a=this.u?Infinity:this.Ga.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.i;this.Ga.get().I.seekTo(a,void 0,void 0,1);this.callback.yf(this.slot)};
   g.k.release=function(){};g.k=LKa.prototype;g.k.init=function(){};
   g.k.Dd=function(){return this.slot};
   g.k.Gy=function(){A_(this.Ga.get(),"ad-showing");A_(this.Ga.get(),"ad-interrupting");this.callback.xf(this.slot)};
   g.k.Hy=function(){this.Ga.get().wp();B_(this.Ga.get(),"ad-showing");B_(this.Ga.get(),"ad-interrupting");this.callback.yf(this.slot)};
   g.k.release=function(){this.Ga.get().wp()};w0.prototype.Oe=function(a,b){if(Xz(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new JKa(a,b,this.Ga);if(b.Vb instanceof MZ&&Xz(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new KKa(a,b,this.Ga);if(Xz(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new LKa(a,b,this.Ga);throw new eZ("Unsupported slot with type "+b.rb+" and client metadata: "+(JY(b.Ia)+" in PlayerBytesSlotAdapterFactory."));};g.w(y0,g.I);y0.prototype.i=function(a){for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof wZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Fe===a&&b.push(d)}b.length?cZ(this.aC(),b):T("Mute requested but no registered triggers can be activated.")};g.w(z0,y0);g.k=z0.prototype;g.k.Ff=function(a,b){if(b)if("survey-submit"===a)MKa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof wZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Fe===b&&a.push(d)}a.length&&cZ(this.aC(),a)}else"survey-single-select-answer-button"===a&&MKa(this,b)};
   g.k.cE=function(a){y0.prototype.i.call(this,a)};
   g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof xZ||b instanceof wZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Gb.set(b.triggerId,new x0(a,b,c,d))};
   g.k.Pi=function(a){this.Gb.delete(a.triggerId)};
   g.k.aE=function(){};
   g.k.ZD=function(){};
   g.k.mz=function(){};g.w(A0,g.I);g.k=A0.prototype;
   g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof ZZ||b instanceof $Z||b instanceof a_||b instanceof b_||b instanceof c_||b instanceof QZ||b instanceof VZ||b instanceof vZ||b instanceof DZ||b instanceof PZ||b instanceof UZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new x0(a,b,c,d);this.Gb.set(b.triggerId,a);b instanceof c_&&this.D.has(b.Ig)&&
   cZ(this.i(),[a]);b instanceof ZZ&&this.B.has(b.Ig)&&cZ(this.i(),[a]);b instanceof VZ&&this.u.has(b.Fe)&&cZ(this.i(),[a])};
   g.k.Pi=function(a){this.Gb.delete(a.triggerId)};
   g.k.Nh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof c_&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&cZ(this.i(),b)};
   g.k.Cj=function(a){this.D.delete(a.slotId);a=[];for(var b=g.r(this.Gb.values()),c=b.next();!c.done;c=b.next());0<a.length&&cZ(this.i(),a)};
   g.k.Bj=function(a){for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof QZ&&e.rb===a.rb&&e.i!==a.slotId&&b.push(d)}0<b.length&&cZ(this.i(),b)};
   g.k.xf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof ZZ&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&cZ(this.i(),b)};
   g.k.yf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof $Z)a.slotId===d.trigger.Ig&&b.push(d);else if(d.trigger instanceof UZ){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Fe)&&b.push(d)}0<b.length&&cZ(this.i(),b)};
   g.k.Lk=function(a){for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof a_&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&cZ(this.i(),b)};
   g.k.Mk=function(a){for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof b_&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&cZ(this.i(),b)};
   g.k.yj=function(a,b){this.J.add(b.layoutId)};
   g.k.zj=function(a,b){this.J.delete(b.layoutId)};
   g.k.Lc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Gb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof VZ)b.layoutId===e.trigger.Fe&&c.push(e);else if(e.trigger instanceof PZ){var f=e.trigger;a.rb===f.rb&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof UZ&&(f=e.trigger,b.layoutId===f.Fe&&this.C.has(f.slotId)&&c.push(e));0<c.length&&cZ(this.i(),c)};
   g.k.Xc=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Gb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof vZ&&b.layoutId===e.trigger.Fe&&a.push(e),e.trigger instanceof DZ&&b.layoutId===e.trigger.Fe&&"error"===c&&a.push(e);0<a.length&&cZ(this.i(),a)};
   g.k.Ai=function(){};
   g.k.hh=function(){this.C.clear()};
   g.k.wj=function(){};g.w(B0,g.I);B0.prototype.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof Yz||b instanceof XZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d))};
   B0.prototype.Pi=function(a){this.Gb.delete(a.triggerId)};
   B0.prototype.hh=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.r(this.Gb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof Yz&&l.trigger.Ho===a&&f.push(l);e.call(d,b,g.v(f));b.push.apply(b,g.v(NKa(this.Gb,a,!1,c)));b.length&&cZ(this.i(),b)};
   B0.prototype.wj=function(a){var b=[];b.push.apply(b,g.v(NKa(this.Gb,a,!0,!1)));b.length&&cZ(this.i(),b)};g.w(C0,g.I);g.k=C0.prototype;
   g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof MZ)D0(this,a,b,c,d,e,b.i.start,b.i.end,b.Ho,b.visible);else if(b instanceof WZ)D0(this,a,b,c,d,e,b.i.start,b.i.end,b.Ho,!1);else if(b instanceof TZ)D0(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Ho,b.visible);else throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
   };
   g.k.Pi=function(a){var b=this.Gb.get(a.triggerId);b&&this.B.get().removeCueRange(b.Ay);this.Gb.delete(a.triggerId)};
   g.k.onCueRangeEnter=function(a){if(a=OKa(this,a))if(a=this.Gb.get(a))if(g.U(o_(this.Ga.get()),32))this.i.add(a.Ay);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;(b instanceof MZ||b instanceof TZ)&&cZ(this.u(),[a.bundle])}};
   g.k.onCueRangeExit=function(a){if(a=OKa(this,a))if(a=this.Gb.get(a))this.i.delete(a.Ay),a.bundle.trigger instanceof WZ&&cZ(this.u(),[a.bundle])};
   g.k.Aj=function(a){if(0>eI(a,16)){a=g.r(this.i);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.i.clear()}};
   g.k.xi=function(){};
   g.k.onFullscreenToggled=function(){};
   g.k.yg=function(){};
   g.k.uj=function(){};
   g.k.onVolumeChange=function(){};g.w(E0,g.I);g.k=E0.prototype;g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof zZ||b instanceof YZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d))};
   g.k.Pi=function(a){this.Gb.delete(a.triggerId)};
   g.k.Ym=function(){};
   g.k.pk=function(){};
   g.k.Lc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.i?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
   g.k.Xc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(this.i=null)};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.Bj=function(){};
   g.k.xf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.u?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
   g.k.yf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null===this.u?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Ai=function(){};
   g.k.sy=function(){null!=this.i&&f0(this,this.i)};
   g.k.Jy=function(a){if(null===this.u){for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YZ&&d.trigger.slotId===a&&b.push(d);b.length&&cZ(this.B(),b)}};g.w(F0,g.I);g.k=F0.prototype;g.k.Ai=function(a,b){for(var c=[],d=g.r(this.Gb.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&&cZ(this.i(),c)};
   g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof HJa))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d))};
   g.k.Pi=function(a){this.Gb.delete(a.triggerId)};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.Bj=function(){};
   g.k.xf=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Lc=function(){};
   g.k.Xc=function(){};g.w(G0,g.I);G0.prototype.xa=function(){this.D.get().removeListener(this);g.I.prototype.xa.call(this)};H0.prototype.fetch=function(a){var b=a.IJ;return this.Vo.fetch(a.CO,{Tu:void 0===a.Tu?void 0:a.Tu,Cd:b}).then(function(c){return PKa(c,b)})};g.w(I0,g.I);g.k=I0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
   g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
   g.k.onAdUxClicked=function(a,b){J0(this,function(c){c.Ff(a,b)})};
   g.k.YE=function(a){J0(this,function(b){b.aE(a)})};
   g.k.XE=function(a){J0(this,function(b){b.ZD(a)})};
   g.k.xT=function(a){J0(this,function(b){b.mz(a)})};g.w(K0,g.I);g.k=K0.prototype;g.k.hh=function(){this.B=new GJ(this,VJa(this.Na.get()));this.i=new HJ;RKa(this)};
   g.k.wj=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.sF=function(a){this.fB.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.uM(a)};
   g.k.mM=function(a){g.Pb(this.i.i,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.kM(a)};
   g.k.fF=function(a){var b=Vz(this.C.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,(b||JZ(this.Na.get()))&&u_(this.Va.get(),{cuepointTrigger:{event:SKa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.u.add(e),b?this.B.reduce(e):JZ(this.Na.get())&&0!==this.I.getCurrentTime(1)&&"start"===e.event&&this.sF(e)};
   g.k.xa=function(){this.I.getVideoData(1).unsubscribe("cuepointupdated",this.fF,this);this.listeners.length=0;this.u.clear();this.fB.length=0;g.I.prototype.xa.call(this)};N0.prototype.addListener=function(a){this.listeners.push(a)};
   N0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=O0.prototype;g.k.Dd=function(){return this.slot};
   g.k.Kb=function(){return this.layout};
   g.k.init=function(){var a;this.D.get().addListener(this);this.Ga.get().addListener(this);this.Hn();var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=X(this.layout.Ia,"metadata_type_layout_exit_ms"),d=null===(a=this.B.get().rp)||void 0===a?void 0:a.clientPlaybackNonce,e=this.layout.Dc.adClientDataEntry;u_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:e}});var f=this.D.get();f=IJ(f.i,b,c);null!==f&&(u_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:f-
   b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.K.get().lp(f,c))};
   g.k.release=function(){this.oo();this.D.get().removeListener(this);this.Ga.get().removeListener(this)};
   g.k.startRendering=function(){this.Co();this.callback.Lc(this.slot,this.layout);Q_(this.i,"ad_placement_start")};
   g.k.gf=function(a,b){this.Do(b);null!==this.driftRecoveryMs&&(P0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(UKa(this)-X(this.layout.Ia,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ga.get().I.vn()).toString()}),this.driftRecoveryMs=null);this.callback.Xc(this.slot,this.layout,b);"normal"!==b?a=!1:(a=this.Ga.get().getCurrentTimeSec(2,!0),b=X(this.layout.Ia,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&Q_(this.i,"ad_placement_end")};
   g.k.uM=function(){};
   g.k.kM=function(a){var b,c=X(this.layout.Ia,"metadata_type_layout_enter_ms"),d=X(this.layout.Ia,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(u_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.B.get().rp)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Dc.adClientDataEntry}}),this.K.get().lp(a,d))};
   g.k.xi=function(a){this.aM(a);a=this.Ga.get().getCurrentTimeSec(2,!0);if(FJa(this.S.get(),this.layout.layoutId)){var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=UKa(this),e=this.Ga.get().I.vn(),f=Math.min(a+e,d/1E3);f<=a?P0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(P0(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.Ga.get().I.seekTo(f,void 0,void 0,1))}}};
   g.k.yg=function(){};
   g.k.uj=function(){};
   g.k.onVolumeChange=function(){};g.w(Q0,O0);g.k=Q0.prototype;g.k.Hn=function(){this.B.get().addListener(this);this.J.forEach(function(a){a.init()});
   null!=this.C&&this.Va.get().Yf("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)};
   g.k.oo=function(){this.B.get().removeListener(this);this.u=null;this.J.forEach(function(a){a.release()})};
   g.k.Co=function(){var a;if(this.u)T("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var b=null===(a=this.B.get().rp)||void 0===a?void 0:a.layoutId;WKa(this,b)}};
   g.k.Do=function(a){var b,c,d,e;null===(c=null===(b=this.u)||void 0===b?void 0:b.Zh)||void 0===c?void 0:c.gf(null===(e=null===(d=this.u)||void 0===d?void 0:d.Zh)||void 0===e?void 0:e.Kb(),a);this.u=null};
   g.k.AM=function(a){var b=a.videoId;a=a.layoutId;var c,d,e,f,h;"nPpU29QrbiU"===b&&this.Va.get().Yf("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.u+";slrslid."+(null===(d=null===(c=this.u)||void 0===c?void 0:c.Zh)||void 0===d?void 0:d.Kb().layoutId));this.u&&(null===(e=this.u.Zh)||void 0===e?void 0:e.Kb().layoutId)!==a&&(null===(f=this.u.Zh)||void 0===f?void 0:f.gf(null===(h=this.u.Zh)||void 0===h?void 0:h.Kb(),"normal"),WKa(this,a))};
   g.k.aM=function(){};
   g.k.Aj=function(){};
   g.k.onFullscreenToggled=function(){};g.k=eLa.prototype;g.k.Dd=function(){return this.slot};
   g.k.Kb=function(){return this.layout};
   g.k.init=function(){var a=this;X(this.layout.Ia,"metadata_type_player_bytes_callback_ref").current=this;this.Cc=XKa(this.slot,this.layout,X(this.layout.Ia,"metadata_type_player_vars"),X(this.layout.Ia,"metadata_type_layout_enter_ms"),X(this.layout.Ia,"metadata_type_layout_exit_ms"),1E3*X(this.layout.Ia,"metadata_type_video_length_seconds"),this.D.get(),this.K.get(),function(){var c=Object,d=c.assign,e=Object.assign({layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},U0(a.layout));var f=X(a.slot.Ia,
   "metadata_type_fulfilled_layout");f=Object.assign(Object.assign({},U0(f)),{adPlacementConfig:X(f.Ia,"metadata_type_ad_placement_config"),subLayouts:X(f.Ia,"metadata_type_sub_layouts").map(U0)});return d.call(c,e,{compositeLayout:f,hasSurveyOverlay:Wz(a.layout.Ia,"metadata_type_survey_overlay"),surveyOverlay:X(a.layout.Ia,"metadata_type_survey_overlay")})},this.Va.get());
   this.Ga.get().addListener(this);var b=X(this.layout.Ia,"metadata_type_video_length_seconds");p_(this.B.get(),this.layout.layoutId,b,this);aZ(this.callback,this.slot,this.layout)};
   g.k.release=function(){this.Ga.get().removeListener(this);q_(this.B.get(),this.layout.layoutId)};
   g.k.startRendering=function(){var a=this;Wz(this.layout.Ia,"metadata_type_survey_overlay")&&this.Va.get().Yf("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.i)T("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:Wz(this.layout.Ia,"metadata_type_survey_overlay"),surveyOverlay:X(this.layout.Ia,"metadata_type_survey_overlay")});else{this.i={qj:null,Yw:!1};YKa(this.slot,this.layout,this.J.get());Q_(this.u,"start");if(l_(this.Na.get())){var b=o_(this.Ga.get()),
   c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);this.Va.get().Yf("ads_teois","PSt."+b.state.toString(16)+";cts."+d);ZKa(this.u,this.i.qj,b,c,d,function(){return void gLa(a,"teois")})}bZ(this.callback,this.slot,this.layout);
   Wz(this.layout.Ia,"metadata_type_survey_overlay")&&this.Va.get().Yf("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
   g.k.gf=function(a,b){var c=this;if(this.i){if(l_(this.Na.get()))if(null===this.Cc)T("Unexpected media sub layout exited without a timeline playback ID");else{a=X(this.layout.Ia,"metadata_type_video_length_seconds");var d=z_(this.Ga.get(),this.Cc);this.Va.get().Yf("ads_stts","vls."+a+";cts."+d);this.u.B=d;S0(this.u,null,this.i.qj,a,d,function(e){return void fLa(c,e,"fue")})}this.i=null;
   CJ(this.callback,this.slot,this.layout,b)}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
   g.k.mw=function(){};
   g.k.lz=function(){};
   g.k.xi=function(a){var b=this;if(this.i){if(S_(this.u,"impression")){var c=o_(this.Ga.get()),d=X(this.layout.Ia,"metadata_type_video_length_seconds");T0(this.u,c,a,this.i.qj,d,function(e){return void fLa(b,e,"tpaqe")})}this.i.qj=a}};
   g.k.Aj=function(a){var b=this;if(this.i){l_(this.Na.get())||this.i.Yw||(this.i.Yw=!0,a=new g.dI(a.state,new g.SJ));var c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);this.Va.get().Yf("ads_teosc","PSt."+a.state.state.toString(16)+";cts."+d);R0(this.u,this.i.qj,a,c,d,!l_(this.Na.get()),function(){return void gLa(b,"teosc")})}};
   g.k.onFullscreenToggled=function(a){$Ka(this.u,a)};
   g.k.yg=function(){};
   g.k.uj=function(){};
   g.k.Bw=function(){};
   g.k.onVolumeChange=function(){};
   g.k.Lc=function(){};
   g.k.Xc=function(){};
   g.k.lq=function(){};
   g.k.xq=function(){};
   g.k.JA=function(){aLa(this.u)};
   g.k.pw=function(){bLa(this.u)};
   g.k.ow=function(){cLa(this.u)};
   g.k.qw=function(){dLa(this.u)};g.w(V0,O0);g.k=V0.prototype;
   g.k.Hn=function(){var a=this;X(this.layout.Ia,"metadata_type_player_bytes_callback_ref").current=this;var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=X(this.layout.Ia,"metadata_type_layout_exit_ms");this.Cc=XKa(this.slot,this.layout,X(this.layout.Ia,"metadata_type_player_vars"),b,c,1E3*X(this.layout.Ia,"metadata_type_video_length_seconds"),this.K.get(),this.Z.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:X(a.layout.Ia,"metadata_type_ad_placement_config")}},
   this.Va.get());
   var d=X(this.layout.Ia,"metadata_type_video_length_seconds");p_(this.C.get(),this.layout.layoutId,d,this)};
   g.k.oo=function(){q_(this.C.get(),this.layout.layoutId)};
   g.k.Co=function(){var a=this;if(this.u)T("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={qj:null,Yw:!1},YKa(this.slot,this.layout,this.J.get()),Q_(this.i,"start"),l_(this.Na.get())){var b=o_(this.Ga.get()),c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);ZKa(this.i,this.u.qj,b,c,d,function(){return void hLa(a,"teois")})}};
   g.k.Do=function(){var a=this;if(this.u){if(l_(this.Na.get()))if(null===this.Cc)T("Unexpected single media layout exited without a timeline playback ID");else{var b=X(this.layout.Ia,"metadata_type_video_length_seconds"),c=z_(this.Ga.get(),this.Cc);this.i.B=c;S0(this.i,null,this.u.qj,b,c,function(d){return void iLa(a,d,"fue")})}this.u=null}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
   g.k.aM=function(a){var b=this;if(this.u){if(S_(this.i,"impression")){var c=o_(this.Ga.get()),d=X(this.layout.Ia,"metadata_type_video_length_seconds");T0(this.i,c,a,this.u.qj,d,function(e){return void iLa(b,e,"tpaqe")})}this.u.qj=a}};
   g.k.Aj=function(a){var b=this;if(this.u){l_(this.Na.get())||this.u.Yw||(this.u.Yw=!0,a=new g.dI(a.state,new g.SJ));var c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);R0(this.i,this.u.qj,a,c,d,!l_(this.Na.get()),function(){return void hLa(b,"teosc")})}};
   g.k.onFullscreenToggled=function(a){$Ka(this.i,a)};
   g.k.JA=function(){aLa(this.i)};
   g.k.pw=function(){bLa(this.i)};
   g.k.ow=function(){cLa(this.i)};
   g.k.qw=function(){dLa(this.i)};W0.prototype.Oe=function(a,b,c,d){if(Wz(c.Ia,"metadata_type_dai")){var e=X(d.Ia,"metadata_type_ad_placement_config");L_(d,{Vd:"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(" "),cf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new N_(d.tc,this.Va,e,d.layoutId,null),e=new V0(a,c,d,this.i,this.B,this.K,this.D,this.Ga,e,this.Va,this.C,this.J,this.u,this.Na)):e=null;
   if(e)return e;a:{var f=X(d.Ia,"metadata_type_sub_layouts"),h=X(d.Ia,"metadata_type_ad_placement_config");if(L_(d,{Vd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],cf:["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=X(l.Ia,"metadata_type_media_sub_layout_index");if(!L_(l,{Vd:"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(" "),
   cf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new N_(l.tc,this.Va,h,l.layoutId,m);e.push(new eLa(b,c,l,this.B,m,this.Ga,this.K,this.u,this.C,this.Na,this.Va,this.i))}b=new N_(d.tc,this.Va,h,d.layoutId);a=new Q0(a,c,d,this.i,this.B,this.D,this.Ga,b,this.Va,this.J,e)}else a=null}if(a)return a}else if(a=CKa(a,b,c,d,this.Ze,this.ya,this.Va,this.u,this.C,this.Gd,this.i,this.Ga,this.Y,this.fd,this.Jc,this.S,this.Z,this.ma,this.Na))return a;throw new WY("Unsupported layout with type: "+d.layoutType+
   " and client metadata: "+JY(d.Ia)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(X0,g.I);X0.prototype.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof GZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d))};
   X0.prototype.Pi=function(a){this.Gb.delete(a.triggerId)};g.w(Z0,g.I);
   Z0.prototype.Fi=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new eZ("Tried to re-register the trigger.");a=new x0(a,b,c,d);if(a.trigger instanceof MJa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof yZ)this.B.set(a.trigger.triggerId,a);else throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&cZ(this.C(),[a])};
   Z0.prototype.Pi=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
   Z0.prototype.AM=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.v(jLa(this.B,this.i)));null!=a&&b.push.apply(b,g.v(jLa(this.u,a)));this.i=a;b.length&&cZ(this.C(),b)}};g.k=$0.prototype;g.k.yr=function(a,b,c,d,e,f){return this.I.yr(a,b,c,d,e,f)};
   g.k.lp=function(a,b){this.I.lp(a,b)};
   g.k.zt=function(a,b,c){this.I.zt(a,b,c)};
   g.k.Xn=function(a){this.I.Xn(a)};
   g.k.Sv=function(a,b,c,d,e,f){this.I.Sv(a,b,c,d,e,f)};a1.prototype.addListener=function(a){this.listeners.add(a)};
   a1.prototype.removeListener=function(a){this.listeners.delete(a)};g.w(kLa,uH);g.w(b1,U_);g.k=b1.prototype;g.k.Ff=function(a,b){W_("image-companion",a,this.J.get().Ki,this.Va.get(),this.B,this.C,this.Dd(),this.Kb(),b)};
   g.k.startRendering=function(a){V_(this.D,this.Dd(),this.Kb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new kLa(b,c,d,e,f)},this.i);
   U_.prototype.startRendering.call(this,a)};
   g.k.Lc=function(a,b){b.layoutId===this.layout.layoutId?Q_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Va.get().Eh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
   g.k.Xc=function(){};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.Bj=function(){};
   g.k.xf=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Ai=function(){};
   g.k.xa=function(){this.Ze().Pd.delete(this);U_.prototype.xa.call(this)};g.w(mLa,uH);g.w(c1,U_);g.k=c1.prototype;g.k.Ff=function(a,b){W_("shopping-companion",a,this.J.get().Ki,this.Va.get(),this.B,this.C,this.Dd(),this.Kb(),b)};
   g.k.startRendering=function(a){V_(this.D,this.Dd(),this.Kb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new mLa(b,c,d,e,f)},this.i);
   U_.prototype.startRendering.call(this,a)};
   g.k.Lc=function(a,b){b.layoutId===this.layout.layoutId?Q_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Va.get().Eh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
   g.k.Xc=function(){};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.Bj=function(){};
   g.k.xf=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Ai=function(){};
   g.k.xa=function(){this.Ze().Pd.delete(this);U_.prototype.xa.call(this)};oLa.prototype.Oe=function(a,b,c,d){if(L_(d,rKa()))return new X_(a,c,d,this.i,this.Va,this.Ze,this.B,this.u);if(L_(d,lLa()))return new b1(a,c,d,this.i,this.Va,this.Ze,this.B,this.u);if(L_(d,nLa()))return new c1(a,c,d,this.i,this.Va,this.Ze,this.B,this.u);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(d1,uH);g.w(e1,U_);e1.prototype.init=function(){U_.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_player_underlay_renderer");this.i.push(new d1(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Dc}))};
   e1.prototype.Ff=function(){};
   e1.prototype.startRendering=function(a){U_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
   e1.prototype.xa=function(){U_.prototype.xa.call(this)};pLa.prototype.Oe=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(O_()),f=e.next();!f.done;f=e.next())b.push(f.value);if(L_(d,{Vd:b,cf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new e1(a,c,d,this.i);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.w(f1,U_);f1.prototype.startRendering=function(a){var b=P_(this.B),c={adsClientData:this.layout.Dc};this.i.push(new zJ(X(this.layout.Ia,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Kb().layoutId,c,!0,!0));U_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
   f1.prototype.Ff=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Bw(this.slot,this.layout):T("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
   f1.prototype.xa=function(){U_.prototype.xa.call(this)};var h1=new g.cg(320,63);g.w(k1,uH);g.w(l1,U_);g.k=l1.prototype;g.k.xi=function(){};
   g.k.Aj=function(){};
   g.k.onFullscreenToggled=function(){};
   g.k.yg=function(a){a&&Y0(this.B,this.layout)};
   g.k.uj=function(a){var b=j1(this.layout);if(this.D=i1(a,eKa(this.Ga.get())))b.onErrorCommand&&this.J.get().executeCommand(b.onErrorCommand,this.layout.layoutId),Y0(this.B,this.layout)};
   g.k.onVolumeChange=function(){};
   g.k.Dv=function(){return this.Kb().layoutId};
   g.k.CD=function(){return this.D};
   g.k.Ff=function(a){this.C.Ff(a);"in_video_overlay_close_button"===a&&Y0(this.B,this.layout)};
   g.k.mz=function(a){"invideo-overlay"===a&&Y0(this.B,this.layout)};
   g.k.hm=function(){this.C.hm()};
   g.k.startRendering=function(a){U_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a);this.Od.To=this};
   g.k.gf=function(a,b){U_.prototype.gf.call(this,a,b);T1(this.Od,this)};
   g.k.init=function(){U_.prototype.init.call(this);v_(this.Va.get(),this);this.Ga.get().addListener(this);this.i.push(new k1(j1(this.layout),P_(this.K),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
   g.k.release=function(){U_.prototype.release.call(this);this.Ga.get().removeListener(this);w_(this.Va.get(),this)};g.w(m1,U_);g.k=m1.prototype;g.k.init=function(){U_.prototype.init.call(this);v_(this.Va.get(),this);this.Ga.get().addListener(this);this.i.push(new k1(j1(this.layout),P_(this.S),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
   g.k.hm=function(){this.C.hm()};
   g.k.startRendering=function(a){U_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a);this.Od.To=this};
   g.k.gf=function(a,b){U_.prototype.gf.call(this,a,b);T1(this.Od,this)};
   g.k.Ff=function(a){this.C.Ff(a);"in_video_overlay_close_button"===a&&Y0(this.B,this.layout)};
   g.k.aE=function(a){if("invideo-overlay"===a){a=uLa(this.J,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
   g.k.mz=function(a){"invideo-overlay"===a&&Y0(this.B,this.layout)};
   g.k.ZD=function(a){if("invideo-overlay"===a){a=uLa(this.J,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
   g.k.xi=function(){};
   g.k.Aj=function(){};
   g.k.onFullscreenToggled=function(){};
   g.k.yg=function(a){a&&Y0(this.B,this.layout)};
   g.k.uj=function(a){var b=j1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=eKa(this.Ga.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.cg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.cg(0,0)}if(this.D=i1(a,d,c))b.onErrorCommand&&this.K.get().executeCommand(b.onErrorCommand,this.layout.layoutId),Y0(this.B,this.layout)};
   g.k.onVolumeChange=function(){};
   g.k.Dv=function(){return this.Kb().layoutId};
   g.k.CD=function(){return this.D};
   g.k.release=function(){U_.prototype.release.call(this);this.Ga.get().removeListener(this);w_(this.Va.get(),this)};n1.prototype.Ff=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Ga.get().Yl(1))||this.Ga.get().pauseVideo())};
   n1.prototype.hm=function(){this.i||this.Ga.get().resumeVideo(1)};g.w(o1,U_);g.k=o1.prototype;g.k.init=function(){U_.prototype.init.call(this);this.Ga.get().addListener(this)};
   g.k.startRendering=function(a){var b=X(this.layout.Ia,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new uJ(b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0));U_.prototype.startRendering.call(this,a);this.callback.Lc(this.slot,a)};
   g.k.Lc=function(){};
   g.k.Ff=function(a,b){this.Na.get().I.V().N("html5_disable_survey_wta_play_and_pause")||b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.lq(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.xq(this.slot,this.layout):T("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
   g.k.uj=function(a){450>a.width&&Y0(this.B,this.layout)};
   g.k.onVolumeChange=function(){};
   g.k.xi=function(){};
   g.k.onFullscreenToggled=function(){};
   g.k.yg=function(){};
   g.k.Aj=function(){};
   g.k.xa=function(){U_.prototype.xa.call(this)};
   g.k.release=function(){U_.prototype.release.call(this);this.Ga.get().removeListener(this)};tLa.prototype.Oe=function(a,b,c,d){if(b=$_(a,c,d,this.i,this.Ga,this.Va,this.J,this.Od))return b;if(L_(d,sLa()))return new m1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));if(L_(d,rLa()))return new l1(c,d,this.Va,this.C,this.i,a,this.u,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));if(L_(d,{Vd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],cf:["LAYOUT_TYPE_SURVEY"]}))return new o1(c,d,a,this.i,this.u,this.Ga,this.Na);if(L_(d,{Vd:["metadata_type_player_bytes_layout_controls_callback_ref",
   "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],cf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new f1(c,d,a,this.i,this.Va);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(p1,g.I);g.k=p1.prototype;g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof CZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d));a=this.i.has(b.Fe)?this.i.get(b.Fe):new Set;a.add(b);this.i.set(b.Fe,a)};
   g.k.Pi=function(a){this.Gb.delete(a.triggerId);if(!(a instanceof CZ))throw new eZ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.i.get(a.Fe))b.delete(a),0===b.size&&this.i.delete(a.Fe)};
   g.k.Nh=function(){};
   g.k.Cj=function(){};
   g.k.Bj=function(){};
   g.k.xf=function(){};
   g.k.yf=function(){};
   g.k.Lk=function(){};
   g.k.Mk=function(){};
   g.k.yj=function(){};
   g.k.zj=function(){};
   g.k.Ai=function(){};
   g.k.Lc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={Jt:a.Jt},d=b.next())a.Jt=d.value,d=new g.M(function(e){return function(){var f=c.Gb.get(e.Jt.triggerId);cZ(c.B(),[f])}}(a),a.Jt.durationMs),d.start(),this.u.set(a.Jt.triggerId,d)}};
   g.k.Xc=function(){};g.w(q1,g.I);q1.prototype.xa=function(){this.C.get().removeListener(this);g.I.prototype.xa.call(this)};g.w(vLa,g.I);wLa.prototype.Oe=function(a,b,c,d){if(b=$_(a,c,d,this.i,this.Ga,this.Va,this.J,this.Od))return b;if(L_(d,sLa()))return new m1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));if(L_(d,rLa()))return new l1(c,d,this.Va,this.C,this.i,a,this.u,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(xLa,g.I);g.w(yLa,g.I);g.w(zLa,g.I);g.w(s1,Z_);s1.prototype.startRendering=function(a){Z_.prototype.startRendering.call(this,a);X(this.layout.Ia,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ia,"metadata_type_ad_info_ad_metadata"),this.J.get().I.Oa("onAdMetadataAvailable",a))};BLa.prototype.Oe=function(a,b,c,d){if(L_(d,ALa()))return new s1(a,c,d,this.u,this.Ga,this.Va,this.B,this.i,this.Od);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(CLa,g.I);DLa.prototype.Oe=function(a,b,c,d){if(L_(d,ALa()))return new s1(a,c,d,this.i,this.Ga,this.Va,this.u,this.B,this.Od);if(a=$_(a,c,d,this.i,this.Ga,this.Va,this.u,this.Od))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(ELa,g.I);g.w(t1,g.I);t1.prototype.B=function(){return this.u};v1.prototype.Jy=function(a){this.fk.Jy(a)};
   v1.prototype.sy=function(){try{this.fk.sy()}catch(a){}};
   v1.prototype.Ym=function(){this.i().Ym()};
   v1.prototype.pk=function(){this.i().pk()};g.w(w1,nL);
   w1.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.ub});break;case 3:this.i.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);
   this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.ub});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion",
   {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.ub});break;case 3:b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Oa("updateEngagementPanelAction",b.addAction);this.i.Oa("changeEngagementPanelVisibility",
   b.expandAction);break;case 3:this.i.Oa("changeEngagementPanelVisibility",b.hideAction),this.i.Oa("updateEngagementPanelAction",b.removeAction)}};g.w(x1,uL);g.k=x1.prototype;g.k.init=function(a,b,c){uL.prototype.init.call(this,a,b,c);g.Sl(this.B,"stroke-dasharray","0 "+this.u);this.show()};
   g.k.clear=function(){this.hide()};
   g.k.hide=function(){wL(this);uL.prototype.hide.call(this)};
   g.k.show=function(){vL(this);uL.prototype.show.call(this)};
   g.k.qq=function(){this.hide()};
   g.k.ao=function(){if(this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&g.Sl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.w(y1,QK);g.k=y1.prototype;
   g.k.init=function(a,b,c){QK.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.Ly(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.$a(g.ig(e[0].url))&&(e[0].url=d.Ph);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.$a(g.ig(e[0].url))&&(e[0].url=d.Ie());e=b.headline;null!=e&&g.$a(g.ig(e.text))&&(e.text=d.author)}this.C.init(tH("ad-image"),b.image,c);this.K.init(tH("ad-text"),b.headline,c);this.D.init(tH("ad-text"),b.description,c);this.Y.init(tH("ad-image"),b.backgroundImage,c);this.actionButton=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-action-interstitial-action-button"]);g.J(this,
   this.actionButton);this.actionButton.Da(this.La);this.actionButton.init(tH("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().isMobile||(this.B.T(this.Ja,"click",this.uD,this),this.B.T(this.Ea,"click",this.uD,this),this.B.T(this.Aa,"click",this.uD,this));this.i=this.Eg?new JL(this.api,a):new KL(a);g.J(this,this.i);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.i&&(this.skipButton=new EL(this.api,this.Wa,this.layoutId,this.ub,this.i,this.Ji),
   g.J(this,this.skipButton),this.skipButton.Da(this.element),this.skipButton.init(tH("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.i&&(this.u=new zL(this.api,this.Wa,this.layoutId,this.ub,this.i,!1),g.J(this,this.u),this.u.Da(this.element),this.u.init(tH("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.i&&(c=new x1(this.api,this.Wa,this.layoutId,this.ub,this.i),g.J(this,c),c.Da(this.element),
   c.init(tH("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.Ly(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Ly(Error("AdActionInterstitialRenderer has no button."));else g.Ly(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Ly(Error("AdActionInterstitialRenderer has no description AdText."));else g.Ly(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Ly(Error("AdActionInterstitialRenderer has no image."))};
   g.k.clear=function(){g.my(this.B);this.hide()};
   g.k.show=function(){GLa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();QK.prototype.show.call(this)};
   g.k.hide=function(){GLa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();QK.prototype.hide.call(this)};
   g.k.uD=function(){this.navigationEndpoint&&this.Wa.executeCommand(this.navigationEndpoint,this.macros)};var A1={iconType:"CLOSE"},E1=new g.cg(320,63);g.w(z1,QK);g.k=z1.prototype;
   g.k.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.C=b;this.K=g.Db(this.C.onClickCommands||[]);this.Ja=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.D=g.vg("ytp-ad-overlay-ad-info-button-container",this.B.element),C1(this,b),a=LLa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.D=g.vg("ytp-ad-overlay-ad-info-button-container",this.u.element),
   C1(this,b),a=MLa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.D=g.vg("ytp-ad-overlay-ad-info-button-container",this.i.element),C1(this,b),a=NLa(this,a.imageOverlayAdContentRenderer)):(g.Ly(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),OLa(this,!0))};
   g.k.clear=function(){OLa(this,!1);this.Ea.reset();this.Y=0;this.B.hide();this.ib(this.B.element,!1);this.u.hide();this.ib(this.u.element,!1);this.i.hide();this.ib(this.i.element,!1);this.hide();this.dispose()};
   g.k.WV=function(){this.Ua&&this.Wa.executeCommand(this.Ua,this.macros);this.api.pauseVideo()};
   g.k.zi=function(){var a=this;KLa(this).forEach(function(b){return a.Wa.executeCommand(b,a.macros)});
   this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
   g.k.qT=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo()};
   g.k.rF=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.rF("invideo-overlay")};
   g.k.rT=function(a){a.target===this.D&&g.vg("ytp-ad-button",this.Za.element).click()};g.w(F1,uL);g.k=F1.prototype;g.k.init=function(a,b,c){uL.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=null==a||0===a?0:a+1E3*this.i.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(tH("ad-text"),d,c);this.messageText.Da(this.u.element);this.D.show(100);this.show()};
   g.k.clear=function(){this.hide()};
   g.k.hide=function(){PLa(this,!1);uL.prototype.hide.call(this);this.u.hide();this.messageText.hide();wL(this)};
   g.k.show=function(){PLa(this,!0);uL.prototype.show.call(this);vL(this);this.u.show();this.messageText.show()};
   g.k.qq=function(){this.hide()};
   g.k.ao=function(){if(null!=this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.K&&a>=this.B?(this.D.hide(),this.K=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.Y&&(tL(this.messageText,{TIME_REMAINING:String(a)}),this.Y=a)))}};g.w(G1,QK);
   G1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.i.init(tH("ad-image"),b.image,c),this.B.init(tH("ad-text"),b.headline,c),this.u.init(tH("ad-text"),b.description,c),this.actionButton=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-underlay-action-button"]),g.J(this,this.actionButton),this.actionButton.Da(this.C),this.actionButton.init(tH("button"),b.actionButton.buttonRenderer,c),
   this.api.QA(!0),this.show()):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
   G1.prototype.show=function(){QLa(!0);this.actionButton&&this.actionButton.show();QK.prototype.show.call(this)};
   G1.prototype.hide=function(){QLa(!1);QK.prototype.hide.call(this)};
   G1.prototype.clear=function(){this.api.QA(!1);this.hide()};g.w(H1,QK);
   H1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Da(this.answer),a.init(tH("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.i=new lL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-answer-toggle-button"]),this.i.Da(this.answer),
   g.J(this,this.i),this.i.init(tH("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
   H1.prototype.clear=function(){this.hide()};g.w(I1,QK);I1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new lL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Da(this.i),this.button.init(tH("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(J1,dL);J1.prototype.init=function(a,b,c){dL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.sA(b.text),a=!g.$a(b));a||g.My(Error("No submit text was present in the renderer."))};
   J1.prototype.onClick=function(a){this.ea("l");dL.prototype.onClick.call(this,a)};g.w(K1,QK);
   K1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new FL(this.api,this.Wa,this.layoutId,this.ub,this.B,this.Ji),c.Da(this.D),c.init(tH("skip-button"),a,this.macros),g.J(this,c),this.i=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new zL(this.api,this.Wa,this.layoutId,this.ub,this.B,!1),c.Da(this.D),c.init(tH("ad-preview"),a,this.macros),AL(c),g.J(this,c),this.i=c);null==this.i&&g.Ly(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
   b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new J1(this.api,this.Wa,this.layoutId,this.ub),c.Da(this.submitButton),c.init(tH("survey-submit"),a,this.macros),g.J(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new HL(this.api,this.Wa,this.layoutId,this.ub,!0),c.Da(this.C),c.init(tH("simple-ad-badge"),a,this.macros),g.J(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new NL(this.api,this.Wa,this.layoutId,this.ub,this.B,void 0),
   c.Da(this.C),c.init(tH("ad-duration-remaining"),a,this.macros),g.J(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new rL(this.api,this.Wa,this.layoutId,this.ub,this.element),g.J(this,a),a.Da(this.C),a.init(tH("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
   K1.prototype.clear=function(){this.hide()};g.w(L1,QK);L1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);ULa(this)};
   L1.prototype.show=function(){this.C=g.Pa();QK.prototype.show.call(this)};
   L1.prototype.tN=function(){};g.w(M1,L1);g.k=M1.prototype;g.k.init=function(a,b,c){var d=this;L1.prototype.init.call(this,a,b,c);b.questionText&&g.Ng(this.questionText,g.sA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&RLa(d,e.instreamSurveyAdAnswerRenderer,c)});
   this.K=new Set(this.u.map(function(e){return e.i.i}));
   (a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&VLa(this,a,c);b.surveyAdQuestionCommon&&TLa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
   g.k.tN=function(){N1(this,!1);this.D.u.subscribe("l",this.UV,this)};
   g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.i?WLa(this):this.K.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),N1(this,!0))};
   g.k.UV=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.i&&e.i.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
   d=g.qc(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=ui(e.baseUrl,b));return e});
   return d});
   c&&c.forEach(function(d){return a.Wa.executeCommand(d,a.macros)})};
   g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(O1,L1);O1.prototype.init=function(a,b,c){var d=this;L1.prototype.init.call(this,a,b,c);b.questionText&&g.Ng(this.questionText,g.sA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&RLa(d,e.instreamSurveyAdAnswerRenderer,c)});
   b.surveyAdQuestionCommon?TLa(this,b.surveyAdQuestionCommon):g.Ly(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
   O1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(P1,QK);
   P1.prototype.init=function(a,b,c){var d=this;QK.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new O1(d.api,d.Wa,d.layoutId,d.ub,d.Eg,d.Ji,d.i);f.Da(d.u);f.init(tH("survey-question-single-select"),e,c);d.questions.push(f);g.J(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new M1(d.api,d.Wa,d.layoutId,d.ub,d.Eg,
   d.Ji,d.i),f.Da(d.u),f.init(tH("survey-question-multi-select"),e,c),d.questions.push(f),g.J(d,f))});
   this.show()};
   P1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(Q1,QK);
   Q1.prototype.init=function(a,b,c){var d=this;QK.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.Ly(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){YLa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
   YLa(this.logoImage,b.brandImage);g.Ng(this.text,g.sA(b.text));this.actionButton=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-interstitial-action-button"]);g.J(this,this.actionButton);this.actionButton.Da(this.u);this.actionButton.init(tH("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands,f=this.api.V().N("html5_use_normal_timer_for_survey");this.i=this.Eg?new JL(this.api,1E3*a):new KL(1E3*a,void 0,f);this.i.subscribe("g",function(){d.transition.hide();
   if(!d.Eg){for(var h=g.r(e),l=h.next();!l.done;l=h.next())d.Wa.executeCommand(l.value,c);d.Wa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
   g.J(this,this.i);this.T(this.element,"click",function(h){var l=b.dismissCommands,m=h.target===d.interstitial;h=d.actionButton.element.contains(h.target);if(m||h)if(d.transition.hide(),m)if(d.lG)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())d.Wa.executeCommand(m.value,d.macros)});
   this.transition.show(100);if(!this.Eg&&b.impressionCommands)for(a=g.r(b.impressionCommands),f=a.next();!f.done;f=a.next())this.Wa.executeCommand(f.value,c)}else g.Ly(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ly(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ly(Error("SurveyTextInterstitialRenderer has no button."));else g.Ly(Error("SurveyTextInterstitialRenderer has no text."));else g.Ly(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
   Q1.prototype.clear=function(){this.hide()};
   Q1.prototype.show=function(){ZLa(!0);QK.prototype.show.call(this)};
   Q1.prototype.hide=function(){ZLa(!1);QK.prototype.hide.call(this)};var rOa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.w(R1,nL);
   R1.prototype.C=function(a){var b,c=a.id,d=a.content,e=d.componentType;if(!rOa.includes(e))switch(a.actionType){case 1:a=this.K();var f=d instanceof kI||d instanceof uJ||d instanceof zJ?d.Eg:!1,h=d instanceof kI||d instanceof IL||d instanceof uJ?d.Ji:!1,l=d instanceof uJ&&(null===(b=d.renderer)||void 0===b?void 0:b.controlWithFixEnabled);var m=this.api,n=d.layoutId,p=d.ub,q=d instanceof zJ?d.lG:!1;p=void 0===p?{}:p;f=void 0===f?!1:f;h=void 0===h?!1:h;q=void 0===q?!1:q;l=void 0===l?!1:l;switch(e){case "invideo-overlay":a=
   new z1(m,a,n,p);break;case "player-overlay":a=new UL(m,a,n,p,new RN(m),h);break;case "survey":a=new P1(m,a,n,p,f,h,l);break;case "ad-action-interstitial":a=new y1(m,a,n,p,f,h);break;case "survey-interstitial":a=new Q1(m,a,n,p,f,q);break;case "ad-message":a=new F1(m,a,n,p,new RN(m,1));break;case "player-underlay":a=new G1(m,a,n,p);break;default:a=null}if(!a){g.My(Error("No UI component returned from ComponentFactory for type: "+e));break}fc(this.u,c)?g.My(Error("Ad UI component already registered: "+
   c)):this.u[c]=a;a.bind(d);d instanceof d1?this.B?this.B.append(a.XF):g.Ly(Error("Underlay view was not created but UnderlayRenderer was created")):this.J.append(a.XF);break;case 2:c=$La(this,a);if(null==c)break;c.bind(d);break;case 3:d=$La(this,a),null!=d&&(g.ue(d),fc(this.u,c)?(d=this.u,c in d&&delete d[c]):g.My(Error("Ad UI component does not exist: "+c)))}};
   R1.prototype.xa=function(){g.ve(Object.values(this.u));this.u={};nL.prototype.xa.call(this)};g.w(S1,g.$M);g.k=S1.prototype;g.k.create=function(){if(lZ(u1(this.i).Tf))try{aMa(this),this.load(),this.created=!0,aMa(this)}catch(a){T(a instanceof Error?a:String(a))}else this.load(),this.created=!0};
   g.k.load=function(){g.$M.prototype.load.call(this);var a=u1(this.i).Tf;Aja(a.I.V().N("html5_reduce_ecatcher_errors"));if(lZ(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
   e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.tf()||!1;a=eMa(f,a,e,h);f=c&&c.clientPlaybackNonce||"";c=c&&c.ip||!1;h=1E3*this.player.getDuration(1);this.Wa=new FK(this,this,this.player,this.Vo,b,u1(this.i));zsa(this.Wa,a.Nu);this.i.i.Tn.hh(f,h,c,a.oA,a.oA.concat(a.Nu),e,d);GK(this.Wa)};
   g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.Tn.wj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
   g.k.unload=function(){g.$M.prototype.unload.call(this);Aja(!1);if(lZ(u1(this.i).Tf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.Wa){var a=this.Wa;this.Wa=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Vo.reset()};
   g.k.Ii=function(){return!1};
   g.k.mG=function(){return null===this.Wa?!1:this.Wa.mG()};
   g.k.Kk=function(a){null!==this.Wa&&this.Wa.Kk(a)};
   g.k.getAdState=function(){return this.Wa?this.Wa.sz:-1};
   g.k.getOptions=function(){return Object.values(qOa)};
   g.k.kf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=LH(this.player),Object.assign(b,a.Baa),this.Wa&&!b.AD_CPN&&(b.AD_CPN=this.Wa.Ty()),a=g.Dq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b<a.length;b++){var c=a[b];if(c.adPlacementRenderer&&c.adPlacementRenderer.renderer&&c.adPlacementRenderer.renderer.plaShelfRenderer){a=!1;break a}}a=!0}else a=!1;return a;case "onAboutThisAdPopupClosed":this.hm(b);
   break;default:return null}};
   g.k.hm=function(a){a.isMuted&&psa(this.Wa,u1(this.i).eh,u1(this.i).wi,a.layoutId);this.To&&this.To.hm()};
   g.k.Hk=function(){return null===this.Wa?!1:this.Wa.Hk()};g.ZM("ad",S1);var gMa=g.Qc&&fMa();g.w(g.V1,g.V);g.V1.prototype.onClick=function(){this.I.Oa("onExpandMiniplayer")};})(_yt_player);
   