var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
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,pa,qa,baa,caa,ya,Aa,daa,eaa,Ca,Da,Ea,Fa,Ga,Ja,Ka,gaa,haa,Va,Wa,Xa,Ya,Za,$a,iaa,ab,bb,kaa,fb,gb,jb,lb,ob,sb,tb,ub,vb,wb,xb,yb,Bb,Db,Cb,Eb,saa,taa,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,uaa,Ob,Ub,vaa,cc,waa,hc,ec,xaa,fc,yaa,zaa,Aaa,nc,oc,pc,qc,Dc,Fc,Bc,uc,Ic,Kc,Mc,Nc,Pc,Sc,Qc,Tc,Yc,dd,ed,jd,gd,kd,ld,rd,sd,ud,vd,wd,xd,yd,Faa,Ad,Cd,Dd,Gaa,Gd,Id,Jd,Kd,Ld,Md,Nd,Pd,Qd,Rd,Sd,Ud,Vd,Td,Wd,Haa,Xd,ae,be,ce,de,ee,fe,le,oe,pe,re,se,te,ue,ve,xe,ze,Ae,Iaa,Be,Ce,Fe,He,Me,Jaa,Kaa,Pe,Qe,De,
Ee,Laa,Maa,Naa,Oaa,Se,Paa,Qaa,Raa,Saa,Ke,Le,Te,af,Taa,Uaa,bf,cf,df,ef,ff,gf,hf,jf,kf,mf,Vaa,rf,tf,vf,wf,yf,Xaa,zf,Cf,Ef,Gf,Hf,Nf,Of,Yf,Zf,ag,eg,Yaa,bg,jg,kg,hg,$aa,fg,dg,og,sg,ug,vg,aba,xg,yg,bba,Ag,Dg,Eg,Hg,Jg,Kg,eba,Pg,Vg,Wg,Zg,gba,Xg,jba,kba,ch,lh,lba,mba,kh,nba,qh,rh,qba,vh,xh,Ah,Ch,Fh,Gh,Hh,Ih,rba,sba,Mh,Nh,Vh,Wh,Yh,Xh,Zh,bi,ai,$h,tba,Kh,li,ki,ni,mi,Jh,pi,vba,qi,ri,si,wba,yba,Aba,yi,zi,Ai,Eba,Ci,Fba,Bi,Jba,wi,Cba,Lba,Iba,Gba,Hba,Mba,Kba,Di,Gi,Oba,Pba,Qba,Rba,Sba,Tba,Xba,Zba,$ba,bca,aca,cca,Oi,
Pi,Qi,eca,fca,Ri,Si,hca,Vi,ica,lca,Xi,Yi,mca,ij,jj,oca,pca,nj,qca,rca,oj,pj,sca,rj,tj,tca,uj,vj,wca,xca,zca,Aca,Cca,Bca,Dca,yj,Eca,Bj,Gca,Fj,Ica,Gj,Hj,Lca,Nca,Oca,Jj,Qca,Rca,Sca,Uca,Tca,Vca,Pca,Ij,Wca,Kj,Xca,Yca,Zca,$ca,Lj,Mj,Nj,Oj,Pj,ada,bda,Qj,Sj,cda,dda,Tj,eda,Uj,fda,gda,hda,Wj,ida,kda,jda,lda,mda,nda,Yj,Zj,ak,oda,pda,rda,sda,ck,dk,ek,fk,tda,gk,hk,ik,jk,kk,yda,vda,nk,xda,ok,wda,mk,lk,qk,zda,sk,rk,Ada,Bda,Jk,Kk,Mk,Eda,Lk,Rk,Fda,Sk,Cda,Ida,Jda,Kda,Wk,Xk,Yk,Lda,Zk,$k,al,bl,Mda,cl,dl,el,Nda,Oda,fl,
Pda,bk,Sda,Tda,Uda,Vda,Qda,gl,il,Wda,hl,Yda,Zda,kl,ll,$da,nl,ol,pl,ml,ql,jl,bea,cea,aea,dea,eea,fea,rl,sl,tl,ul,vl,wl,xl,gea,yl,zl,Al,hea,jea,kea,Cl,El,Dl,Gl,Hl,Il,mea,nea,Jl,Kl,Ll,pea,rea,uea,sea,vea,zea,Rl,yea,wea,Sl,Tl,Aea,Ul,Cea,Bea,Vl,Eea,Dea,Fea,Gea,Zl,$l,Hea,Iea,Jea,am,bm,Kea,cm,Lea,Mea,Rea,dm,em,Sea,Tea,Uea,Vea,lm,Wea,Xea,Yea,sm,rm,qm,Zea,$ea,afa,tm,um,vm,cfa,Am,Bm,Cm,Dm,Em,Fm,efa,ffa,gfa,Gm,Im,Jm,Nm,Om,Rm,ifa,kfa,jfa,lfa,mfa,Xm,nfa,ofa,Ym,pfa,qfa,rfa,sfa,bn,$m,cn,dn,en,tfa,ufa,vfa,fn,gn,
hn,wfa,xfa,yfa,jn,zfa,kn,ln,Afa,Bfa,Cfa,Dfa,Efa,Ffa,Gfa,nn,on,pn,rn,Jfa,sn,tn,Kfa,Ifa,qn,Lfa,un,vn,wn,xn,Nfa,yn,An,zn,Ofa,Pfa,Qfa,Bn,Sfa,Cn,Ufa,Vfa,Wfa,Xfa,Yfa,Zfa,$fa,aga,Wn,Xn,Yn,dga,cga,$n,ega,ao,fga,bo,gga,hga,co,eo,fo,iga,go,ho,io,jo,ko,lo,mo,no,oo,jga,kga,lga,mga,po,nga,pga,oga,ro,so,rga,qga,wga,vga,to,xga,yga,zga,Bga,Aga,Cga,uo,Dga,Ega,xo,Fga,Gga,Hga,Iga,yo,Jga,zo,Kga,Ao,Bo,Mga,Co,Nga,Do,Eo,Oga,Pga,Fo,Ho,Rga,Io,Qga,Sga,Tga,Vga,Xga,Jo,Yga,Mo,No,$ga,aha,dha,eha,Oo,fha,Po,Qo,Ro,So,To,Uo,Vo,Wo,
Xo,Yo,Zo,$o,ap,jha,iha,kha,mha,lha,oha,hha,nha,gha,bp,cp,qha,rha,sha,gp,hp,ip,dp,uha,jp,pha,wha,xha,yha,vha,kp,lp,mp,np,zha,tha,Aha,op,Bha,Cha,Dha,Eha,Fha,Iha,Jha,Kha,qp,Lha,Oha,Qha,up,Sha,Rha,tp,wp,Tha,Uha,Vha,Cp,Wha,Xha,Dp,Yha,Mp,Jp,Kp,Lp,Zha,Pp,Op,$ha,Rp,aia,cia,Sp,dia,eia,jia,fia,Xp,oia,Yp,Zp,qia,bq,ria,sia,cq,uia,eq,fq,gq,via,iq,jq,kq,lq,nq,oq,xia,pq,qq,yia,zia,rq,Aia,Bia,tq,uq,Fia,vq,wq,xq,Iia,zq,Aq,Bq,Mia,Cq,Nia,Oia,Eq,Fq,Pia,Ria,Sia,Gq,Tia,Hq,Uia,Iq,Via,Wia,Xia,Jq,Zia,Kq,Lq,Mq,$ia,Nq,Oq,Pq,
cja,dja,Rq,Qq,eja,fja,Sq,Tq,gja,Uq,Vq,ija,jja,Wq,Xq,Yq,Zq,ar,br,cr,er,kja,fr,lja,ir,jr,kr,lr,mr,nr,pr,qr,pja,rr,sr,tr,mja,ur,sja,vja,vr,xja,zja,Er,Aja,Lla,Mla,Yla,Wla,Xla,Fr,Ir,Hr,Zla,Kr,Lr,Mr,ama,Rr,bma,Ur,Sr,Xr,cma,dma,Zr,ema,as,bs,fma,cs,ds,es,gs,is,js,Yr,ks,ms,ls,kma,ima,jma,lma,mma,nma,os,ts,us,oma,pma,rma,tma,uma,zma,vma,wma,xma,yma,Dma,xs,zs,Ema,Gs,Hs,Ls,Ms,Os,Ps,Rs,Jma,Kma,Ts,Lma,Mma,Vs,Nma,Oma,Xs,Pma,Ys,Qma,at,Rma,Tma,Uma,Zs,Vma,Wma,Zma,Yma,dt,Sma,ana,bna,gt,cna,dna,jt,ena,kt,fna,gna,nt,
hna,ina,jna,kna,rt,lna,mna,nna,ona,pna,qna,rna,sna,ut,tna,vt,wna,vna,una,wt,xna,xt,zt,Bt,zna,Ft,Et,At,Gt,Ana,Bna,Jt,Kt,Dna,Ena,Lt,Mt,Fna,Gna,Cna,Ina,Jna,Kna,Lna,Mna,Pt,Qt,St,Ona,Pna,Tt,Sna,Rna,Qna,Tna,Vna,Vt,Wt,Yna,Xna,Wna,Zna,$na,cu,du,aoa,au,boa,Yt,bu,$t,Zt,coa,doa,lu,mu,foa,goa,joa,ru,tu,uu,koa,yu,zu,moa,Bu,Au,Du,ooa,noa,poa,roa,soa,qoa,uoa,voa,Lu,Ru,toa,Su,Tu,zoa,Aoa,yoa,Doa,Eoa,xoa,Coa,Boa,Zu,$u,Ioa,Koa,Moa,Noa,Loa,av,dv,ev,Poa,cv,fv,gv,kv,nv,ov,lv,Roa,pv,yv,Soa,Toa,Uoa,Av,Voa,Xoa,Bv,Yoa,Cv,
Dv,Ev,Fv,Hv,$oa,apa,bpa,cpa,dpa,epa,Cs,lpa,opa,Lv,qpa,Ov,Qv,Rv,spa,tpa,upa,Uv,wpa,Vv,Apa,Bpa,Cpa,Dpa,Wv,Epa,dw,Fpa,Ipa,Lpa,Jpa,nw,mw,Mpa,lw,ow,pw,Ppa,Rpa,uw,vw,Tpa,S,ww,xw,yw,zw,Aw,Bw,Upa,Cw,Dw,Ew,Fw,$pa,bqa,dqa,eqa,Hw,gqa,hqa,Nw,Ow,iqa,jqa,Pw,Sw,kqa,lqa,mqa,nqa,Ww,Vw,Xw,Yw,Zw,Tw,$w,ax,pqa,bx,oqa,sqa,tqa,uqa,cx,dx,ex,vqa,fx,Bqa,gx,hx,jx,kx,ox,nx,Ax,mx,Eqa,Fqa,Bx,Cx,Dx,lx,Jqa,Hqa,Kqa,Iqa,Gqa,Gx,Hx,Jx,Mx,Ox,Lqa,Px,Pqa,Rx,Oqa,Vx,Sx,Tqa,Xqa,Xx,Nqa,Mqa,Yx,Yqa,Zqa,$qa,ay,cy,dy,bra,ey,fy,by,ara,cra,dra,
fra,gy,hy,gra,iy,hra,jy,ky,ly,my,ira,jra,ny,kra,oy,lra,py,qy,sy,wy,yy,zy,Ay,By,Cy,Dy,Ey,mra,Fy,Hy,ora,pra,Gy,rra,sra,Iy,tra,Ly,ura,My,Oy,vra,Ny,Py,wra,Ry,zra,Ty,Uy,Zy,Bra,Wy,$y,bz,Cra,dz,Yy,az,Dra,ez,Era,fz,Fra,Vy,Xy,Ara,cz,gz,Gra,Hra,iz,Ira,Jra,Kra,jz,Lra,lz,Mra,kz,Nra,mz,nz,oz,pz,qz,Ora,rz,Pra,sz,Qra,tz,uz,vz,Rra,wz,Sra,yz,xz,Tra,Ura,Vra,Wra,zz,Az,Bz,Cz,Dz,Yra,Zra,$ra,Fz,asa,Gz,Hz,bsa,csa,Iz,dsa,esa,isa,jsa,fsa,gsa,hsa,Jz,Lz,Kz,Mz,Nz,ksa,lsa,Oz,Pz,Qz,Rz,msa,nsa,osa,psa,rsa,qsa,Tz,ssa,tsa,usa,vsa,
Uz,Vz,Wz,wsa,Yz,Xz,bA,cA,dA,eA,Rqa,Qqa,fA,xsa,gA,$z,ysa,zsa,jA,kA,Asa,lA,nA,oA,pA,qA,rA,sA,tA,Bsa,uA,vA,Csa,wA,xA,yA,zA,AA,BA,Esa,Fsa,CA,DA,EA,Gsa,Hsa,FA,GA,Vqa,Wx,Lsa,Msa,Nsa,Osa,Psa,Qsa,Qx,Rsa,HA,IA,Tsa,Usa,JA,Ysa,Vsa,Wsa,$sa,ata,LA,Zsa,bta,MA,NA,OA,cta,dta,eta,PA,KA,fta,Ssa,hta,ita,RA,jta,kta,lta,TA,SA,mta,nta,ota,pta,rta,Wqa,Uqa,UA,WA,YA,ZA,$A,aB,XA,tB,tta,vB,vta,wB,xta,wta,uta,yta,zta,Ata,xB,Sqa,yB,Bta,Tx,Cta,Dta,Eta,Fta,Hta,AB,Kta,Ita,BB,CB,IB,Mta,Nta,LB,OB,Ota,Qta,Pta,Rta,Sta,Tta,Uta,Vta,Wta,
RB,Xta,Yta,Zta,SB,TB,UB,VB,$ta,aua,WB,bua,XB,YB,cua,ZB,dua,aC,eua,bC,cC,dC,eC,fua,gua,iua,fC,jua,hua,gC,hC,iC,jC,kC,lC,KC,FC,LC,OC,PC,wC,GC,vua,mC,rua,HC,JC,SC,WC,wua,XC,xua,tC,$C,sC,aD,dD,EC,eD,fD,gD,hD,iD,jD,zua,Aua,kD,Bua,Cua,Dua,Eua,lD,Fua,Kua,Jua,Gua,Iua,Hua,mD,Lua,nD,Mua,oD,qD,rD,Pua,Rua,uD,Sua,BD,ava,Wua,Xua,cva,dva,hva,jva,GD,HD,kva,mva,nva,ova,pva,vva,JD,wva,yva,xva,zva,LD,ND,PD,Ava,KD,QD,RD,Bva,Fva,Cva,Eva,aE,bE,eE,Sva,Nva,YD,fE,$D,Tva,Uva,iE,Lva,Wva,Vva,VD,ZD,dE,bwa,Yva,Zva,$va,awa,cwa,
jE,dwa,ewa,lE,mE,oE,UD,hE,Pva,Dva,Ova,Rva,Qva,qE,Xva,xE,yE,zE,AE,iwa,cE,jwa,CE,kwa,Mva,lwa,fwa,gE,mwa,Iva,XD,Hva,lva,GE,HE,owa,IE,JE,KE,ME,LE,NE,pwa,qwa,OE,QE,rwa,swa,RE,SE,TE,twa,UE,uwa,VE,WE,XE,YE,ZE,$E,vwa,aF,wwa,bF,dF,zwa,cF,Awa,xwa,ywa,Bwa,Cwa,Dwa,eF,fF,gF,hF,iF,Gwa,nF,lF,Jwa,Iwa,Kwa,qF,Hwa,rF,mF,sF,pF,oF,kF,jF,uF,vF,xF,zF,Nwa,Owa,Mwa,AF,BF,CF,DF,EF,Pwa,FF,GF,HF,Qwa,IF,Twa,Rwa,LF,Uwa,Vwa,MF,Wwa,PF,QF,Xwa,bxa,RF,cxa,SF,TF,dxa,UF,exa,fxa,gxa,hxa,ixa,VF,WF,kxa,jxa,lxa,XF,YF,oxa,pxa,ZF,qxa,rxa,$F,
bG,cG,dG,eG,hG,jG,kG,sxa,txa,lG,uxa,vxa,mG,wxa,oG,xxa,yxa,pG,qG,zxa,Axa,rG,Cxa,Bxa,sG,Exa,tG,Fxa,vG,wG,yG,Gxa,Hxa,Ixa,Jxa,Kxa,zG,BG,Oxa,Rxa,Lxa,CG,$xa,DG,EG,bya,aya,dya,eya,gya,fya,hya,iya,jya,kya,FG,GG,lya,mya,nya,oya,pya,qya,NG,sya,tya,LG,MG,rya,uya,vya,OG,yya,wya,Aya,zya,Bya,PG,Lwa,Cya,Fwa,Dya,Eya,Fya,QG,Lya,Hya,Iya,Jya,Mya,RG,Pya,Nya,Qya,Rya,Oya,Kya,Sya,nG,Uya,Vya,Tya,SG,TG,Wya,Xya,Yya,UG,WG,$ya,XG,$G,aH,aza,bza,cza,bH,eza,fza,gza,hza,iza,jza,kza,gH,lza,hH,mza,nza,oza,jH,pza,qza,rza,mH,nH,oH,
sza,pH,tza,rH,vza,uza,sH,tH,uH,vH,wza,wH,xH,xza,yH,zH,Bza,yza,Aza,zza,Cza,BH,CH,Dza,Eza,Fza,DH,Gza,Iza,Hza,EH,FH,GH,HH,IH,KH,LH,MH,NH,OH,PH,QH,Kza,Jza,RH,Lza,SH,TH,UH,VH,WH,ZH,$H,aI,bI,cI,dI,eI,fI,Nza,Pza,Oza,gI,Sza,Tza,kI,lI,Vza,nI,Wza,Xza,Yza,oI,$za,qI,aAa,rI,sI,tI,uI,cAa,wI,fAa,eAa,dAa,hAa,xI,yI,zI,AI,BI,CI,DI,HI,jAa,lAa,mAa,JI,nAa,Bs,pAa,oAa,qAa,sAa,rAa,uAa,tAa,MI,vAa,wAa,yAa,zAa,DAa,CAa,KAa,MAa,NAa,UI,WI,XI,YI,ZI,PAa,$I,aJ,QAa,bJ,RAa,cJ,dJ,eJ,fJ,gJ,hJ,SAa,TAa,iJ,jJ,mJ,WAa,XAa,nJ,YAa,qJ,oJ,rJ,
pJ,Gya,ZAa,$Aa,aBa,bBa,wJ,vJ,eBa,hBa,HJ,IJ,JJ,VJ,iBa,jBa,WJ,XJ,kBa,lBa,ZJ,$J,oBa,mBa,pBa,qBa,rBa,sBa,uBa,jK,yBa,mK,ABa,nK,xBa,BBa,CBa,lK,zBa,oK,pK,qK,AJ,tJ,sK,uK,FBa,DBa,EBa,vK,yK,HBa,xK,IBa,JBa,DK,EK,FK,JK,LBa,MBa,KK,LK,NBa,OBa,PBa,QBa,MK,SBa,RBa,TBa,NK,UBa,VBa,PK,QK,WBa,TK,YBa,VK,RK,ZBa,$Ba,XBa,WK,XK,$K,aCa,bCa,ZK,bL,aL,dL,fL,cCa,iL,dCa,gCa,eCa,hCa,lL,mL,iCa,jCa,pL,qL,rL,sL,tL,vL,lCa,kCa,mCa,xL,oCa,nCa,pCa,qCa,rCa,sCa,DL,EL,tCa,FL,GL,uCa,vCa,wCa,xCa,HL,KL,zCa,yCa,LL,ML,NL,ACa,OL,PL,QL,RL,BCa,SL,
TL,CCa,UL,DCa,FCa,ECa,ZL,XL,YL,GCa,HCa,ICa,$L,aM,bM,cM,dM,JCa,KCa,LCa,gM,hM,iM,kM,lM,mM,oM,pM,qM,rM,sM,MCa,PCa,tM,NCa,OCa,TCa,UCa,vM,WCa,VCa,XCa,YCa,ZCa,xM,zM,aDa,AM,$Ca,BM,bDa,dDa,cDa,CM,DM,EM,FM,eDa,GM,fDa,JM,gDa,MM,iDa,KM,hDa,kDa,OM,lDa,nDa,TM,oDa,pDa,QM,NM,VM,PM,WM,sDa,XM,SM,jDa,rDa,UM,mDa,qDa,tDa,HM,ZM,uDa,vDa,RM,$M,aN,bN,cN,dN,eN,fN,gN,hN,iN,jN,xDa,mN,nN,oN,pN,qN,rN,sN,tN,yDa,uN,vN,wN,xN,zN,yN,AN,BN,zDa,CN,ADa,CDa,BDa,DN,EN,DDa,FN,GN,EDa,HN,FDa,IN,GDa,JN,LN,ON,NN,RN,QN,HDa,PN,TN,JDa,KDa,UN,
VN,WN,XN,ZN,LDa,gL,IDa,PDa,BL,MDa,aO,ODa,CL,NDa,QDa,SDa,RDa,TDa,UDa,dO,VDa,eO,WDa,gO,XDa,hO,YDa,iO,jO,ZDa,lO,aEa,$Da,kO,mO,nO,bEa,cEa,dEa,eEa,fEa,gEa,qO,rO,lEa,oEa,mEa,iEa,tO,hEa,nEa,wO,qEa,pEa,xO,sEa,uEa,vEa,tEa,CO,wEa,AEa,KO,BEa,LO,NO,OO,PO,CEa,DO,QO,SO,EEa,DEa,TO,UO,FEa,VO,IO,HO,HEa,IEa,JEa,KEa,LEa,EO,yEa,JO,FO,WO,QEa,YO,REa,SEa,OEa,$O,TEa,aP,MEa,cP,PEa,UEa,bP,ZO,VEa,dP,WEa,XO,YEa,gP,ZEa,eP,hP,fP,jP,$Ea,kP,lP,aFa,mP,nP,oP,pP,bFa,qP,sP,eFa,fFa,gFa,vP,uP,tP,hFa,iFa,jFa,kFa,yP,zP,AP,lFa,mFa,nFa,BP,
oFa,DP,pFa,CP,EP,qFa,rFa,tFa,xFa,uFa,vFa,wFa,yFa,KP,LP,zFa,AFa,CFa,DFa,MP,EFa,NP,FFa,KFa,LFa,MFa,SP,TP,NFa,JFa,OFa,OP,GFa,PFa,PP,QP,HFa,IFa,RP,QFa,RFa,SFa,Vua,$ua,VP,WP,VFa,TFa,UFa,XP,WFa,YP,ZP,XFa,YFa,ZFa,$P,aGa,bGa,bQ,cGa,cQ,dQ,dGa,fQ,fGa,gQ,jGa,jQ,IP,eGa,lGa,lQ,hGa,iGa,gGa,kQ,iQ,hQ,kGa,pGa,nGa,mGa,nQ,qGa,oQ,rGa,pQ,qQ,sGa,tGa,uGa,vGa,FP,sQ,tQ,uQ,vQ,wQ,yGa,zGa,HP,JP,CGa,zQ,AQ,BFa,DQ,yQ,DGa,xQ,AGa,BGa,EQ,EGa,FGa,CQ,GP,BQ,GGa,HGa,IGa,FQ,KGa,JGa,GQ,OGa,HQ,QGa,PGa,JQ,IQ,SGa,LQ,KQ,TGa,MGa,NQ,RGa,NGa,
MQ,OQ,UGa,PQ,SQ,VGa,QQ,YGa,RQ,ZGa,TQ,XGa,WGa,$Ga,aHa,bHa,cHa,fHa,eHa,dHa,UQ,gHa,kHa,lHa,ZQ,$Q,aR,nHa,oHa,bR,cR,dR,qHa,gR,rHa,XQ,sHa,mHa,tHa,uHa,wHa,oGa,kR,lR,vHa,eQ,eR,pHa,xHa,yHa,zHa,AHa,BHa,hHa,WQ,YQ,CHa,nR,oR,DHa,EHa,FHa,GHa,HHa,IHa,KHa,JHa,MHa,qR,QHa,NHa,PHa,RHa,rR,VHa,THa,UHa,XHa,sR,YHa,tR,pR,ZHa,SHa,aIa,uR,bIa,OHa,cIa,vR,eIa,fIa,wR,dIa,xR,yR,gIa,zR,AR,BR,iIa,lIa,kIa,jIa,DR,mIa,CR,nIa,FR,HR,oIa,rIa,pIa,qIa,sIa,tIa,vIa,uIa,wIa,xIa,IR,zIa,AIa,BIa,yIa,CIa,EIa,GIa,HIa,DIa,IIa,JIa,LIa,KIa,MIa,FIa,
JR,KR,NIa,LR,MR,NR,QR,RR,SIa,TIa,SR,UIa,WIa,VIa,VR,TR,QIa,YIa,XIa,ZIa,YR,$Ia,bJa,aJa,cJa,ZR,$R,dJa,aS,gJa,bS,hJa,cS,jJa,eS,dS,kJa,gS,iJa,hS,lJa,fS,mJa,iS,nJa,RIa,WR,pJa,qJa,rJa,sJa,tJa,uJa,vJa,xJa,yJa,zJa,wJa,AJa,BJa,kS,CJa,DJa,lS,mS,EJa,FJa,GJa,oS,IJa,qS,JJa,KJa,pS,nS,HJa,tS,sS,LJa,uS,rS,MJa,wS,QJa,zS,RJa,OJa,xS,SJa,AS,PJa,TJa,BS,VJa,vS,WJa,UJa,yS,XJa,YJa,NJa,CS,DS,ZJa,$Ja,aKa,ES,rQ,iHa,xGa,HS,bKa,jHa,wGa,cKa,IS,GS,dKa,fKa,gKa,eKa,iKa,hKa,lKa,jKa,kKa,nKa,mKa,oKa,pKa,qKa,JS,LS,sKa,wKa,vKa,SS,US,TS,
zKa,BKa,EKa,JKa,GKa,IKa,NKa,WS,OKa,PKa,SKa,UKa,VKa,TKa,WKa,YS,XKa,YKa,ZS,KS,ZKa,$Ka,rKa,XS,bLa,cLa,iLa,fLa,jLa,gLa,dLa,kLa,lLa,eLa,nLa,$S,oLa,qLa,rLa,sLa,tF,fT,tLa,wLa,xEa,xLa,gT,GR,yLa,oT,iT,AO,eT,pT,rT,iR,jR,sT,aLa,vLa,mT,nT,hR,DLa,CLa,lT,jT,tT,FLa,uO,GLa,ER,rEa,vT,RO,uLa,hT,HLa,ILa,wT,kEa,JLa,LLa,BLa,aT,MLa,xT,kT,bT,NLa,yT,vO,OLa,zT,MO,PLa,QLa,RLa,jEa,uT,ELa,ZLa,VLa,ULa,bMa,cMa,ET,BO,eMa,dMa,IT,JT,KT,gMa,BT,YLa,QT,hMa,PT,TLa,iMa,jMa,ALa,DT,kMa,lMa,aMa,UT,mMa,AT,MT,NT,LT,XT,rMa,HT,ST,ZT,$T,sMa,
OT,fMa,WT,nMa,aU,tMa,uMa,vMa,sJ,wMa,RT,bU,yMa,FT,cU,dU,GT,zMa,AMa,XLa,VT,TT,BMa,WLa,CMa,eU,fU,dFa,DMa,EMa,gU,tw,W,hU,GMa,jU,IMa,iU,JMa,mU,kU,nU,lU,KMa,oU,pU,qU,LMa,rU,sU,tU,uU,vU,wU,NMa,MMa,xU,yU,zU,AU,BU,CU,DU,EU,FU,GU,HU,IU,JU,KU,LU,MU,NU,OU,PU,QU,RU,SU,TU,UU,VU,WU,XU,YU,ZU,$U,aV,bV,cV,dV,eV,fV,gV,hV,iV,jV,kV,lV,mV,nV,oV,pV,qV,rV,sV,tV,uV,vV,wV,xV,OMa,yV,zV,Zwa,$wa,axa,Swa,BV,RMa,JV,KV,OF,LV,JF,IV,MV,UMa,VMa,WMa,XMa,PMa,YMa,AV,ZMa,$Ma,PV,FV,OV,UV,QV,DV,aNa,CV,NV,RV,VV,GV,HV,TV,SV,cNa,WV,XV,dNa,
YV,X,ZV,AH,$V,eNa,hNa,iNa,mNa,aW,nNa,jNa,oNa,bW,qNa,rNa,pNa,cW,dW,tNa,wNa,uNa,zNa,HNa,GNa,ANa,INa,CNa,DNa,BNa,LNa,NNa,PNa,SNa,TNa,VNa,WNa,ZNa,aOa,XNa,qW,bOa,eOa,gOa,dOa,iOa,jOa,kOa,sW,Qpa,mOa,lOa,uW,qw,wW,xW,Npa,yW,oOa,pOa,rW,oW,fW,iW,zW,AW,kW,jW,qOa,yNa,gW,hW,nW,rOa,sOa,BW,tOa,CW,uOa,tW,mW,lW,eW,QNa,UNa,pW,cOa,JNa,ENa,DW,EW,FW,vOa,GW,HW,IW,JW,KW,LW,MW,fNa,NW,gNa,xOa,wOa,sNa,RNa,yOa,hOa,zOa,AOa,ONa,xNa,vNa,lNa,KNa,kNa,FNa,YNa,$Na,COa,fOa,MNa,DOa,OW,BOa,PW,NF,EV,SMa,vW,EOa,FOa,QW,RW,SW,TW,GOa,UW,VW,
WW,QMa,HOa,XW,IOa,JOa,YW,$W,aX,bX,cX,LOa,eX,fX,gX,KOa,dX,MOa,NOa,OOa,hX,rw,SOa,ROa,iX,jX,ZW,TOa,UOa,VOa,kX,lX,WOa,mX,nX,XOa,YOa,ZOa,$Oa,oX,aPa,pX,qX,rX,sX,tX,uX,bPa,vX,wX,xX,yX,zX,AX,BX,CX,cPa,dPa,ePa,XX,gY,iY,jY,fPa,kY,gPa,lY,hPa,mY,iPa,nY,oY,pY,qY,rY,sY,jPa,uY,vY,kPa,lPa,mPa,xY,wY,zY,AY,yY,BY,DY,nPa,oPa,QOa,CY,EY,pPa,FY,rPa,qPa,GY,HY,nOa,sPa,IY,tPa,JY,vPa,wPa,uPa,xPa,KY,yPa,zPa,APa,LY,MY,NY,BPa,OY,PY,QY,CPa,RY,SY,DPa,TY,tY,UY,VY,WY,Ywa,XY,EPa,YY,FPa,ZY,$Y,HPa,GPa,aZ,bZ,cZ,IPa,JPa,KPa,dZ,LPa,eZ,
fZ,NPa,MPa,OPa,PPa,QPa,gZ,hZ,iZ,RPa,SPa,TPa,UPa,VPa,WPa,XPa,YPa,ZPa,$Pa,jZ,kZ,aQa,bQa,lZ,mZ,nZ,oZ,cQa,pZ,dQa,qZ,eQa,fQa,rZ,gQa,hQa,sZ,iQa,jQa,tZ,uZ,kQa,vZ,wZ,xZ,zZ,lQa,AZ,BZ,CZ,mQa,DZ,nQa,EZ,FZ,GZ,oQa,HZ,pQa,qQa,rQa,sQa,tQa,uQa,JZ,vQa,wQa,xQa,yQa,zQa,KZ,LZ,AQa,MZ,NZ,OZ,PZ,BQa,QZ,CQa,DQa,EQa,TZ,FQa,GQa,HQa,UZ,SZ,IQa,WZ,JQa,XZ,KQa,YZ,ZZ,$Z,a_,b_,LQa,NQa,MQa,OQa,c_,PQa,QQa,d_,RQa,e_,f_,g_,SQa,TQa,h_,UQa,i_,VQa,j_,WQa,XQa,k_,Opa,YQa,ZQa,aa,fa,ea,zj,Na,faa;
ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.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.u=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.Ke=b.prototype};
oa=function(){this.K=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.J=0;this.Y=this.B=null};
pa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
qa=function(a,b){a.B={gN:b,oO:!0};a.j=a.J||a.D};
g.A=function(a,b,c){a.j=c;return{value:b}};
g.sa=function(a){a.j=0};
g.ta=function(a,b,c){a.J=b;void 0!=c&&(a.D=c)};
g.ua=function(a,b){a.j=b;a.J=0};
g.va=function(a){a.J=0;var b=a.B.gN;a.B=null;return b};
g.wa=function(a){a.Y=[a.B];a.J=0;a.D=0};
g.xa=function(a,b){var c=a.Y.splice(0)[0];(c=a.B=a.B||c)?c.oO?a.j=a.J||a.D:void 0!=c.Va&&a.D<c.Va?(a.j=c.Va,a.B=null):a.j=a.D:a.j=b};
baa=function(a){this.j=new oa;this.u=a};
caa=function(a,b){pa(a.j);var c=a.j.C;if(c)return ya(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Aa(a)};
ya=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.K=!1,e;var f=e.value}catch(k){return a.j.C=null,qa(a.j,k),Aa(a)}a.j.C=null;d.call(a.j,f);return Aa(a)};
Aa=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.K=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,qa(a.j,c)}a.j.K=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.oO)throw b.gN;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){pa(a.j);a.j.C?b=ya(a,a.j.C.next,b,a.j.S):(a.j.S(b),b=Aa(a));return b};
this.throw=function(b){pa(a.j);a.j.C?b=ya(a,a.j.C["throw"],b,a.j.S):(qa(a.j,b),b=Aa(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
eaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(f,e)}
f(a.next())})};
g.B=function(a){return eaa(new daa(new baa(a)))};
g.Ba=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ca=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{aO:e,RR:f}}return{aO:-1,RR:void 0}};
Da=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ea=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+""};
Fa=function(a){return a?a:Array.prototype.fill};
Ga=function(a){return a?a:Array.prototype.copyWithin};
g.Ha=function(a,b,c){a=a.split(".");c=c||g.C;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
g.Ia=function(a,b){a=a.split(".");b=b||g.C;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
Ja=function(a){a.Hf=void 0;a.getInstance=function(){return a.Hf?a.Hf:a.Hf=new a}};
Ka=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.La=function(a){var b=Ka(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Ma=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Oa=function(a){return Object.prototype.hasOwnProperty.call(a,Na)&&a[Na]||(a[Na]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.Qa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Qa=gaa:g.Qa=haa;return g.Qa.apply(null,arguments)};
g.Ra=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ta=function(){return Date.now()};
g.Ua=function(a,b){function c(){}
c.prototype=b.prototype;a.Ke=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ki=function(d,e,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}};
Va=function(a){return a};
Wa=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Xa=function(){return Error("Failed to read varint, encoding is invalid.")};
Ya=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Za=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Za);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.WU=b)};
$a=function(a,b){var c=Za.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(Za,this,d+a[e])};
iaa=function(){};
ab=function(){throw Error("Invalid UTF8");};
bb=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.db=function(a){var b=!1;b=void 0===b?!1:b;if(jaa){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(cb||(cb=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var k=a.charCodeAt(++e);if(56320<=k&&57343>=k){f=1024*(f-55296)+k-56320+65536;d[c++]=f>>
18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
kaa=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.eb=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
fb=function(a,b){return 0==a.lastIndexOf(b,0)};
gb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.ib=function(a){return/^[\s\xa0]*$/.test(a)};
jb=function(a){if(!laa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(maa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(naa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(oaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(paa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(qaa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(raa,"&#0;"));return a};
g.kb=function(a,b){return-1!=a.indexOf(b)};
lb=function(a,b){return g.kb(a.toLowerCase(),b.toLowerCase())};
g.pb=function(a,b){var c=0;a=nb(String(a)).split(".");b=nb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",k=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==f[0].length&&0==k[0].length)break;c=ob(0==f[1].length?0:parseInt(f[1],10),0==k[1].length?0:parseInt(k[1],10))||ob(0==f[2].length,0==k[2].length)||ob(f[2],k[2]);f=f[3];k=k[3]}while(0==c)}return c};
ob=function(a,b){return a<b?-1:a>b?1:0};
g.qb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
sb=function(a){var b=rb;return b?b.brands.some(function(c){return(c=c.brand)&&g.kb(c,a)}):!1};
tb=function(a){return g.kb(g.qb(),a)};
ub=function(){var a=rb;return!!a&&0<a.brands.length};
vb=function(){return ub()?!1:tb("Opera")};
wb=function(){return ub()?!1:tb("Trident")||tb("MSIE")};
xb=function(){return ub()?!1:tb("Edge")};
yb=function(){return ub()?sb("Microsoft Edge"):tb("Edg/")};
Bb=function(){return tb("Firefox")||tb("FxiOS")};
Db=function(){return tb("Safari")&&!(Cb()||(ub()?0:tb("Coast"))||vb()||xb()||yb()||(ub()?sb("Opera"):tb("OPR"))||Bb()||tb("Silk")||tb("Android"))};
Cb=function(){return ub()?sb("Chromium"):(tb("Chrome")||tb("CriOS"))&&!xb()||tb("Silk")};
Eb=function(){return tb("Android")&&!(Cb()||Bb()||vb()||tb("Silk"))};
saa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
return function(c){return b[c.find(function(d){return d in b})]||""}};
taa=function(a){var b=g.qb();if("Internet Explorer"===a){if(wb())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=saa(c);switch(a){case "Opera":if(vb())return b(["Version","Opera"]);if(ub()?sb("Opera"):tb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(xb())return b(["Edge"]);if(yb())return b(["Edg"]);break;case "Chromium":if(Cb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Bb()||"Safari"===a&&Db()||"Android Browser"===a&&Eb()||"Silk"===a&&tb("Silk")?(b=c[2])&&b[1]||"":""};
Fb=function(a){if(ub()&&"Silk"!==a){var b=rb.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=taa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Gb=function(){var a=rb;return!!a&&!!a.platform};
Hb=function(){return Gb()?"Android"===rb.platform:tb("Android")};
Ib=function(){return tb("iPhone")&&!tb("iPod")&&!tb("iPad")};
Jb=function(){return Ib()||tb("iPad")||tb("iPod")};
Kb=function(){return Gb()?"macOS"===rb.platform:tb("Macintosh")};
Lb=function(){return Gb()?"Windows"===rb.platform:tb("Windows")};
Mb=function(){var a=g.qb(),b="";if(Lb())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Jb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Kb())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(lb(g.qb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Hb())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Gb()?"Chrome OS"===rb.platform:tb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Nb=function(a){return a[a.length-1]};
uaa=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.Pb=function(a,b,c){b=Ob(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Ob=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.Qb=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.Sb=function(a,b){return 0<=Rb(a,b)};
g.Tb=function(a){return 0==a.length};
Ub=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Xb=function(a,b){b=Rb(a,b);var c;(c=0<=b)&&g.Vb(a,b);return c};
g.Vb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Yb=function(a,b){b=Ob(a,b);0<=b&&g.Vb(a,b)};
vaa=function(a,b){var c=0;uaa(a,function(d,e){b.call(void 0,d,e,a)&&g.Vb(a,e)&&c++})};
g.Zb=function(a){return Array.prototype.concat.apply([],arguments)};
g.$b=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.bc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.La(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.dc=function(a,b,c,d){Array.prototype.splice.apply(a,cc(arguments,1))};
cc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
waa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Ma(e)?"o"+g.Oa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.gc=function(a,b,c){return ec(a,c||fc,!1,b)};
hc=function(a,b){return ec(a,b,!0)};
ec=function(a,b,c,d){for(var e=0,f=a.length,k;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,k=!m)}return k?e:-e-1};
g.ic=function(a,b){a.sort(b||fc)};
xaa=function(a,b){var c=fc;g.ic(a,function(d,e){return c(b(d),b(e))})};
g.jc=function(a,b){if(!g.La(a)||!g.La(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
fc=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.kc=function(a,b,c){c=g.gc(a,b,c);0>c&&g.dc(a,-(c+1),0,b)};
g.mc=function(a,b,c){var d={};(0,g.lc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
zaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Aaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
nc=function(a){nc[" "](a);return a};
oc=function(a,b){try{return nc(a[b]),!0}catch(c){}return!1};
pc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
qc=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.sc=function(a){return pc(Baa,a,function(){return 0<=g.pb(rc,a)})};
g.tc=function(a){return Number(Caa)>=a};
g.wc=function(a,b){void 0===b&&(b=0);uc();b=vc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var k=a[e],l=a[e+1],m=a[e+2],n=b[k>>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+k+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.xc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.wc(b,3)};
Dc=function(a){var b=[];Bc(a,function(c){b.push(c)});
return b};
Fc=function(a){!g.Ec||g.sc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.kb("=.",a[b-1])&&(c=g.kb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Bc(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Bc=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Gc[n];if(null!=p)return p;if(!g.ib(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
uc();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
uc=function(){if(!Gc){Gc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));vc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Gc[f]&&(Gc[f]=e)}}}};
Ic=function(a){return Hc&&null!=a&&a instanceof Uint8Array};
Kc=function(){return Jc||(Jc=new Uint8Array(0))};
Mc=function(a){if(a!==Lc)throw Error("illegal external caller");};
Nc=function(a,b){Mc(b);this.pd=a;if(null!==a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Pc=function(){return Oc||(Oc=new Nc(null,Lc))};
Sc=function(a){return(a=Qc(a))?new Uint8Array(a):Kc()};
Qc=function(a){Mc(Lc);var b=a.pd;b=null==b||Ic(b)?b:"string"===typeof b?Fc(b):null;return a.pd=b};
Tc=function(a){if("string"===typeof a)return{buffer:Fc(a),Hr:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Hr:!1};if(a.constructor===Uint8Array)return{buffer:a,Hr:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Hr:!1};if(a.constructor===Nc)return{buffer:Qc(a)||Kc(),Hr:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Hr:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
};
g.Wc=function(a){var b=+("-"===a[0]);g.Uc=g.Vc=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),g.Uc*=1E6,g.Vc=1E6*g.Vc+d,4294967296<=g.Vc&&(g.Uc+=g.Vc/4294967296|0,g.Vc%=4294967296);b&&(a=g.Vc,b=g.Uc,b=~b,a?a=~a+1:b+=1,b=g.r([a,b]),a=b.next().value,b=b.next().value,g.Vc=a,g.Uc=b)};
g.Xc=function(a){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,void 0)};
g.Zc=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.u[a.j++],Yc(a),c|=(b&127)<<7*e;128<=b&&(b=a.u[a.j++],Yc(a),c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.j++],Yc(a),d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}throw Xa();};
Yc=function(a){if(a.j>a.B)throw Ya(a.B,a.j);};
g.$c=function(a){var b=a.u,c=b[a.j+0],d=c&127;if(128>c)return a.j+=1,Yc(a),d;c=b[a.j+1];d|=(c&127)<<7;if(128>c)return a.j+=2,Yc(a),d;c=b[a.j+2];d|=(c&127)<<14;if(128>c)return a.j+=3,Yc(a),d;c=b[a.j+3];d|=(c&127)<<21;if(128>c)return a.j+=4,Yc(a),d;c=b[a.j+4];a.j+=5;d|=(c&15)<<28;if(128>c)return Yc(a),d;if(128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++])throw Xa();Yc(a);return d};
g.ad=function(a){var b=a.u[a.j+0],c=a.u[a.j+1],d=a.u[a.j+2],e=a.u[a.j+3];a.j+=4;Yc(a);return(b<<0|c<<8|d<<16|e<<24)>>>0};
g.bd=function(a){var b=g.ad(a),c=g.ad(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
g.cd=function(a){for(var b=0,c=a.j,d=c+10;c<d;){var e=a.u[c++];b|=e;if(0===(e&128))return a.j=c,Yc(a),!!(b&127)}throw Xa();};
dd=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);if(a.j+b>a.B)throw Ya(b,a.B-a.j);};
ed=function(a,b){dd(a,b);if(0==b)return Pc();if(a.AA&&a.D)var c=a.u.subarray(a.j,a.j+b);else{c=a.u;var d=a.j,e=a.j+b;c=d===e?Kc():Daa?c.slice(d,e):new Uint8Array(c.subarray(d,e))}a.j+=b;return 0==c.length?Pc():new Nc(c,Lc)};
jd=function(a){if(fd.length){var b=fd.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.Xc(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;gd(this)};
gd=function(a){var b={};a.MF=void 0===b.MF?!1:b.MF};
kd=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.$c(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Wa(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
ld=function(a){switch(a.u){case 0:0!=a.u?ld(a):g.cd(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)ld(a);else{var b=g.$c(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!kd(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}ld(a)}while(1);break;default:throw Wa(a.u,a.B);}};
g.md=function(a,b,c){var d=a.j.B,e=g.$c(a.j)>>>0,f=a.j.j+e,k=f-d;0>=k&&(a.j.B=f,c(b,a),k=f-a.j.j);if(k)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-k)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d};
g.pd=function(a){var b=g.$c(a.j)>>>0;a=a.j;dd(a,b);var c=a.j;a.j+=b;a=a.u;if(Eaa){var d=a,e;(e=nd)||(e=nd=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===od){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),od=!0}catch(p){od=!1}}!od&&(nd=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var k=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?ab():(m=a[f++],194>l||128!==(m&192)?(f--,ab()):c.push((l&
31)<<6|m&63)):240>l?f>=b-1?ab():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,ab()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?ab():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,ab()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):ab(),8192<=c.length&&(k=bb(k,c),c.length=0);f=bb(k,c)}return f};
rd=function(a){var b=g.$c(a.j)>>>0;return ed(a.j,b)};
sd=function(a,b){this.u=a>>>0;this.j=b>>>0};
ud=function(a){if(!a)return td||(td=new sd(0,0));if(!/^-?\d+$/.test(a))return null;g.Wc(a);return new sd(g.Vc,g.Uc)};
vd=function(){this.j=[]};
wd=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
xd=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
yd=function(a,b){if(0<=b)xd(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.zd=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)};
Faa=function(){this.B=[];this.u=0;this.j=new vd};
Ad=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Cd=function(a,b){g.Bd(a,b,2);b=a.j.end();Ad(a,b);b.push(a.u);return b};
Dd=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
Gaa=function(a,b){if(b=b.Ip){Ad(a,a.j.end());for(var c=0;c<b.length;c++)Ad(a,Qc(b[c])||Kc())}};
g.Bd=function(a,b,c){xd(a.j,8*b+c)};
g.Ed=function(a,b,c){g.Bd(a,b,2);xd(a.j,c.length);Ad(a,a.j.end());Ad(a,c)};
Gd=function(a){if(a!==Fd)throw Error("requires a valid immutable API token");};
Id=function(a,b){Object.isFrozen(a)||(Hd?a[Hd]|=b:void 0!==a.MB?a.MB|=b:Object.defineProperties(a,{MB:{value:b,configurable:!0,writable:!0,enumerable:!1}}))};
Jd=function(a){var b;Hd?b=a[Hd]:b=a.MB;return null==b?0:b};
Kd=function(a){Id(a,1);return a};
Ld=function(a){return Array.isArray(a)?!!(Jd(a)&2):!1};
Md=function(a){if(!Array.isArray(a))throw Error("cannot mark non-array as immutable");Id(a,2)};
Nd=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
Pd=function(a){return null==a?Pc():a.constructor===Nc?a:"string"===typeof a?a?new Nc(a,Lc):Pc():Ic(a)?a.length?new Nc(new Uint8Array(a),Lc):Pc():Pc()};
Qd=function(a){if(Ld(a.Ud))throw Error("Cannot mutate an immutable Message");};
Rd=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};
Sd=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Ic(a))return g.wc(a);if(a instanceof Nc){var b=a.pd;b=null==b||"string"===typeof b?b:Hc&&b instanceof Uint8Array?g.wc(b):null;return(a.pd=b)||""}}}return a};
Ud=function(a,b){b=void 0===b?Haa:b;return Td(a,b)};
Vd=function(a,b){if(null!=a){if(Array.isArray(a))a=Td(a,b);else if(Nd(a)){var c={},d;for(d in a)c[d]=Vd(a[d],b);a=c}else a=b(a);return a}};
Td=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=Vd(c[d],b);Array.isArray(a)&&Jd(a)&1&&Kd(c);return c};
Wd=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=Sd(a);return Array.isArray(a)?Ud(a,Wd):a};
Haa=function(a){return Ic(a)?new Uint8Array(a):a};
Xd=function(a){return a.u||(a.u=a.Ud[a.B+a.Qq]={})};
g.Yd=function(a,b,c){return-1===b?null:b>=a.B?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.Ud[b+a.Qq]};
g.D=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||Qd(a);b<a.B&&!d?a.Ud[b+a.Qq]=c:Xd(a)[b]=c;return a};
g.$d=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;var e=g.Yd(a,b,d);null==e&&(e=Zd);if(Ld(a.Ud))c&&(Md(e),Object.freeze(e));else if(e===Zd||Ld(e))e=Kd(e.slice()),g.D(a,b,e,d);return e};
ae=function(a,b){var c=g.Yd(a,b);if(null==c)return null;if(c instanceof Nc)return c;c=Pd(c);g.D(a,b,c,void 0,!0);return c};
be=function(a,b,c){a=g.Yd(a,b);return null==a?c:a};
ce=function(a,b){var c=void 0===c?"":c;a=ae(a,b);return null==a?c?new Nc(c,Lc):Pc():a};
de=function(a,b,c){var d=void 0===d?!1:d;return g.D(a,b,null==c?Kd([]):Array.isArray(c)?Kd(c):c,d)};
ee=function(a,b,c){g.D(a,b,void 0,!1,void 0===c?!1:c)};
fe=function(a,b,c,d){Qd(a);c!==d?g.D(a,b,c):ee(a,b);return a};
g.ge=function(a,b,c,d,e){Qd(a);a=g.$d(a,b);e&&Jd(a)&4&&(c=Pd(c));void 0!=d?a.splice(d,0,c):a.push(c)};
g.me=function(a,b,c,d){Qd(a);(c=le(a,c))&&c!==b&&null!=d&&(a.j&&c in a.j&&(a.j[c]=void 0),g.D(a,c));return g.D(a,b,d)};
le=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.Yd(a,e)&&(0!==c&&ee(a,c,!0),c=e)}return c};
g.ne=function(a,b,c){var d=void 0===d?!1:d;Qd(a);a.j||(a.j={});var e=a.j[c];if(e)return b=e.vJ(Fd),b!==e&&(g.D(a,c,b.Ud,d),a.j[c]=b),b;e=new b(g.Yd(a,c,d));Ld(e.Ud)&&(e=e.vJ(Fd));g.D(a,c,e.Ud,d);return a.j[c]=e};
oe=function(a,b,c,d,e){if(-1===c)return null;a.j||(a.j={});var f=a.j[c];if(f)return f;e=g.Yd(a,c,void 0===e?!1:e);if(null==e&&!d)return f;b=new b(e);Ld(a.Ud)&&Md(b.Ud);return a.j[c]=b};
pe=function(a,b,c,d){a.j||(a.j={});var e=Ld(a.Ud),f=a.j[c];if(!f){d=g.$d(a,c,!0,void 0===d?!1:d);f=[];e=e||Ld(d);for(var k=0;k<d.length;k++)f[k]=new b(d[k]),e&&Md(f[k].Ud);e&&(Md(f),Object.freeze(f));a.j[c]=f}return f};
re=function(a,b,c,d){d=void 0===d?!1:d;Qd(a);a.j||(a.j={});var e=c?c.Ud:c;a.j[b]=c;return g.D(a,b,e,d)};
se=function(a,b,c,d){Qd(a);a.j||(a.j={});var e=d?d.Ud:d;a.j[b]=d;g.me(a,b,c,e)};
te=function(a,b,c,d){d=void 0===d?!1:d;Qd(a);if(c){var e=Kd([]);for(var f=0;f<c.length;f++)e[f]=c[f].Ud;a.j||(a.j={});a.j[b]=c}else a.j&&(a.j[b]=void 0),e=Zd;return g.D(a,b,e,d)};
ue=function(a,b,c,d){var e=void 0===e?!1:e;Qd(a);e=pe(a,c,b,e);c=d?d:new c;a=g.$d(a,b);e.push(c);a.push(c.Ud);return c};
ve=function(a,b,c){return be(a,b,void 0===c?0:c)};
xe=function(a,b,c){a||(a=we);we=null;var d=this.constructor.j;a||(a=d?[d]:[]);this.Qq=(d?0:-1)-(this.constructor.u||0);this.j=void 0;this.Ud=a;a:{d=this.Ud.length;a=d-1;if(d&&(d=this.Ud[a],Nd(d))){this.B=a-this.Qq;this.u=d;break a}void 0!==b&&-1<b?(this.B=Math.max(b,a+1-this.Qq),this.u=void 0):this.B=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.B)a+=this.Qq,(d=this.Ud[a])?Array.isArray(d)&&Kd(d):this.Ud[a]=Zd;else{d=Xd(this);var e=d[a];e?Array.isArray(e)&&Kd(e):d[a]=Zd}};
ze=function(a){ye=!0;try{return JSON.stringify(a.toJSON(),Iaa)}finally{ye=!1}};
Ae=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("Expected to deserialize an Array but got "+Ka(b)+": "+b);we=b;a=new a(b);we=null;return a};
Iaa=function(a,b){return Sd(b)};
Be=function(a,b){b.Ip&&(a.Ip=b.Ip.slice());var c=b.j;if(c){b=b.u;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),k=+d;if(Array.isArray(e)){if(e.length)for(f=pe(a,e[0].constructor,k,f),k=0;k<Math.min(f.length,e.length);k++)Be(f[k],e[k])}else(f=oe(a,e.constructor,k,void 0,f))&&Be(f,e)}}}};
Ce=function(){xe.apply(this,arguments)};
Fe=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],k=f.b1;k||(d.ew=f.Sia||f.C_.CD,f.rM?(d.ND=De(f.rM),k=function(l){return function(m,n,p){return l.ew(m,n,p,l.ND)}}(d)):f.SO?(d.OD=Ee(f.XF.gr,f.SO),k=function(l){return function(m,n,p){return l.ew(m,n,p,l.OD)}}(d)):k=d.ew,f.b1=k);
k(b,a,f.XF);d={ew:d.ew,ND:d.ND,OD:d.OD}}}Gaa(b,a)};
He=function(a,b,c){return a[Ge]||(a[Ge]=function(d,e){return b(d,e,c)})};
Me=function(a){var b=a[Ge];if(!b){var c=Ke(a);b=function(d,e){return Le(d,e,c)};
a[Ge]=b}return b};
Jaa=function(a){var b=a.rM;if(b)return Me(b);if(b=a.Ria)return He(a.XF.gr,b,a.SO)};
Kaa=function(a){var b=Jaa(a),c=a.XF,d=a.C_.zm;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
Pe=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(Ne in c||Oe in c||0<c.length&&"function"==typeof c[0])?c:void 0};
Qe=function(a,b,c,d,e,f){b.gr=a[0];var k=1;if(a.length>k&&"number"!==typeof a[k]){var l=a[k++];c(b,l)}for(;k<a.length;){c=a[k++];for(var m=k+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[k++];m-=k;switch(m){case 0:d(b,c,l);break;case 1:(m=Pe(a,k))?(k++,e(b,c,l,m)):d(b,c,l,a[k++]);break;case 2:m=k++;m=Pe(a,m);e(b,c,l,m,a[k++]);break;case 3:f(b,c,l,a[k++],a[k++],a[k++]);break;case 4:f(b,c,l,a[k++],a[k++],a[k++],a[k++]);break;default:throw Error("unexpected number of binary field arguments: "+m);}}return b};
De=function(a){var b=a[Re];if(!b){var c=Se(a);b=function(d,e){return Te(d,e,c)};
a[Re]=b}return b};
Ee=function(a,b){var c=a[Re];c||(c=function(d,e){return Fe(d,e,b)},a[Re]=c);
return c};
Laa=function(a,b){a.push(b)};
Maa=function(a,b,c){a.push(b,c.CD)};
Naa=function(a,b,c,d){var e=De(d),f=Se(d).gr,k=c.CD;a.push(b,function(l,m,n){return k(l,m,n,f,e)})};
Oaa=function(a,b,c,d,e,f){var k=Ee(d,f),l=c.CD;a.push(b,function(m,n,p){return l(m,n,p,d,k)})};
Se=function(a){var b=a[Oe];if(b)return b;b=Qe(a,a[Oe]=[],Laa,Maa,Naa,Oaa);Ne in a&&Oe in a&&(a.length=0);return b};
Paa=function(a,b){a[0]=b};
Qaa=function(a,b,c,d){var e=c.zm;a[b]=d?function(f,k,l){return e(f,k,l,d)}:e};
Raa=function(a,b,c,d,e){var f=c.zm,k=Me(d),l=Ke(d).gr;a[b]=function(m,n,p){return f(m,n,p,l,k,e)}};
Saa=function(a,b,c,d,e,f,k){var l=c.zm,m=He(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,k)}};
Ke=function(a){var b=a[Ne];if(b)return b;b=Qe(a,a[Ne]={},Paa,Qaa,Raa,Saa);Ne in a&&Oe in a&&(a.length=0);return b};
Le=function(a,b,c){for(;kd(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=Kaa(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,ld(f),!f.MF){var k=f.j.j-d;f.j.j=d;d=ed(f.j,k);(f=e.Ip)?f.push(d):e.Ip=[d]}}return a};
Te=function(a,b,c){for(var d=c.length,e=1==d%2,f=e?1:0;f<d;f+=2)(0,c[f+1])(b,a,c[f]);Fe(a,b,e?c[0]:void 0)};
g.Ue=function(a,b){var c=new Faa;Te(a,c,Se(b));Ad(c,c.j.end());a=new Uint8Array(c.u);b=c.B;for(var d=b.length,e=0,f=0;f<d;f++){var k=b[f];a.set(k,e);e+=k.length}c.B=[a];return a};
g.Ve=function(a,b){return{zm:a,CD:b}};
g.We=function(a,b,c){b=g.Yd(b,c);if(null!=b){g.Bd(a,c,1);a=a.j;var d=+b;if(0===d)g.Uc=0<1/d?0:2147483648,g.Vc=0;else if(isNaN(d))g.Uc=2147483647,g.Vc=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.Uc=(c|2146435072)>>>0,g.Vc=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.Uc=(c|b/4294967296)>>>0,g.Vc=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.Uc=(c|b+1023<<20|1048576*d&1048575)>>>0;g.Vc=4503599627370496*
d>>>0}g.zd(a,g.Vc);g.zd(a,g.Uc)}};
g.Xe=function(a,b,c){b=g.Yd(b,c);if(null!=b&&("string"===typeof b&&ud(b),null!=b))if(g.Bd(a,c,0),"number"===typeof b){a=a.j;var d=b;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));g.Vc=b;g.Uc=d;wd(a,g.Vc,g.Uc)}else c=ud(b),wd(a.j,c.u,c.j)};
g.Ye=function(a,b,c){b=g.Yd(b,c);null!=b&&null!=b&&(g.Bd(a,c,0),yd(a.j,b))};
g.Ze=function(a,b,c){b=g.Yd(b,c);null!=b&&g.Ed(a,c,g.db(b))};
g.$e=function(a,b,c,d,e){b=oe(b,d,c);null!=b&&(c=Cd(a,c),e(b,a),Dd(a,c))};
af=function(a,b,c,d){var e=Taa,f=Uaa;this.j=a;this.fieldName=b;this.gr=c;this.C=d;this.isRepeated=0;this.u=e;this.B=f};
Taa=function(a){var b=this.gr,c=this.j;return this.isRepeated?pe(a,b,c,!0):oe(a,b,c,void 0,!0)};
Uaa=function(a,b){var c=this.j;return this.isRepeated?te(a,c,b,!0):re(a,c,b,!0)};
bf=function(a,b,c,d,e,f){(a=a.j&&a.j[c])?Array.isArray(a)?te(b,c,f.DF?Kd(a.slice()):a):re(b,c,a):(Hc&&d instanceof Uint8Array?e=d.length?new Nc(new Uint8Array(d),Lc):Pc():(Array.isArray(d)&&(e?Md(d):Array.isArray(d)&&Jd(d)&1&&f.DF&&(d=d.slice())),e=d),g.D(b,c,e))};
cf=function(a){return null===a?void 0:a};
g.F=function(){Ce.apply(this,arguments)};
df=function(a){g.F.call(this,a)};
ef=function(a){g.F.call(this,a)};
ff=function(a){g.F.call(this,a)};
gf=function(a){g.F.call(this,a)};
hf=function(a){this.BM=a};
jf=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Yt=new Map};
kf=function(a,b){jf.call(this,a,3,b)};
mf=function(a,b){jf.call(this,a,2,b)};
g.nf=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.of=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.La(d)?g.of.apply(null,d):g.nf(d)}};
g.G=function(){this.nj=this.nj;this.Pg=this.Pg};
g.H=function(a,b){g.pf(a,g.Ra(g.nf,b))};
g.pf=function(a,b){a.nj?b():(a.Pg||(a.Pg=[]),a.Pg.push(b))};
g.qf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Vaa=function(a){var b=g.Ia("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(k){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(k){e="Not available",c=!0}b=rf(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,sf[c])c=sf[c];else{c=String(c);if(!sf[c]){var f=/function\s+([^\(]+)/m.exec(c);sf[c]=f?f[1]:"[Anonymous]"}c=sf[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}};
rf=function(a,b){b||(b={});b[tf(a)]=!0;var c=a.stack||"";(a=a.WU)&&!b[tf(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=rf(a,b));return c};
tf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
vf=function(a){return g.uf?"webkit"+a:a.toLowerCase()};
wf=function(a,b){g.qf.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;a&&this.init(a,b)};
yf=function(a){return!(!a||!a[xf])};
Xaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Qc=e;this.key=++Waa;this.nz=this.HA=!1};
zf=function(a){a.nz=!0;a.listener=null;a.proxy=null;a.src=null;a.Qc=null};
g.Af=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Bf=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Cf=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Df=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Ef=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Ff=function(a){for(var b in a)return b};
Gf=function(a){for(var b in a)return a[b]};
Hf=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.If=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Jf=function(a,b){return null!==a&&b in a};
g.Kf=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Nf=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
Of=function(a,b){return(b=Nf(a,b))&&a[b]};
g.Pf=function(a){for(var b in a)return!1;return!0};
g.Qf=function(a){for(var b in a)delete a[b]};
g.Rf=function(a,b){b in a&&delete a[b]};
g.Sf=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Tf=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.Uf=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Vf=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.Vf(a[c]);return b};
g.Xf=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<Wf.length;f++)c=Wf[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Yf=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Zf=function(a){this.src=a;this.listeners={};this.j=0};
g.$f=function(a,b){var c=b.type;c in a.listeners&&g.Xb(a.listeners[c],b)&&(zf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
ag=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.nz&&f.listener==b&&f.capture==!!c&&f.Qc==d)return e}return-1};
g.cg=function(a,b,c,d,e){if(d&&d.once)return bg(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.cg(a,b[f],c,d,e);return null}c=dg(c);return yf(a)?a.Ma(b,c,g.Ma(d)?!!d.capture:!!d,e):eg(a,b,c,!1,d,e)};
eg=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Ma(e)?!!e.capture:!!e,l=fg(a);l||(a[gg]=l=new Zf(a));c=l.add(b,c,d,k,f);if(c.proxy)return c;d=Yaa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Zaa||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(hg(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");ig++;return c};
Yaa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=$aa;return a};
bg=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)bg(a,b[f],c,d,e);return null}c=dg(c);return yf(a)?a.ZB(b,c,g.Ma(d)?!!d.capture:!!d,e):eg(a,b,c,!0,d,e)};
jg=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)jg(a,b[f],c,d,e);else d=g.Ma(d)?!!d.capture:!!d,c=dg(c),yf(a)?a.xc(b,c,d,e):a&&(a=fg(a))&&(b=a.Ox(b,c,d,e))&&kg(b)};
kg=function(a){if("number"!==typeof a&&a&&!a.nz){var b=a.src;if(yf(b))g.$f(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(hg(c),d):b.addListener&&b.removeListener&&b.removeListener(d);ig--;(c=fg(b))?(g.$f(c,a),0==c.j&&(c.src=null,b[gg]=null)):zf(a)}}};
hg=function(a){return a in lg?lg[a]:lg[a]="on"+a};
$aa=function(a,b){if(a.nz)a=!0;else{b=new wf(b,this);var c=a.listener,d=a.Qc||a.src;a.HA&&kg(a);a=c.call(d,b)}return a};
fg=function(a){a=a[gg];return a instanceof Zf?a:null};
dg=function(a){if("function"===typeof a)return a;a[mg]||(a[mg]=function(b){return a.handleEvent(b)});
return a[mg]};
g.ng=function(){g.G.call(this);this.B=new Zf(this);this.rb=this;this.Ia=null};
og=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.nz&&k.capture==c){var l=k.listener,m=k.Qc||k.src;k.HA&&g.$f(a.B,k);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
sg=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
ug=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
vg=function(a){return function(){return a}};
g.wg=function(){};
aba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
xg=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
yg=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
bba=function(a,b){var c=0;return function(d){g.C.clearTimeout(c);var e=arguments;c=g.C.setTimeout(function(){a.apply(b,e)},50)}};
Ag=function(){if(void 0===zg){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Va,createScript:Va,createScriptURL:Va})}catch(c){g.C.console&&g.C.console.error(c.message)}zg=a}else zg=a}return zg};
Dg=function(a,b){this.j=a===Bg&&b||"";this.u=Cg};
Eg=function(a){return a instanceof Dg&&a.constructor===Dg&&a.u===Cg?a.j:"type_error:Const"};
g.Fg=function(a){return new Dg(Bg,a)};
Hg=function(a,b){this.j=b===Gg?a:"";this.jm=!0};
Jg=function(a,b){this.j=b===Ig?a:""};
Kg=function(a){return a instanceof Jg&&a.constructor===Jg?a.j:"type_error:TrustedResourceUrl"};
eba=function(a,b){var c=Eg(a);if(!cba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(dba,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof Dg?Eg(d):encodeURIComponent(String(d))});
return g.Lg(a)};
g.Lg=function(a){var b=Ag();a=b?b.createScriptURL(a):a;return new Jg(a,Ig)};
g.Ng=function(a,b){this.j=b===Mg?a:""};
g.Og=function(a){return a instanceof g.Ng&&a.constructor===g.Ng?a.j:"type_error:SafeUrl"};
Pg=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(fba)?new g.Ng(a,Mg):null};
g.Sg=function(a){a instanceof g.Ng||(a="object"==typeof a&&a.jm?a.Oi():String(a),a=Qg.test(a)?new g.Ng(a,Mg):Pg(a));return a||Rg};
g.Tg=function(a,b){if(a instanceof g.Ng)return a;a="object"==typeof a&&a.jm?a.Oi():String(a);if(b&&/^data:/i.test(a)&&(b=Pg(a)||Rg,b.Oi()==a))return b;Qg.test(a)||(a="about:invalid#zClosurez");return new g.Ng(a,Mg)};
Vg=function(a,b){this.j=b===Ug?a:"";this.jm=!0};
Wg=function(a){return a instanceof Vg&&a.constructor===Vg?a.j:"type_error:SafeStyle"};
Zg=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(Xg).join(" "):Xg(d),b+=c+":"+d+";")}return b?new Vg(b,Ug):Yg};
gba=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Wg(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new Vg(c,Ug):Yg};
Xg=function(a){if(a instanceof g.Ng)return'url("'+g.Og(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Dg)a=Eg(a);else{a=String(a);var b=a.replace($g,"$1").replace($g,"$1").replace(ah,"url");if(hba.test(b)){if(b=!iba.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&jba(a)}a=b?kba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new $a("Value does not allow [{;}], got: %s.",[a]);return a};
jba=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};
kba=function(a){return a.replace(ah,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.Sg(d).Oi();return c+f+b+f+e})};
ch=function(a,b,c){this.j=c===bh?a:"";this.u=b;this.jm=this.LG=!0};
g.dh=function(a){return a instanceof ch&&a.constructor===ch?a.j:"type_error:SafeHtml"};
lh=function(a){if(a instanceof ch)return a;var b="object"==typeof a,c=null;b&&a.LG&&(c=a.Ct());return kh(jb(b&&a.jm?a.Oi():String(a)),c)};
lba=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=lh(f),e.push(g.dh(f).toString()),f=f.Ct(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=lh(mh),d=c.Ct(),e=[];a.forEach(b);return kh(e.join(g.dh(c).toString()),d)};
mba=function(a){return lba(Array.prototype.slice.call(arguments))};
kh=function(a,b){var c=Ag();a=c?c.createHTML(a):a;return new ch(a,b,bh)};
g.nh=function(a,b){return kh(b,null)};
nba=function(a,b){return new Vg(b,Ug)};
g.oh=function(a,b){if(oba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.dh(b)};
g.ph=function(a,b){b=b instanceof g.Ng?b:g.Tg(b);a.href=g.Og(b)};
qh=function(a,b,c,d){a=a instanceof g.Ng?a:g.Tg(a);b=b||g.C;c=c instanceof Dg?Eg(c):c||"";return void 0!==d?b.open(g.Og(a),c,d):b.open(g.Og(a),c)};
rh=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&pba.test(a))break a;a=""}return a};
qba=function(a,b){return a+Math.random()*(b-a)};
g.sh=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.th=function(a,b){a%=b;return 0>a*b?a+b:a};
g.uh=function(a,b,c){return a+c*(b-a)};
vh=function(a,b){return 1E-6>=Math.abs(a-b)};
g.wh=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
xh=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.yh=function(a,b){this.width=a;this.height=b};
g.zh=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Ah=function(a){return a.width*a.height};
g.Bh=function(a){return encodeURIComponent(String(a))};
Ch=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Dh=function(a){return a=jb(a)};
g.Eh=function(a){return null==a?"":String(a)};
Fh=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Gh=function(a){var b=Number(a);return 0==b&&g.ib(a)?NaN:b};
Hh=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Ih=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
rba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
sba=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};
Mh=function(a){return a?new Jh(Kh(a)):Lh||(Lh=new Jh)};
Nh=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.Oh=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Qh=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ph(document,"*",a,b)};
g.Th=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.Ph(c,"*",a,b)[0]||null}return a||null};
g.Ph=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,k;k=a[f];f++)b==k.nodeName&&(d[e++]=k);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;k=a[f];f++)b=k.className,"function"==typeof b.split&&g.Sb(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
Vh=function(a,b){g.Af(b,function(c,d){c&&"object"==typeof c&&c.jm&&(c=c.Oi());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Uh.hasOwnProperty(d)?a.setAttribute(Uh[d],c):fb(d,"aria-")||fb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Wh=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.yh(a.clientWidth,a.clientHeight)};
Yh=function(a){var b=Xh(a);a=a.parentWindow||a.defaultView;return g.Ec&&g.sc("10")&&a.pageYOffset!=b.scrollTop?new g.wh(b.scrollLeft,b.scrollTop):new g.wh(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Xh=function(a){return a.scrollingElement?a.scrollingElement:g.uf||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Zh=function(a){return a?a.parentWindow||a.defaultView:window};
bi=function(a,b,c){var d=arguments,e=document,f=d[1],k=$h(e,String(d[0]));f&&("string"===typeof f?k.className=f:Array.isArray(f)?k.className=f.join(" "):Vh(k,f));2<d.length&&ai(e,k,d,2);return k};
ai=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.La(f)||g.Ma(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Ma(f)){var k="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){k="function"==typeof f.item;break a}}k=!1}g.lc(k?g.$b(f):f,e)}}};
g.ci=function(a){return $h(document,a)};
$h=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.di=function(a){return document.createTextNode(String(a))};
g.ei=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.fi=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.gi=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
tba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.hi=function(a){var b;if(uba&&!(g.Ec&&g.sc("9")&&!g.sc("10")&&g.C.SVGElement&&a instanceof g.C.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Ma(b)&&1==b.nodeType?b:null};
g.ii=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};
Kh=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.ji=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.ei(a),a.appendChild(Kh(a).createTextNode(String(b)))};
li=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")||ki(a)):a.hasAttribute("tabindex")&&ki(a))&&g.Ec){var c;"function"!==typeof a.getBoundingClientRect||g.Ec&&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};
ki=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
ni=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return mi(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Sb(e.className.split(/\s+/),c))},!0)};
mi=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Jh=function(a){this.j=a||g.C.document||document};
pi=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!xb()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(oi||(oi=vba()),oi(a)):g.C.setImmediate(a)};
vba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tb("Presto")&&(a=function(){var e=g.ci("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Qa)(function(m){if(("*"==l||m.origin==l)&&m.data==k)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}});
if("undefined"!==typeof a&&!wb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.yM;c.yM=null;e()}};
return function(e){d.next={yM:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
qi=function(a){g.C.setTimeout(function(){throw a;},0)};
ri=function(){this.u=this.j=null};
si=function(){this.next=this.scope=this.j=null};
g.vi=function(a,b){ti||wba();ui||(ti(),ui=!0);xba.add(a,b)};
wba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);ti=function(){a.then(yba)}}else ti=function(){pi(yba)}};
yba=function(){for(var a;a=xba.remove();){try{a.j.call(a.scope)}catch(b){qi(b)}ug(zba,a)}ui=!1};
g.xi=function(a){this.j=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.wg)try{var b=this;a.call(void 0,function(c){wi(b,2,c)},function(c){wi(b,3,c)})}catch(c){wi(this,3,c)}};
Aba=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
yi=function(a,b,c){var d=Bba.get();d.u=a;d.onRejected=b;d.context=c;return d};
zi=function(a){if(a instanceof g.xi)return a;var b=new g.xi(g.wg);wi(b,2,a);return b};
Ai=function(a){return new g.xi(function(b,c){c(a)})};
g.Dba=function(a,b,c){Cba(a,b,c,null)||g.vi(g.Ra(b,a))};
Eba=function(a){return new g.xi(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Dba(e,b,c)})};
Ci=function(a,b){b=yi(b,b);b.B=!0;Bi(a,b);return a};
Fba=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,k=c.u;k&&(k.B||(d++,k.j==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.j&&1==d?Fba(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Gba(c),Hba(c,e,3,b)))}a.B=null}else wi(a,3,b)};
Bi=function(a,b){a.u||2!=a.j&&3!=a.j||Iba(a);a.C?a.C.next=b:a.u=b;a.C=b};
Jba=function(a,b,c,d){var e=yi(null,null,null);e.j=new g.xi(function(f,k){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){k(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Di?k(l):f(m)}catch(n){k(n)}}:k});
e.j.B=a;Bi(a,e);return e.j};
wi=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Cba(c,a.G0,a.H0,a)||(a.K=c,a.j=b,a.B=null,Iba(a),3!=b||c instanceof Di||Kba(a,c)))};
Cba=function(a,b,c,d){if(a instanceof g.xi)return Bi(a,yi(b||g.wg,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(k){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Ma(a))try{var f=a.then;if("function"===typeof f)return Lba(a,f,b,c,d),!0}catch(k){return c.call(d,k),!0}return!1};
Lba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function k(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
Iba=function(a){a.J||(a.J=!0,g.vi(a.AV,a))};
Gba=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Hba=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,Mba(b,c,d);else try{b.B?b.u.call(b.context):Mba(b,c,d)}catch(e){Nba.call(null,e)}ug(Bba,b)};
Mba=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
Kba=function(a,b){a.D=!0;g.vi(function(){a.D&&Nba.call(null,b)})};
Di=function(a){Za.call(this,a)};
g.Ei=function(a,b){g.ng.call(this);this.Wg=a||1;this.Lz=b||g.C;this.sM=(0,g.Qa)(this.u0,this);this.BO=g.Ta()};
g.Fi=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Qa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Qa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
Gi=function(a,b){var c=null;return(new g.xi(function(d,e){c=g.Fi(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Di(function(d){g.C.clearTimeout(c);
throw d;})};
g.Hi=function(a){this.K=a;this.j=new Map;this.J=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Ei(this.flushInterval);this.u.Ma("tick",this.bR,!1,this);this.D=!1};
Oba=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.bR()};
Pba=function(a,b){return a.J.has(b)?void 0:a.j.get(b)};
Qba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Rba=function(a){this.j=a;this.j.iM("/client_streamz/po/w/rl",{fp:3,ep:"mn"},{fp:2,ep:"ac"},{fp:2,ep:"sc"},{fp:3,ep:"rk"})};
Sba=function(a){this.j=a;this.j.iM("/client_streamz/po/w/el",{fp:3,ep:"en"},{fp:3,ep:"rk"})};
Tba=function(a){this.j=a;this.j.zA("/client_streamz/po/w/cec",{fp:2,ep:"ec"},{fp:3,ep:"rk"})};
g.Ii=function(a){g.F.call(this,a,-1,Uba)};
g.Ji=function(a){g.F.call(this,a,-1,Vba)};
g.Ki=function(a){g.F.call(this,a)};
g.Li=function(a){g.F.call(this,a)};
Xba=function(a){g.F.call(this,a,-1,Wba)};
g.Yba=function(a){var b=new g.Ii;b=g.D(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].ep);b=de(b,3,c);c=[];d=[];for(var e=g.r(a.Yt.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var k=a.C;for(var l=a.eG(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.BM;var q=new g.Li;switch(k){case 3:g.me(q,1,g.Mi,Number(p));break;case 2:g.me(q,2,g.Mi,Number(p))}m.push(q)}k=m;for(l=0;l<k.length;l++){m=k[l];n=new g.Ji;m=re(n,2,m);n=f;p=[];q=a;for(var t=
[],v=0;v<q.j.length;v++)t.push(q.j[v].fp);q=t;for(t=0;t<q.length;t++){v=q[t];var x=n[t],y=new g.Ki;switch(v){case 3:g.me(y,1,g.Ni,String(x));break;case 2:g.me(y,2,g.Ni,Number(x));break;case 1:g.me(y,3,g.Ni,"true"==x)}p.push(y)}te(m,1,p);c.push(m)}}te(b,4,c);return b};
Zba=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==
c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
$ba=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var t=k,v=0;64>v;v+=4)t[v/4]=q[v]<<24|q[v+1]<<16|q[v+2]<<8|q[v+3];for(v=16;80>v;v++)q=t[v-3]^t[v-8]^t[v-14]^t[v-16],t[v]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],E=e[4];for(v=0;80>v;v++){if(40>v)if(20>v){var J=z^x&(y^z);var I=1518500249}else J=x^y^z,I=1859775393;else 60>v?(J=x&y|z&(x|y),I=2400959708):(J=x^y^z,I=3395469782);J=((q<<5|q>>>27)&4294967295)+J+E+I+t[v]&4294967295;E=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=J}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+E&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var v=[],x=0,y=q.length;x<y;++x)v.push(q.charCodeAt(x));q=v}t||(t=q.length);v=0;if(0==n)for(;v+64<t;)b(q.slice(v,v+64)),v+=64,p+=64;for(;v<t;)if(f[n++]=q[v++],p++,64==n)for(n=0,b(f);v+64<t;)b(q.slice(v,v+64)),v+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var v=63;56<=v;v--)f[v]=t&255,t>>>=8;b(f);for(v=t=0;5>v;v++)for(var x=24;0<=x;x-=8)q[t++]=e[v]>>x&255;return q}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,qV:function(){for(var q=d(),t="",v=0;v<q.length;v++)t+="0123456789ABCDEF".charAt(Math.floor(q[v]/16))+"0123456789ABCDEF".charAt(q[v]%16);return t}}};
bca=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,aca(Zba(d),a,c||null)].join(" "):null};
aca=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.lc(d,function(l){e.push(l)}),cca(e.join(" "));
var f=[],k=[];g.lc(c,function(l){k.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Tb(f)?[c,b,a]:[f.join(":"),c,b,a];g.lc(d,function(l){e.push(l)});
a=cca(e.join(" "));a=[c,a];g.Tb(k)||a.push(k.join(""));return a.join("_")};
cca=function(a){var b=$ba();b.update(a);return b.qV().toLowerCase()};
Oi=function(a){this.j=a||{cookie:""}};
Pi=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=nb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Qi=function(a){return!!dca.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
eca=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;Qi(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new Oi(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Qi(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
fca=function(a,b,c,d){(a=g.C[a])||(a=(new Oi(document)).get(b));return a?bca(a,c,d):null};
Ri=function(a,b){b=void 0===b?!1:b;var c=Zba(String(g.C.location.href)),d=[];if(eca(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.C.__SAPISID:g.C.__APISID;e||(e=new Oi(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?bca(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Qi(b)&&((b=fca("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=fca("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
Si=function(a){g.F.call(this,a,-1,gca)};
g.Ti=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.J=c||0;this.K=d||2};
g.Ui=function(a){a.j=Math.min(a.D,a.j*a.K);a.B=Math.min(a.D,a.j+(a.J?Math.round(a.J*(Math.random()-.5)*2*a.j):0));a.u++};
g.Wi=function(a){var b=[];Vi(new hca,a,b);return b.join("")};
hca=function(){};
Vi=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),Vi(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),ica(d,c),c.push(":"),Vi(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":ica(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);}}};
ica=function(a,b){b.push('"',a.replace(jca,function(c){var d=kca[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),kca[c]=d);return d}),'"')};
lca=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"}};
Xi=function(){};
Yi=function(){};
mca=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};
ij=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
jj=function(a){return a?decodeURI(a):a};
g.lj=function(a,b){return b.match(kj)[a]||null};
g.mj=function(a){return jj(g.lj(3,a))};
g.nca=function(a){a=a.match(kj);return ij(a[1],a[2],a[3],a[4])};
oca=function(a){a=a.match(kj);return ij(a[1],null,a[3],a[4])};
pca=function(a){a=a.match(kj);return ij(null,null,null,null,a[5],a[6],a[7])};
nj=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?Ch(e):"")}}};
qca=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.slice(0,c),d,a.slice(b)]};
rca=function(a,b){return b?a?a+"&"+b:b:a};
oj=function(a,b){if(!b)return a;a=qca(a);a[1]=rca(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
pj=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)pj(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Bh(b)))};
sca=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)pj(a[b],a[b+1],c);return c.join("&")};
g.qj=function(a){var b=[],c;for(c in a)pj(c,a[c],b);return b.join("&")};
rj=function(a,b){var c=2==arguments.length?sca(arguments[1],0):sca(arguments,1);return oj(a,c)};
g.sj=function(a,b){b=g.qj(b);return oj(a,b)};
tj=function(a,b,c){c=null!=c?"="+g.Bh(c):"";return oj(a,b+c)};
tca=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};
uj=function(a,b){var c=a.search(uca),d=tca(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 Ch(a.slice(d,-1!==e?e:0))};
vj=function(a,b){for(var c=a.search(uca),d=0,e,f=[];0<=(e=tca(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(vca,"$1")};
wca=function(a,b,c){return tj(vj(a,b),b,c)};
xca=function(a,b){a=qca(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.slice(0,f):e)||d.push(e)});
a[1]=rca(d.join("&"),g.qj(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.xj=function(a){g.ng.call(this);this.headers=new Map;this.Y=a||null;this.C=!1;this.va=this.j=null;this.ma="";this.u=0;this.D="";this.J=this.Ga=this.Z=this.Aa=!1;this.S=0;this.ra=null;this.La="";this.Ta=this.K=!1};
zca=function(a,b,c,d,e,f,k){var l=new g.xj;yca.push(l);b&&l.Ma("complete",b);l.ZB("ready",l.bV);f&&(l.S=Math.max(0,f));k&&(l.K=k);l.send(a,c,d,e)};
Aca=function(a){return g.Ec&&g.sc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Cca=function(a,b){a.C=!1;a.j&&(a.J=!0,a.j.abort(),a.J=!1);a.D=b;a.u=5;Bca(a);yj(a)};
Bca=function(a){a.Aa||(a.Aa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Dca=function(a){if(a.C&&"undefined"!=typeof zj)if(a.va[1]&&4==g.Aj(a)&&2==a.getStatus())a.getStatus();else if(a.Z&&4==g.Aj(a))g.Fi(a.OP,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Bj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Aj(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Bca(a)}}finally{yj(a)}}};
yj=function(a,b){if(a.j){Eca(a);var c=a.j,d=a.va[0]?function(){}:null;
a.j=null;a.va=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Eca=function(a){a.j&&a.Ta&&(a.j.ontimeout=null);a.ra&&(g.C.clearTimeout(a.ra),a.ra=null)};
Bj=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.lj(1,String(a.ma)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol.slice(0,-1)),b=!Fca.test(a?a.toLowerCase():"");c=b}return c};
g.Aj=function(a){return a.j?a.j.readyState:0};
g.Cj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Dj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.La){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
Gca=function(a){var b={};a=(a.j&&2<=g.Aj(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.ib(a[c])){var d=sba(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 Cf(b,function(k){return k.join(", ")})};
g.Ej=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Fj=function(a){g.F.call(this,a)};
Ica=function(a){g.F.call(this,a,-1,Hca)};
Gj=function(a){g.F.call(this,a)};
Hj=function(a){g.F.call(this,a,31,Jca)};
Lca=function(a){g.F.call(this,a,17,Kca)};
Nca=function(a){g.F.call(this,a,6,Mca)};
Oca=function(a){g.F.call(this,a)};
Jj=function(a,b,c,d,e,f,k,l,m,n,p){g.ng.call(this);var q=this;this.Z="";this.u=[];this.gb="";this.ib=this.Ga=-1;this.Ua=!1;this.S=this.C=null;this.K=0;this.Ib=1;this.timeoutMillis=0;this.Aa=!1;g.ng.call(this);this.Xa=b||function(){};
this.J=new Pca(a,f);this.kb=d;this.Ta=p;this.Kb=g.Ra(qba,0,1);this.ra=e||null;this.Y=c||null;this.va=k||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.La=f||!1;!this.La&&(65<=Fb("Chromium")||45<=Fb("Firefox")||12<=Fb("Safari")||Jb()&&g.pb(Mb(),12));a=g.D(new Gj,1,1);Ij(this.J,a);this.D=new g.Ti(1E4,3E5,.1);this.j=new g.Ei(this.D.getValue());g.H(this,this.j);n=Qca(this,n);g.cg(this.j,"tick",n,!1,this);this.ma=new g.Ei(6E5);g.H(this,this.ma);g.cg(this.ma,"tick",n,!1,this);this.va||
this.ma.start();this.La||(g.cg(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.YF()}),g.cg(document,"pagehide",this.YF,!1,this))};
Qca=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
Rca=function(a){a.ra||(a.ra=.01>a.Kb()?"https://web.archive.org/web/20220414023957/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20220414023957/https://play.google.com/log?format=json&hasfast=true");return a.ra};
Sca=function(a,b){a.D=new g.Ti(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
Uca=function(a){Tca(a,function(b,c){b=tj(b,"format","json");b=Zh().navigator.sendBeacon(b,ze(c));a.Aa&&!b&&(a.Aa=!1);return b})};
Tca=function(a,b){if(0!==a.u.length){var c=vj(Rca(a),"format");c=rj(c,"auth",a.Xa(),"authuser",a.Y||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.J.Te(e,a.K);if(!b(c,f))break;a.K=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
Vca=function(){g.qf.call(this,"event-logged",void 0)};
Pca=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Lca;g.D(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Ij(this,new Gj)};
Ij=function(a,b){re(a.j,1,b);g.Yd(b,1)||g.D(b,1,1);a.B||(b=Kj(a),g.Yd(b,5)||g.D(b,5,a.locale));a.u&&(b=Kj(a),oe(b,Ica,9)||re(b,9,a.u))};
Wca=function(a,b){b(Zh()).then(function(c){a.u=c;c=Kj(a);re(c,9,a.u);return!0}).catch(function(){return!1})};
Kj=function(a){a=oe(a.j,Gj,1);var b=oe(a,Fj,11);b||(b=new Fj,re(a,11,b));return b};
Xca=function(a,b,c){zca(a.url,function(d){d=d.target;Bj(d)?b(g.Cj(d)):c(d.getStatus())},a.requestType,a.body,a.Ds,a.timeoutMillis,a.withCredentials)};
Yca=function(){this.B="https://web.archive.org/web/20220414023957/https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=Xca;this.j=""};
Zca=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new Yca;d.j="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.j=d.Te()};
$ca=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}};
Lj=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};
Mj=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Nj=function(a,b){this.logger=a;this.j=b;this.startMillis=Mj()};
Oj=function(){};
Pj=function(a){this.Yk=a;this.C=new Zca;this.j=new g.Hi(this.C);this.clientError=new Tba(this.j);this.u=new Sba(this.j);this.B=new Rba(this.j)};
ada=function(a){g.F.call(this,a)};
bda=function(a){g.F.call(this,a)};
Qj=function(a){g.F.call(this,a)};
g.Rj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Sj=function(a){this.j=!1;if(a.challenge instanceof Qj){var b=be(a.challenge,4,"");a=be(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new g.Rj;this.u=c.promise;this.B=g.r((0,g.C[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({RU:d,b0:e})})},!0)).next().value;
this.Y_=c.promise.then(function(){})};
cda=function(a){g.Fg("From proto message. b/12014412");return g.Lg(g.Yd(a,4)||"")};
dda=function(){};
Tj=function(a){this.j=a};
eda=function(){};
Uj=function(a){this.j=a};
fda=function(a){if(a instanceof eda)if(a instanceof Uj)a=a.j;else throw Error("");else a=g.Og(a);return a};
gda=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Vj=function(a,b){a.src=Kg(b);gda(a)};
hda=function(a,b){return a.parseFromString(g.dh(b),"text/xml")};
Wj=function(){this.j={};this.u=null};
ida=function(){Wj.j||(Wj.j=new Wj);return Wj.j};
kda=function(a){var b=ida();return jda(b,oe(a,ada,1),oe(a,bda,2),be(a,3,""))};
jda=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return lda(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,k){lda(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
k(l)})}));
return a.j[d]};
lda=function(a,b){return b?mda(b):a?nda(a):Promise.resolve()};
mda=function(a){return new Promise(function(b,c){var d=g.ci("SCRIPT"),e=cda(a);g.Vj(d,e);d.onload=function(){g.gi(d);b()};
d.onerror=function(){g.gi(d);c(Error("EWLS"))};
(g.Oh("HEAD")[0]||document.documentElement).appendChild(d)})};
nda=function(a){return new Promise(function(b){var c=g.ci("SCRIPT");if(a){var d=g.Yd(a,6);if(null===d||void 0===d)var e=null;else{var f=null==(e=Ag())?void 0:e.createScript(d);e=new Tj(null!=f?f:d,Xj)}}else e=null;if(e instanceof dda)if(e instanceof Tj)e=e.j;else throw Error("");else e=e instanceof Hg&&e.constructor===Hg?e.j:"type_error:SafeScript";c.textContent=e;gda(c);(g.Oh("HEAD")[0]||document.documentElement).appendChild(c);g.gi(c);b()})};
Yj=function(a){g.F.call(this,a)};
Zj=function(a){g.F.call(this,a)};
ak=function(a){g.F.call(this,a)};
oda=function(a,b,c){this.client=a;this.Yk=b;this.j=c};
pda=function(a){var b=ida().u,c,d,e,f,k;return g.B(function(l){if(1==l.j)return c=new Yj,fe(c,1,a.Yk,""),b&&fe(c,2,b,""),d=a.j(),g.A(l,a.client.create(c,d),2);e=l.u;f=Sc(ce(e,2));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p<f.length;p++)n[p]=f[p]+97;if(g.C.TextDecoder)n=(new TextDecoder).decode(n);else if(8192>=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;q<n.length;q+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,q,q+8192));
n=p}n=Ae(Qj,n);return m.call(l,n)}k=oe(e,Qj,1);if(!k)throw Error("Missing field");return l.return(k)})};
rda=function(a,b){var c,d;return g.B(function(e){c=a.j();var f=new Zj;f=fe(f,1,a.Yk,"");d=fe(f,2,b,"");f=e.return;var k=bk(a.client.j,"https://web.archive.org/web/20220414023957/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},qda);return f.call(e,k)})};
sda=function(a){this.j=a};
ck=function(a){g.F.call(this,a)};
dk=function(a,b,c){this.j=a;this.B=b;this.u=c};
ek=function(a,b,c){c=void 0===c?{}:c;this.N_=a;this.j=c;this.u=b};
fk=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
tda=function(a,b,c){c=void 0===c?{}:c;return new dk(b,a,c)};
gk=function(a){g.F.call(this,a)};
hk=function(a){g.F.call(this,a)};
ik=function(a){g.F.call(this,a)};
jk=function(a){g.F.call(this,a,-1,uda)};
kk=function(a,b){this.K=a.oX;this.S=b;this.j=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&vda(this)};
yda=function(a,b){g.cg(a.j,"complete",function(){if(Bj(a.j)){var c=g.Cj(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.S(c)}catch(f){lk(a,new Lj(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=$ca(a.j.getStatus());mk(a,nk(a));0==c?wda(a,d):lk(a,new Lj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Cj(a.j);var e={};d?(e=xda(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError());mk(a,nk(a));lk(a,new Lj(d,c,e))}})};
vda=function(a){a.K.Sn("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c)}catch(e){lk(a,new Lj(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&wda(a,d)}if("2"in b)for(b=xda(a,b["2"]),c=0;c<a.J.length;c++)a.J[c](b)});
a.K.Sn("end",function(){mk(a,nk(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.K.Sn("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||Bj(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=$ca(c);break;default:d=14}mk(a,nk(a));b=lca(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);lk(a,new Lj(d,b))}})};
nk=function(a){var b={},c=Gca(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
xda=function(a,b){var c=2,d={};try{var e=Ae(jk,b);c=ve(e,1);var f=e.getMessage();pe(e,ik,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(k){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.ma)):(c=14,f="Unable to parse RpcStatus: "+k)}return{code:c,details:f,metadata:d}};
ok=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
wda=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
mk=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
lk=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.pk=function(a){this.D=a.Z0||null;this.B=a.gR||!1};
qk=function(a,b){g.ng.call(this);this.ra=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.Y=new Headers;this.u=null;this.ma="GET";this.Z="";this.j=!1;this.S=this.C=this.D=null};
zda=function(a){a.C.read().then(a.UV.bind(a)).catch(a.EB.bind(a))};
sk=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;rk(a)};
rk=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Ada=function(a){if(a.wj&&"function"==typeof a.wj)return a.wj();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.La(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Hf(a)};
Bda=function(a){if(a.zn&&"function"==typeof a.zn)return a.zn();if(!a.wj||"function"!=typeof a.wj){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.La(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.If(a)}}};
g.tk=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.La(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=Bda(a),e=Ada(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};
g.uk=function(a){this.j=this.S=this.C="";this.u=null;this.D=this.K="";this.J=!1;var b;a instanceof g.uk?(this.J=a.J,g.vk(this,a.C),this.S=a.S,g.Hk(this,a.j),g.Ik(this,a.u),this.K=a.getPath(),Jk(this,a.B.clone()),this.D=a.D):a&&(b=String(a).match(kj))?(this.J=!1,g.vk(this,b[1]||"",!0),this.S=Kk(b[2]||""),g.Hk(this,b[3]||"",!0),g.Ik(this,b[4]),this.K=Kk(b[5]||"",!0),Jk(this,b[6]||"",!0),this.D=Kk(b[7]||"")):(this.J=!1,this.B=new Lk(null,this.J))};
g.vk=function(a,b,c){a.C=c?Kk(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.Hk=function(a,b,c){a.j=c?Kk(b,!0):b};
g.Ik=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
Jk=function(a,b,c){b instanceof Lk?(a.B=b,Cda(a.B,a.J)):(c||(b=Mk(b,Dda)),a.B=new Lk(b,a.J))};
g.Pk=function(a,b,c){a.B.set(b,c)};
g.Qk=function(a){return a instanceof g.uk?a.clone():new g.uk(a)};
Kk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Mk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Eda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Eda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Lk=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Rk=function(a){a.j||(a.j=new Map,a.u=0,a.B&&nj(a.B,function(b,c){a.add(Ch(b),c)}))};
Fda=function(a,b){Rk(a);b=Sk(a,b);return a.j.has(b)};
g.Gda=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Sk(a,b),g.$b(c)),a.u=a.u+c.length)};
Sk=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Cda=function(a,b){b&&!a.C&&(Rk(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Gda(this,e,c))},a));
a.C=b};
g.Hda=function(a){var b="";g.Af(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Tk=function(a,b,c){if(g.Pf(c))return a;c=g.Hda(c);if("string"===typeof a)return tj(a,g.Bh(b),c);g.Pk(a,b,c);return a};
g.Uk=function(a){g.G.call(this);this.u=a;this.j={}};
Ida=function(a,b,c,d,e,f){if(Array.isArray(c))for(var k=0;k<c.length;k++)Ida(a,b,c[k],d,e,f);else{b=bg(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
g.Vk=function(a){g.Af(a.j,function(b,c){this.j.hasOwnProperty(c)&&kg(b)},a);
a.j={}};
Jda=function(){this.B=!0;this.u=0;this.j=""};
Kda=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Wk=function(){this.J=null;this.K=[];this.C=this.u=this.B=this.j=this.Y=0;this.D=null;this.S=0};
Xk=function(a,b,c,d){a.j=3;a.J="The stream is broken @"+a.Y+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.J);};
Yk=function(){this.j=null;this.u=0;this.B=new Jda;this.C=new Wk};
Lda=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Zk=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
$k=function(a){this.Y=null;this.J=[];this.C="";this.ma=[];this.B=this.u=0;this.K=!1;this.S=0;this.ra=/[\\"]/g;this.j=this.D=0;this.Z=!(!a||!a.pV)};
al=function(a,b,c){a.D=3;a.Y="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.Y);};
bl=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.J=!1};
Mda=function(a){var b=g.Ej(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new bl:new $k:b.startsWith("application/x-protobuf")?(a=g.Ej(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Yk:null:new Wk:null};
cl=function(a){this.j=a;this.u=null;this.C=this.B=0;this.Y=!1;this.D=this.K=this.J=null;this.S=new g.Uk(this);this.S.Ma(this.j,"readystatechange",this.Z)};
dl=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
el=function(a){g.Vk(a.S);if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Nda=function(a){this.B=a;a=(0,g.Qa)(this.fY,this);this.B.D=a;a=(0,g.Qa)(this.PZ,this);this.B.K=a;this.u={};this.j={}};
Oda=function(a,b){for(var c={},d=0;d<a.length;c={ID:c.ID},d++)c.ID=a[d],b.forEach(function(e){return function(f){try{f(e.ID)}catch(k){}}}(c))};
fl=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
Pda=function(a){a=void 0===a?{}:a;this.D=a.pja||g.Ia("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ia("withCredentials",a)||!1;this.C=a.nja||[];this.J=a.qja||[];this.j=a.tja;this.B=a.rja||!1};
bk=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Qda(function(k){return new Rda(function(l,m){var n={},p=Sda(a,k,f);p.Sn("error",function(q){return m(q)});
p.Sn("metadata",function(q){n=q});
p.Sn("data",function(q){var t=n;t=void 0===t?{}:t;l(new ek(q,k.sB(),t))})})},a.J).call(a,tda(e,c,d)).then(function(k){return k.N_})};
Sda=function(a,b,c){var d=b.sB(),e=b.getMetadata(),f=Tda(a,!0);a=Uda(a,e,f,c+d.getName());c=Vda(f,d.u,!1);yda(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Tda=function(a,b){b=a.B&&!b;return a.j||b?new g.xj(new g.pk({Z0:a.j,gR:b})):new g.xj};
Uda=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.K=!0;if(a.D)d=g.Tk(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Vda=function(a,b,c){if(c)if(a.isActive(),!g.Ec||g.tc(10)){c=new cl(a);var d=new Nda(c)}else d=null;return new kk({xhr:a,oX:d},b)};
Qda=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
gl=function(){var a={format:"jspb"};this.j=new Pda(a)};
il=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
a=Wda(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,k=f,l=0;12<=k;k-=12,l+=12)c+=hl(a,l),d+=hl(a,l+4),e+=hl(a,l+8),b();e+=f;switch(k){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Xda.toString(e)};
Wda=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
hl=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
Yda=function(a){var b=new gl,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new oda(b,a,function(){return c})};
Zda=function(a){var b=Yda(a.Yk);return new jl(Object.assign({},{dB:b},a))};
kl=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,kl.prototype)};
ll=function(){g.G.apply(this,arguments);this.B=new g.Rj};
$da=function(a,b){ml(b).then(function(){a.B.resolve()})};
nl=function(a,b,c,d,e){ll.call(this);this.logger=a;this.C=c;this.J=d;this.u="m";this.D=0;g.H(this,b);$da(this,e);this.j=new gf};
ol=function(a,b){ll.call(this);this.j=a;this.u="f";$da(this,b)};
pl=function(a){ll.call(this);this.u="e";if(a instanceof kl){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+il(a.message)+":_"+il(a.stack)}else b=a.message+":"+a.stack,a="_"+il(a.message)+":_"+il(a.stack||"");this.j=new Uint8Array(g.eb(("WE:"+b).substring(0,2048)));this.C=new Uint8Array(g.eb(("WE:"+a).substring(0,2048)))};
ml=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
ql=function(a,b){return Promise.race([a,ml(12E4).then(b)])};
jl=function(a){this.j=void 0;this.u=new g.Rj;this.dB=a.dB;this.zP=a.zP;this.onError=a.onError;this.logger=a.eja?new Oj:new Pj(a.Yk);var b=new Nj(this.logger,"r");this.ready().finally(function(){return void b.done()});
aea(this)};
bea=function(a,b,c){var d=window.webpocb;if(!d)throw new kl(4,Error("PMD:Undefined"));d=d(Sc(ce(b,1)));return new nl(a.logger,c,d,ve(b,3),1E3*ve(b,2))};
cea=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z;return g.B(function(E){switch(E.j){case 1:b=void 0,c=a.j?6E4:1E3,d=new g.Ti(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){E.Va(4);break}g.ta(E,5);return g.A(E,ql(a.logger.pH("c",e,pda(a.dB)),function(){return Promise.reject(new kl(10,"JVZ:Timeout"))}),7);
case 7:return f=E.u,k=new Nj(a.logger,"b"),g.A(E,kda(f),8);case 8:return l=new Sj({challenge:f}),g.A(E,ql(l.snapshot({}),function(){return Promise.reject(new kl(15,"MDA:Timeout"))}),9);
case 9:return m=E.u,k.done(),g.A(E,ql(a.logger.pH("g",e,rda(a.dB,m)),function(){return Promise.reject(new kl(10,"BWB:Timeout"))}),10);
case 10:n=E.u;p=new Nj(a.logger,"i");if(ve(n,3))var J=bea(a,n,l);else l.dispose(),J=new ol(Sc(ce(n,1)),1E3*ve(n,2));q=J;p.done();v=t=void 0;null==(v=(t=a).zP)||v.call(t,Sc(ce(n,1)));return E.return(q);case 5:x=g.va(E);b=x instanceof kl?x:x instanceof Lj?new kl(11,x):new kl(12,x);a.logger.wy(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof Lj)switch(x.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(!J)throw b;return g.A(E,ml(d.getValue()),11);case 11:g.Ui(d);
case 3:e++;E.Va(2);break;case 4:throw b;}})};
aea=function(a){var b,c,d,e;g.B(function(f){switch(f.j){case 1:return b=void 0,g.ta(f,4),g.A(f,cea(a),6);case 6:b=f.u;g.ua(f,5);break;case 4:if(c=g.va(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.wy(13);f.Va(0);break}else a.logger.wy(14),b=new pl(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.A(f,a.j.B.promise,1)}})};
dea=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}};
eea=function(a,b,c,d){var e=window,f="//web.archive.org/web/20220414023957/https://pagead2.googlesyndication.com/bg/"+g.Dh(c)+".js";c=e.document;var k={};b&&(k._scs_=b);k._bgu_=f;k._bgp_=d;k._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(k);e=Mh(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=eba(g.Fg("//web.archive.org/web/20220414023957/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.Dh(a)+".js"});g.Vj(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
fea=function(a){var b={};g.lc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
vaa(a,function(c){return null===b[c.event]})};
rl=function(){this.Ed=0;this.j=!1;this.u=-1;this.Ir=!1;this.Bi=0};
sl=function(){this.pd=null;this.j=!1};
tl=function(a){sl.call(this);this.u=a};
ul=function(){sl.call(this)};
vl=function(){sl.call(this)};
wl=function(){this.j={};this.u=!0;this.B={}};
xl=function(a,b,c){a.j[b]||(a.j[b]=new tl(c));return a.j[b]};
gea=function(a){a.j.queryid||(a.j.queryid=new vl)};
yl=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
zl=function(a,b){if(g.Jf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
Al=function(a){var b={},c=g.Bf(a.j,function(d){return d.j});
g.Af(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.pd?String(d.pd):"";0<d.length&&(b[e]=d)},a);
return b};
hea=function(a){a=Al(a);var b=[];g.Af(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
jea=function(a){xl(a,"od",iea);xl(a,"opac",Bl).j=!0;xl(a,"sbeos",Bl).j=!0;xl(a,"prf",Bl).j=!0;xl(a,"mwt",Bl).j=!0;xl(a,"iogeo",Bl)};
kea=function(){this.j=this.Mp=null};
Cl=function(){};
El=function(){if(!Dl())throw Error();};
Dl=function(){return!(!Fl||!Fl.performance)};
Gl=function(a){return a?a.passive&&lea()?a:a.capture||!1:!1};
Hl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Gl(d)),!0):!1};
Il=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
mea=function(){};
nea=function(){return rb?rb.mobile:!Jl()&&(tb("iPod")||tb("iPhone")||tb("Android")||tb("IEMobile"))};
Jl=function(){return rb?!rb.mobile&&(tb("iPad")||tb("Android")||tb("Silk")):tb("iPad")||tb("Android")&&!tb("Mobile")||tb("Silk")};
Kl=function(a){try{return!!a&&null!=a.location.href&&oc(a,"foo")}catch(b){return!1}};
Ll=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
pea=function(){var a=[];Ll(oea,function(b){a.push(b)});
return a};
rea=function(a){return(a=qea.exec(a))&&a[0]||""};
uea=function(){var a=sea("IFRAME"),b={};g.lc(tea(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
sea=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
vea=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Kl(a)&&(b=a);return b};
zea=function(a){a=a||Rl();for(var b=new wea(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&xea.test(f.url)&&(c=f);if(f.url&&!f.aH){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new yea(b,e,c)};
Rl=function(){var a=g.C,b=[],c=null;do{var d=a;if(Kl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new wea(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.C;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.aH=!0);return b};
yea=function(a,b,c){this.j=a;this.u=b;this.B=c};
wea=function(a,b){this.url=a;this.aH=!!b;this.depth=null};
Sl=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Tl=function(a,b){var c={};c[a]=b;return[c]};
Aea=function(a,b,c,d,e){var f=[];Ll(a,function(k,l){(k=Ul(k,b,c,d,e))&&f.push(l+"="+k)});
return f.join(b)};
Ul=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(Ul(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Aea(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Cea=function(a,b,c){b=b+"//web.archive.org/web/20220414023957/https://pagead2.googlesyndication.com"+c;var d=Bea(a)-c.length;if(0>d)return"";a.j.sort(function(p,q){return p-q});
c=null;for(var e="",f=0;f<a.j.length;f++)for(var k=a.j[f],l=a.u[k],m=0;m<l.length;m++){if(!d){c=null==c?k:c;break}var n=Aea(l[m],a.B,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.B;break}c=null==c?k:c}}a="";null!=c&&(a=e+"trn="+c);return b+a};
Bea=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};
Vl=function(a,b){this.j=a;this.depth=b};
Eea=function(){function a(l,m){return null==l?m:l}
var b=Rl(),c=Math.max(b.length-1,0),d=zea(b);b=d.j;var e=d.u,f=d.B,k=[];f&&k.push(new Vl([f.url,f.aH?2:0],a(f.depth,1)));e&&e!=f&&k.push(new Vl([e.url,2],0));b.url&&b!=f&&k.push(new Vl([b.url,0],a(b.depth,c)));d=g.Wl(k,function(l,m){return k.slice(0,k.length-m)});
!b.url||(f||e)&&b!=f||(e=rea(b.url))&&d.push([new Vl([e,1],a(b.depth,c))]);d.push([]);return g.Wl(d,function(l){return Dea(c,l)})};
Dea=function(a,b){g.Xl(b,function(e){return 0<=e.depth});
var c=Yl(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.lc(b,function(e){return d[e.depth+1]=e.j});
return d};
Fea=function(){var a=Eea();return g.Wl(a,function(b){return Ul(b)})};
Gea=function(a){Fl.google_image_requests||(Fl.google_image_requests=[]);var b=sea("IMG",Fl.document);b.src=a;Fl.google_image_requests.push(b)};
Zl=function(a){var b="Hf";if(a.Hf&&a.hasOwnProperty(b))return a.Hf;var c=new a;a.Hf=c;a.hasOwnProperty(b);return c};
$l=function(){this.u=new mea;this.j=Dl()?new El:new Cl};
Hea=function(){am();var a=Fl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Fl.setInterval&&"function"===typeof Fl.clearInterval&&"function"===typeof Fl.setTimeout&&"function"===typeof Fl.clearTimeout)};
Iea=function(){am();return Fea()};
Jea=function(){};
am=function(){return Zl(Jea).getContext()};
bm=function(a){g.F.call(this,a)};
Kea=function(a){this.B=a;this.j=-1;this.u=this.C=0};
cm=function(a,b){return function(){var c=g.Ba.apply(0,arguments);if(-1<a.j)return b.apply(null,g.u(c));try{return a.j=a.B.j.now(),b.apply(null,g.u(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
Lea=function(a,b){this.u=a;this.B=b;this.j=new Kea(a)};
Mea=function(){};
Rea=function(){this.B=void 0;this.u=this.J=0;this.D=-1;this.featureSet=new wl;xl(this.featureSet,"mv",Nea).j=!0;xl(this.featureSet,"omid",Bl);xl(this.featureSet,"epoh",Bl).j=!0;xl(this.featureSet,"epph",Bl).j=!0;xl(this.featureSet,"umt",Bl).j=!0;xl(this.featureSet,"phel",Bl).j=!0;xl(this.featureSet,"phell",Bl).j=!0;xl(this.featureSet,"oseid",Oea).j=!0;var a=this.featureSet;a.j.sloi||(a.j.sloi=new ul);a.j.sloi.j=!0;xl(this.featureSet,"mm",Pea);xl(this.featureSet,"ovms",Qea).j=!0;xl(this.featureSet,
"xdi",Bl).j=!0;xl(this.featureSet,"amp",Bl).j=!0;xl(this.featureSet,"prf",Bl).j=!0;xl(this.featureSet,"gtx",Bl).j=!0;xl(this.featureSet,"mvp_lv",Bl).j=!0;xl(this.featureSet,"ssmol",Bl).j=!0;xl(this.featureSet,"vveh",Bl).j=!0;this.j=new Lea(am(),this.featureSet);this.C=!1;this.flags=new Mea};
dm=function(){return Zl(Rea)};
em=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.j))try{if(c instanceof Sl)var f=c;else f=new Sl,Ll(c,function(l,m){var n=f,p=n.C++;l=Tl(m,l);n.j.push(p);n.u[p]=l});
var k=Cea(f,a.u,"/pagead/gen_204?id="+b+"&");k&&(am(),Gea(k))}catch(l){}};
Sea=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};
Tea=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Ta()};
Uea=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
Vea=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
lm=function(){var a=window;this.events=[];this.u=a||g.C;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=km()||(null!=b?b:1>Math.random())};
Wea=function(a){a&&mm&&km()&&(mm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),mm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Xea=function(){var a=nm;this.j=om;this.fN="jserror";this.fJ=!0;this.aF=null;this.u=this.rH;this.uc=void 0===a?null:a};
Yea=function(a,b,c){var d=pm;return cm(dm().j.j,function(){try{if(d.uc&&d.uc.j){var e=d.uc.start(a.toString(),3);var f=b();d.uc.end(e)}else f=b()}catch(l){var k=d.fJ;try{Wea(e),k=d.u(a,new qm(rm(l)),void 0,c)}catch(m){d.rH(217,m)}if(!k)throw l;}return f})()};
sm=function(a,b,c,d){return cm(dm().j.j,function(){var e=g.Ba.apply(0,arguments);return Yea(a,function(){return b.apply(c,e)},d)})};
rm=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};
qm=function(a){Sea.call(this,Error(a),{message:a})};
Zea=function(){Fl&&"undefined"!=typeof Fl.google_measure_js_timing&&(Fl.google_measure_js_timing||nm.disable())};
$ea=function(a){pm.aF=function(b){g.lc(a,function(c){c(b)})}};
afa=function(a,b){return Yea(a,b)};
tm=function(a,b){return sm(a,b)};
um=function(a,b,c,d){pm.rH(a,b,c,d)};
vm=function(){return Date.now()-bfa};
cfa=function(){var a=dm().B,b=0<=wm?vm()-wm:-1,c=xm?vm()-ym:-1,d=0<=zm?vm()-zm:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];um(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
Am=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Bm=function(a){return a.right-a.left};
Cm=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
Dm=function(a,b,c){b instanceof g.wh?(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};
Em=function(a,b,c){var d=new Am(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
Fm=function(a,b,c,d,e,f,k,l){this.C=a;this.S=b;this.B=c;this.J=d;this.j=e;this.D=f;this.u=k;this.K=l};
efa=function(a){var b=a!==a.top,c=a.top===vea(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),Ef(dfa,function(k){return"function"===typeof f[k]})||(e=1));
return{Ok:f,compatibility:e,e0:d}};
ffa=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
gfa=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.yh(b.innerWidth,b.innerHeight)).round():Wh(b||window).round()}catch(d){return new g.yh(-12245933,-12245933)}};
Gm=function(a,b,c){try{a&&(b=b.top);var d=gfa(a,b,void 0===c?!1:c),e=Yh(Mh(b.document).j);if(-12245933==d.width){var f=d.width;var k=new Am(f,f,f,f)}else k=new Am(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new Am(-12245933,-12245933,-12245933,-12245933)}};
g.Hm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Im=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.Km=function(a,b,c){if("string"===typeof b)(b=Jm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Jm(c,d);f&&(c.style[f]=e)}};
Jm=function(a,b){var c=hfa[b];if(!c){var d=Hh(b);c=d;void 0===a.style[d]&&(d=(g.uf?"Webkit":Lm?"Moz":g.Ec?"ms":null)+rba(d),void 0!==a.style[d]&&(c=d));hfa[b]=c}return c};
g.Mm=function(a,b){var c=a.style[Hh(b)];return"undefined"!==typeof c?c:a.style[Jm(a,b)]||""};
Nm=function(a,b){var c=Kh(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Om=function(a,b){return Nm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Qm=function(a,b,c){if(b instanceof g.wh){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Pm(d,!1);a.style.top=g.Pm(b,!1)};
Rm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
ifa=function(a){if(g.Ec&&!g.tc(8))return a.offsetParent;var b=Kh(a),c=Om(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=Om(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.Sm=function(a){var b=Kh(a),c=new g.wh(0,0);var d=b?Kh(b):document;d=!g.Ec||g.tc(9)||"CSS1Compat"==Mh(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Rm(a);b=Yh(Mh(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
kfa=function(a,b){var c=new g.wh(0,0),d=Zh(Kh(a));if(!oc(d,"parent"))return c;do{var e=d==b?g.Sm(a):jfa(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c};
g.Tm=function(a,b){a=lfa(a);b=lfa(b);return new g.wh(a.x-b.x,a.y-b.y)};
jfa=function(a){a=Rm(a);return new g.wh(a.left,a.top)};
lfa=function(a){if(1==a.nodeType)return jfa(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.wh(a.clientX,a.clientY)};
g.Um=function(a,b,c){if(b instanceof g.yh)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Pm(b,!0);a.style.height=g.Pm(c,!0)};
g.Pm=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Vm=function(a){var b=mfa;if("none"!=Om(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
mfa=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.uf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Rm(a),new g.yh(a.right-a.left,a.bottom-a.top)):new g.yh(b,c)};
g.Wm=function(a,b){a.style.display=b?"":"none"};
Xm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
nfa=function(a){return new Am(a.top,a.right,a.bottom,a.left)};
ofa=function(a){var b=a.top||0,c=a.left||0;return new Am(b,c+(a.width||0),b+(a.height||0),c)};
Ym=function(a){return null!=a&&0<=a&&1>=a};
pfa=function(){var a=g.qb();return a?Zm("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return lb(a,b)})||lb(a,"OMI/")&&!lb(a,"XiaoMi/")?!0:lb(a,"Presto")&&lb(a,"Linux")&&!lb(a,"X11")&&!lb(a,"Android")&&!lb(a,"Mobi"):!1};
qfa=function(){this.B=!Kl(Fl.top);this.isMobileDevice=Jl()||nea();var a=Rl();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.mj(a[a.length-1].url)||"":"";this.j=new Am(0,0,0,0);this.C=new g.yh(0,0);this.D=new g.yh(0,0);this.K=new Am(0,0,0,0);this.J=0;this.S=!1;this.u=!(!Fl||!efa(Fl).Ok);this.update(Fl)};
rfa=function(a,b){b&&b.screen&&(a.C=new g.yh(b.screen.width,b.screen.height))};
sfa=function(a,b){var c=a.j?new g.yh(Bm(a.j),a.j.getHeight()):new g.yh(0,0);b=void 0===b?Fl:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,k=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=k.scrollHeight,n=k.scrollWidth,p=k.offsetHeight,q=k.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var t=new g.yh(e,d)}catch(v){t=new g.yh(-12245933,-12245933)}a.D=t};
bn=function(){var a=$m();if(0<a.J||a.S)return!0;a=am().u.isVisible();var b=0===Il(an);return a||b};
$m=function(){return Zl(qfa)};
cn=function(a){this.B=a;this.u=0;this.j=null};
dn=function(a,b,c){this.B=a;this.La=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new Em(-1,!0,this);this.j=this;this.S=b;this.Z=this.Y=!1;this.Aa="uk";this.va=!1;this.J=!0};
en=function(a,b){g.Sb(a.D,b)||(a.D.push(b),b.Ju(a.j),b.Cp(a.C),b.Cm()&&(a.Y=!0))};
tfa=function(a){a=a.j;a.zK();a.yK();var b=$m();b.K=Gm(!1,a.B,b.isMobileDevice);sfa($m(),a.B);a.C.j=a.FN()};
ufa=function(a){a.Y=a.D.length?Zm(a.D,function(b){return b.Cm()}):!1};
vfa=function(a){var b=g.$b(a.D);g.lc(b,function(c){c.Cp(a.C)})};
fn=function(a){var b=g.$b(a.D);g.lc(b,function(c){c.Ju(a.j)});
a.j!=a||vfa(a)};
gn=function(a,b,c,d){this.element=a;this.j=new Am(0,0,0,0);this.C=new Am(0,0,0,0);this.u=b;this.featureSet=c;this.ma=d;this.Z=!1;this.timestamp=-1;this.K=new Fm(b.C,this.element,this.j,new Am(0,0,0,0),0,0,vm(),0)};
hn=function(a){this.D=!1;this.j=a;this.C=function(){}};
wfa=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.pd=null==b?"":b};
xfa=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
yfa=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.pd<typeof b.pd?!0:typeof a.pd>typeof b.pd?!1:a.pd<b.pd};
jn=function(){this.B=0;this.j=[];this.u=!1};
zfa=function(a,b){(0,g.lc)(b.j,function(c){a.add(c.j,c.pd,xfa(c))})};
kn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Ll(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
ln=function(a){var b=Afa;a.u&&(g.ic(a.j,function(c,d){return yfa(d,c)?1:yfa(c,d)?-1:0}),a.u=!1);
return Yl(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Afa=function(a){var b=a.j;a=a.pd;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Sb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Bfa=function(a){var b=void 0===b?!0:b;this.j=new jn;void 0!==a&&zfa(this.j,a);b&&this.j.add("v",mn,-16)};
Cfa=function(a){var b=[],c=[];g.Af(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)};
Dfa=function(){if(mn&&"unreleased"!==mn)return mn};
Efa=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Dfa();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);am();Gea(b)};
Ffa=function(){this.j=0};
Gfa=function(a,b,c){(0,g.lc)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),k=new jn;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.D);d=Zl(Ffa);k.add("i",d.j++);k.add("adk",e);kn(k,f);e=new Bfa(k);Efa(e)}})};
nn=function(){this.u=this.B=this.C=this.j=0};
on=function(a){this.u=a=void 0===a?Hfa:a;this.j=g.Wl(this.u,function(){return new nn})};
pn=function(a,b){return Ifa(a,function(c){return c.j},void 0===b?!0:b)};
rn=function(a,b){return qn(a,b,function(c){return c.j})};
Jfa=function(a,b){return Ifa(a,function(c){return c.B},void 0===b?!0:b)};
sn=function(a,b){return qn(a,b,function(c){return c.B})};
tn=function(a,b){return qn(a,b,function(c){return c.u})};
Kfa=function(a){g.lc(a.j,function(b){b.u=0})};
Ifa=function(a,b,c){a=g.Wl(a.j,function(d){return b(d)});
return c?a:Lfa(a)};
qn=function(a,b,c){var d=g.Qb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
Lfa=function(a){return g.Wl(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
un=function(){this.u=new on;this.La=new nn;this.ma=this.K=-1;this.Xa=1E3;this.gb=new on([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Aa=this.ra=-1};
vn=function(a,b){return Jfa(a.u,void 0===b?!0:b)};
wn=function(a){this.isValid=a};
xn=function(a){return new wn(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Nfa=function(a,b){b=void 0===b?Mfa:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof wn&&d.isValid(a))return new Uj(a,Xj)}};
yn=function(a,b,c,d){var e=void 0===e?!1:e;c=sm(d,c);Hl(a,b,c,{capture:e})};
An=function(a,b){b=zn(b);return 0===b?0:zn(a)/b};
zn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Ofa=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.hi(a)||a){var d=Kh(a),e=d&&Zh(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
Pfa=function(a,b,c){if(!a||!b)return!1;b=Dm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Kl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!ffa())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Kh(c))&&b.defaultView&&b.defaultView.frameElement)&&Ofa(b,a);var d=a===c;a=!d&&a&&mi(a,function(e){return e===c});
return!(b||d||a)};
Qfa=function(a,b,c,d){return $m().B?!1:0>=Bm(a)||0>=a.getHeight()?!0:c&&d?afa(208,function(){return Pfa(a,b,c)}):!1};
Bn=function(a,b,c){g.G.call(this);this.position=Rfa.clone();this.fC=this.vB();this.oH=-2;this.v0=Date.now();this.rR=-1;this.lastUpdateTime=b;this.XB=null;this.WA=!1;this.nC=null;this.opacity=-1;this.requestSource=c;this.tH=function(){};
this.FR=function(){};
this.Rh=new kea;this.Rh.Mp=a;this.Rh.j=a;this.Jp=!1;this.Zq={EH:null,CH:null};this.ZQ=!0;this.Ez=null;this.Lu=this.JW=!1;dm().J++;this.hg=this.nG();this.oR=-1;this.Ae=null;this.GW=!1;this.featureSet=new wl;jea(this.featureSet);Sfa(this);1==this.requestSource?yl(this.featureSet,"od",1):yl(this.featureSet,"od",0)};
Sfa=function(a){a=a.Rh.Mp;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Tfa&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Ih()):!!a.getAttribute("data-"+Ih());b&&($m().u=!0)};
Cn=function(a,b){b!=a.Lu&&(a.Lu=b,a=$m(),b?a.J++:0<a.J&&a.J--)};
Ufa=function(a,b){if(a.Ae){if(b.getName()===a.Ae.getName())return;a.Ae.dispose();a.Ae=null}b=b.create(a.Rh.j,a.featureSet,a.Cm());if(b=null!=b&&b.dE()?b:null)a.Ae=b};
Vfa=function(a,b,c){if(!a.XB||-1==a.lastUpdateTime||-1===b.u||-1===a.XB.u)return 0;a=b.u-a.XB.u;return a>c?0:a};
Wfa=function(a,b,c){if(a.Ae){a.Ae.Qo();var d=a.Ae.K,e=d.C,f=e.j;if(null!=d.J){var k=d.B;a.nC=new g.wh(k.left-f.left,k.top-f.top)}f=a.iD()?Math.max(d.j,d.D):d.j;k={};null!==e.volume&&(k.volume=e.volume);e=a.AN(d);a.XB=d;a.Ha(f,b,c,!1,k,e,d.K)}};
Xfa=function(a){if(a.WA&&a.Ez){var b=1==zl(a.featureSet,"od"),c=$m().j,d=a.Ez,e=a.Ae?a.Ae.getName():"ns",f=new g.yh(Bm(c),c.getHeight());c=a.iD();a={h0:e,nC:a.nC,X0:f,iD:c,Ed:a.hg.Ed,R0:b};if(b=d.u){b.Qo();e=b.K;f=e.C.j;var k=null,l=null;null!=e.J&&f&&(k=e.B,k=new g.wh(k.left-f.left,k.top-f.top),l=new g.yh(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={h0:b.getName(),nC:k,X0:l,iD:c,R0:!1,Ed:e}}else c=null;c&&Gfa(d,a,c)}};
Yfa=function(a,b,c){b&&(a.tH=b);c&&(a.FR=c)};
g.Un=function(){};
g.Vn=function(a){return{value:a,done:!1}};
Zfa=function(){this.C=this.j=this.B=this.u=this.D=0};
$fa=function(a){var b={};var c=g.Ta()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
aga=function(){rl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Wn=function(a){return Ym(a.volume)&&0<a.volume};
Xn=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return cga(f,b,c)}};
Yn=function(a,b){return function(c){return b(c)?c[a]:void 0}};
dga=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
cga=function(a,b,c){return void 0===c||c?g.Zn(a,function(d,e){return g.Sb(b,e)}):g.Wl(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(k,l){return k+l},0)})};
$n=function(){this.u=this.j=""};
ega=function(){};
ao=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.Xf(c,a);return ln(kn(new jn,c))};
fga=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
bo=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
gga=function(a){var b=g.If(a.u),c=0,d;for(d in a.j)g.Sb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
hga=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
co=function(){this.j=this.u=0};
eo=function(){un.call(this);this.B=new nn;this.Ia=this.Y=this.va=0;this.S=-1;this.ib=new nn;this.D=new nn;this.j=new on;this.J=this.C=-1;this.Z=new nn;this.Xa=2E3;this.Ga=new co;this.Ua=new co;this.Ta=new co};
fo=function(a,b,c){var d=a.Ia;xm||c||-1==a.S||(d+=b-a.S);return d};
iga=function(){this.u=!1};
go=function(a,b){this.u=!1;this.B=a;this.Y=b;this.C=0};
ho=function(a,b){go.call(this,a,b);this.K=[]};
io=function(a,b,c,d){gn.call(this,a,b,c,d)};
jo=function(a,b,c){gn.call(this,null,a,b,c);this.J=a.isActive();this.D=0};
ko=function(a){return[a.top,a.left,a.bottom,a.right]};
lo=function(a,b,c,d,e,f,k){f=void 0===f?null:f;k=void 0===k?[]:k;Bn.call(this,b,c,d);this.nI=e;this.KF=0;this.pg={};this.Yf=new fga;this.SR={};this.Lg="";this.Ua=null;this.rb=!1;this.j=[];this.Vr=f;this.J=k;this.C=null;this.B=-1;this.Ia=this.Y=void 0;this.ma=this.Z=0;this.Aa=-1;this.gb=this.Xa=!1;this.va=this.S=this.u=this.Wv=this.kb=0;new on;this.Ga=this.La=0;this.Ta=-1;this.Zg=0;this.K=g.wg;this.ra=[this.vB()];this.Ib=2;this.Ss={};this.Ss.pause="p";this.Ss.resume="r";this.Ss.skip="s";this.Ss.mute=
"m";this.Ss.unmute="um";this.Ss.exitfullscreen="ef";this.D=null;this.ib=!1};
mo=function(a){0!=a.Zg&&(a.Zg=3)};
no=function(a){return void 0===a?a:Number(a)?Xm(a,3):0};
oo=function(a,b){return a.ra[null!=b&&b<a.ra.length?b:a.ra.length-1]};
jga=function(a){var b=!!zl(dm().featureSet,"umt");return a.Y||!b&&!a.Ia?0:1};
kga=function(a,b){a.Kn()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.ma+=b,a.Ga+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.La+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Ta&&0<d&&(a.Ta=0<=zm?vm()-zm:-1);a.Z=c;return e};
lga=function(a,b){Zm(a.J,function(c){return c.B==b.B})||a.J.push(b)};
mga=function(a){var b=rn(a.uh().j,1);return po(a,b)};
po=function(a,b,c){return 15E3<=b?!0:a.Xa?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Aa?b>=a.Aa:!1:!1};
nga=function(a){var b=Xm(a.hg.Ed,2),c=a.Yf.B,d=a.hg,e=oo(a),f=no(e.C),k=no(e.J),l=no(d.volume),m=Xm(e.K,2),n=Xm(e.ma,2),p=Xm(d.Ed,2),q=Xm(e.ra,2),t=Xm(e.Aa,2);d=Xm(d.Bi,2);a=a.wp().clone();a.round();e=vn(e,!1);return{W0:b,iy:c,gC:f,cC:k,Zw:l,hC:m,dC:n,Ed:p,iC:q,eC:t,Bi:d,position:a,lC:e}};
pga=function(a,b){oga(a.j,b,function(){return{W0:0,iy:void 0,gC:-1,cC:-1,Zw:-1,hC:-1,dC:-1,Ed:-1,iC:-1,eC:-1,Bi:-1,position:void 0,lC:[]}});
a.j[b]=nga(a)};
oga=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
ro=function(a,b,c){var d=a.SR[b];if(null!=d)return d;d=qga(a,b);var e=Nf(qo,function(f){return f==b});
a=rga(a,d,d,c,sga[qo[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
so=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
rga=function(a,b,c,d,e){if(a.Jp)return{"if":0,vs:0};var f=a.wp().clone();f.round();var k=$m(),l=dm(),m=a.uh(),n=a.Ae?a.Ae.getName():"ns",p={};p["if"]=k.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.v0;p.p=[f.top,f.left,f.bottom,f.right];p.tos=pn(m.u,!1);p.mtos=vn(m);p.mcvt=m.La.B;p.ps=void 0;f=fo(m,vm(),a.Kn());p.vht=f;p.mut=m.ib.B;p.a=no(a.hg.volume);p.mv=no(m.J);p.fs=a.Lu?1:0;p.ft=m.Z.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=pn(m.j);p.ssb=pn(m.gb,!1);p.amtos=Jfa(m.j,!1);p.uac=a.kb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=po(a,m.B.j,!0)?1:0;p.efpf=a.Ib;if("gsv"==n||"nis"==n)n=a.Ae,0<n.D&&(p.nnut=n.D);p.tcm=jga(a);p.nmt=a.La;p.bt=a.Ga;p.pst=a.Ta;p.vpaid=a.Y;p.dur=a.B;p.vmtime=a.Z;p.is=a.Yf.B;1<=a.j.length&&(p.i0=a.j[0].iy,p.a0=[a.j[0].Zw],p.c0=[a.j[0].Ed],p.ss0=[a.j[0].Bi],n=a.j[0].position,p.p0=n?ko(n):void 0);2<=a.j.length&&(p.i1=a.j[1].iy,p.a1=so(a.j[1].gC,a.j[1].Zw,a.j[1].cC),p.c1=so(a.j[1].hC,a.j[1].Ed,a.j[1].dC),p.ss1=so(a.j[1].iC,a.j[1].Bi,a.j[1].eC),n=a.j[1].position,p.p1=n?ko(n):
void 0,p.mtos1=a.j[1].lC);3<=a.j.length&&(p.i2=a.j[2].iy,p.a2=so(a.j[2].gC,a.j[2].Zw,a.j[2].cC),p.c2=so(a.j[2].hC,a.j[2].Ed,a.j[2].dC),p.ss2=so(a.j[2].iC,a.j[2].Bi,a.j[2].eC),n=a.j[2].position,p.p2=n?ko(n):void 0,p.mtos2=a.j[2].lC);4<=a.j.length&&(p.i3=a.j[3].iy,p.a3=so(a.j[3].gC,a.j[3].Zw,a.j[3].cC),p.c3=so(a.j[3].hC,a.j[3].Ed,a.j[3].dC),p.ss3=so(a.j[3].iC,a.j[3].Bi,a.j[3].eC),n=a.j[3].position,p.p3=n?ko(n):void 0,p.mtos3=a.j[3].lC);p.cs=hga(a.Yf);b&&(p.ic=gga(a.Yf),p.dvpt=m.B.u,p.dvs=tn(m.u,.5),
p.dfvs=tn(m.u,1),p.davs=tn(m.j,.5),p.dafvs=tn(m.j,1),c&&(m.B.u=0,Kfa(m.u),Kfa(m.j)),a.Ln()&&(p.dtos=m.va,p.dav=m.Y,p.dtoss=a.KF+1,c&&(m.va=0,m.Y=0,a.KF++)),p.dat=m.D.u,p.dft=m.Z.u,c&&(m.D.u=0,m.Z.u=0));p.ps=[k.D.width,k.D.height];p.bs=[Bm(k.j),k.j.getHeight()];p.scs=[k.C.width,k.C.height];p.dom=k.domain;a.Wv&&(p.vds=a.Wv);if(0<a.J.length||a.Vr)b=g.$b(a.J),a.Vr&&b.push(a.Vr),p.pings=g.Wl(b,function(q){return q.toString()});
b=g.Wl(g.Zn(a.J,function(q){return q.J()}),function(q){return q.getId()});
waa(b);p.ces=b;a.u&&(p.vmer=a.u);a.S&&(p.vmmk=a.S);a.va&&(p.vmiec=a.va);p.avms=a.Ae?a.Ae.getName():"ns";a.Ae&&g.Xf(p,a.Ae.tp());d?(p.c=Xm(a.hg.Ed,2),p.ss=Xm(a.hg.Bi,2)):p.tth=vm()-tga;p.mc=Xm(m.ma,2);p.nc=Xm(m.K,2);p.mv=no(m.J);p.nv=no(m.C);p.lte=Xm(a.oH,2);d=oo(a,e);vn(m);p.qmtos=vn(d);p.qnc=Xm(d.K,2);p.qmv=no(d.J);p.qnv=no(d.C);p.qas=0<d.C?1:0;p.qi=a.Lg;p.avms||(p.avms="geo");p.psm=m.Ga.j;p.psv=m.Ga.getValue();p.psfv=m.Ua.getValue();p.psa=m.Ta.getValue();l=hea(l.featureSet);l.length&&(p.veid=l);
a.D&&g.Xf(p,$fa(a.D));p.avas=a.nB();p.vs=a.GN();return p};
qga=function(a,b){if(g.Sb(uga,b))return!0;var c=a.pg[b];return void 0!==c?(a.pg[b]=!0,!c):!1};
wga=function(){this.j={};var a=Zh();to(this,a,document);var b=vga();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)to(this,c,c.document);to(this,a.top,a.top.document)}}catch(d){}};
vga=function(){var a=document.documentElement;try{if(!Kl(Zh().top))return"2";var b=[],c=Zh(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
to=function(a,b,c){yn(c,"mousedown",function(){return xga(a)},301);
yn(b,"scroll",function(){return yga(a)},302);
yn(c,"touchmove",function(){return zga(a)},303);
yn(c,"mousemove",function(){return Aga(a)},304);
yn(c,"keydown",function(){return Bga(a)},305)};
xga=function(a){g.Af(a.j,function(b){1E5<b.B||++b.B})};
yga=function(a){g.Af(a.j,function(b){1E5<b.j||++b.j})};
zga=function(a){g.Af(a.j,function(b){1E5<b.j||++b.j})};
Bga=function(a){g.Af(a.j,function(b){1E5<b.u||++b.u})};
Aga=function(a){g.Af(a.j,function(b){1E5<b.C||++b.C})};
Cga=function(){this.j=[];this.u=[]};
uo=function(a,b){return g.Pb(a.j,function(c){return c.Lg==b})};
Dga=function(a,b){return b?g.Pb(a.j,function(c){return c.Rh.Mp==b}):null};
Ega=function(a,b){return g.Pb(a.u,function(c){return 2==c.Xl()&&c.Lg==b})};
xo=function(){var a=wo;return 0==a.j.length?a.u:0==a.u.length?a.j:g.Zb(a.u,a.j)};
Fga=function(a,b){a=1==b.Xl()?a.j:a.u;var c=Ob(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Ae&&b.Ae.ow(),b.dispose(),!0):!1};
Gga=function(a){var b=wo;if(Fga(b,a)){switch(a.Xl()){case 0:var c=function(){return null};
case 2:c=function(){return Ega(b,a.Lg)};
break;case 1:c=function(){return uo(b,a.Lg)}}for(var d=c();d;d=c())Fga(b,d)}};
Hga=function(a,b){var c=wo;a=g.Zn(a,(void 0===b?0:b)?function(d){return!uo(c,d.Lg)}:function(d){return!Dga(c,d.Rh.Mp)});
c.j.push.apply(c.j,g.u(a))};
Iga=function(a){var b=[];g.lc(a,function(c){Zm(wo.j,function(d){return d.Rh.Mp===c.Rh.Mp&&d.Lg===c.Lg})||(wo.j.push(c),b.push(c))})};
yo=function(){this.j=this.u=null};
Jga=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.Pb(a.u,function(d){return null!=d&&d.AK()});
a.j&&(a.j.init(c)?tfa(a.j.j):b(a.j.j.yu(),a.j));return null!=a.j};
zo=function(a){a=Kga(a);hn.call(this,a.length?a[a.length-1]:new dn(Fl,0));this.B=a;this.u=null};
Kga=function(a){if(!a.length)return[];a=(0,g.Zn)(a,function(c){return null!=c&&c.nw()});
for(var b=1;b<a.length;b++)en(a[b-1],a[b]);return a};
Ao=function(a,b,c,d){gn.call(this,a,b,c,d);this.Y=this.S=this.D=this.J=this.B=null};
Bo=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
Mga=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=dm().j.j;a.B=new c.IntersectionObserver(cm(d,function(e){return Co(a,e)}),Lga);
d=cm(d,function(){a.B.unobserve(b);a.B.observe(b);Co(a,Bo(a))});
c.ResizeObserver?(a.J=new c.ResizeObserver(d),a.J.observe(b)):c.MutationObserver&&(a.D=new g.C.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);Co(a,Bo(a));return!0};
Co=function(a,b){try{if(b.length){a.S||(a.S=vm());var c=Nga(b),d=kfa(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new Am(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var k=nfa(c.intersectionRect);a.C=Dm(k,a.j.left-k.left,a.j.top-k.top)}}catch(l){a.ow(),um(299,l)}};
Nga=function(a){return Yl(a,function(b,c){return b.time>c.time?b:c},a[0])};
Do=function(a){a=void 0===a?Fl:a;hn.call(this,new dn(a,2))};
Eo=function(){var a=Oga();dn.call(this,Fl.top,a,"geo")};
Oga=function(){dm();var a=$m();return a.B||a.u?0:2};
Pga=function(){};
Fo=function(){this.done=!1;this.j={HU:0,eM:0,gja:0,ZM:0,PG:-1,iV:0,hV:0,jV:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new cn(this)};
Ho=function(){var a=Go;a.J||(a.J=!0,Qga(a,function(){return a.C.apply(a,g.u(g.Ba.apply(0,arguments)))}),a.C())};
Rga=function(){Zl(Pga);var a=Zl(yo);null!=a.j&&a.j.j?tfa(a.j.j):$m().update(Fl)};
Io=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{Rga();var d=vm(),e=dm();e.D=d;if(null!=Zl(yo).j)for(e=0;e<b.length;e++)Wfa(b[e],d,c);else em(om,"",{strategy_not_selected:1,bin:e.u},!0);for(d=0;d<b.length;d++)Xfa(b[d]);++a.j.ZM}finally{c?g.lc(b,function(f){f.hg.Ed=0}):a.u.schedule()}}};
Qga=function(a,b){if(!a.D){b=sm(142,b);am();var c;an.visibilityState?c="visibilitychange":an.mozVisibilityState?c="mozvisibilitychange":an.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Hl(an,c,b,{capture:!1})&&(a.D=b)}};
Sga=function(){var a=Zl(yo);if(null!=a.j){var b=a.j;g.lc(xo(),function(c){return Ufa(c,b)})}};
Tga=function(a,b){a=a.K;xm&&(a+=b-ym);return a};
Vga=function(a){a=void 0===a?function(){return{}}:a;
pm.fN="av-js";om.j=.01;$ea([function(b){var c=dm(),d={};d=(d.bin=c.u,d.type="error",d);c=Al(c.featureSet);if(!Go.B){var e=Go,f=Fl.document,k=0<=wm?vm()-wm:-1,l=vm();-1==e.j.PG&&(k=l);var m=$m(),n=dm(),p=Al(n.featureSet),q=xo();try{if(0<q.length){var t=m.j;t&&(p.bs=[Bm(t),t.getHeight()]);var v=m.D;v&&(p.ps=[v.width,v.height]);Fl.screen&&(p.scs=[Fl.screen.width,Fl.screen.height])}else p.url=encodeURIComponent(Fl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=wm;p.bin=n.u;void 0!==Fl.google_osd_load_pub_page_exp&&(p.olpp=Fl.google_osd_load_pub_page_exp);p.deb=[1,e.j.HU,e.j.eM,e.j.ZM,e.j.PG,0,e.u.u,e.j.iV,e.j.hV,e.j.jV].join("-");p.tvt=Tga(e,l);m.u&&(p.inapp=1);if(null!==Fl&&Fl!=Fl.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Fl.location.href.substring(0,512)));var x=m.K;p.is=[Bm(x),x.getHeight()]}}catch(y){p.error=1}Go.B=p}t=g.Uf(Go.B);v=dm().j;1==zl(v.B,"prf")?(x=new bm,e=v.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),x=fe(x,1,e.C+f,0),e=
v.j,x=fe(x,5,-1<e.j?e.u+1:e.u,0),x=fe(x,2,v.u.j.B(),0),x=fe(x,3,v.u.j.u(),0),v=fe(x,4,v.u.j.j(),0),x={},v=(x.pf=g.wc(g.Ue(v,Uga)),x)):v={};g.Xf(t,v);g.Xf(b,d,c,t,a());if(d=Dfa())c={},g.Xf(b,(c.v=encodeURIComponent(d),c))}])};
Xga=function(){var a=Wga||Fl;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("&")};
Jo=function(){var a="youtube.player.web_20220412_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20220412_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20220412_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20220412_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20220412_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
Yga=function(){return"av.default_js".includes("ima_html5_sdk")?{Ol:"ima",Rl:null}:"av.default_js".includes("ima_native_sdk")?{Ol:"nima",Rl:null}:"av.default_js".includes("admob-native-video-javascript")?{Ol:"an",Rl:null}:"youtube.player.web_20220412_01_RC00".includes("cast_js_sdk")?{Ol:"cast",Rl:Jo()}:"youtube.player.web_20220412_01_RC00".includes("youtube.player.web")?{Ol:"yw",Rl:Jo()}:"youtube.player.web_20220412_01_RC00".includes("outstream_web_client")?{Ol:"out",Rl:Jo()}:"youtube.player.web_20220412_01_RC00".includes("drx_rewarded_web")?
{Ol:"r",Rl:Jo()}:"youtube.player.web_20220412_01_RC00".includes("gam_native_web_video")?{Ol:"n",Rl:Jo()}:"youtube.player.web_20220412_01_RC00".includes("admob_interstitial_video")?{Ol:"int",Rl:Jo()}:{Ol:"j",Rl:null}};
Mo=function(a,b){var c={sv:"924"};null!==Ko&&(c.v=Ko);c.cb=Zga;c.nas=wo.j.length;c.msg=a;void 0!==b&&(a=$ga(b))&&(c.e=Lo[a]);return c};
No=function(a){return fb(a,"custom_metric_viewable")};
$ga=function(a){var b=No(a)?"custom_metric_viewable":a.toLowerCase();return Nf(qo,function(c){return c==b})};
aha=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
dha=function(a){try{var b=a.split(",");return b.length>g.If(bha).length?null:Yl(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===cha[d[0]]||!cha[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
eha=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?sn(b.j,a.j):sn(b.u,a.j);case "tos":return a.u?rn(b.j,a.j):rn(b.u,a.j)}return 0};
Oo=function(a,b,c,d){go.call(this,b,d);this.K=a;this.S=c};
fha=function(){};
Po=function(){};
Qo=function(){};
Ro=function(a){go.call(this,"fully_viewable_audible_half_duration_impression",a)};
So=function(a){this.j=a};
To=function(a,b){go.call(this,a,b)};
Uo=function(a){ho.call(this,"measurable_impression",a)};
Vo=function(){So.apply(this,arguments)};
Wo=function(a,b,c){jo.call(this,a,b,c)};
Xo=function(a){a=void 0===a?Fl:a;hn.call(this,new dn(a,2))};
Yo=function(a,b,c){jo.call(this,a,b,c)};
Zo=function(a){a=void 0===a?Fl:a;hn.call(this,new dn(a,2))};
$o=function(){dn.call(this,Fl,2,"mraid");this.Ga=0;this.ma=this.ra=!1;this.K=null;this.u=efa(this.B);this.C.j=new Am(0,0,0,0);this.Ia=!1};
ap=function(a,b,c){a.gq("addEventListener",b,c)};
jha=function(a){dm().C=!!a.gq("isViewable");ap(a,"viewableChange",gha);"loading"===a.gq("getState")?ap(a,"ready",hha):iha(a)};
iha=function(a){"string"===typeof a.u.Ok.AFMA_LIDAR?(a.ra=!0,kha(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))};
kha=function(a){a.ma=!1;var b=1==zl(dm().featureSet,"rmmt"),c=!!a.gq("isViewable");(b?!c:1)&&am().setTimeout(tm(524,function(){a.ma||(lha(a),um(540,Error()),a.K="mt",a.fail("w"))}),500);
mha(a);ap(a,a.u.Ok.AFMA_LIDAR,nha)};
mha=function(a){var b=1==zl(dm().featureSet,"sneio"),c=void 0!==a.u.Ok.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Ok.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Ok.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Ok.AFMA_LIDAR_EXP_1=!b)};
lha=function(a){a.gq("removeEventListener",a.u.Ok.AFMA_LIDAR,nha);a.ra=!1};
oha=function(a,b){if("loading"===a.gq("getState"))return new g.yh(-1,-1);b=a.gq(b);if(!b)return new g.yh(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.yh(-1,-1):new g.yh(a,b)};
hha=function(){try{var a=Zl($o);a.gq("removeEventListener","ready",hha);iha(a)}catch(b){um(541,b)}};
nha=function(a,b){try{var c=Zl($o);c.ma=!0;var d=a?new Am(a.y,a.x+a.width,a.y+a.height,a.x):new Am(0,0,0,0);var e=vm(),f=bn();var k=new Em(e,f,c);k.j=d;k.volume=b;c.Cp(k)}catch(l){um(542,l)}};
gha=function(a){var b=dm(),c=Zl($o);a&&!b.C&&(b.C=!0,c.Ia=!0,c.K&&c.fail("w",!0))};
bp=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.K=(a.start=this.pW,a.firstquartile=this.kW,a.midpoint=this.mW,a.thirdquartile=this.qW,a.complete=this.hW,a.error=this.iW,a.pause=this.mI,a.resume=this.JQ,a.skip=this.oW,a.viewable_impression=this.Yl,a.mute=this.Rv,a.unmute=this.Rv,a.fullscreen=this.lW,a.exitfullscreen=this.jW,a.fully_viewable_audible_half_duration_impression=this.Yl,a.measurable_impression=this.Yl,a.abandon=this.mI,a.engagedview=this.Yl,a.impression=this.Yl,a.creativeview=
this.Yl,a.progress=this.Rv,a.custom_metric_viewable=this.Yl,a.bufferstart=this.mI,a.bufferfinish=this.JQ,a.audio_measurable=this.Yl,a.audio_audible=this.Yl,a);a={};this.S=(a.overlay_resize=this.nW,a.abandon=this.FG,a.close=this.FG,a.collapse=this.FG,a.overlay_unmeasurable_impression=function(b){return ro(b,"overlay_unmeasurable_impression",bn())},a.overlay_viewable_immediate_impression=function(b){return ro(b,"overlay_viewable_immediate_impression",bn())},a.overlay_unviewable_impression=function(b){return ro(b,
"overlay_unviewable_impression",bn())},a.overlay_viewable_end_of_session_impression=function(b){return ro(b,"overlay_viewable_end_of_session_impression",bn())},a);
dm().u=3;pha(this);this.B=!1};
cp=function(a,b,c,d){b=a.mz(null,d,!0,b);b.C=c;Hga([b],a.B);return b};
qha=function(a,b,c){fea(b);var d=a.j;g.lc(b,function(e){var f=g.Wl(e.criteria,function(k){var l=dha(k);if(null==l)k=null;else if(k=new aha,null!=l.visible&&(k.j=l.visible/100),null!=l.audible&&(k.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=gb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.B=l,k.C=-1):(k.B=-1,k.C=l);k.D=void 0===m?"tos":m}return k});
Zm(f,function(k){return null==k})||lga(c,new Oo(e.id,e.event,f,d))})};
rha=function(){var a=[],b=dm();a.push(Zl(Eo));zl(b.featureSet,"mvp_lv")&&a.push(Zl($o));b=[new Xo,new Zo];b.push(new zo(a));b.push(new Do(Fl));return b};
sha=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=vm(),c=dm(),d=$m();wm=b;c.B=79463069;"o"!==a.u&&(Wga=vea(Fl));if(Hea()){Go.j.eM=0;Go.j.PG=vm()-b;var e=rha(),f=Zl(yo);f.u=e;Jga(f,function(){dp()})?Go.done||(Sga(),en(f.j.j,a),Ho()):d.B?dp():Ho()}else ep=!0}catch(k){throw wo.reset(),k;
}}};
gp=function(a){Go.u.cancel();fp=a;Go.done=!0};
hp=function(a){if(a.u)return a.u;var b=Zl(yo).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
ip=function(a,b,c){if(null==a.j)return b.Wv|=4,!1;a=tha(a.j,c,b);b.Wv|=a;return 0==a};
dp=function(){var a=[new Do(Fl)],b=Zl(yo);b.u=a;Jga(b,function(){gp("i")})?Go.done||(Sga(),Ho()):gp("i")};
uha=function(a,b){if(!a.rb){var c=ro(a,"start",bn());c=a.nI.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="924";null!==Ko&&(d.v=Ko);nj(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=Xga();nj(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20220414023957/https://pagead2.googlesyndication.com/pagead/gen_204?"+ln(kn(new jn,d));Efa(b);a.rb=!0}};
jp=function(a,b,c){Io(Go,[a],!bn());pga(a,c);4!=c&&oga(a.ra,c,a.vB);return ro(a,b,bn())};
pha=function(a){Vga(function(){var b=vha();null!=a.u&&(b.sdk=a.u);var c=Zl(yo);null!=c.j&&(b.avms=c.j.getName());return b})};
wha=function(a,b,c,d){if(a.B)var e=uo(wo,b);else e=Dga(wo,c),null!==e&&e.Lg!==b&&(a.qx(e),e=null);e||(b=a.mz(c,vm(),!1,b),0==wo.u.length&&(dm().B=79463069),Iga([b]),e=b,e.C=hp(a),d&&(e.Ua=d));return e};
xha=function(a){g.lc(wo.j,function(b){3==b.Zg&&a.qx(b)})};
yha=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
vha=function(){var a=$m(),b={},c={},d={};return Object.assign({},(b.sv="924",b),null!==Ko&&(c.v=Ko,c),(d["if"]=a.B?"1":"0",d.nas=String(wo.j.length),d))};
kp=function(a){go.call(this,"audio_audible",a)};
lp=function(a){ho.call(this,"audio_measurable",a)};
mp=function(){So.apply(this,arguments)};
np=function(){};
zha=function(a){this.j=a};
tha=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==Ko&&(d.v=Ko,d),(e.sv="924",e.cb=Zga,e.e=Aha(b),e));e=ro(c,b,bn());g.Xf(d,e);c.SR[b]=e;d=2==c.Xl()?Cfa(d).join("&"):c.nI.j(d).j;try{return a(c.Lg,d,b),0}catch(f){return 2}}else return 1};
Aha=function(a){var b=No(a)?"custom_metric_viewable":a;a=Nf(qo,function(c){return c==b});
return Lo[a]};
op=function(){bp.call(this);this.D=null;this.C=!1;this.J="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Bha=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&qha(a,c,b)};
Cha=function(a,b,c){var d=uo(wo,b);d||(d=c.opt_nativeTime||-1,d=cp(a,b,hp(a),d),c.opt_osdId&&(d.Ua=c.opt_osdId));return d};
Dha=function(a,b,c){var d=uo(wo,b);d||(d=cp(a,b,"n",c.opt_nativeTime||-1));return d};
Eha=function(a,b){var c=uo(wo,b);c||(c=cp(a,b,"h",-1));return c};
Fha=function(a){dm();switch(hp(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};
Iha=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Xf(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.AB(b,c);c=f?f.nI:a.GF();if(e.opt_bounds)return c.j(Mo("ol",d));if(void 0!==d)if(void 0!==$ga(d))if(ep)b=Mo("ue",d);else if(sha(a),"i"==fp)b=Mo("i",d),b["if"]=0;else if(b=a.AB(b,e))if(a.B&&3==b.Zg)b="stopped";else{b:{"i"==fp&&(b.Jp=!0,a.UI());f=e.opt_fullscreen;void 0!==f&&Cn(b,!!f);var k;if(f=!$m().u)(f=lb(g.qb(),"CrKey")||lb(g.qb(),"PlayStation")||lb(g.qb(),"Roku")||pfa()||lb(g.qb(),"Xbox"))||
(f=g.qb(),f=lb(f,"AppleTV")||lb(f,"Apple TV")||lb(f,"CFNetwork")||lb(f,"tvOS")),f||(f=g.qb(),f=lb(f,"sdk_google_atv_x86")||lb(f,"Android TV")),f=!f;f&&(am(),f=0===Il(an));if(k=f){switch(b.Xl()){case 1:uha(b,"pv");break;case 2:a.DI(b)}gp("pv")}f=d.toLowerCase();if(k=!k)k=zl(dm().featureSet,"ssmol")&&"loaded"===f?!1:g.Sb(Gha,f);if(k&&0==b.Zg){"i"!=fp&&(Go.done=!1);k=void 0!==e?e.opt_nativeTime:void 0;zm=k="number"===typeof k?k:vm();b.WA=!0;var l=bn();b.Zg=1;b.pg={};b.pg.start=!1;b.pg.firstquartile=
!1;b.pg.midpoint=!1;b.pg.thirdquartile=!1;b.pg.complete=!1;b.pg.resume=!1;b.pg.pause=!1;b.pg.skip=!1;b.pg.mute=!1;b.pg.unmute=!1;b.pg.viewable_impression=!1;b.pg.measurable_impression=!1;b.pg.fully_viewable_audible_half_duration_impression=!1;b.pg.fullscreen=!1;b.pg.exitfullscreen=!1;b.KF=0;l||(b.uh().S=k);Io(Go,[b],!l)}(k=b.Ss[f])&&bo(b.Yf,k);g.Sb(Hha,f)&&b.Vr&&b.Vr.D(b,null);switch(b.Xl()){case 1:var m=No(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.S[f]}if(m&&(d=m.call(a,b,e,d),void 0!==
d)){e=Mo(void 0,f);g.Xf(e,d);d=e;break b}d=void 0}3==b.Zg&&(a.B?b.Ae&&b.Ae.ow():a.qx(b));b=d}else b=Mo("nf",d);else b=void 0;else ep?b=Mo("ue"):f?(b=Mo(),g.Xf(b,rga(f,!0,!1,!1))):b=Mo("nf");return"string"===typeof b?a.B&&"stopped"===b?pp:c.j():c.j(b)};
Jha=function(a,b){b&&(a.J=b)};
Kha=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
qp=function(a,b,c){c=void 0===c?{}:c;a=Iha(Zl(op),b,c,a);return Kha(a)};
Lha=function(a,b){b=void 0===b?!1:b;var c=Zl(op).AB(a,{});c?mo(c):b&&(a=Zl(op).mz(null,vm(),!1,a),a.Zg=3,Iga([a]))};
Oha=function(a){if(g.ib(g.Eh(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.uk(a)}catch(c){return null!=g.Pb(Mha,function(d){return 0<a.search(d)})}return b.D.match(Nha)?!0:null!=g.Pb(Mha,function(c){return null!=a.match(c)})};
g.rp=function(a,b){return a.replace(Pha,function(c,d){try{var e=g.Sf(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.ib(g.Eh(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Qha=function(a){if(sp){var b={};Object.defineProperties(a,(b[Symbol.hasInstance]=Rd(Object[Symbol.hasInstance]),b))}};
up=function(a){g.ng.call(this);var b=this;this.J=this.u=0;this.Lk=null!=a?a:{Sg:function(e,f){return setTimeout(e,f)},
sj:clearTimeout};var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.B(function(e){return g.A(e,tp(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.J||Rha(this)};
Sha=function(){var a=g.vp;up.j||(up.j=new up(a));return up.j};
Rha=function(a){a.J=a.Lk.Sg(function(){var b;return g.B(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Va(3):g.A(c,tp(a),3):g.A(c,tp(a),3);Rha(a);g.sa(c)})},3E4)};
tp=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,k;return g.B(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,k=!1,g.ta(l,2,3),d&&(a.u=a.Lk.Sg(function(){d.abort()},b||2E4)),g.A(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:k=!0;case 3:g.wa(l);a.D=void 0;a.u&&(a.Lk.sj(a.u),a.u=0);k!==a.j&&(a.j=k,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(k);g.xa(l,0);break;case 2:g.va(l),k=!1,l.Va(3)}})})};
wp=function(){this.data_=[];this.j=-1};
Tha=function(a){-1===a.j&&(a.j=Yl(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.xp=function(a,b,c){g.G.call(this);this.j=null;this.C=!1;this.J=a;this.D=c;this.u=b||window;this.B=(0,g.Qa)(this.RS,this)};
g.yp=function(a){a.isActive()||a.start()};
Uha=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Vha=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.L=function(a,b,c){g.G.call(this);this.j=a;this.Wg=b||0;this.u=c;this.B=(0,g.Qa)(this.CK,this)};
g.zp=function(a,b){a.isActive()||a.start(b)};
g.Ap=function(a){a.stop();a.CK()};
g.Bp=function(a){a.isActive()&&g.Ap(a)};
Cp=function(a,b){this.j=a[g.C.Symbol.iterator]();this.u=b};
Wha=function(a,b){return new Cp(a,b)};
Xha=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Dp=function(a){return a.classList?a.classList:Xha(a).match(/\S+/g)||[]};
g.Ep=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Fp=function(a,b){return a.classList?a.classList.contains(b):g.Sb(Dp(a),b)};
g.M=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Fp(a,b)){var c=Xha(a);g.Ep(a,c+(0<c.length?" "+b:b))}};
g.Gp=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.M(a,e)});
else{var c={};Array.prototype.forEach.call(Dp(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.Ep(a,b)}};
g.Hp=function(a,b){a.classList?a.classList.remove(b):g.Fp(a,b)&&g.Ep(a,Array.prototype.filter.call(Dp(a),function(c){return c!=b}).join(" "))};
g.Ip=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Hp(a,c)}):g.Ep(a,Array.prototype.filter.call(Dp(a),function(c){return!g.Sb(b,c)}).join(" "))};
g.O=function(a,b,c){c?g.M(a,b):g.Hp(a,b)};
Yha=function(a,b){var c=!g.Fp(a,b);g.O(a,b,c)};
Mp=function(a){if(a instanceof Jp||a instanceof Kp||a instanceof Lp)return a;if("function"==typeof a.next)return new Jp(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Jp(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Ji)return new Jp(function(){return a.Ji()});
throw Error("Not an iterator or iterable.");};
Jp=function(a){this.u=a};
Kp=function(a){this.u=a};
Lp=function(a){Jp.call(this,function(){return a});
this.B=a};
g.Np=function(a,b){this.u={};this.j=[];this.rq=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.Np)for(c=a.zn(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Zha=function(a,b){return a===b};
Pp=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Op(a.u,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],Op(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
Op=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Qp=function(){g.ng.call(this);this.j=0;this.endTime=this.startTime=null};
$ha=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.Km(a,"transition",b.join(","))};
Rp=function(a,b,c,d,e){g.Qp.call(this);this.u=a;this.J=b;this.K=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
aia=function(a,b,c,d){return new Rp(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
cia=function(a){a=nb(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in bia))return null}return a};
Sp=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
dia=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
eia=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ec&&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)};
jia=function(a){if(!a)return Yg;var b=document.createElement("div").style;fia(a).forEach(function(c){var d=g.uf&&c in gia?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");fb(d,"--")||fb(d,"var")||(c=eia(hia,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=cia(c),null!=c&&eia(iia,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return nba(g.Fg("Output of CSS sanitizer"),b.cssText||"")};
fia=function(a){g.La(a)?a=g.$b(a):(a=g.If(a),g.Xb(a,"cssText"));return a};
g.Up=function(a){var b,c=b=0,d=!1;a=a.split(kia);for(var e=0;e<a.length;e++){var f=a[e];g.Tp.test(f)?(b++,c++):lia.test(f)?d=!0:mia.test(f)?c++:nia.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Vp=function(a,b,c,d,e,f,k,l){this.j=a;this.K=b;this.B=c;this.D=d;this.C=e;this.J=f;this.u=k;this.S=l};
g.Wp=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=g.uh(a.j,a.B,b),d=g.uh(a.B,a.C,b);a=g.uh(a.C,a.u,b);c=g.uh(c,d,b);d=g.uh(d,a,b);return g.uh(c,d,b)};
Xp=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
oia=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};
Yp=function(a){return(a=a.exec(g.qb()))?a[1]:""};
Zp=function(a){return 0<=g.pb(pia,a)};
g.$p=function(a){g.G.call(this);this.J=1;this.B=[];this.C=0;this.j=[];this.u={};this.K=!!a};
qia=function(a,b,c){g.vi(function(){a.apply(b,c)})};
g.aq=function(a){this.j=a};
bq=function(a){this.j=a};
ria=function(a){this.data=a};
sia=function(a){return void 0===a||a instanceof ria?a:new ria(a)};
cq=function(a){this.j=a};
g.tia=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ta()||!!b&&b>g.Ta()};
g.dq=function(a){this.j=a};
uia=function(){};
eq=function(){};
fq=function(a){this.j=a};
gq=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
via=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
iq=function(a,b){this.u=a;this.j=null;if(g.Ec&&!g.tc(9)){hq||(hq=new g.Np);this.j=hq.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),hq.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
jq=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return wia[b]})};
kq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
lq=function(a,b){this.u=a;this.j=b+"::"};
g.mq=function(a){var b=new gq;return b.isAvailable()?a?new lq(b,a):b:null};
nq=function(a,b){this.j=a;this.pd=b};
oq=function(a){this.j=[];if(a)a:{if(a instanceof oq){var b=a.zn();a=a.wj();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new nq(b[d],a[d]));break a}}else b=g.If(a),a=Hf(a);for(d=0;d<b.length;d++)xia(this,b[d],a[d])}};
xia=function(a,b,c){var d=a.j;d.push(new nq(b,c));b=d.length-1;a=a.j;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
pq=function(){oq.call(this)};
qq=function(){};
yia=function(){var a=g.Ba.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.u(g.Ba.apply(0,arguments))))}})};
zia=function(){var a=g.Ba.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(k){return e.apply(null,[k].concat(g.u(g.Ba.apply(1,arguments))))}};
d=a.map(function(k){return k(f)});
e=yia.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
rq=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Aia=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:sq}))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"+rq()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(sq+' 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.'));})};
Bia=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(v){if("function"!==typeof v)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(v);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(v),1);n=null}}}
function k(v){if("object"!==typeof v||null===v)var x=!1;else{for(x=v;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(v)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof v.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,v)}finally{q=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
return v}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(Bia)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;k({type:sq});a={};var t=(a.dispatch=k,a.subscribe=f,a.getState=e,a.replaceReducer=function(v){if("function"!==typeof v)throw Error("Expected the nextReducer to be a function.");l=v;k({type:Cia});return t},a[Dia]=function(){var v={};
return v.subscribe=function(x){function y(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},v[Dia]=function(){return this},v},a);
return t};
tq=function(a){g.F.call(this,a,-1,Eia)};
uq=function(a){g.F.call(this,a)};
Fia=function(a){var b=a.split(""),c=[242844484,-138577869,b,685713365,-1478911997,536722372,-757482049,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
1032861106,-1531941629,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
-101139997,null,1004728792,-406893646,1221847006,-329238116,-1312289663,b,null,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
249571389,1684738032,-1316467363,-221968129,-748355114,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
-137064906,-138577869,534322997,-2081753354,b,1738034636,null,-1582416631,-1579311948,1015506959,-2069251755,-1067806487,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
1584249648,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
1499655096,"push",-1316467363,function(d,e,f){var k=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+k--)%f.length])},e.split(""))},
598699880,-406899981,-331858048,-928058598,function(d){d.reverse()},
-410356484,-969792820,2128973813];c[12]=c;c[19]=c;c[34]=c;try{c[21](c[19],c[31]),c[22](c[3],c[16]),c[43](c[13],c[36]),c[41](c[33]),c[21](c[13],c[42]),c[11](c[23],c[32]),c[25](c[16],c[40]),c[42](c[39],c[13]),c[31](c[39],c[16]),c[8](c[39],c[34]),c[42](c[40],c[19]),c[43](c[0],c[24]),c[2](c[15],c[11]),c[20](c[48],c[35]),c[20](c[47],c[30]),c[52](c[25],c[22]),c[24](c[22],c[49]),c[14](c[6],c[33]),c[11](c[38],c[4]),c[43](c[6],c[41]),c[11](c[36],c[53]),c[11](c[6],c[8]),c[24](c[39],c[37]),c[30](c[8]),c[11](c[47],
c[0]),c[29](c[24],c[44]),c[54](c[13],c[5]),c[21](c[32],c[3]),c[21](c[18],c[5]),c[7](c[12],c[25]),c[0](c[32],c[44],c[27]()),c[42](c[18]),c[39](c[2],c[8]),c[51](c[18],c[23]),c[20](c[32],c[52]),c[7](c[35],c[16]),c[20](c[18],c[14]),c[20](c[35],c[11]),c[19](c[32],c[36]),c[18](c[10],c[46]),c[48](c[6],c[33])}catch(d){return"enhanced_except_l5UB6Or-_w8_"+a}return b.join("")};
vq=function(a){g.F.call(this,a)};
wq=function(a){g.F.call(this,a)};
xq=function(a){g.F.call(this,a)};
g.yq=function(a){g.F.call(this,a,-1,Gia)};
Iia=function(a){g.F.call(this,a,-1,Hia)};
zq=function(a){g.F.call(this,a)};
Aq=function(a){g.F.call(this,a,-1,Jia)};
Bq=function(a){g.F.call(this,a,-1,Kia)};
Mia=function(a){g.F.call(this,a,-1,Lia)};
Cq=function(a){g.F.call(this,a)};
Nia=function(a){g.F.call(this,a)};
Oia=function(a){g.F.call(this,a)};
Eq=function(a){g.F.call(this,a)};
Fq=function(a){g.F.call(this,a)};
Pia=function(a){g.F.call(this,a)};
Ria=function(a){g.F.call(this,a,-1,Qia)};
Sia=function(a){g.F.call(this,a)};
Gq=function(a){g.F.call(this,a)};
Tia=function(a){g.F.call(this,a)};
Hq=function(a){g.F.call(this,a)};
Uia=function(a){g.F.call(this,a)};
Iq=function(a){g.F.call(this,a)};
Via=function(a,b){re(a,1,b)};
Wia=function(a){g.F.call(this,a)};
Xia=function(a,b){re(a,1,b)};
Jq=function(a){g.F.call(this,a,-1,Yia)};
Zia=function(a,b){re(a,2,b)};
Kq=function(a){g.F.call(this,a)};
Lq=function(a){g.F.call(this,a)};
Mq=function(a){g.F.call(this,a)};
$ia=function(a){g.F.call(this,a)};
Nq=function(a){g.F.call(this,a,-1,aja)};
Oq=function(a){g.F.call(this,a)};
Pq=function(a){g.F.call(this,a,-1,bja)};
cja=function(a,b){return g.D(a,1,b)};
dja=function(a,b){return g.D(a,25,b)};
Rq=function(a,b){ue(a,68,Qq,b)};
Qq=function(a){g.F.call(this,a)};
eja=function(a){g.F.call(this,a)};
fja=function(a){g.F.call(this,a)};
Sq=function(a){g.F.call(this,a)};
Tq=function(a){g.F.call(this,a,431)};
gja=function(a){g.F.call(this,a)};
Uq=function(a){g.F.call(this,a)};
Vq=function(a){g.F.call(this,a,-1,hja)};
ija=function(){return g.Ia("yt.ads.biscotti.lastId_")||""};
jja=function(a){g.Ha("yt.ads.biscotti.lastId_",a)};
Wq=function(a){g.F.call(this,a,1)};
Xq=function(a){g.F.call(this,a)};
Yq=function(){Xq.apply(this,arguments)};
Zq=function(){Wq.apply(this,arguments)};
ar=function(){var a=arguments;1<a.length?$q[a[0]]=a[1]:1===a.length&&Object.assign($q,a[0])};
g.P=function(a,b){return a in $q?$q[a]:b};
br=function(){return $q.EXPERIMENT_FLAGS};
cr=function(a){var b=br();return b?b[a]:void 0};
g.Q=function(a){a=kja(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.dr=function(a,b){a=kja(a);return void 0===a&&void 0!==b?b:Number(a||0)};
er=function(){return g.P("EXPERIMENTS_TOKEN","")};
kja=function(a){var b=g.P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.P("EXPERIMENT_FLAGS",{})[a]};
fr=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};
lja=function(a){gr.forEach(function(b){return b(a)})};
ir=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.hr(b)}}:a};
g.hr=function(a,b,c,d){var e=g.Ia("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"ERROR",b,c,d]),ar("ERRORS",e));lja(a)};
jr=function(a,b,c,d){var e=g.Ia("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"WARNING",b,c,d]),ar("ERRORS",e))};
kr=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var k=mja(f[0]||""),l=mja(f[1]||"");k in c?Array.isArray(c[k])?g.bc(c[k],l):c[k]=[c[k],l]:c[k]=l}catch(q){var m=q,n=f[0],p=String(kr);m.args=[{key:n,value:f[1],query:a,method:nja==p?"unchanged":p}];oja.hasOwnProperty(n)||jr(m)}}return c};
lr=function(a){var b=[];g.Af(a,function(c,d){var e=g.Bh(d),f;Array.isArray(c)?f=c:f=[c];g.lc(f,function(k){""==k?b.push(e):b.push(e+"="+g.Bh(k))})});
return b.join("&")};
mr=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return kr(a,"&")};
nr=function(a){a=a.split(",");return a=a.map(function(b){return mr(b)})};
g.or=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),mr(1<a.length?a[1]:a[0])):{}};
pr=function(a,b){return pja(a,b||{},!0)};
qr=function(a,b){return pja(a,b||{},!1)};
pja=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=mr(e[1]||"");for(var f in b)if(c||!g.Jf(e,f))e[f]=b[f];return g.sj(a,e)+d};
rr=function(a){if(!b)var b=window.location.href;var c=g.lj(1,a),d=g.mj(a);c&&d?(a=a.match(kj),b=b.match(kj),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.mj(b)==d&&(Number(g.lj(4,b))||null)==(Number(g.lj(4,a))||null):!0;return a};
sr=function(a){a||(a=document.location.href);a=g.lj(1,a);return null!==a&&"https"==a};
tr=function(a){a=g.mj(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
mja=function(a){return a&&a.match(qja)?a:Ch(a)};
ur=function(a){var b=rja;a=void 0===a?ija():a;var c=Object,d=c.assign,e=sja(b);var f=b.j;try{var k=f.screenX;var l=f.screenY}catch(E){}try{var m=f.outerWidth;var n=f.outerHeight}catch(E){}try{var p=f.innerWidth;var q=f.innerHeight}catch(E){}try{var t=f.screenLeft;var v=f.screenTop}catch(E){}try{p=f.innerWidth,q=f.innerHeight}catch(E){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(E){}f=[t,v,k,l,x,y,m,n,p,q];k=gfa(!1,b.j.top);l={};var z=void 0===z?g.C:z;m=new wp;z.SVGElement&&z.document.createElementNS&&
m.set(0);n=uea();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);z.crypto&&z.crypto.subtle&&m.set(3);z.TextDecoder&&z.TextEncoder&&m.set(4);z=Tha(m);b=(l.bc=z,l.bih=k.height,l.biw=k.width,l.brdim=f.join(),l.vis=Il(b.u),l.wgl=!!Fl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
sja=function(a){var b={};b.dt=tja;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Fl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Fl.screen)?void 0:f.height;var k;b.u_w=null==(k=Fl.screen)?void 0:k.width;var l;b.u_ah=null==(l=Fl.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Fl.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Fl.screen)?void 0:
n.colorDepth}catch(p){}return b};
vja=function(){if(!uja)return null;var a=uja();return"open"in a?a:null};
g.Ar=function(a){switch(vr(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
vr=function(a){return a&&"status"in a?a.status:-1};
g.Br=function(a,b){"function"===typeof a&&(a=ir(a));return window.setTimeout(a,b)};
g.Cr=function(a,b){"function"===typeof a&&(a=ir(a));return window.setInterval(a,b)};
g.Dr=function(a){window.clearTimeout(a)};
xja=function(a,b){b=void 0===b?{}:b;var c=rr(a),d=g.Q("web_ajax_ignore_global_headers_if_set"),e;for(e in wja){var f=g.P(wja[e]);!f||!c&&!Er(a,e)||d&&void 0!==b[e]||!g.Q("enable_web_eom_visitor_data")&&"X-Goog-EOM-Visitor-Id"===e||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||Er(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Er(a,"X-YouTube-Time-Zone")){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}k&&
(b["X-YouTube-Time-Zone"]=k)}if(c||Er(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=lr(ur());return b};
zja=function(a,b){var c=g.mj(a);g.Q("debug_handle_relative_url_for_query_forward_killswitch")||c||!rr(a)||(c=document.location.hostname);var d=jj(g.lj(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=mr(b),f={};g.lc(yja,function(k){e[k]&&(f[k]=e[k])});
return qr(a,f)};
Er=function(a){return g.mj(a)?!1:!0};
g.Gr=function(a,b){var c=b.format||"JSON";a=Aja(a,b);var d=Lla(a,b),e=!1,f=Fr(a,function(m){if(!e){e=!0;l&&g.Dr(l);var n=g.Ar(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=Mla(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var k=b.onTimeout;var l=g.Br(function(){e||(e=!0,f.abort(),g.Dr(l),k.call(b.context||g.C,f))},d)}return f};
Aja=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");if(b=b.urlParams)b[c]&&delete b[c],a=pr(a,b);return a};
Lla=function(a,b){var c=g.P("XSRF_FIELD_NAME"),d=g.P("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,k=g.P("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.mj(a)&&!b.withCredentials&&g.mj(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[k]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=mr(e),g.Xf(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.qj(e));f=e||f&&!g.Pf(f);!Nla&&f&&"POST"!=
b.method&&(Nla=!0,g.hr(Error("AJAX request with postData should use POST")));return e};
Mla=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(k){throw d=Error("Error reading responseText"),d.params=a,jr(d),k;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Wla(a):null)e={},g.lc(a.getElementsByTagName("*"),function(k){e[k.tagName]=Xla(k)})}d&&Yla(e);
return e};
Yla=function(a){if(g.Ma(a))for(var b in a)"html_content"==b||gb(b,"_html")?a[b]=g.nh(g.Fg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Yla(a[b])};
Wla=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Xla=function(a){var b="";g.lc(a.childNodes,function(c){b+=c.nodeValue});
return b};
Fr=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&ir(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=vja();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Q("debug_forward_web_query_parameters")&&(a=zja(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=xja(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};
Ir=function(a,b){var c=g.Uf(b),d;return(new g.xi(function(e,f){c.onSuccess=function(k){g.Ar(k)?e(new Zla(k)):f(new Hr("Request failed, status="+vr(k),"net.badstatus",k))};
c.onError=function(k){f(new Hr("Unknown request error","net.unknown",k))};
c.onTimeout=function(k){f(new Hr("Request timed out","net.timeout",k))};
d=g.Gr(a,c)})).Di(function(e){e instanceof Di&&d.abort();
return Ai(e)})};
g.Jr=function(a,b,c,d){function e(l,m,n){return l.Di(function(p){if(0>=m||403===vr(p.xhr))return Ai(new Hr("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<k?Math.min(k,p):p;return f(n).then(function(){return e(Ir(a,b),m-1,q)})})}
function f(l){return new g.xi(function(m){setTimeout(m,l)})}
var k=void 0===k?-1:k;return e(Ir(a,b),c-1,d)};
Hr=function(a,b,c){Za.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Zla=function(a){this.xhr=a};
Kr=function(){this.j=0;this.pd=null};
Lr=function(a){var b=new Kr;a=void 0===a?null:a;b.j=2;b.pd=void 0===a?null:a;return b};
Mr=function(a){var b=new Kr;a=void 0===a?null:a;b.j=1;b.pd=void 0===a?null:a;return b};
g.Pr=function(a,b,c,d,e){Nr||Or.set(""+a,b,{bC:c,path:"/",domain:void 0===d?"youtube.com":d,T_:void 0===e?!1:e})};
g.Qr=function(a,b){if(!Nr)return Or.get(""+a,b)};
g.$la=function(a,b,c){Nr||Or.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
ama=function(){if(!Or.isEnabled())return!1;if(!Or.isEmpty())return!0;Or.set("TESTCOOKIESENABLED","1",{bC:60});if("1"!==Or.get("TESTCOOKIESENABLED"))return!1;Or.remove("TESTCOOKIESENABLED");return!0};
Rr=function(){};
g.Tr=function(a,b,c){return Sr(b,0,c)};
bma=function(a,b){Sr(a,2,b)};
Ur=function(){Rr.apply(this,arguments)};
g.Vr=function(){Ur.j||(Ur.j=new Ur);return Ur.j};
g.Wr=function(){return!!g.Ia("yt.scheduler.instance")};
Sr=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ia("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Br(a,c||0)};
Xr=function(a){var b=g.Ia("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
cma=function(){var a=/Chrome\/(\d+)/.exec(g.qb());return a?parseFloat(a[1]):NaN};
dma=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.qb());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("."))};
Zr=function(){return Yr("android")&&Yr("chrome")&&!(Yr("trident/")||Yr("edge/"))&&!Yr("cobalt")};
ema=function(){return Yr("armv7")||Yr("aarch64")||Yr("android")};
g.$r=function(){return Yr("cobalt")};
as=function(){return Yr("cobalt")&&Yr("appletv")};
bs=function(){return Yr("(ps3; leanback shell)")||Yr("ps3")&&g.$r()};
fma=function(){return Yr("(ps4; leanback shell)")||Yr("ps4")&&g.$r()};
g.gma=function(){return g.$r()&&(Yr("ps4 vr")||Yr("ps4 pro vr"))};
cs=function(){var a=/WebKit\/([0-9]+)/.exec(g.qb());return!!(a&&600<=parseInt(a[1],10))};
ds=function(){var a=/WebKit\/([0-9]+)/.exec(g.qb());return!!(a&&602<=parseInt(a[1],10))};
es=function(){return Yr("iemobile")||Yr("windows phone")&&Yr("edge")};
gs=function(){return fs&&Yr("applewebkit")&&!Yr("version")&&(!Yr("safari")||Yr("gsa/"))};
is=function(){return g.hs&&Yr("version/")};
js=function(){return Yr("smart-tv")&&Yr("samsung")};
Yr=function(a){var b=g.qb();return b?0<=b.toLowerCase().indexOf(a):!1};
ks=function(){if(eca()||gs()||is())return!0;if(g.Q("enable_web_eom_visitor_data"))return g.P("EOM_VISITOR_DATA")?!1:!0;var a=g.P("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a?!0:(a=g.Qr("CONSENT"))?a.startsWith("YES+"):!0};
ms=function(a){Za.call(this,a.message||a.description||a.name);this.isMissing=a instanceof ls;this.isTimeout=a instanceof Hr&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Di};
ls=function(){Za.call(this,"Biscotti ID is missing from server")};
kma=function(){if(g.Q("disable_biscotti_fetch_entirely_for_all_web_clients"))return Ai(Error("Biscotti id fetching has been disabled entirely."));if(!ks())return Ai(Error("User has not consented - not fetching biscotti id."));if("1"==g.Sf(g.P("PLAYER_VARS",{}),"privembed",!1))return Ai(Error("Biscotti ID is not available in private embed mode"));ns||(ns=Ir("//web.archive.org/web/20220414023957/https://googleads.g.doubleclick.net/pagead/id",hma).then(ima).Di(function(a){return jma(2,a)}));
return ns};
ima=function(a){a=a.xhr.responseText;if(!fb(a,")]}'"))throw new ls;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new ls;a=a.id;jja(a);ns=Mr(a);lma(18E5,2);return a};
jma=function(a,b){b=new ms(b);jja("");ns=Lr(b);0<a&&lma(12E4,a-1);throw b;};
lma=function(a,b){g.Br(function(){Ir("//web.archive.org/web/20220414023957/https://googleads.g.doubleclick.net/pagead/id",hma).then(ima,function(c){return jma(b,c)}).Di(g.wg)},a)};
mma=function(){try{var a=g.Ia("yt.ads.biscotti.getId_");return a?a():kma()}catch(b){return Ai(b)}};
nma=function(a){var b=this;this.j=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.j=c})};
os=function(){if(!g.C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.qs=function(){this.j=g.P("ALT_PREF_COOKIE_NAME","PREF");this.u=g.P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Qr(this.j);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(ps[d]=c.toString())}}};
g.rs=function(a,b){return!!((oma("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
ts=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
us=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
oma=function(a){a=void 0!==ps[a]?ps[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
pma=function(){var a=g.C.navigator;return a?a.connection:void 0};
rma=function(){var a=pma();if(a){var b=qma[a.type||"unknown"]||"CONN_UNKNOWN";a=qma[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}};
tma=function(){var a=pma();if(null!=a&&a.effectiveType)return sma.hasOwnProperty(a.effectiveType)?sma[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
uma=function(){return"INNERTUBE_API_KEY"in $q&&"INNERTUBE_API_VERSION"in $q};
g.vs=function(){return{innertubeApiKey:g.P("INNERTUBE_API_KEY"),innertubeApiVersion:g.P("INNERTUBE_API_VERSION"),IB:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),SG:g.P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),eO:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"),UG:g.P("INNERTUBE_CONTEXT_HL"),TG:g.P("INNERTUBE_CONTEXT_GL"),fO:g.P("INNERTUBE_HOST_OVERRIDE")||"",gO:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),VG:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.P("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.ws=function(a){var b={client:{hl:a.UG,gl:a.TG,clientName:a.SG,clientVersion:a.innertubeContextClientVersion,configInfo:a.IB}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=er();""!==c&&(b.client.experimentsToken=c);c=fr();0<c.length&&(b.request={internalExperimentFlags:c});vma(a,void 0,b);wma(void 0,b);xma(a,void 0,b);yma(void 0,b);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(b.user=
{onBehalfOfUser:g.P("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.r(Object.entries(mr(g.P("DEVICE","")))),k=f.next();!k.done;k=f.next()){var l=g.r(k.value);k=l.next().value;l=l.next().value;"cbrand"===k?e.deviceMake=l:"cmodel"===k?e.deviceModel=l:"cbr"===k?e.browserName=l:"cbrver"===k?e.browserVersion=l:"cos"===k?e.osName=l:"cosver"===k?e.osVersion=l:"cplatform"===k&&(e.platform=l)}b.client=c.call(a,d,e);return b};
zma=function(a){var b=new Bq,c=new g.yq;g.D(c,1,a.UG);g.D(c,2,a.TG);g.D(c,16,a.eO);g.D(c,17,a.innertubeContextClientVersion);if(a.IB){var d=a.IB,e=new wq;d.coldConfigData&&g.D(e,1,d.coldConfigData);d.appInstallData&&g.D(e,6,d.appInstallData);d.coldHashData&&g.D(e,3,d.coldHashData);d.hotHashData&&g.D(e,5,d.hotHashData);re(c,62,e)}(d=g.C.devicePixelRatio)&&1!=d&&g.D(c,65,d);d=er();""!==d&&g.D(c,54,d);d=fr();if(0<d.length){e=new Iia;for(var f=0;f<d.length;f++){var k=new vq;g.D(k,1,d[f].key);k.setValue(d[f].value);
ue(e,15,vq,k)}re(b,5,e)}vma(a,c);wma(c);xma(a,c);yma(c);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(a=new Aq,g.D(a,3,g.P("DELEGATED_SESSION_ID")));a=g.r(Object.entries(mr(g.P("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.r(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?g.D(c,12,e):"cmodel"===d?g.D(c,13,e):"cbr"===d?g.D(c,87,e):"cbrver"===d?g.D(c,88,e):"cos"===d?g.D(c,18,e):"cosver"===d?g.D(c,19,e):"cplatform"===d&&g.D(c,42,e);re(b,1,c);return b};
vma=function(a,b,c){a=a.SG;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=oe(b,xq,96)||new xq;var d=os();d=Object.keys(Ama).indexOf(d);d=-1===d?null:d;null!==d&&g.D(c,3,d);re(b,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=os())};
wma=function(a,b){var c;if(g.Q("web_log_memory_total_kbytes")&&(null==(c=g.C.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.C.navigator)?void 0:d.deviceMemory;a?g.D(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
xma=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=oe(b,wq,62))?d:new wq;g.D(c,6,a.appInstallData);re(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
yma=function(a,b){var c=rma();c&&(a?g.D(a,61,Bma[c]):b&&(b.client.connectionType=c));g.Q("web_log_effective_connection_type")&&(c=tma())&&(a?g.D(a,94,Cma[c]):b&&(b.client.effectiveConnectionType=c))};
Dma=function(a,b,c){c=void 0===c?{}:c;var d={};g.Q("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.P("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.lM||g.P("AUTHORIZATION"))||(a?b="Bearer "+g.Ia("gapi.auth.getToken")().cia:b=Ri([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.P("SESSION_INDEX",0),g.Q("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));
return d};
xs=function(a){var b;(b=g.mq(a))||(a=new iq(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new cq(a):null;this.u=document.domain||window.location.hostname};
zs=function(){var a;return null==(a=ys())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Ema=function(){var a={};for(As=new Bs(void 0===a.handleError?Cs:a.handleError,void 0===a.logEvent?g.Ds:a.logEvent);0<Es.length;)switch(a=Es.shift(),a.type){case "ERROR":As.yy(a.payload);break;case "EVENT":As.logEvent(a.eventType,a.payload)}};
Gs=function(a){Fs||(As?As.yy(a):(Es.push({type:"ERROR",payload:a}),10<Es.length&&Es.shift()))};
Hs=function(a,b){Fs||(As?As.logEvent(a,b):(Es.push({type:"EVENT",eventType:a,payload:b}),10<Es.length&&Es.shift()))};
g.Is=function(a){var b=g.Ba.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.u(b))};
g.Ks=function(){try{return g.Js(),!0}catch(a){return!1}};
g.Js=function(a){if(void 0!==g.P("DATASYNC_ID"))return g.P("DATASYNC_ID");throw new g.Is("Datasync ID not set",void 0===a?"unknown":a);};
Ls=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Ms=function(a){return a.substr(0,a.indexOf(":"))||a};
g.Ns=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Fma[a]:c;d=void 0===d?Gma[a]:d;e=void 0===e?Hma[a]:e;g.Is.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.Ns.prototype)};
Os=function(a,b){g.Ns.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Fma.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Os.prototype)};
Ps=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,Ps.prototype)};
Rs=function(a,b,c,d){b=Ms(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Ns)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.Ns("QUOTA_EXCEEDED",a);if(g.Qs&&"UnknownError"===e.name)return new g.Ns("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Ps)return new g.Ns("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Ima.some(function(f){return e.message.includes(f)}))return new g.Ns("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.Ns("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",BC:e.name})];e.level="WARNING";return e};
g.Ss=function(a,b,c){var d=zs();return new g.Ns("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
Jma=function(a){if(!a)throw Error();throw a;};
Kma=function(a){return a};
Ts=function(a){this.j=a};
g.Us=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.r(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.r(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.onRejected=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
Lma=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.Us?Vs(a,b,f,d,e):d(f)}catch(k){e(k)}};
Mma=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.Us?Vs(a,b,f,d,e):d(f)}catch(k){e(k)}};
Vs=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.Us?Vs(a,b,f,d,e):d(f)},function(f){e(f)})};
Nma=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(k){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
Oma=function(a){return new Promise(function(b,c){Nma(a,b,c)})};
g.Ws=function(a){return new g.Us(new Ts(function(b,c){Nma(a,b,c)}))};
Xs=function(a,b){return new g.Us(new Ts(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(k){a=k;e()},d):c()}
e()}))};
Pma=function(a,b){this.request=a;this.cursor=b};
Ys=function(a){return g.Ws(a).then(function(b){return b?new Pma(a,b):null})};
Qma=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.R)());this.u=!1};
g.$s=function(a,b,c){a=a.j.createObjectStore(b,c);return new Zs(a)};
at=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
Rma=function(a,b){return g.bt(a,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(c){return g.ct(c.objectStore("LogsRequestsStore"),b)})};
g.bt=function(a,b,c,d){var e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){switch(z.j){case 1:var E={mode:"readonly",Lc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?E.mode=c:Object.assign(E,c);e=E;a.transactionCount++;f=e.Lc?3:1;k=0;case 2:if(l){z.Va(3);break}k++;m=Math.round((0,g.R)());g.ta(z,4);n=a.j.transaction(b,e.mode);E=new dt(n);E=Sma(E,d);return g.A(z,E,6);case 6:return p=z.u,q=Math.round((0,g.R)()),Tma(a,m,q,k,void 0,b.join(),e),z.return(p);case 4:t=g.va(z);v=Math.round((0,g.R)());
x=Rs(t,a.j.name,b.join(),a.j.version);if((y=x instanceof g.Ns&&!x.j)||k>=f)Tma(a,m,v,k,x,b.join(),e),l=x;z.Va(2);break;case 3:return z.return(Promise.reject(l))}})};
Tma=function(a,b,c,d,e,f,k){b=c-b;e?(e instanceof g.Ns&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Hs("QUOTA_EXCEEDED",{dbName:Ms(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof g.Ns&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Hs("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Uma(a,!1,d,f,b,k.tag),Gs(e)):Uma(a,!0,d,
f,b,k.tag)};
Uma=function(a,b,c,d,e,f){Hs("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Zs=function(a){this.j=a};
g.et=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Vma=function(a,b){return g.ft(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
g.Xma=function(a,b){return"getAll"in IDBObjectStore.prototype?g.Ws(a.j.getAll(b,void 0)):Wma(a,b)};
Wma=function(a,b){var c=[];return g.ft(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
Zma=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.Ws(a.j.getAllKeys(void 0,void 0)):Yma(a)};
Yma=function(a){var b=[];return g.$ma(a,{query:void 0},function(c){b.push(c.xB());return c.continue()}).then(function(){return b})};
g.ct=function(a,b,c){return g.Ws(a.j.put(b,c))};
g.ft=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return gt(a).then(function(d){return Xs(d,c)})};
g.$ma=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return Ys(a).then(function(e){return Xs(e,c)})};
dt=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.Ns;for(var f=b.j.objectStoreNames,k=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");k.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:k.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
Sma=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})};
ana=function(a){this.j=a};
g.ht=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return gt(a).then(function(d){return Xs(d,c)})};
bna=function(a,b){this.request=a;this.cursor=b};
gt=function(a){return g.Ws(a).then(function(b){return b?new bna(a,b):null})};
cna=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Qma(k.result,{closed:q}));return t}
var k=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.q0,p=c.upgrade,q=c.closed,t;k.addEventListener("upgradeneeded",function(v){try{if(null===v.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===k.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");v.dataLoss&&"none"!==v.dataLoss&&Hs("IDB_DATA_CORRUPTED",{reason:v.dataLossMessage||"unknown reason",dbName:Ms(a)});var x=f(),y=new dt(k.transaction);
p&&p(x,function(z){return v.oldVersion<z&&v.newVersion>=z},y);
y.done.catch(function(z){e(z)})}catch(z){e(z)}});
k.addEventListener("success",function(){var v=k.result;m&&v.addEventListener("versionchange",function(){m(f())});
v.addEventListener("close",function(){Hs("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ms(a),dbVersion:v.version});n&&n()});
d(f())});
k.addEventListener("error",function(){e(k.error)});
l&&k.addEventListener("blocked",function(){l()})})};
dna=function(a,b,c){c=void 0===c?{}:c;return cna(a,b,c)};
jt=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.B(function(k){if(1==k.j)return g.ta(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(k,Oma(c),4);
if(2!=k.j)return g.ua(k,0);f=g.va(k);throw Rs(f,a,"",-1);})};
ena=function(a){return new Promise(function(b){bma(function(){b()},a)})};
kt=function(a,b){this.name=a;this.options=b;this.C=!0;this.J=this.D=0;this.u=500};
fna=function(a,b){return new g.Ns("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.lt=function(a,b){if(!b)throw g.Ss("openWithToken",Ms(a.name));return a.open()};
gna=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,g.lt(mt,b),2);c=d.u;return d.return(g.bt(c,["databases"],{Lc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return g.ct(f,a).then(function(){})})}))})};
nt=function(a,b){var c;return g.B(function(d){if(1==d.j)return a?g.A(d,g.lt(mt,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
hna=function(a,b){var c,d;return g.B(function(e){return 1==e.j?(c=[],g.A(e,g.lt(mt,b),2)):3!=e.j?(d=e.u,g.A(e,g.bt(d,["databases"],{Lc:!0,mode:"readonly"},function(f){c.length=0;return g.ft(f.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})};
ina=function(a){return hna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
jna=function(){var a,b,c,d;return g.B(function(e){switch(e.j){case 1:a=zs();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(fs&&cs()&&!ds()||g.ot)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.ta(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.A(e,gna(d,pt),4);case 4:return g.A(e,nt("yt-idb-test-do-not-use",pt),5);case 5:return e.return(!0);case 2:return g.va(e),e.return(!1)}})};
kna=function(){if(void 0!==qt)return qt;Fs=!0;return qt=jna().then(function(a){Fs=!1;var b;if(null!=(b=ys())&&b.j){var c;b={hasSucceededOnce:(null==(c=zs())?void 0:c.hasSucceededOnce)||a};var d;null==(d=ys())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
rt=function(){return g.Ia("ytglobal.idbToken_")||void 0};
g.tt=function(){var a=rt();return a?Promise.resolve(a):kna().then(function(b){(b=b?pt:void 0)&&g.Ha("ytglobal.idbToken_",b);return b})};
lna=function(a){if(!g.Ks())throw a=new g.Ns("AUTH_INVALID",{dbName:a}),Gs(a),a;var b=g.Js();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
mna=function(a,b,c,d){var e,f,k,l,m,n;return g.B(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.A(p,g.tt(),2);case 2:k=p.u;if(!k)throw l=g.Ss("openDbImpl",a,b),g.Q("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Gs(l),l;Ls(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:lna(a);g.ta(p,3);return g.A(p,gna(m,k),5);case 5:return g.A(p,dna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.va(p),g.ta(p,7),g.A(p,nt(m.actualName,
k),9);case 9:g.ua(p,8);break;case 7:g.va(p);case 8:throw n;}})};
nna=function(a,b,c){c=void 0===c?{}:c;return mna(a,b,!1,c)};
ona=function(a,b,c){c=void 0===c?{}:c;return mna(a,b,!0,c)};
pna=function(a,b){b=void 0===b?{}:b;var c,d;return g.B(function(e){if(1==e.j)return g.A(e,g.tt(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Ls(a);d=lna(a);return g.A(e,jt(d.actualName,b),3)}return g.A(e,nt(d.actualName,c),0)})};
qna=function(a,b,c){a=a.map(function(d){return g.B(function(e){return 1==e.j?g.A(e,jt(d.actualName,b),2):g.A(e,nt(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
rna=function(){var a=void 0===a?{}:a;var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.tt(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Ls("LogsDatabaseV2");return g.A(d,ina(b),3)}c=d.u;return g.A(d,qna(c,a,b),0)})};
sna=function(a,b){b=void 0===b?{}:b;var c;return g.B(function(d){if(1==d.j)return g.A(d,g.tt(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Ls(a);return g.A(d,jt(a,b),3)}return g.A(d,nt(a,c),0)})};
ut=function(a){this.Ve=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Ku=function(){};
this.now=Date.now;this.sx=!1;var b;this.nR=null!=(b=a.nR)?b:100;var c;this.MQ=null!=(c=a.MQ)?c:1;var d;this.FQ=null!=(d=a.FQ)?d:2592E6;var e;this.wQ=null!=(e=a.wQ)?e:12E4;var f;this.LQ=null!=(f=a.LQ)?f:5E3;var k;this.wd=null!=(k=a.wd)?k:void 0;this.XA=!!a.XA;var l;this.MA=null!=(l=a.MA)?l:.1;var m;this.LC=null!=(m=a.LC)?m:10;a.handleError&&(this.handleError=a.handleError);a.Ku&&(this.Ku=a.Ku);a.sx&&(this.sx=a.sx);this.jb=a.jb;this.Lk=a.Lk;this.Sf=a.Sf;this.Mf=a.Mf;this.jo=a.jo;this.jI=a.jI;this.GH=
a.GH;this.wd&&(!this.jb||this.jb("networkless_logging"))&&tna(this)};
tna=function(a){a.wd&&!a.sx&&(a.Ve=!0,a.XA&&Math.random()<=a.MA&&a.Sf.aV(a.wd),una(a),a.Mf.tf()&&a.Jz(),a.Mf.Ma(a.jI,a.Jz.bind(a)),a.Mf.Ma(a.GH,a.xM.bind(a)))};
vt=function(a,b){var c,d;return g.B(function(e){switch(e.j){case 1:if(!a.wd)throw c=g.Ss("immediateSend"),c;if(void 0===b.id){e.Va(2);break}return g.A(e,a.Sf.TW(b.id,a.wd),3);case 3:(d=e.u)?b=d:a.Ku(Error("The request cannot be found in the database."));case 2:if(vna(a,b,a.FQ)){e.Va(4);break}a.Ku(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Va(5);break}return g.A(e,a.Sf.ou(b.id,a.wd),5);case 5:return e.return();case 4:b.skipRetry||(b=wna(a,b));if(!b){e.Va(0);
break}if(!b.skipRetry||void 0===b.id){e.Va(8);break}return g.A(e,a.Sf.ou(b.id,a.wd),8);case 8:a.jo(b.url,b.options,!!b.skipRetry),g.sa(e)}})};
wna=function(a,b){if(!a.wd)throw g.Ss("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:k=xna(f);if(!(a.jb&&a.jb("nwl_consider_error_code")&&k||a.jb&&!a.jb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.LC)){n.Va(2);break}if(!a.Mf.oo){n.Va(3);break}return g.A(n,a.Mf.oo(),3);case 3:if(a.Mf.tf()){n.Va(2);break}c(e,f);if(!a.jb||!a.jb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Va(6);break}return g.A(n,a.Sf.II(b.id,a.wd,!1),6);case 6:return n.return();case 2:if(a.jb&&a.jb("nwl_consider_error_code")&&
!k&&a.potentialEsfErrorCounter>a.LC)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Va(8);break}return b.sendCount<a.MQ?g.A(n,a.Sf.II(b.id,a.wd),12):g.A(n,a.Sf.ou(b.id,a.wd),8);case 12:a.Lk.Sg(function(){a.Mf.tf()&&a.Jz()},a.LQ);
case 8:c(e,f),g.sa(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return void 0===(null==(k=b)?void 0:k.id)?l.Va(2):g.A(l,a.Sf.ou(b.id,a.wd),2);a.Mf.Rn&&a.jb&&a.jb("vss_network_hint")&&a.Mf.Rn(!0);d(e,f);g.sa(l)})};
return b};
vna=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
una=function(a){if(!a.wd)throw g.Ss("retryQueuedRequests");a.Sf.BN("QUEUED",a.wd).then(function(b){b&&!vna(a,b,a.wQ)?a.Lk.Sg(function(){return g.B(function(c){if(1==c.j)return void 0===b.id?c.Va(2):g.A(c,a.Sf.II(b.id,a.wd),2);una(a);g.sa(c)})}):a.Mf.tf()&&a.Jz()})};
wt=function(a,b){a.UR&&!a.Mf.tf()?a.UR(b):a.handleError(b)};
xna=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
xt=function(a,b){this.version=a;this.args=b};
zt=function(a,b){this.topic=a;this.j=b};
Bt=function(a,b){var c=At();c&&c.publish.call(c,a.toString(),a,b)};
zna=function(a,b,c){var d=At();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.Ia("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Ct[e])try{if(k&&a instanceof zt&&a!=f)try{var m=a.j,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.rq){var p=new m;m.rq=p.version}var q=m.rq}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.$b(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,k)}catch(t){g.hr(t)}},yna[a.toString()]?g.Wr()?g.vp.Sg(l):g.Br(l,0):l())});
Ct[e]=!0;Dt[a.toString()]||(Dt[a.toString()]=[]);Dt[a.toString()].push(e);return e};
Ft=function(a,b,c){var d=zna(a,function(e){b.apply(c,arguments);Et(d)},c);
return d};
Et=function(a){var b=At();b&&("number"===typeof a&&(a=[a]),g.lc(a,function(c){b.unsubscribeByKey(c);delete Ct[c]}))};
At=function(){return g.Ia("ytPubsub2Pubsub2Instance")};
Gt=function(a,b){kt.call(this,a,b);this.options=b;Ls(a)};
Ana=function(a,b){var c;return function(){c||(c=new Gt(a,b));return c}};
g.Ht=function(a,b){return Ana(a,b)};
Bna=function(){if(It)return It();var a={};It=g.Ht("LogsDatabaseV2",{Xr:(a.LogsRequestsStore={No:2},a),yz:!1,upgrade:function(b,c,d){c(2)&&g.$s(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.et(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&at(b,"sapisid");c(9)&&at(b,"SWHealthLog")},
version:9});return It()};
Jt=function(a){return g.lt(Bna(),a)};
Kt=function(a,b){var c,d,e,f;return g.B(function(k){if(1==k.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(k,Jt(b),2);if(3!=k.j)return d=k.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(k,Rma(d,e),3);f=k.u;c.A0=(0,g.R)();Cna(c);return k.return(f)})};
Dna=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){if(1==n.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(n,Jt(b),2);if(3!=n.j)return d=n.u,e=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],k=[a,e,(0,g.R)()],l=IDBKeyRange.bound(f,k),m=void 0,g.A(n,g.bt(d,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(p){return g.ht(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"===
a&&(m.status="QUEUED",q.update(m)))})}),3);
c.A0=(0,g.R)();Cna(c);return n.return(m)})};
Ena=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Jt(b),2);c=d.u;return d.return(g.bt(c,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(k){if(k)return k.status="QUEUED",g.ct(f,k).then(function(){return k})})}))})};
Lt=function(a,b,c){c=void 0===c?!0:c;var d;return g.B(function(e){if(1==e.j)return g.A(e,Jt(b),2);d=e.u;return e.return(g.bt(d,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(f){var k=f.objectStore("LogsRequestsStore");return k.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.ct(k,l).then(function(){return l})):g.Us.resolve(void 0)})}))})};
Mt=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Jt(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
Fna=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,Jt(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.bt(b,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(e){return g.ft(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Gna=function(){g.B(function(a){return g.A(a,rna(),0)})};
Cna=function(a){g.Q("nwl_csi_killswitch")||.01>=Math.random()&&Bt("nwl_transaction_latency_payload",a)};
Ina=function(a){return g.lt(Hna(),a)};
Jna=function(a){var b,c;g.B(function(d){if(1==d.j)return g.A(d,Ina(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.bt(b,["SWHealthLog"],{mode:"readwrite",Lc:!0},function(e){return g.ft(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Kna=function(a){var b;return g.B(function(c){if(1==c.j)return g.A(c,Ina(a),2);b=c.u;return g.A(c,b.clear("SWHealthLog"),0)})};
g.Nt=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.$r())a&&(a=g.Og(g.Sg(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.dh(lh(a)).toString(),a=g.Bh(g.Wi(a))),g.ib(a)||(a=bi("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Kh(a).body.appendChild(a)));else if(e)Fr(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Fr(a,b,"GET","",d);else{b:{try{var f=new dea({url:a});if(f.B&&f.u||f.C){var k=jj(g.lj(5,a));var l=!(!k||
!k.endsWith("/aclk")||"1"!==uj(a,"ri"));break b}}catch(m){}l=!1}l?Lna(a)?(b&&b(),c=!0):c=!1:c=!1;c||Mna(a,b)}};
Lna=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Mna=function(a,b){var c=new Image,d=""+Nna++;Ot[d]=c;c.onload=c.onerror=function(){b&&Ot[d]&&b();delete Ot[d]};
c.src=a};
Pt=function(){this.j=new Map;this.u=!1};
Qt=function(){if(!Pt.j){var a=g.Ia("yt.networkRequestMonitor.instance")||new Pt;g.Ha("yt.networkRequestMonitor.instance",a);Pt.j=a}return Pt.j};
St=function(){Rt||(Rt=new xs("yt.offline"));return Rt};
Ona=function(a){if(g.Q("offline_error_handling")){var b=St().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);St().set("errors",b,2592E3,!0)}};
Pna=function(){if(g.Q("offline_error_handling")){var a=St().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.Is(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.hr(c)}St().set("errors",{},2592E3,!0)}}};
Tt=function(){g.ng.call(this);var a=this;this.S=0;this.J=this.C=!1;this.u=this.vG();g.Q("use_shared_nsm")?(this.j=Sha(),g.Q("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.Ma("networkstatus-online",function(){a.u=!0;a.J&&Pna()}),this.j.Ma("networkstatus-offline",function(){a.u=!1}))):(Qna(this),Rna(this))};
Sna=function(){if(!Tt.j){var a=g.Ia("yt.networkStatusManager.instance")||new Tt;g.Ha("yt.networkStatusManager.instance",a);Tt.j=a}return Tt.j};
Rna=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.j)return g.A(b,a.oo(),2);a.J&&Pna();g.sa(b)})})};
Qna=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.oo(),0)})})};
Tna=function(a){a.S=g.Tr(0,function(){return g.B(function(b){if(1==b.j)return a.u?a.vG()||!a.C?b.Va(3):g.A(b,a.oo(),3):g.A(b,a.oo(),3);Tna(a);g.sa(b)})},Una)};
g.Ut=function(a){a=void 0===a?{}:a;g.ng.call(this);var b=this;this.u=this.K=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.Q("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.j=Sna();var c=g.Ia("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.aN);a.JO&&(c=g.Ia("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=g.Ia("yt.networkStatusManager.instance.listen").bind(this.j))a.RC?(this.RC=
a.RC,c(this.D,function(){Vna(b,"publicytnetworkstatus-online")}),c(this.C,function(){Vna(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online")}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Vna=function(a,b){a.RC?a.u?(g.vp.sj(a.K),a.K=g.vp.Sg(function(){a.J!==b&&(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)())},a.RC-((0,g.R)()-a.u))):(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)()):a.dispatchEvent(b)};
Vt=function(){ut.call(this,{Sf:{aV:Fna,ou:Mt,BN:Dna,TW:Ena,II:Lt,set:Kt},Mf:Wna(),handleError:g.hr,Ku:jr,jo:Xna,now:g.R,UR:Ona,Lk:g.Vr(),jI:"publicytnetworkstatus-online",GH:"publicytnetworkstatus-offline",XA:!0,MA:.1,LC:g.dr("potential_esf_error_limit",10),jb:g.Q,sx:!(g.Ks()&&(g.Q("embeds_web_nwl_disable_nocookie")?"www.youtube-nocookie.com"!==g.mj(document.location.toString()):1))});this.u=new g.Rj;g.Q("networkless_immediately_drop_all_requests")&&Gna();sna("LogsDatabaseV2")};
Wt=function(){var a=g.Ia("yt.networklessRequestController.instance");a||(a=new Vt,g.Ha("yt.networklessRequestController.instance",a),g.Q("networkless_logging")&&g.tt().then(function(b){a.wd=b;tna(a);a.u.resolve();a.XA&&Math.random()<=a.MA&&a.wd&&Jna(a.wd);g.Q("networkless_immediately_drop_sw_health_store")&&Yna(a)}));
return a};
Yna=function(a){var b;g.B(function(c){if(!a.wd)throw b=g.Ss("clearSWHealthLogsDb"),b;return c.return(Kna(a.wd).catch(function(d){a.handleError(d)}))})};
Xna=function(a,b,c){g.Q("use_cfr_monitor")&&Zna(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.R)());c&&0===Object.keys(b).length?g.Nt(a):g.Gr(a,b)};
Wna=function(){Xt||(Xt=new g.Ut({JO:!0,aN:!0}));return Xt};
Zna=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Qt().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Qt().requestComplete(a,!0);d(e,f)}};
$na=function(a,b){function c(d){var e=Yt().tf();if(!Zt()||!d||e&&g.Q("vss_networkless_bypass_write"))$t(a,b);else{var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};Kt(f,d).then(function(k){f.id=k;Yt().tf()&&au(f)}).catch(function(k){au(f);
bu(k)})}}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.tt().then(function(d){c(d)}):c(rt())};
cu=function(a,b,c){function d(e){if(Zt()&&e){var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};g.Q("nwl_skip_retry")&&(f.skipRetry=c);if(Yt().tf()||g.Q("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var k=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.B(function(n){if(1==n.j)return g.A(n,Kt(f,e).catch(function(p){bu(p)}),2);
k(l,m);g.sa(n)})}}$t(a,b,f.skipRetry)}else Kt(f,e).catch(function(l){$t(a,b,g.Q("nwl_skip_retry")&&c);
bu(l)})}else $t(a,b,g.Q("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.tt().then(function(e){d(e)}):d(rt())};
du=function(a,b){function c(d){if(Zt()&&d){var e={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0},f=!1,k=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(m,n){g.Q("use_cfr_monitor")&&Qt().requestComplete(e.url,!0);void 0!==e.id?Mt(e.id,d):f=!0;g.Q("vss_network_hint")&&Yt().Rn(!0);k(m,n)};
if(g.Q("use_cfr_monitor")){var l=b.onError?b.onError:function(){};
e.options.onError=function(m,n){Qt().requestComplete(e.url,!1);l(m,n)}}$t(e.url,e.options);
Kt(e,d).then(function(m){e.id=m;f&&Mt(e.id,d)}).catch(function(m){bu(m)})}else $t(a,b)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.tt().then(function(d){c(d)}):c(rt())};
aoa=function(){var a=rt();if(!a)throw g.Ss("throttleSend");eu||(eu=g.vp.Sg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,Dna("NEW",a),2);if(3!=c.j)return b=c.u,b?g.A(c,au(b),3):(g.vp.sj(eu),eu=0,c.return());eu&&(eu=0,aoa());g.sa(c)})},100))};
au=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:b=rt();if(!b)throw c=g.Ss("immediateSend"),c;if(void 0===a.id){e.Va(2);break}return g.A(e,Ena(a.id,b),3);case 3:(d=e.u)?a=d:jr(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.R)()-f)){e.Va(4);break}jr(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Va(5);break}return g.A(e,Mt(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=boa(a));
f=a;var k,l;if(null==f?0:null==(k=f.options)?0:null==(l=k.postParams)?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.R)());a=f;if(!a){e.Va(0);break}if(!a.skipRetry||void 0===a.id){e.Va(8);break}return g.A(e,Mt(a.id,b),8);case 8:$t(a.url,a.options,!!a.skipRetry),g.sa(e)}})};
boa=function(a){var b=rt();if(!b)throw g.Ss("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:g.Q("use_cfr_monitor")&&Qt().requestComplete(a.url,!1);k=xna(f);if(!(g.Q("nwl_consider_error_code")&&k||!g.Q("nwl_consider_error_code")&&coa()<=g.dr("potential_esf_error_limit",10))){n.Va(2);break}if(g.Q("skip_checking_network_on_cfr_failure")&&(!g.Q("skip_checking_network_on_cfr_failure")||Qt().isEndpointCFR(a.url))){n.Va(3);break}return g.A(n,Yt().oo(),3);case 3:if(Yt().tf()){n.Va(2);break}c(e,f);if(!g.Q("nwl_consider_error_code")||
void 0===(null==(l=a)?void 0:l.id)){n.Va(6);break}return g.A(n,Lt(a.id,b,!1),6);case 6:return n.return();case 2:if(g.Q("nwl_consider_error_code")&&!k&&coa()>g.dr("potential_esf_error_limit",10))return n.return();g.Ia("ytNetworklessLoggingInitializationOptions")&&fu.potentialEsfErrorCounter++;gu++;if(void 0===(null==(m=a)?void 0:m.id)){n.Va(8);break}return 1>a.sendCount?g.A(n,Lt(a.id,b),12):g.A(n,Mt(a.id,b),8);case 12:g.vp.Sg(function(){Yt().tf()&&aoa()},5E3);
case 8:c(e,f),g.sa(n)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return g.Q("use_cfr_monitor")&&Qt().requestComplete(a.url,!0),void 0===(null==(k=a)?void 0:k.id)?l.Va(2):g.A(l,Mt(a.id,b),2);g.Q("vss_network_hint")&&Yt().Rn(!0);d(e,f);g.sa(l)})};
return a};
Yt=function(){if(g.Q("use_new_nwl"))return Wna();hu||(hu=new g.Ut({JO:!0,aN:!0}));return hu};
bu=function(a){Yt().tf()?g.hr(a):Ona(a)};
$t=function(a,b,c){c&&0===Object.keys(b).length?g.Nt(a):g.Gr(a,b)};
Zt=function(){return g.Ia("ytNetworklessLoggingInitializationOptions")?fu.isNwlInitialized:!1};
coa=function(){return g.Ia("ytNetworklessLoggingInitializationOptions")?fu.potentialEsfErrorCounter:gu};
g.iu=function(a){this.config_=null;a?this.config_=a:uma()&&(this.config_=g.vs())};
g.ju=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.bP.bypassNetworkless?(f.method="POST",d.bP.writeThenSend?g.Q("use_new_nwl_wts")?Wt().writeThenSend(n,f):$na(n,f):g.Q("use_new_nwl_saw")?Wt().sendAndWrite(n,f):du(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Gr(n,f))}catch(q){if("InvalidAccessError"==q.name)jr(Error("An extension is blocking network request."));else throw q;}}
!g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&jr(new g.Is("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Is("innertube xhrclient not ready",b,c,d),g.hr(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var k=a.config_.fO;k&&(c=k);k=Dma(a.config_.gO||!1,c,d);Object.assign(f.headers,k);(k=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.VG&&k;m=m&&k.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=pr(""+c+b,l);g.Q("use_new_nwl")&&Wt().Ve||!g.Q("use_new_nwl")&&
Zt()?kna().then(function(p){e(p)}):e(!1)};
doa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=ku+"VisibilityState";if(b in a)return a[b]};
lu=function(a,b){var c;Zm(a,function(d){c=b[d];return!!c});
return c};
mu=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 eoa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.u=a.pageY}}catch(e){}};
foa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
goa=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 Nf(nu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Ma(e[4])&&g.Ma(d)&&g.Tf(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.ou=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=goa(a,b,c,d);if(e)return e;e=++hoa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new mu(l);if(!mi(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new mu(l);
l.currentTarget=a;return c.call(a,l)};
k=ir(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),ioa()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);nu[e]=[a,b,c,k,d];return e};
joa=function(a,b){var c=document.body||document;return g.ou(c,"click",function(d){var e=mi(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.pu=function(a){a&&("string"==typeof a&&(a=[a]),g.lc(a,function(b){if(b in nu){var c=nu[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?ioa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete nu[b]}}))};
g.qu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
ru=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.qu(a)};
tu=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};
uu=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.wh(b,c)};
g.vu=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.wu=function(a){a=a||window.event;return!1===a.returnValue||a.lO&&a.lO()};
g.xu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
koa=function(a){return joa(a,function(b){return g.Fp(b,"ytp-ad-has-logging-urls")})};
g.loa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.ou(a,b,function(){g.pu(e);c.apply(a,arguments)},d)};
yu=function(a){for(var b in nu)nu[b][0]==a&&g.pu(b)};
zu=function(a){this.K=a;this.j=null;this.C=0;this.J=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.ma=g.ou(window,"mousemove",(0,g.Qa)(this.Y,this));this.S=g.Cr((0,g.Qa)(this.Z,this),25)};
moa=function(){var a={},b=void 0===a.y_?!1:a.y_;a=void 0===a.vV?!0:a.vV;if(null==g.Ia("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ha("_lact",c,window);g.Ha("_fact",c,window);-1==c&&Au();g.ou(document,"keydown",Au);g.ou(document,"keyup",Au);g.ou(document,"mousedown",Au);g.ou(document,"mouseup",Au);b?g.ou(window,"touchmove",function(){Bu("touchmove",200)},{passive:!0}):(g.ou(window,"resize",function(){Bu("resize",200)}),a&&g.ou(window,"scroll",function(){Bu("scroll",
200)}));
new zu(function(){Bu("mouse",100)});
g.ou(document,"touchstart",Au,{passive:!0});g.ou(document,"touchend",Au,{passive:!0})}};
Bu=function(a,b){Cu[a]||(Cu[a]=!0,g.vp.Sg(function(){Au();Cu[a]=!1},b))};
Au=function(){null==g.Ia("_lact",window)&&(moa(),g.Ia("_lact",window));var a=Date.now();g.Ha("_lact",a,window);-1==g.Ia("_fact",window)&&g.Ha("_fact",a,window);(a=g.Ia("ytglobal.ytUtilActivityCallback_"))&&a()};
Du=function(){var a=g.Ia("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
g.Iu=function(a,b,c){var d=g.Eu();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var k=function(){Fu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Gu[a]?k():g.Br(k,0)}catch(l){g.hr(l)}},c);
Fu[e]=!0;Hu[a]||(Hu[a]=[]);Hu[a].push(e);return e}return 0};
g.Ju=function(a){var b=g.Eu();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.lc(a,function(c){b.unsubscribeByKey(c);delete Fu[c]}))};
g.Ku=function(a,b){var c=g.Eu();return c?c.publish.apply(c,arguments):!1};
ooa=function(a){var b=g.Eu();if(b)if(b.clear(a),a)noa(a);else for(var c in Hu)noa(c)};
g.Eu=function(){return g.C.ytPubsubPubsubInstance};
noa=function(a){Hu[a]&&(a=Hu[a],g.lc(a,function(b){Fu[b]&&delete Fu[b]}),a.length=0)};
poa=function(){this.B=this.j=this.u=0};
roa=function(a,b){if("log_event"===a.endpoint){var c=Lu(a),d=Mu.get(c)||[];Mu.set(c,d);d.push(a.payload);qoa(b,d,c)}};
soa=function(a,b){if("log_event"===a.endpoint){var c=Lu(a,!0),d=Nu.get(c)||[];Nu.set(c,d);a=a.payload.toJSON();d.push(a);qoa(b,d,c,!0)}};
qoa=function(a,b,c,d){d=void 0===d?!1:d;a&&(Ou=new a);a=g.dr("tvhtml5_logging_max_batch")||g.dr("web_logging_max_batch")||100;var e=(0,g.R)(),f=d?Pu.B:Qu.B;b.length>=a?Ru({writeThenSend:!0},g.Q("flush_only_full_queue")?c:void 0,d):10<=e-f&&(toa(d),d?Pu.B=e:Qu.B=e)};
uoa=function(a,b){if("log_event"===a.endpoint){var c=Lu(a),d=new Map;d.set(c,[a.payload]);b&&(Ou=new b);return new g.xi(function(e){Ou&&Ou.isReady()?Su(d,e,{bypassNetworkless:!0},!0):e()})}};
voa=function(a,b){if("log_event"===a.endpoint){var c=Lu(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(Ou=new b);return new g.xi(function(e){Ou&&Ou.isReady()?Tu(d,e,{bypassNetworkless:!0},!0):e()})}};
Lu=function(a,b){var c="";if(a.ox)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Uq;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.me(d,2,Uu,c.playlistId);Vu[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Wu[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Ru=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.xi(function(d){c?(g.Dr(Pu.u),g.Dr(Pu.j),Pu.j=0):(g.Dr(Qu.u),g.Dr(Qu.j),Qu.j=0);if(Ou&&Ou.isReady())if(void 0!==b)if(c){var e=new Map,f=Nu.get(b)||[];e.set(b,f);Tu(e,d,a);Nu.delete(b)}else e=new Map,f=Mu.get(b)||[],e.set(b,f),Su(e,d,a),Mu.delete(b);else c?(Tu(Nu,d,a),Nu.clear()):(Su(Mu,d,a),Mu.clear());else toa(c),d()})};
toa=function(a){a=void 0===a?!1:a;if(g.Q("web_gel_timeout_cap")&&(!a&&!Qu.j||a&&!Pu.j)){var b=g.Br(function(){Ru({writeThenSend:!0},void 0,a)},6E4);
a?Pu.j=b:Qu.j=b}g.Dr(a?Pu.u:Qu.u);b=g.P("LOGGING_BATCH_TIMEOUT",g.dr("web_gel_debounce_ms",1E4));g.Q("shorten_initial_gel_batch_timeout")&&Xu&&(b=woa);b=g.Br(function(){Ru({writeThenSend:!0},void 0,a)},b);
a?Pu.u=b:Qu.u=b};
Su=function(a,b,c,d){var e=Ou;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.Vf({context:g.ws(e.config_||g.vs())});m.events=n;(n=Wu[l])&&xoa(m,l,n);delete Wu[l];l="visitorOnlyApprovedKey"===l;yoa(m,f,l);zoa(c);g.ju(e,"log_event",m,Aoa(c,l,function(){k--;k||b()},function(){k--;
k||b()},d));
Xu=!1}};
Tu=function(a,b,c,d){var e=Ou;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=new Vq;var p=zma(e.config_||g.vs());re(m,1,p);n=Boa(n);for(p=0;p<n.length;p++)ue(m,3,Tq,n[p]);(n=Vu[l])&&Coa(m,l,n);delete Vu[l];l="visitorOnlyApprovedKey"===l;Doa(m,f,l);zoa(c);m=ze(m);l=Aoa(c,l,function(){k--;k||b()},function(){k--;
k||b()},d);
l.headers={"Content-Type":"application/json+protobuf"};l.postBodyFormat="JSPB";l.postBody=m;g.ju(e,"log_event","",l);Xu=!1}};
zoa=function(a){g.Q("always_send_and_write")&&(a.writeThenSend=!1)};
Aoa=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,bP:a,ox:b,gia:!!e,headers:{},postBodyFormat:"",postBody:""}};
yoa=function(a,b,c){a.requestTimeMs=String(b);g.Q("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID"))&&(c=Eoa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Doa=function(a,b,c){g.D(a,2,b);if(!c&&(b=g.P("EVENT_ID"))){c=Eoa();var d=new gja;g.D(d,1,b);g.D(d,2,c);re(a,5,d)}};
Eoa=function(){var a=g.P("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Foa/2));a++;a>Foa&&(a=1);ar("BATCH_CLIENT_COUNTER",a);return a};
xoa=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}]};
Coa=function(a,b,c){if(c.wh())var d=1;else if(c.getPlaylistId())d=2;else return;re(a,4,c);a=a.getContext()||new Bq;c=oe(a,Aq,3)||new Aq;var e=new zq;e.setToken(b);g.D(e,1,d);ue(c,12,zq,e);re(a,3,c)};
Boa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new Tq(a[c]))}catch(d){g.hr(new g.Is("Transport failed to deserialize "+String(a[c])))}return b};
Zu=function(a,b,c,d){d=void 0===d?{}:d;if(g.Q("lr_drop_other_and_business_payloads")){if(Goa[a]||Hoa[a])return}else if(g.Q("lr_drop_other_payloads")&&Goa[a])return;var e={},f=Math.round(d.timestamp||(0,g.R)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=Du();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Q("log_sequence_info_on_gel_web")&&d.Qj&&(a=e.context,b=d.Qj,b={index:Ioa(b),groupKey:b},a.sequence=b,d.cN&&delete Yu[d.Qj]);(d.TI?uoa:roa)({endpoint:"log_event",payload:e,
cttAuthInfo:d.cttAuthInfo,ox:d.ox},c)};
$u=function(){Ru(void 0,void 0,!1)};
Ioa=function(a){Yu[a]=a in Yu?Yu[a]+1:0;return Yu[a]};
g.Ds=function(a,b,c){c=void 0===c?{}:c;var d=g.iu;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.iu==g.iu&&(d=null);Zu(a,b,d,c)};
Koa=function(){var a=void 0===a?window.location.href:a;if(g.Q("kevlar_disable_theme_param"))return null;jj(g.lj(5,a));try{var b=g.or(a).theme;return Joa.get(b)||null}catch(c){}return null};
Moa=function(a,b,c){a&&(a.dataset?a.dataset[Loa(b)]=String(c):a.setAttribute("data-"+b,c))};
Noa=function(a){return a?a.dataset?a.dataset[Loa("loaded")]:a.getAttribute("data-loaded"):null};
Loa=function(a){return Ooa[a]||(Ooa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
av=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()};
dv=function(a){var b;g.bv()?cv()==a&&(b=document):b=a;return b&&(a=lu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
ev=function(a){return g.Pb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Poa=function(){var a=document;return g.Pb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.bv=function(){return!!lu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
cv=function(a){a=void 0===a?!1:a;var b=lu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
fv=function(a){g.G.call(this);this.J=[];this.Xa=a||this};
gv=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.hv=function(a,b){for(;a.J.length;){var c=a.J.pop(),d=void 0;b&&Qoa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.iv=function(a){a=void 0===a?!1:a;g.G.call(this);this.Ne=new g.$p(a);g.H(this,this.Ne)};
g.jv=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
kv=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.mv=function(a,b,c,d){g.iv.call(this);this.j=!!b;this.J=a;this.Y=c||a;this.S=!!d;this.C=new fv(this);g.H(this,this.C);this.D=this.K=null;this.B=this.u=!1;b&&(g.uf&&a.setAttribute("draggable","true"),a.style.touchAction="none");lv(this)};
nv=function(a,b,c){a.C.T(a.Y,b,c,void 0,!a.j)};
ov=function(a){g.hv(a.C,!a.j)};
lv=function(a){a.D=null;a.K=null;nv(a,pv("over"),a.ZO);nv(a,"touchstart",a.DJ);a.j&&nv(a,pv("down"),a.hX)};
Roa=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};
pv=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
yv=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Uf(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Uf(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||{}};
Soa=function(a){a instanceof yv||(a=new yv(a));return a};
Toa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Uoa=function(){this.Ro=[];this.Qn=[]};
Av=function(){if(!zv){var a=zv=new Uoa;a.Qn.length=0;a.Ro.length=0;Voa(a,Woa)}return zv};
Voa=function(a,b){b.Qn&&a.Qn.push.apply(a.Qn,b.Qn);b.Ro&&a.Ro.push.apply(a.Ro,b.Ro)};
Xoa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Bv(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Bv(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Bv(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)};
Bv=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};
Yoa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Cv(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var k=b;var l=c;k="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Xoa(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Cv(e+".ve",f,k,l):0;d+=k;d+=Cv(e,a[e],b,c);if(500<d)break}}else c[b]=Dv(a),d+=c[b].length;else c[b]=Dv(a),d+=c[b].length;return d};
Cv=function(a,b,c,d){c+="."+a;a=Dv(b);d[c]=a;return c.length+a.length};
Dv=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
Ev=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.R)());g.D(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=Du();d=new Sq;g.D(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.Q("log_sequence_info_on_gel_web")&&c.Qj){e=c.Qj;var f=Ioa(e),k=new fja;g.D(k,2,f);g.D(k,1,e);re(d,3,k);c.cN&&delete Zoa[c.Qj]}re(a,33,d);(c.TI?voa:soa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,ox:c.ox},b)};
Fv=function(a,b){b=void 0===b?{}:b;var c=!1;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.iu===g.iu&&(c=!0);Ev(a,c?null:g.iu,b)};
Hv=function(a,b){var c=new Tq;se(c,72,Gv,a);Fv(c,b)};
$oa=function(a,b,c){var d=new Tq;se(d,73,Gv,a);c?Ev(d,c,b):Fv(d,b)};
apa=function(a,b,c){var d=new Tq;se(d,78,Gv,a);c?Ev(d,c,b):Fv(d,b)};
bpa=function(a,b,c){var d=new Tq;se(d,208,Gv,a);c?Ev(d,c,b):Fv(d,b)};
cpa=function(a,b,c){var d=new Tq;se(d,156,Gv,a);c?Ev(d,c,b):Fv(d,b)};
dpa=function(a,b,c){var d=new Tq;se(d,215,Gv,a);c?Ev(d,c,b):Fv(d,b)};
epa=function(a,b,c){var d=new Tq;se(d,111,Gv,a);c?Ev(d,c,b):Fv(d,b)};
Cs=function(a){g.Iv(a)};
g.Jv=function(a){g.Iv(a,"WARNING")};
g.Iv=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");var d=c||{},e=void 0===b?"ERROR":b;e=void 0===e?"ERROR":e;if(a){a.hasOwnProperty("level")&&a.level&&(e=a.level);if(g.Q("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));f.push("File name: "+
a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=fpa)){var k=gpa,l=Vaa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.u||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var t=l.lineNumber||"Not available",v=l.fileName||"Not available",x=p,y=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var z=0;z<a.args.length&&!(y=Yoa(a.args[z],"params."+z,d,y),500<=y);z++);else if(a.hasOwnProperty("params")&&
a.params){var E=a.params;if("object"===typeof a.params)for(var J in E){if(E[J]){var I="params."+J,N=Dv(E[J]);d[I]=N;y+=I.length+N.length;if(500<y)break}}else d.params=Dv(E)}if(k.length)for(var Z=0;Z<k.length&&!(y=Yoa(k[Z],"params.context."+Z,d,y),500<=y);Z++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var K={message:m,name:n,lineNumber:t,fileName:v,stack:x,params:d,sampleWeight:1},ra=Number(a.columnNumber);isNaN(ra)||(K.lineNumber=K.lineNumber+":"+ra);if("IGNORED"===
a.level)var za=0;else a:{for(var Pa=Av(),Sa=g.r(Pa.Qn),ac=Sa.next();!ac.done;ac=Sa.next()){var zb=ac.value;if(K.message&&K.message.match(zb.Cy)){za=zb.weight;break a}}for(var yc=g.r(Pa.Ro),Rc=yc.next();!Rc.done;Rc=yc.next()){var hd=Rc.value;if(hd.callback(K)){za=hd.weight;break a}}za=1}K.sampleWeight=za;for(var he=g.r(hpa),Lf=he.next();!Lf.done;Lf=he.next()){var Ab=Lf.value;if(Ab.FC[K.name])for(var Mf=g.r(Ab.FC[K.name]),pg=Mf.next();!pg.done;pg=Mf.next()){var Zi=pg.value,ie=K.message.match(Zi.Ch);
if(ie){K.params["params.error.original"]=ie[0];for(var zc=Zi.groups,wk={},Ie=0;Ie<zc.length;Ie++)wk[zc[Ie]]=ie[Ie+1],K.params["params.error."+zc[Ie]]=ie[Ie+1];K.message=Ab.xH(wk);break}}}K.params||(K.params={});var $i=Av();K.params["params.errorServiceSignature"]="msg="+$i.Qn.length+"&cb="+$i.Ro.length;K.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(K.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Fg("sample").constructor!==
Dg&&(K.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(K);if(0!==K.sampleWeight&&!ipa.has(K.message)){if("ERROR"===e){Kv.ea("handleError",K);if(g.Q("record_app_crashed_web")&&0===jpa&&1===K.sampleWeight)if(jpa++,g.Q("errors_via_jspb")){var Rh=new Sia;g.D(Rh,1,1);if(!g.Q("report_client_error_with_app_crash_ks")){var xk=new Eq;g.D(xk,1,K.message);var je=new Fq;re(je,3,xk);var yk=new Pia;re(yk,5,je);var Dn=new Ria;re(Dn,9,yk);re(Rh,4,Dn)}var En=new Tq;se(En,
20,Gv,Rh);Fv(En)}else{var Fn={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.Q("report_client_error_with_app_crash_ks")||(Fn.systemHealth={crashData:{clientError:{logMessage:{message:K.message}}}});g.Ds("appCrashed",Fn)}kpa++}else"WARNING"===e&&Kv.ea("handleWarning",K);if(g.Q("kevlar_gel_error_routing"))a:{var qg=e;if(g.Q("errors_via_jspb")){if(lpa())var Gn=void 0;else{var Sh=new Nia;g.D(Sh,1,K.stack);K.fileName&&g.D(Sh,4,K.fileName);var qd=K.lineNumber&&K.lineNumber.split?K.lineNumber.split(":"):[];0!==
qd.length&&(1!==qd.length||isNaN(Number(qd[0]))?2!==qd.length||isNaN(Number(qd[0]))||isNaN(Number(qd[1]))||(g.D(Sh,2,Number(qd[0])),g.D(Sh,3,Number(qd[1]))):g.D(Sh,2,Number(qd[0])));var eh=new Eq;g.D(eh,1,K.message);g.D(eh,3,K.name);g.D(eh,6,K.sampleWeight);"ERROR"===qg?g.D(eh,2,2):"WARNING"===qg?g.D(eh,2,1):g.D(eh,2,0);var zk=new Oia;g.D(zk,1,!0);se(zk,3,mpa,Sh);var fh=new Mia;g.D(fh,3,window.location.href);for(var Dq=g.P("FEXP_EXPERIMENTS",[]),gh=0;gh<Dq.length;gh++)g.ge(fh,5,Dq[gh]);var Ak=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!cr("web_disable_gel_stp_ecatcher_killswitch")&&Ak)for(var Ml=g.r(Object.keys(Ak)),hh=Ml.next();!hh.done;hh=Ml.next()){var Bk=hh.value,aj=new Cq;g.D(aj,1,Bk);aj.setValue(String(Ak[Bk]));ue(fh,4,Cq,aj)}var bj=K.params;if(bj){var Wb=g.r(Object.keys(bj));for(hh=Wb.next();!hh.done;hh=Wb.next()){var Je=hh.value,Ck=new Cq;g.D(Ck,1,"client."+Je);Ck.setValue(String(bj[Je]));ue(fh,4,Cq,Ck)}}var Hn=g.P("SERVER_NAME"),In=g.P("SERVER_VERSION");if(Hn&&In){var Ac=new Cq;g.D(Ac,1,"server.name");Ac.setValue(Hn);
ue(fh,4,Cq,Ac);var Dk=new Cq;g.D(Dk,1,"server.version");Dk.setValue(In);ue(fh,4,Cq,Dk)}var cj=new Fq;re(cj,1,fh);re(cj,2,zk);re(cj,3,eh);Gn=cj}var dj=Gn;if(!dj)break a;var Jn=new Tq;se(Jn,163,Gv,dj);Fv(Jn)}else{if(lpa())var Kn=void 0;else{var ej={stackTrace:K.stack};K.fileName&&(ej.filename=K.fileName);var lf=K.lineNumber&&K.lineNumber.split?K.lineNumber.split(":"):[];0!==lf.length&&(1!==lf.length||isNaN(Number(lf[0]))?2!==lf.length||isNaN(Number(lf[0]))||isNaN(Number(lf[1]))||(ej.lineNumber=Number(lf[0]),
ej.columnNumber=Number(lf[1])):ej.lineNumber=Number(lf[0]));var Ek={level:"ERROR_LEVEL_UNKNOWN",message:K.message,errorClassName:K.name,sampleWeight:K.sampleWeight};"ERROR"===qg?Ek.level="ERROR_LEVEL_ERROR":"WARNING"===qg&&(Ek.level="ERROR_LEVEL_WARNNING");var fj={isObfuscated:!0,browserStackInfo:ej},ih={pageUrl:window.location.href,kvPairs:[]};g.P("FEXP_EXPERIMENTS")&&(ih.experimentIds=g.P("FEXP_EXPERIMENTS"));var Nl=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!cr("web_disable_gel_stp_ecatcher_killswitch")&&
Nl)for(var Ln=g.r(Object.keys(Nl)),jh=Ln.next();!jh.done;jh=Ln.next()){var Mn=jh.value;ih.kvPairs.push({key:Mn,value:String(Nl[Mn])})}var ke=K.params;if(ke){var Nn=g.r(Object.keys(ke));for(jh=Nn.next();!jh.done;jh=Nn.next()){var On=jh.value;ih.kvPairs.push({key:"client."+On,value:String(ke[On])})}}var id=g.P("SERVER_NAME"),Pn=g.P("SERVER_VERSION");id&&Pn&&(ih.kvPairs.push({key:"server.name",value:id}),ih.kvPairs.push({key:"server.version",value:Pn}));Kn={errorMetadata:ih,stackTrace:fj,logMessage:Ek}}var Qn=
Kn;if(!Qn)break a;g.Ds("clientError",Qn)}("ERROR"===qg||g.Q("errors_flush_gel_always_killswitch"))&&$u()}if(!g.Q("suppress_error_204_logging")){var gj=K.params||{},rg={urlParams:{a:"logerror",t:"jserror",type:K.name,msg:K.message.substr(0,250),line:K.lineNumber,level:e,"client.name":gj.name},postParams:{url:g.P("PAGE_NAME",window.location.href),file:K.fileName},method:"POST"};gj.version&&(rg["client.version"]=gj.version);if(rg.postParams){K.stack&&(rg.postParams.stack=K.stack);for(var Od=g.r(Object.keys(gj)),
Ol=Od.next();!Ol.done;Ol=Od.next()){var Pl=Ol.value;rg.postParams["client."+Pl]=gj[Pl]}var Fk=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(Fk)for(var Gk=g.r(Object.keys(Fk)),Ql=Gk.next();!Ql.done;Ql=Gk.next()){var Rn=Ql.value;rg.postParams[Rn]=Fk[Rn]}var Sn=g.P("SERVER_NAME"),Tn=g.P("SERVER_VERSION");Sn&&Tn&&(rg.postParams["server.name"]=Sn,rg.postParams["server.version"]=Tn)}g.Gr(g.P("ECATCHER_REPORT_HOST","")+"/error_204",rg)}try{ipa.add(K.message)}catch(hj){}fpa++}}}};
lpa=function(){for(var a=g.r(npa),b=a.next();!b.done;b=a.next())if(Yr(b.value.toLowerCase()))return!0;return!1};
opa=function(a){var b=g.Ba.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.u(b))};
Lv=function(a){this.j=a};
g.Mv=function(a){return new Lv({trackingParams:a})};
qpa=function(a){var b=ppa++;return new Lv({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
Ov=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(Nv)for(c=1,d=0;d<Nv.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^Nv.charCodeAt(d),c++;return b};
g.Pv=function(a){a=Ov(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.rpa=function(){return g.Wl(Ov(16),function(a){return(a&15).toString(16)}).join("")};
Qv=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
Rv=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
spa=function(a){return g.P(Rv(void 0===a?0:a))};
g.Sv=function(a){return(a=spa(void 0===a?0:a))?new Lv({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
tpa=function(){var a=g.P("csn-to-ctt-auth-info");a||(a={},ar("csn-to-ctt-auth-info",a));return a};
g.Tv=function(a){a=g.P(Qv(void 0===a?0:a));if(!a&&!g.P("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
upa=function(a,b,c){var d=tpa();(c=g.Tv(c))&&delete d[c];b&&(d[a]=b)};
Uv=function(a){return tpa()[a]};
wpa=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.P(Qv(c))||b!==g.P(Rv(c)))upa(a,d,c),ar(Qv(c),a),ar(Rv(c),b),b=function(){setTimeout(function(){if(a)if(g.Q("web_time_via_jspb")){var e=new Tia;g.D(e,1,vpa);g.D(e,2,a);g.Q("use_default_heartbeat_client")?epa(e):epa(e,void 0,g.iu)}else e={clientDocumentNonce:vpa,clientScreenNonce:a},g.Q("use_default_heartbeat_client")?g.Ds("foregroundHeartbeatScreenAssociated",e):Zu("foregroundHeartbeatScreenAssociated",e,g.iu)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):
b()};
Vv=function(a){xt.call(this,1,arguments);this.csn=a};
Apa=function(a,b,c,d,e,f,k){function l(){g.Jv(new g.Is("newScreen() parent element does not have a VE - rootVe",b))}
var m=xpa();f=new Lv({veType:b,youtubeData:f,jspbYoutubeData:void 0});e={cttAuthInfo:e,Qj:m};if(g.Q("il_via_jspb")){var n=new Iq;n.Ci(m);Via(n,f.getAsJspb());c&&c.visualElement?(f=new Wia,c.clientScreenNonce&&g.D(f,2,c.clientScreenNonce),Xia(f,c.visualElement.getAsJspb()),k&&g.D(f,4,ypa[k]),re(n,5,f)):c&&l();d&&g.D(n,3,d);cpa(n,e,a)}else f={csn:m,pageVe:f.getAsJson()},c&&c.visualElement?(f.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},k&&(f.implicitGesture.gestureType=
k)):c&&l(),d&&(f.cloneCsn=d),a?Zu("screenCreated",f,a,e):g.Ds("screenCreated",f,e);Bt(zpa,new Vv(m));return m};
g.Xv=function(a,b,c,d){var e=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}),f={cttAuthInfo:Uv(b),
Qj:b};d=g.r(d);for(var k=d.next();!k.done;k=d.next())k=k.value.getAsJson(),(g.Pf(k)||!k.trackingParams&&!k.veType)&&g.Jv(Error("Child VE logged with no data"));if(g.Q("il_via_jspb")){var l=new Jq;l.Ci(b);Zia(l,c.getAsJspb());g.Wl(e,function(m){m=m.getAsJspb();ue(l,3,Gq,m)});
"UNDEFINED_CSN"==b?Wv("visualElementAttached",l,f):dpa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Wl(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"==b?Wv("visualElementAttached",c,f):a?Zu("visualElementAttached",c,a,f):g.Ds("visualElementAttached",c,f)};
g.Yv=function(a,b,c){var d={cttAuthInfo:Uv(a),Qj:a};if(g.Q("il_via_jspb")){var e=new Lq;e.Ci(a);b=b.getAsJspb();re(e,2,b);g.D(e,4,1);c&&re(e,3);"UNDEFINED_CSN"==a?Wv("visualElementShown",e,d):Hv(e,d)}else e={csn:a,ve:b.getAsJson(),eventType:1},c&&(e.clientData=c),"UNDEFINED_CSN"==a?Wv("visualElementShown",e,d):g.Ds("visualElementShown",e,d)};
Bpa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:Uv(b),Qj:b,cN:d};g.Q("il_via_jspb")?(e=new Lq,e.Ci(b),c=c.getAsJspb(),re(e,2,c),g.D(e,4,d?16:8),"UNDEFINED_CSN"==b?Wv("visualElementHidden",e,f):$oa(e,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"==b?Wv("visualElementHidden",d,f):a?Zu("visualElementHidden",d,a,f):g.Ds("visualElementHidden",d,f))};
Cpa=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f={cttAuthInfo:Uv(b),Qj:b};if(g.Q("il_via_jspb")){var k=new Kq;k.Ci(b);c=c.getAsJspb();re(k,2,c);g.D(k,4,ypa[e]);d&&re(k,3);"UNDEFINED_CSN"==b?Wv("visualElementGestured",k,f):apa(k,f,a)}else e={csn:b,ve:c.getAsJson(),gestureType:e},d&&(e.clientData=d),"UNDEFINED_CSN"==b?Wv("visualElementGestured",e,f):a?Zu("visualElementGestured",e,a,f):g.Ds("visualElementGestured",e,f)};
Dpa=function(){return g.xc(Math.random()+"")};
Wv=function(a,b,c){Zv.push({payloadName:a,payload:b,options:c});$v||($v=Ft(zpa,Epa))};
Epa=function(a){if(Zv){for(var b=g.r(Zv),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(g.Q("il_via_jspb"))switch(c.payload.Ci(a.csn),c.payloadName){case "screenCreated":cpa(c.payload,c.options);break;case "visualElementAttached":dpa(c.payload,c.options);break;case "visualElementShown":Hv(c.payload,c.options);break;case "visualElementHidden":$oa(c.payload,c.options);break;case "visualElementGestured":apa(c.payload,c.options);break;case "visualElementStateChanged":bpa(c.payload,c.options);
break;default:g.Jv(new g.Is("flushQueue unable to map payloadName to JSPB setter"))}else c.payload.csn=a.csn,Zu(c.payloadName,c.payload,null,c.options);Zv.length=0}$v=0};
g.aw=function(a,b){g.lc(b,function(c){var d={cttAuthInfo:Uv(a),Qj:a};if(g.Q("il_via_jspb")){var e=new Lq;e.Ci(a);c=c.getAsJspb();re(e,2,c);g.D(e,4,4);"UNDEFINED_CSN"==a?Wv("visualElementShown",e,d):Hv(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"==a?Wv("visualElementShown",e,d):g.Ds("visualElementShown",e,d)})};
g.bw=function(a,b){g.lc(b,function(c){Bpa(void 0,a,c)})};
g.cw=function(a,b,c){Cpa(void 0,a,b,c)};
dw=function(){this.u=new Set;this.j=new Set;this.B=new Map};
g.gw=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.ew)():fw())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.hw=function(a){var b=fw(),c=(0,g.ew)();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};
Fpa=function(){var a=(0,g.ew)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.iw=function(a){try{var b=fw(),c=(0,g.ew)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.jw=function(){return g.hw("yt-remote-session-screen-id")};
g.kw=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(Gpa,""),c=c.replace(Hpa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Ipa(a,b,c)};
Ipa=function(a,b,c){c=void 0===c?null:c;var d=Jpa(a),e=document.getElementById(d),f=e&&Noa(e),k=e&&!f;f?b&&b():(b&&(f=g.Iu(d,b),b=""+g.Oa(b),Kpa[b]=f),k||(e=Lpa(a,d,function(){Noa(e)||(Moa(e,"loaded","true"),g.Ku(d),g.Br(g.Ra(ooa,d),0))},c)))};
Lpa=function(a,b,c,d){d=void 0===d?null:d;var e=g.ci("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.Vj(e,g.Lg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Jpa=function(a){var b=document.createElement("a");g.ph(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Fh(a)};
nw=function(a){var b=g.Ba.apply(1,arguments);if(!lw(a)||b.some(function(d){return!lw(d)}))throw Error("Only objects may be merged.");
b=g.r(b);for(var c=b.next();!c.done;c=b.next())mw(a,c.value);return a};
mw=function(a,b){for(var c in b)if(lw(b[c])){if(c in a&&!lw(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});mw(a[c],b[c])}else if(ow(b[c])){if(c in a&&!ow(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Mpa(a[c],b[c])}else a[c]=b[c];return a};
Mpa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,lw(c)?a.push(mw({},c)):ow(c)?a.push(Mpa([],c)):a.push(c);return a};
lw=function(a){return"object"===typeof a&&!Array.isArray(a)};
ow=function(a){return"object"===typeof a&&Array.isArray(a)};
pw=function(a,b,c,d,e,f){g.G.call(this);this.Sb=a;this.Db=b;this.Dd=c;this.Qa=d;this.u=e;this.j=f};
Ppa=function(a,b,c){c.Ov?(qw(a.Sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Npa(a.u,b)):Opa(a.j,c.Zm,b.slotId)};
Rpa=function(a,b,c,d){var e=rw(a.Qa.get(),1);qw(a.Sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Qpa(a.Dd.get(),c,d,e.clientPlaybackNonce,e.KM,e.daiEnabled,e)},b)};
uw=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!tw(a.Da,c.value))return!1;return!0};
vw=function(a,b){this.qq=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
Tpa=function(a){Spa=void 0===a?!1:a};
S=function(a,b,c,d,e){d=void 0===d?{}:d;Spa&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Is(a);if(a.args)for(var f=g.r(a.args),k=f.next();!k.done;k=f.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Jv(a)}};
ww=function(a,b,c,d,e,f,k){g.G.call(this);this.Sb=a;this.Dd=b;this.WE=c;this.Na=d;this.j=e;this.Qa=f;this.Fa=k};
xw=function(){this.u=new Map;this.j=new Map;this.B=new Map};
yw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.Pv(16)};
zw=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.Pv(16)};
Aw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.Pv(16)};
Bw=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
Upa=function(a,b,c,d){this.B=a;this.Rd=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
Cw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Jv(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Dw=function(a,b){return b&&b.test(a)?!0:!1};
Ew=function(a){var b=Vpa&&Vpa.exec(a);return b?b[0]:g.Q("allow_music_base_url")&&(a=Wpa&&Wpa.exec(a))?a[0]:""};
Fw=function(a){var b=void 0===b?!1:b;return Cw(Dw(a,Xpa),a,b,"Trusted Stream URL")};
g.Gw=function(a){var b=void 0===b?!1:b;return Cw(Dw(a,Ypa),a,b,"Trusted Image URL")};
$pa=function(a){var b=void 0===b?!1:b;return Cw(Dw(a,Zpa),a,b,"Trusted Promoted Video Domain URL")};
bqa=function(a){var b=void 0===b?!1:b;return Cw(Dw(a,aqa),a,b,"Drm Licensor URL")};
dqa=function(a,b){b=void 0===b?!1:b;return Cw(Dw(a,cqa),a,b,"Captions URL")};
eqa=function(a){a=new g.uk(a);g.vk(a,document.location.protocol);g.Hk(a,document.location.hostname);document.location.port&&g.Ik(a,document.location.port);return a.toString()};
Hw=function(a){a=new g.uk(a);g.vk(a,document.location.protocol);return a.toString()};
g.Jw=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=fqa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||Iw.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.Xl(d.thumbnails,function(e){return g.Gw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
gqa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
hqa=function(a,b){switch(a.style){case Iw.CHAPTER_MARKER:return b?8:5;case Iw.AD_MARKER:return 6;case Iw.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Kw=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.Lw=function(a){return"crn_"+a};
g.Mw=function(a){return"crx_"+a};
Nw=function(a,b,c,d,e){g.Jw.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
Ow=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
iqa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
jqa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Xp(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Xp(Math.max(0,b.B-b.j),0x7ffffffffffff):new Xp(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new Xp(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Rd;a=1E3*d.startSecs;if(c){if(a<b.u)return new Xp(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new Xp(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new Xp(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Pw=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Qw=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.Rw=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,k=null;var l=d.text;d.bold&&(k=bi("B",null,k||l));d.italics&&(k=bi("I",null,k||l));d.strikethrough&&(k=bi("STRIKE",null,k||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,k=bi("A",null,k||l),g.ph(k,d.url),"TARGET_NEW_WINDOW"==d.target&&(k.target="_blank"));l=k||bi("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:bi("SPAN",null,b)};
Sw=function(a,b){xt.call(this,1,arguments);this.timer=b};
kqa=function(a,b){xt.call(this,1,arguments);this.j=a;this.timer=b};
lqa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
mqa=function(a){var b=Tw(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};
nqa=function(){var a;if(g.Q("csi_use_performance_navigation_timing")){var b,c,d,e=null==Uw?void 0:null==(a=Uw.getEntriesByType)?void 0:null==(b=a.call(Uw,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=Vw(e.requestStart),e.responseEnd=Vw(e.responseEnd),e.redirectStart=Vw(e.redirectStart),e.redirectEnd=Vw(e.redirectEnd),e.domainLookupEnd=Vw(e.domainLookupEnd),e.connectStart=Vw(e.connectStart),e.connectEnd=Vw(e.connectEnd),e.responseStart=Vw(e.responseStart),
e.secureConnectionStart=Vw(e.secureConnectionStart),e.domainLookupStart=Vw(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Uw.timing}else a=Uw.timing;return a};
Ww=function(){return g.Q("csi_use_time_origin")&&Uw.timeOrigin?Math.floor(Uw.timeOrigin):Uw.timing.navigationStart};
Vw=function(a){return Math.round(Ww()+a)};
Xw=function(a,b){g.Ha("ytglobal.timing"+(b||"")+"ready_",a)};
Yw=function(a){return g.Ia("ytcsi."+(a||"")+"data_")||oqa(a)};
Zw=function(a){a=Yw(a);a.info||(a.info={});return a.info};
Tw=function(a){a=Yw(a);a.tick||(a.tick={});return a.tick};
$w=function(a){a=Yw(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
ax=function(a){a=$w(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
pqa=function(a){a=$w(a);a.jspbInfos||(a.jspbInfos=[]);return a.jspbInfos};
bx=function(a){var b=Yw(a).nonce;b||(b=g.Pv(16),Yw(a).nonce=b);return b};
oqa=function(a){var b={tick:{},info:{}};g.Ha("ytcsi."+(a||"")+"data_",b);return b};
sqa=function(a){var b=Tw(a||""),c=mqa(a);c&&!qqa&&(Bt(rqa,new Sw(Math.round(c-b._start),a)),qqa=!0)};
tqa=function(a,b){for(var c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!tqa(a[d],b[d]))return!1;return!0};
uqa=function(){if(Uw.getEntriesByType){var a=Uw.getEntriesByType("paint");if(a=g.Pb(a,function(b){return"first-paint"===b.name}))return Vw(a.startTime)}a=Uw.timing;
return a.mX?Math.max(0,a.mX):0};
cx=function(){var a=g.Ia("ytcsi.debug");a||(a=[],g.Ha("ytcsi.debug",a),g.Ha("ytcsi.reference",{}));return a};
dx=function(a){a=a||"";var b=vqa();if(b[a])return b[a];var c=cx(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
ex=function(a){a=a||"";var b=vqa();b[a]&&delete b[a];var c=cx(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
vqa=function(){var a=g.Ia("ytcsi.reference");if(a)return a;cx();return g.Ia("ytcsi.reference")};
fx=function(a){return wqa[a]||"LATENCY_ACTION_UNKNOWN"};
Bqa=function(a,b,c){c=$w(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in xqa){c=xqa[a];g.Sb(yqa,c)&&(b=!!b);a in zqa&&"string"===typeof b&&(b=zqa[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},k=0;k<b.length-1;k++){var l=b[k];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return nw({},d)}g.Sb(Aqa,a)||g.Jv(new g.Is("Unknown label logged with GEL CSI",a))};
gx=function(){this.j=0};
hx=function(){gx.j||(gx.j=new gx);return gx.j};
jx=function(a,b){ix[b]=ix[b]||{count:0};var c=ix[b];c.count++;c.time=(0,g.R)();a.j||(a.j=g.Tr(0,function(){var d=(0,g.R)(),e;for(e in ix)ix[e]&&6E4<d-ix[e].time&&delete ix[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Is("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Jv(c)),!0):!1};
kx=function(a){oqa(a);Cqa();a||(g.P("TIMING_ACTION")&&ar("PREVIOUS_ACTION",g.P("TIMING_ACTION")),ar("TIMING_ACTION",""))};
ox=function(a,b){b=void 0===b?{}:b;lx(a);ex(a);kx(a);Yw(a).useGel=!0;dx(a||"").info.actionType=a;b.cttAuthInfo&&(Yw(a).cttAuthInfo=b.cttAuthInfo);ar(a+"TIMING_ACTION",a);mx("_start",b.startTime,a);b={actionType:fx(a)};var c=g.Tv();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);nx(b,a);Xw(!0,a)};
g.px=function(a,b,c,d){null!==b&&(Zw(c)[a]=b,(a=Bqa(a,b,c))&&nx(a,c,d))};
nx=function(a,b,c){if(!g.Q("web_csi_via_jspb")||(void 0===c?0:c))c=dx(b||""),nw(c.info,a),nw(ax(b),a),c=bx(b),b=Yw(b).cttAuthInfo,hx().info(a,c,b);else{c=new Pq;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":cja(c,T[a[e]]);break;case "clientActionNonce":g.D(c,2,a[e]);break;case "clientScreenNonce":g.D(c,4,a[e]);break;case "loadType":g.D(c,3,a[e]);break;case "isPrewarmedLaunch":g.D(c,92,a[e]);break;case "isFirstInstall":g.D(c,55,a[e]);
break;case "networkType":g.D(c,5,qx[a[e]]);break;case "connectionType":g.D(c,26,rx[a[e]]);break;case "detailedConnectionType":g.D(c,27,sx[a[e]]);break;case "isVisible":g.D(c,6,a[e]);break;case "playerType":g.D(c,7,tx[a[e]]);break;case "clientPlaybackNonce":g.D(c,8,a[e]);break;case "adClientPlaybackNonce":g.D(c,28,a[e]);break;case "previousCpn":g.D(c,77,a[e]);break;case "targetCpn":g.D(c,76,a[e]);break;case "isMonetized":g.D(c,9,a[e]);break;case "isPrerollAllowed":g.D(c,16,a[e]);break;case "isPrerollShown":g.D(c,
17,a[e]);break;case "adType":g.D(c,12,a[e]);break;case "adTypesAllowed":g.D(c,36,a[e]);break;case "adNetworks":g.D(c,37,a[e]);break;case "previousAction":g.D(c,13,T[a[e]]);break;case "isRedSubscriber":g.D(c,14,a[e]);break;case "serverTimeMs":g.D(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.D(c,20,a[e]);break;case "targetVideoId":g.D(c,78,a[e]);break;case "adBreakType":g.D(c,21,ux[a[e]]);break;case "isNavigation":dja(c,a[e]);break;case "viewportHeight":g.D(c,29,a[e]);
break;case "viewportWidth":g.D(c,30,a[e]);break;case "screenHeight":g.D(c,84,a[e]);break;case "screenWidth":g.D(c,85,a[e]);break;case "browseId":g.D(c,31,a[e]);break;case "isCacheHit":g.D(c,32,a[e]);break;case "httpProtocol":g.D(c,33,a[e]);break;case "transportProtocol":g.D(c,34,a[e]);break;case "searchQuery":g.D(c,41,a[e]);break;case "isContinuation":g.D(c,42,a[e]);break;case "availableProcessors":g.D(c,43,a[e]);break;case "sdk":g.D(c,44,a[e]);break;case "isLocalStream":g.D(c,45,a[e]);break;case "navigationRequestedSameUrl":g.D(c,
64,a[e]);break;case "shellStartupDurationMs":g.D(c,70,a[e]);break;case "appInstallDataAgeMs":g.D(c,73,a[e]);break;case "latencyActionError":g.D(c,71,vx[a[e]]);break;case "actionStep":g.D(c,79,a[e]);break;case "jsHeapSizeLimit":g.D(c,80,a[e]);break;case "totalJsHeapSize":g.D(c,81,a[e]);break;case "usedJsHeapSize":g.D(c,82,a[e]);break;case "sourceVideoDurationMs":g.D(c,90,a[e]);break;case "adPrebufferedTimeSecs":g.D(c,39,a[e]);break;case "isLivestream":g.D(c,47,a[e]);break;case "liveStreamMode":g.D(c,
91,wx[a[e]]);break;case "adCpn2":g.D(c,48,a[e]);break;case "adDaiDriftMillis":g.D(c,49,a[e]);break;case "videoStreamType":g.D(c,53,xx[a[e]]);break;case "playbackRequiresTap":g.D(c,56,a[e]);break;case "performanceNavigationTiming":g.D(c,67,a[e]);break;case "transactionType":g.D(c,74,yx[a[e]]);break;case "playerRotationType":g.D(c,101,zx[a[e]]);break;case "allowedPreroll":g.D(c,10,a[e]);break;case "shownPreroll":g.D(c,11,a[e]);break;case "getHomeRequestId":g.D(c,57,a[e]);break;case "getSearchRequestId":g.D(c,
60,a[e]);break;case "getPlayerRequestId":g.D(c,61,a[e]);break;case "getWatchNextRequestId":g.D(c,62,a[e]);break;case "getBrowseRequestId":g.D(c,63,a[e]);break;case "getLibraryRequestId":g.D(c,66,a[e]);break;default:Dqa.includes(f)&&g.hr(new g.Is("Codegen laipb translator asked to translate message field",""+f))}}catch(k){g.hr(Error("Codegen laipb translator failed to set "+f))}}Ax(c,b)}};
Ax=function(a,b){pqa(b).push(a);dx(b||"").jspbInfo.push(a);var c=bx(b);b=Yw(b).cttAuthInfo;hx().jspbInfo(a,c,b)};
mx=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;Uw.mark&&(fb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),Uw.mark(d))}dx(c||"").tick[a]=b||(0,g.R)();d=$w(c);d.gelTicks&&(d.gelTicks[a]=!0);d=Tw(c);var e=b||(0,g.R)();d[a]=e;e=bx(c);var f=Yw(c).cttAuthInfo;if("_start"===a){var k=hx();jx(k,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.Q("web_csi_via_jspb")?(f=new $ia,g.D(f,1,e),e=new Tq,se(e,6,Gv,f),Fv(e,b)):g.Ds("latencyActionBaselined",{clientActionNonce:e},b))}else hx().tick(a,e,b,f);sqa(c);return d[a]};
Eqa=function(a){var b="above_the_fold";Uw&&Uw.measure&&(fb(b,"measure_")||(b="measure_"+b),a?Uw.measure(b,a):Uw.measure(b))};
Fqa=function(a){var b=Zw(a),c=ax(a);a=pqa(a);for(var d=0;d<a.length;d++);return!!("ad_at"in b||"ad_at"in c)};
Bx=function(a,b){b=Tw(b);return a in b};
Cx=function(a,b,c){Bx("_start",c)&&!Bx(a,c)&&mx(a,b,c)};
Dx=function(){switch(doa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
lx=function(a){Bx("_start",a)&&mx("aa",void 0,a)};
Jqa=function(){function a(f){var k=nqa(),l=Ww();l&&(mx("srt",k.responseStart),1!==f.prerender&&mx("_start",l,void 0));f=uqa();0<f&&mx("fpt",f);f=nqa();f.isPerformanceNavigationTiming&&nx({performanceNavigationTiming:!0});mx("nreqs",f.requestStart,void 0);mx("nress",f.responseStart,void 0);mx("nrese",f.responseEnd,void 0);0<f.redirectEnd-f.redirectStart&&(mx("nrs",f.redirectStart,void 0),mx("nre",f.redirectEnd,void 0));0<f.domainLookupEnd-f.domainLookupStart&&(mx("ndnss",f.domainLookupStart,void 0),
mx("ndnse",f.domainLookupEnd,void 0));0<f.connectEnd-f.connectStart&&(mx("ntcps",f.connectStart,void 0),mx("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=Ww()&&0<f.connectEnd-f.secureConnectionStart&&(mx("nstcps",f.secureConnectionStart,void 0),mx("ntcpe",f.connectEnd,void 0));Uw&&"getEntriesByType"in Uw&&Gqa()}
var b=g.P("TIMING_INFO",{});if(g.Q("web_csi_via_jspb")){b=Hqa(b);Ax(b);b=cja(dja(new Pq,!0),T[fx(g.P("TIMING_ACTION"))]);var c=g.P("PREVIOUS_ACTION");c&&g.D(b,13,T[fx(c)]);(c=g.P("CLIENT_PROTOCOL"))&&g.D(b,33,c);(c=g.P("CLIENT_TRANSPORT"))&&g.D(b,34,c);(c=g.Tv())&&"UNDEFINED_CSN"!==c&&g.D(b,4,c);c=Dx();1!==c&&-1!==c||g.D(b,6,!0);c=Zw();if("cold"===c.yt_lt&&(g.D(b,3,"cold"),a(c),c=Iqa(),0<c.length)){c=g.r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=new Oq;g.D(e,1,d);ue(b,83,Oq,e)}}Ax(b)}else{for(c in b)b.hasOwnProperty(c)&&
g.px(c,b[c]);b={isNavigation:!0,actionType:fx(g.P("TIMING_ACTION"))};if(c=g.P("PREVIOUS_ACTION"))b.previousAction=fx(c);if(c=g.P("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.P("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.Tv())&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);c=Dx();if(1===c||-1===c)b.isVisible=!0;c=Zw();if("cold"===c.yt_lt&&(b.loadType="cold",a(c),c=Iqa(),0<c.length))for(b.resourceInfo=[],c=g.r(c),d=c.next();!d.done;d=c.next())b.resourceInfo.push({resourceCache:d.value});nx(b)}};
Hqa=function(a){var b=new Pq;a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;switch(c){case "GetBrowse_rid":var e=new Qq;g.D(e,1,c);g.D(e,2,String(d));Rq(b,e);break;case "GetGuide_rid":e=new Qq;g.D(e,1,c);g.D(e,2,String(d));Rq(b,e);break;case "GetHome_rid":e=new Qq;g.D(e,1,c);g.D(e,2,String(d));Rq(b,e);break;case "GetPlayer_rid":e=new Qq;g.D(e,1,c);g.D(e,2,String(d));Rq(b,e);break;case "GetSearch_rid":e=new Qq;g.D(e,1,c);g.D(e,2,
String(d));Rq(b,e);break;case "GetSettings_rid":e=new Qq;g.D(e,1,c);g.D(e,2,String(d));Rq(b,e);break;case "GetTrending_rid":e=new Qq;g.D(e,1,c);g.D(e,2,String(d));Rq(b,e);break;case "GetWatchNext_rid":e=new Qq;g.D(e,1,c);g.D(e,2,String(d));Rq(b,e);break;case "yt_red":g.D(b,14,!!d);break;case "yt_ad":g.D(b,9,!!d)}}return b};
Kqa=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);rh()&&a.setAttribute("nonce",rh());return c?(a=Uw.getEntriesByName(c))&&a[0]&&(a=a[0],c=Ww(),mx("rsf_"+b,c+Math.round(a.fetchStart)),mx("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Iqa=function(){var a=[];if(document.querySelector&&Uw&&Uw.getEntriesByName)for(var b in Ex)if(Ex.hasOwnProperty(b)){var c=Ex[b];Kqa(b,c)&&a.push(c)}return a};
Gqa=function(){var a=window.location.protocol,b=Uw.getEntriesByType("resource");b=g.Zn(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20220414023957/https://fonts.gstatic.com/s/")});
(b=Yl(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(mx("wffs",Vw(b.startTime)),mx("wffe",Vw(b.responseEnd)))};
Gx=function(){return g.ot||g.Fx||g.$r()&&19>dma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
Hx=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.Ix=function(a,b){this.id=a;this.Ic=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
Jx=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.Lx=function(a,b,c,d){return new Jx(g.Kx[a]||0,g.Kx[b]||0,c,d)};
Mx=function(a){var b=g.Kx.auto;return a.u===b&&a.j===b};
Ox=function(a){return Nx[a.j||a.u]||"auto"};
Lqa=function(a,b){b=g.Kx[b];return a.u<=b&&(!a.j||a.j>=b)};
Px=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Ic&&!a.has(c.Ic.id)){var d=new g.Ix(c.id,c.Ic);a.add(c.Ic.id);this.audioTracks.push(d)}}};
Pqa=function(a,b,c,d,e){var f={},k=new Set,l={};if(Qx(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(a=c.j[m],l[a.info.j]=[a.info]);return l}for(var n in c.j)if(c.j.hasOwnProperty(n)){m=c.j[n];var p=m.info.Yb(),q=Rx(a,m.info,b,c.isLive,k);!0!==q?f[p]=q:(l[m.info.j]=l[m.info.j]||[],l[m.info.j].push(m.info))}e&&(d(f),d({bfflt:Sx(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=Mqa(a,l[c]),l[c]=Nqa(l[c])));c=g.r(k.values());for(k=c.next();!k.done;k=c.next())(k=b.u.get(k.value))&&
--k.KQ;b=g.Bf(l,function(v){return!!v.length});
e&&d({aftflt:Sx(l)});a.rb=Oqa(b,a);return b};
Rx=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?new Set:e;if(""===b.j)return"unkn";if(("304"===b.Yb()||"266"===b.Yb())&&a.gb)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.S&&b.video&&b.video.j<a.S)return"min"+a.S;if(a.kb&&"h"===b.j&&b.video&&1080<b.video.j)return"blkhigh264";if(a.ib&&b.video&&4320<=b.video.j&&32<b.video.fps)return"blk8khfr";if("(h"===b.j&&!c.D)return"enchdr";if(d&&Qqa(b)&&!a.La)return"blk51live";if(Rqa(b)&&!a.Ia)return"blk51ugc";if((a=c.u.get(b.j))&&0<
a.KQ)return e.add(b.j),"byerr";e=Sqa(c,b);if(!0!==e)return e;var f;return null==(f=b.video)||!(32<f.fps)||c.S&&(c.ma||Tx(c,Ux.FRAMERATE))?!0:"capHfr"};
Oqa=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.J&&!(!a.meac3&&!a.MEAC3);return b.ma&&!(!a.m&&!a.M)||c||d};
Vx=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
Sx=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(Vx(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.Yb())}return b.join(".")};
Tqa=function(a,b,c,d,e){var f={},k={};g.Af(b,function(l,m){l=l.filter(function(n){var p=n.Yb();if(!n.ke)return k[p]="noenc",!1;if("("===n.j||"(h"===n.j){if(a.B&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";(q=!!n.ke[c.flavor]&&!!c.j[q])||(k[p]=n.ke[c.flavor]?"unspt":"noflv");return q}if(!Tx(a,Ux.CRYPTOBLOCKFORMAT)&&!a.ra||a.Z)return k[p]=a.Z?"disvp":"vpsub",!1}return c&&n.ke[c.flavor]&&c.j[n.mimeType]?!0:(k[p]=c?n.ke[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(k).length&&e(k);return f};
Xqa=function(a,b,c,d,e){function f(v){return!!l[v]}
var k=a.B||!!d,l=Pqa(a,b,c,e,k);Wx(c)&&(l=Tqa(b,l,d,k,e),k&&e({enflt:Sx(l)}));if(Qx(c))return e=g.Pb(Object.values(l),function(v){return!!v.length&&!!v[0].audio}),k=g.Pb(Object.values(l),function(v){return!!v.length&&!!v[0].video}),e&&k||Lr(),Mr(new Px(k,e));
b=Uqa(a);k&&e({audioPrefOrder:b.join("_")});b=g.Pb(b,f);if(!b)return k&&e({noaudio:1}),Lr();b=l[b];l["9"]&&l.h&&c.fg&&!a.Ta&&(k&&e({dltvp9:1}),delete l["9"]);var m=l["1h"]?"1h":"1";d=l["9h"]?"9h":"9";var n=l[m],p=l[d];n&&n.length&&(a.u.highestAv1Resolution=n[n.length-1].video.j);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.j);var q=[],t=[];if(a.va&&!a.j)for(t=Vqa(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],k&&e({newhybpref:t.join(".")}),n=g.r(t),p=n.next();!p.done;p=n.next())q=
q.concat(l[p.value]).filter(function(v){return v});
else 0<a.Y&&p&&n&&(t=[m,d],q=n.concat(p).filter(function(v){return v}));
if(q.length&&!a.j){Xx(q,b,t);if(k){k=[];a=g.r(q);for(c=a.next();!c.done;c=a.next())k.push(c.value.Yb());e({hbdfmt:k.join(".")})}return Mr(new Px(q,b))}q=Wqa(a);q=g.Pb(q,f);if(!q){if(l[m])return e=l[m],Xx(e,b),Mr(new Px(e,b));k&&e({novideo:1});return Lr()}a.kc&&("1"===q||"1h"===q)&&l[d]&&(m=Yx(l[q]),Yx(l[d])>m&&(q=d));"9"===q&&l.h&&(d=Yx(l["9"]),Yx(l.h)>1.5*d&&(q="h"));a.Ib&&c.isLive&&"("===q&&l.H&&1440>Yx(l["("])&&(q="H");k&&e({vfmly:Vx(q)});a=l[q];if(!a.length)return k&&e({novfmly:Vx(q)}),Lr();Xx(a,
b);return Mr(new Px(a,b))};
Xx=function(a,b,c){c=void 0===c?[]:c;g.ic(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0<c.length){f=c.indexOf(d.j)+1;var k=c.indexOf(e.j)+1;f=0===f||0===k?k||-1:f-k}f||(f=e.Qb-d.Qb);return f});
g.ic(b,function(d,e){return e.Qb-d.Qb})};
Nqa=function(a){var b=Yl(a,function(c,d){return 32<d.video.fps?Math.min(c,d.video.width):c},Infinity);
Infinity>b&&(a=g.Zn(a,function(c){return 32<c.video.fps||c.video.width<b}));
bs()&&(a=g.Zn(a,function(c){return"299"!==c.Yb()}));
return a};
Mqa=function(a,b){return b=g.Zn(b,function(c){return c.video.j<=a.Kb})};
Yx=function(a){return Yl(a,function(b,c){return Math.max(b,c.video.j)},0)};
Yqa=function(a){a=void 0===a?{}:a;var b=void 0===a.im?!1:a.im,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.oJ?!1:a.oJ;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&Gx()?3:2:c&&d?-1:1};
Zqa=function(a){return Yqa({hasSubfragmentedFmp4:a.D.Ei,im:a.D.Ei,defraggedFromSubfragments:a.pn,isManifestless:!0,oJ:a.ra})};
$qa=function(a){a=a.split("");Zx.mO(a,16);Zx.u4(a,38);Zx.mO(a,4);Zx.u4(a,46);Zx.Gm(a,1);Zx.mO(a,36);Zx.u4(a,64);Zx.Gm(a,1);Zx.mO(a,29);return a.join("")};
g.$x=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
ay=function(a){a.url||(a.url=ara(a));return a.url};
cy=function(a){by(a);return a.C};
dy=function(a){return a.u?fb(a.u,"local"):"local"===a.B};
bra=function(a){by(a);return g.Df(a.j,function(b){return null!==b})};
ey=function(a){by(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
fy=function(a,b){b=void 0===b?!1:b;by(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=ay(a);c=new g.uk(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.Hk(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.$x(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.Hk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Hk(c,"www.youtube.com"),d=c.toString()):d=eqa(d);c=new g.$x(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
by=function(a){if(a.u){if(!Fw(a.u)&&!a.u.startsWith("local"))throw new g.Is("Untrusted URL",a.u);var b=g.Qk(a.u);a.B=b.C;a.C=b.j+(null!=b.u?":"+b.u:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=cra(c);
Object.assign(a.j,dra(b.B.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=era[0](b),a.set("n",b),era.length||Fia(""))}};
ara=function(a){by(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(bra(a)){var c=[];g.Af(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
cra=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&fra(c,a[b],a[b+1]);return c};
dra=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?fra(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
fra=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};
gy=function(a,b,c,d,e,f,k,l,m){this.Ja=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Rd=m;this.endTime=b+c;this.j=k||0;this.range=f||null;this.pending=l||!1;this.Rd=m||null};
hy=function(){this.segments=[];this.j=null;this.u=!0};
gra=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Ob(a.segments,function(d){return d.Ja>=b},a);
0<c&&a.segments.splice(0,c)}};
iy=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
hra=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
jy=function(a,b){b=g.r(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
ky=function(a,b,c){return a.split(b).Ns.split(c).JG};
ly=function(a){a.C=void 0;a.u=0;a.B=0};
my=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
ira=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
jra=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!my(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,k=d;k<=a.u;k++)e.set(a.j[k],f),f+=a.j[k].length;a.j.splice(d,a.u-d+1,e);ly(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
ny=function(a,b,c){a=jra(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
kra=function(a){a=ny(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};
oy=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
lra=function(a,b){a.focus(b);return my(a,b,4)?ira(a).getUint32(b-a.B):256*(256*(256*oy(a,b)+oy(a,b+1))+oy(a,b+2))+oy(a,b+3)};
py=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
qy=function(a){return String.fromCharCode.apply(null,a)};
sy=function(a){return ry?ry.decode(a):qy(a)};
g.uy=function(a){if(!a.length)return"";try{if(ry)return ry.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(k){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)ty[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;ty[e++]=55296|f>>10;f=56320|f&1023}ty[e++]=f}}f=String.fromCharCode.apply(String,ty);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
wy=function(a,b){var c;if(null==(c=vy)?0:c.encodeInto)return b=vy.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
yy=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j};
zy=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
Ay=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
By=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
Cy=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
Dy=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
Ey=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return sy(b)};
mra=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
Fy=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};
Hy=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20220414023957/http://youtube.com/streaming/metadata/segment/102015";this.j=Gy(this,"Sequence-Number");this.J=Gy(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Gy(this,"Ingestion-Walltime-Us")/1E6;this.u=(Gy(this,"First-Frame-Time-Us")+Gy(this,"First-Frame-Uncertainty-Us"))/1E6;this.Uj=Gy(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=Gy(this,"Crypto-Period-Index");
this.B=Gy(this,"Crypto-Period-Seconds")};
ora=function(a){return a.data["Cuepoint-Type"]?new Bw(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",nra[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
pra=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
Gy=function(a,b){return Number(a.data[b])||0};
g.qra=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
rra=function(a,b){this.j=a;this.duration=b};
sra=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
Iy=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};
tra=function(a,b){var c=g.Jy(a,0,1952868452);a=g.Jy(a,0,1953658222);if(c&&a){c.skip(1);var d=zy(c)<<16|Ay(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=Cy(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=zy(a)<<16|Ay(a);if(c&256){d=c&1;e=c&4;var f=c&512,k=c&1024,l=c&2048;c=Cy(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(k?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,k=Cy(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(k*b):Math.floor(k*b)),a.skip(d)}}};
Ly=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.Jy(a,0,1836476516))?g.Ky(a):NaN};
ura=function(a){var b=g.Jy(a,0,1937011556);if(!b)return null;b=My(a,b.dataOffset+8,1635148593);if(!b)return null;var c=My(a,b.dataOffset+78,1936995172),d=My(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),zy(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=My(a,d.dataOffset,1886547818)){var k=My(a,d.dataOffset,1886546020),l=My(a,d.dataOffset,2037673328);if(!l&&(l=My(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
By(k)/65536,f=By(k)/65536,e=By(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new sra(b,c,f,e,a)}return null};
My=function(a,b,c){for(;Ny(a,b);){var d=Oy(a,b);if(d.type===c)return d;b+=d.size}return null};
g.Jy=function(a,b,c){for(;Ny(a,b);){var d=Oy(a,b);if(d.type===c)return d;b=Py(d.type)?b+8:b+d.size}return null};
g.Qy=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
Oy=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new yy(a,b,c,d)};
g.Ky=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
vra=function(a){a=new yy(a.data,a.offset,a.size,a.type,a.u);var b=zy(a);a.skip(7);var c=Cy(a);if(0===b){b=Cy(a);var d=Cy(a)}else b=Dy(a),d=Dy(a);a.skip(2);for(var e=Ay(a),f=[],k=[],l=0;l<e;l++){var m=Cy(a);f.push(m);k.push(Cy(a));a.skip(4)}return{uJ:c,tV:b,FV:d,D_:f,pJ:k}};
Ny=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};
Py=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
wra=function(a){a.skip(4);return{S_:Ey(a,0),value:Ey(a,0),uJ:Cy(a),cja:Cy(a),sia:Cy(a),id:Cy(a),TO:Ey(a),offset:a.offset}};
g.xra=function(a){var b=My(a,0,1701671783);if(!b)return null;var c=wra(b),d=c.S_;c=Iy(c.TO);if(a=My(a,b.offset+b.size,1701671783))if(a=wra(a),a=Iy(a.TO),c&&a){b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new Hy(c,d):null};
Ry=function(a,b){for(var c=My(a,0,b);c;)c.markAsSkip(),c=My(a,c.offset+c.size,b)};
g.Sy=function(a,b){for(var c=0,d=[];Ny(a,c);){var e=Oy(a,c);e.type===b&&d.push(e);c=Py(e.type)?c+8:c+e.size}return d};
zra=function(a,b){var c=g.Jy(a,0,1937011556),d=g.Jy(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.Jy(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 mra(a.byteLength+b);Fy(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;Fy(d,a,c.offset+16,c.size-16);Fy(d,e,e.byteOffset+f.dataOffset+8,b);Fy(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.Jy(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(yra)return d.data;a=g.Jy(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
Ty=function(a,b){this.u=a;this.j=0;this.start=b||0};
Uy=function(a){return a.j>=a.u.byteLength};
Zy=function(a,b,c){var d=new Ty(c);if(!Vy(d,a))return!1;d=Wy(d);if(!Xy(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.j;var e=Yy(d,!0);d=a+(d.start+d.j-b)+e;d=9<d?Ara(d-9,8):Ara(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Bra=function(a){var b=new Ty(a);b.Pu();if(Vy(b,[408125543,374648427,174,224]))b=Wy(b);else return null;for(var c=a=null;!Uy(b);){var d=Yy(b,!1);if(21432===d)switch($y(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=Wy(b):az(b)}if(!c)return null;for(var e,f=d=b=null;!Uy(c);)switch(Yy(c,!1)){case 30321:if(3!==$y(c))return null;break;case 30324:b=bz(c);break;case 30323:f=bz(c);break;case 30325:d=bz(c);break;case 30322:e=Yy(c,!0);e=cz(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:az(c)}return e?new sra(a,b,f,d,e):null};
Wy=function(a){var b=Yy(a,!0),c=a.u.byteOffset+a.j;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new Ty(c,a.start+a.j);a.j+=b;return c};
$y=function(a){for(var b=Yy(a,!0),c=dz(a),d=1;d<b;d++)c=256*c+dz(a);return c};
bz=function(a){var b=Yy(a,!0),c=0;4===b?c=a.u.getFloat32(a.j):8===b&&(c=a.u.getFloat64(a.j));a.j+=b;return c};
Cra=function(a){var b=Yy(a,!0);return sy(cz(a,b))};
dz=function(a){return a.u.getUint8(a.j++)};
Yy=function(a,b){var c=dz(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+dz(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+dz(a),d*=128;return b?c-d:c};
az=function(a){var b=Yy(a,!0);a.j+=b};
Dra=function(a){if(!Xy(a,440786851,!0))return null;var b=a.j;Yy(a,!1);var c=Yy(a,!0)+a.j-b;a.j=b+c;if(!Xy(a,408125543,!1))return null;Yy(a,!0);if(!Xy(a,357149030,!0))return null;var d=a.j;Yy(a,!1);var e=Yy(a,!0)+a.j-d;a.j=d+e;if(!Xy(a,374648427,!0))return null;var f=a.j;Yy(a,!1);var k=Yy(a,!0)+a.j-f,l=new Uint8Array(c+12+e+k),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,k),c+12+e);return l};
ez=function(a){var b=a.j;a.j=0;var c=1E6;Vy(a,[408125543,357149030,2807729])&&(c=$y(a));a.j=b;return c};
Era=function(a,b){var c=a.j;a.j=0;if(160!==a.u.getUint8(a.j)&&!fz(a)||!Xy(a,160))return a.j=c,NaN;Yy(a,!0);var d=a.j;if(!Xy(a,161))return a.j=c,NaN;Yy(a,!0);dz(a);var e=dz(a)<<8|dz(a);a.j=d;if(!Xy(a,155))return a.j=c,NaN;d=$y(a);a.j=c;return(e+d)*b/1E9};
fz=function(a){if(!Fra(a)||!Xy(a,524531317))return!1;Yy(a,!0);return!0};
Fra=function(a){if(a.Pu()){if(!Xy(a,408125543))return!1;Yy(a,!0)}return!0};
Vy=function(a,b){for(var c=0;c<b.length;c++){if(!Xy(a,b[c]))return!1;c!==b.length-1&&Yy(a,!0)}return!0};
Xy=function(a,b,c){c=void 0===c?!1:c;if(Uy(a))return!1;for(var d=a.j;Yy(a,!1)!==b;)if(az(a),d=a.j,Uy(a))return!1;c&&(a.j=d);return!0};
Ara=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};
cz=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.j,b);a.j+=b;return c};
gz=function(a){this.Ki=a;this.j={};this.url=""};
Gra=function(a,b){var c=b.indexOf("?");if(0<c){var d=dra(b.substr(c+1));g.Af(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=cra(b);g.Af(b,function(e,f){this.set(f,e)},a)};
g.hz=function(a){a.url||(a.url=Hra(a));return a.url};
Hra=function(a){var b=ay(a.Ki),c=[];g.Af(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=bra(a.Ki)?"&":"?";return b+a+d};
iz=function(a,b){var c=new g.$x(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Af(a.j,function(d,e){c.set(e,null)});
return c};
Ira=function(){this.u=this.j=this.timedOut=this.started=this.B=0};
Jra=function(a){a.B=(0,g.R)();a.started+=1};
Kra=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.Uh,d)};
jz=function(a,b){a[b]||(a[b]=new Ira);return a[b]};
Lra=function(a){this.K=this.J=this.D=this.u=0;this.j=a;this.C=a.clone()};
lz=function(a,b,c){if(dy(a.j))return!1;var d=jz(c,cy(a.j));if(1<=d.timedOut||1<=d.j)if(a=kz(a,b),c=jz(c,cy(a)),c.timedOut+c.j<=d.timedOut+d.j)return!0;return!1};
Mra=function(a,b,c){a=b?kz(a,c):a.j;return new gz(a)};
kz=function(a,b){b=b?b.bk:!1;a.B||(a.B=fy(a.C,b));return a.B};
Nra=function(a,b){var c=a.D+b.Iq*(a.u-a.D)+.25*a.J;b=c>b.Ag?1E3*Math.pow(b.Uh,c-b.Ag):0;return 0===b?!0:a.K+b<(0,g.R)()};
mz=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.J=!1;this.C=null;this.S=0;this.D=this.B=null;this.info=b;this.u=new Lra(a)};
nz=function(a,b,c,d){var e=g.r(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)};
oz=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
pz=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new oz(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
qz=function(a,b){return new oz(a,a+b-1)};
Ora=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
rz=function(a,b,c,d,e,f,k,l,m,n,p){this.type=a;this.j=b;this.range=c;this.K=[];this.D="";this.Ja=-1;this.D=void 0===d?"":d;this.Ja=0<=e?e:-1;this.startTime=f||0;this.duration=k||0;this.zb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.le=this.range?this.zb+this.u===this.range.length:void 0===p?!!this.u:p;this.range?(this.B=this.startTime+this.duration*this.zb/this.range.length,this.J=this.duration*this.u/this.range.length,this.C=this.B+this.J):Pra(this)};
Pra=function(a){a.B=a.startTime;a.J=a.duration;a.C=a.B+a.J};
sz=function(a){return a.le&&a.j.index.bH(a.Ja)};
Qra=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Ja!==a.Ja);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.zb+b.u===a.zb+a.u:d};
tz=function(a){return 1===a.type||2===a.type};
uz=function(a){return 3===a.type||6===a.type};
vz=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.zb+a.u===b.range.start+b.zb:a.Ja===b.Ja?a.zb+a.u===b.zb:a.Ja+1===b.Ja&&0===b.zb&&a.le:!1};
Rra=function(a,b){return vz(a,b)||vh(a.C,b.B)||a.Ja+1===b.Ja&&0===b.zb&&a.le?!0:!1};
wz=function(a){return a.Ja+(a.le?1:0)};
Sra=function(a){1===a.length||g.Xl(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new oz(a[0].range.start+a[0].zb,b.range.start+b.zb+b.u-1)};
yz=function(a){a=xz(a);var b="";g.Af(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
xz=function(a){var b={};b.itag=a.j.info.Yb();b.type=""+a.type;b.seg=String(a.Ja);a.range&&(b.range=""+(a.range.start+a.zb)+"-"+(a.range.start+a.zb+a.u-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.J).toFixed(1);b.off=String(a.zb);b.len=String(a.u);a.le&&(b.end="1");sz(a)&&(b.eos="1");return b};
Tra=function(a){return new rz(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Ja,a.startTime,0,a.zb,0,0)};
Ura=function(a){return new rz(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Ja,a.startTime+a.duration,0,a.zb+a.u,0,0)};
Vra=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.zb>=b.range.start+b.zb&&a.range.start+a.zb+a.u<=b.range.start+b.zb+b.u:a.Ja===b.Ja&&a.zb>=b.zb&&(a.zb+a.u<=b.zb+b.u||b.le)};
Wra=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Kf()?(a=a.j.Cv(a),Zm(a,function(c){return Wra(c,b)})):a.Ja===b.Ja&&!!b.u&&b.zb+b.u>a.zb&&b.zb+b.u<=a.zb+a.u};
zz=function(a,b){var c=b.Ja;a.D="updateWithSegmentInfo";a.Ja=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Pra(a)};
Az=function(a,b){this.j=a;this.B=null;this.D=this.Gf=NaN;this.J=this.requestId=null;this.u=a[0].j.u;this.C=b||"";if(this.j[0].range&&0<this.j[0].u){a:{for(b=1;b<a.length;b++)if(!vz(a[b-1],a[b])){b=!1;break a}b=!0}if(b)this.range=Sra(a),this.K=this.range.length;else{this.range=this.j[this.j.length-1].range;b=0;a=g.r(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;this.K=b}}};
Bz=function(a){var b;return Xra?a.K:null==(b=a.range)?void 0:b.length};
Cz=function(a){return!tz(a.j[a.j.length-1])};
Dz=function(a){return 4===a.j[a.j.length-1].type};
g.Ez=function(a,b,c){c=null===a.J?lz(a.u,b,c):a.J;if(a.B){b=c?fy(a.B,b.bk):a.B;var d=new gz(b);d.get("alr")||d.set("alr","yes");a.C&&Gra(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new gz(new g.$x(a.C)):(d=Mra(a.u,c,b),a.C&&Gra(d,a.C));(b=a.range)?d.set("range",b.toString()):a.j[0].j.Jr()&&1===a.j.length&&a.j[0].zb&&d.set("range",a.j[0].zb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Gf)||d.set("headm",a.Gf.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Af(a.urlParams,function(e,
f){d.set(f,e)});
return d};
Yra=function(a){if(a.range)return Bz(a);a=a.j[0];return Math.round(a.J*a.j.info.Qb)};
Zra=function(a,b,c){if(0!==b.length){var d=[];b=g.r(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d.push(new rz(3,a.j[0].j,qz(e.DA,c),"extendWithMediaSegments",e.eD-1,e.startTimeMs/1E3,e.durationMs/1E3));return new Az(a.j.concat(d))}};
$ra=function(a,b){if(a.B)return null;var c=a.j[0];if(a.range)var d=qz(a.range.start,Math.min(4096,Bz(a)));else{if(a.C&&0<=a.C.indexOf("/range/")||"1"===a.u.C.get("defrag")||"1"===a.u.C.get("otf"))return null;d=qz(0,4096)}d=new Az([new rz(5,c.j,d,"createProbeRequestInfo"+c.D,c.Ja)],a.C);d.J=b;d.B=a.B;return d};
Fz=function(a,b,c,d,e,f){f=void 0===f?0:f;mz.call(this,a,b,d,void 0);this.K=c;this.Uj=f;this.index=e||new hy};
asa=function(a,b,c,d,e){this.Ja=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
Gz=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""};
Hz=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
bsa=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};
csa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Iz=function(){this.j=[];this.u=null;this.J=0;this.B=[];this.D=!1;this.K="";this.C=-1};
dsa=function(a){var b=a.B;a.B=[];return b};
esa=function(){this.C=[];this.j=null;this.u={};this.B={}};
isa=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,k=null;"Period"===f.nodeName?k=fsa(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",k=gsa(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",k=hsa(a,f));if(null==k)return;k.update(e,c);g.bc(d,dsa(k))}g.bc(a.C,d);xaa(a.C,function(l){return 1E3*l.startSecs+l.j})};
jsa=function(a){a.j&&(a.j.j=[]);g.Af(a.u,function(b){b.j=[]});
g.Af(a.B,function(b){b.j=[]})};
fsa=function(a){a.j||(a.j=new Iz);return a.j};
gsa=function(a,b){a.u[b]||(a.u[b]=new Iz);return a.u[b]};
hsa=function(a,b){a.B[b]||(a.B[b]=new Iz);return a.B[b]};
Jz=function(a){var b=void 0===a?{}:a;a=void 0===b.Uj?0:b.Uj;var c=void 0===b.Ll?!1:b.Ll,d=void 0===b.qn?0:b.qn,e=void 0===b.Ye?0:b.Ye,f=void 0===b.yh?Infinity:b.yh,k=void 0===b.Ay?0:b.Ay;b=void 0===b.Lf?!1:b.Lf;hy.call(this);this.B=this.ww=-1;this.C=null;this.Hh=a;this.qn=d;this.Ll=c;this.Ye=e;this.yh=f;this.Ay=k;this.Lf=b};
Lz=function(a,b,c){b=Kz(a,b);return 0<=b&&(c||!a.segments[b].pending)};
Kz=function(a,b){return hc(a.segments,function(c){return b-c.Ja})};
Mz=function(a,b,c){c=void 0===c?{}:c;Fz.call(this,a,b,"",void 0,void 0,c.Uj||0);this.index=new Jz(c)};
Nz=function(a,b,c){mz.call(this,a,b);this.K=c;this.index=new hy;this.index.u=!1};
ksa=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.Qb*f;a.index.getLastSegmentNumber();return new Az([new rz(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,0)],d)};
lsa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.J;b=b.K.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,k=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=k)if(k=b.shift(),f=(f=l.exec(k))?+f[1]/1E3:0)k=(k=m.exec(k))?+k[1]:0,k+=1;else return;c.push(new gy(n,e,f,NaN,"sq/"+(n+1)));e+=f;k--}a.index.append(c)}};
Oz=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
Pz=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
Qz=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.J=!1;this.D=this.info.j.Tu()&&!this.info.zb};
Rz=function(a){return jra(a.j)};
msa=function(a,b){if(1!==a.info.j.info.containerType||a.info.zb||!a.info.le)return!0;a=Rz(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};
nsa=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b),d=c.Ns;c=new Qz(new rz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ja,a.info.startTime,a.info.duration,a.info.zb,b,0,!1),c.JG,a.B);a=new rz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ja,a.info.startTime,a.info.duration,a.info.zb+b,a.info.u-b,sz(a.info),a.info.le);return[c,new Qz(a,d,!1)]};
osa=function(a,b,c){var d;if(!(d=!vz(a.info,b.info)||a.info.le)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?hra(a.j,c.j[0]):1);d=c}if(d)return null;c=new rz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ja,a.info.startTime,a.info.duration,a.info.zb,a.info.u,sz(a.info),a.info.le);d=b.info;c.u+=d.u;c.range&&(c.J+=d.J);c.C=d.C;c.le=d.le;d=new iy;jy(d,a.j);jy(d,b.j);c=new Qz(c,d,a.B);c.u=b.u||a.u;if(a=c.info.range)a=c.j,a=!(1===a.j.length&&0<a.j[0].byteOffset);a&&(c.B=!1);return c};
psa=function(a){g.Sz(a.info.j.info)||a.info.j.info.Xe();if(-1!==a.C)return a.C;if(a.u&&pra(a.u))return a.C=pra(a.u),a.C;if(g.Sz(a.info.j.info)){var b=Rz(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;Ny(b,f);){var k=Oy(b,f);1936286840===k.type?e=k.data.getUint32(k.dataOffset+8):1836476516===k.type?e=g.Ky(k):1952867444===k.type&&isNaN(d)&&(d=g.Qy(k));f=Py(k.type)?f+8:f+k.size}!e&&c&&(e=Ly(c));b=d/e}else b=new Ty(Rz(a)),c=a.D?b:new Ty(new DataView(a.info.j.j.buffer)),d=ez(c),c=b.j,b.j=0,fz(b)?Xy(b,231)?(d=
$y(b)*d/1E9,b.j=c,b=d):(b.j=c,b=NaN):(b.j=c,b=NaN);a.C=b||a.info.B;return a.C};
rsa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=psa(a)+b;qsa(a,c);a.timestampOffset=b};
qsa=function(a,b){g.Sz(a.info.j.info)||a.info.j.info.Xe();a.C=b;if(g.Sz(a.info.j.info)){var c=Rz(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;Ny(c,f);){var k=Oy(c,f);isNaN(d)&&(1936286840===k.type?d=k.data.getUint32(k.dataOffset+8):1836476516===k.type&&(d=g.Ky(k)));if(1952867444===k.type){!d&&a&&(d=Ly(a));var l=g.Qy(k);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(k.data.getUint8(k.dataOffset)){var m=k.data,n=k.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else k.data.setUint32(k.dataOffset+
4,l)}f=Py(k.type)?f+8:f+k.size}return!0}c=new Ty(Rz(a));a=a.D?c:new Ty(new DataView(a.info.j.j.buffer));d=ez(a);a=c.j;c.j=0;if(fz(c)&&Xy(c,231))if(e=Yy(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.j+d,b&255),b>>>=8;c.j=a;b=!0}else b=!1;return b};
Tz=function(a,b){b=void 0===b?!1:b;var c=ssa(a);a=b?0:a.info.J;return c||a};
ssa=function(a){g.Sz(a.info.j.info)||a.info.j.info.Xe();if(a.u&&6===a.info.type)return a.u.Uj;if(g.Sz(a.info.j.info)){var b=Rz(a);var c=0;b=g.Sy(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=vra(d.value),c+=d.pJ[0]/d.uJ;c=c||NaN;if(!(0<=c))a:{c=Rz(a);b=a.info.j.j;for(var e=d=0,f=0;Ny(c,d);){var k=Oy(c,d);if(1836476516===k.type)e=g.Ky(k);else if(1836019558===k.type){!e&&b&&(e=Ly(b));if(!e){c=NaN;break a}var l=My(k.data,k.dataOffset,1953653094),m=e,n=My(l.data,l.dataOffset,1952868452);
l=My(l.data,l.dataOffset,1953658222);var p=By(n);By(n);p&2&&By(n);n=p&8?By(n):0;var q=By(l),t=q&1;p=q&4;var v=q&256,x=q&512,y=q&1024;q&=2048;var z=Cy(l);t&&By(l);p&&By(l);for(var E=t=0;E<z;E++){var J=v?By(l):n;x&&By(l);p&&0===E||!y||By(l);q&&By(l);t+=J}f+=t/m}d=Py(k.type)?d+8:d+k.size}c=f||NaN}c||g.Jv(new g.Is("Missing duration while parsing bmff",yz(a.info)))}else c=new Ty(Rz(a)),a=a.D?c:new Ty(new DataView(a.info.j.j.buffer)),c=Era(c,ez(a));return c};
tsa=function(a){var b=Rz(a);var c=(c=g.Jy(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.Jy(b,0,1836476516))?g.Ky(b):a?Ly(a):NaN);return c};
usa=function(a){if(!a.u){g.Sz(a.info.j.info)||a.info.j.info.Xe();if(g.Sz(a.info.j.info))var b=g.xra(Rz(a));else{b=new Ty(Rz(a));var c=b.j;b.j=0;var d=null,e=null;if(Vy(b,[408125543,307544935]))for(var f=b.j+Yy(b,!0);b.j<f;)if(29555!==Yy(b,!1))az(b);else for(var k=b.j+Yy(b,!0);b.j<k;)if(26568!==Yy(b,!1))az(b);else for(var l=b.j+Yy(b,!0);b.j<l;){var m=Yy(b,!1);if(17543===m){if(m=Cra(b),m=Iy(m))if(e)for(var n=g.r(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=m}else 17827===
m?(m=Cra(b),d||(d=m)):az(b)}b.j=c;b=e?new Hy(e,d):null}a.u=b}};
vsa=function(a){if(!a.J){if(g.Sz(a.info.j.info)){var b=Rz(a);var c=My(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=Dra(new Ty(Rz(a)));b&&(a.info.j.j=b,a.J=!0)}};
Uz=function(a,b,c,d,e){mz.call(this,a,b,c,d);this.K=null;this.index=e?new e.NativeSegmentIndex:new Oz};
Vz=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var k=qz(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-k.start),p=Math.min(k.end+1,c+d)-(k.start+n);a.index.getLastSegmentNumber();e.push(new rz(3,a,k,"getRequestInfoForRange",f,l,m,n,p,0));if(k.start+n+p>=c+d)break}e.length||g.Iv(new g.Is("b189619593",""+b,""+c,""+d));return new Az(e)};
Wz=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
wsa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
Yz=function(a,b,c,d,e,f,k,l,m){this.width=a;this.height=b;this.quality=f||Xz(a,b);this.j=g.Kx[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=k)||(a=g.Kx[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||""};
Xz=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=Zz[0];for(var d=0;d<Zz.length;d++){var e=Zz[d],f=g.Kx[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
bA=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Qb||(c.Qb=16E3);Object.assign(this,c);this.containerType=$z(b);this.j=aA[this.Yb()]||""};
cA=function(a){return"9"===a.j||"("===a.j||"9h"===a.j||"(h"===a.j};
dA=function(a){return"9h"===a.j||"(h"===a.j};
eA=function(a){return"1"===a.j||"1h"===a.j};
Rqa=function(a){return"mac3"===a.j||"meac3"===a.j||"m"===a.j};
Qqa=function(a){return"MAC3"===a.j||"MEAC3"===a.j||"M"===a.j};
g.Sz=function(a){return 1===a.containerType};
fA=function(a){return"application/x-mpegURL"===a.mimeType};
xsa=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.j)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Qb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Qb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
gA=function(a){return a.includes("vtt")||a.includes("text/mp4")};
$z=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};
ysa=function(a,b,c,d,e){var f=new Wz;b in g.Kx||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.Kx[b],d=Math.round(16*e/9));d=new Yz(d,e,0,null,void 0,b);a=unescape(a.replace(/&quot;/g,'"'));return new bA(c,a,{audio:f,video:d})};
zsa=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Vt)?void 0:c.toFixed(0))+", "+(null==(d=a.Qb)?void 0:d.toFixed(0))+")"};
g.hA=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.iA=function(){fv.apply(this,arguments)};
jA=function(){var a=g.Ia("yt.player.utils.videoElement_");a||(a=g.ci("VIDEO"),g.Ha("yt.player.utils.videoElement_",a));return a};
kA=function(a){var b=jA();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Asa=function(a){try{var b=lA('video/mp4; codecs="avc1.42001E"')||lA('video/webm; codecs="vp9"');return(lA('audio/mp4; codecs="mp4a.40.2"')||lA('audio/webm; codecs="opus"'))&&(b||!a)||kA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
lA=function(a){if(/opus/.test(a)&&g.mA&&!Zp("38")&&!g.$r())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!fma())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!kA(a)};
nA=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
oA=function(){var a=jA();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
pA=function(){var a=jA();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
qA=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
rA=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)};
sA=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};
tA=function(a,b){return 0<=sA(a,b)};
Bsa=function(a,b){if(!a)return NaN;b=sA(a,b);return 0<=b?a.start(b):NaN};
uA=function(a,b){if(!a)return NaN;b=sA(a,b);return 0<=b?a.end(b):NaN};
vA=function(a){return a&&a.length?a.end(a.length-1):NaN};
Csa=function(a,b){a=uA(a,b);return 0<=a?a-b:0};
wA=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 qA(d,e)};
xA=function(a,b,c,d){g.iv.call(this);var e=this;this.Wd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.SN={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}};
g.jv(this.Wd,this.SN);this.Tz=this.isActive};
yA=function(a,b,c,d,e){g.iv.call(this);var f=this;this.hc=a;this.Ef=b;this.id=c;this.containerType=d;this.isVideo=e;this.wO=this.WB=this.Bf=null;this.appendWindowStart=this.timestampOffset=0;this.tM=qA([],[]);this.FA=!1;this.qz=Dsa?[]:void 0;this.Qc=function(l){return f.ea(l.type,f)};
var k;if(null==(k=this.hc)?0:k.addEventListener)this.hc.addEventListener("updateend",this.Qc),this.hc.addEventListener("error",this.Qc)};
zA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
AA=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
BA=function(a,b,c){c=void 0===c?!1:c;g.G.call(this);this.mediaSource=a;this.Ef=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.iA(this);g.H(this,this.events);this.By=new AA(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Ef.webkitMediaSourceURL,!0);a=this.mediaSource||this.Ef;gv(this.events,a,["sourceopen","webkitsourceopen"],this.NZ);gv(this.events,a,["sourceclose","webkitsourceclose"],this.MZ)};
Esa=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Fsa=function(a,b){CA(a)?g.vi(function(){b(a)}):a.callback=b};
CA=function(a){try{return"open"===DA(a)}catch(b){return!1}};
DA=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Ef.webkitSourceState){case a.Ef.SOURCE_OPEN:return"open";case a.Ef.SOURCE_ENDED:return"ended";default:return"closed"}};
EA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Gsa=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Wd:a.j,f=a.u.isView()?a.u.Wd:a.u,k=new BA(a.mediaSource,a.Ef,!0);k.By=a.By;e=new xA(e,b,c,d);b=new xA(f,b,c,d);k.j=e;k.u=b;g.H(k,e);g.H(k,b);CA(a)||a.j.gD(a.j.Fd());return k};
Hsa=function(a,b){return FA(function(c,d){return g.Jr(c,d,4,1E3)},a,b)};
g.Isa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=sy(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
FA=function(a,b,c){b.match(Jsa);return a(b,c).then(function(d){var e=g.Isa(d.xhr);return e?FA(a,e,c):d.xhr})};
GA=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.iv.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.Ia=this.duration=0;this.Lf=this.K=this.isLive=this.u=!1;this.yh=this.Ye=0;this.isOtf=this.fg=!1;this.Aa=(0,g.R)();this.Y=Infinity;this.j={};this.state=this.ma=0;this.timeline=null;this.isManifestless=!1;this.Z=[];this.B=null;this.ra=0;this.La="";this.va=NaN;this.J=this.D=this.C=this.timestampOffset=this.S=0;this.Ua=!!b&&b.jb("html5_live_nonzero_first_segment_start_time");
this.Xa=!!b&&b.jb("html5_live_self_init_segments");this.withCredentials=!b||!b.jb("html5_manifest_without_credentials");this.Ga=!!b&&b.jb("disable_html5_manifest_namespace_redux");this.Ta=b&&b.jb("disable_html5_duration_caching")?Infinity:10;Ksa=!!b&&b.jb("html5_modern_vp9_mime_type")};
Vqa=function(a){return g.Df(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
Wx=function(a){return g.Df(a.j,function(b){return!!b.info.ke})};
Lsa=function(a){return g.Df(a.j,function(b){return gA(b.info.mimeType)})};
Msa=function(a){return g.Df(a.j,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
Nsa=function(a){return g.Df(a.j,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
Osa=function(a){return g.Df(a.j,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
Psa=function(a){return g.Df(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Qsa=function(a){return Ef(a.j,function(b){return b.info.video?b.pI():!0})};
Qx=function(a){return g.Df(a.j,function(b){return dy(b.u.j)})};
Rsa=function(a){return g.Df(a.j,function(b){return!(b.index instanceof Oz)})};
HA=function(a,b){a.j[b.info.id]=b};
IA=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var k=(a.size||"640x360").split("x");k=new Yz(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=Ssa(d,k)}var l;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var m=new Wz(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(l=new g.hA(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&
a.caption_vss_id&&a.caption_language_code&&(n=new wsa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var t={};for(var v=g.r(a.drm_families.split(",")),x=v.next();!x.done;x=v.next())x=x.value,t[x]=b[x]}return new bA(e,d,{audio:m,video:k,Ic:l,ke:t,Qb:f,Vt:c,contentLength:p,lastModified:q,captionTrack:n,streamType:+a.stream_type})};
Tsa=function(a){return Zm(a,function(b){return 3===+b.stream_type})?3:0};
Usa=function(a,b){return a.timeline?cc(a.timeline.C,b):a.Z.length?cc(a.Z,b):[]};
JA=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.$x(a,!0);a.set("alr","yes");c&&(c=$qa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Ysa=function(a,b){var c=Gz(b,"id");c=c.replace(":",";");var d=Gz(b,"mimeType"),e=Gz(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(Gz(b,"bandwidth"))/8;var f=Number(Hz(b,"BaseURL").getAttribute(KA(a,"contentLength"))),k=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(Gz(b,"width"));var m=Number(Gz(b,"height")),n=Number(Gz(b,"frameRate")),p=Vsa(Gz(b,KA(a,"projectionType")));a:switch(Gz(b,KA(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
2;break a;default:q=0}l=new Yz(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(Gz(b,"audioSamplingRate"));var v=Number(Gz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Wsa(Gz(b,KA(a,"spatialAudioType")));t=new Wz(t,v,m);a:{v=Gz(b,"lang")||"und";if(m=Hz(b,"Role"))if(p=Gz(m,"value")||"",g.Jf(Xsa,p)){m=v+"."+Xsa[p];n="main"===p;a=Gz(b,KA(a,"langName"))||v+" - "+p;v=new g.hA(a,m,n);break a}v=void 0}}if(b=Hz(b,"ContentProtection"))if("https://web.archive.org/web/20220414023957/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 bA(c,d,{audio:t,video:l,Ic:v,ke:x,Qb:e,Vt:k,contentLength:f})};
Vsa=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}};
Wsa=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}};
$sa=function(a,b){b=void 0===b?"":b;a.state=1;a.Aa=(0,g.R)();return Hsa(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=hda(d,kh(c,null)).getElementsByTagName("MPD")[0];a.Y=1E3*bsa(Gz(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ga){b:{if(c.attributes){d=g.r(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20220414023957/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.La=d}a.isLive=Infinity>a.Y&&a.isLivePlayback;a.Ia=Number(Gz(c,KA(a,"earliestMediaSequence")))||0;if(d=Date.parse(csa(Gz(c,KA(a,"mpdResponseTime")))))a.ra=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Xl(c.getElementsByTagName("Period"),a.r_,a);a.state=2;a.ea("loaded");Zsa(a)}return a}).Di(function(c){if(c instanceof Hr){var d=c.xhr;
a.ma=d.status}a.state=3;a.ea("loaderror");return Ai(d)})};
ata=function(a,b,c){return $sa(new GA(a,b,c),a)};
LA=function(a){return a.isLive&&(0,g.R)()-a.Aa>=a.Y};
Zsa=function(a){var b=a.Y;isFinite(b)&&(LA(a)?a.refresh():(b=Math.max(0,a.Aa+b-(0,g.R)()),a.B||(a.B=new g.L(a.refresh,b,a),g.H(a,a.B)),a.B.start(b)))};
bta=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
MA=function(a){return a.C?a.C-(a.S||a.timestampOffset):0};
NA=function(a){return a.D?a.D-(a.S||a.timestampOffset):0};
OA=function(a){if(!isNaN(a.va))return a.va;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ta&&(a.va=b);return b}if(a.isLive&&(d=b[c],d.Uj))return d.Uj}return NaN};
cta=function(a,b){a=Of(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c<a.getLastSegmentNumber()?a.getStartTime(c+1):NaN};
dta=function(a,b){g.Af(a.j,function(c){g.Af(b,function(d,e){var f=c.u;f.j.set(e,d);f.C.set(e,d);f.B&&f.B.set(e,d)})})};
eta=function(a,b){if(!a.j["0"]){var c=new bA("0","fakesb",{video:new Yz(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new Fz(new g.$x("https://web.archive.org/web/20220414023957/http://www.youtube.com/videoplayback"),c,"fake"):new Uz(new g.$x("https://web.archive.org/web/20220414023957/http://www.youtube.com/videoplayback"),c,new oz(0,0),new oz(0,0))}};
PA=function(a,b,c){for(var d in a.j){var e=gA(a.j[d].info.mimeType)||a.j[d].info.isVideo();if(c===e){e=a.j[d].index;var f=Kz(e,b);0<=f&&e.segments.splice(f,1)}}};
KA=function(a,b){return a.Ga?"yt:"+b:a.La+":"+b};
fta=function(a){a.D=0;a.C=0;a.J=0};
Ssa=function(a,b){null===QA&&(QA=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(Ksa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return!QA&&0<a.indexOf("vp09.00")?a='video/webm; codecs="vp9"':!QA&&0<a.indexOf("vp09.02")&&(a='video/webm; codecs="vp9.2"'),a;if(!QA&&!gta||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;var c="00",d="08",e="01",f="01",k="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(k=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,k,"00"].join(".")+'"'};
hta=function(){var a=g.hw("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.sh(Math.floor(b),0,100),muted:!!a.muted}};
ita=function(a){g.gw("yt-player-bandwidth",a,2592E3)};
RA=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Fpa()>(0,g.R)()-1E3*a))return 0;a=g.hw("yt-player-quality");if("string"===typeof a){if(a=g.Kx[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
jta=function(){var a=g.hw("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};
kta=function(){var a={values:{},En:{}};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};
lta=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
TA=function(a,b){return+SA()[lta(a,b)]||8192};
SA=function(){return g.hw("yt-player-performance-cap")||{}};
mta=function(a){g.gw("yt-player-watch-later-pending",a)};
nta=function(){return!!g.hw("yt-player-headers-readable")};
ota=function(a){g.gw("yt-player-playback-on-reload",a)};
pta=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.qta=function(){var a=g.hw("yt-player-caption-language-preferences");return a?a:[]};
rta=function(){this.Vb=this.j=this.Ga=this.J=this.D=this.ma=this.Aa=this.Xa=this.Ua=!1;this.S=this.K=0;this.kb=!1;this.gb=!0;this.ib=!1;this.Y=0;this.ra=!1;this.Kb=Infinity;this.cF=!1;this.kc=!0;this.Ta=this.Ia=this.La=!1;this.u={};this.Ib=this.B=this.va=!1;this.Pe=0;this.rb=!1};
Wqa=function(a){if(a.Xa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.ra&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.Z&&(b=(sta[a.Z]||[a.Z]).concat(b));return b};
Uqa=function(a){var b=["o","a","A"];1===a.Pe&&(a.ma&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.J&&(b=["meac3","MEAC3"].concat(b)));a.Ua&&(b=["so","sa"].concat(b));!a.Vb||a.Ga||a.C||b.unshift("a");a.Aa&&b.unshift("ah");a.C&&(b=(sta[a.C]||[a.C]).concat(b));return b};
UA=function(a,b,c){b=void 0===b?{}:b;if(Tx(a.u,Ux.AV1_CODECS)&&Tx(a.u,Ux.HEIGHT)&&Tx(a.u,Ux.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=pta();if(d)return b.localPref=d}catch(k){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;ema()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(k){return eA(k)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(TA("1",c.fps),TA("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=TA("1",30),b.perfCap30=c,a=Math.min(a,c),c=TA("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
WA=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.j={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.S=!!d&&d.jb("edge_nonprefixed_eme");this.D=d?g.VA(d,"html5_hdcp_probing_stream_url"):""};
YA=function(a){return a.S?!1:!a.keySystemAccess&&!!XA()&&"com.microsoft.playready"===a.keySystem};
ZA=function(a){return"com.microsoft.playready"===a.keySystem};
$A=function(a){return!a.keySystemAccess&&!!XA()&&"com.apple.fps.1_0"===a.keySystem};
aB=function(a){return"com.youtube.fairplay"===a.keySystem};
g.rB=function(a){return"fairplay"===a.flavor};
XA=function(){var a=window,b=a.MSMediaKeys;cs()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
tB=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.mA&&!g.$r())return Zp("45");if(g.ot||g.Ec)return a.jb("edge_nonprefixed_eme");if(g.Fx)return Zp("47");if(g.Qs){if(a.jb("html5_enable_safari_fairplay"))return!1;if(a=g.sB(a,"html5_safari_desktop_eme_min_version"))return Zp(a)}return!0};
tta=function(a,b,c,d){var e=as(),f=(c=e||c&&cs())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.u(f),g.u(uB.playready)):[].concat(g.u(uB.playready),g.u(f))};
vB=function(a,b,c,d,e){d=void 0===d?!1:d;g.G.call(this);this.experiments=b;this.useCobaltWidevine=d;this.xa=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c)};
vta=function(a,b){a.callback=b;a.B=[];tB(a.experiments)?wB(a):uta(a)};
wB=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.B);else{var b=a.j[0],c=a.u[b],d=wta(a,c);navigator.requestMediaKeySystemAccess(b,d).then(ir(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(ZA(c)){e=jA();for(var f=g.r(Object.keys(a.C[c.flavor])),k=f.next();!k.done;k=f.next())k=k.value,c.j[k]=!!e.canPlayType(k)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),k=f.next();!k.done;k=f.next())xta(a,c,k.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())xta(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),wB(a)):a.callback(a.B)}}),ir(function(){a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;
a.D||a.j.shift();wB(a)}))}};
xta=function(a,b,c){a.N("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
wta=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};ZA(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),k=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.mA&&Yr("windows nt")&&!a.N("html5_drm_enable_moho")||k.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),k.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&(is()||Zr())&&(a.xa("swcrypto",{}),k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
uta=function(a){if(XA()&&g.Qs)a.B.push(new WA("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=yta(),c=g.Pb(a.j,function(d){var e=a.u[d],f=!1,k=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),k=k||0===l.indexOf("video/"));return f&&k});
c&&a.B.push(a.u[c]);a.j=[]}a.callback(a.B)};
yta=function(){var a=XA();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=jA();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
zta=function(){this.j=0};
Ata=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=kr(b||"","&");a={};b=g.r(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.sB=function(a,b){return Number(a.flags[b])||0};
g.VA=function(a,b){return(a=a.flags[b])?a.toString():""};
xB=function(a,b,c){this.experiments=a;this.ma=b;this.ra=void 0===c?!1:c;this.K=!!g.Ia("cast.receiver.platform.canDisplayType");this.J={};this.Y=!1;this.u=new Map;this.S=!0;this.D=!this.experiments.jb("html5_disable_protected_hdr");this.j=this.B=!1;this.Z=this.experiments.jb("html5_disable_vp9_encrypted");a=g.Ia("cast.receiver.platform.getValue");this.C=!this.K&&a&&a("max-video-resolution-vpx")||null};
Sqa=function(a,b,c){c=void 0===c?1:c;var d=b.Yb();if("0"===d)return!0;var e=b.mimeType;if(b.Xe()&&as()&&a.experiments.jb("html5_appletv_disable_vp9"))return"dwebm";if(eA(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Tx(a,Ux.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.mA?Zp(53):g.Fx&&Zp(64)))return"dopus";var f=c;f=void 0===
f?1:f;c={};b.video&&(b.video.width&&(c[Ux.WIDTH.name]=b.video.width),b.video.height&&(c[Ux.HEIGHT.name]=b.video.height),b.video.fps&&(c[Ux.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[Ux.EOTF.name]=b.video.u),b.Qb&&(c[Ux.BITRATE.name]=8*b.Qb*f),"("===b.j&&(c[Ux.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[Ux.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[Ux.CHANNELS.name]=b.audio.numChannels);a.B&&cA(b)&&
(c[Ux.EXPERIMENTAL.name]="allowed");f=g.r(Object.keys(Ux));for(var k=f.next();!k.done;k=f.next())if(k=Ux[k.value],c[k.name]&&!(k===Ux.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.jb("html5_ignore_h264_framerate_cap")&&k===Ux.FRAMERATE&&("H"===b.j||"h"===b.j)||k===Ux.DECODETOTEXTURE&&!a.experiments.jb("html5_decode_to_texture_cap")))if(Tx(a,k))if(a.C){if(a.C[k.name]<c[k.name])return k.name}else e=e+"; "+k.name+"="+c[k.name];else if(dA(b)&&k===Ux.EOTF)return"dvp92";!a.experiments.jb("disable_html5_cast_hdcp_filter2")&&
a.K&&b.video&&1080<b.video.j&&b.ke&&(e+="; hdcp=2.2");return"227"!==d||a.experiments.jb("html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.jb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
yB=function(a){var b=Zr()&&!Zp(29),c=Yr("google tv")&&Yr("chrome")&&!Zp(30);a=as()&&a.experiments.jb("apple_tv_cobalt_default_mse_killswitch");return b||c||a?!1:Esa()};
Bta=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.j)&&Sqa(a,e,c)){d=e.video.j;break}return d};
g.zB=function(a,b){b=void 0===b?!1:b;return yB(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(jA(),"application/x-mpegURL")?!0:!1};
Tx=function(a,b){b.name in a.J||(a.J[b.name]=Cta(a,b));return a.J[b.name]};
Cta=function(a,b){if(a.C)return!!a.C[b.name];if(b===Ux.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===Ux.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)};
Dta=function(a){a.S=!1;a.j=!0};
Eta=function(a){a.B||(a.B=!0,a.j=!0)};
Fta=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).EV);a.u.set(b,{EV:c+1,KQ:Math.pow(2,c+1)});a.j=!0};
Hta=function(a){return Gta.then(a)};
AB=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;Ita(a)}};
Kta=function(a){a.j||(Jta(function(){Ita(a)}),a.j=!0)};
Ita=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.R)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Jr(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.R)();5<a.queue.length&&Kta(a)}};
BB=function(){g.iv.call(this);this.items={}};
CB=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
IB=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!Lta){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);DB=new Uint8Array(256);EB=CB(256);FB=CB(256);GB=CB(256);HB=CB(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;DB[f]=e;b=e<<1^(e>>7&&283);var k=b^e;EB[f]=b<<24|e<<16|e<<8|k;FB[f]=k<<24|EB[f]>>>8;GB[f]=e<<24|FB[f]>>>8;HB[f]=e<<24|GB[f]>>>8}Lta=!0}e=CB(44);for(c=0;4>c;c++)e[c]=
a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(DB[a>>16&255]^d)<<24|DB[a>>8&255]<<16|DB[a&255]<<8|DB[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
Mta=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.j=16};
Nta=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],k=3;0<=k&&!(a.counter[k]=-~a.counter[k]);k--);for(var l,m,n=4;40>n;)k=EB[c>>>24]^FB[d>>16&255]^GB[e>>8&255]^HB[f&255]^b[n++],l=EB[d>>>24]^FB[e>>16&255]^GB[f>>8&255]^HB[c&255]^b[n++],m=EB[e>>>24]^FB[f>>16&255]^GB[c>>8&255]^HB[d&255]^b[n++],f=EB[f>>>24]^FB[c>>16&255]^GB[d>>8&255]^HB[e&255]^b[n++],c=k,d=l,e=m;a=a.u;k=b[40];a[0]=DB[c>>>24]^k>>>24;a[1]=DB[d>>16&255]^k>>16&255;a[2]=DB[e>>8&255]^
k>>8&255;a[3]=DB[f&255]^k&255;k=b[41];a[4]=DB[d>>>24]^k>>>24;a[5]=DB[e>>16&255]^k>>16&255;a[6]=DB[f>>8&255]^k>>8&255;a[7]=DB[c&255]^k&255;k=b[42];a[8]=DB[e>>>24]^k>>>24;a[9]=DB[f>>16&255]^k>>16&255;a[10]=DB[c>>8&255]^k>>8&255;a[11]=DB[d&255]^k&255;k=b[43];a[12]=DB[f>>>24]^k>>>24;a[13]=DB[c>>16&255]^k>>16&255;a[14]=DB[d>>8&255]^k>>8&255;a[15]=DB[e&255]^k&255};
LB=function(){if(!JB&&!g.ot){if(KB)return KB;var a;KB=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=KB)?0:b.importKey)&&(null==(c=KB)?0:c.sign)&&(null==(d=KB)?0:d.encrypt))return KB;KB=void 0}};
g.MB=function(a){this.C=a};
g.NB=function(a){this.u=a};
OB=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()};
Ota=function(a,b,c){for(var d=a.K,e=a.j[0],f=a.j[1],k=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],t,v,x,y=0;64>y;)16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=q+PB[y]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),v=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&k^f&k),q=t+v,l+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=
d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=p+PB[y]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),v=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+v,k+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=n+PB[y]+x+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&l^
~k&m),v=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+v,f+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=m+PB[y]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&k^~f&l),v=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),x=q,q=l,l=x,x=p,p=k,k=x,x=n,n=f,f=x,m=e+t,e=t+v,y++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=k+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
Qta=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var k=e%256;d[c-f]=k;e=(e-k)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Pta(a);return b};
Pta=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.K=[];a.K.length=64;a.C=0;a.u=0};
Rta=function(a){this.j=a};
Sta=function(a,b,c){a=new OB(a.j);a.update(b);a.update(c);b=Qta(a);a.update(a.D);a.update(b);b=Qta(a);a.reset();return b};
Tta=function(a){this.u=a};
Uta=function(a,b,c,d){var e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(a.j){m.Va(2);break}e=a;return g.A(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),k={name:"HMAC",hash:"SHA-256"},g.A(m,d.sign(k,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
Vta=function(a,b,c){a.B||(a.B=new Rta(a.u));return Sta(a.B,b,c)};
Wta=function(a,b,c){var d,e;return g.B(function(f){if(1==f.j){d=LB();if(!d)return f.return(Vta(a,b,c));g.ta(f,3);return g.A(f,Uta(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.va(f);g.Jv(e);JB=!0;return f.return(Vta(a,b,c))})};
RB=function(){this.B=this.j=0;this.u=Array.from({length:QB.length}).fill(0)};
Xta=function(){};
Yta=function(a){this.name=a;this.startTimeMs=(0,g.R)();this.j=!1};
Zta=function(){this.profiles=new Xta};
SB=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new RB),a.profiles[b].Am(c,d))};
TB=function(){};
UB=function(){g.MB.apply(this,arguments)};
VB=function(){g.NB.apply(this,arguments)};
$ta=function(a,b){this.encryptedClientKey=b;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
aua=function(a){a.u||(a.u=new UB(a.j));return a.u};
WB=function(a){try{return Fc(a)}catch(b){return null}};
bua=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?WB(b.clientKey):null;var c=b.encryptedClientKey?WB(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.R)():null;a&&c&&d&&(this.j=new $ta(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=WB(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
XB=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
YB=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.J=cua(this);this.B=c;this.D=d};
cua=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
ZB=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.ic(a.J,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.J[Math.round(b*((a.u?a.j:a.valueIndex)-1))]]||0};
dua=function(a){var b=new zta;this.policy=a;this.ra=b;this.Y=this.ma=0;this.D=-1;this.S=!1;this.Z=this.C=$B();this.K=new YB(4,1,.6,.4);this.j=new YB(10,1,.5,.4);this.B=a.j?new XB(a.u):new YB(a.u,20,.5,.4);this.J=new YB(5,1,.25);this.u=new YB(30,1,.5);a=g.hw("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.S=!0);this.B.Nh(this.policy.D,b);0<a.delay&&this.K.Nh(1,Math.min(a.delay,2));0<a.stall&&this.j.Nh(1,a.stall);0<a.init&&(this.Z=Math.min(a.init,this.Z));this.D=$B()};
aC=function(a){a=a.K.rh();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
eua=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.ma+=b)};
bC=function(a){a=a.B.rh();return 0<a?a:1};
cC=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=bC(a);d=1/((a.j.rh()||0)+1/d);var e=a.J.rh();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+aC(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((ZB(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
dC=function(a){return{delay:aC(a),stall:a.j.rh()||0,byterate:bC(a),init:a.Z}};
eC=function(a){-1<a.D&&3E4<$B()-a.D&&(ita(dC(a)),a.D=$B(),a.S=!0)};
fua=function(a){return 4E3<=$B()-a.C};
gua=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.j=!1};
iua=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.G.call(this);var c=this;this.values=a;this.En=b;this.u={};this.B=this.j=0;this.C=new g.L(function(){hua(c)},1E4);
g.H(this,this.C)};
fC=function(a,b){jua(a,b);return a.values[b]&&a.En[b]?a.values[b]/Math.pow(2,a.j/a.En[b]):0};
jua=function(a,b){a.values[b]||(b=kta(),a.values=b.values||{},a.En=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
hua=function(a){var b=kta();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]=fC(a,e);a.u=c}b=a.En;c={};c.values=a.u;c.halfLives=b;g.gw("yt-player-memory",c,2592E3)};
gC=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
hC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
iC=function(a,b){return void 0===b||null===b?a:Number(b)};
jC=function(a,b){return void 0===b||null===b?a:b.toString()};
kC=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(kua))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
lC=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Q("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
KC=function(a,b,c){g.G.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.qd=this.ud=this.La=this.Ag=this.userDisplayName=this.userDisplayImage=this.Ui="";this.deviceParams={};this.controlsType="0";this.qf=NaN;this.bd=!1;this.Ne=(0,g.R)();this.ib=0;this.Wj=this.vl=!1;this.hk=!0;this.Vj=this.De=!1;this.pk=null;this.C=!1;this.Y=0;a=a?g.Uf(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new Ata(b?
b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.rb=b?b.serializedForcedExperimentIds:jC("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)&&!this.N("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:jC("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(y){d=""}this.Id=d;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.j=gC(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=
b.device,d.brand&&(this.deviceParams.cbrand=d.brand),d.browser&&(this.deviceParams.cbr=d.browser),d.browserVersion&&(this.deviceParams.cbrver=d.browserVersion),this.deviceParams.c=d.interfaceName||"WEB",this.deviceParams.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.deviceParams.ctheme=d.interfaceTheme),this.deviceParams.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.deviceParams.cmodel=d.model),d.network&&(this.deviceParams.cnetwork=d.network),d.os&&(this.deviceParams.cos=d.os),
d.osVersion&&(this.deviceParams.cosver=d.osVersion),d.platform&&(this.deviceParams.cplatform=d.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.N("wpcc_loader_url_killswitch")?this.loaderUrl=this.j||mC(this)&&b.loaderUrl?b.loaderUrl||"":this.Id:this.loaderUrl=this.j||mC(this)&&a.loaderUrl?jC("",a.loaderUrl):this.Id;this.N("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=jC("",a.embedsTokenValue));this.B=Dw(this.loaderUrl,
lua);d=this.loaderUrl;var e=void 0===e?!1:e;this.Il=Cw(Dw(d,mua),d,e,"Trusted Ad Domain URL");this.Ua=gC(!1,a.privembed);this.protocol=0===this.Id.indexOf("http:")?"http":"https";this.ma=Ew((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Ew(this.Id)||this.protocol+"://www.youtube.com/";e=b?b.eventLabel:a.el;d="detailpage";"adunit"===e?d=this.j?"embedded":"detailpage":"embedded"===e||this.B?d=hC(d,e,nua):e&&(d="embedded");this.Ia=d;moa();e=null;d=b?b.playerStyle:a.ps;var f=g.Sb(oua,d);!d||f&&!this.B||
(e=d);this.playerStyle=e;this.S=(this.D=g.Sb(oua,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Hl=!this.S;this.Aa=gC(!1,a.disableplaybackui);this.disablePaidContentOverlay=gC(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=gC(!1,null==b?void 0:b.disableSeek);this.Pd=this.N("variable_playback_rate")?!0:jA().defaultPlaybackRate?nC||g.hs||oC?g.Fx&&Zp("20")||g.mA&&Zp("4")||g.pC&&Zp("11")||ds():!(g.pC&&!Yr("chrome")||nC||Yr("android")||Yr("silk")):!1;
this.Dl=gC(!1,a.enable_faster_speeds);this.isMobile=gC("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.bk=gs()||is();this.isMobile?e=!this.D:(e=Number(Date.now()/1E3),d=g.qs.getInstance(),e=this.N("block_desktop_background_playback_with_mobile_cookie")&&d&&e>Number(d.get("dhmu",e.toString())));this.Gl=e;this.va=pA();this.Vm=g.qC;this.ol=gC(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Tg=!(!b||!b.embedsEnablePfpImaIntegration||this.N("embeds_pfp_ima_integration_killswitch"));
this.ra=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.N("embeds_web_enable_utm_params"));this.pfpChazalUi=this.Tg||gC(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.N("embeds_pfp_chazal_ui_killswitch"));var k;b?void 0!==b.hideInfo&&(k=!b.hideInfo):k=a.showinfo;this.fk=g.rC(this)&&!this.ol||gC(!sC(this)&&!tC(this)&&!this.D,k);this.ql=b?!!b.mobileIphoneSupportsInlinePlayback:gC(!1,a.playsinline);k=this.isMobile&&uC&&null!=vC&&0<vC&&2.3>=vC;e=b?b.useNativeControls:a.use_native_controls;this.J=g.rC(this)&&
this.isMobile;d=this.isMobile&&!this.J;e=wC(this)||!k&&gC(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.cf=this.isMobile;this.color=hC("red",b?b.progressBarColor:a.color,pua);this.Tm="3"===this.controlsType||gC(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Vb=!this.j;this.gk=(e=!this.Vb&&!tC(this)&&!this.S&&!this.D&&!sC(this))&&!this.Tm&&"1"===this.controlsType;this.Oc=g.xC(this)&&e&&"0"===this.controlsType&&!this.gk;this.Ym=this.Um=
k;this.kc=("3"===this.controlsType||this.isMobile||gC(!1,a.use_media_volume))&&!this.J;this.jk=yC&&!g.sc(601)?!1:!0;this.Fl=this.j||!1;this.Me=tC(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=jC("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.B||gC(!0,l);k=!0;b&&b.disableMdxCast&&(k=!1);this.kb=this.N("enable_cast_for_web_unplugged")&&g.zC(this)&&k||this.N("enable_cast_on_music_web")&&g.AC(this)&&k||l&&
k&&"1"===this.controlsType&&!this.isMobile&&(tC(this)||g.xC(this)||g.BC(this))&&!g.CC(this);this.Xm=nA()||oA();l=b?!!b.supportsAutoplayOverride:gC(!1,a.autoplayoverride);this.Si=!this.isMobile&&!Yr("nintendo wiiu")&&!Yr("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:gC(!1,a.mutedautoplay);k=this.N("embeds_enable_muted_autoplay")&&g.rC(this);this.Qe=l&&k&&this.va&&!wC(this);l=(tC(this)||sC(this))&&"blazer"===this.playerStyle;this.Th=b?!!b.disableFullscreen:!gC(!0,a.fs);this.gb=!this.Th&&(l||g.bv());
this.Pj=this.N("uniplayer_block_pip")&&(Zr()&&Zp(58)&&!is()||fs);l=g.rC(this)&&!this.ol;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Kc=l||gC(!this.D,m);this.ul=gC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.K=is()&&0<vC&&4.4>=vC?"_top":"_blank";this.Pe=g.BC(this);this.Ri=gC("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "books":m="gb";break;case "docs":m=
"gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Ga=m;this.authUser=jC("",b?b.authorizedUserIndex:a.authuser);this.Ee=g.rC(this)&&(this.Ua||this.N("embeds_web_enable_hiding_login_buttons")&&(!ama()||this.bk)||this.N("embeds_web_enable_always_hiding_login_buttons"));var n;b?void 0!==b.disableWatchLater&&
(n=!b.disableWatchLater):n=a.showwatchlater;this.wl=((m=!this.Ee)||!!this.authUser&&m)&&gC(!this.S,this.B?n:void 0);this.Qg=b?b.isMobileDevice||!!b.disableKeyboardControls:gC(!1,a.disablekb);this.loop=gC(!1,a.loop);this.pageId=jC("",!this.N("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Wm=gC(!0,a.canplaylive);this.Ib=gC(!1,a.livemonitor);this.disableSharing=gC(this.D,b?b.disableSharing:a.ss);(n=b&&this.N("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:
a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.yh(n,m))):n=null;this.lk=n;this.mute=b?!!b.startMuted:gC(!1,a.mute);this.storeUserVolume=!this.mute&&gC("0"!==this.controlsType,b&&!this.N("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:hC(void 0,n,DC);this.captionsLanguagePreference=
b?b.captionsLanguagePreference||"":jC("",a.cc_lang_pref);n=hC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,DC);"3"===this.controlsType&&2===n&&(n=3);this.Xa=n;this.Qf=b?b.hl||"en_US":jC("en_US",a.hl);this.region=b?b.contentRegion||"US":jC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":jC("en",a.host_language);this.Bl=!this.Ua&&Math.random()<g.sB(this.experiments,"web_player_api_logging_fraction");this.Ta=!this.Ua;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:
gC(!0,a.deviceHasDisplay);this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.qf=iC(this.qf,a.ismb);this.Hl?(n=a.vss_host||"s.youtube.com","s.youtube.com"===n&&(n=EC(this.ma)||"www.youtube.com")):n="video.google.com";this.nk=n;FC(this,a,!0);this.Z=new BB;g.H(this,this.Z);m=b?b.innertubeApiKey:jC("",a.innertube_api_key);l=b?b.innertubeApiVersion:jC("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:jC("",a.innertube_context_client_version);m=g.P("INNERTUBE_API_KEY")||m;l=g.P("INNERTUBE_API_VERSION")||
l;k=g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");e=GC(this);d="number"===typeof this.deviceParams.c?Number(this.deviceParams.c):Object.keys(qua).indexOf(this.deviceParams.c);this.Uh={innertubeApiKey:m,innertubeApiVersion:l,IB:k,SG:e,eO:d,innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,UG:this.hostLanguage,TG:this.region,fO:g.P("INNERTUBE_HOST_OVERRIDE")||"",gO:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),VG:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.rl=
null!=window.WebKitPlaybackTargetAvailabilityEvent;this.u=new xB(this.experiments,this.N("html5_force_hfr_support")?!0:HC(this)||bs()||fma()||rua(this),g.mA&&g.sc(56)||g.Fx&&g.sc(54)||rua(this));n=this.qf;m=this.experiments;l=new gua;g.IC(this)&&(l.j=!0,l.D=.1);m.jb("html5_pctile_bandwidth_estimator")&&(l.j=!1);n&&(l.B=n/8);l.C=480<=RA();this.schedule=new dua(l);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:gC(!1,a.enable_safety_mode);p=this.Aa?!1:tC(this)&&"blazer"!==
this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.fd=gC(p,!this.S&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:gC(!1,a.send_visitor_id_header);var t;"docs"===this.playerStyle&&(b?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);this.disableNativeContextMenu=gC(!1,t);this.El=HC(this)&&this.N("enable_skip_intro_button");this.embedConfig=jC("",b?b.serializedEmbedConfig:a.embed_config);q=a.raw_embedded_player_response;q||(t=a.embedded_player_response)&&
(q=JSON.parse(t));this.Mj=q?hC("EMBEDDED_PLAYER_MODE_UNKNOWN",q.embeddedPlayerMode,sua):"EMBEDDED_PLAYER_MODE_UNKNOWN";this.C="EMBEDDED_PLAYER_MODE_PFL"===this.Mj;this.Kb=gC(!1,a.full_window);this.Gc=!g.zC(this)&&!JC(this)&&!g.CC(this)&&!0;var v;this.livingRoomAppMode=hC("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null==(v=b.device)?void 0:v.livingRoomAppMode:a.living_room_app_mode,tua);this.transparentBackground=b?!!b.transparentBackground:gC(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:
gC(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:gC(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:gC(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=gC(!1,a.showbackbutton);var x;this.hk=null!=(x=a.show_loop_video_toggle)?x:!0;this.Sm=1E-4>Math.random();this.Wh=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new bua(a.onesie_hot_config,null==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.pe=new iua;g.H(this,this.pe);this.Vj=gC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.P("DATASYNC_ID");this.Rm=g.P("LOGGED_IN",!1);this.Bg=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=jC("",b?b.embedsRct:a.rct);this.Nj=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.N("html5_high_res_logging")?this.Y=2:1>4096*
Math.random()&&(this.Y=1);this.N("html5_ping_queue")&&(this.ai=new AB)};
FC=function(a,b,c){c=void 0===c?!1:c;a.ud=jC(a.ud,b.video_id);a.La=jC(a.La,b.eventid);a.La&&(Nv=a.La);for(var d=[],e=g.r(Object.keys(uua)),f=e.next();!f.done;f=e.next()){f=uua[f.value];var k=b[f];null!=k&&(k!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=k)}!c&&0<d.length&&a.Sm&&(d.sort(),g.Jv(new g.Is("Player client parameters changed after startup",d)));a.userAge=iC(a.userAge,b.user_age);a.Ui=jC(a.Ui,b.user_display_email);a.userDisplayImage=jC(a.userDisplayImage,b.user_display_image);g.Gw(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=jC(a.userDisplayName,b.user_display_name);a.Ag=jC(a.Ag,b.user_gender);a.csiPageType=jC(a.csiPageType,b.csi_page_type);a.csiServiceName=jC(a.csiServiceName,b.csi_service_name);a.Ri=gC(a.Ri,b.enablecsi);a.pageId=jC(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Oe=b.living_room_session_po_token.toString())};
LC=function(a,b){return!a.D&&Zr()&&Zp(55)&&"3"===a.controlsType&&!b};
g.MC=function(a){a=EC(a.ma);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.NC=function(a){return g.CC(a)?"music.youtube.com":g.MC(a)};
OC=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
PC=function(a){return tC(a)&&!g.zC(a)};
wC=function(a){return yC&&!a.ql||Yr("nintendo wiiu")||Yr("nintendo 3ds")?!0:!1};
g.CC=function(a){return"music-embed"===a.playerStyle};
GC=function(a){return a.deviceParams.c};
g.IC=function(a){return/^TVHTML5/.test(GC(a))?!0:"TV"===a.deviceParams.cplatform};
vua=function(a){return"TVHTML5"===GC(a)&&a.deviceParams.cver.startsWith("7")};
mC=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===GC(a)};
rua=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.QC=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
HC=function(a){return/web/i.test(GC(a))};
g.RC=function(a){return"WEB"===GC(a).toUpperCase()};
JC=function(a){return"WEB_KIDS"===GC(a)};
g.zC=function(a){return"WEB_UNPLUGGED"===GC(a)};
SC=function(a){return"TVHTML5_UNPLUGGED"===GC(a)};
g.TC=function(a){return g.zC(a)||"TV_UNPLUGGED_CAST"===GC(a)||SC(a)};
g.AC=function(a){return"WEB_REMIX"===GC(a)};
g.UC=function(a){return"WEB_EMBEDDED_PLAYER"===GC(a)};
g.VC=function(a){return!a.N("web_player_i_see_captions_killswitch")&&g.RC(a)};
WC=function(a){return a.N("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.RC(a)};
wua=function(a){return!a.N("web_player_larger_tap_buttons_killswitch")&&g.RC(a)&&!g.xC(a)};
XC=function(a){return a.N("html5_device_is_audio_only")?a.deviceIsAudioOnly:!a.deviceHasDisplay};
g.ZC=function(a){var b;(b=XC(a)||!g.mA||fs||"3"===a.controlsType?!1:g.hs?a.j&&g.sc(51):!0)||(b=XC(a)||!g.Fx||fs||"3"===a.controlsType?!1:g.hs?a.j&&g.sc(48):g.sc(38));b||(b=XC(a)||!g.pC||fs||"3"===a.controlsType?!1:g.hs?a.j&&g.sc(37):g.sc(27));return b||!XC(a)&&g.YC&&!es()&&g.sc(11)||!XC(a)&&g.Qs&&g.sc("604.4")};
xua=function(a){if(g.xC(a)&&uC)return!1;if(g.Fx){if(!g.sc(47)||!g.sc(52)&&g.sc(51))return!1}else if(g.Qs)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
tC=function(a){return"detailpage"===a.Ia};
g.xC=function(a){return"embedded"===a.Ia};
$C=function(a){return"leanback"===a.Ia};
sC=function(a){return"adunit"===a.Ia||"gvn"===a.playerStyle};
g.BC=function(a){return"profilepage"===a.Ia};
g.rC=function(a){return a.j&&g.xC(a)&&!sC(a)&&!a.D};
aD=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.Jv(new g.Is("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.bD=function(a){var b=g.NC(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&yua.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.cD=function(a,b){return Mr(b||a.qd)};
dD=function(a){return 1<=a.Y};
EC=function(a){var b=g.mj(a);return(a=Number(g.lj(4,a))||null)?b+":"+a:b};
eD=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
fD=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
gD=function(a){return 1===a||2===a};
hD=function(a,b){b=void 0===b?0:b;if(a instanceof fD)return a;a=a&&a instanceof Error?a:Error(""+a);gD(b)?g.Iv(a):g.Jv(a);return new fD(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
iD=function(a){this.j=a};
jD=function(a,b,c){if(c)return Lr();c={};var d=jA();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.cg().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].cg().Xe())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.r(Zz);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?Mr(a):Lr()};
zua=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.j=""};
Aua=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Ic)?void 0:d.getId())===b});
a.j=b};
kD=function(a,b,c){a.cpn&&(b=g.sj(b,{cpn:a.cpn}));c&&(b=g.sj(b,{Xia:c}));return b};
Bua=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
Cua=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,k){return k.bitrate-f.bitrate});
c.sort(function(f,k){return f.bitrate-k.bitrate});
a.u=b.concat(c)};
Dua=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.Zv=a.Zv;this.ke=a.ke||"";this.Ic=a.Ic;this.audioChannels=a.audioChannels;this.j=""};
Eua=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var k=f.type;f.audio_channels&&(k=k+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(k)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){k=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(k=new g.hA(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new Dua({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,Zv:n?l[n]:void 0,ke:f.drm_families,Ic:k,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
lD=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
Fua=function(a,b){if(!(fs||cs()||as()))return null;a=Eua(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 k=f.value;k.Ic&&(f=k.Ic.getId(),c[f]||(k=new g.Ix(f,k.Ic),c[f]=k,b.push(k)))}}return 0<b.length?b:null};
Kua=function(a,b,c,d,e,f,k){if(!(fs||cs()||as()))return Lr();var l={},m=Gua(c),n=Eua(c,a.N("html5_filter_fmp4_in_hls"),a.u.D,l);if(!n)return k({noplst:1}),Lr();Hua(n);c={};var p=(c.fairplay="https://web.archive.org/web/20220414023957/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],v=[],x=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new Dua({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ic:new g.hA("English","en",!1)}):null;for(var z=g.r(Object.keys(n)),E=z.next();!E.done;E=z.next())if(E=E.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==E&&"373"!==E){E=g.r(n[E]);for(var J=E.next();!J.done;J=E.next())if(J=J.value,J.width){for(var I=g.r(J.u),N=I.next();!N.done;N=I.next())if(N=N.value,n[N]){J.j=N;break}J.j||(J.j=Iua(n,J));if(I=n[J.j])if(c.push(J),"fairplay"===J.ke&&(q=p),N="","PQ"===J.Zv?N="smpte2084":"HLG"===J.Zv&&(N="arib-std-b67"),N&&(y=N),v.push(Jua(I,[J],d,f,J.itag,J.width,J.height,J.fps,m,void 0,void 0,q,N)),!x||J.width*J.height*J.fps>x.width*x.height*x.fps)x=J}else t.push(J)}else l[E]="disdrmhfr";v.reduce(function(Z,
K){return K.cg().isEncrypted()&&Z},!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");v.push(Jua(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));Object.entries(l).length&&k(l);return jD(a.u,v,LC(a,b))};
Jua=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v){for(var x=0,y="",z=g.r(a),E=z.next();!E.done;E=z.next())E=E.value,y||(y=E.itag),E.audioChannels&&E.audioChannels>x&&(x=E.audioChannels,y=E.itag);e=new bA(e,"application/x-mpegURL",{audio:new Wz(0,x,null,y),video:new Yz(f,k,l,null,void 0,n,void 0,t),ke:q});a=new zua(a,b,c?[c]:[],d,!!v);a.C=p?p:1369843;return new lD(e,a,m)};
Gua=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};
Iua=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.ke===b.ke&&!e.audioChannels)return d}return""};
Hua=function(a){for(var b=new Set,c=g.r(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.r(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
mD=function(a,b){this.j=a;this.u=b};
Lua=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var k=f.value;if(k.url){f=new g.$x(k.url,!0);if(k.s){var l=k.sp,m=$qa(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);k=ysa(k.type,k.quality,k.itag,k.width,k.height);e.push(new mD(k,f))}}return jD(a.u,e,LC(a,b))};
nD=function(a,b){this.j=a;this.u=b};
Mua=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=ysa(e.type,"medium","0");d.push(new nD(f,e.url))}return jD(a.u,d,LC(a,b))};
oD=function(a,b){this.type=a||"";this.id=b||""};
g.pD=function(a){return new oD(a.substr(0,2),a.substr(2))};
qD=function(a,b){for(var c={},d=g.r(Object.keys(Nua)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Gw(f)&&(c[Nua[e]]=f)}return c};
rD=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.r(Object.keys(Oua)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Oua[e];for(var f=g.r(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Pua(k.url);g.Gw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Pua(a.url),g.Gw(a)&&(b["maxresdefault.jpg"]=a));return b};
Pua=function(a){return a.startsWith("//")?"https:"+a:a};
g.sD=function(a,b){this.u=a;this.author="";this.xx=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=kr(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=qD(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new oD("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.pD(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
g.tD=function(a,b){this.j=a;this.Oo=this.author="";this.xx=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Rr=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Oo=b.Oo||"";if(a=b.endscreen_autoplay_session_data)this.xx=kr(a,"&");this.yx=b.yx;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.Rr=b.Rr||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=kr(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=qD(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Rua=function(a,b){var c=g.Ia("ytDebugData.callbacks");c||(c={},g.Ha("ytDebugData.callbacks",c));if(g.Q("web_dd_iu")||Qua.includes(a))c[a]=b};
uD=function(a){this.j=new cq(a)};
Sua=function(){if(void 0===vD){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.mq(g.Js()+"::yt-player"))){vD=new uD(a);break a}vD=void 0}}return vD};
g.wD=function(){var a=Sua();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.Tua=function(a){var b=Sua();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.xD=function(a){return g.wD()[a]||0};
g.yD=function(a,b){var c=g.wD();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.Tua(c))};
g.zD=function(a){return g.B(function(b){return b.return(g.lt(Uua(),a))})};
BD=function(a,b,c,d,e,f,k){var l,m,n,p,q,t;return g.B(function(v){switch(v.j){case 1:return l=g.xD(a),4===l?v.return(4):g.A(v,g.tt(),2);case 2:m=v.u;if(!m)throw g.Ss("wiac");if(!k||void 0===f){v.Va(3);break}return g.A(v,Vua(k,f),4);case 4:f=v.u;case 3:return n=c.lastModified||"0",g.A(v,g.zD(m),5);case 5:return p=v.u,g.ta(v,6),AD++,g.A(v,g.bt(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Lc:!0},function(x){if(void 0!==e&&void 0!==f){var y=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,
"0");y=g.ct(x.objectStore("media"),f,y)}else y=g.Us.resolve(void 0);var z=Wua(a,b.isVideo()),E=Wua(a,!b.isVideo()),J={fmts:Xua(d),format:c||{}};z=g.ct(x.objectStore("index"),J,z);var I=-1===d.downloadedEndTime;x=I?x.objectStore("index").get(E):g.Us.resolve(void 0);return g.Us.all([x,y,z]).then(function(N){N=g.r(N).next().value;AD--;var Z=g.xD(a);4!==Z&&I&&void 0!==N&&g.Yua(N.fmts)&&(Z=1,g.yD(a,Z));return Z})}),8);
case 8:return v.return(v.u);case 6:q=g.va(v);AD--;t=g.xD(a);if(4===t)return v.return(t);g.yD(a,4);throw q;}})};
g.Zua=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.tt(),2);if(3!=d.j){b=d.u;if(!b)throw g.Ss("ri");return g.A(d,g.zD(b),3)}c=d.u;return d.return(g.bt(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.Xma(e.objectStore("index"),f).then(function(k){return k.map(function(l){return l?l.format:{}})})}))})};
ava=function(a,b,c,d,e){var f,k,l;return g.B(function(m){if(1==m.j)return g.A(m,g.tt(),2);if(3!=m.j){f=m.u;if(!f)throw g.Ss("rc");return g.A(m,g.zD(f),3)}k=m.u;l=g.bt(k,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){return $ua(e,n)})):m.return(l)})};
g.Yua=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
Wua=function(a,b){return""+a+"|"+(b?"v":"a")};
Xua=function(a){var b={};return lr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
cva=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.bva)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(k){return k.start+"-"+k.end}).join(",");
return c};
dva=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Uz=WB(a.ustreamerConfig)||void 0)};
g.CD=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.ED=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.DD(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.FD=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.DD=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("")};
hva=function(a,b,c,d){a||(a=b&&eva.hasOwnProperty(b)&&fva.hasOwnProperty(b)?fva[b]+"_"+eva[b]:void 0);b=a;if(!b)return null;a=b.match(gva);if(!a||5!==a.length)return null;if(a=b.match(gva)){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};
jva=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return iva[a];return null};
GD=function(a){return a&&a.baseUrl||""};
HD=function(a){a=g.or(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};
kva=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Xa=b)};
mva=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=lva(d.baseUrl);if(!e)return;d=new g.CD({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Qw(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Vw=b.audioTracks||[];a.zR=b.defaultAudioTrackIndex||0;a.RE=b.translationLanguages?g.Wl(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Qw(f.languageName)}}):
[];
a.Xm=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
nva=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(k){var l=k.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(k=k.playerVars)return Object.assign({is_yto_interstitial:!0},mr(k))});
d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,jl:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,jl: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,
jl:0===f?5:7})}}};
ova=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
pva=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)};
vva=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=mr(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=qva[c]);(c=a.projectionType)&&(b.projection_type=rva[c]);(c=a.stereoLayout)&&(b.stereo_layout=sva[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=tva[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(ID[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=jva(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=uva[a])&&(b.primaries=a);return g.qj(b)};
JD=function(a){g.iv.call(this);this.j=null;this.B=new pq;this.j=null;this.K=new Set;this.D=a||""};
wva=function(a,b,c){for(c=KD(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(LD(d,b))&&(d=g.MD(d,b)))return d;c--}return g.MD(a.levels[0],b)};
yva=function(a,b,c){c=KD(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=LD(d,b),!d.isLoaded(e)){d=a;var f=c,k=f+"-"+e;d.K.has(k)||(d.K.add(k),d.B.enqueue(f,{EO:f,VO:e}))}xva(a)};
xva=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=zva(a,b)}};
zva=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=ND(a.levels[b.EO],b.VO);c.onload=function(){var d=b.EO,e=b.VO;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);xva(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.gE()-1);e=[e,d];a.ea("l",e[0],e[1])};
return c};
g.OD=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
LD=function(a,b){return Math.floor(b/(a.columns*a.rows))};
ND=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.sj(c,{sigh:a.signature}));return Hw(c)};
g.MD=function(a,b){b>=a.hE()&&a.Aq();var c=LD(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Aq()+1-d*c;if(f<a.columns){var k=f;d=1}else k=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:ND(a,c),column:b,columns:k,row:e,rows:d,Dy:a.width*k,Wr:a.height*d}};
PD=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;JD.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)};
Ava=function(a,b,c){return(a=a.levels[b])?a.fA(c):-1};
KD=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};
QD=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.OD.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
RD=function(a,b,c,d){PD.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].FK(c)};
Bva=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.sj(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.TD=function(a,b){g.iv.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.OO=this.fk=this.adQueryId=this.Vm=null;this.Qw={start:NaN,end:NaN};this.ariaLabel="";this.ke=null;this.lF=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ua="";this.Uw=this.Wm=!1;this.vL=null;this.cf=this.qf=this.Vj=this.WJ=!1;this.J=null;this.hP=this.Qg=!1;this.Oe=NaN;this.Ri=!1;this.Nw=0;this.FO=!1;this.Vs={};this.HE=this.cycToken=null;
this.author="";this.Kw=0;this.gk=!1;this.Jw=null;this.ME=[];this.Uq=this.TE=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Oc=this.Kc="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Gc=0;this.DO=this.Id=this.u=null;this.oI="";this.La=!1;this.ql=this.ol=0;this.Sw=this.pipable=this.nm=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.Ib=this.isPrivate=this.isListed=this.zI=this.NQ=this.mutedAutoplay=this.xm=
!1;this.YJ="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.LJ=this.Wh=this.Lf=!1;this.latencyClass="UNKNOWN";this.iK=this.jK=this.enablePreroll=this.enableServerStitchedDai=this.Ge=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Vb=0;this.reloadReason="";this.VJ=this.lK=this.Qf=!1;this.keywords={};this.Kb="";this.vl=0;this.ut=!1;this.liveChunkReadahead=NaN;this.ai=null;this.Sm=this.lengthSeconds=0;this.playerParams=
this.musicVideoType=null;this.XR=this.paygated=!1;this.zj=[];this.ra=[];this.racyCheckOk=!1;this.HL={};this.rz=0;this.C=null;this.autonavState=1;this.oM=null;this.shortDescription="";this.kb=this.DE=!1;this.zq=this.fd=this.startSeconds=0;this.vt=this.AQ=this.Pj=SD;this.suggestions=null;this.Tm=this.Um=void 0;this.Mj=null;this.GE=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.jr=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.SE=void 0;this.ul=[];this.hlsFormats=
this.Nj="";this.Qs=this.yq=this.Bg=this.kc=this.ib=this.Bl=this.us=null;this.ij="vvt";this.Pd=!1;this.OE=null;this.VQ="";this.Il=NaN;this.Pt=this.At=this.Gl=this.zt=this.xt=this.Wj=this.Fl=this.Ot=this.Hl=this.Bt="";this.bk=null;this.tO=!1;this.S={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.aK=this.ZJ=NaN;this.Ee=this.pk=this.De=this.dK=this.bK=!1;this.Cl=!0;this.Z={};this.captionTracks=[];this.Vw=[];this.zR=0;this.RE=[];this.Xm=!1;this.hk=new g.Ix("und",new g.hA("Default",
"und",!0));this.XJ=0;this.Y=null;this.Xs=[];this.fH=!1;this.pe=[];this.wt=this.qd="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.WR=this.Ws=this.lk=this.oh=this.eH=this.Rw=this.Pw=null;this.Dr=!1;this.ma=null;this.isInlinePlaybackNoAd=this.Tg=this.useCobaltWidevine=this.vO=this.Kr=!1;this.IG=!0;this.QL=this.SL=NaN;this.defraggedFromSubfragments=this.im=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Lw=this.NE=this.Qe=!1;this.interstitials=
[];this.D=this.qJ=!1;this.gb="";this.allowImaMonetization=!1;this.Ac=this.wl=this.zL="";this.Ia=this.cK=!1;this.Pe=0;this.yL=this.El="";this.RD=this.QD=this.wI=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Dl=!1;this.Ui=this.Ag=!0;this.errorDetail=this.userGenderAge="";this.JE=this.LE=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=
this.yk=this.errorReason=this.errorCode=null;this.Iq=this.Ym="";this.jk=!1;this.Rm=[];this.sO=this.WL=this.UL=this.yh=this.Ye=0;this.fetchType=null;this.IL=!0;this.fP=void 0;this.aQ=-1;this.Si=this.ud=!1;this.bd=null;this.Aa="";this.Uh=!1;this.watchUrl=null;this.As=[];this.visibleOnLoadKeys=[];this.uO=[];this.N("web_player_ux_module_wait")&&this.B.Gc&&this.ra.push("ux");this.ud=this.N("web_new_autonav_countdown");this.Si=this.N("web_new_big_thumbnail_endscreen");Cva(this,b)};
g.WD=function(a,b,c){b&&b.cpn&&g.Jv(new g.Is("CPN provided in VideoData update",{Tia:b.cpn,Ug:a.clientPlaybackNonce,Cia:c}));c?(lC(b),Cva(a,b),UD(a)&&VD(a)):(b=b||{},Dva(a,b),Eva(a,b),Fva(a,b),a.ea("dataupdated"))};
Fva=function(a,b){a.fflags=jC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ua=Hw(c));a.Wm=gC(a.Wm,b.iv_ads_only);a.Uw=gC(a.Uw,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.e1=c;a.isPharma=gC(a.isPharma,b.is_pharma);a.author=jC(a.author,b.author);a.Kc=lva(b.ttsurl)||a.Kc;a.gk=gC(a.gk,b.cc_asr);a.Oc=jC(a.Oc,b.channel_path);a.channelBanner=jC(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=jC(a.profilePicture,c);a.videoCountText=jC(a.videoCountText,b.video_count_text);
a.autonavState=hC(a.autonavState,b.autonav_state,Gva);a.clientPlaybackNonce=jC(a.clientPlaybackNonce,b.cpn);a.subscribed=gC(a.subscribed,b.subscribed);a.rawViewCount=iC(a.rawViewCount,b.view_count);a.shortViewCount=jC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=jC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=jC(a.lengthText||"",b.lengthText);a.Rr=jC(a.Rr||"",b.Rr);a.Oo=jC(a.Oo||"",b.Oo);a.title=jC(a.title,b.title);a.subtitle=jC(a.subtitle,b.subtitle);a.expandedTitle=
jC(a.expandedTitle,b.expanded_title);a.expandedSubtitle=jC(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=jC(a.ariaLabel,b.aria_label);a.ypcPreview=jC(a.ypcPreview,b.ypc_preview);a.PE=jC(a.PE,b.ypc_origin);a.Pd=gC(a.Pd,b.ypc_is_premiere_trailer);a.El=jC(a.El,b.ypc_clickwrap_message);a.paygated=gC(a.paygated,b.paygated);a.tO=gC(a.tO,b.requires_purchase);a.showShareButton=!gC(!a.showShareButton,b.ss);a.Ag=gC(a.Ag,b.showwatchlater);a.Ui=gC(a.Ui,b.shownotifybutton);a.Dl=gC(a.Dl,b.copy_share);a.N("web_player_mutable_event_label")&&
(c=b.el)&&(a.eventLabel=c);if(c=b.keywords)a.keywords=Hva(c.split(","));if(c=b.rvs)a.suggestions=nr(c).map(function(d){return d.playlist||d.list||d.api?new g.sD(a.B,d):new g.tD(a.B,d)});
a.contentCheckOk=gC(a.contentCheckOk,b.cco);a.racyCheckOk=gC(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=gC(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=jC(a.oauthToken,b.oauth_token);a.Kb=jC(a.Kb,b.kpt);a.visitorData=jC(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=kr(c,"&");a.Nr=jC(a.Nr,b.endscreen_ad_tracking_data);a.vQ=gC(a.vQ,b.wait_for_vast_info_cards_xml);a.FE=gC(a.FE,b.suppress_creator_endscreen);a.kK=gC(a.kK,b.is_trueview_action);a.UO=jC(a.UO,b.tracking_list);
a.Ym=jC(a.Ym,b.clip);a.Iq=jC(a.Iq,b.clipt);Iva(a,b)};
Cva=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="150");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.yk=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.Pv(16));a.Ib=gC(a.B.Ib,b.livemonitor);Dva(a,b);var k=b.raw_player_response;if(!k){var l=b.player_response;l&&(k=JSON.parse(l))}k&&(a.playerResponse=k);if(a.playerResponse){var m=a.playerResponse.annotations;if(m)for(var n=
g.r(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.Wm=!0);q.allowInPlaceSwitch&&(a.Uw=!0);var t=q.loadPolicy;t&&(a.annotationsLoadPolicy=Jva[t]);var v=q.invideoUrl;v&&(a.Ua=Hw(v));a.WJ=!0;break}}var x=a.playerResponse.attestation;x&&kva(a,x);var y=a.playerResponse.cotn;y&&(a.cotn=y);var z=a.playerResponse.heartbeatParams;if(z){var E=z.heartbeatToken;E&&(a.drmSessionId=z.drmSessionId||"",a.heartbeatToken=E,a.ZJ=Number(z.intervalMilliseconds),a.aK=
Number(z.maxRetries),a.bK=!!z.softFailOnError,a.dK=!!z.useInnertubeHeartbeatsForDrm,a.Vj=!0);a.heartbeatServerData=z.heartbeatServerData;a.N("heartbeat_iff_heartbeat_params_filled")&&(a.Vj=!0);var J;a.Ri=!(null==(J=z.heartbeatAttestationConfig)||!J.requiresAttestation)}var I=a.playerResponse.messages;I&&ova(a,I);var N=a.playerResponse.multicamera;if(N){var Z=N.playerLegacyMulticameraRenderer;if(Z){var K=Z.metadataList;K&&(a.yL=K,a.pe=nr(K))}}var ra=a.playerResponse.overlay;if(ra){var za=ra.playerControlsOverlayRenderer;
if(za){var Pa=za.controlBgHtml;null!=Pa?(a.gb=Pa,a.D=!0):(a.gb="",a.D=!1);if(za.mutedAutoplay){var Sa=za.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Sa&&Sa.endScreen){var ac=Sa.endScreen.playerMutedAutoplayEndScreenRenderer;ac&&ac.text&&(a.zL=g.Qw(ac.text))}}else a.mutedAutoplay=!1}}var zb=a.playerResponse.playabilityStatus;if(zb){var yc=zb.backgroundability;yc&&yc.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Rc,hd;if(null==(Rc=zb.offlineability)?0:null==(hd=Rc.offlineabilityRenderer)?
0:hd.offlineable)a.offlineable=!0;var he=zb.contextParams;he&&(a.contextParams=he);var Lf=zb.pictureInPicture;Lf&&Lf.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);zb.playableInEmbed&&(a.allowEmbed=!0);var Ab=zb.ypcClickwrap;if(Ab){var Mf=Ab.playerLegacyDesktopYpcClickwrapRenderer,pg=Ab.ypcRentalActivationRenderer;if(Mf)a.El=Mf.durationMessage||"",a.cf=!0;else if(pg){var Zi=pg.durationMessage;a.El=Zi?g.Qw(Zi):"";a.cf=!0}}var ie=zb.errorScreen;if(ie){if(ie.playerLegacyDesktopYpcTrailerRenderer){var zc=
ie.playerLegacyDesktopYpcTrailerRenderer;a.Pt=zc.trailerVideoId||"";var wk=ie.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Ie=wk&&wk.ypcTrailerRenderer}else if(ie.playerLegacyDesktopYpcOfferRenderer)zc=ie.playerLegacyDesktopYpcOfferRenderer;else if(ie.ypcTrailerRenderer){Ie=ie.ypcTrailerRenderer;var $i=Ie.fullVideoMessage;a.Fl=$i?g.Qw($i):""}zc&&(a.Gl=zc.itemTitle||"",zc.itemUrl&&(a.At=zc.itemUrl),zc.itemBuyUrl&&(a.xt=zc.itemBuyUrl),a.zt=zc.itemThumbnail||"",a.Ot=zc.offerHeadline||"",a.Hl=
zc.offerDescription||"",a.Wj=zc.offerId||"",a.Bt=zc.offerButtonText||"",a.OE=zc.offerButtonFormattedText||null,a.Il=zc.overlayDurationMsec||NaN,a.Fl=zc.fullVideoMessage||"",a.qf=!0);if(Ie){var Rh=Ie.unserializedPlayerResponse;if(Rh)a.bk={raw_player_response:Rh};else{var xk=Ie.playerVars;a.bk=xk?mr(xk):null}a.qf=!0}}}var je=a.playerResponse.playbackTracking;if(je){var yk=b,Dn=GD(je.googleRemarketingUrl);Dn&&(a.googleRemarketingUrl=Dn);var En=GD(je.youtubeRemarketingUrl);En&&(a.youtubeRemarketingUrl=
En);var Fn=GD(je.ptrackingUrl);if(Fn){var qg=HD(Fn),Gn=qg.oid;Gn&&(a.FL=Gn);var Sh=qg.pltype;Sh&&(a.GL=Sh);var qd=qg.ptchn;qd&&(a.EL=qd);var eh=qg.ptk;eh&&(a.Rs=encodeURIComponent(eh));var zk=qg.m;zk&&(a.Mr=zk)}var fh=GD(je.ppvRemarketingUrl);fh&&(a.ppvRemarketingUrl=fh);var Dq=GD(je.qoeUrl);if(Dq){for(var gh=g.or(Dq),Ak=g.r(Object.keys(gh)),Ml=Ak.next();!Ml.done;Ml=Ak.next()){var hh=Ml.value,Bk=gh[hh];gh[hh]=Array.isArray(Bk)?Bk.join(","):Bk}a.uQ=gh;var aj=gh.cat;aj&&(a.wl=aj);var bj=gh.live;bj&&
(a.YJ=bj);var Wb=gh.drm_product;Wb&&(a.lF=Wb)}var Je=GD(je.remarketingUrl);if(Je){a.remarketingUrl=Je;var Ck=HD(Je);Ck.foc_id&&(a.S.focEnabled=!0);var Hn=Ck.data;Hn&&(a.S.rmktEnabled=!0,Hn.engaged&&(a.S.engaged="1"));a.S.baseUrl=oca(Je)+jj(g.lj(5,Je))}var In=GD(je.videostatsPlaybackUrl);if(In){var Ac=HD(In);a.OL=Ac;var Dk=Ac.adformat;if(Dk&&(yk.adformat=Dk,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var cj=a.V(),dj=hva(Dk,a.wt,cj.j,cj.B);dj&&(a.adFormat=dj)}var Jn=Ac.aqi;
Jn&&(yk.ad_query_id=Jn);var Kn=Ac.autoplay;Kn&&(a.xm="1"==Kn);var ej=Ac.autonav;ej&&(a.nm="1"==ej);var lf=Ac.delay;lf&&(a.Gc=Gh(lf));var Ek=Ac.ei;Ek&&(a.eventId=Ek);"adunit"===Ac.el&&(a.xm=!0);var fj=Ac.feature;fj&&(a.mN=fj);var ih=Ac.list;ih&&(a.playlistId=ih);var Nl=Ac.of;Nl&&(a.Y0=Nl);var Ln=Ac.osid;Ln&&(a.osid=Ln);var jh=Ac.referrer;jh&&(a.referrer=jh);var Mn=Ac.sdetail;Mn&&(a.YL=Mn);var ke=Ac.sourceid;ke&&(a.U7=ke);var Nn=Ac.ssrt;Nn&&(a.Mw="1"==Nn);var On=Ac.subscribed;On&&(a.subscribed="1"==
On,a.S.subscribed=On);var id=Ac.uga;id&&(a.userGenderAge=id);var Pn=Ac.upt;Pn&&(a.d1=Pn);var Qn=Ac.vm;Qn&&(a.videoMetadata=Qn)}var gj=GD(je.videostatsWatchtimeUrl);if(gj){var rg=HD(gj).ald;rg&&(a.t0=rg)}if(je.promotedPlaybackTracking){var Od=je.promotedPlaybackTracking;Od.startUrls&&(a.Ys=Od.startUrls);Od.firstQuartileUrls&&(a.VD=Od.firstQuartileUrls);Od.secondQuartileUrls&&(a.WD=Od.secondQuartileUrls);Od.thirdQuartileUrls&&(a.XD=Od.thirdQuartileUrls);Od.completeUrls&&(a.TD=Od.completeUrls);Od.engagedViewUrls&&
(1<Od.engagedViewUrls.length&&g.Jv(new g.Is("There are more than one engaged_view_urls.")),a.Me=Od.engagedViewUrls[0])}}a:{var Ol=a.playerResponse.adPlacements;if(Ol)for(var Pl=g.r(Ol),Fk=Pl.next();!Fk.done;Fk=Pl.next()){var Gk=Fk.value;if(Gk.adPlacementRenderer&&Gk.adPlacementRenderer.renderer&&Gk.adPlacementRenderer.renderer.videoAdTrackingRenderer){var Ql=Gk.adPlacementRenderer.renderer.videoAdTrackingRenderer;break a}}Ql=null}var Rn=Ql;je&&je.promotedPlaybackTracking&&Rn&&g.Jv(new g.Is("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
Rn&&(a.XR=!0);var Sn=a.playerResponse.playerAds;if(Sn)for(var Tn=b,hj=g.r(Sn),qv=hj.next();!qv.done;qv=hj.next()){var rv=qv.value;if(rv){var bB=rv.playerLegacyDesktopWatchAdsRenderer;if(bB){var fm=bB.playerAdParams;if(fm){"1"==fm.autoplay&&(a.xm=!0);a.fk=fm.encodedAdSafetyReason||null;void 0!==fm.showContentThumbnail&&(a.Cl=!!fm.showContentThumbnail);Tn.enabled_engage_types=fm.enabledEngageTypes;break}}}}var qe=a.playerResponse.playerConfig;if(qe){var gm=qe.manifestlessWindowedLiveConfig;if(gm){var cB=
Number(gm.minDvrSequence),dB=Number(gm.maxDvrSequence),eB=Number(gm.minDvrMediaTimeMs),fB=Number(gm.maxDvrMediaTimeMs),gB=Number(gm.startWalltimeMs);cB&&(a.Ye=cB);eB&&(a.WL=eB/1E3);dB&&(a.yh=dB);fB&&(a.UL=fB/1E3);gB&&(a.sO=gB/1E3)}var vo=qe.daiConfig;if(vo){if(vo.enableDai){a.Ge=!0;var hB=vo.enableServerStitchedDai;hB&&(a.enableServerStitchedDai=hB);var iB=vo.enablePreroll;iB&&(a.enablePreroll=iB)}"DAI_TYPE_SS_DISABLED"===vo.daiType&&(a.jK=!0)}var wr=qe.audioConfig;if(wr){var tv=wr.loudnessDb;null!=
tv&&(a.Oe=tv);wr.audioMuted&&(a.Qg=!0);wr.muteOnStart&&(a.hP=!0)}var jB=qe.playbackEndConfig;if(jB){var kB=jB.endSeconds;kB&&a.mutedAutoplay&&(a.endSeconds=kB)}var xr=qe.fairPlayConfig;if(xr){var lB=xr.certificate;lB&&(a.Id=WB(lB));var yr=Number(xr.keyRotationPeriodMs);0<yr&&(a.U0=yr);var mB=Number(xr.keyPrefetchMarginMs);0<mB&&(a.F0=mB)}var hm=qe.playbackStartConfig;if(hm){a.RD=Number(hm.startSeconds);var uv=hm.liveUtcStartSeconds,im=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;uv&&!im&&(a.liveUtcStartSeconds=
Number(uv));var vv=hm.startPosition;if(vv){var Bja=vv.utcTimeMillis;Bja&&!im&&(a.liveUtcStartSeconds=.001*Number(Bja));var Cja=vv.streamTimeMillis;Cja&&(a.zq=.001*Number(Cja))}a.progressBarStartPosition=hm.progressBarStartPosition;a.progressBarEndPosition=hm.progressBarEndPosition}else{var DX=qe.skippableSegmentsConfig;if(DX){var Dja=DX.introSkipDurationMs;Dja&&(a.wI=Number(Dja)/1E3);var Eja=DX.outroSkipDurationMs;Eja&&(a.QD=Number(Eja)/1E3)}}var EX=qe.skippableIntroConfig;if(EX){var Fja=Number(EX.startMs),
Gja=Number(EX.endMs);isNaN(Fja)||isNaN(Gja)||(a.SL=Fja,a.QL=Gja)}var Hja=qe.streamSelectionConfig;Hja&&(a.ql=Number(Hja.maxBitrate));var Ija=qe.vrConfig;Ija&&(a.Kr="1"==Ija.partialSpherical);var nB=qe.webDrmConfig;if(nB){nB.skipWidevine&&(a.vO=!0);var Jja=nB.widevineServiceCert;Jja&&(a.DO=WB(Jja));nB.useCobaltWidevine&&(a.useCobaltWidevine=!0);nB.startWithNoQualityConstraint&&(a.Tg=!0)}var Kja=qe.mediaCommonConfig;if(Kja){var KJ=Kja.dynamicReadaheadConfig;KJ&&(a.maxReadAheadMediaTimeMs=KJ.maxReadAheadMediaTimeMs||
NaN,a.minReadAheadMediaTimeMs=KJ.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=KJ.readAheadGrowthRateMs||NaN)}var Lja=qe.inlinePlaybackConfig;Lja&&(a.IG=!!Lja.showAudioControls)}var jm=a.playerResponse.streamingData;if(jm){var Mja=jm.adaptiveFormats;if(Mja){for(var Nja=[],Oja=g.r(Mja),wj=Oja.next();!wj.done;wj=Oja.next()){var LJ=wj.value;Nja.push(vva(LJ));var Pja=LJ.loudnessDb;LJ.itag&&null!=Pja&&(a.Vs[LJ.itag.toString()]=Pja)}a.adaptiveFormats=Nja.join(",")}var FX=jm.formats;if(FX){var oB=
[],Qja=g.r(FX);for(wj=Qja.next();!wj.done;wj=Qja.next()){var GX=wj.value;oB.push(GX.itag+"/"+GX.width+"x"+GX.height)}a.oI=oB.join(",");oB=[];var Rja=g.r(FX);for(wj=Rja.next();!wj.done;wj=Rja.next()){var wv=wj.value,pB={itag:wv.itag,type:wv.mimeType,quality:wv.quality},Sja=wv.url;Sja&&(pB.url=Sja);var Tja=wv.cipher||wv.signatureCipher;if(Tja){var HX=mr(Tja);pB.sp=HX.sp;pB.s=HX.s;pB.url=HX.url}oB.push(g.qj(pB))}a.Nj=oB.join(",")}var IX=jm.hlsFormats;if(IX){var Uja=qe||null,MJ={};if(Uja){var JX=Uja.audioPairingConfig;
if(JX&&JX.pairs)for(var Vja=g.r(JX.pairs),KX=Vja.next();!KX.done;KX=Vja.next()){var Wja=KX.value,LX=Wja.videoItag;MJ[LX]||(MJ[LX]=[]);MJ[LX].push(Wja.audioItag)}}for(var Xja={},Yja=g.r(IX),zr=Yja.next();!zr.done;zr=Yja.next()){var Zja=zr.value;Xja[Zja.itag]=Zja.bitrate}var $ja=[],aka=g.r(IX);for(zr=aka.next();!zr.done;zr=aka.next()){var tg=zr.value,Nk={itag:tg.itag,type:tg.mimeType,url:tg.url,bitrate:tg.bitrate,width:tg.width,height:tg.height,fps:tg.fps},NJ=tg.audioTrack;if(NJ){var bka=NJ.displayName;
bka&&(Nk.name=bka,Nk.audio_track_id=NJ.id,NJ.audioIsDefault&&(Nk.is_default="1"))}if(tg.drmFamilies){for(var cka=[],dka=g.r(tg.drmFamilies),MX=dka.next();!MX.done;MX=dka.next())cka.push(ID[MX.value]);Nk.drm_families=cka.join(",")}var OJ=MJ[tg.itag];if(OJ&&OJ.length){Nk.audio_itag=OJ.join(",");var eka=Xja[OJ[0]];eka&&(Nk.bitrate+=eka)}var fka=jva(tg);fka&&(Nk.eotf=fka);tg.audioChannels&&(Nk.audio_channels=tg.audioChannels);$ja.push(g.qj(Nk))}a.hlsFormats=$ja.join(",")}var NX=jm.licenseInfos;if(NX&&
0<NX.length){for(var gka={},hka=g.r(NX),OX=hka.next();!OX.done;OX=hka.next()){var ika=OX.value,jka=ika.drmFamily,kka=ika.url;jka&&kka&&(gka[ID[jka]]=kka)}a.ke=gka}var lka=jm.drmParams;lka&&(a.drmParams=lka);var mka=jm.dashManifestUrl;mka&&(a.rb=g.sj(mka,{cpn:a.clientPlaybackNonce}));var nka=jm.hlsManifestUrl;nka&&(a.hlsvp=nka);var oka=jm.probeUrl;oka&&(a.probeUrl=Hw(g.sj(oka,{cpn:a.clientPlaybackNonce})))}var pka=a.playerResponse.trackingParams;pka&&(a.va=pka);var Cc=a.playerResponse.videoDetails;
if(Cc){var Ok=b,PX=Cc.videoId;PX&&(a.videoId=PX,Ok.video_id||(Ok.video_id=PX));var qka=Cc.channelId;qka&&(a.S.uid=qka.substr(2));var QX=Cc.title;QX&&(a.title=QX,Ok.title||(Ok.title=QX));var RX=Cc.lengthSeconds;RX&&(a.lengthSeconds=Number(RX),Ok.length_seconds||(Ok.length_seconds=RX));var rka=Cc.keywords;rka&&(a.keywords=Hva(rka));var SX=Cc.channelId;SX&&(a.Zj=SX,Ok.ucid||(Ok.ucid=SX));var ska=Cc.viewCount;ska&&(a.rawViewCount=Number(ska));var TX=Cc.author;TX&&(a.author=TX,Ok.author||(Ok.author=TX));
var tka=Cc.shortDescription;tka&&(a.shortDescription=tka);var uka=Cc.isCrawlable;uka&&(a.isListed=uka);var vka=Cc.musicVideoType;vka&&(a.musicVideoType=vka);var UX=Cc.isLive;null!=UX&&(a.isLivePlayback=UX);if(UX||Cc.isUpcoming)a.isPremiere=!Cc.isLiveContent;var wka=Cc.thumbnail;wka&&(a.Z=rD(wka));var xka=qe||null,VX=b;Cc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Cc.isUpcoming&&(a.isUpcoming=!0);if(Cc.isPostLiveDvr)a.Lf=!0;else{var WX=!1;if(a.Ib)a.allowLiveDvr=XD(a,!0),a.isLivePlayback=
!0;else if(Cc.isLive){VX.livestream="1";a.allowLiveDvr=XD(a,!!Cc.isLiveDvrEnabled);a.Ga=27;Cc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var yka=Cc.latencyClass;yka&&(a.latencyClass=Kva[yka]||"UNKNOWN");var zka=Cc.liveChunkReadahead;zka&&(a.liveChunkReadahead=zka);var qB=xka&&xka.livePlayerConfig;if(qB){qB.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);qB.hasSubfragmentedWebm&&(a.im=!0);qB.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Aka=qB.liveExperimentalContentId;
Aka&&(a.liveExperimentalContentId=Number(Aka))}WX=!0}else Cc.isUpcoming&&(WX=!0);WX&&(a.isLivePlayback=!0,VX.adformat&&"8"!==VX.adformat.split("_")[1]||a.ra.push("heartbeat"),a.N("heartbeat_iff_heartbeat_params_filled")||(a.Vj=!0))}var Bka=Cc.isPrivate;Bka&&(a.isPrivate=gC(a.isPrivate,Bka))}if(zb){var Cka=Cc||null,Dka=!1,xv=zb.errorScreen;Dka=xv&&(xv.playerLegacyDesktopYpcOfferRenderer||xv.playerLegacyDesktopYpcTrailerRenderer||xv.ypcTrailerRenderer)?!0:Cka&&Cka.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE",
"FULLSCREEN_ONLY"].includes(zb.status);if(!Dka){a.errorCode="150";var PJ=xv&&xv.playerErrorMessageRenderer;if(PJ){a.playerErrorMessageRenderer=PJ;var Eka=PJ.reason;Eka&&(a.errorReason=g.Qw(Eka));var YX=PJ.subreason;YX&&(a.yk=g.Qw(YX),a.Pr=YX)}else a.errorReason=zb.reason||null;var ZX=zb.status;if("LOGIN_REQUIRED"===ZX)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===ZX)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===ZX){var Fka=zb.errorScreen,Gka=Fka&&Fka.playerKavRenderer;a.errorDetail=Gka&&
Gka.kavUrl?"4":"3"}else a.errorDetail=zb.isBlockedInRestrictedMode?"5":"0"}}var Hka=a.playerResponse.interstitialPods;Hka&&nva(a,Hka);a.Ua&&a.eventId&&(a.Ua=qr(a.Ua,{ei:a.eventId}));var $X=a.playerResponse.captions;$X&&$X.playerCaptionsTracklistRenderer&&mva(a,$X.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.RD=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&
a.accountLinkingConfig.alsParam&&(a.ML=a.accountLinkingConfig.alsParam);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&pva(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}Eva(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Ika=b.hlsdvr;null!=Ika&&(a.allowLiveDvr=XD(a,"1"==Ika));a.adQueryId=b.ad_query_id||null;a.fk||(a.fk=b.encoded_ad_safety_reason||null);
a.OO=b.agcid||null;a.Pw=b.ad_id||null;a.Rw=b.ad_sys||null;a.eH=b.encoded_ad_playback_context||null;a.Qg=gC(a.Qg,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=gC(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.endSeconds=iC(a.endSeconds,a.QD||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=iC(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.va=jC(a.va,b.itct);a.zI=gC(a.zI,b.noiba);a.LJ=gC(a.LJ,b.is_live_destination);
a.isLivePlayback=gC(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=gC(a.isUpcoming,b.isUpcoming));a.Lf=gC(a.Lf,b.post_live_playback);a.isMdxPlayback=gC(a.isMdxPlayback,b.mdx);var QJ=b.mdx_control_mode;QJ&&(a.mdxControlMode="number"===typeof QJ?QJ:Gh(QJ));a.isInlinePlaybackNoAd=gC(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Vb=iC(a.Vb,b.reload_count);a.reloadReason=jC(a.reloadReason,b.reload_reason);a.Cl=
gC(a.Cl,b.show_content_thumbnail);a.VJ=gC(a.VJ,b.utpsa);a.GE=gC(a.GE,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.HE=b.tkn||null;var Jka=qD(b);0<Object.keys(Jka).length&&(a.Z=Jka);a.Ta=jC(a.Ta,b.vvt);a.mdxEnvironment=jC(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.hS=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=jC(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?
iC(0,b.index):iC(a.playlistIndex,b.index));a.VL=b.pyv_view_beacon_url;a.qM=b.pyv_quartile25_beacon_url;a.DM=b.pyv_quartile50_beacon_url;a.WM=b.pyv_quartile75_beacon_url;a.ZL=b.pyv_quartile100_beacon_url;var Kka=b.remarketing_url;Kka&&(a.remarketingUrl=Kka);var Lka=b.ppv_remarketing_url;Lka&&(a.ppvRemarketingUrl=Lka);var Mka=b.session_data;!a.HN&&Mka&&(a.HN=kr(Mka,"&").feature);a.isFling=1==iC(a.isFling?1:0,b.is_fling);a.vnd=iC(a.vnd,b.vnd);a.Th=jC(a.Th,b.force_ads_url);a.fh=jC(a.fh,b.ctrl);a.Dh=jC(a.Dh,
b.ytr);a.dn=b.ytrcc;a.XN=b.ytrexp;a.YD=b.ytrext;a.qd=jC(a.qd,b.adformat);a.wt=jC(a.wt,b.attrib);a.slotPosition=iC(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Mw=gC(a.Mw,b.ssrt);a.videoId=lC(b)||a.videoId;a.K=jC(a.K,b.vss_credentials_token);a.ij=jC(a.ij,b.vss_credentials_token_type);a.Qe=gC(a.Qe,b.audio_only);a.NE=gC(a.NE,b.aac_high);a.Lw=gC(a.Lw,b.prefer_low_quality_audio);a.wl=jC(a.wl,b.qoe_cat);a.jk=gC(a.jk,b.download_media);a.Ia=gC(a.Ia,b.prefer_gapless);a:{var aY=a.playerResponse;if(aY&&
aY.adPlacements)for(var Nka=g.r(aY.adPlacements),bY=Nka.next();!bY.done;bY=Nka.next()){var RJ=bY.value.adPlacementRenderer;if(null!=RJ&&"AD_PLACEMENT_KIND_START"==(RJ.config&&RJ.config.adPlacementConfig&&RJ.config.adPlacementConfig.kind)){var Oka=!0;break a}}Oka=!1}Oka&&(a.adModule=!0,a.ra.push("ad"));var Pka=b.adaptive_fmts;Pka&&(a.adaptiveFormats=Pka);var Qka=b.allow_embed;Qka&&(a.allowEmbed="1"==Qka);var Rka=b.backgroundable;Rka&&(a.backgroundable="1"==Rka);var Ska=b.autonav;Ska&&(a.nm="1"==Ska);
var Tka=b.autoplay;Tka&&(a.xm="1"==Tka);var Uka=b.iv_load_policy;Uka&&(a.annotationsLoadPolicy=hC(a.annotationsLoadPolicy,Uka,DC));var Vka=b.cc_lang_pref;Vka&&(a.captionsLanguagePreference=jC(Vka,a.captionsLanguagePreference));var Wka=b.cc_load_policy;Wka&&(a.Jw=hC(a.Jw,Wka,DC));var Xka;a.deviceCaptionsOn=null!=(Xka=b.device_captions_on)?Xka:void 0;var Yka;a.VR=null!=(Yka=b.device_captions_lang_pref)?Yka:"";var Zka;a.ME=null!=(Zka=b.viewer_selected_caption_langs)?Zka:[];var $ka=b.cached_load;$ka&&
(a.Uq=gC(a.Uq,$ka));"0"==b.dash&&(a.TE=!0);var ala=b.dashmpd;ala&&(a.rb=g.sj(ala,{cpn:a.clientPlaybackNonce}));var bla=b.delay;bla&&(a.Gc=Gh(bla));var dla=a.QD||b.end;void 0!=dla&&(a.clipEnd=iC(a.clipEnd,dla));var ela=b.fmt_list;ela&&(a.oI=ela);b.heartbeat_preroll&&a.ra.push("heartbeat");a.ol=-Math.floor(10*Math.random());a.Sm=-Math.floor(40*Math.random());var fla=b.is_listed;fla&&(a.isListed=gC(a.isListed,fla));var gla=b.is_private;gla&&(a.isPrivate=gC(a.isPrivate,gla));var hla=b.is_dni;hla&&(a.D=
gC(a.D,hla));var ila=b.dni_color;ila&&(a.gb=jC(a.gb,ila));var jla=b.pipable;jla&&(a.pipable=gC(a.pipable,jla));a.Sw=a.pipable&&a.B.Xm;a.DE=a.Sw&&(!a.B.showMiniplayerButton||a.N("web_player_pip"));var kla=b.paid_content_overlay_duration_ms;kla&&(a.paidContentOverlayDurationMs=Gh(kla));var lla=b.paid_content_overlay_text;lla&&(a.paidContentOverlayText=lla);var mla=b.url_encoded_fmt_stream_map;mla&&(a.Nj=mla);var nla=b.hls_formats;nla&&(a.hlsFormats=nla);var ola=b.hlsvp;ola&&(a.hlsvp=ola);var SJ=b.length_seconds;
SJ&&(a.lengthSeconds="string"===typeof SJ?Gh(SJ):SJ);var TJ=b.live_start_walltime;TJ&&(a.PD="number"===typeof TJ?TJ:Gh(TJ));var UJ=b.live_manifest_duration;UJ&&(a.ai="number"===typeof UJ?UJ:Gh(UJ));var pla=b.player_params;pla&&(a.playerParams=pla);var qla=b.partnerid;qla&&(a.Ga=iC(a.Ga,qla));var rla=b.probe_url;rla&&(a.probeUrl=Hw(g.sj(rla,{cpn:a.clientPlaybackNonce})));var cY=b.pyv_billable_url;cY&&$pa(cY)&&(a.Me=cY);var dY=b.pyv_conv_url;dY&&$pa(dY)&&(a.XL=dY);Iva(a,b);0<a.startSeconds||(a.startSeconds=
iC(a.startSeconds,a.RD||a.wI||b.start||b.startSeconds),a.fd=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var sla=b.live_utc_start;if(null!=sla)a.liveUtcStartSeconds=Number(sla);else{var eY=a.startSeconds;eY&&isFinite(eY)&&1E9<eY&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var tla=b.utc_start_millis;tla&&(a.liveUtcStartSeconds=.001*Number(tla))}var ula=b.stream_time_start_millis;ula&&(a.zq=.001*Number(ula));var vla=a.wI||b.start;
void 0==vla||"1"==b.resume||a.isLivePlayback||(a.clipStart=iC(a.clipStart,vla));var wla=b.url_encoded_third_party_media;wla&&(a.Mj=nr(wla));var fY=b.ypc_offer_button_formatted_text;if(fY){var xla=JSON.parse(fY);a.OE=null!=xla?xla:null;a.VQ=fY}var yla=b.ypc_offer_button_text;yla&&(a.Bt=yla);var zla=b.ypc_offer_description;zla&&(a.Hl=zla);var Ala=b.ypc_offer_headline;Ala&&(a.Ot=Ala);var Bla=b.ypc_full_video_message;Bla&&(a.Fl=Bla);var Cla=b.ypc_offer_id;Cla&&(a.Wj=Cla);var Dla=b.ypc_buy_url;Dla&&(a.xt=
Dla);var Ela=b.ypc_item_thumbnail;Ela&&(a.zt=Ela);var Fla=b.ypc_item_title;Fla&&(a.Gl=Fla);var Gla=b.ypc_item_url;Gla&&(a.At=Gla);var Hla=b.ypc_vid;Hla&&(a.Pt=Hla);b.ypc_overlay_timeout&&(a.Il=Number(b.ypc_overlay_timeout));var Ila=b.ypc_trailer_player_vars;Ila&&(a.bk=mr(Ila));var Jla=b.ypc_original_itct;Jla&&(a.qS=Jla);a.Zj=jC(a.Zj,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=gC(a.S.focEnabled,b.focEnabled);a.S.rmktEnabled=gC(a.S.rmktEnabled,b.rmktEnabled);a.yq=b.storyboard_spec||null;a.Qs=b.live_storyboard_spec||null;a.vL=b.iv_endscreen_url||null;a.WJ=gC(a.WJ,b.iv3_module);a.Vj=gC(a.Vj,b.ypc_license_checker_module);a.qf=gC(a.qf,b.ypc_module);a.cf=gC(a.cf,b.ypc_clickwrap_module);a.qf&&a.ra.push("ypc");a.cf&&a.ra.push("ypc_clickwrap");a.HL={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};Fva(a,b);var Kla=b.cotn;Kla&&(a.cotn=Kla);if(Lva(a))YD(a)&&(a.isLivePlayback&&a.rb&&(a.De=!0),a.Id&&(a.pk=!0));
else if(Mva(a))a.De=!0;else{var Ola=Nva(a,a.adaptiveFormats);if(Ola){ZD(a,Ola);var Pla=!0}else Pla=!1;Pla?a.N("html5_disable_manifestfull_ssdai_killswitch")||(a.enableServerStitchedDai=a.enableServerStitchedDai&&$D(a)):a.rb&&(a.De=!0)}var hY=b.adpings;hY&&(a.Vm=hY?mr(hY):null);var Qla=b.feature;Qla&&(a.mN=Qla);var Rla=b.referrer;Rla&&(a.referrer=Rla);a.clientScreenNonce=jC(a.clientScreenNonce,b.csn);a.rz=iC(a.rz,b.root_ve_type);a.vl=iC(a.vl,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=
b.kids_app_info);a.ut=gC(a.ut,b.upg_content_filter_mode);var Sla=b.unplugged_location_info;Sla&&(a.ma=Sla);var Tla=b.unplugged_partner_opt_out;Tla&&(a.Ow=jC("",Tla));a.Dr=gC(a.Dr,b.disable_watch_next);a.nk=jC(a.nk,b.internal_ip_override);a.qJ=!!b.is_yto_interstitial;(a.interstitials.length||a.qJ)&&a.ra.push("yto");var Ula=b.zj;Ula&&(a.zj=Ula);b.jD&&(a.jD=b.jD);var Vla;a.Aa=null!=(Vla=b.csi_timer)?Vla:"";a.Uh=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.N("html5_attach_watch_endpoint_ustreamer_config")&&
b.watch_endpoint&&Ova(a,b.watch_endpoint)};
Eva=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.watchNextResponse=c;var e=a.watchNextResponse.contents;if(e){var f=e.singleColumnWatchNextResults;if(f){var k=iC(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.tD(a.B),p=null,q;if(l){for(var t=g.r(l),v=t.next();!v.done;v=t.next()){var x=v.value.autoplayVideoRenderer;if(x&&x.compactVideoRenderer){p=x.compactVideoRenderer;
break}}if(q=l[0].autoplayVideo){var y=q.clickTrackingParams;y&&(m.itct=y);m.autonav="1";m.playnext=String(k)}}else m.feature="related-auto";if(p){n.videoId=p.videoId;var z=p.shortBylineText;z&&(n.author=g.Qw(z));var E=p.title;E&&(n.title=g.Qw(E))}else{var J,I;if(null==(J=q)?0:null==(I=J.watchEndpoint)?0:I.videoId)n.videoId=q.watchEndpoint.videoId}n.xx=m;a.suggestions=[n]}}var N=e.twoColumnWatchNextResults}var Z,K;a.dS=!!(null==(Z=N)?0:null==(K=Z.autoplay)?0:K.autoplay);var ra=a.watchNextResponse.playerOverlays;
if(ra){var za=ra.playerOverlayRenderer;if(za){var Pa=za.autonavToggle;Pa&&(a.autoplaySwitchButtonRenderer=Pa.autoplaySwitchButtonRenderer,a.N("web_player_autonav_use_server_provided_state")&&aE(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var Sa=za.endScreen;if(Sa){var ac=Sa.watchNextEndScreenRenderer;if(ac)var zb=ac.results}var yc=za.videoDetails;if(yc){var Rc=yc.embeddedPlayerOverlayVideoDetailsRenderer;var hd=yc.musicEmbeddedPlayerOverlayVideoDetailsRenderer;hd&&(a.FH=hd.title,
a.sH=hd.byline);var he=yc.playerOverlayVideoDetailsRenderer;he&&(he.title&&(b.title=g.Qw(he.title)),he.subtitle&&(b.subtitle=g.Qw(he.subtitle)))}var Lf=za.actions;if(Lf)for(var Ab=g.r(Lf),Mf=Ab.next();!Mf.done;Mf=Ab.next()){var pg=Mf.value;pg.likeButtonRenderer&&(a.likeButtonRenderer=pg.likeButtonRenderer)}var Zi,ie,zc=null==(Zi=za.suggestedActionsRenderer)?void 0:null==(ie=Zi.suggestedActionsRenderer)?void 0:ie.suggestedActions;if(zc)for(var wk=g.r(zc),Ie=wk.next();!Ie.done;Ie=wk.next()){var $i=
Ie.value,Rh=void 0,xk=void 0;if(null==(Rh=$i.suggestedActionRenderer)?0:null==(xk=Rh.trigger)?0:xk.suggestedActionTimeRangeTrigger)a.suggestedAction=$i.suggestedActionRenderer}var je,yk=null==(je=za.decoratedPlayerBarRenderer)?void 0:je.decoratedPlayerBarRenderer;if(yk){var Dn;a.multiMarkersPlayerBarRenderer=null==(Dn=yk.playerBar)?void 0:Dn.multiMarkersPlayerBarRenderer;var En,Fn;a.SE=null==(En=yk.playerBar)?void 0:null==(Fn=En.chapteredPlayerBarRenderer)?void 0:Fn.chapters;var qg;a.lS=null==(qg=
yk.playerBarActionButton)?void 0:qg.buttonRenderer}g.xC(a.B)&&(a.Ag=!!za.addToMenu);Pva(a,za.shareButton);var Gn=za.productsInVideoOverlayRenderer;Gn&&(a.shoppingOverlayRenderer=Gn.shoppingOverlayRenderer);var Sh=za.autoplay;if(Sh)var qd=Sh.playerOverlayAutoplayRenderer;a.progressBarStartPosition=za.startPosition;a.progressBarEndPosition=za.endPosition}}if(!zb&&N){var eh=N.endScreen&&N.endScreen.endScreen;eh&&(zb=eh.results)}if(N){var zk=N.desktopOverlay&&N.desktopOverlay.desktopOverlayConfigRenderer;
zk&&(zk.suppressShareButton&&(a.showShareButton=!1),zk.suppressWatchLaterButton&&(a.Ag=!1))}Rc&&Qva(a,b,Rc);var fh=iC(0,b.autoplay_count);if(zb){for(var Dq=N||null,gh=qd||null,Ak=[],Ml=!0,hh=g.r(zb),Bk=hh.next();!Bk.done;Bk=hh.next()){var aj=Bk.value,bj=void 0,Wb=null;if(aj.endScreenVideoRenderer){var Je=aj.endScreenVideoRenderer,Ck=Je.title;Wb=new g.tD(a.B);Wb.videoId=Je.videoId;Wb.lengthSeconds=Je.lengthInSeconds||0;var Hn=Je.publishedTimeText;Hn&&(Wb.publishedTimeText=g.Qw(Hn));var In=Je.shortBylineText;
In&&(Wb.author=g.Qw(In));var Ac=Je.shortViewCountText;Ac&&(Wb.shortViewCount=g.Qw(Ac));if(Ck){Wb.title=g.Qw(Ck);var Dk=Ck.accessibility;if(Dk){var cj=Dk.accessibilityData;cj&&cj.label&&(Wb.ariaLabel=cj.label)}}var dj=Je.navigationEndpoint;if(dj){bj=dj.clickTrackingParams;var Jn=dj.watchEndpoint;Jn?Wb.yx=Jn:dj.urlEndpoint&&(Wb.watchUrl=dj.urlEndpoint.url)}var Kn=Je.thumbnailOverlays;if(Kn)for(var ej=g.r(Kn),lf=ej.next();!lf.done;lf=ej.next()){var Ek=lf.value.thumbnailOverlayTimeStatusRenderer;if(Ek)if("LIVE"===
Ek.style){Wb.isLivePlayback=!0;break}else if("UPCOMING"===Ek.style){Wb.isUpcoming=!0;break}}Wb.Z=rD(Je.thumbnail)}else if(aj.endScreenPlaylistRenderer){var fj=aj.endScreenPlaylistRenderer,ih=fj.navigationEndpoint;if(!ih)continue;var Nl=ih.watchEndpoint;if(!Nl)continue;var Ln=Nl.videoId;Wb=new g.sD(a.B);Wb.playlistId=fj.playlistId;Wb.playlistLength=Number(fj.videoCount)||0;Wb.j=Ln||null;Wb.videoId=Ln;var jh=fj.title;jh&&(Wb.title=g.Qw(jh));var Mn=fj.shortBylineText;Mn&&(Wb.author=g.Qw(Mn));bj=ih.clickTrackingParams;
Wb.Z=rD(fj.thumbnail)}Wb&&(bj&&(Wb.sessionData={itct:bj}),Ml?(Rva(Wb,Dq,gh,fh),Ak.splice(0,0,Wb),Ml=!1):Ak.push(Wb))}a.suggestions=Ak}if(qd){a.IL=!!qd.preferImmediateRedirect;a.ud=a.ud||!!qd.webShowNewAutonavCountdown;a.Si=a.Si||!!qd.webShowBigThumbnailEndscreen;if(a.ud||a.Si){var ke=qd,Nn=zb||null,On=N||null,id=new g.tD(a.B);id.videoId=ke.videoId;var Pn,Qn,gj=null==Nn?void 0:null==(Pn=Nn[0])?void 0:null==(Qn=Pn.endScreenVideoRenderer)?void 0:Qn.navigationEndpoint;if(gj){var rg=gj.clickTrackingParams;
rg&&(id.sessionData={itct:rg})}var Od=ke.videoTitle;if(Od){id.title=g.Qw(Od);var Ol=Od.accessibility;if(Ol){var Pl=Ol.accessibilityData;Pl&&Pl.label&&(id.ariaLabel=Pl.label)}}var Fk=ke.byline;Fk&&(id.author=g.Qw(Fk));var Gk=ke.publishedTimeText;Gk&&(id.publishedTimeText=g.Qw(Gk));var Ql=ke.shortViewCountText;Ql&&(id.shortViewCount=g.Qw(Ql));var Rn=ke.thumbnailOverlays;if(Rn)for(var Sn=g.r(Rn),Tn=Sn.next();!Tn.done;Tn=Sn.next()){var hj=Tn.value.thumbnailOverlayTimeStatusRenderer;if(hj)if("LIVE"===
hj.style){id.isLivePlayback=!0;break}else if("UPCOMING"===hj.style){id.isUpcoming=!0;break}else if("DEFAULT"===hj.style&&hj.text){id.lengthText=g.Qw(hj.text);var qv=hj.text.accessibility;if(qv){var rv=qv.accessibilityData;rv&&rv.label&&(id.Rr=rv.label||"")}break}}id.Z=rD(ke.background);var bB=ke.nextButton;if(bB){var fm=bB.buttonRenderer;if(fm){var qe=fm.navigationEndpoint;if(qe){var gm=qe.watchEndpoint;gm&&(id.yx=gm)}}}if(ke.topBadges){var cB=ke.topBadges[0];if(cB){var dB=cB.metadataBadgeRenderer;
dB&&"BADGE_STYLE_TYPE_PREMIUM"==dB.style&&(id.jD=!0)}}var eB=ke.alternativeTitle;eB&&(id.Oo=g.Qw(eB));Rva(id,On,ke,fh);a.suggestions||(a.suggestions=[]);a.suggestions[0]=id}null!=qd.countDownSecs&&(a.aQ=1E3*qd.countDownSecs);var fB;a.f1=null==(fB=qd.cancelButton)?void 0:fB.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Z=rD(a.watchNextResponse.currentVideoThumbnail));if(!a.N("player_parse_profile_picture_from_watch_next_killswitch")){var gB,vo,hB,iB,wr,tv=null==(gB=a.watchNextResponse)?
void 0:null==(vo=gB.contents)?void 0:null==(hB=vo.twoColumnWatchNextResults)?void 0:null==(iB=hB.results)?void 0:null==(wr=iB.results)?void 0:wr.contents;if(tv&&tv[1]){var jB,kB,xr,lB,yr=null==(jB=tv[1].videoSecondaryInfoRenderer)?void 0:null==(kB=jB.owner)?void 0:null==(xr=kB.videoOwnerRenderer)?void 0:null==(lB=xr.thumbnail)?void 0:lB.thumbnails;yr&&yr.length&&(a.profilePicture=yr[yr.length-1].url)}}var mB=a.watchNextResponse.onResponseReceivedEndpoints;if(mB)for(var hm=g.r(mB),uv=hm.next();!uv.done;uv=
hm.next()){var im=uv.value;im.changeKeyedMarkersVisibilityCommand&&(a.xL=im.changeKeyedMarkersVisibilityCommand);var vv=void 0;a.N("web_key_moments_markers")&&(null==(vv=im.loadMarkersCommand)?0:vv.entityKeys)&&(a.As=im.loadMarkersCommand.entityKeys,im.loadMarkersCommand.visibleOnLoadKeys&&(a.visibleOnLoadKeys=im.loadMarkersCommand.visibleOnLoadKeys))}}};
aE=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
bE=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
eE=function(a){if(a.N("html5_single_format_policy")&&a.bd)return a.bd;var b=a.Ia,c=!!a.j&&a.j.fg,d=a.B,e=a.ZG(),f=cE(a),k=a.NE,l=a.isOtf(),m=a.cF(),n=a.Ib,p=a.Pe,q=new rta;if(dD(d)||d.N("html5_logging_format_selection"))q.B=!0;q.Xa=f;q.Aa=k&&d.B;q.Pe=p;Yr("windows nt 5.1")&&!g.Fx&&(q.j=!0);if(f=e)f=d.N("disable_html5_ambisonic_audio")||!(g.ZC(d)||d.N("html5_enable_spherical")||d.N("html5_enable_spherical3d"))?!1:xua(d);f&&(q.Ua=!0);b&&(q.j=!0,q.Vb=!0);l&&!d.N("html5_otf_prefer_vp9")&&(q.j=!0);n&&
(q.j=!0);b=d.N("html5_ugc_vod_audio_51")&&!c;l=d.N("html5_ugc_live_audio_51")&&c;q.Ia=b||l;Tx(d.u,Ux.CHANNELS)&&(d.N("html5_enable_aac51")&&(q.ma=!0),d.N("html5_enable_ac3")&&(q.D=!0),d.N("html5_enable_eac3")&&(q.J=!0),d.N("html5_enable_ac3_gapless")&&(q.Ga=!0));d.N("html5_block_8k_hfr")&&(q.ib=!0);q.K=g.sB(d.experiments,"html5_max_selectable_quality_ordinal");q.S=g.sB(d.experiments,"html5_min_selectable_quality_ordinal");!d.N("html5_kaios_hd_killswitch")&&oC&&(q.Kb=480);if(c||e)q.gb=!1;q.kb=!1;c=
UA(d,q.u);0<c&&2160>c&&(zA()||d.N("html5_format_hybridization"))&&(q.u.supportsChangeType=+zA(),q.Y=c);2160<=c&&(q.ra=!0);pta()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.kc=!1);q.cF=m;q.Ta=g.ot||js()&&!m?!1:!0;q.va=d.N("html5_format_hybridization");q.Ib=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");as()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.J=!0);a.Ia&&a.isAd()&&
(a.Um&&(q.Z=a.Um),a.Tm&&(q.C=a.Tm));q.La=a.isLivePlayback&&dE(a)&&a.B.N("html5_drm_live_audio_51");return a.bd=q};
Sva=function(a){mx("drm_pb_s",void 0,a.Aa);a.Id||a.j&&Wx(a.j);var b={};a.j&&(b=Pqa(eE(a),a.B.u,a.j,function(c){return a.ea("ctmp","fmtflt",c)},!0));
b=new vB(b,a.B.experiments,a.vO,a.useCobaltWidevine?as()?fE(a):!1:!1,function(c,d){a.xa(c,d)});
g.H(a,b);a.pk=!1;a.La=!0;vta(b,function(c){mx("drm_pb_f",void 0,a.Aa);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.Id;e.K=a.U0;e.J=a.F0;break;case "widevine":e.B=a.DO}a.Xs=c;if(0<a.Xs.length&&(a.Y=a.Xs[0],2<=a.B.Y)){c={};d=g.r(Object.entries(a.Y.j));for(e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;var k="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(k=e[2]);c[k]=f}a.xa("drmProbe",c)}VD(a)})};
Nva=function(a,b){var c;(c=!b)||(c=!(!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.TC(a.B)&&g.IC(a.B)?0:!YD(a)&&a.adaptiveFormats));if(c)return null;gE(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(gta=!0);b=hE(b);c=Date.now();var d=a.ke;var e=a.lengthSeconds,f=a.isLivePlayback,k=a.Lf,l=a.B,m=Tsa(b);if(f||k){l=new GA("",null==l?void 0:l.experiments,!0);e=g.r(b);for(f=e.next();!f.done;f=e.next()){var n=f.value;f=IA(n,d);m=JA(n.url,n.sp,n.s);var p=Number(n.target_duration_sec)||5;
n=Number(n.max_dvr_duration_sec)||14400;var q=Number(m.get("mindsq")||m.get("min_sq")||"0"),t=Number(m.get("maxdsq")||m.get("max_sq")||"0")||Infinity;l.Ye=l.Ye||q;l.yh=l.yh||t;var v=!gA(f.mimeType);m&&HA(l,new Mz(m,f,{Uj:p,Ll:v,qn:n,Ye:q,yh:t,Ay:300,Lf:k}))}l.u=!k;l.fg=!0;l.isManifestless=!0;l.isLive=!k;l.Lf=k;l.K=!!l.Ye&&!!l.yh&&isFinite(l.yh);d=l}else if(3===m){e=void 0===e?0:e;k=new GA("",null==l?void 0:l.experiments,!1);k.duration=e||0;l=g.r(b);for(e=l.next();!e.done;e=l.next())if(p=e.value,e=
IA(p,d,k.duration),f=JA(p.url,p.sp,p.s))3===e.streamType?HA(k,new Nz(f,e,"sq/0")):(m=pz(p.init),p=pz(p.index),HA(k,new Uz(f,e,m,p)));k.isOtf=!0;d=k}else{e=void 0===e?0:e;k=new GA("",null==l?void 0:l.experiments,!1);k.duration=e||0;e=g.r(b);for(f=e.next();!f.done;f=e.next())if(n=f.value,f=IA(n,d,k.duration),m=pz(n.init),p=pz(n.index),n=JA(n.url,n.sp,n.s))q=void 0,HA(k,new Uz(n,f,m,p,null==(q=l)?void 0:q.pk));d=k}c=Date.now()-c;a.N("html5_log_manifest_performance")&&(k=Rsa(d)?1:0,a.xa("mfsp",{wasm:k,
t:c}));0<b.length&&(b=b[0],b.url&&b.sp&&b.s&&(b=JA(b.url,b.sp,b.s),b=Number(b.get("max_sq"))||Infinity,isFinite(b)&&(a.Wh=!0)));return d};
YD=function(a){return as()?!fE(a):cs()?!(!a.Id||!a.N("html5_enable_safari_fairplay")):!1};
fE=function(a){return gE(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"'))};
$D=function(a){return!(!a.j||!a.j.isManifestless)};
Tva=function(a){if(!Gx())return!1;if(a.N("html5_streaming_debug")||$D(a)&&("ULTRALOW"==a.latencyClass||21530001==iE(a)))return!0;if(!window.AbortController&&!Hx()||a.Ia)return!1;if(a.N("html5_streaming_xhr"))return!0;var b;return a.N("html5_streaming_xhr_vod")&&!1===(null==(b=a.j)?void 0:b.fg)?!0:!1};
Uva=function(a){return Yqa({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,im:a.im,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:$D(a),oJ:Tva(a)})};
iE=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=OA(a.j)?21530001:a.liveExperimentalContentId};
Lva=function(a){return as()&&fE(a)?!1:YD(a)&&g.TC(a.B)&&!a.isLivePlayback||!yB(a.B.u)||a.TE?!0:!1};
Wva=function(a){a.La=!0;a.De=!1;if(Mva(a))g.Zua(a.videoId).then(function(c){Vva(a,c)}).then(function(){VD(a)});
else{Fw(a.rb)||g.Jv(new g.Is("DASH MPD Origin invalid: ",a.rb));var b=a.rb;b=g.sj(b,{mpd_version:g.sB(a.B.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.sj(b,{pacing:0}));ata(b,a.B.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(ZD(a,c,!0),mx("mrc",void 0,a.Aa),VD(a))},function(c){a.isDisposed()||(a.La=!1,a.ea("dataloaderror",new fD("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
mx("mrs",void 0,a.Aa)}};
Vva=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 vva(e)}).join(",");
d=Nva(a,d);ZD(a,d);a.xa("dlr",{})};
VD=function(a){a.isDisposed()||(a.La=!1,a.ea("dataloaded"))};
ZD=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.H(a,b);b.Ye=a.Ye;b.yh=a.yh;b.D=a.WL;b.C=a.UL;a.N("html5_start_walltime_min_seekable_killswitch")||(b.J=a.sO);Xva(a)&&a.ra.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.ai=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.xa,a),c?b.subscribe("refresh",a.wP,a):b.subscribe("cuepointsadded",a.EM,a));Wx(b)&&(a.pk=!0)};
dE=function(a){return a.ke?!0:!!a.j&&Wx(a.j)};
bwa=function(a,b){if(a.isDisposed())return Lr();a.C=null;a.ib=null;a.kc=null;if(gE(a,"html5_high_res_logging")||gE(a,"html5_high_res_logging_live_infra"))a.B.Y=2;return Yva(a,b).then(void 0,function(){return Zva(a,b)}).then(void 0,function(){return $va(a)}).then(void 0,function(){return awa(a)})};
Yva=function(a,b){var c=b||Lva(a);if(!a.j||c)return a.xa("skipDash",{dm:!!a.j,air:b,dd:a.TE,mss:yB(a.B.u)}),Lr();cE(a)&&eta(a.j,a.isLivePlayback);gE(a,"html5_enable_cobalt_experimental_vp9_decoder")&&Eta(a.B.u);return Mr().then(function(){return Xqa(eE(a),a.B.u,a.j,a.Y,function(d){return a.ea("ctmp","fmtflt",d)}).then(function(d){cwa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.bd&&a.xa("av1",a.bd.u)})})};
Zva=function(a,b){if(b&&a.hlsvp)return Lr();if(a.hlsFormats){b=hE(a.hlsFormats);var c;if((null==(c=a.bd)?0:c.B)&&b){c=[];for(var d=g.r(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.xa("hlsfmt",{itags:c.join(".")})}a.us=Fua(a.B,b);c=a.clientPlaybackNonce;var f,k,l,m;return Kua(a.B,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(k=f.captions)?void 0:null==(l=k.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.ql,c,function(n){return a.ea("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],t=g.r(n),v=t.next();!v.done;v=t.next()){v=v.value;
var x=void 0;q.push(null==(x=v.cg())?void 0:x.Yb());var y=x=void 0;(null==(x=v.cg())?void 0:null==(y=x.audio)?void 0:y.numChannels)>p&&(p=v.cg().audio.numChannels)}2<p&&a.xa("hlschl",{mn:p});var z;(null==(z=a.bd)?0:z.B)&&a.xa("hlsfmtaf",{itags:q.join(".")});jE(a,n)})}return Lr()};
$va=function(a){return a.Mj&&a.lK?Mua(a.B,a.isAd(),a.Mj).then(function(b){jE(a,b)}):Lr()};
awa=function(a){var b=hE(a.Nj,a.oI);if(a.hlsvp){var c=Bva(a.hlsvp,a.clientPlaybackNonce,a.ql);b.push(c)}return Lua(a.B,a.isAd(),b,dwa(a)).then(function(d){jE(a,d)})};
cwa=function(a,b){a.C=b;b=a.getAvailableAudioTracks();b=b.concat(a.hk);for(var c=0;c<a.Vw.length;c++)for(var d=a.Vw[c],e=0;e<b.length;e++){var f=b[e],k=f.Ic.id==d.audioTrackId;if(f.Ic.isDefault&&c==a.zR||k){if(d.captionTrackIndices)for(k=0;k<d.captionTrackIndices.length;k++)f.captionTracks[k]=a.captionTracks[d.captionTrackIndices[k]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.Y&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=fA(a.C.videoInfos[0]),b!=("fairplay"==a.Y.flavor)))for(c=g.r(a.Xs),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.Y=d;break}};
jE=function(a,b){a.kc=b;cwa(a,new Px(g.Wl(a.kc,function(c){return c.cg()})))};
dwa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Rs&&(b.ptk=a.Rs,b.oid=a.FL,b.ptchn=a.EL,b.pltype=a.GL,a.Mr&&(b.m=a.Mr));return b};
g.kE=function(a){return YD(a)&&a.Id?(a={},a.fairplay="https://web.archive.org/web/20220414023957/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.ke||null};
ewa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Qw(b.text):a.paidContentOverlayText};
lE=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Gh(b.durationMs):a.paidContentOverlayDurationMs};
mE=function(a){var b="";if(a.YJ)return a.YJ;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Lf?"post":a.Wh?"window":"live");return b};
g.nE=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
oE=function(a){return!!(a.rb||a.adaptiveFormats||a.Nj||a.Mj||a.hlsvp)};
UD=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Sb(a.ra,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.La&&(oE(a)||g.Sb(a.ra,"heartbeat")||b)};
hE=function(a,b){a=nr(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};
Pva=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Dl=!!e.copyTextEndpoint)};
Dva=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.oh=c);if(a.oh){if(c=a.oh.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.oh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.gb=d,a.D=!0):(a.gb="",a.D=!1);if(d=c.defaultThumbnail)a.Z=rD(d),a.sampledThumbnailColor=
d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&Qva(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.FH=e.title,a.sH=e.byline,e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.Ag=!!c.addToWatchLaterButton;Pva(a,c.shareButton);var k,l,m;if(f=null==c?void 0:null==(k=c.playButton)?void 0:null==(l=k.buttonRenderer)?void 0:null==(m=l.navigationEndpoint)?
void 0:m.watchEndpoint)Ova(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Gh(c.videoDurationSeconds));c.webPlayerActionsPorting&&pva(a,c.webPlayerActionsPorting);var n;if(k=null==c?void 0:null==(n=c.playlist)?void 0:n.playlistPanelRenderer){n=[];l=Number(k.currentIndex);if(k.contents)for(m=0,f=k.contents.length;m<f;m++)if(e=k.contents[m].playlistPanelVideoRenderer)c=e.shortBylineText?g.Qw(e.shortBylineText):"",d=e.title?g.Qw(e.title):"",n.push({author:c,encrypted_id:e.videoId,
title:d,channel_path:m===l?b.channel_path:"",profile_picture:m===l?b.profile_picture:"",is_private:m===l?a.isPrivate:!1,is_dni:m===l?a.D:!1,dni_color:m===l?a.gb:""});b={index:k.currentIndex,list:k.playlistId,playlist_length:k.totalVideos,video:n};k.titleText&&(b.title=g.Qw(k.titleText));k.shortBylineText&&(b.author=g.Qw(k.shortBylineText));a.WR=b}}if(a.oh.previewPlayabilityStatus){if(a.Ws=a.oh.previewPlayabilityStatus,b=a.Ws,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){n=b.errorScreen;if(k=null==
n?void 0:n.playerErrorMessageRenderer){a.WF=k;if(l=k.reason)a.errorReason=g.Qw(l);if(k=k.subreason)a.yk=g.Qw(k)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var p;(null==n?0:null==(p=n.playerKavRenderer)?0:p.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.oh.playabilityStatus&&(a.lk=a.oh.playabilityStatus,
fwa(a)&&(a.errorDetail="0",a.lk&&((p=a.lk.embeddedPlayerErrorMessageRenderer)?a.WF=p.embeddedPlayerErrorMessageRenderer:a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.lk.reason||null))));(p=a.oh.attestation)&&kva(a,p);(p=a.oh.permissions)&&p.allowImaMonetization&&(a.allowImaMonetization=!0)}};
Ova=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.DL=new dva(b)};
Rva=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,k,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(k=f.sets)?void 0:null==(l=k[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=m.watchEndpoint)&&(a.oM=e)}else if(c){var n,p;(e=null==(m=c.nextButton)?void 0:null==(n=m.buttonRenderer)?void 0:null==(p=n.navigationEndpoint)?void 0:p.clickTrackingParams)&&(d.itct=e)}d.itct||(d.feature="related-auto");a.xx=d};
Qva=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e,f,k;if(d=null==c?void 0:null==(e=c.channelThumbnailEndpoint)?void 0:null==(f=e.channelThumbnailEndpoint)?void 0:null==(k=f.urlEndpoint)?void 0:k.urlEndpoint)b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=e.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){if(f=e.title)b.title=g.Qw(f);if(e=e.subtitle)b.subtitle=g.Qw(e)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(e=
c.title)b.expanded_title=g.Qw(e);if(e=c.subtitle)b.expanded_subtitle=g.Qw(e);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Ui=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.LE=b.toggledServiceEndpoint||null,a.JE=b.defaultServiceEndpoint||null):(a.LE=b.defaultServiceEndpoint||null,
a.JE=b.toggledServiceEndpoint||null))}};
g.pE=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
qE=function(a){return a.isLivePlayback&&a.allowLiveDvr};
g.rE=function(a){return!!a.j&&Msa(a.j)};
g.sE=function(a){return!!a.j&&Nsa(a.j)};
Xva=function(a){return a.ZG()||g.tE(a)};
g.uE=function(a){return!!a.j&&Osa(a.j)};
g.tE=function(a){return!!a.j&&Psa(a.j)};
g.gwa=function(a){if(a.FE)return null;var b=a.vL;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.hwa=function(a){return a.FE?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.vE=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.wE=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};
xE=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.B.Ia};
yE=function(a){if(a.isAd()&&a.videoId!=a.B.ud)return a.B.ud};
zE=function(a){return a.xm||"detailpage"==xE(a)||"shortspage"==xE(a)||a.mutedAutoplay};
AE=function(a){if(zE(a)){if("detailpage"==xE(a)||"shortspage"==xE(a))return a.nm||0<a.Vb;if(!("17_8"===a.adFormat&&!a.nm||a.NQ||"adunit"==xE(a)&&a.Me))return!0}return!1};
g.BE=function(a){return a.oauthToken||a.B.qd};
iwa=function(a){var b=1,c=g.sB(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Oe;a.C&&a.C.j&&a.C.j[0]&&a.Vs[a.C.j[0].id]&&(c=a.Vs[a.C.j[0].id]);if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.FO)return Math.min(1,Math.pow(10,-a.Nw/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.B.Nj,g.sB(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.Nw=c}return Math.min(1,Math.pow(10,-c/20))||b};
cE=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===GC(a.B)&&"MUSIC"===a.B.deviceParams.ctheme;!a.Qe&&(g.AC(a.B)||c)&&b.includes(a.musicVideoType)&&(a.Qe=!0);if(b=g.$r())b=/Starboard\/([0-9]+)/.exec(g.qb()),b=10>(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===GC(c)||"TVHTML5"===GC(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme;!a.Qe&&(c||vua(a.B))&&!b&&
(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.N("cast_prefer_audio_only_for_atv_and_uploads")||a.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Qe=!0);return XC(a.B)||a.Qe&&a.B.B};
jwa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
CE=function(a){return!(!a.jk||!a.B.B)&&!!a.adaptiveFormats};
kwa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
Mva=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.xD(b);return b&&!a.jk};
g.DE=function(a){if(!a.j||!a.u||!a.J)return!1;var b=a.j.j;return!!b[a.u.id]&&dy(b[a.u.id].u.j)&&!!b[a.J.id]&&dy(b[a.J.id].u.j)};
lwa=function(a){return a.Ws?["OK","LIVE_STREAM_OFFLINE"].includes(a.Ws.status):!0};
fwa=function(a){return(a=a.lk)&&a.showError?a.showError:!1};
gE=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
mwa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
Iva=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.SD=b.quartile_0_url,a.PL=b.quartile_25_url,a.RL=b.quartile_50_url,a.TL=b.quartile_75_url,a.NL=b.quartile_100_url,a.Ys=b.quartile_0_urls,a.VD=b.quartile_25_urls,a.WD=b.quartile_50_urls,a.XD=b.quartile_75_urls,a.TD=b.quartile_100_urls};
XD=function(a,b){return b?yB(a.B.u)?!0:EE&&5>FE?!1:!0:!1};
Hva=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};
lva=function(a){if(a){if(dqa(a))return a;a=eqa(a);if(dqa(a,!0))return a}return""};
g.nwa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.nE(a,"yt:cc_default_lang")||a.B.Qf};
GE=function(a){return!!(a.N("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
HE=function(a,b){this.j=a;this.Z=b||{};this.J=String(Math.floor(1E9*Math.random()));this.D={};this.Y=this.S=0};
owa=function(a){return IE(a)&&1==a.getPlayerState(2)};
IE=function(a){a=a.Pc();return void 0!==a&&2==a.getPlayerType()};
JE=function(a){a=a.V();return HC(a)&&!g.TC(a)&&"desktop-polymer"==a.playerStyle};
KE=function(a,b){var c=a.V();wC(c)||"3"!=c.controlsType||a.Ya().vz(b)};
ME=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.j=e;this.u=f;this.id=LE(a)};
LE=function(a){return a+(":"+(qq.getInstance().j++).toString(36))};
NE=function(a){this.X=a};
pwa=function(a,b){if(0===b||1===b&&(a.X.isMobile&&g.Qs?0:a.X.isMobile||g.TC(a.X)||g.IC(a.X)||JC(a.X)||!g.Qs))return!0;a=g.Th("video-ads");return null!=a&&"none"!==Nm(a,"display")};
qwa=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
OE=function(){g.iv.call(this);var a=this;this.j={};g.pf(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
QE=function(){if(null===PE){PE=new OE;Zl(op).u="b";var a=Zl(op),b="h"==hp(a)||"b"==hp(a),c=!(dm(),!1);b&&c&&(a.C=!0,a.D=new wga)}return PE};
rwa=function(a,b,c){a.j[b]=c};
swa=function(){};
RE=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
SE=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
TE=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],
["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",a.unmutedClickthroughPings||
[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]]])};
twa=function(a){return(a=a.pings)?Object.fromEntries(TE(a)):{}};
UE=function(a,b,c,d,e){HE.call(this,a,twa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ia=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new RE(0,[]);this.va=null;this.C={};this.ra=null;this.u=0;this.K=null;this.ma=e;this.Ga=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.ra=c);this.C=mr(this.j.playerVars||"");this.K=this.j.externalVideoId||null;this.u=iC(this.u,this.C.length_seconds);this.ma&&this.K&&(this.Ga=this.ma(this.K));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.Iv(f)}this.va=this.j.clickthroughEndpoint||null;this.B=new RE(0,[this.u])};
uwa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
VE=function(){this.j=[];this.u=0};
WE=function(a,b){b&&a.j.push(b)};
XE=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};
YE=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};
ZE=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
$E=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
vwa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=XE(a.impressionCommands)||[];b.error=XE(a.errorCommands)||[];b.mute=XE(a.muteCommands)||[];b.unmute=XE(a.unmuteCommands)||[];b.pause=XE(a.pauseCommands)||[];b.rewind=XE(a.rewindCommands)||[];b.resume=XE(a.resumeCommands)||[];b.skip=XE(a.skipCommands)||[];b.close=XE(a.closeCommands)||[];b.clickthrough=XE(a.clickthroughCommands)||[];b.fullscreen=XE(a.fullscreenCommands)||[];b.active_view_viewable=XE(a.activeViewViewableCommands)||
[];b.active_view_measurable=XE(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=XE(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=XE(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=XE(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=XE(a.endFullscreenCommands)||[];b.channel_clickthrough=XE(a.channelClickthroughCommands)||[];b.abandon=XE(a.abandonCommands)||
[];b.progress=YE(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=YE(a.progressCommands.filter(function(c){return $E(c)&&vh(ZE(c),0)}));
b.first_quartile=YE(a.progressCommands.filter(function(c){return $E(c)&&vh(ZE(c),.25)}));
b.midpoint=YE(a.progressCommands.filter(function(c){return $E(c)&&vh(ZE(c),.5)}));
b.third_quartile=YE(a.progressCommands.filter(function(c){return $E(c)&&vh(ZE(c),.75)}));
b.complete=YE(a.progressCommands.filter(function(c){return $E(c)&&vh(ZE(c),1)}));
return b};
aF=function(a){HE.call(this,a,vwa(a));a.questions&&a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
wwa=function(a,b,c,d){this.id=b;this.C=d.Rd;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=jqa(b,d);if(null==f)d=new Nw(b,new Xp(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(qq.getInstance().j++).toString(36);
var k=d.daiEnabled||d.Rd;f=new Nw(b,f,d.visible&&!k,"adcuerange:"+e,3);k=null;if(d.Rd||0<d.j)if(d=jqa(b,d,!0))k=new Nw(b,d,!1,"prefetch:"+e,5),f.C=k,k.C=f;d=[k,f]}this.j=d[1];this.u=c;this.J=!1;this.S={};this.K=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
bF=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
dF=function(a,b){var c={};xwa(a,c,b);ywa(c);c.LACT=cF(function(){return Du().toString()});
c.VIS=cF(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=cF(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
zwa=function(a){var b={};if(!a.kind)return g.Iv(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.Iv(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=cF(vg(Math.round(Gh(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=cF(vg("0"));return b};
cF=function(a){return{toString:function(){return a()}}};
Awa=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=k(m))}
if(!c||g.Pf(c))return a;var f=Object.assign({},a),k=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
xwa=function(a,b,c){b.CPN=cF(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.Jv(Error("Video data is null.")),d=null);return d});
b.AD_MT=cF(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=cF(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=cF(function(){return a.Ya().Zh().height.toString()});
b.P_W=cF(function(){return a.Ya().Zh().width.toString()});
b.PV_H=cF(function(){return a.Ya().getVideoContentRect().height.toString()});
b.PV_W=cF(function(){return a.Ya().getVideoContentRect().width.toString()})};
ywa=function(a){a.CONN=cF(vg("0"));a.WT=cF(function(){return Date.now().toString()})};
Bwa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=bF(a)?cF(vg(Math.round(a.j.start/1E3).toString())):cF(vg("0"));return b};
Cwa=function(a){var b={};b.SLOT_POS=cF(vg(a.B.j.toString()));return b};
Dwa=function(a){var b=a&&g.kb(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
eF=function(a){for(var b={},c=g.r(Ewa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
fF=function(){var a={};Object.assign.apply(Object,[a].concat(g.u(g.Ba.apply(0,arguments))));return a};
gF=function(){};
hF=function(a){this.fn=a};
iF=function(a){this.Mq=a};
Gwa=function(a,b,c,d,e,f){e=void 0===e?new iF(new hF(d.getVideoData(1))):e;f=void 0===f?!1:f;g.G.call(this);this.ad=a;this.B=b;this.macros=c;this.j=d;this.Kj=e;this.daiEnabled=f;this.u={UD:.25,SECOND:.5,QE:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.Z.progress||[]);this.progressPings.sort(function(k,l){return k.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.Z.unmuted_progress||[]);this.unmutedProgressPings.sort(function(k,l){return k.offsetMilliseconds-l.offsetMilliseconds});
Fwa(SE(a.j.pings))};
nF=function(a,b){jF(a)||(kF(a)?(lF(a,0,!0),Hwa(a,b,b)):(lF(a,0,!0),Iwa(a,0,0,!0)),mF(a,"complete"))};
lF=function(a,b,c){for(c=void 0===c?!1:c;a.ad.S<a.progressPings.length;){var d=oF(a,"progress"),e=a.progressPings[a.ad.S];if(e.offsetMilliseconds<=1E3*b||c)pF(a,e,d),a.ad.S++;else break}};
Jwa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Y<a.unmutedProgressPings.length;){var d=oF(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Y];if(e.offsetMilliseconds<=1E3*b||c)pF(a,e,d),a.ad.Y++;else break}};
Iwa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.UD||d)&&mF(a,"first_quartile");(b>=c*a.u.SECOND||d)&&mF(a,"midpoint");(b>=c*a.u.QE||d)&&mF(a,"third_quartile")};
Kwa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.UD||d)&&mF(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&mF(a,"unmuted_midpoint");(b>=c*a.u.QE||d)&&mF(a,"unmuted_third_quartile")};
qF=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;mF(a,b)};
Hwa=function(a,b,c){if(0<c&&0<b){var d=a.j.yb(a.j.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(qF(a,"first_quartile",b,c*a.u.UD),qF(a,"midpoint",b,c*a.u.SECOND),qF(a,"third_quartile",b,c*a.u.QE))}a.lastUpdatedTimeSecs=b};
rF=function(a,b){for(var c=oF(a,b),d=g.r(a.ad.Z[b]||[]),e=d.next();!e.done;e=d.next())pF(a,e.value,c);a.ad.D[b]=!0};
mF=function(a,b){a.ad.D.hasOwnProperty(b)||rF(a,b)};
sF=function(a,b){return a.ad.D.hasOwnProperty(b)};
pF=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Kj,f=e.send,k={},l=dF(a.j),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,k[n]=l[n].toString();if(l=a.j.getVideoData(2))k.AD_CPN=l.clientPlaybackNonce;a=Object.assign(k,a.macros);f.call(e,d,a,c,b)}};
oF=function(a,b){var c=a.B;a=a.ad;if(a.ly())if(b=Lwa(b),null==b)c={};else{var d;(d=a.Aa()())||(d=(d=c.I)&&d.Pc?(d=d.Pc())&&2==d.getPlayerType()?tF(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.I.isFullscreen()},c=qp(b,a.J,c)):c={}}else c={};return c?Object.assign({},c):{}};
kF=function(a){return!a.j.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
jF=function(a){return kF(a)&&!sF(a,"impression")};
uF=function(a){return kF(a)&&sF(a,"seek")};
vF=function(a,b){kF(a)?rF(a,b):mF(a,b)};
g.wF=function(a,b){this.state=a;this.Rp=b};
xF=function(a,b){return g.U(a.state,b)&&!g.U(a.Rp,b)?1:!g.U(a.state,b)&&g.U(a.Rp,b)?-1:0};
g.yF=function(a,b){return 0<xF(a,b)};
zF=function(a,b,c,d,e,f){f=void 0===f?0:f;g.iv.call(this);this.I=a;this.j=d;this.u=e;this.u.j[b.J]=this;this.u.subscribe("adactiveviewmeasurable",this.nQ,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.oQ,this);this.u.subscribe("adoverlaymeasurableimpression",this.pQ,this);this.u.subscribe("adoverlayunviewableimpression",this.qQ,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.rQ,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.sQ,
this);this.u.subscribe("adviewableimpression",this.tQ,this);this.ad=b;this.ra=[];this.macros=c;this.S=!1;this.va=!pwa(new NE(this.I.V()),f);this.C=!1};
Nwa=function(a,b){g.bc(a.ra,b);Mwa(a,b,1)};
Owa=function(a,b){if(a.S){var c=a.j,d=a.getDuration();!jF(c)&&0<d&&(lF(c,b),kF(c)?Hwa(c,b,d):Iwa(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!jF(c)&&0<a&&(Jwa(c,b),Kwa(c,b,a,!1)))}};
Mwa=function(a,b,c){0!=b.length&&(b=g.Wl(b,function(d){return new Pw(d,c,d.id)}),a.ea("onAdUxUpdate",b))};
AF=function(a){var b={};b.abandon=a.abandonCommands&&XE(a.abandonCommands.commands)||[];HE.call(this,a,b)};
BF=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;ME.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.Gh=e;this.Sj=f};
CF=function(a,b,c,d,e,f){zF.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.uc=null;this.J=f};
DF=function(a){HE.call(this,a);this.u=mr(this.j.playerVars||"")};
EF=function(){HE.apply(this,arguments)};
Pwa=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
FF=function(a,b,c,d,e){zF.call(this,a,b,c,d,e);var f=this;this.J=b;this.B=new g.L(function(){f.fm("load_timeout")},1E4);
g.H(this,this.B);this.D=new fv(this);g.H(this,this.D)};
GF=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(!tw(a.Da,c.value))return!1;return!0};
HF=function(a){return!!(a.DW&&a.slot&&a.layout)};
Qwa=function(a){ME.call(this,"ad-message",a)};
IF=function(a,b,c,d,e,f,k,l){zF.call(this,a,b,c,d,e);var m=this;this.B=b;this.Y=b.j.durationMs||0;this.K=l;this.Z=!1;this.J=this.D=0;this.ma=function(){var n=m.I.getProgressState().current;n<m.D?m.cm():n>m.J&&m.Gi()}};
Twa=function(a,b){if(a.K&&a.Z){a.Z=!1;var c=a.B.j;if(HF(c)){var d=c.slot;c=c.layout;b=Rwa(b);a=g.r(a.K.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,k=c,l=b;JF(e.j(),f,k,l);Swa(e.j(),f)}}else g.Jv(Error("adMessageRenderer is not augmented on termination"))}};
Rwa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return"abandoned";default:return g.Jv(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.KF=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={LD:c.LD},e=d.next())e=e.value,c.LD=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.LD}}(c));
return a};
LF=function(a,b,c,d){this.j=a;this.C=b;this.u=dF(c);this.B=d};
Uwa=function(a){for(var b={},c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
Vwa=function(a,b,c,d){new LF(a,b,c,d)};
MF=function(a,b,c,d,e,f,k,l,m){zF.call(this,a,b,c,d,e,1);var n=this;this.QB=!0;this.K=m;this.B=b;this.D=f;this.Z=new fv(this);g.H(this,this.Z);this.J=new g.L(function(){n.fm("load_timeout")},1E4);
g.H(this,this.J);this.Y=k};
Wwa=function(a){if(a.Y&&(a.I.V().experiments.jb("enable_topsoil_wta_for_halftime")||a.I.V().experiments.jb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.Iv(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Iv(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,k){return f+k},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
PF=function(a,b){if(null!==a.K){var c=Xwa(a);a=g.r(a.K.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,k=!1;d.j||"aderror"!==f||(Ywa(d,e,[],!1),Zwa(d.B(),d.u),$wa(d.B(),d.u),axa(d.B(),d.u),k=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}JF(d.B(),d.u,d.j,e);if(k){e=d.B();k=d.u;NF(e.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);e=g.r(e.qe);for(f=e.next();!f.done;f=e.next())f.value.Ij(k);Swa(d.B(),
d.u)}d.Na.get().I.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&OF(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
QF=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
Xwa=function(a){if(a=a.B.j.elementId)return a;g.Iv(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
bxa=function(a){function b(k,l){k=a.x_;var m=Object.assign({},{});m.FINAL=cF(vg("1"));m.SLOT_POS=cF(vg("0"));return fF(k,eF(m),l)}
function c(k){return null==k?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.FJ(l,p);l=k(l,p,m,n);g.H(l,m);return l}}}
var d=c(function(k,l,m){return new CF(a.I,k,l,m,a.Bx,a.bb)}),e=c(function(k,l,m){return new IF(a.I,k,l,m,a.Bx,a.bb,a.Ik,a.On)}),f=c(function(k,l,m){return new FF(a.I,k,l,m,a.Bx,a.bb)});
this.IU=new Pwa({create:function(k,l){var m=fF(b(k,l),eF(Cwa(k)));l=a.FJ(k,m);k=new MF(a.I,k,m,l,a.Bx,a.bb,a.daiEnabled,function(){return new Vwa(a.bb,m,a.I,a.Kj)},a.Pn,a.ph);
g.H(k,l);return k}},d,e,f)};
RF=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
cxa=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{kV:new Xp(b,c),BW:new Bw(b,c-b,a.context,a.identifier,a.event,a.j)}};
SF=function(){this.j=[]};
TF=function(a,b,c){var d=g.gc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
dxa=function(){this.j=new SF};
UF=function(a){this.j=a};
exa=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};
fxa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
gxa=function(a,b,c){a.j&&VF({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
hxa=function(a,b){a.j&&VF({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.PU}})};
ixa=function(a,b){VF({daiStateTrigger:{errorType:a,contentCpn:b}})};
VF=function(a){g.Ds("adsClientStateChange",a)};
WF=function(a){this.I=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Ve=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
kxa=function(a,b,c,d,e,f){f();var k=a.I.getVideoData(1),l=a.I.getVideoData(2);k&&(a.contentCpn=k.clientPlaybackNonce,a.videoId=k.videoId,a.j=k.K);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.Ve=!0,(a.I.N("send_csi_info_for_ad_to_video_killswitch")||Bx("_start",a.actionType))&&
jxa(a)))};
jxa=function(a){if(a.Ve)if(a.I.N("web_csi_via_jspb")){var b=new Pq;g.D(b,21,lxa(a.B));g.D(b,7,4);var c=new Nq;g.D(c,8,2);re(b,22,c);g.D(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.D(b,76,a.contentCpn),a.videoId&&g.D(b,78,a.videoId)):(a.adCpn&&g.D(b,76,a.adCpn),a.adVideoId&&g.D(b,78,a.adVideoId));c=Fqa(a.actionType);a.adFormat&&!c&&g.D(b,12,a.adFormat);a.contentCpn&&g.D(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.D(b,28,a.adCpn);a.adVideoId&&g.D(b,20,a.adVideoId);
Ax(b,a.actionType)}else b={adBreakType:lxa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),c=Fqa(a.actionType),a.adFormat&&!c&&(b.adType=a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),
a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),nx(b,a.actionType)};
lxa=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.nxa=function(a){return(a=mxa[a.toString()])?a:"LICENSE"};
XF=function(){g.G.call(this);this.u=null;this.K=this.J=!1;this.C=new g.ng;g.H(this,this.C)};
YF=function(a){a=a.Tx();return 1>a.length?NaN:a.end(a.length-1)};
oxa=function(a,b,c){a.Mm()||a.getCurrentTime()>b||10<c||(a.play(),g.Br(function(){oxa(a,a.getCurrentTime(),c+1)},500))};
pxa=function(a,b){a.u&&a.u.equals(b)||(a.u&&a.u.dispose(),a.u=b)};
ZF=function(a){return Csa(a.Vg(),a.getCurrentTime())};
qxa=function(a,b){if(0===a.Hi()||0<a.qk())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Tx(),a.length||!c)?tA(a,b):c};
rxa=function(a){var b=a.Vg();return 0<vA(b)&&a.getDuration()?b.end(b.length-1):0};
$F=function(a){switch(a.qk()){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.aG=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
bG=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.aG(b,c)};
cG=function(a,b){return bG(a,a.state|b)};
dG=function(a,b){return bG(a,a.state&~b)};
eG=function(a,b,c){return bG(a,(a.state|b)&~c)};
g.U=function(a,b){return!!(a.state&b)};
g.fG=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.gG=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
hG=function(a){return a.Nc()&&!g.U(a,16)&&!g.U(a,32)};
g.iG=function(a){return g.U(a,1)&&!g.U(a,2)};
jG=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};
kG=function(a,b,c,d,e,f,k,l){g.iv.call(this);this.Rg=a;this.I=b;this.u=d;this.K=this.u.u instanceof HE?this.u.u:null;this.j=null;this.Z=!1;this.D=c;this.Y=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ra=0;this.va=!1;this.jn=e;this.nu=f;this.Kq=k;this.ma=!1;this.daiEnabled=l};
sxa=function(a){if(IE(a.I)){var b=a.I.getVideoData(2);b=a.u.S[b.Ac]||null;if(!b)return a.Sl(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.zw(b)}else if(1===a.I.getPresentingPlayerType()&&a.j)return a.Sl(),!0;return!1};
txa=function(a,b){a.D.Xt(a.u.j.j,b,a.pN(),a.qN(),a.isLiveStream())};
lG=function(a){var b=a.Rg,c=a.u.j;if(c instanceof Nw){if(b.S&&iqa(c)&&g.U(b.j.yb(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&c.deactivate()}b.B.has(c)?g.Iv(Error(c.toString()+" has already been seen")):(b.Lq.add(c),b.B.set(c,a),Ow(c)||b.j.je([c],1))}else g.Iv(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.J&&(uxa(a,a.rN()),a.u.J=!0)};
uxa=function(a,b){for(var c=mG(a),d=a.u.j.start,e=[],f=g.r(b),k=f.next();!k.done;k=f.next()){k=k.value;if(c<=d)break;var l=vxa(k);e.push({externalVideoId:k.wh(),originalMediaDurationMs:(1E3*k.u).toString(),trimmedMediaDurationMs:(parseInt(k.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);k.B.C=a.u.j.start;k.B.B=c;if(!wxa(a,k,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+vxa(p)},0);
gxa(a.jn,a.u.j.Jx(),b);hxa(a.jn,{cueIdentifier:a.u.C&&a.u.C.identifier,PU:e})};
vxa=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
mG=function(a){var b=a.u.j.end;a=TF(a.nu,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
wxa=function(a,b,c,d){var e=a.Kq.create(b,eF(Bwa(a.u)),a.u.j.j);c=e.dN(c,d);g.nf(e);if(!c)return!1;a.u.S[c]=b;return!0};
oG=function(a,b){b=void 0===b?!1:b;a.Z=!0;g.nf(a.j);a.D.Lv();var c=a.u.K;if(null!==c){var d=a.jn,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,k=mG(a);d.j&&VF({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(k-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.rp()).toString()}});a.u.K=null}b||a.daiEnabled?nG(a.Rg,!0):a.Y&&a.uK()&&a.sy()?nG(a.Rg,!1,xxa(a)):nG(a.Rg,!1);txa(a,!0)};
xxa=function(a){if(a.va)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ta()/1E3)-a.ra;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
yxa=function(a,b,c){this.j=a;this.u=b;this.B=c};
pG=function(){this.D=[];this.K=[];this.j=[];this.C=[];this.J=[];this.u=new Set;this.S=new Map};
qG=function(){pG.j||(pG.j=new pG);return pG.j};
zxa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){a.u.has(c)&&a.B&&a.B();var e=g.Tv(c),f=g.Sv(c);if(e&&f){var k;(null==d?0:null==(k=d.response)?0:k.trackingParams)&&g.Xv(a.client,e,f,[g.Mv(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.Xv(a.client,e,f,[g.Mv(d.playerResponse.trackingParams)])}})};
Axa=function(a,b){rG(a,g.Mv(b))};
rG=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.Tv(d);c=c||g.Sv(d);e&&c&&g.Xv(a.client,e,c,[b])}};
Cxa=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){Bxa(a,b,c);var f=g.Sv(c.layer);if(f){for(var k=g.r(a.D),l=k.next();!l.done;l=k.next())l=l.value,rG(a,l[0],l[1]||f,c.layer);f=g.r(a.K);for(k=f.next();!k.done;k=f.next()){var m=k.value;k=void 0;k=void 0===k?0:k;l=g.Tv(k);var n=m[0]||g.Sv(k);if(l&&n){k=a.client;var p=m[1];m={cttAuthInfo:Uv(l),Qj:l};g.Q("il_via_jspb")?(p=new Mq,p.Ci(l),n=n.getAsJspb(),re(p,2,n),"UNDEFINED_CSN"==l?Wv("visualElementStateChanged",p,m):bpa(p,m,k)):(n=
{csn:l,ve:n.getAsJson(),clientData:p},"UNDEFINED_CSN"==l?Wv("visualElementStateChanged",n,m):k?Zu("visualElementStateChanged",n,k,m):g.Ds("visualElementStateChanged",n,m))}}}};
g.Tv(c.layer)||a.B();if(c.VM)for(var d=g.r(c.VM),e=d.next();!e.done;e=d.next())zxa(a,e.value,c.layer);else g.Iv(Error("Delayed screen needs a data promise."))};
Bxa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.q_?c.q_:c.layer;var e=g.Tv(d);d=g.Sv(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var k,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(k={servletData:{serializedServletEventId:l}});try{var m=Apa(a.client,b,f,c.RM,c.cttAuthInfo,k,c.Gia)}catch(n){opa(n,{rz:b,rootVe:d,parentVisualElement:void 0,lia:e,Zia:f,RM:c.RM});g.Iv(n);
return}wpa(m,b,c.layer,c.cttAuthInfo);if(b=e&&"UNDEFINED_CSN"!==e&&d){a:{b=g.r(Object.values(Dxa));for(f=b.next();!f.done;f=b.next())if(g.Tv(f.value)===e){b=!0;break a}b=!1}b=!b}b&&Bpa(a.client,e,d,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=m||"");nx({clientScreenNonce:m});dw.getInstance().clear();d=g.Sv(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Q("web_mark_root_visible")||g.Q("music_web_mark_root_visible"))&&g.Yv(m,d);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.S);for(m=e.next();!m.done;m=
e.next())b=g.r(m.value),m=b.next().value,b=b.next().value,b.has(c.layer)&&d&&rG(a,m,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(n){g.Iv(n)}}for(c=a.C.length=0;c<a.J.length;c++){e=a.J[c];try{e()}catch(n){g.Iv(n)}}};
sG=function(){this.j={};if(this.u=ama()){var a=g.Qr("CONSISTENCY");a&&Exa(this,{encryptedTokenJarContents:a})}};
Exa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.u&&g.Pr("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
tG=function(){var a=g.P("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Fxa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
Fxa=function(a){return void 0===a.localStorage?new xs("yt-client-location"):a.localStorage};
g.uG=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.Iv(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Vf(d);g.Q("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.P("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.qs.getInstance();var k="USER_INTERFACE_THEME_LIGHT";g.rs(0,165)?k="USER_INTERFACE_THEME_DARK":g.rs(0,174)?k="USER_INTERFACE_THEME_LIGHT":!g.Q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(k="USER_INTERFACE_THEME_DARK");f=f?k:Koa()||k;e.userInterfaceTheme=
f;if(!b){if(f=rma())e.connectionType=f;g.Q("web_log_effective_connection_type")&&(f=tma())&&(d.client.effectiveConnectionType=f)}var l;if(g.Q("web_log_memory_total_kbytes")&&(null==(l=g.C.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.C.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}m=g.or(g.C.location.href);!g.Q("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo=
{graftUrl:g.C.location.href},g.Q("kevlar_woffle")&&nma.j&&(e.mainAppWebInfo.pwaInstallabilityStatus=nma.j.j?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=os(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.Q("web_lr_app_quality_killswitch")&&(m=g.P("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.P("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Q("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(E){}n=void 0}n&&(e.timeZone=n)}(n=er())?e.experimentsToken=n:delete e.experimentsToken;n=fr();sG.j||(sG.j=new sG);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:Hf(sG.j.j)});!g.Q("web_prequest_context_killswitch")&&(n=g.P("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&
(d.request.externalPrequestContext=n);e=g.qs.getInstance();n=g.rs(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Q("warm_op_csn_cleanup")?c&&(b=g.Tv())&&(d.clientScreenNonce=b):!b&&(b=g.Tv())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ia("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.Q("web_enable_client_location_service")&&tG.getInstance().setLocationOnInnerTubeContext(d);try{var p=ur(),
q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var t=g.r(Object.entries(p)),v=t.next();!v.done;v=t.next()){var x=g.r(v.value),y=x.next().value,z=x.next().value;p=y;q=z;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(E){g.Iv(E)}return d};
vG=function(){this.kR=!0};
wG=function(){vG.apply(this,arguments);this.Ds={}};
yG=function(){xG||(xG=new wG);return xG};
Gxa=function(a,b){b?a.Ds.Authorization="Bearer "+b:delete a.Ds.Authorization};
Hxa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Ixa=function(){var a=null;mma().then(function(b){return a=b},function(b){return a=Hxa(b)});
return a};
Jxa=function(){var a=Gi(1E3,"NO_BID");return Ci(Eba([mma(),a]).Di(Hxa),function(){return a.cancel()})};
Kxa=function(a){return a.fd?g.rs(g.qs.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
zG=function(a){this.player=a;this.u=this.j=1};
BG=function(a,b,c,d){c=void 0===c?{}:c;var e=c.mx,f=c.Qd;d=void 0===d?"":d;c=a.player.getVideoData(1);var k=a.player.V().Cl,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:Kxa(a.player.V()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.rp(),LACT:Du(),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.Ya().Zh().height,
P_W:a.player.Ya().Zh().width,YT_REMOTE:k?k.join(","):""},m=sja(rja);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};tr(b)&&(d.sts="19095",(e=a.player.V().rb)&&(d.forced_experiments=e));b=qr(g.rp(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return Ai(Error("Invalid AdBreakInfo URL"));if((d=null==c?void 0:c.oauthToken)&&sr()){var n=yG();Gxa(n,d)}n=a.player.Wl(n);a=Lxa(a,b,l,c.isMdxPlayback);return g.AG(n,a,"/youtubei/v1/player/ad_break")};
Oxa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=rr(b),f=Mxa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=Mxa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var k={};b=lr(ur(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(k.bid=l.get("bid"));k.params=[];Nxa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},k.params.push(m))});
a.adSignalsInfo=k}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
Rxa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},k="ACTIVE";"!"===d[0]&&(d=d.substring(1),k="INACTIVE");d=d.split("-");3>d.length||(d[0]in Pxa&&(f.clientName=Pxa[d[0]]),d[1]in Qxa&&(f.platform=Qxa[d[1]]),f.applicationState=k,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
Lxa=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=Sxa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var k=Txa.test(b),l=Uxa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=Vxa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=Wxa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=a.player.V();var q=EC(p.ma);p=p.N("embeds_web_enable_pem_domain_fix_for_ad_requests")?q:"www.youtube-nocookie.com"===q?"www.youtube.com":
q;q=g.uG(a.player.getVideoData(1).va,!0);var t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Oxa(q,b,t.toString(),a.player.V());var v={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19095,autonavState:Kxa(a.player.V())};d&&(d={},Rxa(d,c.YT_REMOTE)&&(v.mdxContext=d));if(d=Xxa.includes(p)?void 0:g.Qr("PREF")){for(var x=d.split(RegExp("[:&]")),y=0,z=x.length;y<z;y++){var E=x[y].split("=");if(("SML"===
E[0].toUpperCase()||"GSML"===E[0].toUpperCase())&&1<E.length&&"TRUE"===E[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Yxa)for(d=d.split(RegExp("[:&]")),y=Yxa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,E=d.length;z<E;z++){var J=d[z].split("=");if(J[0]===x&&parseInt("0x"+J[1],16)&y){d=!0;break a}}d=!1}v.autoCaptionsDefaultOn=d}b=Zxa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=
[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:v};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:k,context:q,adSignalsInfoString:lr(ur(t.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());f.currentMediaTimeMs=
Math.round(1E3*a.player.getCurrentTime(1));return f};
CG=function(a,b,c,d,e,f){g.iv.call(this);this.J=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
$xa=function(a,b){var c={isEmpty:!0,qO:!1,Zm:[]};if(!b)return c;b&&b.trackingParams&&Axa(qG(),b.trackingParams);if(b&&b.adThrottled)return c.qO=!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.Tb(b))return c;if(0<a.j.j.end){var d=a.j.j.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.Zm=b;
c.isEmpty=!1;return c};
DG=function(){HE.apply(this,arguments)};
EG=function(a,b,c,d,e,f,k,l){kG.call(this,a,b,c,d,e,f,k,l);this.B=d.u;this.C=-1;this.J=null;this.S=aya(this.wB())};
bya=function(a){a.C++;var b=a.wB();b?(0<a.C&&a.D.jJ(),a.zw(b)):oG(a)};
aya=function(a){return a?cya.some(function(b){return a instanceof b}):!1};
dya=function(a){this.j=new yxa(function(b){b=new kG(a.Rg,a.I,a.QM(),b,a.jn,a.nu,a.Kq,a.daiEnabled);lG(b);return b},function(b){return new CG(a.WE,a.Rg,a.I,a.Jq,b,a.jn)},function(b){b=new EG(a.Rg,a.I,a.QM(),b,a.jn,a.nu,a.Kq,a.daiEnabled);
lG(b);return b})};
eya=function(a,b){VE.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Ds("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),WE(this,new EF(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);WE(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new AF(d.adActionInterstitialRenderer),
WE(this,d)):d.adIntroRenderer&&(d=new DF(d.adIntroRenderer),WE(this,d),this.u=1);this.j.filter(function(f){return f instanceof UE}).forEach(function(f,k){f instanceof UE&&(k=new RE(k,c),f.B=k)})}}};
gya=function(a,b){VE.call(this);WE(this,fya(this,a.adVideoStart));var c=a.linearAd;b=c&&c.instreamVideoAdRenderer?b(c.instreamVideoAdRenderer):null;WE(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new AF(a.adActionInterstitialRenderer)):a=null:a=null;WE(this,a)};
fya=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new AF(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Ds("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new EF(b.adMessageRenderer)):null};
hya=function(a,b){this.B=new swa;this.j=a;this.u=b};
iya=function(a){this.j=a};
jya=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,k=e?a.j.create(e,f):null;return new wwa(b,c,k,d)}catch(l){g.Iv(l)}};
kya=function(a){var b=new iya(a.JU);return{oN:function(){return b}}};
FG=function(a){g.G.call(this);var b=this;this.u=a;this.j=null;g.pf(this,function(){return b.j=null});
var c=ev(a);if(c){var d=function(){b.j&&b.j(!!cv())};
this.u.addEventListener(c,d);g.pf(this,function(){b.u.removeEventListener(c,d)})}};
GG=function(a){g.G.call(this);this.j=a};
lya=function(a){var b=window.document;return g.TC(a.V())?new FG(b):new GG(a)};
mya=function(a){g.G.call(this);this.WS=new fxa(a.I,a.contentCpn,a.daiEnabled)};
nya=function(a){HG=a&&a.data};
oya=function(a){IG=a&&a.data};
pya=function(a){JG=a&&a.data};
qya=function(){KG=JG=IG=HG=null};
NG=function(a){g.G.call(this);var b=this;this.Vc=a;this.Be=new Map;this.j=new Map;LG(this,"commandExecutorCommand",function(c,d,e){b.yf(c.commands,d,e)});
MG(this,"commandExecutorCommand",function(c,d){rya(b,c.commands,d)});
LG(this,"clickTrackingParams",function(){});
MG(this,"clickTrackingParams",function(){})};
sya=function(a,b){LG(a,b.Vl(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
tya=function(a,b){MG(a,b.Vl(),function(c,d){b.Fn(c,d)})};
LG=function(a,b,c){a.isDisposed();a.Be.get(b)&&g.Iv(Error("Extension name "+b+" already registered"));a.Be.set(b,c)};
MG=function(a,b,c){a.isDisposed();a.j.get(b)&&g.Iv(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
rya=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())OG(a,b.value,c);e=g.r(e);for(b=e.next();!b.done;b=e.next())OG(a,b.value,c)};
uya=function(a,b){a.Vc.get().Oa("innertubeCommand",{openPopupAction:b})};
vya=function(a,b){a.Vc.get().Oa("innertubeCommand",{confirmDialogEndpoint:b})};
OG=function(a,b,c){a.isDisposed();b.loggingUrls&&wya(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?uya(a,e):"confirmDialogEndpoint"===d?vya(a,e):xya.hasOwnProperty(d)||wya(a,d,e,c)}};
yya=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Be.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.Iv(f)}else b=new g.Is("Unhandled field",b),g.Jv(b)};
wya=function(a,b,c,d){(a=a.j.get(b))||new g.Is("Unhandled field",b);try{a(c,d)}catch(e){g.Iv(e)}};
Aya=function(a,b,c,d){for(var e=!1,f=g.r(b.bj.entries()),k=f.next();!k.done;k=f.next())k=g.r(k.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===k.slotType&&"core"===k.Za&&(e=!0);e?(d=zya(b,d))?c.DG(d):S("No triggering layout ID available when attempting to mute."):g.vi(function(){a.Sl()})};
zya=function(a,b){if(b)return b;a=g.r(a.bj.entries());for(b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.Za)return c.layoutId}};
Bya=function(a){var b=new hF(a.fn),c=new iF(b);return{JV:function(){return b},
oG:function(){return c}}};
PG=function(a){WF.call(this,a)};
Lwa=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":return"skip";case "start":case "unmuted_start":return"start";
case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
Cya=function(a){this.I=a;var b=Zl(op),c=a.Ge();b.B!==c&&((b.B=c)||xha(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&yl(dm().featureSet,"ssmol",1)};
Fwa=function(a){Jha(Zl(op),a)};
Dya=function(a){g.G.call(this);this.j=a;this.u=new Cya(a.I)};
Eya=function(a){return function(){return a.j.I.V().N("html5_disable_csi_for_bulleit")?new PG(a.j.I):new WF(a.j.I)}};
Fya=function(a){return function(b,c){return new Gwa(b,a.u,c,a.j.I,a.j.Kj,a.j.daiEnabled)}};
QG=function(a,b,c,d,e){g.iv.call(this);var f=this;this.j=b;this.Aa=null;this.Xa=c;this.ib=e.ph;this.Ua=e.bq;this.u=null;this.B=new Map;c=this.j.V().experiments;var k=Bya({fn:b.getVideoData(1)}),l=new Dya({Kj:k.oG(),I:b,daiEnabled:!1});g.H(this,l);this.Lq=new Set;this.JB=-1;this.Y=[];this.Z=new Map;this.J=new Map;this.K=new Set;this.C=new fv(this);g.H(this,this.C);this.D=new fv(this);g.H(this,this.D);this.ma=this.Ta=this.ra=!1;this.S=g.TC(b.V());this.kb=d;b=new mya({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
kia:this,daiEnabled:!1,I:this.j});g.H(this,b);this.gb=b.WS;this.Ia=(new dxa).j;var m=Yf(eF(dF(this.j)));e=new bxa({bb:this,Bx:QE(),Kj:k.oG(),I:this.j,x_:m,FJ:Fya(l),daiEnabled:!1,Pn:e.Pn,ph:this.ib,Ik:e.Ik,On:e.On});this.va=(new dya({Jq:this.Xa,Kq:e.IU,WE:a,Rg:this,Bx:QE(),QM:Eya(l),jn:this.gb,nu:this.Ia,I:this.j,mja:m,FJ:function(n){return Fya(l)(n,m)},
daiEnabled:!1})).nN();this.Ga=kya({JU:new hya(c,function(n){return f.J.has(n)?f.J.get(n):null})}).oN();
this.La=lya(this.j);g.H(this,this.La);this.rb=$C(this.j.V())?this.j.V().experiments.jb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.V().experiments.jb("align_ad_to_video_player_lifecycle_for_bulleit")};
Lya=function(a,b){if(a.j.getVideoData(1).Uq||g.P("SERVED_VIA_SPF_HISTORY"))RG(a);else{if(JE(a.j)){var c=Gya(a.j);c.addEventListener("updateKevlarOrC3Companion",nya);c.addEventListener("updateEngagementPanelAction",oya);c.addEventListener("changeEngagementPanelVisibility",pya);window.addEventListener("yt-navigate-start",qya)}a.C.T(a.j,"applicationplayerstatechange",a.PX);a.C.T(a.j,g.Lw("ad"),a.PH,a);a.C.T(a.j,g.Mw("ad"),a.eY,a);a.C.T(a.j,"aduxclicked",a.CX);a.C.T(a.j,"videodatachange",a.g_);b=Hya(b);
b=Iya(a,b);b=Jya(a,b);0<b.length&&Kya(a,b);g.vi(a.M0,a)}};
Hya=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(S("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
Iya=function(a,b){a.Z=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.Z.set(c.elementId,c),!1):!0})};
Jya=function(a,b){a.J=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.J.set(c.hostElementId,c),!1):!0})};
Mya=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.Iv(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof CG?!1:c instanceof kG?!c.Fr():!0})};
RG=function(a){var b=Nya(a);if(0<b.length){var c=g.sB(a.j.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.S&&g.IC(a.j.V())?(c=new g.L(function(){Oya(a,b)},c),g.H(a,c),c.start()):g.vi(function(){Oya(a,b)})}};
Pya=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.ly()?oF(a.j,b):{}):b={};return b};
Nya=function(a){for(var b=Qya(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.Lq.delete(d.value);return b};
Qya=function(a){var b=[];a=g.r(a.Lq);for(var c=a.next();!c.done;c=a.next())c=c.value,Ow(c)&&b.push(c);return b};
Rya=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Ga,e=d.create;var f=1E3*a.j.getDuration(1);f=new Upa(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.V().experiments.jb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Y.length,c);a.Y=a.Y.concat(b);return b};
Oya=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.PH(c.value)}};
Kya=function(a,b){b=Rya(a,b);0==b.length||b.map(function(c){return a.va.create(c)})};
Sya=function(a){a.ra||(a.D.T(a.j,"presentingplayerstatechange",a.XS),a.D.T(a.j,"internalAbandon",a.qX),a.D.T(a.j,"progresssync",a.j_),a.D.T(a.j,"onVolumeChange",a.k_),a.D.T(a.La,"fullscreentoggled",a.oY),a.ra=!0);g.M(a.j.getRootNode(),"ad-showing");g.M(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.jb("enable_html5_teal_ad_badge")&&JE(a.j)&&g.M(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
nG=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Fr()&&(IE(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&Tya(a,a.u);a.u=null;a.JB=-1;e&&Uya(a,c);a.ma||a.Ua.lr();b&&d&&(d.tK().B=!1,lG(d))};
Uya=function(a,b){g.hv(a.D);a.ra=!1;g.Hp(a.j.getRootNode(),"ad-showing");a.rb?(a.ma||a.Ua.lr(),Vya(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),Vya(a));g.Hp(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.jb("enable_html5_teal_ad_badge")&&g.Hp(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
Vya=function(a){if(a.Ta)!a.S&&g.IC(a.j.V())&&a.j.Xn();else if(a.j.Xn(),!a.S){var b=a.j.yb(1);g.U(b,4)&&!g.U(b,2)&&a.j.playVideo()}};
Tya=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.nf(b)};
SG=function(a){g.G.call(this);this.u=a};
TG=function(a){SG.call(this,!0);this.j=a};
Wya=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.fk||null});
d.EI=c(function(){return e&&e.eventId||null});
a.V().N("get_ad_cpn_from_video_data_on_html5")?d.AD_CPN=c(function(){var f,k=(null==(f=a.getVideoData(2))?void 0:f.clientPlaybackNonce)||"";f=b.Ex();k?k!==f&&g.Jv(new g.Is("Mismatched macro for AD_CPN found.",{adCpnFromPlayer:k||"empty_from_player",adCpnFromAdService:f||"empty_from_ad_service"})):g.Jv(new g.Is("Empty ad_cpn returned from adVideoData."));return k}):d.AD_CPN=c(function(){return b.Ex()});
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 Du().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Xya=function(a,b){g.G.call(this);var c=this;this.B=[];this.K=!1;this.u=0;this.D=this.J=this.C=!1;this.Z=null;var d=(0,g.Qa)(a,b);this.j=new g.L(function(){return d(c.Z)},300);
g.H(this,this.j);this.Y=this.S=Infinity};
Yya=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};
UG=function(){var a="ytp-id-"+Zya.toString();Zya++;return a};
g.VG=function(a){g.G.call(this);this.Vb={};this.Oe={};this.element=this.createElement(a)};
WG=function(a,b,c,d){if("{{"===d.substr(0,2))a.Oe[d]=[b,c];else return d};
$ya=function(a,b){var c=[];if(!b)return c;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.G?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,k){0<k&&c.push(g.ci("BR"));c.push(g.di(f))}):c.push(g.di(d))}return c};
XG=function(a,b,c,d){if("child"===c){g.ei(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=$ya(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Km(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Og(g.Sg(a))),b.setAttribute(c,a))};
g.V=function(a){g.VG.call(this,a);this.sb=!0;this.ra=!1;this.listeners=[]};
g.YG=function(a,b){b?a.show():a.hide()};
g.ZG=function(a){g.V.call(this,a);this.Xa=new g.iv;g.H(this,this.Xa)};
$G=function(a,b,c,d,e,f,k,l){l=void 0===l?null:l;e||"ad-message"===d||"ad-text"===d||g.Jv(new g.Is("The UI component has undefined layoutId.",{componentType:d}));g.ZG.call(this,c);this.api=a;this.bb=b;this.macros={};this.componentType=d;this.K=null;this.kb=l;this.layoutId=e;this.j=f;this.eb=k;this.Ta=null;this.KI=new TG(this.element);g.H(this,this.KI);this.ib=this.T(this.element,"click",this.onClick);this.va=[];this.ma=new Xya(this.onClick,this);g.H(this,this.ma);this.rb=!1;this.Y=null};
aH=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Jv(Error("Got null or undefined adText object")),"";var c=g.Eh(a.text);if(!a.isTemplated)return c;if(null==b)return g.Jv(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};
aza=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Tb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Eh(a.thumbnails[0].url)};
bza=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Tb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.yh(0,0):new g.yh(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
cza=function(){return{G:"svg",W:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},U:[{G:"path",W:{d:"M22,20h-8v-1h7V5H3v3H2V4h20V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79c2.51,0,4.55,2,4.55,4.46 h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12C12,14.57,7.52,10.18,2,10.18z",fill:"white"}}]}};
g.dza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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"}}]}};
bH=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.cH=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.dH=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"}}]}};
eza=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"}}]}};
fza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Mb:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
gza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Mb:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.eH=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"}}]}};
hza=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"}}]}};
iza=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"}}]}};
jza=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"}}]}};
kza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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.fH=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"}}]}};
gH=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"}}]}};
lza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Mb:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
hH=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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.iH=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"}}]}};
mza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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"}}]}};
nza=function(){return{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",L:"ytp-svg-fill",W:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
oza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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"}}]}};
jH=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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"}}]}};
pza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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.kH=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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.lH=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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"}}]}};
qza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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"}}]}};
rza=function(){return{G:"svg",W:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},U:[{G:"path",W:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v22h38V12H5z M15.21,27.29l-1.41,1.41L8.09,23l5.71-5.71l1.41,1.41L10.91,23  L15.21,27.29z M34.21,28.71l-1.41-1.41L37.09,23l-4.29-4.29l1.41-1.41L39.91,23L34.21,28.71z",fill:"white"}}]}};
mH=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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"}}]}};
nH=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.eH();case "INFO_OUTLINE":return jza();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 hH();case "LIKE":return g.fH();case "DISLIKE":return iza();default:return g.Jv(new g.Is("Unexpected icon:",a)),null}};
oH=function(a,b,c,d,e,f,k,l,m){f=void 0===f?[]:f;l=void 0===l?!1:l;f={G:"button",Ea:["ytp-ad-button"].concat(f)};null!=m&&(f.W={tabindex:m});$G.call(this,a,b,f,void 0===k?"button":k,c,d,e);this.u=this.B=this.C=null;this.D=l;this.hide()};
sza=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
pH=function(){g.G.call(this);var a=this;this.j=new Map;this.u=koa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Nt(b[c])})};
tza=function(){null==qH&&(qH=new pH);return qH};
rH=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=uza(a))){b=bi("SPAN",null,b);break a}b=g.di(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(vza(e,b))}return 1==c.length?c[0]:bi("SPAN",null,c)};
vza=function(a,b){var c=null,d=a.text;b&&(d=uza(d)||d);a.bold&&(c=bi("B",null,c||d));a.italics&&(c=bi("I",null,c||d));a.strikethrough&&(c=bi("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=bi("A",null,c||d),g.ph(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),tza().register(c,a),g.M(c,"ytp-ad-has-logging-urls"));
return c||bi("SPAN",null,d)};
uza=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(bi("BR")),b.push(a[c]);return b}return null};
sH=function(a,b,c,d,e,f,k,l,m){k=void 0===k?!1:k;l=void 0===l?[]:l;$G.call(this,a,b,{G:"span",Ea:["ytp-ad-hover-text-button"].concat(l)},void 0===m?"ad-hover-text-button":m,c,d,e);this.button=this.B=null;this.J=k;this.D=f;this.hide()};
tH=function(a){return a&&a.thumbnails&&!g.Tb(a.thumbnails||null)&&a.thumbnails[0].url?g.Eh(a.thumbnails[0].url):""};
uH=function(a,b,c,d,e,f,k){k=void 0===k?!1:k;$G.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.u=k;this.hide()};
vH=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;$G.call(this,a,b,{G:"div",Ea:["ytp-ad-confirm-dialog-background"],U:[{G:"div",L:"ytp-ad-confirm-dialog-container",U:[{G:"div",Ea:["ytp-ad-confirm-dialog"].concat(f),W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-confirm-dialog-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",oa:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
oa:"{{confirmLabel}}"}]}]}]},{G:"button",Ea:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{G:"span",L:"ytp-ad-button-icon",U:[g.eH()]}]}]},void 0===k?"confirm-dialog":k,c,d,e);this.S=this.Ca("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Ca("ytp-ad-confirm-dialog-cancel-button");this.J=this.Ca("ytp-ad-confirm-dialog-confirm-button");this.Z=this.Ca("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new fv;g.H(this,this.u);this.B=null;this.hide()};
wza=function(a,b){if(b.title){var c=g.Qw(b.title);a.Ka("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=rH(d.value),a.Z.appendChild(d)}b.cancelLabel&&(c=g.Qw(b.cancelLabel),a.Ka("cancelLabel",c),a.u.T(a.D,"click",function(e){return a.iE(e)}));
b.confirmLabel&&(b=g.Qw(b.confirmLabel),a.Ka("confirmLabel",b),a.u.T(a.J,"click",function(e){return a.OH(e)}));
a.u.T(a.S,"click",function(e){return a.NH(e)})};
wH=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;k=void 0===k?"toggle-button":k;var l=LE("ytp-ad-toggle-button-input");$G.call(this,a,b,{G:"div",Ea:["ytp-ad-toggle-button"].concat(f),U:[{G:"label",L:"ytp-ad-toggle-button-label",W:{"for":l},U:[{G:"span",L:"ytp-ad-toggle-button-icon",W:{role:"button","aria-label":"{{tooltipText}}"},U:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",oa:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",oa:"{{toggledIconTemplateSpec}}"}]},
{G:"input",L:"ytp-ad-toggle-button-input",W:{id:l,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",oa:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",oa:"{{tooltipText}}"}]}]},k,c,d,e);this.C=this.Ca("ytp-ad-toggle-button");this.u=this.Ca("ytp-ad-toggle-button-input");this.Ca("ytp-ad-toggle-button-label");this.Z=this.Ca("ytp-ad-toggle-button-icon");this.J=this.Ca("ytp-ad-toggle-button-untoggled-icon");this.D=this.Ca("ytp-ad-toggle-button-toggled-icon");this.Aa=this.Ca("ytp-ad-toggle-button-text");
this.B=null;this.S=!1;this.hide()};
xH=function(a){a.S&&(a.isToggled()?(g.Wm(a.J,!1),g.Wm(a.D,!0)):(g.Wm(a.J,!0),g.Wm(a.D,!1)))};
xza=function(a,b){var c=null;a.B&&(c=(b?[a.B.defaultServiceEndpoint,a.B.defaultNavigationEndpoint]:[a.B.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
yH=function(a){fv.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.S)};
zH=function(a,b,c,d,e){$G.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",U:[{G:"div",L:"ytp-ad-feedback-dialog-container",U:[{G:"div",L:"ytp-ad-feedback-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-feedback-dialog-title",U:[{G:"span",oa:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",oa:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
oa:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.D=[];this.u=null;this.J=this.Ca("ytp-ad-feedback-dialog-cancel-button");this.S=this.Ca("ytp-ad-feedback-dialog-confirm-button");this.Z=this.Ca("ytp-ad-info-dialog-feedback-options");this.Aa=this.Ca("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
Bza=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new oH(a.api,a.bb,a.layoutId,a.j,a.eb,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.u),a.u.init(LE("button"),c,a.macros),a.u.Ma("click",a.qP,a),a.u.Ba(a.element));b.title&&(c=g.Qw(b.title),a.Ka("title",c));b.reasonsTitle&&(c=g.Qw(b.reasonsTitle),a.Ka("reasonsTitle",c));b.reasons&&yza(a,b.reasons);b.cancelLabel&&(c=g.Qw(b.cancelLabel),a.Ka("cancelLabel",c),g.ou(a.J,"click",function(){return a.qP()}));
b.confirmLabel&&(c=g.Qw(b.confirmLabel),a.Ka("confirmLabel",c),g.ou(a.S,"click",function(){return zza(a)}));
b.undoRenderer&&Aza(a,b.undoRenderer)};
yza=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.Jv(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.Jv(Error("AdFeedbackReason.endpoint was not set.")):(c=new Cza(c,d),g.H(a,c),a.Z.appendChild(c.j.element),a.D.push(c)))}};
Aza=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new oH(a.api,a.bb,a.layoutId,a.j,a.eb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.B),a.B.init(LE("ad-feedback-undo-mute-button"),b,a.macros),a.B.Ma("click",a.f_,a),a.B.Ba(a.Aa)):g.Jv(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
zza=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(AH(a.eb,b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ea("a"),a.hide())};
Cza=function(a,b){this.u=b;this.j=new g.ZG({G:"label",L:"ytp-ad-feedback-dialog-reason-label",U:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",W:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",oa:g.Qw(a)}]});this.B=this.j.Ca("ytp-ad-feedback-dialog-reason-input")};
BH=function(a,b,c,d,e){vH.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
CH=function(a,b,c,d,e,f){$G.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",U:[{G:"div",L:"ytp-ad-info-dialog-container",U:[{G:"div",L:"ytp-ad-info-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-info-dialog-title",oa:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.u=this.B=null;this.S=this.Ca("ytp-ad-info-dialog-confirm-button");this.Ua=this.Ca("ytp-ad-info-dialog-mute-container");this.La=this.Ca("ytp-ad-info-dialog-message");this.Ga=this.Ca("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Aa=f;this.J=null;this.Ia=!1;this.Z=null;this.hide()};
Dza=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new zH(a.api,a.bb,a.layoutId,a.j,a.eb),g.H(a,a.B),a.B.init(LE("ad-feedback-dialog"),b,a.macros),a.B.Ba(a.Aa),a.B.subscribe("a",function(){return a.ea("c")})};
Eza=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new BH(a.api,a.bb,a.layoutId,a.j,a.eb),g.H(a,a.D),a.D.init(LE("ad-mute-confirm-dialog"),b,a.macros),a.D.Ba(a.Aa),a.D.subscribe("b",function(){return a.ea("c")})};
Fza=function(a){a.u&&a.u.Ma("click",a.HK,a);g.ou(a.S,"click",function(){return a.HK()})};
DH=function(a,b,c,d,e,f,k){sH.call(this,a,b,c,d,e,void 0===k?!0:k,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=f;this.hide()};
Gza=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.Iv(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new CH(a.api,a.bb,a.layoutId,a.j,a.eb,a.C),g.H(a,a.u),a.u.init(LE("ad-info-dialog"),b,c),a.u.Ba(a.C),a.u.subscribe("d",function(){return a.ea("f")}),a.u.subscribe("c",function(){return a.ea("e")}))};
Iza=function(a,b,c){null==a.button?g.Iv(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.M(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(Gza(a,b,c),a.button.Ma("click",function(){a.u&&!a.u.sb&&(a.u.show(),Hza(a))})):a.button.Ma("click",function(){return Hza(a)}))};
Hza=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
EH=function(a,b,c,d,e,f,k){$G.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===k?"ad-text":k,c,d,e,void 0===f?null:f);this.u=null;this.hide()};
FH=function(a,b){b&&g.ji(a.element,aH(a.u,b))};
GH=function(a,b,c,d,e,f,k,l){$G.call(this,a,b,c,d,e,f,k);this.u=l;g.H(this,this.u);this.Ga=this.D=-1};
HH=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.cq,a),a.Ga=a.u.subscribe("g",a.xs,a),a.cq())};
IH=function(a){null!=a.u&&-1!==a.D&&(a.u.yg(a.D),a.u.yg(a.Ga),a.Ga=-1,a.D=-1)};
g.JH=function(a,b,c,d,e,f){g.G.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.L(this.yD,0,this);g.H(this,this.delay)};
KH=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
LH=function(a,b,c,d,e,f,k){GH.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.La=-1;this.B=new g.ZG({G:"span",L:"ytp-ad-preview-container"});g.H(this,this.B);this.C=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-preview-text");g.H(this,this.C);this.C.Ba(this.B.element);this.S=new g.ZG({G:"span",L:"ytp-ad-preview-image"});g.H(this,this.S);this.J=new uH(this.api,this.bb,this.layoutId,this.j,this.eb);g.H(this,this.J);this.J.Ba(this.S.element);this.S.Ba(this.B.element);
this.B.Ba(this.element);this.Z=new g.JH(this.B,400,!1,100,function(){return l.hide()});
g.H(this,this.Z);this.Aa=0;this.Ia=!1;this.Ua=k;this.hide()};
MH=function(a){a.Z.show(100);a.show()};
NH=function(a,b,c,d,e,f){GH.call(this,a,b,{G:"div",Ea:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",U:[{G:"div",L:"ytp-flyout-cta-text-container",U:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e,f);this.S=new uH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-flyout-cta-icon");g.H(this,this.S);
this.S.Ba(this.Ca("ytp-flyout-cta-icon-container"));this.J=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-flyout-cta-headline");g.H(this,this.J);this.J.Ba(this.Ca("ytp-flyout-cta-headline-container"));this.C=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-flyout-cta-description");g.H(this,this.C);this.C.Ba(this.Ca("ytp-flyout-cta-description-container"));this.B=new oH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-flyout-cta-action-button"]);g.H(this,this.B);this.B.Ba(this.Ca("ytp-flyout-cta-action-button-container"));
this.Z=null;this.Aa=0;this.hide()};
OH=function(a,b,c,d,e,f){$G.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var k=this;this.u=null;this.C=new wH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.C);this.C.Ba(this.element);this.B=new wH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.B);this.B.Ba(this.element);this.D=new g.JH(this,400,!1,500,
function(){return k.hide()});
g.H(this,this.D);this.hide()};
PH=function(a,b,c,d,e){e=void 0===e?0:e;g.G.call(this);this.B=a;this.u=!1;this.Y=d;this.J=!1;this.j=null;0<b&&(this.j=new g.L(this.mM,b,this),g.H(this,this.j));this.D=new g.L(this.mM,c,this);g.H(this,this.D);this.S=aia(this.B,e,1,d);g.H(this,this.S);this.K=aia(this.B,0,d,1);g.H(this,this.K);this.C=new fv;g.H(this,this.C)};
QH=function(a,b,c,d,e,f,k){GH.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.S=null;this.Aa=!1;this.Ia=k;this.C=new g.ZG({G:"span",Ea:["ytp-ad-skip-button-container"]});g.H(this,this.C);this.C.Ba(this.element);this.B=this.J=null;this.La=new g.JH(this.C,500,!1,100,function(){return l.hide()});
g.H(this,this.La);this.Z=new PH(this.C.element,15E3,5E3,.5,.5);g.H(this,this.Z);this.hide()};
Kza=function(a){a=a.S&&a.S.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand?Jza(b.adLifecycleCommand):!1})};
Jza=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
RH=function(a,b,c,d,e,f,k){GH.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.Z=k;this.J=!1;this.S=0;this.C=this.B=null;this.hide()};
Lza=function(a,b){a.J||(a.J=!0,a.B&&(b?a.B.Z.hide():a.B.hide()),b?(a=a.C,a.La.show(),a.show()):a.C.show())};
SH=function(a,b,c,d,e){oH.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
TH=function(a,b,c,d,e,f){f=void 0===f?!1:f;$G.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
UH=function(a,b,c,d,e){e=void 0===e?!1:e;ME.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.Sj=e};
VH=function(a,b){g.iv.call(this);this.api=a;this.durationMs=b;this.j=null;this.Qc=new fv(this);g.H(this,this.Qc);this.u=Mza;this.Qc.T(this.api,"presentingplayerstatechange",this.Yc);this.j=this.Qc.T(this.api,"onAdPlaybackProgress",this.Tb)};
WH=function(a,b){g.iv.call(this);this.bb=b;this.u=!1;this.j=0;this.Qc=new fv(this);g.H(this,this.Qc);this.durationMs=a;this.timer=new g.Ei(100);g.H(this,this.timer);this.Qc.T(this.timer,"tick",this.Tb);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.XH=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.YH=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)};
ZH=function(a,b,c,d,e,f,k){GH.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=k;this.B=null;this.hide()};
$H=function(a,b,c,d,e){EH.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
aI=function(a,b){this.u=a;this.j=b};
bI=function(a){return a.j-a.u};
cI=function(a,b){return a.u+b*bI(a)};
dI=function(a,b,c){return bI(a)?g.sh((b-a.u)/bI(a),0,1):null!=c?c:Infinity};
eI=function(a,b){g.ZG.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Mc=this.Ca("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
fI=function(a,b,c,d,e,f,k){$G.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.J=k;this.S=this.Ca("ytp-ad-player-overlay-flyout-cta");this.B=this.Ca("ytp-ad-player-overlay-instream-info");this.C=null;Nza(this)&&
(a=bi("div"),g.M(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new $H(this.api,this.bb,this.layoutId,this.j,this.eb),c.Ba(a),c.init(LE("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.C=a);this.D=this.Ca("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Ca("ytp-ad-player-overlay-progress-bar");this.Z=this.Ca("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.H(this,this.u);
this.hide()};
Nza=function(a){a=a.api.V();return g.AC(a)&&a.isMobile};
Pza=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.mj(window.location.href);e&&d.push(e);e=g.mj(a);if(g.Sb(d,e)||!e&&fb(a,"/"))if(g.Q("autoescape_tempdata_url")&&(d=document.createElement("a"),g.ph(d,a),a=d.href),a&&(a=pca(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Tv()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&Oza(a,b,f)}else Oza(a,b)};
Oza=function(a,b,c){a="ST-"+Fh(a).toString(36);b=b?g.qj(b):"";c=c||5;ks()&&g.Pr(a,b,c)};
gI=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.sj("/sharing_services",a);g.Nt(d)};
g.Rza=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.sj(a,b)+c;var e=void 0===e?Mfa:e;e=Nfa(a,e)||Qza;d.href=fda(e)};
g.hI=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&&Pza(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.Rza(a))};
g.iI=function(a,b,c,d){c&&Pza(a,c);c=g.Sg(a);c=g.Og(c);a!=c&&jr(Error("Unsafe window.open URL: "+a));a=c;b=b||Fh(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=Sza(a);var k=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
window.open(a,b,k);return}catch(l){}window.open(a,b)};
Sza=function(a){return"www.googleadservices.com"!==g.mj(a)?a:a+"&nis=3"};
g.jI=function(a,b,c){b=Tza(null,b,c);if(b=qh(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Iu("LOGGED_IN",function(d){g.Ju(g.P("LOGGED_IN_PUBSUB_KEY"));ar("LOGGED_IN",!0);a(d)}),ar("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
Tza=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=rj(c,"mode",a));a=rj(d,"next",c);b&&(a=rj(a,"feature",b));return a};
kI=function(a){this.name=a};
lI=function(){this.key=Uza};
Vza=function(){this.providers=new Map;this.j=new Map};
nI=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.j.has(b))return a.j.get(b);if(!a.providers.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.providers.get(b);c.push(b);if(d.Q0)var e=d.Q0;else if(d.P0)e=d[mI]?Wza(a,d[mI],c):[],e=d.P0.apply(d,g.u(e));else if(d.PR){e=d.PR;var f=e[mI]?Wza(a,e[mI],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.u(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.lja||a.j.set(b,
e);return e};
Wza=function(a,b,c){return b?b.map(function(d){return d instanceof lI?nI(a,d.key,c,!0):nI(a,d,c)}):[]};
Xza=function(a,b){if(!a)return!1;var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Ks)return!!b.Ks[a.signalServiceEndpoint.signal];var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.AF)return!!b.AF[a.continuationCommand.request];for(var e in a)if(b.xF[e])return!0;return!1};
Yza=function(a,b){var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Ks&&(c=b.Ks[a.signalServiceEndpoint.signal]))return c();var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.AF&&(d=b.AF[a.continuationCommand.request]))return d();for(var e in a)if(b.xF[e]&&(a=b.xF[e]))return a()};
oI=function(a){return function(){return new a}};
$za=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Zza[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(Zza).forEach(function(k){var l=g.r(k);k=l.next().value;l=l.next().value;b!==k&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(k,l){return k.length-l.length});
e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.pI=function(a){return"/youtubei/v1/"+$za(a)};
qI=function(a){var b=g.P("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(pca(a)));return a};
aAa=function(a,b){var c={};g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.P("INNERTUBE_API_KEY"));g.Q("json_condensed_response")&&(c.prettyPrint="false");return a=qr(a,c)};
rI=function(a,b){return{method:void 0===b?"POST":b,mode:rr(a)?"same-origin":"cors",credentials:rr(a)?"same-origin":"include"}};
sI=function(){};
tI=function(){};
uI=function(a,b,c,d){this.C=a;this.Mf=b;this.j=c;this.D=d;this.B=void 0;this.u=new Map;a.Ks||(a.Ks={});a.Ks=Object.assign({},bAa,a.Ks)};
cAa=function(a,b,c,d){if(void 0!==uI.j){if(d=uI.j,a=[a!==d.C,b!==d.Mf,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Is("InnerTubeTransportService is already initialized",a);
}else uI.j=new uI(a,b,c,d)};
wI=function(a,b,c){var d=void 0===d?vI:d;var e=Yza(b,a.C);if(!e)return Ai(new g.Is("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.xi(function(k){var l,m,n;return g.B(function(p){if(1==p.j)return m="cors"===(null==(l=f.Es)?void 0:l.mode)?"cors":void 0,a.j.kR?(n=dAa(a,f.config,m),p.Va(2)):g.A(p,eAa(a,f.config,m),3);2!=p.j&&(n=p.u);k(fAa(a,f,n));g.sa(p)})}):Ai(new g.Is("Error: Failed to build request for command.",b))};
g.AG=function(a,b,c,d,e){e=void 0===e?{Rq:{identity:vI}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.uG(d,f));return new g.xi(function(k){var l,m,n,p,q;return g.B(function(t){if(1==t.j)return l=qI(c),m=rr(l)?"same-origin":"cors",a.j.kR?(n=dAa(a,e,m),t.Va(2)):g.A(t,eAa(a,e,m),3);2!=t.j&&(n=t.u);var v=n;p=aAa(qI(c),v);q={input:p,Es:rI(p),lm:b,config:e};k(fAa(a,q,n));g.sa(t)})})};
fAa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,J,I,N;return g.B(function(Z){switch(Z.j){case 1:Z.Va(2);break;case 3:if((d=Z.u)&&!d.isExpired())return Z.return(Promise.resolve(d.j()));case 2:if((f=null==(e=b.config)?void 0:e.Yk)&&a.u.has(f)&&g.Q("web_memoize_inflight_requests"))return Z.return(a.u.get(f));if(null==(k=b)?0:null==(l=k.lm)?0:l.context)for(m=g.r([]),n=m.next();!n.done;n=m.next())p=n.value,p.dja(b.lm.context);if(null==(q=a.B)?0:q.C(b.input,b.lm))return Z.return(a.B.B(b.input,b.lm));
t=JSON.stringify(b.lm);b.Es=Object.assign({},b.Es,{headers:c});v=Object.assign({},b.Es);"POST"===b.Es.method&&(v=Object.assign({},v,{body:t}));(null==(x=b.config)?0:x.L_)&&mx(b.config.L_);y=a.Mf.fetch(b.input,v,b.config);f&&a.u.set(f,y);return g.A(Z,y,4);case 4:z=Z.u;f&&a.u.has(f)&&a.u.delete(f);(null==(E=b.config)?0:E.O_)&&mx(b.config.O_);if(z||null==(J=a.B)||!J.j(b.input,b.lm)){Z.Va(5);break}return g.A(Z,a.B.u(b.input,b.lm),6);case 6:z=Z.u;case 5:if(z&&a.D)for(I=g.r(gAa),n=I.next();!n.done;n=I.next())N=
n.value,a.D[N]&&a.D[N].handleResponse(z,b);return Z.return(z)}})};
eAa=function(a,b,c){var d,e,f,k,l,m,n;return g.B(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Rq)?void 0:e.identity)||vI;m=null==(k=b)?void 0:null==(l=k.Rq)?void 0:l.sessionIndex;var q=zi(a.j.oB(f,{sessionIndex:m}));return g.A(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},hAa(c),n)))})};
dAa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Rq)?void 0:d.identity)||vI,f;b=null==b?void 0:null==(f=b.Rq)?void 0:f.sessionIndex;a=a.j.oB(e,{sessionIndex:b});return Object.assign({},hAa(c),a)};
hAa=function(a){var b={"Content-Type":"application/json"};g.Q("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.P("EOM_VISITOR_DATA"):g.P("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));"cors"!==a&&((a=g.P("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.P("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.Q("forward_domain_admin_state_on_embeds")&&
(a=g.P("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
xI=function(){};
yI=function(){};
zI=function(){};
AI=function(){};
BI=function(){};
CI=function(){};
DI=function(a){this.j=a};
g.GI=function(a,b){if(!EI){FI||(FI=new Vza);var c=FI;var d={B_:iAa,PR:DI};c.providers.set(d.B_,d);d={xF:{feedbackEndpoint:oI(zI),modifyChannelNotificationPreferenceEndpoint:oI(AI),playlistEditEndpoint:oI(BI),subscribeEndpoint:oI(xI),unsubscribeEndpoint:oI(yI),webPlayerShareEntityServiceEndpoint:oI(CI)}};var e=g.Q("web_enable_client_location_service")?tG.getInstance():void 0,f={};e&&(f.client_location=e);void 0===a&&(vG.j||(vG.j=new vG),a=vG.j);void 0===b&&(b=c.resolve(iAa));cAa(d,b,a,f);EI=uI.j}return EI};
HI=function(){};
jAa=function(){HI.j||(HI.j=new HI);return HI.j};
lAa=function(){if(!g.Q("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Q("disable_biscotti_fetch_entirely_for_all_web_clients")&&ks()&&"1"!=g.Sf(g.P("PLAYER_VARS",{}),"privembed",!1)){var a=function(){II=!0;"google_ad_status"in window?ar("DCLKSTAT",1):ar("DCLKSTAT",2)};
try{g.kw("//web.archive.org/web/20220414023957/https://static.doubleclick.net/instream/ad_status.js",a)}catch(b){}kAa.push(g.vp.Sg(function(){if(!(II||"google_ad_status"in window)){try{if(a){var b=""+g.Oa(a),c=Kpa[b];c&&g.Ju(c)}}catch(d){}II=!0;ar("DCLKSTAT",3)}},5E3))}};
mAa=function(){var a=Number(g.P("DCLKSTAT",0));return isNaN(a)?0:a};
JI=function(){};
nAa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Bs=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.dr("ytidb_transaction_ended_event_rate_limit",.02)};
pAa=function(a,b){JI.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:oAa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:oAa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
oAa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
qAa=function(){this.state=1;this.j=null};
sAa=function(a,b,c,d,e,f){var k=void 0===k?"trayride":k;c?(a.state=2,g.kw(c,function(){if(window[k])rAa(a,d,k,e);else{a.state=3;var l=Jpa(c),m=document.getElementById(l);m&&(ooa(l),m.parentNode.removeChild(m));g.Jv(new g.Is("Unable to load Botguard","from "+c))}},f)):b?(f=g.ci("SCRIPT"),f.textContent=b,f.nonce=rh(),document.head.appendChild(f),document.head.removeChild(f),window[k]?rAa(a,d,k,e):(a.state=4,g.Jv(new g.Is("Unable to load Botguard from JS")))):g.Jv(new g.Is("Unable to load VM; no url or JS provided"))};
rAa=function(a,b,c,d){a.state=5;try{var e=new Sj({program:b,globalName:c});e.Y_.then(function(){a.state=6;d&&d(b)});
tAa(a,e)}catch(f){a.state=7,f instanceof Error&&g.Jv(f)}};
uAa=function(a,b){var c=g.KI;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.j?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.j?c.j.snapshot({lx:a}).then(d):d(null)})]):Promise.resolve(null)};
tAa=function(a,b){g.nf(a.j);a.j=b};
MI=function(a){return!LI||(0,g.R)()-LI>a};
g.OI=function(a,b){var c=g.sB(b.experiments,"bg_vm_reinit_threshold");b.N("always_reinit_bg_vm")&&(c=0);a.program&&(2===g.KI.state?0:MI(c))&&(Cx("bg_i",void 0,"player_att"),g.KI.initialize(a,function(){var d=a.serverEnvironment;Cx("bg_l",void 0,"player_att");LI=(0,g.R)();for(var e=0;e<NI.length;e++){var f=NI[e];try{f(d)}catch(k){}}},b.cspNonce))};
vAa=function(a){a=void 0===a?{}:a;return g.KI.invoke(a)};
wAa=function(a){var b=g.dr("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return uAa(a,b)};
yAa=function(a,b,c,d){var e=window.location.search;if(38===b.Ga&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.sj("//web.archive.org/web/20220414023957/https://play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.hS});if(30===b.Ga&&"docs"===a.playerStyle)return g.sj("https://web.archive.org/web/20220414023957/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.Me});if(33===b.Ga&&"google-live"===a.playerStyle)return g.sj("//web.archive.org/web/20220414023957/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Ga&&g.Iv(Error("getVideoInfoUrl for invalid namespace: "+a.Ga));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Me,ps:a.playerStyle,el:xE(b),hl:a.Qf,list:b.playlistId,agcid:b.OO,aqi:b.adQueryId,sts:19095,lact:Du()};Object.assign(f,a.deviceParams);a.rb&&(f.forced_experiments=a.rb);b.Ta?(f.vvt=b.Ta,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.BE(b)&&(f.access_token=g.BE(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);
b.breakType&&(f.break_type=b.breakType);null!==b.Pw&&(f.ad_id=b.Pw);null!==b.Rw&&(f.ad_sys=b.Rw);null!==b.eH&&(f.encoded_ad_playback_context=b.eH);b.GE&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Xa&&2!==a.Xa&&(f.cc_load_policy=a.Xa);var k=g.rs(g.qs.getInstance(),65);g.VC(a)&&null!=k&&!k&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Nr&&(f.endscreen_ad_tracking=
b.Nr);(k=a.Z.get(b.videoId))&&k.Nz&&(f.ic_track=k.Nz);b.va&&(f.itct=b.va);AE(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.nm&&(f.autonav="1");b.zI&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Dh);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.dn&&(f.ytrcc=b.dn);b.VJ&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Th&&(k=3===b.Th.split("|").length,f.force_ad_params=k?b.Th:"||"+b.Th);b.Ee&&(f.preload=
b.Ee);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Qf&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");yE(b)&&(f.content_v=yE(b));b.Ib&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.La&&(f.ei=a.La);a.j&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.B&&b.PD&&(f.live_start_walltime=b.PD);a.B&&b.ai&&(f.live_manifest_duration=b.ai);a.B&&b.playerParams&&(f.player_params=b.playerParams);a.B&&b.cycToken&&(f.cyc=b.cycToken);
a.B&&b.HE&&(f.tkn=b.HE);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Kb&&(f.kpt=b.Kb);b.vl&&(f.kids_age_up_mode=b.vl);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.ut&&(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.nk&&(f.internalipoverride=b.nk);a.embedConfig&&(f.embed_config=a.embedConfig);a.ul&&(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.Ym&&b.Iq&&(f.clip=b.Ym,f.clipt=b.Iq);b.Dr&&
(f.disable_watch_next="1");b.Uh&&(f.forced_by_var="1");for(var l in f)!xAa.has(l)&&f[l]&&512<String(f[l]).length&&(g.Jv(Error("GVI param too long: "+l)),f[l]="");b=a.ma;g.zC(a)&&(b=Ew(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.ma);a=g.sj(b+"get_video_info",f);e&&(a=zja(a,e));return a};
g.PI=function(a,b){return a.ma+"timedtext_video?ref=player&v="+b.videoId};
g.QI=function(a,b){a.feature=b;return a};
g.RI=function(a,b){a.utm_source="yt-embeds-web";a.utm_medium=b};
zAa=function(a){var b={};a.YD&&(b.ytrext=a.YD);return g.Pf(b)?void 0:b};
g.AAa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.KI.isInitialized()){var d="";b.videoData&&b.videoData.Xa&&(d=b.videoData.Xa+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);Cx("bg_v",void 0,"player_att");d=vAa(d);Cx("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else Cx("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.KI.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^mAa())},a);
this.videoData&&this.videoData.Xa?this.j=mr(this.videoData.Xa):this.j={}};
g.BAa=function(a){if(a.videoData&&a.videoData.Xa){for(var b=[a.videoData.Xa],c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
DAa=function(a){var b={};Object.assign(b,a.u);g.Q("player_attestation_bg_async")&&(b.c1a=function(){return CAa(a)});
if(a.videoData&&a.videoData.Xa){for(var c=[a.videoData.Xa],d=g.r(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,k){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},k)})}return Promise.resolve(null)};
CAa=function(a){function b(e){return e+"&r1d="+g.KI.getState()}
if(!g.KI.isInitialized())return Cx("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.Xa&&(c=a.videoData.Xa+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){Cx("bg_v",void 0,"player_att");wAa(d).then(function(f){f?(Cx("bg_s",void 0,"player_att"),e(b("r1a="+f))):(Cx("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){Cx("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.TI=function(a){var b=a.V(),c=g.SI(b),d=a.va;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=xE(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Ib?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.vl)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:EAa[e]}});a.ut&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Ee&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=FAa[b];c.request=d;d=c.user||{};if(b=a.Ta)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Kb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.SI=function(a){var b=g.uG(),c=b.client||{};if(a.rb){var d=a.rb.split(","),e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};
a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Me)b.thirdParty={embedUrl:a};return b};
KAa=function(a,b,c){var d=a.videoId,e=g.TI(a),f=a.V(),k={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Du()),referer:document.location.toString(),signatureTimestamp:19095};g.qs.getInstance();a.nm&&(k.autonav=!0);g.rs(0,141)&&(k.autonavState=g.rs(0,140)?"STATE_OFF":"STATE_ON");k.autoCaptionsDefaultOn=g.rs(0,66);AE(a)&&(k.autoplay=!0);f.B&&a.cycToken&&(k.cycToken=a.cycToken);f.enablePrivacyFilter&&(k.enablePrivacyFilter=!0);a.isFling&&(k.fling=!0);var l=a.Th;if(l){var m={},n=[];l=l.split(",");
l=g.r(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.r(q);for(var t=q.next();!t.done;t=q.next()){var v=g.r(t.value.split("="));t=v.next().value;v=ka(v);p[t]=v.join("=")}q=p.url;t=p.presetad;v=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),v&&(m.viralAdResponseUrl=v),x&&(m.viralCampaignId=String(x));
else if("video_ad"===p.adtype){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=GAa[p.breaktype])y.breakType=p;q&&(y.url=q);t&&(y.presetAd=t);v&&(y.viralAdResponseUrl=v);x&&(y.viralCampaignId=String(x));n.push(y)}}k.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(k.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(k.isLivingRoomDeeplink=!0);m=a.PD;if(null!=m){m={startWalltime:String(m)};if(n=a.ai)m.manifestDuration=String(n||14400);k.liveContext=
m}a.mutedAutoplay&&(k.mutedAutoplay=!0);a.Qf&&(k.splay=!0);m=a.vnd;5===m&&(k.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.dn)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Dh){n=a.YD;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:HAa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:IAa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||
"",platform:JAa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){v=void 0;try{v=JSON.parse(n)}catch(z){g.Jv(z)}v&&(t={params:[{key:"ms",value:v.ms}]},q.osName=v.os_name,q.userAgent=v.user_agent,q.windowHeightPoints=v.window_height_points,q.windowWidthPoints=v.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});k.mdxContext=m;m=b.width;0<
m&&(k.playerWidthPixels=Math.round(m));if(b=b.height)k.playerHeightPixels=Math.round(b);0!==c&&(k.vis=c);if(c=f.widgetReferrer)k.widgetReferrer=c.substring(0,128);g.rC(f)&&!f.N("embeds_enable_sending_ancestor_origins_killswitch")&&k&&(k.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:k}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=
!0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.rs(g.qs.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.VC(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.VR&&(d.captionParams.deviceCaptionsLangPref=a.VR);a.ME.length?d.captionParams.viewerSelectedCaptionLangs=a.ME:g.RC(e)&&e.N("web_player_i_see_captions_2")&&(f=g.qta(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&&
a.N("html5_onesie_attach_po_token");k="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");if(f||k)a=a.V(),a.Oe&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Oe);e.N("fetch_att_independently")?(a=!e.N("html5_force_include_bg_data"),d.attestationRequest={omitBotguardData:a}):e.N("html5_exclude_bg_vm_data")&&(d.attestationRequest={omitBotguardData:!MI(g.sB(e.experiments,"bg_vm_reinit_threshold"))});return d};
MAa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j)return c={context:g.SI(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.pI(LAa),g.A(f,g.AG(b,c,d),2);e=f.u;return f.return(e)})};
NAa=function(a,b,c){MI(g.sB(b.experiments,"bg_vm_reinit_threshold"))&&MAa(a,c).then(function(d){d.botguardData&&g.OI(d.botguardData,b)},function(d){a.isDisposed()||(d=hD(d),a.xa("attf",{error:d.errorCode}))})};
UI=function(){var a=OAa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=yia.apply(null,[zia.apply(null,g.u(b))].concat(g.u(c)));this.store=Bia(a,void 0,b)};
g.VI=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===k)d[f]=l;else if(Array.isArray(l)&&Array.isArray(k))d[f]=c?[].concat(g.u(k),g.u(l)):l;else if(!Array.isArray(l)&&g.Ma(l)&&!Array.isArray(k)&&g.Ma(k))d[f]=g.VI(k,l,c);else if(typeof l===typeof k)d[f]=l;else return b=new g.Is("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Via:k,Ka:l}),g.Iv(b),a}return d};
WI=function(a){this.u=a;this.j=0;this.B=-1};
XI=function(a){var b=oy(a.u,a.j);++a.j;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=oy(a.u,a.j),++a.j,d*=128,c+=(b&127)*d;return c};
YI=function(a,b){var c=a.B;for(a.B=-1;a.j+1<=a.u.totalLength;){0>c&&(c=XI(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:XI(a);break;case 1:a.j+=8;break;case 2:d=XI(a);a.j+=d;break;case 5:a.j+=4}}return!1};
ZI=function(a,b){if(YI(a,b))return XI(a)};
PAa=function(a,b){if(YI(a,b))return!!XI(a)};
$I=function(a,b){if(YI(a,b)){b=XI(a);var c=ny(a.u,a.j,b);a.j+=b;return c}};
aJ=function(a,b){if(a=$I(a,b))return g.uy(a)};
QAa=function(a,b,c){if(a=$I(a,b))return c(new WI(new iy([a])))};
bJ=function(a,b){a=a instanceof Uint8Array?new iy([a]):a;return b(new WI(a))};
RAa=function(){this.j=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)};
cJ=function(a,b){b=a.j+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.u.subarray(0,a.j));a.u=b;a.view=new DataView(a.u.buffer)}};
dJ=function(a,b){if(268435455<b){cJ(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.j,c&127|128),c>>=7,a.j+=1;b=Math.floor(b/268435456)}for(cJ(a,4);127<b;)a.view.setUint8(a.j,b&127|128),b>>=7,a.j+=1;a.view.setUint8(a.j,b);a.j+=1};
eJ=function(a,b,c){void 0!==c&&(dJ(a,b<<3|0),dJ(a,c))};
fJ=function(a,b,c){void 0!==c&&eJ(a,b,c?1:0)};
gJ=function(a,b,c){void 0!==c&&(dJ(a,b<<3|2),b=c.length,dJ(a,b),cJ(a,b),a.u.set(c,a.j),a.j+=b)};
hJ=function(a,b,c){void 0!==c&&(SAa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),cJ(a,1.2*c.length),b=wy(c,a.u.subarray(a.j)),a.j+b>a.u.length&&(cJ(a,b),b=wy(c,a.u.subarray(a.j))),a.j+=b,TAa(a))};
SAa=function(a,b,c){c=void 0===c?2:c;dJ(a,b<<3|2);a.B.push(a.j);a.B.push(c);a.j+=c};
TAa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.j-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
iJ=function(a,b,c,d,e){c&&(SAa(a,b,void 0===e?3:e),d(a,c),TAa(a))};
jJ=function(a,b){var c=new RAa;b(c,a);return new Uint8Array(c.u.buffer,0,c.j)};
g.kJ=function(a){var b=new WI(new iy([Fc(decodeURIComponent(a))]));a=aJ(b,2);b=ZI(b,4);var c=UAa[b];if("undefined"===typeof c)throw a=new g.Is("Failed to recognize field number",{name:"EntityKeyHelperError",Aia:b}),g.Iv(a),a;return{zV:b,entityType:c,entityId:a}};
g.lJ=function(a,b){var c=new RAa;hJ(c,2,a);a=VAa[b];if("undefined"===typeof a)throw b=new g.Is("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.Iv(b),b;eJ(c,4,a);eJ(c,5,1);b=new Uint8Array(c.u.buffer,0,c.j);return encodeURIComponent(g.wc(b))};
mJ=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
WAa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.VI(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
XAa=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 nJ(a)};
nJ=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};
YAa=function(a,b,c,d){if(g.Ma(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};
qJ=function(a,b){g.G.call(this);var c=this;this.app=a;this.playerType=b;this.j=!0;this.element=null;this.D={};this.K={};this.u={};this.S=[];this.J={};this.C={};this.B=null;this.Y=new Set;oJ(this,"cueVideoById",this.cueVideoById);oJ(this,"loadVideoById",this.loadVideoById);oJ(this,"cueVideoByUrl",this.cueVideoByUrl);oJ(this,"loadVideoByUrl",this.loadVideoByUrl);oJ(this,"playVideo",this.playVideo);oJ(this,"pauseVideo",this.pauseVideo);oJ(this,"stopVideo",this.stopVideo);oJ(this,"clearVideo",this.clearVideo);
oJ(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);oJ(this,"getVideoBytesTotal",this.getVideoBytesTotal);oJ(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);oJ(this,"getVideoStartBytes",this.getVideoStartBytes);oJ(this,"cuePlaylist",this.cuePlaylist);oJ(this,"loadPlaylist",this.loadPlaylist);oJ(this,"nextVideo",this.nextVideo);oJ(this,"previousVideo",this.previousVideo);oJ(this,"playVideoAt",this.playVideoAt);oJ(this,"setShuffle",this.setShuffle);oJ(this,"setLoop",this.setLoop);oJ(this,
"getPlaylist",this.OV);oJ(this,"getPlaylistIndex",this.getPlaylistIndex);oJ(this,"getPlaylistId",this.getPlaylistId);oJ(this,"loadModule",this.loadModule);oJ(this,"unloadModule",this.unloadModule);oJ(this,"setOption",this.setOption);oJ(this,"getOption",this.getOption);oJ(this,"getOptions",this.getOptions);oJ(this,"mute",this.mute);oJ(this,"unMute",this.unMute);oJ(this,"isMuted",this.isMuted);oJ(this,"setVolume",this.setVolume);oJ(this,"getVolume",this.getVolume);oJ(this,"seekTo",this.seekTo);oJ(this,
"getPlayerMode",this.getPlayerMode);oJ(this,"getPlayerState",this.getPlayerState);oJ(this,"getPlaybackRate",this.getPlaybackRate);oJ(this,"setPlaybackRate",this.setPlaybackRate);oJ(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);oJ(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
oJ(this,"setPlaybackQuality",this.setPlaybackQuality);oJ(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);oJ(this,"getCurrentTime",this.getCurrentTime);oJ(this,"getDuration",this.getDuration);oJ(this,"addEventListener",this.OU);oJ(this,"removeEventListener",this.G_);oJ(this,"getDebugText",this.getDebugText);oJ(this,"getVideoData",function(){return c.BB()});
oJ(this,"addCueRange",this.addCueRange);oJ(this,"removeCueRange",this.removeCueRange);oJ(this,"setSize",this.setSize);oJ(this,"getApiInterface",this.getApiInterface);oJ(this,"destroy",this.destroy);oJ(this,"showVideoInfo",this.showVideoInfo);oJ(this,"hideVideoInfo",this.hideVideoInfo);oJ(this,"isVideoInfoVisible",this.isVideoInfoVisible);oJ(this,"getSphericalProperties",this.getSphericalProperties);oJ(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.V();a.D||(oJ(this,"getVideoEmbedCode",
this.getVideoEmbedCode),oJ(this,"getVideoUrl",this.getVideoUrl));oJ(this,"getMediaReferenceTime",this.getMediaReferenceTime);oJ(this,"getSize",this.getSize);a.D||oJ(this,"logImaAdEvent",this.logImaAdEvent);pJ(this,"getInternalApiInterface",this.getInternalApiInterface);pJ(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);pJ(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);pJ(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);pJ(this,"getAdState",this.getAdState);pJ(this,"sendAbandonmentPing",
this.sendAbandonmentPing);pJ(this,"setLoopRange",this.setLoopRange);pJ(this,"getLoopRange",this.getLoopRange);pJ(this,"setAutonavState",this.setAutonavState);pJ(this,"seekToLiveHead",this.seekToLiveHead);pJ(this,"seekToStreamTime",this.seekToStreamTime);pJ(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);pJ(this,"startSeekCsiAction",this.startSeekCsiAction);pJ(this,"getStreamTimeOffset",this.getStreamTimeOffset);pJ(this,"getVideoData",this.BB);pJ(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);
pJ(this,"downloadVideo",this.downloadVideo);pJ(this,"queueOfflineAction",this.queueOfflineAction);pJ(this,"pauseVideoDownload",this.pauseVideoDownload);pJ(this,"resumeVideoDownload",this.resumeVideoDownload);pJ(this,"refreshAllVideos",this.refreshAllVideos);pJ(this,"deleteVideos",this.deleteVideos);pJ(this,"deleteAllVideos",this.deleteAllVideos);pJ(this,"isOrchestrationLeader",this.isOrchestrationLeader);pJ(this,"getAppState",this.getAppState);pJ(this,"addInfoCardXml",this.addInfoCardXml);pJ(this,
"updateLastActiveTime",this.updateLastActiveTime);pJ(this,"setBlackout",this.setBlackout);pJ(this,"setAccountLinkState",this.setAccountLinkState);pJ(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);pJ(this,"setUserEngagement",this.setUserEngagement);pJ(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);pJ(this,"getPresentingPlayerType",this.getPresentingPlayerType);pJ(this,"canPlayType",this.canPlayType);pJ(this,"updatePlaylist",this.updatePlaylist);pJ(this,"updateVideoData",
this.updateVideoData);pJ(this,"updateEnvironmentData",this.updateEnvironmentData);pJ(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);pJ(this,"setCardsVisible",this.setCardsVisible);pJ(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);pJ(this,"setSafetyMode",this.setSafetyMode);pJ(this,"isAtLiveHead",function(d){return c.isAtLiveHead(void 0,d)});
pJ(this,"getVideoAspectRatio",this.getVideoAspectRatio);pJ(this,"getPreferredQuality",this.getPreferredQuality);pJ(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);pJ(this,"onAdUxClicked",this.onAdUxClicked);pJ(this,"getFeedbackProductData",this.getFeedbackProductData);pJ(this,"getStoryboardFrame",this.getStoryboardFrame);pJ(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);pJ(this,"getStoryboardLevel",this.getStoryboardLevel);pJ(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
pJ(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);pJ(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);pJ(this,"addUtcCueRange",this.addUtcCueRange);pJ(this,"showAirplayPicker",this.showAirplayPicker);pJ(this,"addBgVersionChangeCallback",this.addBgVersionChangeCallback);pJ(this,"dispatchReduxAction",this.dispatchReduxAction);pJ(this,"getPlayerResponse",this.getPlayerResponse);pJ(this,"setAutonav",this.setAutonav);pJ(this,"isNotServable",this.isNotServable);pJ(this,
"channelSubscribed",this.channelSubscribed);pJ(this,"channelUnsubscribed",this.channelUnsubscribed);pJ(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);pJ(this,"togglePictureInPicture",this.togglePictureInPicture);pJ(this,"supportsGaplessAudio",this.supportsGaplessAudio);pJ(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
pJ(this,"clearQueue",this.clearQueue);pJ(this,"isFastLoad",function(){return!1});
pJ(this,"getAudioTrack",this.BV);pJ(this,"setAudioTrack",this.setAudioTrack);pJ(this,"getAvailableAudioTracks",this.CV);pJ(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);pJ(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);pJ(this,"getStatsForNerds",this.getStatsForNerds);pJ(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);pJ(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);pJ(this,"setMinimized",this.setMinimized);pJ(this,"confirmYpcRental",
this.confirmYpcRental);pJ(this,"setInlinePreview",this.setInlinePreview);pJ(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);pJ(this,"handleExternalCall",this.handleExternalCall);pJ(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);pJ(this,"setScreenLayer",this.setScreenLayer);pJ(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);pJ(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);pJ(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);
pJ(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);pJ(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);pJ(this,"setGlobalCrop",this.setGlobalCrop);pJ(this,"getVisibilityState",this.getVisibilityState);pJ(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);pJ(this,"setInternalSize",this.setInternalSize)};
oJ=function(a,b,c){a.D[b]=function(){return c.apply(a,g.Ba.apply(0,arguments))};
a.u.hasOwnProperty(b)||pJ(a,b,c);a.S.push(b)};
rJ=function(a,b,c){a.K[b]=function(){return c.apply(a,g.Ba.apply(0,arguments))};
a.u.hasOwnProperty(b)||pJ(a,b,c);a.S.push(b)};
pJ=function(a,b,c){a.u[b]=function(){return c.apply(a,g.Ba.apply(0,arguments))}};
Gya=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.K),a.B.addEventListener=function(b,c){ZAa(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Oa(c));
var d=a.C[c];d&&(a.app.vn.unsubscribe(b,d),g.Rf(a.C,c))});
return a.B};
ZAa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Oa(c));if(!a.C[d]){var e;"string"===typeof c?e=function(){var k=g.Ba.apply(0,arguments);g.Ia(c).apply(window,k)}:e=c;
var f=function(k){e({target:a.B,data:k})};
a.C[d]=f;a.app.vn.subscribe(b,f)}};
$Aa=function(a,b,c){b=g.sh(Math.floor(b),0,100);isFinite(b)&&sJ(a.app,{volume:b,muted:a.isMuted()},c)};
aBa=function(a,b){sJ(a.app,{muted:!0,volume:a.getVolume()},b)};
bBa=function(a,b){sJ(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.uJ=function(a){var b=tJ(a.app.ob());if(b)return b.Gx();a=a.app.ob();a=g.CC(a.I.V())?a.Zd.get("music"):void 0;return a?a.Gx():null};
wJ=function(a,b){qJ.call(this,a,b);var c=this;this.j=!1;rJ(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(vJ(c,d),e)});
rJ(this,"loadVideoByPlayerVars",function(d,e,f,k){c.loadVideoByPlayerVars(vJ(c,d),e,f,k)});
rJ(this,"preloadVideoByPlayerVars",function(d,e,f,k){return void c.preloadVideoByPlayerVars(vJ(c,d),e,f,k)});
rJ(this,"seekBy",this.seekBy);rJ(this,"mutedAutoplay",this.mutedAutoplay);rJ(this,"showControls",this.showControls);rJ(this,"hideControls",this.hideControls);rJ(this,"cancelPlayback",this.cancelPlayback);rJ(this,"getProgressState",this.getProgressState);rJ(this,"isInline",this.isInline);rJ(this,"setInline",this.setInline);rJ(this,"setLoopVideo",this.setLoopVideo);rJ(this,"getLoopVideo",this.getLoopVideo);rJ(this,"getStoryboardFormat",this.getStoryboardFormat);rJ(this,"getVideoContentRect",this.getVideoContentRect);
rJ(this,"toggleFullscreen",this.toggleFullscreen);rJ(this,"isFullscreen",this.isFullscreen);rJ(this,"getVideoStats",this.getVideoStats);rJ(this,"getPlayerSize",this.getPlayerSize);rJ(this,"toggleSubtitles",this.toggleSubtitles);rJ(this,"setCenterCrop",this.setCenterCrop);rJ(this,"setFauxFullscreen",this.setFauxFullscreen);rJ(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);rJ(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);rJ(this,"setSizeStyle",this.setSizeStyle);rJ(this,"wakeUpControls",this.wakeUpControls)};
vJ=function(a,b){var c={};if(a.app.V().S){a=g.r(cBa);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(dBa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
eBa=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.xJ=function(a){wJ.call(this,a);this.jE=this.settingsMenu=null};
g.yJ=function(a){a=a.ob();var b=a.Zd.get("endscreen");return b&&b.Is()?!0:a.zz()||g.CC(a.I.V())};
g.zJ=function(a,b){3===a.getPresentingPlayerType()?a.ea("mdxautoplaycancel"):a.ea("autonavcancel",b)};
g.BJ=function(a){var b=AJ(a.ob());return a.app.qh&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.hm()||!!a.getPlaylist()};
g.DJ=function(a){return(a=g.CJ(a.ob()))?a.yB():{}};
g.fBa=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.gBa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.rb)};
g.EJ=function(a,b,c){a=a.Ya().element;var d=hc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.fi(a,b,d);b.setAttribute("data-layer",String(c))};
g.FJ=function(a){var b=a.V();if(!b.fd)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!GE(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.Sb(c.ra,"ypc")&&!a&&(!g.rC(b)||f)};
hBa=function(a){a=g.GJ(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.cK)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.xa("iqss",{trigger:d},!0),!0):!1};
HJ=function(a){this.X=a;this.u=this.j=NaN};
IJ=function(a,b,c){Bx(a,c)||Cx(a,b,c);Bx(a,"video_to_ad")||Cx(a,b,"video_to_ad");Bx(a,"ad_to_video")||Cx(a,b,"ad_to_video");Bx(a,"ad_to_ad")||Cx(a,b,"ad_to_ad")};
JJ=function(a,b){this.X=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new HJ(a);this.j=b||null;this.C=!1};
VJ=function(a,b){IJ(b,void 0,a.timerName)};
iBa=function(a,b,c){var d=g.xC(b.B)&&!b.B.D;if(b.B.Ri&&(tC(b.B)||"shortspage"===b.B.Ia||$C(b.B)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.P("TIMING_ACTION")||ar("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&ar("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.j){d=a.j.vj();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,mx(f,d[f],a.timerName);d=a.j.TA;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.px(f,d[f],a.timerName);d=a.j;d.j={};d.TA={}}g.px("yt_pvis",
Dx(),a.timerName);g.px("yt_pt","html5",a.timerName);a.J!==b.clientPlaybackNonce||Number.isNaN(a.B)||(Bx("_start",a.timerName)?c=Tw(a.timerName)._start+a.B:g.Jv(new g.Is("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!Bx("pbs",a.timerName)&&a.tick("pbs",c)}};
jBa=function(a){if(a.j){var b=a.j;b.j={};b.TA={}}a.C=!1;a.J=void 0;a.B=NaN};
WJ=function(a,b){g.iv.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=kr(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new oD("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.pD(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.r(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=qD(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
XJ=function(a){return!!(a.playlist||a.list||a.api)};
kBa=function(a){var b=a.index+1;return b>=a.length?0:b};
lBa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.YJ=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.TD(a.u,b),g.H(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
ZJ=function(a,b){a.index=g.sh(b,0,a.length-1);a.startSeconds=0};
$J=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.YJ(a);a.items=[];for(var d=g.r(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
oBa=function(a,b){var c,d,e,f,k,l;return g.B(function(m){if(1==m.j){c=g.GI();var n=a.V(),p={context:g.TI(a)};n.N("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.Q("parse_video_id_from_serialized_embedded_player_response_killswitch")){var t=b.embedded_player_response;t&&(q=JSON.parse(t))}if(q){var v,x,y,z,
E,J,I;q=(null==(v=q)?void 0:null==(x=v.embedPreview)?void 0:null==(y=x.thumbnailPreviewRenderer)?void 0:null==(z=y.playButton)?void 0:null==(E=z.buttonRenderer)?void 0:null==(J=E.navigationEndpoint)?void 0:null==(I=J.watchEndpoint)?void 0:I.videoId)||null}else q=null}v=(v=q)?v:void 0;x=a.playlistId?a.playlistId:b.list;y=b.listType;if(x){var N;"user_uploads"===y?N={username:x}:N={playlistId:x};mBa(n,v,b,N);p.playlistRequest=N}else b.playlist?(N={templistVideoIds:b.playlist.toString().split(",")},mBa(n,
v,b,N),p.playlistRequest=N):v&&(N={videoId:v},n&&(N.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=N);d=p;e=g.pI(nBa);g.ta(m,2);return g.A(m,g.AG(c,d,e),4)}if(2!=m.j)return f=m.u,k=a.V(),b.raw_embedded_player_response=f,m.return(new g.TD(k,b));l=g.va(m);g.Iv(l);return m.return(a)})};
mBa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.bK=function(a,b){aK.get(a);aK.set(a,b)};
g.cK=function(a){g.iv.call(this);this.loaded=!1;this.player=a};
pBa=function(){this.u=[];this.j=[]};
g.dK=function(a,b){return b?a.j.concat(a.u):a.j};
g.eK=function(a,b){switch(b.kind){case "asr":qBa(b,a.u);break;default:qBa(b,a.j)}};
qBa=function(a,b){g.Pb(b,function(c){return a.equals(c)})||b.push(a)};
g.fK=function(a){g.G.call(this);this.X=a;this.u=new pBa;this.C=[]};
g.gK=function(a,b,c){g.fK.call(this,a);this.audioTrack=c;this.j=null;this.C=b.RE};
rBa=function(){this.j=10;this.Ei=!1};
sBa=function(a,b){var c=void 0===b?{}:b,d=void 0===c.im?!1:c.im;b=new rBa;b.Ei=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.sB(a.experiments,"html5_time_based_consolidation_ms"))b.j=a;return b};
g.tBa=function(a){this.j=a;this.D=new rBa;this.Il=this.Hl=!1;this.wl=2;this.K=20971520;this.Y=8388608;this.J=120;this.Kb=3145728;this.Ga=62914560;this.Vb=10485760;this.Bl=g.sB(this.j.experiments,"html5_min_readbehind_secs");this.Kw=g.sB(this.j.experiments,"html5_min_readbehind_cap_secs");this.Jw=g.sB(this.j.experiments,"html5_max_readbehind_secs");this.Rw=this.j.N("html5_trim_future_discontiguous_ranges");this.Qb=NaN;this.ai=0;this.Wm=this.Mj=this.yq=2;this.La=2097152;this.Vm=1048576;this.Xa=!1;this.Ee=
1800;this.pk=5;this.Aa=15;this.Ne=1;this.B=1.15;this.C=1.05;this.Pj=1;this.Fl=!0;this.ra=!1;this.Xm=.8;this.bd=!1;this.Uw=this.j.N("html5_update_representation_init_boxes");this.gk=!1;this.kc=6;this.Z=this.rb=!1;this.Cl=this.ud=0;this.vt=this.j.N("html5_append_init_while_paused");this.Rm=g.sB(this.j.experiments,"html5_post_interrupt_readahead");this.Kc=5E3;this.Xs=100;this.ul=10;this.Pr=g.sB(this.j.experiments,"html5_ssdai_failure_retry_limit")||3;this.bk=this.j.experiments.jb("html5_clone_original_for_fallback_location");
this.Qw=this.j.experiments.jb("html5_ssdai_reset_on_video_only_killswitch");this.Ag=1;this.Uh=1.6;this.kb=!1;this.ma=.5;this.Pd=2;this.Id=this.Rs=0;this.Vs=1.5;this.Ws=this.Wh=.5;this.Pe=15;this.nk=1;this.Dr=this.Gc=!1;this.vl=0;this.pn=this.us=this.jk=this.Tm=this.Gl=!1;this.Oc=2;this.Nr=this.Wj=!1;this.qf=0;this.Bg=this.zq=this.va=this.Qs=this.Qg=!1;this.Ua=!0;this.Pg=this.qd=this.Sm=this.Ta=!1;this.ql=!0;this.Th=!1;this.u="";this.Bt=1048576;this.De=[];this.Ot=this.j.N("html5_woffle_resume");this.gb=
!0;this.hk=this.Ri=this.Me=!1;this.nj=46800;this.jr=this.Vj=this.Nj=this.Um=this.Oe=this.Ib=!1;this.S=0;this.rl="";this.At=this.j.N("html5_disable_codec_for_playback_on_error");this.Si=this.ut=this.fk=this.Tg=!1;this.cf=0;this.Ow=ds();this.Mr=this.lk=!1;this.wt=this.j.N("html5_skip_buffer_check_seek_to_head");this.pe=!1;this.Ym=!this.j.N("html5_reset_media_stream_discontinuity_killswitch");this.Ui=!1;this.Qf=8192;this.Ia=this.fd=!1;this.Iq=1;this.Sw=this.j.N("html5_update_readahead_from_real_byterates");
this.Ys=this.j.N("html5_onesie_live");this.Lw=g.sB(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.El=g.sB(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Pw=this.j.N("html5_self_init_consolidation");this.As=this.j.N("html5_stream_metadata");this.ib=this.j.N("html5_onesie_ads");this.Pt=this.j.N("html5_match_smb_cuepoints_start_secs");this.xt=this.j.N("html5_live_partial_response_resumable");this.Qe=this.j.N("html5_ssdai_log_ad_transition_info");this.ol=this.j.N("html5_eliminate_net_retryexhausted_error");
this.Dl=this.j.N("html5_no_deferred_permanent_error");this.Nw=g.sB(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.zt=this.j.N("html5_constrain_fallback_format_bounding_volume");this.Mw=this.j.N("html5_onesie_nonzero_playback_start");this.Vw=this.j.N("html5_ssdai_use_oncuepoint_api")};
uBa=function(a,b){1080<b.video.j&&!a.Hl&&(a.K=36700160,a.Y=5242880,a.Kb=10485760,a.La=4194304,a.Hl=!0);2160<b.video.j&&!a.Il&&(a.K=104857600,a.Qb=13107200,a.Il=!0);b.isEncrypted()&&g.$r()&&Yr("kant")&&(a.Qb=1310720);b.Qb&&(a.Vm=Math.max(65536,Math.min(a.La,5*b.Qb)))};
g.hK=function(a,b){return gA(a.info.mimeType)?b?a.info.Yb()===b:!0:!1};
g.vBa=function(a,b){if(null!=a.j&&g.TC(b.V())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.fg())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.hK(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Lsa(a.j);return b||a};
g.iK=function(a,b,c,d,e){g.fK.call(this,a);this.videoId=c;this.cO=e;this.D={};this.j=null;a=d||g.or(b).hl||"";a=a.split("_").join("-");this.B=pr(b,{hl:a})};
jK=function(a,b){g.G.call(this);this.I=a;this.C=b;this.TA={};this.j={};this.u=null;this.D=this.I.N("web_player_defer_modules");this.B=new Set;this.Zd=new Map};
g.kK=function(a){return a.Zd.get("captions")};
yBa=function(a,b){switch(b){case "ad":return lK(a);case "annotations_module":return b=a.I.V(),a=a.I.getVideoData(),a.kK||"3"===b.controlsType?!1:b.Z.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Ua||!!g.vE(a)||!!g.wE(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(),b.C||"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.I.getVideoData(),
a=!!a&&(!!g.gwa(a)||!!g.hwa(a))),a;case "embed":return g.rC(a.I.V());case "endscreen":return g.wBa(a);case "heartbeat":return a.bJ();case "inline_preview":return a.I.V().showInlinePreviewUi;case "kids":return JC(a.I.V());case "remote":return a.I.V().kb;case "miniplayer":return a.I.V().showMiniplayerUiWhenMinimized;case "music":return g.CC(a.I.V());case "offline":return a.I.V().Bg;case "captions":return b=a.I.getVideoData(),!!b.Kc||!!b.captionTracks.length||g.vBa(b,a.I);case "unplugged":return g.zC(a.I.V());
case "ux":return a.I.V().Gc;case "webgl":return xBa(a);case "ypc":return a.zz();case "ypc_clickwrap":return a=a.I.getVideoData(),a.cf&&!a.qJ;case "yto":return!!a.I.getVideoData().ra.includes("yto");default:return g.Iv(Error("Module descriptor "+b+" does not match")),!1}};
mK=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var k=a.Zd.get(b);if(!k||d)if(e||(e=function(){mK(a,b,c,d)}),f||(f=function(){a.I.mf(b)}),k=k||zBa(a,b,yBa(a,b),e,f))a.Zd.set(b,k),k.create(),c&&a.I.Oa("onApiChange")};
ABa=function(a){nK(a)&&a.EF();a.D&&(mK(a,"captions",!0),mK(a,"endscreen"),a.FF(),mK(a,"creatorendscreen",!0))};
nK=function(a){a=a.I.getVideoData();return a.N("web_player_defer_ad")&&!g.Sb(a.ra,"ad")};
g.wBa=function(a){var b=a.I.V();if($C(b)||b.D||!b.Kc&&!b.Pe)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.CJ=function(a){return a.Zd.get("webgl")};
xBa=function(a){var b=a.I.getVideoData();a=a.I.V();var c=g.gma(),d=a.N("enable_spherical_kabuki"),e=g.ZC(a);if(g.uE(b))return c||d||e||a.N("html5_enable_spherical");if(g.rE(b))return e||c||d||a.N("html5_enable_spherical");if(g.sE(b))return e||c||a.N("html5_enable_spherical3d");if(g.tE(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.kE(b)&&!c&&(a.N("enable_webgl_noop")||a.N("html5_enable_bicubicsharp"))};
BBa=function(a){a.I.V().N("web_player_ux_module_wait")&&a.Zd.get("ux")&&a.I.mf("ux")};
CBa=function(a){BBa(a);mK(a,"ux",!0)};
lK=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};
zBa=function(a,b,c,d,e){try{if(c){var f=aK.get(b);if(f)return new f(a.I);DBa(a,b,d,e)}else a.I.mf(b)}catch(k){a.I.mf(b),g.Iv(k)}return null};
oK=function(a,b,c){for(var d=g.r(a.Zd),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.aj(b))&&(g.nf(f),a.Zd.delete(e))}};
pK=function(a){return a.Zd.get("ad")};
qK=function(a){if(JC(a.I.V()))return a.Zd.get("kids")};
AJ=function(a){if(a.I.V().kb)return a.Zd.get("remote")};
g.rK=function(a){if(g.zC(a.I.V()))return a.Zd.get("unplugged")};
tJ=function(a){if(a.I.V().Gc)return a.Zd.get("ux")};
sK=function(a){if(a.I.V().Bg)return a.Zd.get("offline")};
g.tK=function(a){return a.Zd.get("annotations_module")};
uK=function(a){return a.Zd.get("creatorendscreen")};
FBa=function(a){var b=a.C.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){EBa(a,b,function(){var e,f;return g.B(function(k){if(1==k.j)return e=g.C.loadWasm,"function"!==typeof e?(d("noloadwasm"),k.Va(0)):g.A(k,e(),3);f=k.u;c(f);g.sa(k)})},function(){d("player wasm load failure")})})};
DBa=function(a,b,c,d){if(a.C){var e=GBa[b];EBa(a,a.C+e,function(){a.B.add(e);c.call(a)},d)}};
EBa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var k=g.Oh("SCRIPT"),l=!1,m,n=0;n<k.length;n++){var p=k[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.ci("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){pi(f);q&&q.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var z=new g.Is("Unable to load player module",b,document.location&&document.location.origin);g.Iv(z)}pi(e);t&&t(y)};
var v=m,x=v.onreadystatechange;v.onreadystatechange=function(y){switch(v.readyState){case "loaded":case "complete":pi(f)}x&&x(y)};
l&&((k=a.I.V().cspNonce)&&m.setAttribute("nonce",k),g.Vj(m,g.Lg(b)),k=g.Oh("HEAD")[0]||document.body,k.insertBefore(m,k.firstChild),g.pf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
vK=function(a,b,c){g.qf.call(this,b,a);this.j=c};
g.wK=function(a){XF.call(this);var b=this;this.j=a;this.D={};this.listener=function(c){b.dispatchEvent(new vK(b,c.type,c))}};
yK=function(a,b,c,d,e){g.iv.call(this);var f=this;this.target=a;this.KA=b;this.u=0;this.J=!1;this.C=new g.wh(NaN,NaN);this.j=new g.iA(this);this.va=this.B=this.K=null;g.H(this,this.j);b=d||e?4E3:3E3;this.Y=new g.L(function(){xK(f,1,!1)},b,this);
g.H(this,this.Y);this.Z=new g.L(function(){xK(f,2,!1)},b,this);
g.H(this,this.Z);this.ma=new g.L(function(){xK(f,512,!1)},b,this);
g.H(this,this.ma);this.ra=c&&0<c.pe.length?5E3:3E3;d||(this.B=this.j.T(a,"mouseover",this.kC),this.j.T(a,"mousemove",this.iX),this.j.T(a,"mouseleave",this.jX));Lm?this.j.T(a,"keypress",this.LW):this.j.T(a,"focusin",this.GV);this.D=this.j.T(a,"mousedown",this.WO);this.S=this.j.T(a,"touchstart",this.uR,void 0,!0);xK(this,640,!0)};
HBa=function(a){xK(a,4,!1);a.K&&(a.j.xc(a.K),a.K=null,a.B=a.j.T(a.target,"mouseover",a.kC));a.B&&(a.j.xc(a.B),a.B=a.j.T(a.target,"mouseover",a.kC))};
xK=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.Y.start(),b&2&&a.Z.start()):(a.u&=~b,b&1&&a.Y.stop(),b&2&&a.Z.stop(),b&512&&a.ma.stop());a.u&512&&!(a.u&128)&&g.zp(a.ma,a.ra);b=!a.u;d!==b&&a.ea("autohideupdate",b)};
g.zK=function(a){g.V.call(this,{G:"button",Ea:["ytp-large-play-button","ytp-button"],W:{"aria-label":"Play"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ha);a=this.api.V();g.xC(a)&&(a.isMobile||a.bk)&&this.api.N("embeds_web_enable_red_play_button_on_preview")&&g.M(this.element,"ytp-large-play-button-red-bg");this.Ha()};
g.AK=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().D&&b.push("ytp-exp-contain-thumbnail");g.V.call(this,{G:"div",Ea:b,U:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ca("ytp-cued-thumbnail-overlay");var c=new g.zK(a);g.H(this,c);c.Ba(b);this.B=new g.iA(this);g.H(this,this.B);this.api=a;this.D=this.Ca("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.JH(this,250);g.H(this,this.u);this.j=new g.L(this.Ha,0,this);g.H(this,this.j);this.Ha();this.T(a,"appresize",this.xb);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.p_);tC(a.V())&&this.T(a,"videoplayerreset",this.dT)};
IBa=function(a){var b=!a.V().Th&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.BK=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.YH(a))return g.vu(a),!0;b.pauseVideo();a=e.getAttribute("href");g.hI(a,d,!0);return!1};
g.CK=function(a,b,c){if(PC(b.V())&&2!==b.getPresentingPlayerType()){if(g.YH(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.vu(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.rC(b.V())&&(is()||gs()))b=c.target,b instanceof HTMLAnchorElement&&(a=Nfa(a),b.href=fda(a));else{var d=g.YH(c);d&&b.pauseVideo();g.hI(a,void 0,!0);d&&(g.iI(a),g.vu(c))}return!1};
JBa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!0,W:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}],L:"ytp-subtitles-button-icon"}};
DK=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"}]}]}]}};
EK=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
FK=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.Qg?g.KF("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.GK=function(a){g.V.call(this,{G:"div",Ea:["ytp-error"],W:{role:"alert"},U:[{G:"div",L:"ytp-error-content",U:[{G:"div",L:"ytp-error-icon-container",U:[{G:"svg",W:{fill:"#fff",viewBox:"0 0 48 48"},U:[{G:"path",W:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",W:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",L:"ytp-error-content-wrap",
U:[{G:"div",L:"ytp-error-content-wrap-reason",oa:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",oa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.HK=function(a){a=a.split(KBa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",W:{href:a[c],target:a[c+1]},oa:a[c+2]})}return{G:"span",U:b}};
JK=function(a,b,c,d,e,f,k){d=void 0===d?!1:d;e=void 0===e?!1:e;k=void 0===k?!0:k;e||(e=a.api.V().j);a=a.api.getVideoData();b=g.KF(g.IK[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",oa:f});d.push(b[0]);k&&d.push({G:"br"});d.push({G:"a",W:{href:c,target:e?"_blank":null},oa:b[2]});d.push(b[4]);return{G:"span",U:d}};
LBa=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)}};
MBa=function(a){for(var b=0;b<a.keys.length;b++)a.xc(a.keys[b]);a.keys=[]};
KK=function(a){g.iA.call(this);this.I=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.dh);this.onVideoDataChange()};
LK=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
NBa=function(a){LK(a,"play",function(){a.I.playVideo()});
LK(a,"pause",function(){a.I.pauseVideo()});
LK(a,"seekbackward",function(){a.I.seekBy(-5*a.I.getPlaybackRate())});
LK(a,"seekforward",function(){a.I.seekBy(5*a.I.getPlaybackRate())})};
OBa=function(a){var b,c;a=a.I.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
PBa=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.Gw(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
QBa=function(a){var b=a.I.yb();b=b.isCued()||b.isError()?"none":g.gG(b)?"playing":"paused";a.mediaSession.playbackState=b};
MK=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.B=!1;this.Yd=this.j=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.UC(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",oa:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",oa:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.V({G:"div",Ea:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.C=new g.JH(this.u,250,!1,100);g.H(this,this.u);this.u.Ba(this.element);g.H(this,this.C);this.I.Qh(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Yc)};
SBa=function(a,b){var c=ewa(b),d=lE(b);b.cf&&a.I.gm()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Bp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&RBa(a,d,c,b)):c&&d&&RBa(a,d,c,b))};
RBa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.L(a.Gb,b,a);g.H(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var k;f=null==b?void 0:null==(k=b.icon)?void 0:k.iconType;var l;k=null==e?void 0:null==(l=e.urlEndpoint)?void 0:l.url;a.I.al(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=k?k:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",W:{fill:"none",height:"100%",
viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:k?g.dH():null})};
TBa=function(a,b){a.j&&(g.U(b,8)&&a.B?(a.B=!1,a.yd(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
NK=function(a){g.V.call(this,{G:"div",L:"ytp-spinner",U:[DK(),{G:"div",L:"ytp-spinner-message",oa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ca("ytp-spinner-message");this.j=new g.L(this.show,500,this);g.H(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.yb();UBa(a)?this.j.start():this.hide()};
UBa=function(a){return g.U(a,128)?!1:g.U(a,16)||g.U(a,1)?!0:!1};
g.OK=function(a,b,c,d){d=void 0===d?!1:d;g.ZG.call(this,b);var e=this;this.I=a;this.Aa=d;this.K=new g.iA(this);this.Y=new g.JH(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())});
g.H(this,this.K);g.H(this,this.Y)};
VBa=function(a){a.u&&(document.activeElement&&g.ii(a.element,document.activeElement)&&(li(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.hv(a.K);a.S=void 0};
PK=function(a,b,c){a.Xg()?a.Gb():a.yd(b,c)};
QK=function(a){var b=g.VA(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ea:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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",Ea:["ytp-unmute-text"],oa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ea:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.OK.call(this,a,{G:"button",Ea:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.Ab(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",
this.dh);this.Ma("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.rC(this.api.V());g.YG(this,a);a&&WBa(this);this.B=a};
WBa=function(a){a.j||(a.j=!0,a.api.Wa(a.element,!0))};
g.SK=function(a){g.iA.call(this);var b=this;this.api=a;this.wH=!1;this.mm=null;this.SA=!1;this.sf=null;this.CF=this.sD=!1;this.CJ=this.EJ=null;this.zO=NaN;this.BJ=this.tx=!1;this.Gy=0;this.UE=[];var c=a.V(),d=a.Ya();this.nM=new g.L(this.JH,0,this);g.H(this,this.nM);g.CC(c)||(this.hn=new g.AK(a),g.H(this,this.hn),g.EJ(a,this.hn.element,4));if(XBa(this)){var e=new NK(a);g.H(this,e);e=e.element;g.EJ(a,e,4)}var f=a.getVideoData();this.Xd=new yK(d,function(l){return b.KA(l)},f,c.cf,WC(c));
g.H(this,this.Xd);this.Xd.subscribe("autohideupdate",this.Rk,this);if(!c.disablePaidContentOverlay){var k=new MK(a);g.H(this,k);g.EJ(a,k.element,4)}this.wD=new QK(a);g.H(this,this.wD);g.EJ(this.api,this.wD.element,2);this.KG=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.oD=new g.L(this.Pv,200,this);g.H(this,this.oD);this.iH=f.videoId;this.GQ=new g.L(function(){b.Gy=0},350);
g.H(this,this.GQ);this.VA=new g.L(function(){b.BJ||RK(b)},350,this);
g.H(this,this.VA);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.M(f,"ytp-color-white")}g.CC(c)&&g.M(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new KK(a),g.H(this,f));this.T(a,"appresize",this.xb);this.T(a,"presentingplayerstatechange",this.dh);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.XY);this.T(a,"autonavvisibility",
function(){b.Ao()});
this.T(a,"sizestylechange",function(){b.Ao()});
this.T(d,"click",this.uZ,this);this.T(d,"dblclick",this.vZ,this);c.gb&&(this.T(d,"gesturechange",this.wZ,this),this.T(d,"gestureend",this.xZ,this));this.Pp=[d.kx];this.hn&&this.Pp.push(this.hn.element);e&&this.Pp.push(e)};
TK=function(a,b){if(!b)return!1;var c=a.api.Ld();if(c.Cq()&&(c=c.nf())&&g.ii(c,b))return c.controls;for(c=0;c<a.Pp.length;c++)if(g.ii(a.Pp[c],b))return!1;return g.Fp(b,"ytp-player-content")||g.Fp(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
YBa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.Ya().FB||!1)&&a.api.V().isMobile&&UK&&11<=FE;a=a.api.V().J&&UK;return!(!b&&!a)};
VK=function(a,b){return!TK(a,ru(b))&&g.YH(b)};
RK=function(a){a.Xd.Fm();if(a.sD&&a.CF)a.CF=!1;else if(!a.api.V().Aa&&!a.Tl()){var b=a.api.yb();g.U(b,2)&&g.yJ(a.api)||a.Js(b);if(!a.api.V().gb||b.isCued()||g.U(b,1024)){var c=a.api.hD();g.Ds("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.U(b,1024);c&&(b.isCued()||d)?(g.Ds("embedsRequestStorageAccessState",{isCued:b.isCued(),Lia:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Ds("embedsRequestStorageAccessFailedState",{state:b.state}),a.Pv())}else a.oD.isActive()?
(a.GB(),a.oD.stop()):a.oD.start()}};
ZBa=function(a,b){return g.YH(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.Pv(),!0):!1};
$Ba=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
XBa=function(a){a=Zr()&&67<=cma()&&!a.api.V().J;return!Yr("tizen")&&!oC&&!a&&!0};
WK=function(a,b){b=void 0===b?2:b;g.iv.call(this);this.api=a;this.j=null;this.Qc=new fv(this);g.H(this,this.Qc);this.u=Mza;this.Qc.T(this.api,"presentingplayerstatechange",this.Yc);this.j=this.Qc.T(this.api,"progresssync",this.Tb);this.jl=b;1===this.jl&&this.Tb()};
XK=function(a){g.V.call(this,{G:"button",Ea:["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",Mb:!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.YG(this,a.V().showBackButton);this.Ma("click",this.onClick)};
g.YK=function(a){g.V.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",oa:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,500,this);g.H(this,this.u);g.H(this,this.j);this.hide()};
$K=function(a,b,c){if(0>=b){c=mH();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",Mb:!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",Mb:!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";ZK(a,c,b,d+"%")};
aCa=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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",Mb:!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.KF("Speed is $RATE",{RATE:String(c)});ZK(a,b,d,c+"x")};
bCa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";ZK(a,JBa(),b)};
ZK=function(a,b,c,d){d=void 0===d?"":d;a.Ka("label",void 0===c?"":c);WC(a.I.V())?a.Ka("icon",null):a.Ka("icon",b);g.Bp(a.j);a.u.start();a.Ka("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)};
bL=function(a,b,c){g.V.call(this,{G:"button",Ea:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.rC(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")?kza():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{G:"div",L:"ytp-cards-button-title",oa:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
L:"ytp-cards-button-title",oa:"Shopping"}]}]});this.I=a;this.B=b;this.C=c;this.j=null;this.u=new g.JH(this,250,!0,100);g.H(this,this.u);g.O(this.C,"ytp-show-cards-title",g.rC(a.V()));this.hide();this.Ma("click",this.onClicked);this.Ma("mouseover",this.uY);aL(this,!0)};
aL=function(a,b){b?a.j=g.cL(a.B.pc(),a.element):(a.j=a.j,a.j(),a.j=null)};
dL=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:[kza()]},{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.eH()]}]:[{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I=a;this.Y=
b;this.kh=c;this.C=new g.JH(this,250,!1,250);this.j=null;this.K=new g.L(this.IY,300,this);this.J=new g.L(this.HY,2E3,this);this.D=[];this.u=null;this.S=new g.L(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.H(this,this.C);g.H(this,this.K);g.H(this,this.J);g.H(this,this.S);a.V().N("player_new_info_card_format")?(g.M(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ca("ytp-cards-teaser-close-button"),"click",this.Dj),this.T(this.Ca("ytp-cards-teaser-info-icon"),"click",this.rJ),this.T(this.Ca("ytp-cards-teaser-label"),"click",this.rJ)):this.Ma("click",this.rJ);this.T(c.element,"mouseover",this.LK);this.T(c.element,"mouseout",this.KK);this.T(a,"cardsteasershow",
this.UZ);this.T(a,"cardsteaserhide",this.Gb);this.T(a,"cardstatechange",this.GR);this.T(a,"presentingplayerstatechange",this.GR);this.T(a,"appresize",this.QJ);this.T(a,"onShowControls",this.QJ);this.T(a,"onHideControls",this.dV);this.Ma("mouseenter",this.fT)};
fL=function(a){g.V.call(this,{G:"button",Ea:[eL.BUTTON,eL.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:eL.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.iH()]},{G:"div",L:eL.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.j=!1;a.Ab(this.element,this,36927);this.Ma("click",this.onClick,this);this.Ka("pressed",!1);this.Ka("label","Get notified about every new video")};
cCa=function(a,b){a.j=b;a.element.classList.toggle(eL.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.LE:c.JE)?(a=a.api.Wl())?wI(a,b):g.hr(Error("No innertube service available when updating notification preferences.")):g.hr(Error("No update preferences command available.")):g.hr(Error("No video data when updating notification preferences."))};
g.hL=function(a,b,c,d,e,f,k,l,m,n,p,q,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var v=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.xC(v)||g.BC(v))c.target=v.K;g.V.call(this,{G:"div",Ea:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",oa:b}:""]}]});f&&g.M(this.element,
"ytp-sb-classic");this.channelId=k;this.j=t}else{p=v.userDisplayName&&g.xC(v)&&!v.N("subscribe_tooltipkillswitch");g.V.call(this,{G:"div",Ea:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.KF("Subscribe as $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":aD(v),"data-tooltip-opaque":String(g.rC(v)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?
{G:"div",L:"ytp-sb-count",oa:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.KF("Subscribed as $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":aD(v),"data-tooltip-opaque":String(g.rC(v)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",oa:d}:""]}]});var x=this;this.channelId=k;this.j=t;var y=this.Ca("ytp-sb-subscribe"),z=this.Ca("ytp-sb-unsubscribe");
f&&g.M(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var E=function(){var I=x.channelId;if(m||n){var N={c:I};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))N="";else{var Z;g.KI.isInitialized()&&(Z=vAa(N));N=Z||""}if(Z=q.getVideoData())if(Z=Z.subscribeCommand){var K=q.Wl();K?(wI(K,Z,{botguardResponse:N,feature:m}),q.Oa("SUBSCRIBE",I)):g.hr(Error("No innertube service available when updating subscriptions."))}else g.hr(Error("No subscribe command in videoData."));else g.hr(Error("No video data available when updating subscription."))}z.focus();
z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},J=function(){var I=x.channelId;
if(m||n){var N=q.getVideoData();wI(q.Wl(),N.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",I)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
this.T(y,"click",E);this.T(z,"click",J);this.T(y,"keypress",function(I){13===I.keyCode&&E(I)});
this.T(z,"keypress",function(I){13===I.keyCode&&J(I)});
this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.pc(),gL(this.tooltip),g.pf(this,g.cL(this.tooltip,y)),g.pf(this,g.cL(this.tooltip,z)))}else g.M(y,"ytp-sb-disabled"),g.M(z,"ytp-sb-disabled")}};
iL=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().K,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",oa:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().K,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",oa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Ca("ytp-title-channel");this.j=this.Ca("ytp-title-channel-logo");this.C=this.Ca("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.rC(this.api.V());a.Ab(this.j,this,36925);this.D&&dCa(this);this.T(a,"videodatachange",this.Ha);this.T(a,"videoplayerreset",this.Ha);this.Ha();g.rC(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.M(this.element,"ytp-flyout-fix-experiment")};
dCa=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.Ee){var d=b.authUser?null:Tza(),e=new g.hL("Subscribe",null,"Subscribed",null,!0,!1,c.Zj,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.H(a,e);e.Ba(a.C);a.api.Ab(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.ub(e.element)});
var f=new fL(a.api);a.u=f;g.H(a,f);f.Ba(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Ui&&f.show()});
a.T(a.api,"UNSUBSCRIBE",function(){c.Ui&&(f.hide(),cCa(f,!1))})}a.Ka("flyoutUnfocusable","true");
a.Ka("channelTitleFocusable","-1");b.isMobile?a.T(a.j,"click",function(k){eCa(a)&&(k.preventDefault(),a.isExpanded()?a.wF():a.UF());a.api.ub(a.j)}):(a.T(a.channel,"mouseenter",a.UF),a.T(a.channel,"mouseleave",a.wF),a.T(a.channel,"focusin",a.UF),a.T(a.channel,"focusout",function(k){a.channel.contains(k.relatedTarget)||a.wF()}),a.T(a.j,"click",function(){a.api.ub(a.j)}));
a.B=new g.L(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Wa(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Wa(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.H(a,a.B);a.T(a.channel,fCa,function(){gCa(a)});
a.T(a.api,"onHideControls",a.HI);a.T(a.api,"appresize",a.HI);a.T(a.api,"fullscreentoggled",a.HI)};
gCa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
eCa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
hCa=function(a,b){var c={};a.api.V().ra&&g.RI(c,a.api.V().loaderUrl);return g.sj(b,g.QI(c,"emb_ch_name_ex"))};
g.jL=function(a,b,c,d){g.ZG.call(this,a);this.priority=b;c&&this.qg(c);d&&this.Od(d)};
g.kL=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",Ea:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",oa:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",oa:"{{label}}"},{G:"div",L:"ytp-menuitem-content",oa:"{{content}}"}]}};
lL=function(a,b){a.Ka("icon",b)};
mL=function(a,b,c,d,e,f){var k={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={G:"div",L:"ytp-panel-header",U:[{G:"div",Ea:["ytp-panel-back-button-container"],U:[{W:{"aria-label":"Back to previous menu"},G:"button",Ea:["ytp-button",l]}]},{W:{tabindex:"0"},G:"span",Ea:[m],U:[c]}]};if(e){var p="ytp-panel-options";n.U.push({G:"button",Ea:["ytp-button",p],U:[d]})}k.U=[n]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,k.U?k.U.push(f):k.U=[f]);g.ZG.call(this,
k);this.content=b;d&&k.U?b.Ba(this.element,k.U.length-1):b.Ba(this.element);this.VN=!1;this.rW=d;c&&(c=this.Ca(l),m=this.Ca(m),this.T(c,"click",this.mP),this.T(m,"click",this.mP),this.VN=!0,e&&(p=this.Ca(p),this.T(p,"click",e)));b.subscribe("size-change",this.sP,this);this.T(a,"fullscreentoggled",this.sP);g.O(this.element,"ytp-panel-min-width-killswitch",a.V().N("player_panel_min_width_killswitch"));this.I=a};
iCa=function(a,b){var c=new g.ZG({G:"div",L:"ytp-multi-item-panel"});a.content.Ba(c.element);b.Ba(c.element);a.content=c;c.Ba(a.element);g.H(a,c)};
g.nL=function(a,b,c,d,e,f){b=void 0===b?null:b;var k={role:"menu"};b&&(k.id=b);b=new g.ZG({G:"div",L:"ytp-panel-menu",W:k});mL.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.oL=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.aI,a);a.items=[];g.ei(a.menuItems.element);a.menuItems.ea("size-change")};
jCa=function(a,b){return b.priority-a.priority};
pL=function(a){var b=g.kL({"aria-haspopup":"true"});g.jL.call(this,b,a);this.Ma("keydown",this.j)};
qL=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
rL=function(a,b){g.jL.call(this,g.kL({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ma("click",this.onClick)};
sL=function(a,b){g.V.call(this,{G:"div",L:"ytp-user-info-panel",W:{"aria-label":"User info"},U:a.V().authUser&&!a.N("embeds_web_always_enable_signed_out_state")?[{G:"div",L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},oa:"{{watchingAsUsername}}"},{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},oa:"{{watchingAsEmail}}"}]}]:[{G:"div",
L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",U:[{G:"text",W:{tabIndex:"{{userInfoFocusable}}"},oa:"Signed out"}]},{G:"div",L:"ytp-user-info-panel-login",U:[{G:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},oa:a.V().Ee?"":"Sign in on YouTube"}]}]}]});this.Ra=a;this.j=b;a.V().authUser||a.V().Ee||(a=this.Ca("ytp-user-info-panel-login"),this.T(a,"click",this.hT));this.T(window,"blur",this.hide);this.T(document,"click",this.gT);this.Ha()};
tL=function(a,b,c,d){g.nL.call(this,a);this.qb=c;this.Cc=d;this.getVideoUrl=new pL(6);this.Fk=new pL(5);this.Bk=new pL(4);this.Pb=new pL(3);this.oz=new g.jL(g.kL({href:"{{href}}",target:this.I.V().K},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.jL(g.kL(),1,"Stats for nerds");this.ju=new g.ZG({G:"div",Ea:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},oa:"{{text}}"});this.LM=new mL(this.I,this.ju);this.Pz=this.Fp=null;g.rC(this.I.V())&&this.I.N("embeds_web_enable_user_info_in_context_menu")&&
(this.Tj=new g.jL(g.kL(),8,"User info"),g.H(this,this.Tj),this.Bc(this.Tj,!0),this.Tj.Ma("click",this.HZ,this),a.Ab(this.Tj.element,this.Tj,137682));this.I.V().hk&&(this.Aj=new rL("Loop",7),g.H(this,this.Aj),this.Bc(this.Aj,!0),this.Aj.Ma("click",this.BY,this),a.Ab(this.Aj.element,this.Aj,28661));g.H(this,this.getVideoUrl);this.Bc(this.getVideoUrl,!0);this.getVideoUrl.Ma("click",this.rY,this);a.Ab(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.Fk);this.Bc(this.Fk,!0);this.Fk.Ma("click",
this.sY,this);a.Ab(this.Fk.element,this.Fk,28660);g.H(this,this.Bk);this.Bc(this.Bk,!0);this.Bk.Ma("click",this.qY,this);a.Ab(this.Bk.element,this.Bk,28658);g.H(this,this.Pb);this.Bc(this.Pb,!0);this.Pb.Ma("click",this.pY,this);g.H(this,this.oz);this.Bc(this.oz,!0);this.oz.Ma("click",this.qZ,this);g.H(this,this.showVideoInfo);this.Bc(this.showVideoInfo,!0);this.showVideoInfo.Ma("click",this.IZ,this);g.H(this,this.ju);this.ju.Ma("click",this.dY,this);g.H(this,this.LM);b=document.queryCommandSupported&&
document.queryCommandSupported("copy");43<=Fb("Chromium")&&(b=!0);40>=Fb("Firefox")&&(b=!1);b&&(this.Fp=new g.V({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.H(this,this.Fp),this.Fp.Ba(this.element));var e;null==(e=this.Tj)||lL(e,nza());var f;null==(f=this.Aj)||lL(f,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});lL(this.Pb,{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"}}]});lL(this.oz,{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"}}]});lL(this.showVideoInfo,jza());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);kCa(this);lCa(this,this.I.getVideoData())};
vL=function(a,b){var c=!1;if(a.Fp){var d=a.Fp.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.qb.Gb():(a.ju.Od(b,"text"),g.uL(a.qb,a.LM),EK(a.ju.element),a.Fp&&(a.Fp=null,kCa(a)));return c};
lCa=function(a,b){var c=a.I.V(),d=2===a.I.getPresentingPlayerType(),e=!d||b.isListed;e=!c.S&&!!b.videoId&&e;"play"!==c.playerStyle?c="https://web.archive.org/web/20220414023957/https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(c.fmt=b.u.Yb()),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.Ga&&(c.partnerid=b.Ga),c=g.sj("//web.archive.org/web/20220414023957/https://support.google.com/googleplay/",c));g.YG(a.Bk,e&&b.allowEmbed);g.YG(a.getVideoUrl,e);g.YG(a.Fk,e&&!b.isLivePlayback);
a.oz.Od(c,"href");var f;null==(f=a.Aj)||g.YG(f,!b.isLivePlayback&&!d);var k;null==(k=a.Tj)||g.YG(k,!d)};
kCa=function(a){var b=!!a.Fp;a.Pb.qg(b?"Copy debug info":"Get debug info");qL(a.Pb,!b);a.Bk.qg(b?"Copy embed code":"Get embed code");qL(a.Bk,!b);a.getVideoUrl.qg(b?"Copy video URL":"Get video URL");qL(a.getVideoUrl,!b);a.Fk.qg(b?"Copy video URL at current time":"Get video URL at current time");qL(a.Fk,!b);lL(a.Bk,b?hza():null);lL(a.getVideoUrl,b?gH():null);lL(a.Fk,b?gH():null)};
g.wL=function(a,b){g.OK.call(this,a,{G:"div",Ea:["ytp-popup",b||""]},100,!0);this.j=[];this.J=this.C=null;this.mA=this.maxWidth=0;this.size=new g.yh(0,0);this.Ma("keydown",this.iT)};
mCa=function(a){var b=a.j[a.j.length-1];if(b){g.Um(a.element,a.maxWidth||"100%",a.mA||"100%");b.I.V().N("player_panel_min_width_killswitch")&&g.Km(b.element,"minWidth","250px");g.Km(b.element,"width","");g.Km(b.element,"height","");g.Km(b.element,"maxWidth","100%");g.Km(b.element,"maxHeight","100%");g.Km(b.content.element,"height","");var c=g.Vm(b.element);c.width+=1;c.height+=1;g.Km(b.element,"width",c.width+"px");g.Km(b.element,"height",c.height+"px");g.Km(b.element,"maxWidth","");g.Km(b.element,
"maxHeight","");var d=0;b.VN&&(d=b.Ca("ytp-panel-header"),d=g.Vm(d).height);var e=0;b.rW&&(e=b.Ca("ytp-panel-footer"),g.Km(e,"width",c.width+"px"),e=g.Vm(e).height);g.Km(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.Km(b.element,"width",c.width+"px")));a.size=c}};
g.uL=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);xL(a,c,b)};
g.yL=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];xL(a,b,c,!0)}};
xL=function(a,b,c,d){nCa(a);b&&(b.unsubscribe("size-change",a.Vv,a),b.unsubscribe("back",a.Ai,a));c.subscribe("size-change",a.Vv,a);c.subscribe("back",a.Ai,a);if(a.sb){g.M(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;mCa(a);g.Um(a.element,e);a.C=new g.L(function(){oCa(a,b,c,d)},20,a);
a.C.start()}else c.Ba(a.element),b&&b.detach()};
oCa=function(a,b,c,d){a.C.dispose();a.C=null;g.M(a.element,"ytp-popup-animating");d?(g.M(b.element,"ytp-panel-animate-forward"),g.Hp(c.element,"ytp-panel-animate-back")):(g.M(b.element,"ytp-panel-animate-back"),g.Hp(c.element,"ytp-panel-animate-forward"));g.Um(a.element,a.size);a.J=new g.L(function(){g.Hp(a.element,"ytp-popup-animating");b.detach();g.Ip(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a);
a.J.start()};
nCa=function(a){a.C&&g.Ap(a.C);a.J&&g.Ap(a.J)};
g.zL=function(a,b,c){g.wL.call(this,a);this.va=b;this.Cc=c;this.B=new g.iA(this);this.Z=new g.L(this.ZZ,1E3,this);this.ma=this.D=null;g.H(this,this.B);g.H(this,this.Z);a.Ab(this.element,this,28656);g.M(this.element,"ytp-contextmenu");pCa(this);this.hide()};
pCa=function(a){g.hv(a.B);if("gvn"!==a.I.V().playerStyle){var b=a.I.Ya();a.B.T(b,"contextmenu",a.aY);a.B.T(b,"touchstart",a.kT,null,!0);a.B.T(b,"touchmove",a.UP,null,!0);a.B.T(b,"touchend",a.UP,null,!0)}};
qCa=function(a){a.I.isFullscreen()?g.EJ(a.I,a.element,10):a.Ba(document.body)};
g.AL=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{G:"button",Ea:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.rC(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",oa:"{{icon}}"},{G:"div",L:"ytp-copylink-title",oa:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.pc();b=a.V();gL(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.rC(b)&&!g.CC(b));a.Ab(this.element,this,86570);this.Ma("click",
this.onClick);this.T(a,"videodatachange",this.Ha);this.T(a,"videoplayerreset",this.Ha);this.T(a,"appresize",this.Ha);this.Ha();g.pf(this,g.cL(this.tooltip,this.element))};
rCa=function(a){a.Ka("icon",bH());if(a.api.V().isMobile)BL(a.tooltip,a.element,"Link copied to clipboard");else{a.Ka("title-attr","Link copied to clipboard");CL(a.tooltip);BL(a.tooltip,a.element);var b=a.Ma("mouseleave",function(){a.xc(b);a.Ha();a.tooltip.wk()})}};
sCa=function(a,b){return g.B(function(c){if(1==c.j)return g.ta(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.va(c);var d=c.return,e=!1,f=g.ci("TEXTAREA");f.value=b;f.setAttribute("readonly","");var k=a.api.getRootNode();k.appendChild(f);if(fs){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}k.removeChild(f);
return d.call(c,e)})};
DL=function(){g.V.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ea:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",oa:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,700,this);
g.H(this,this.u);g.H(this,this.j);this.hide()};
EL=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",oa:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.L(this.show,10,this);this.u=new g.L(this.hide,700,this);this.j=this.Ca("ytp-doubletap-static-circle");g.H(this,this.B);g.H(this,this.u);this.hide();this.C=this.Ca("ytp-doubletap-fast-forward-ve");this.D=this.Ca("ytp-doubletap-rewind-ve");this.I.Ab(this.C,this,28240);this.I.Ab(this.D,this,28239);this.I.Wa(this.C,!0);this.I.Wa(this.D,
!0)};
tCa=function(a,b){b=g.KF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ka("seekTime",b)};
FL=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
GL=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};
uCa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
vCa=function(a,b){b=GL(a,b)+1;return b<a.length?b:-1};
wCa=function(a,b){return GL(a,b)-1};
xCa=function(a,b){return new g.Jw(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.IL=function(a,b,c,d,e,f,k){g.iA.call(this);var l=this;this.api=a;this.contextMenu=c;this.Xd=d;this.Cc=e;this.j=f;this.C=k;this.B=new g.L(function(){yCa(l,!1)},1E3);
this.u="";g.H(this,this.B);this.T(b,"mousedown",function(){HL(l,!1)});
this.T(c.element,"mousedown",function(){HL(l,!1)});
this.T(b,"keydown",this.ON);this.T(c.element,"keydown",this.ON);this.T(b,"keyup",this.PN);this.T(c.element,"keyup",this.PN)};
HL=function(a,b){g.O(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.O(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
KL=function(a,b,c,d){var e=g.kK(a.api.ob());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var k=0;k<g.JL.length;k++){var l=g.JL[k];if(l.option===b){e=l.options;break}}k=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(k=l);if(d)if(c){if(0===k)return}else if(k===e.length-1)return;d={};d[b]=e[(k+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);yCa(a,!0);a.B.start()}};
zCa=function(a,b){a.api.Rf();if(g.U(a.api.yb(),4)){var c=a.api.getVideoData().u;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
yCa=function(a,b){g.kK(a.api.ob())&&a.api.setOption("captions","sampleSubtitles",b)};
LL=function(a,b,c){g.V.call(this,{G:"button",Ea:["ytp-button","ytp-overflow-button"],W:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},U:[{G:"div",L:"ytp-overflow-icon",U:[{G:"svg",W:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{G:"path",W:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.I=a;this.j=b;this.visible=!1;this.tooltip=this.j.pc();
a.Ab(this.element,this,16499);this.T(a,"appresize",this.Ha);this.T(a,"fullscreentoggled",this.Ha);this.T(a,"presentingplayerstatechange",this.Ha);this.Ha();g.pf(this,g.cL(this.tooltip,this.element));this.Ma("click",function(){a.ub(d.element);PK(c,d.element,!1)});
this.T(c.closeButton,"click",function(){d.focus()})};
ML=function(a,b){g.OK.call(this,a,{G:"div",L:"ytp-overflow-panel",W:{id:UG(),role:"dialog"},U:[{G:"div",L:"ytp-overflow-panel-content",U:[{G:"div",L:"ytp-overflow-panel-action-buttons",oa:"{{buttons}}"}]},{G:"button",Ea:["ytp-overflow-panel-close","ytp-button"],W:{title:"Close"},U:[g.eH()]}]},250);this.actionButtons=[];this.tooltip=b.pc();this.j=this.Ca("ytp-overflow-panel-content");this.closeButton=this.Ca("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Gb);g.pf(this,g.cL(this.tooltip,
this.closeButton));this.Ma("click",this.lT);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
NL=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ka("buttons",a.actionButtons))};
ACa=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.jc(b)};
OL=function(a,b,c){var d=g.YJ(b,c),e=a.V(),f=d.zf("default.jpg");g.V.call(this,{G:"a",Ea:["ytp-video-menu-item","ytp-button"],W:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},U:[{G:"div",L:"ytp-video-menu-item-index",oa:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",oa:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",W:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",oa:d.title},{G:"div",
L:"ytp-video-menu-item-author",oa:d.author}]});this.api=a;this.index=c;this.Ma("click",this.onClick)};
PL=function(a){g.OK.call(this,a,{G:"div",L:"ytp-playlist-menu",W:{role:"dialog",id:UG()},U:[{G:"div",L:"ytp-playlist-menu-header",U:[{G:"div",L:"ytp-playlist-menu-title",U:[a.V().C?{G:"span",L:"ytp-playlist-menu-title-name",oa:"{{title}}"}:{G:"a",L:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},oa:"{{title}}"},{G:"button",Ea:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.eH()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",oa:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",
W:{role:"menu"}}]},250);this.api=a;this.selected=this.C=this.playlist=null;this.items=this.Ca("ytp-playlist-menu-items");this.B=new g.iA(this);this.j=[];var b=this.Ca("ytp-playlist-menu-close");this.T(b,"click",this.Gb);b=this.Ca("ytp-playlist-menu-title-name");a.V().C||this.T(b,"click",this.YZ);g.H(this,this.B);this.hide()};
QL=function(a,b,c){g.V.call(this,{G:"button",Ea:["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",Mb:!0,W:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",oa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.pc();a.Ab(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ha);this.T(a,"appresize",this.Ha);this.hide();this.j();g.pf(this,g.cL(this.tooltip,this.element));this.Ma("click",function(){a.ub(d.element);PK(c,d.element,!1)})};
RL=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",oa:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",oa:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",U:[{G:"div",L:"ytp-promotooltip-dismiss-button",oa:"{{dismissButtonText}}",W:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",oa:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.K=b;this.I=c;this.j=this.B=null;this.title=this.Ca("ytp-promotooltip-title");this.details=this.Ca("ytp-promotooltip-details");this.acceptButton=this.Ca("ytp-promotooltip-accept-button");this.dismissButton=this.Ca("ytp-promotooltip-dismiss-button");this.J=this.D=this.u=this.C=!1;g.YG(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.I.Qh(this.element,this,!0),this.I.al(this.element,a);this.T(c,"onShowControls",
this.lE);this.T(c,"onHideControls",this.cY);this.T(c,"resize",this.xb);this.T(this.acceptButton,"click",this.rX);this.T(this.dismissButton,"click",this.iY);this.T(document,"click",this.mT)};
BCa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
SL=function(a){g.YG(a,!1);a.u&&a.I.Wa(a.element,a.sb)};
TL=function(a,b){var c=a.tooltipRenderer.promoConfig;if(c){switch(b){case 0:var d;if(null==(d=c.impressionEndpoints)?0:d.length)var e=c.impressionEndpoints[0];break;case 1:e=c.acceptCommand;break;case 2:e=c.dismissCommand}var f,k;if(null==(f=e)?0:null==(k=f.feedbackEndpoint)?0:k.feedbackToken)b={feedbackTokens:[e.feedbackEndpoint.feedbackToken]},a=a.I.Wl(),(null==a?0:Xza(e,a.C))&&wI(a,e,b)}};
CCa=function(a){var b,c,d,e,f,k=(null==(b=a.acceptButton)?void 0:null==(c=b.buttonRenderer)?void 0:null==(d=c.text)?void 0:null==(e=d.runs)?void 0:e.length)&&!(null==(f=a.acceptButton)||!f.buttonRenderer.text.runs[0].text),l,m,n,p,q;b=(null==(l=a.dismissButton)?void 0:null==(m=l.buttonRenderer)?void 0:null==(n=m.text)?void 0:null==(p=n.runs)?void 0:p.length)&&!(null==(q=a.dismissButton)||!q.buttonRenderer.text.runs[0].text);return k||b};
UL=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-replay-button","ytp-button"],W:{title:"Replay"},U:[g.kH()]});this.I=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Ma("click",this.onClick,this);a=a.yb();g.YG(this,g.U(a,2));g.cL(b.pc(),this.element)};
g.VL=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{G:"button",Ea:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.rC(a.V()))},U:[{G:"div",L:"ytp-share-icon",oa:"{{icon}}"},{G:"div",L:"ytp-share-title",oa:"Share"}]});this.api=a;this.j=b;this.B=c;this.u=d;this.visible=!1;this.tooltip=this.j.pc();b=a.V();a.Ab(this.element,this,28664);this.Ma("click",this.onClick);this.T(a,"videodatachange",this.Ha);this.T(a,"videoplayerreset",
this.Ha);this.T(a,"appresize",this.Ha);this.T(a,"presentingplayerstatechange",this.Ha);this.Ha();g.O(this.element,"ytp-show-share-title",g.rC(b)&&!g.CC(b));g.pf(this,g.cL(this.tooltip,this.element))};
DCa=function(a){"InvalidStateError"!==a.name&&g.Iv(a)};
g.WL=function(a,b){var c=UG(),d=a.V();c={G:"div",L:"ytp-share-panel",W:{id:UG(),role:"dialog","aria-labelledby":c},U:[{G:"div",L:"ytp-share-panel-inner-content",U:[{G:"div",L:"ytp-share-panel-title",W:{id:c},oa:"Share"},{G:"a",Ea:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.K,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},oa:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",U:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",W:{type:"checkbox",
checked:!0}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",U:[DK()]},{G:"div",L:"ytp-share-panel-service-buttons",oa:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",oa:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Ea:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},U:[g.eH()]}]};g.OK.call(this,a,c,250);this.api=a;this.tooltip=b.pc();this.j=[];this.D=this.Ca("ytp-share-panel-inner-content");this.closeButton=this.Ca("ytp-share-panel-close");
this.T(this.closeButton,"click",this.Gb);g.pf(this,g.cL(this.tooltip,this.closeButton));this.C=this.Ca("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Ha);this.B=this.Ca("ytp-share-panel-link");g.pf(this,g.cL(this.tooltip,this.B));this.Ma("click",this.nT);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.SW);this.hide()};
FCa=function(a,b){ECa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Do:e.Do},f++){e.Do=c[f];a:switch(e.Do.img||e.Do.iconId){case "facebook":var k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:k=null}k&&(k=new g.V({G:"a",Ea:["ytp-share-panel-service-button","ytp-button"],W:{href:e.Do.url,target:"_blank",title:e.Do.sname||e.Do.serviceName},U:[k]}),k.Ma("click",function(m){return function(n){if(g.YH(n)){var p=m.Do.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var t=q;t||(t={});q=window;var v=p instanceof g.Ng?p:g.Sg("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.crossOriginIsolated,
y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var z="unsafe-url"===y;y=t.noreferrer;if(x&&y){if(z)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");y=!1}p=t.target||p.target;x=[];for(var E in t)switch(E){case "width":case "height":case "top":case "left":x.push(E+"="+t[E]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(E+"="+(t[E]?1:0))}E=x.join(",");Jb()&&
q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(t=g.ci("A"),g.ph(t,v),t.target=p,y&&(t.rel="noreferrer"),v=document.createEvent("MouseEvent"),v.initMouseEvent("click",!0,!0,q,1),t.dispatchEvent(v),q={}):y?(q=qh("",q,p,E),v=g.Og(v),q&&(g.YC&&g.kb(v,";")&&(v="'"+v.replace(/'/g,"%27")+"'"),q.opener=null,""===v&&(v="javascript:''"),v=g.nh(g.Fg("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Dh(v)+'">'),(t=q.document)&&
t.write&&(t.write(g.dh(v)),t.close()))):(q=qh(v,q,p,E))&&t.noopener&&(q.opener=null);q&&(q.opener||(q.opener=window),q.focus());g.vu(n)}}}(e)),g.pf(k,g.cL(a.tooltip,k.element)),a.j.push(k),d++)}var l=b.more||b.moreLink;
b=new g.V({G:"a",Ea:["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.Ma("click",function(m){g.CK(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")});
g.pf(b,g.cL(a.tooltip,b.element));a.j.push(b);a.Ka("buttons",a.j)};
ECa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.nf(c);a.j=[]};
ZL=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.gb=b;this.Ta=this.K=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ia=new g.L(function(){d.badge.element.style.width=""},200,this);
this.Z=new g.L(function(){XL(d);YL(d)},200,this);
this.dismissButton=new g.V({G:"button",Ea:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(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",oa:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.J);this.badge=new g.V({G:"button",Ea:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.J]});g.H(this,this.badge);this.badge.Ba(this.element);this.S=new g.JH(this.badge,250,!1,100);g.H(this,this.S);this.va=new g.JH(this.J,250,!1,100);g.H(this,this.va);this.La=new g.xp(this.f0,null,this);g.H(this,this.La);this.ma=new g.xp(this.xV,null,this);g.H(this,this.ma);g.H(this,this.Ia);g.H(this,this.Z);this.I.Qh(this.badge.element,this.badge,!0);this.I.Qh(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.j=!1;YL(d);XL(d);d.hj()});
this.T(this.I,"onShowControls",function(){d.j=!0;YL(d);XL(d);d.hj()});
this.T(this.badge.element,"click",this.KH);this.T(this.dismissButton.element,"click",this.LH);this.T(this.I,"pageTransition",this.oT);this.T(this.I,"appresize",this.hj);this.T(this.I,"fullscreentoggled",this.nY);this.T(this.I,"cardstatechange",this.UX);this.T(this.I,"annotationvisibility",this.J0,this);this.T(this.I,"offlineslatestatechange",this.K0,this)};
XL=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)};
YL=function(a,b){var c=a.K||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.ma.stop(),a.Ia.stop(),a.La.start()):(g.YG(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),GCa(a))};
GCa=function(a){a.C&&a.I.Wa(a.badge.element,a.Bz());a.D&&a.I.Wa(a.dismissButton.element,a.Bz()&&(a.K||a.j||!a.u))};
HCa=function(a){var b=a.text||"";g.ji(g.Th("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:"")};
ICa=function(a,b){b?a.D&&a.I.ub(a.dismissButton.element):a.C&&a.I.ub(a.badge.element)};
$L=function(a,b){ZL.call(this,a,b);var c=this;this.Y=this.Aa=this.Ga=!1;this.T(this.I,g.Lw("shopping_overlay_visible"),function(){c.uf(!0)});
this.T(this.I,g.Mw("shopping_overlay_visible"),function(){c.uf(!1)});
this.T(this.I,g.Lw("shopping_overlay_expanded"),function(){c.K=!0;YL(c)});
this.T(this.I,g.Mw("shopping_overlay_expanded"),function(){c.K=!1;YL(c)});
this.T(this.I,"changeProductsInVideoVisibility",this.ZY);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.SY)};
aM=function(a){a.I.Nf("shopping_overlay_visible");a.I.Nf("shopping_overlay_expanded")};
bM=function(a){g.OK.call(this,a,{G:"button",Ea:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",oa:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.L(function(){b.hide()},5E3);
this.j=this.B=NaN;g.H(this,this.C);this.ma=function(){b.show()};
this.Z=function(){b.hide()};
this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c<b.j/1E3&&b.show()};
this.T(this.I,"videodatachange",function(c,d){b.Bp(c,d)});
this.T(this.element,"click",function(){b.I.seekTo(b.j/1E3)});
this.hide()};
cM=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay"},oa:"{{icon}}"});this.I=a;this.Ma("click",this.onClick);this.T(a,"airplayactivechange",this.Ha);this.T(a,"airplayavailabilitychange",this.Ha);this.Ha();g.pf(this,g.cL(b.pc(),this.element))};
dM=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{G:"div",L:"ytp-autonav-toggle-button-container",U:[{G:"div",L:"ytp-autonav-toggle-button",W:{"aria-checked":"true"}}]}]});this.I=a;this.u=[];this.j=!1;this.isChecked=!0;a.Ab(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.Aw);this.Ma("click",this.onClick);this.I.V().N("web_player_autonav_toggle_always_listen")&&JCa(this);
this.tooltip=b.pc();g.pf(this,g.cL(b.pc(),this.element));this.Aw()};
JCa=function(a){a.u.push(a.T(a.I,"videodatachange",a.Aw));a.u.push(a.T(a.I,"videoplayerreset",a.Aw));a.u.push(a.T(a.I,"onPlaylistUpdate",a.Aw));a.u.push(a.T(a.I,"autonavchange",a.MK))};
KCa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ka("title",b);a.Ka("label",b);CL(a.tooltip)};
LCa=function(a){return a.I.V().N("web_player_autonav_use_server_provided_state")&&aE(a.jd())};
g.fM=function(a){g.V.call(this,{G:"div",L:"ytp-gradient-bottom"});this.j=g.ci("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.CC(a.V());g.eM(this,a.Ya().getPlayerSize().height)};
g.eM=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.j.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.j.toDataURL()+")"}catch(f){}}}};
gM=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-chapter-container",U:[{G:"button",Ea:["ytp-chapter-title","ytp-button"],U:[{G:"span",W:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",oa:"\u2022"},{G:"div",L:"ytp-chapter-title-content",oa:"{{title}}",W:{title:e,"aria-label":e}},{G:"div",L:"ytp-chapter-title-chevron",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.I=a;
this.u=c;this.D="";this.currentIndex=0;this.j=void 0;this.B=!0;this.S=this.Ca("ytp-chapter-container");this.C=this.Ca("ytp-chapter-title");this.Y=this.Ca("ytp-chapter-title-content");this.updateVideoData("newdata",this.I.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.S,"click",this.onClick);this.T(a,g.Lw(d),this.Tb);this.T(a,"onLoopRangeChange",this.Tb);this.T(a,"innertubeCommand",this.onClickCommand);g.rC(this.I.V())||g.pf(this,g.cL(b.pc(),this.Y))};
hM=function(a,b,c){gM.call(this,a,b,c,"chapterCueRange","View chapter")};
iM=function(a,b,c,d,e,f,k){var l=b.Dy/b.columns,m=b.Wr/b.rows,n=Math.min(c/l,d/m);void 0!==f&&n*l<f&&(n=Math.min(2,f/l));f=b.Dy*n;l=b.Wr*n;f=Math.floor(f/b.columns)*b.columns;l=Math.floor(l/b.rows)*b.rows;var p=f/b.columns,q=l/b.rows,t=-b.column*p,v=-b.row*q;e&&45>=m&&(q-=1/n);p-=2/n;a=a.style;a.width=p+"px";a.height=q+"px";e||(d=(d-q)/2,c=(c-p)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+
") "+t+"px "+v+"px/"+(null!=k?k:f)+"px "+l+"px"};
g.jM=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.Ca("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.iA(this);this.j=new g.JH(this,100);g.H(this,this.events);g.H(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Yc)};
kM=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){kM(a,a.api.Yh())}),a.events.T(a.api,"progresssync",a.Vd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,lM(a),a.j.show(200)):(c&&g.hv(a.events),a.j.hide(),a.j.stop())};
lM=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.Ya().getPlayerSize(),e=KD(b,d.width);c=Ava(b,e,c);c!==a.B&&(a.B=c,yva(b,c,d.width),b=wva(b,c,d.width),iM(a.C,b,d.width,d.height))};
mM=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ea:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{G:"div",Ea:["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.Ra=a;this.B=b;this.j=new g.JH(this,250,void 0,100);this.C=this.u=!1;a.Ab(this.element,this,61214);this.B=b;g.H(this,this.j);this.T(a,
"fullscreentoggled",this.Ha);this.T(a,"presentingplayerstatechange",this.Ha);this.Ma("click",this.onClick);this.Ha()};
g.nM=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.j=g.cL(this.u.pc(),this.element);this.B=new g.L(this.YU,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.Rj);this.T(a,"presentingplayerstatechange",this.Ha);this.Ma("click",this.onClick);g.bv()&&(b=this.I.Ya(),this.T(b,Poa(),this.TH),this.T(b,ev(document),this.Tn));a.V().gb||a.V().J||this.disable();a.Ab(this.element,this,
139117);this.Ha();this.Rj(a.isFullscreen())};
oM=function(a,b,c){gM.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.T(a,g.Mw("timedMarkerCueRange"),this.Tb)};
pM=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[oza()]});this.I=a;this.visible=!1;this.Ma("click",this.onClick);this.T(a,"fullscreentoggled",this.Ha);this.Ka("title",FK(a,"Miniplayer","i"));g.pf(this,g.cL(b.pc(),this.element));a.Ab(this.element,this,62946);this.Ha()};
qM=function(a,b,c){g.V.call(this,{G:"button",Ea:["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",Mb:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.I=a;this.j=!1;this.u=new g.L(this.B,400,this);this.tooltip=b.pc();gL(this.tooltip);g.H(this,this.u);this.Ma("click",function(){PK(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Ha(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Ha(!0);g.pf(this,g.cL(this.tooltip,this.element))};
rM=function(a){g.OK.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",Ea:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.eH()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.iA(this);this.items=this.Ca("ytp-multicam-menu-items");this.j=[];g.H(this,this.B);a=this.Ca("ytp-multicam-menu-close");this.T(a,"click",this.Gb);this.hide()};
sM=function(){g.G.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.xp(this.j,null,this);g.H(this,this.delay)};
MCa=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=MCa(a,d)))return d}};
PCa=function(a,b,c){c=MCa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=UG();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=NCa(e),m=NCa(c);tM(a,function(n){d.setAttribute("d",OCa(l,m,n))},200)};
tM=function(a,b,c){a.u=b;a.startTime=(0,g.R)();a.duration=c;a.j()};
NCa=function(a){var b=[];a=a.match(QCa);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};
OCa=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.uM=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-mute-button","ytp-button"],W:a.V().va?{title:"{{title}}"}:{"aria-disabled":"true","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.j=null;this.C=this.K=this.D=this.Y=NaN;this.Z=this.J=null;this.B=[];this.u=[];this.visible=!1;this.currentIcon=null;var c=this.I.V();this.Ka("icon",mH());this.tooltip=b.pc();this.j=new g.VG({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",Mb:!0,Ea:["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",Mb:!0,Ea:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.H(this,this.j);this.J=this.j.Ca("ytp-svg-volume-animation-speaker");this.Z=this.J.getAttribute("d");this.B=g.Qh("ytp-svg-volume-animation-mover",this.j.element);this.u=
g.Qh("ytp-svg-volume-animation-hider",this.j.element);this.ma=new sM;g.H(this,this.ma);this.S=new sM;g.H(this,this.S);this.Ma("click",this.JY);this.T(a,"appresize",this.NK);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.va)g.pf(this,g.cL(b.pc(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.OK(a,{G:"span",Ea:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},U:[e[0],{G:"a",W:{href:"https://web.archive.org/web/20220414023957/https://support.google.com/youtube/?p=noaudio",
target:c.K},oa:e[2]},e[4]]},100,!0);g.H(this,d);d.hide();d.subscribe("show",function(f){b.uu(d,f)});
g.EJ(a,d.element,4)}this.message=d;a.Ab(this.element,this,28662);this.NK(a.Ya().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
TCa=function(a,b){a.Y=b;var c=a.Z;b&&(c+=OCa(RCa,SCa,b));a.J.setAttribute("d",c)};
UCa=function(a,b){a.K=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=mH():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.currentIcon&&(a.Ka("icon",e),a.currentIcon=e)};
vM=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[oza()]});this.I=a;this.Ka("title","Picture in Picture");this.Ma("click",this.onClick);g.pf(this,g.cL(b.pc(),this.element))};
g.wM=function(a,b,c){g.V.call(this,{G:"button",Ea:["ytp-play-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.currentIcon=null;this.transition=new sM;this.tooltip=b.pc();g.H(this,this.transition);this.j=!!c;a.Ab(this.element,this,36842);a.Wa(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);VCa(this,a.yb());this.Ma("click",this.Pv,this);g.pf(this,
g.cL(b.pc(),this.element))};
WCa=function(a){switch(a){case 1:return jH();case 2:return mza();case 3:return g.kH();case 4:return qza();default:return null}};
VCa=function(a,b){var c=g.pE(a.I.getVideoData()),d=!1;g.gG(b)?b=c?4:2:g.U(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.currentIcon!==b){c=null;switch(b){case 2:c=FK(a.I,"Pause","k");break;case 3:c="Replay";break;case 1:c=FK(a.I,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,icon:WCa(b)}):(a.update({title:c}),(c=WCa(b))&&a.currentIcon&&3!==a.currentIcon?PCa(a.transition,a.element,c):a.Ka("icon",c));CL(a.tooltip);a.currentIcon=b}};
g.yM=function(a,b,c){g.V.call(this,{G:"a",Ea:[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?hH():pza()]});var d=this;this.I=a;this.j=c;this.playlist=this.videoData=null;this.isLinkable=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.pc();c?a.Ab(this.element,this,6193):
a.Ab(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.j||this.T(a,"appresize",this.mE);this.T(a,"mdxpreviousnextchange",function(){xM(d);d.mE()});
this.onVideoDataChange()};
XCa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
YCa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
ZCa=function(a){var b=AJ(a.I.ob());return b?a.j?b.hasNext():b.hm():!1};
xM=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.BJ(a.I)&&(!a.j||c);var d=a.j&&g.FJ(a.I),e=ZCa(a),f=a.j&&5===a.I.getPresentingPlayerType(),k=FK(a.I,"Next","SHIFT+n"),l=FK(a.I,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.YJ(a.playlist,a.j?kBa(a.playlist):lBa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.I.V().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.XH(m.lengthSeconds):null;b.preview=m.zf("mqdefault.jpg")}b.title=a.j?k:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=a.videoData.suggestions[0],b.url=l.Zl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.XH(l.lengthSeconds):null,b.preview=l.zf("mqdefault.jpg")),b.title=k);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.isLinkable=!!b.url;d||c||a.B||e||f?a.u||
(a.u=g.cL(a.tooltip,a.element),a.D=a.Ma("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.xc(a.D),a.D=null);CL(a.tooltip)};
zM=function(a,b){g.V.call(this,{G:"div",L:"ytp-fine-scrubbing",U:[{G:"div",L:"ytp-fine-scrubbing-thumbnails"},{G:"div",L:"ytp-fine-scrubbing-cursor"},{G:"div",L:"ytp-fine-scrubbing-seek-time",oa:"{{seekTime}}"},{G:"div",L:"ytp-fine-scrubbing-play",U:[jH()]},{G:"div",L:"ytp-fine-scrubbing-dismiss",U:[g.eH()]}]});this.api=a;this.K=b;this.J=!1;this.B=this.Ca("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ca("ytp-fine-scrubbing-dismiss");this.playButton=this.Ca("ytp-fine-scrubbing-play");this.thumbnails=
[];this.j=[];this.va=void 0;this.ma=NaN;this.Aa=this.Z=this.C=this.D=0;this.u=[];this.isEnabled=this.Y=!1;this.S=new g.mv(this.B,!0);this.S.subscribe("dragstart",this.QK,this);this.S.subscribe("dragmove",this.PK,this);this.S.subscribe("dragend",this.OK,this);g.H(this,this.S)};
aDa=function(a){var b=a.api.Yh();if(b){var c=a.J?1.5:1,d=160*c,e=KD(b,160*c);if(b=b.levels[e]){if(!a.u.length){e=[];for(var f=LD(b,b.Aq()),k=b.columns*b.rows,l=b.Aq(),m=0;m<=f;m++)for(var n=l<k?Math.ceil(l/b.columns):b.rows,p=0;p<b.rows;p++){var q=l<b.columns?l:b.columns,t={url:ND(b,m),column:0,columns:q,row:p,rows:n,Dy:b.width*q,Wr:b.height*n};e.push(t);l-=q;if(0>=l)break}a.u=e}for(;a.thumbnails.length>a.u.length;)e=void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.length<a.u.length;)e=
new $Ca,a.thumbnails.push(e),e.Ba(a.B),g.H(a,e);for(e=0;e<a.u.length;e++)f=a.thumbnails[e].element,k=a.u[e],k.Wr*=c,iM(f,k,b.width,d,!0,void 0,d*b.columns),f.style.width=d*k.columns+"px",f.style.height=160*c+"px";AM(a,a.api.getCurrentTime());for(d=a.api.getVideoData().ul;a.j.length>d.length;)c=void 0,null==(c=a.j.pop())||c.dispose();for(;a.j.length<d.length;)c=new BM,a.j.push(new BM),g.H(a,c);c=a.J?1.5:1;d=g.r(d.entries());for(e=d.next();!e.done;e=d.next())f=g.r(e.value),e=f.next().value,f=f.next().value,
a.j[e].update({chapterTitle:f.title}),f=Math.round(f.startTime/b.j),k=Math.floor(f/b.rows),g.Km(a.j[e].element,"transform","translateX("+f%b.rows*160*c+"px)"),a.j[e].Ba(a.thumbnails[k].element);a.Y=!0}}};
AM=function(a,b){a.update({seekTime:g.XH(b)});var c=a.J?1.5:1;c=a.B.offsetWidth||90*a.thumbnails.length*c;b=-(b/a.api.getDuration()*c)+a.K/2;a.D=b;g.Km(a.B,"transform","translateX("+a.D+"px)")};
$Ca=function(){g.V.call(this,{G:"div",L:"ytp-fine-scrubbing-thumbnail"})};
BM=function(){g.V.call(this,{G:"div",L:"ytp-fine-scrubbing-chapter-title",oa:"{{chapterTitle}}"})};
bDa=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.Ca("ytp-heat-map-svg");this.D=this.Ca("ytp-heat-map-path");this.C=this.Ca("ytp-heat-map-graph");this.B=this.Ca("ytp-heat-map-play");this.u=this.Ca("ytp-heat-map-hover");this.isValid=!1;this.j=60};
dDa=function(a,b,c,d){d=void 0===d?!1:d;b=new cDa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
cDa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
CM=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",Ea:["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.Ca("ytp-progress-linear-live-buffer");this.B=this.Ca("ytp-ad-progress-list");
this.D=this.Ca("ytp-load-progress");this.J=this.Ca("ytp-play-progress");this.u=this.Ca("ytp-hover-progress");this.j=this.Ca("ytp-chapter-hover-container")};
DM=function(a,b){g.Km(a.j,"width",b)};
EM=function(a,b){g.Km(a.j,"margin-right",b+"px")};
FM=function(a,b){return"PLAY_PROGRESS"===b?a.J:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
eDa=function(){this.B=this.position=this.C=this.j=this.D=this.u=this.width=NaN};
GM=function(){g.V.call(this,{G:"div",L:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.IM=function(a,b){g.ZG.call(this,{G:"div",L:"ytp-progress-bar-container",W:{"aria-disabled":"true"},U:[{G:"div",Ea:["ytp-heat-map-container"],U:[{G:"div",L:"ytp-heat-map-edu"}]},{G:"div",Ea:["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",Ea:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",W:{tabindex:"0"},Ea:["ytp-fine-scrubbing-container"]},{G:"div",L:"ytp-bound-time-left",oa:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",oa:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},oa:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",
W:{title:"{{clipendtitle}}"},oa:"{{clipendicon}}"}]});this.api=a;this.Qe=!1;this.D=this.Ag=0;this.gb=1;this.Me=this.S=0;this.K=null;this.Aa=this.fd=0;this.kb=this.Ca("ytp-marker-crenellation-list");this.Ua={};this.bd={};this.clipEnd=Infinity;this.kc=this.Ca("ytp-clip-end");this.Id=new g.mv(this.kc,!0);this.cf=this.Ca("ytp-clip-end-exclude");this.Qg=this.Ca("ytp-clip-start-exclude");this.clipStart=0;this.Gc=this.Ca("ytp-clip-start");this.Pd=new g.mv(this.Gc,!0);this.ma=this.rb=0;this.Mc=this.Ca("ytp-progress-bar");
this.Kb={};this.Ee={};this.ud=this.Ca("ytp-chapters-container");this.Bg=this.Ca("ytp-timed-markers-container");this.j=[];this.Y=[];this.Pe={};this.Kc=null;this.ib=-1;this.Ib=this.Ia=0;this.Z=null;this.Ne=this.Ca("ytp-scrubber-button");this.Tg=this.Ca("ytp-scrubber-container");this.Oc=new g.wh;this.qf=new eDa;this.B=new aI(0,0);this.Lb=null;this.C=this.qd=!1;this.Qf=null;this.Ga=this.Ca("ytp-fine-scrubbing-container");this.va=this.Ca("ytp-heat-map-container");this.pe=this.Ca("ytp-heat-map-edu");this.J=
[];this.Ta=this.De=this.La=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.pc();g.pf(this,g.cL(this.tooltip,this.kc));g.H(this,this.Id);this.Id.subscribe("hoverstart",this.pP,this);this.Id.subscribe("hoverend",this.oP,this);this.T(this.kc,"click",this.UC);g.pf(this,g.cL(this.tooltip,this.Gc));g.H(this,this.Pd);this.Pd.subscribe("hoverstart",this.pP,this);this.Pd.subscribe("hoverend",this.oP,this);this.T(this.Gc,"click",this.UC);fDa(this);this.T(a,"resize",this.xb);this.T(a,"presentingplayerstatechange",
this.rT);this.T(a,"videodatachange",this.Bp);this.T(a,"videoplayerreset",this.ZV);this.T(a,"cuerangesadded",this.JR);this.T(a,"cuerangesremoved",this.H_);this.T(a,"cuerangemarkersupdated",this.JR);this.T(a,"onLoopRangeChange",this.RK);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.Lw("timedMarkerCueRange"),this.XZ);this.updateVideoData(a.getVideoData(),!0);this.RK(a.getLoopRange());HM(this)&&!this.u&&(this.u=new zM(this.api,this.D),this.u.Ba(this.Ga),g.H(this,this.u),this.T(this.u.dismissButton,
"click",this.iN),this.T(this.u.playButton,"click",this.ZF),this.T(this.u.element,"dblclick",this.ZF),this.T(this.Ga,"keydown",this.mY));this.api.Ab(this.va,this,139609,!0);this.api.Ab(this.pe,this,140127,!0);this.api.Ab(this.kb,this,145078,!0)};
fDa=function(a){if(0===a.j.length){var b=new CM;a.j.push(b);g.H(a,b);b.Ba(a.ud,0)}for(;1<a.j.length;)a.j.pop().dispose();DM(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
JM=function(a){for(;a.Y.length;)a.Y.pop().dispose()};
gDa=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.Jw(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Nf("chapterCueRange");a.api.je(c)};
MM=function(a,b){var c,d=null==(c=a.Kb[b])?void 0:c.chapters;d&&(hDa(a,d),a.api.getVideoData().ul=a.j,gDa(a));var e;if((c=null==(e=a.Kb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){JM(a);e=g.r(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new GM,d=d.markerRenderer){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var k=f=void 0;c.onActiveCommand=null!=(k=null==(f=d)?void 0:f.onActiveCommand)?k:void 0;iDa(a,c)}KM(a,
a.Y);e=a.Y;c=a.Pe;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(k=xCa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(k),c[k.id]=e[f].onActiveCommand);a.api.je(d)}var l,m;b=null==(l=a.Kb[b])?void 0:null==(m=l.heatmap)?void 0:m.heatmapRenderer;if(!a.api.N("web_heatseeker_counterfactual")&&b){l=b.heatMarkers||[];var n;m=null!=(n=b.minHeightDp)?n:0;var p;n=null!=(p=b.maxHeightDp)?p:60;p=a.j.length;e=null;for(c=0;c<p;c++){f=
a.j[c].startTime;k=c===p-1?Infinity:a.j[c+1].startTime;if(c===a.J.length){d=void 0;var q=a;d=void 0===d?NaN:d;var t=new bDa(q.api);q.J.push(t);g.H(q,t);t.Ba(q.va);var v=t;q="hm_"+q.J.length;v.update({id:q});q="url(#"+q+")";v.C.setAttribute("clip-path",q);v.B.setAttribute("clip-path",q);v.u.setAttribute("clip-path",q);0<=d&&(t.element.style.width=d+"px")}d=[];e&&d.push(e);t=g.r(l);for(v=t.next();!v.done;v=t.next()){v=v.value;var x=q=void 0,y=void 0,z=null!=(y=null==(q=v)?void 0:null==(x=q.heatMarkerRenderer)?
void 0:x.timeRangeStartMillis)?y:-1;z>=f&&z<=k&&d.push(v)}0<n&&(a.va.style.height=n+"px");f=a.J[c];t=0===c;t=void 0===t?!1:t;k=f;0<n&&(k.j=n,k.J.style.height=k.j+"px");k=f;t=void 0===t?!1:t;v=1E3/d.length;q=[];q.push({x:0,y:100});x=g.r(d.entries());for(y=x.next();!y.done;y=x.next()){z=g.r(y.value);y=z.next().value;z=z.next().value;var E=void 0;z=(null==(E=z.heatMarkerRenderer)?void 0:E.heatMarkerIntensityScoreNormalized)||0;E=(y+.5)*v;z=100-g.sh(100*z,m/k.j*100,n/k.j*100);0!==y||t||q.push({x:0,y:z});
q.push({x:E,y:z});y===d.length-1&&q.push({x:1E3,y:z})}q.push({x:1E3,y:100});k=q;if(0===d.length)k="";else{t="";v=g.r(k.entries());for(q=v.next();!q.done;q=v.next())x=g.r(q.value),q=x.next().value,x=x.next().value,0===q?q="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(y=dDa(k[q-1],k[q-2],x),q=dDa(x,k[q-1],k[q+1],!0),q=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+" "+q.x.toFixed(1)+","+q.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),t+=q;k=t}f.D.setAttribute("d",k);f.isValid=""!==k;g.O(f.api.getRootNode(),
"ytp-heat-map",f.isValid);g.O(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.N("web_player_heat_map_played_bar")&&""!==k);0<d.length&&(e=d[d.length-1])}g.LM(a);l=[];b=g.r(b.heatMarkersDecorations||[]);for(m=b.next();!m.done;m=b.next())if(m=m.value.timedMarkerDecorationRenderer)n=m.label,c=e=p=void 0,l.push({visibleTimeRangeStartMillis:null!=(p=m.visibleTimeRangeStartMillis)?p:-1,visibleTimeRangeEndMillis:null!=(e=m.visibleTimeRangeEndMillis)?e:-1,decorationTimeMillis:null!=(c=m.decorationTimeMillis)?
c:NaN,label:n?g.Qw(n):""});a.heatMarkersDecorations=l}};
iDa=function(a,b){a.Y.push(b);g.H(a,b);b.Ba(a.Bg,a.Bg.children.length)};
KM=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=jDa(a,c.timeRangeStartMillis/(1E3*a.B.j),NM(a));g.Km(c.element,"transform","translateX("+d+"px)")}};
hDa=function(a,b){var c=0,d=!1;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},k=e.title;f.title=k?g.Qw(k):"";k=e.timeRangeStartMillis;null!=k&&(f.startTime=k);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new CM,a.j.push(f),g.H(a,f),f.Ba(a.ud,a.ud.children.length));a.j[c].startTime=
e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.LM(a);OM(a)};
g.LM=function(a){a.Ia=a.j.length-1;a.Ib=0;kDa(a,!0)&&kDa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){EM(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;DM(a.j[d],e+"px");break}a.j[c].width=0;DM(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,DM(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,DM(a.j[c],d+"px"));c=0;if(a.J.length===a.j.length)for(b=0;b<
a.J.length;b++)d=a.j[b].width,a.J[b].element.style.width=d+"px",a.J[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
kDa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.D){for(var k=a.D-(a.C?3:2)*a.Ia,l=0===a.Ib?3:k*a.Ib,m=g.r(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,EM(a.j[c],a.C?3:2));g.O(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*k)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,t=p.j[q-1];void 0!==t&&0<t.width?
t.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);EM(p.j[q],0);b&&(a.Ia--,m/f>a.Ib&&(a.Ib=m/f),d=!0)}c++}}return d};
OM=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.N("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:GE(d))&&b.airingStart&&b.airingEnd?lDa(a,b.airingStart,b.airingEnd):lDa(a,b.seekableStart,b.seekableEnd);d=dI(c,b.loaded,0);b=dI(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;PM(a,b,d);e&&QM(a);mDa(a)}}};
lDa=function(a,b,c){return RM(a)?new aI(Math.max(b,a.Lb.startTimeMs/1E3),Math.min(c,a.Lb.endTimeMs/1E3)):new aI(b,c)};
nDa=function(a,b){b&&(b=a.j[GL(a.j,b.startTimeMs)],g.O(b.j,"ytp-repeating-chapter",!1));a.Lb&&(b=a.j[GL(a.j,a.Lb.startTimeMs)],g.O(b.j,"ytp-repeating-chapter",!0));a.j.forEach(function(c){g.O(c.j,"ytp-exp-chapter-hover-container",!a.Lb)})};
TM=function(a,b){var c=cI(a.B,b.B);if(1<a.j.length){c=SM(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
oDa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ia)};
pDa=function(a,b,c,d){b=g.sh(b,0,a.C?60:40);a.S=b;var e=a.gb;a.gb=b/(a.C?60:40)*(Math.max(bI(a.B)/a.D,1)-1)+1;b=a.D*a.gb;a.Aa=g.sh(d*b-c,0,b-a.D);e!==a.gb&&QM(a)};
QM=function(a){if(1!==a.j.length||HM(a))a.Ne.style.removeProperty("height");else{var b=NM(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=tba(a.kb),f=0;if(a.S>.2*(a.C?60:40)){for(var k=bI(a.B)/60*d,l=Math.ceil(bI(a.B)/60*c);l<k;l++){var m=e[f];m||(m=g.ci("DIV"),a.kb.appendChild(m));f++;0===l%60?g.Ep(m,"ytp-60m-progress"):0===l%30?g.Ep(m,"ytp-30m-progress"):0===l%15?g.Ep(m,"ytp-15m-progress"):g.Ep(m,"ytp-1m-progress");m.style.left=(60*l/bI(a.B)-c)*b.j+"px"}a.Ta||(a.Ta=!0,a.api.Wa(a.kb,a.Ta))}b=a.qd?a.B.j:0;a.update({boundTimeLeft:g.XH(cI(a.B,
c)-b),boundTimeRight:g.XH(cI(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.gi(e[c]);a.element.style.height=a.S+(a.C?8:5)+"px";a.ea("height-change",a.S);a.Ne.style.height=a.S+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Ua));for(f=e.next();!f.done;f=e.next())qDa(a,f.value);UM(a);PM(a,a.ma,a.rb)};
NM=function(a){var b=a.Oc.x,c=a.D*a.gb;b=g.sh(b,0,a.D);a.qf.update(b,a.D,-a.Aa,-(c-a.Aa-a.D));return a.qf};
VM=function(a){return(a.C?135:90)-(a.C?54:48)};
PM=function(a,b,c){a.ma=b;a.rb=c;var d=NM(a),e=a.B.j,f=cI(a.B,a.ma),k=g.KF("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.XH(f,!0),DURATION:g.XH(e,!0)}),l=GL(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+k:k});e=a.clipStart;f=a.clipEnd;a.Lb&&2!==a.api.getPresentingPlayerType()&&(e=a.Lb.startTimeMs/1E3,f=a.Lb.endTimeMs/1E3);e=dI(a.B,e,0);l=dI(a.B,f,1);k=a.api.getVideoData();f=g.sh(b,e,l);c=(null==k?0:g.DE(k))?1:g.sh(c,
e,l);b=jDa(a,b,d);g.Km(a.Tg,"transform","translateX("+b+"px)");WM(a,d,e,f,"PLAY_PROGRESS");(null==k?0:GE(k))?(b=a.api.getProgressState().seekableEnd)&&WM(a,d,f,dI(a.B,b),"LIVE_BUFFER"):WM(a,d,e,c,"LOAD_PROGRESS");if(a.api.N("web_player_heat_map_played_bar")){var m;null!=(m=a.J[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
WM=function(a,b,c,d,e){var f=a.j.length,k=b.j-a.Ia*(a.C?3:2),l=c*k;c=SM(a,l);var m=d*k;k=SM(a,m);"HOVER_PROGRESS"===e&&(k=SM(a,b.j*d,!0),m=b.j*d-rDa(a,b.j*d)*(a.C?3:2));b=Math.max(l-sDa(a,c),0);for(d=c;d<f;d++)FM(a.j[d],e).style.left=c===d?b+"px":"0";for(f=c;f<k;f++)d=a.j[f].width,XM(a,FM(a.j[f],e),f===c?d-b:d,d);f=a.j[k].width;m=g.sh(m-sDa(a,k),0,f);c===k&&(m-=b);XM(a,FM(a.j[k],e),m,f);m=a.j.length;for(k+=1;k<m;k++)XM(a,FM(a.j[k],e),0,a.j[k].width);for(k=0;k<c;k++)XM(a,FM(a.j[k],e),0,a.j[k].width)};
sDa=function(a,b){if(b>=a.j.length)return a.D;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
XM=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.Km(b,"transform","scalex("+(d?c/d:0)+")")};
SM=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=rDa(a,b)*(a.C?3:2));c=g.r(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
jDa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),k=f.next();!k.done;k=f.next())k=k.value,d>k.startTime&&0<k.width&&e++;return b*(c.j-(a.C?3:2)*a.Ia)+(a.C?3:2)*(0>e?0:e)+c.u};
rDa=function(a,b){for(var c=a.j.length,d=0,e=g.r(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d};
g.YM=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.Ag=b;a.D=c;a.C=d;HM(a)&&null!=(b=a.u)&&(b.J=d);QM(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.LM(a);a.u&&(a.u.K=a.D,f&&HM(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.Ga.style.height=c+"px",g.Km(a.va,"transform","translateY("+-d+"px)"),g.Km(a.Mc,"transform","translateY("+-d+"px)")),aDa(a.u)))};
UM=function(a){var b=!!a.Lb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Lb?(c=a.Lb.startTimeMs/1E3,d=a.Lb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var k;if(null==(k=a.Lb)?0:k.postId)f=e=!1;g.O(a.element,"ytp-loop-range-enabled",b);g.O(a.element,"ytp-clip-start-enabled",e);g.O(a.element,"ytp-clip-end-enabled",f);b=e?dI(a.B,c,0):0;d=f?dI(a.B,d,1):1;a.Gc.style.left=Math.round(1E3*b)/10+"%";a.kc.style.left=Math.round(1E3*d)/10+"%";a.Qg.style.width=Math.round(1E3*
b)/10+"%";a.cf.style.left=Math.round(1E3*d)/10+"%";a.cf.style.width=Math.round(1E3*(1-d))/10+"%"};
mDa=function(a){var b;if(null==(b=a.api.getVideoData())||!GE(b)){b=NM(a);WM(a,b,a.ma,Math.max(b.B,a.ma),"HOVER_PROGRESS");for(var c=SM(a,b.j*a.ma,!0),d=SM(a,b.C,!0),e=c;e<=d;e++)g.O(a.j[e].u,"ytp-hover-progress-light",b.B>a.ma);g.O(a.Ne,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.N("web_player_heat_map_played_bar")){var f;null!=(f=a.J[0])&&f.u.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
qDa=function(a,b){var c=a.Ua[b];b=a.bd[b];var d=NM(a),e=dI(a.B,c.start/1E3,0),f=hqa(c,a.C)/d.width;var k=dI(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.sh(e,0,k-f));k=Math.min(k,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.j+d.u,0)+"px";XM(a,b,g.sh((k-c)*d.j+d.u,0,d.width),d.width,void 0===e?!1:e)};
tDa=function(a,b){var c=b.getId();a.Ua[c]===b&&(g.gi(a.bd[c]),delete a.Ua[c],delete a.bd[c])};
HM=function(a){return a.api.V().N("web_player_fine_scrubbing")};
ZM=function(a){a.u&&(a.u.disable(),a.S=0,a.va.style.removeProperty("transform"),a.Mc.style.removeProperty("transform"),a.Ga.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
uDa=function(a,b){var c=b/VM(a)*(a.C?54:48);g.Km(a.Mc,"transform","translateY("+-b+"px)");g.Km(a.va,"transform","translateY("+-b+"px)");g.Km(a.Ga,"transform","translateY("+c+"px)");a.Ga.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=(a.C?54:48)-c+"px")};
vDa=function(a,b){b?a.Z||(a.element.removeAttribute("aria-disabled"),a.Z=new g.mv(a.Mc,!0),a.Z.subscribe("hovermove",a.cZ,a),a.Z.subscribe("hoverend",a.bZ,a),a.Z.subscribe("dragstart",a.aZ,a),a.Z.subscribe("dragmove",a.eZ,a),a.Z.subscribe("dragend",a.dZ,a),a.Qf=a.Ma("keydown",a.sT)):a.Z&&(a.element.setAttribute("aria-disabled","true"),a.xc(a.Qf),a.Z.cancel(),a.Z.dispose(),a.Z=null)};
g.wDa=function(a){var b=2*a.D*g.QC();return 1E3*bI(a.B)/a.api.getPlaybackRate()/b};
RM=function(a){var b;return!(null==(b=a.Lb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
$M=function(a,b,c){g.V.call(this,{G:"button",Ea:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.qb=c;this.currentIcon=null;this.T(a,"onMdxReceiversChange",this.Ha);this.T(a,"presentingplayerstatechange",this.Ha);this.T(a,"appresize",this.Ha);a.Ab(this.element,this,139118);this.Ha();this.Ma("click",this.j,this);g.pf(this,g.cL(b.pc(),this.element))};
aN=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-button","ytp-screen-mode-button"],W:{"aria-haspopup":"true","aria-owns":UG(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},U:[{G:"svg",W:{viewBox:"0 0 36 36"},U:[{G:"path",Mb:!0,W:{d:"M8 9v11.2h4v-1.6H9.6v-8h12.8V14H24V9Zm17.09 10.81h-5.81v4.36h5.81zM28 25.63V15.44c0-.8-.65-1.44-1.45-1.44h-13.09c-.8 0-1.45.64-1.45 1.44v10.19c0 .8.65 1.45 1.45 1.45h13.09c.8 0 1.45-.65 1.45-1.45Zm-1.45.01h-13.09V15.43h13.09z",fill:"#fff"}}]}]});
this.I=a;this.u=!0;this.qb=null;this.Ma("click",this.B);this.T(a,"appresize",this.j);g.pf(this,g.cL(b.pc(),this.element));this.j(a.Ya().getPlayerSize())};
bN=function(a,b,c,d,e){g.jL.call(this,g.kL(),a,b);this.qb=d;this.j=!1;this.u=null;e&&(this.u=new g.V({G:"div",U:[{G:"span",oa:"{{title}}"},{G:"span",L:"ytp-menuitem-keyboard-shortcut",oa:e}]}),this.qg(this.u),this.u.Ka("title",b),g.H(this,this.u));this.Ma("click",this.onClick)};
cN=function(a,b){b&&!a.j?(a.qb.Bc(a),a.j=!0):!b&&a.j&&(a.qb.Of(a),a.j=!1)};
dN=function(a,b){bN.call(this,9,"Miniplayer",a,b,"(i)");this.I=a;lL(this,{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Mb:!0,W:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]});this.T(a,"fullscreentoggled",this.Ha);a.Ab(this.element,this,62946);this.Ha()};
eN=function(a,b,c){bN.call(this,11,"Connect to a device",a,b);this.I=a;this.B=c;this.currentIcon=null;this.T(a,"onMdxReceiversChange",this.Ha);this.T(a,"presentingplayerstatechange",this.Ha);this.T(a,"appresize",this.Ha);a.Ab(this.element,this,139118);this.Ha()};
fN=function(a,b){bN.call(this,10,"Theater mode",a,b,"(t)");this.I=a;this.isWidescreen=null;this.T(a,"sizestylechange",this.Ha);this.T(a,"fullscreentoggled",this.Ha);this.T(a,"presentingplayerstatechange",this.Ha);a.Ab(this.element,this,139116);this.Ha()};
gN=function(a,b,c){g.wL.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.ao=c;this.hd=new g.nL(this.I);this.qD=0;g.H(this,this.hd);this.T(a,"minimized",this.hide);this.T(a,"sizestylechange",this.hide);this.T(a,"fullscreentoggled",this.hide);this.hide();g.uL(this,this.hd);this.ao=c;this.element.id=c.element.getAttribute("aria-owns");a=this.I.V();a.kb&&(b=new eN(this.I,this,this.settingsMenu),g.H(this,b),this.qD++);a.Kb||(b=new fN(this.I,this),g.H(this,b),this.qD++);a.showMiniplayerButton&&
(a=new dN(this.I,this),g.H(this,a),this.qD++)};
hN=function(a,b,c){g.V.call(this,{G:"button",Ea:["ytp-button","ytp-settings-button"],W:{"aria-expanded":"false","aria-haspopup":"true","aria-owns":UG(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.lH()]});this.I=a;this.qb=c;this.u=!0;this.Ma("click",this.B);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);g.pf(this,g.cL(b.pc(),this.element));this.I.Ab(this.element,
this,28663);this.updateBadge();this.j(a.Ya().getPlayerSize())};
iN=function(a,b){a.u=!!b;a.j(a.I.Ya().getPlayerSize())};
jN=function(a,b){rL.call(this,"Annotations",6);this.I=a;this.qb=b;this.j=!1;a.N("web_settings_menu_icons")&&lL(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Ha);this.T(a,"onApiChange",this.Ha);this.subscribe("select",this.u,this);this.Ha()};
g.kN=function(a,b,c,d,e,f,k){g.jL.call(this,g.kL({"aria-haspopup":"true"}),b,a);this.qb=d;this.C=!1;this.u=null;this.options={};this.B=new g.nL(c,void 0,a,e,f,k);g.H(this,this.B);this.Ma("keydown",this.tT);this.Ma("click",this.open)};
xDa=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.lN=function(a,b){g.oL(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.options[f],l=f===a.u;l&&(d=!0);k&&k.priority===-e?(a.options[f].qg(a.rk(f,!0)),delete a.options[f]):k=a.nF(f,-e,l);c[f]=k;a.B.Bc(k,!0)}d||(a.u=null);b=g.r(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
mN=function(a,b){g.kN.call(this,"Audio track",3,a,b);this.I=a;this.tracks={};this.j=new g.V({G:"div",U:[{G:"span",oa:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});a.N("web_settings_menu_icons")&&lL(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M11.99,1.98C6.46,1.98,1.98,6.47,1.98,12s4.48,10.02,10.01,10.02c5.54,0,10.03-4.49,10.03-10.02S17.53,1.98,11.99,1.98z            M8.86,14.5c-0.16-0.82-0.25-1.65-0.25-2.5c0-0.87,.09-1.72,.26-2.55h6.27c0.17,.83,.26,1.68,.26,2.55 c0,.85-0.09,1.68-0.25,2.5H8.86z            M14.89,15.5c-0.54,1.89-1.52,3.64-2.89,5.15c-1.37-1.5-2.35-3.25-2.89-5.15H14.89z            M9.12,8.45 c0.54-1.87,1.52-3.61,2.88-5.1c1.36,1.49,2.34,3.22,2.88,5.1H9.12z            M16.15,9.45h4.5c0.24,.81,.37,1.66,.37,2.55 c0,.87-0.13,1.71-0.36,2.5h-4.51c0.15-0.82,.24-1.65,.24-2.5C16.39,11.13,16.3,10.28,16.15,9.45z            M20.29,8.45h-4.38 c-0.53-1.97-1.47-3.81-2.83-5.4C16.33,3.45,19.04,5.56,20.29,8.45z            M10.92,3.05c-1.35,1.59-2.3,3.43-2.83,5.4H3.71 C4.95,5.55,7.67,3.44,10.92,3.05z            M3.35,9.45h4.5C7.7,10.28,7.61,11.13,7.61,12c0,.85,.09,1.68,.24,2.5H3.34 c-0.23-0.79-0.36-1.63-0.36-2.5C2.98,11.11,3.11,10.26,3.35,9.45z            M3.69,15.5h4.39c0.52,1.99,1.48,3.85,2.84,5.45 C7.65,20.56,4.92,18.42,3.69,15.5z            M13.09,20.95c1.36-1.6,2.32-3.46,2.84-5.45h4.39C19.08,18.42,16.35,20.55,13.09,20.95z",
fill:"white"}}]});g.H(this,this.j);this.qg(this.j);this.T(a,"videodatachange",this.Ha);this.T(a,"onPlaybackAudioChange",this.Ha);this.Ha()};
nN=function(a,b){rL.call(this,"Autoplay",7);this.I=a;this.qb=b;this.j=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.D,this);a.Ab(this.element,this,113682);this.u()};
oN=function(a,b,c,d){d=new g.V({G:"div",Ea:["ytp-linked-account-popup-button"],oa: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",oa:b},{G:"div",L:"ytp-linked-account-popup-description",oa:c},{G:"div",L:"ytp-linked-account-popup-buttons",U:[d]}]});g.OK.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",U:[b]},100);var e=this;this.dialog=b;g.H(this,this.dialog);
d.Ma("click",function(){e.Gb()});
g.H(this,d);g.EJ(this.I,this.element,4);this.hide()};
pN=function(a,b){g.jL.call(this,g.kL({"aria-haspopup":"true"}),1);this.I=a;this.qb=b;this.u=this.j=!1;this.T(this.I,"videodatachange",this.C);this.Ma("click",this.onClick);this.C()};
qN=function(a){return a?g.Qw(a):""};
rN=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-screen-mode-settings-option",U:[{G:"div",L:"ytp-screen-mode-settings-label",oa:"{{label}}"}]});this.qb=c;this.ao=new g.ZG({G:"button",Ea:["ytp-screen-mode-settings-button","ytp-button"],oa:"{{icon}}",W:{title:"{{title}}"}});this.ao.Ba(this.element,0);g.H(this,this.ao);this.ao.Ka("icon",a);this.qg(b);this.Ma("click",this.onClick)};
sN=function(a,b,c){rN.call(this,{G:"svg",W:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},U:[{G:"path",W:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M43,26H26v10h17V26 M23,16v6.09l-6.68-6.68l-1.41,1.41L21.09,23H16v2h9v-9H23z",fill:"white"}}]},FK(b,"Miniplayer","i"),c);this.I=b;a.addButton(this);this.T(b,"fullscreentoggled",this.Ha);b.Ab(this.element,this,62946);this.Ha()};
tN=function(a,b){g.kN.call(this,"Quality",2,a,b);this.I=a;this.D={};this.j="unknown";a.N("web_settings_menu_icons")&&lL(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.M(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.Bw);this.T(a,"videoplayerreset",this.Bw);this.T(a,"onPlaybackQualityChange",
this.SK);this.Bw();a.Ab(this.element,this,137721)};
yDa=function(a,b,c){a=a.D[b];var d=g.Kx[b];c={G:"span",Ea:c,U:[a?a.qualityLabel:d?d+"p":"Auto"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.U.push(" "),c.U.push({G:"sup",L:"ytp-swatch-color",oa:e}));return c};
uN=function(a,b,c){rN.call(this,cza(),"Connect to a device",c);this.I=b;this.currentIcon=null;a.addButton(this);this.T(b,"onMdxReceiversChange",this.Ha);this.T(b,"presentingplayerstatechange",this.Ha);this.T(b,"appresize",this.Ha);b.Ab(this.element,this,139118);this.Ma("click",this.onClick);this.Ha()};
vN=function(a,b){g.ZG.call(this,{G:"div",L:"ytp-screen-mode-menu-item"});this.I=a;this.qb=b};
wN=function(a,b,c){rN.call(this,rza(),FK(b,"Theater mode","t"),c);this.I=b;this.isWidescreen=null;a.addButton(this);this.T(b,"sizestylechange",this.Ha);this.T(b,"fullscreentoggled",this.Ha);this.T(b,"presentingplayerstatechange",this.Ha);b.Ab(this.element,this,139116);this.Ha()};
xN=function(a,b,c,d,e,f,k){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.Z=f;this.range=this.maximumValue-this.minimumValue;this.ma=this.Ca("ytp-slider-section");this.u=this.Ca("ytp-slider");this.S=this.Ca("ytp-slider-handle");
this.C=new g.mv(this.u,!0);this.j=k?k:c;g.H(this,this.C);this.C.subscribe("dragmove",this.vT,this);this.T(this.element,"keydown",this.wT);this.T(this.element,"wheel",this.uT);this.init()};
zN=function(a){xN.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.B=g.ci("P");this.va=bba(this.Y,this);g.M(this.u,"ytp-speedslider");g.M(this.B,"ytp-speedslider-text");a=this.u;a.parentNode&&a.parentNode.insertBefore(this.B,a.nextSibling);yN(this);this.T(this.I,"onPlaybackRateChange",this.Aa)};
yN=function(a){a.B.textContent=AN(a,a.j)+"x"};
AN=function(a,b){a=Number(g.sh(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))};
BN=function(a){g.ZG.call(this,{G:"div",L:"ytp-speedslider-component"});this.j=new zN(a);g.H(this,this.j);this.element.appendChild(this.j.element)};
zDa=function(a){var b=new BN(a);mL.call(this,a,b,"Custom");g.H(this,b)};
CN=function(a,b){var c=new zDa(a);g.kN.call(this,"Playback speed",5,a,b,"Custom",function(){g.uL(b,c)});
a.N("web_settings_menu_icons")&&lL(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.H(this,c);this.I=a;this.D=this.j=this.K=null;this.J=this.I.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ha);this.Ha()};
ADa=function(a,b){var c=DN(b);a.options[c]?a.lj(c):b===a.D&&a.j&&(a.lj(a.j),a.Od(b.toString()))};
CDa=function(a){g.lN(a,a.J.map(DN));a.j=null;a.D=null;var b=a.I.getPlaybackRate();a.J.includes(b)||(BDa(a,b),g.kN.prototype.zg.call(a,a.j))};
BDa=function(a,b){a.D=b;a.j=g.KF("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.J.map(DN);b.unshift(a.j);g.lN(a,b)};
DN=function(a){return a.toString()};
EN=function(a,b,c,d){var e=new g.nL(b,void 0,"Video Override");g.kN.call(this,d.text||"",a,b,c,"Video Override",function(){g.uL(c,e)});
var f=this;g.M(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.mc(a,this.getKey,this);this.J=e;g.H(this,this.J);b=new g.jL({G:"div",L:"ytp-menuitemtitle",oa:"Allow for a different caption style if specified by the video."},0);g.H(this,b);this.J.Bc(b,!0);this.D=new g.jL({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",oa:"On"}]},-1);g.H(this,this.D);this.J.Bc(this.D,!0);this.T(this.D.element,
"click",function(){DDa(f,!0)});
this.j=new g.jL({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",oa:"Off"}]},-2);g.H(this,this.j);this.J.Bc(this.j,!0);this.T(this.j.element,"click",function(){DDa(f,!1)});
g.lN(this,g.Wl(a,this.getKey))};
DDa=function(a,b){a.ea("settingChange",a.setting+"Override",!b);a.qb.Ai()};
FN=function(a,b){g.nL.call(this,a,void 0,"Options");var c=this;this.Op={};for(var d=0;d<g.JL.length;d++){var e=g.JL[d],f=new EN(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.wi,this);this.Op[e.option.toString()]=f;this.Bc(f,!0)}a=new g.jL(g.kL(),-g.JL.length,"Reset");g.H(this,a);a.Ma("click",function(){c.wi("reset",!0)});
this.Bc(a,!0)};
GN=function(a,b){g.kN.call(this,"Auto-translate",0,a,b);this.I=a;this.languages={};a.Ab(this.element,this,127301);a.Wa(this.element,!0)};
EDa=function(a,b){a.languages=g.mc(b,a.getKey,a);g.lN(a,g.Wl(b,a.getKey))};
HN=function(a,b){var c=new FN(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.VC(a.V())&&(e={G:"div",L:"ytp-panel-footer-content",U:[{G:"span",oa:d[0]},{G:"a",L:"ytp-panel-footer-content-link",oa:"Settings",W:{href:"/account_playback"}},{G:"span",oa:d[1]}]});g.kN.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.uL(b,c)},e);
var f=this;this.I=a;this.qb=b;this.tracks={};this.J=new g.L(function(){FDa(f,!1)},3E3);
g.H(this,this.J);this.K=new g.V({G:"div",U:[{G:"span",oa:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});g.H(this,this.K);this.qg(this.K);a.N("web_settings_menu_icons")&&lL(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]});this.j=new GN(a,b);g.H(this,this.j);this.j.subscribe("select",this.xT,this);this.D=c;g.H(this,this.D);this.D.subscribe("settingChange",this.wi,this);b.subscribe("show",this.GZ,this);this.T(a,"videodatachange",this.Ha);this.T(a,"onApiChange",this.Ha);this.T(a,"onCaptionsTrackListChanged",this.Ha);this.T(a,"captionschanged",this.Ha);a.Ab(this.element,this,127300);this.Ha()};
FDa=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
IN=function(a){g.wL.call(this,a,"ytp-settings-menu");var b=this;this.hd=new g.nL(this.I);this.mH=this.settingsButton=null;this.rD=0;this.isInitialized=!1;g.H(this,this.hd);this.hide();g.uL(this,this.hd);var c=this.I.V();if(c.N("web_screen_mode_menu_b")){var d=new vN(this.I,this);g.H(this,d);if(c.showMiniplayerButton&&!c.N("web_player_pip")){var e=new sN(d,this.I,this);g.H(this,e)}c.Kb||(e=new wN(d,this.I,this),g.H(this,e),this.rD++);c.kb&&(c=new uN(d,this.I,this),g.H(this,c),this.rD++);1<this.rD&&
iCa(this.hd,d)}a.Ab(this.element,this,108341,!0);this.subscribe("show",function(f){b.uf(f)})};
GDa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
JN=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-size-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.isWidescreen=null;this.transition=new sM;this.tooltip=b.pc();g.H(this,this.transition);this.T(a,"sizestylechange",this.Ha);this.T(a,"fullscreentoggled",this.Ha);this.T(a,"presentingplayerstatechange",this.Ha);a.Ab(this.element,this,139116);this.Ha();this.Ma("click",this.onClick);g.pf(this,g.cL(this.tooltip,this.element))};
g.KN=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-subtitles-button","ytp-button"],W:{"aria-pressed":"{{pressed}}",title:"{{title}}"},U:[JBa()]});this.I=a;this.tooltip=b.pc();this.T(a,"videodatachange",this.Ha);this.T(a,"appresize",this.Ha);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ha);this.T(a,"onCaptionsTrackListChanged",this.Ha);this.T(a,"captionschanged",this.Ha);this.I.Ab(this.element,this,127299);this.Ha();this.Ma("click",this.onClick);g.pf(this,g.cL(b.pc(),
this.element))};
g.MN=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{G:"div",Ea:["ytp-time-display","notranslate"],U:[{G:"span",L:"ytp-time-clip-icon",oa:"{{clipicon}}"},{G:"span",U:[{G:"span",L:"ytp-time-current",oa:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",oa:" / "},{G:"span",L:"ytp-time-duration",oa:"{{duration}}"}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",oa:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",oa:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.V({G:"button",
Ea:["ytp-live-badge","ytp-button"],W:{disabled:"true"},oa:"{{content}}"});this.j=null;this.isLiveVideo=this.u=!1;this.J=this.D=null;this.isPremiere=!1;this.Lb=this.C=this.B=null;this.S=this.Ca("ytp-clip-watch-full-video-button");this.liveBadge.Od("Live");g.H(this,this.liveBadge);this.liveBadge.Ba(this.element);this.tooltip=b.pc();this.Ma("click",this.onClick);this.T(this.S,"click",this.l_);this.T(a,"presentingplayerstatechange",this.Tb);this.T(a,"appresize",this.Tb);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Tb();a=a.getLoopRange();b=this.Lb!==a;this.Lb=a;b&&LN(this)};
LN=function(a){a.Ka("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.Ka("watchfullvideo","Watch live stream"):a.Ka("watchfullvideo","Watch full video");g.O(a.element,"ytp-clip",NN(a));g.O(a.element,"ytp-live",ON(a))};
ON=function(a){return a.isLiveVideo&&!a.u&&!NN(a)};
NN=function(a){return!!a.Lb&&!!a.Lb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.api.N("web_repeating_chapters")||"clips"===a.Lb.type)};
RN=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.j=b;this.K=c;this.yj=!1;this.Y=this.volume=0;this.J=null;this.B=this.u=this.isDragging=!1;this.j=b;this.K=c;this.C=b.If();this.S=this.Ca("ytp-volume-slider");this.Z=this.Ca("ytp-volume-slider-handle");
this.D=new g.mv(this.S,!0);g.H(this,this.D);this.D.subscribe("dragstart",this.LZ,this);this.D.subscribe("dragmove",this.zT,this);this.D.subscribe("dragend",this.KZ,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.TK);this.T(a,"fullscreentoggled",this.Tn);this.T(a,"onShowControls",this.FM);this.T(a,"onHideControls",this.FM);this.T(this.element,"keydown",this.AT);this.T(this.element,"focus",function(){PN(d,d.u,d.isDragging,!0,d.j.yj())});
this.T(this.element,"blur",function(){PN(d,d.u,d.isDragging,!1,d.j.yj())});
this.TK(a.Ya().getPlayerSize());QN(this,a.getVolume(),a.isMuted())};
QN=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Ka("valuenow",d);a.Ka("valuetext",e);a.Z.style.left=(a.C?60:40)*c+"px";a.volume=b};
HDa=function(a,b){g.O(a.element,"ytp-volume-control-hover",b);PN(a,b,a.isDragging,a.B,a.j.yj())};
PN=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.yj;a.u=b;a.isDragging=c;a.B=d;a.yj=e;b=a.u||a.isDragging||a.B||a.yj;f!==b&&(b?a.J=a.T(a.element,"wheel",a.yT):(a.xc(a.J),a.J=null),g.O(a.K,"ytp-volume-slider-active",b))};
g.SN=function(a,b){var c=a.V(),d=g.NC(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&e.push("no-link");g.CC(c)&&e.push("ytp-youtube-music-button");var f={target:c.K,"data-sessionlink":"feature=player-button",title:""};c.C||(f.title=g.KF("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.V.call(this,{G:"a",Ea:e,W:f,oa:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Ab(this.element,this,28666);c.C||this.Ma("click",this.onClick);this.T(a,
"videodatachange",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.T(a,"appresize",this.xb);this.onVideoDataChange();c.C||g.pf(this,g.cL(b.pc(),this.element));this.xb()};
TN=function(a,b,c){g.iA.call(this);var d=this;this.I=a;this.B=b;this.Xd=c;this.Ta=NaN;this.Ua=this.La=null;this.settingsMenu=new IN(this.I);this.j=null;this.Mc=new g.IM(this.I,this.B);this.muteButton=null;this.Ih=new g.MN(this.I,this.B);this.S=this.D=this.C=this.Y=this.Ga=this.Aa=null;this.Z=new vM(this.I,this.B);this.Ia=new g.nM(this.I,this.B);this.ye=new g.xp(this.Zr,null,this);this.K=null;c=a.V();this.Xd.subscribe("autohideupdate",this.Rk,this);var e=!a.yb().isCued(),f=this.I.V().N("html5_player_bottom_linear_gradient");
f||!g.CC(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.Ua=f=new g.fM(a);g.H(this,f);g.EJ(a,f.element,9);this.ra=new g.JH(f,250,e,100);g.H(this,this.ra);this.u=new g.V({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.H(this,this.u);g.EJ(a,this.u.element,9);this.ma=new g.JH(this.u,250,
e,100);g.H(this,this.ma);this.va=this.u.element.children[0];g.pf(this.settingsMenu,function(){a.yp()===d.settingsMenu&&(a.settingsMenu=null)});
g.H(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.EJ(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){IDa(d.B.pc(),!n);b.wz(d.settingsMenu,n)});
g.H(this,this.Mc);this.Mc.Ba(this.u.element,0);e=new g.jM(a);g.H(this,e);g.EJ(a,e.element,4);f=new g.VG({G:"div",L:"ytp-left-controls"});g.H(this,f);f.Ba(this.va);e=new g.yM(a,b,!1);g.H(this,e);e.Ba(f.element);c.Aa||(e=new g.wM(a,b),g.H(this,e),e.Ba(f.element),WC(c)&&(e=new g.VG({G:"div",L:"ytp-hybrid-controls"}),g.H(this,e),this.S=new g.wM(a,b,!0),g.H(this,this.S),this.S.Ba(e.element),g.EJ(a,e.element,4)));e=new g.yM(a,b,!0);g.H(this,e);e.Ba(f.element);e=new g.V({G:"span",L:"ytp-volume-area"});g.H(this,
e);e.Ba(f.element);if(!c.kc&&(this.muteButton=new g.uM(a,b),g.H(this,this.muteButton),this.muteButton.Ba(e.element),c.va&&!c.J)){var k=new RN(a,b,this.u.element);g.H(this,k);k.Ba(e.element);e=new g.mv(e.element);g.H(this,e);e.subscribe("hoverstart",function(){HDa(k,!0)});
e=new g.mv(f.element);g.H(this,e);e.subscribe("hoverend",function(){HDa(k,!1)})}g.H(this,this.Ih);
this.Ih.Ba(f.element);e=new g.VG({G:"div",L:"ytp-right-controls"});g.H(this,e);this.Aa=new hM(a,b,this.Mc);g.H(this,this.Aa);this.Aa.Ba(f.element);c.N("web_key_moments_markers")&&(this.Ga=new oM(a,b,this.Mc),g.H(this,this.Ga),this.Ga.Ba(f.element));e.Ba(this.va);a.V().fd&&c.N("web_player_move_autonav_toggle")&&(f=new dM(a,b),g.H(this,f),f.Ba(e.element));c.N("external_fullscreen_with_edu")&&c.externalFullscreen&&PC(c)&&(this.Y=new mM(a,b),g.H(this,this.Y),this.Y.Ba(e.element));f=new g.KN(a,b);g.H(this,
f);f.Ba(e.element);f=new hN(a,b,this.settingsMenu);g.H(this,f);GDa(this.settingsMenu,f);f.Ba(e.element);if(c.N("web_screen_mode_menu_a")){var l=new aN(a,b);g.H(this,l);this.j=new gN(this.I,this.settingsMenu,l);l.qb=this.j;g.pf(this.j,function(){a.Sx()===d.j&&(a.jE=null)});
g.H(this,this.j)}if(f=this.j&&1<this.j.qD)a.jE=this.j,g.EJ(a,this.j.element,7),this.j.subscribe("show",function(n){IDa(d.B.pc(),!n);b.wz(d.j,n)}),l.Ba(e.element);
var m=new rM(a);g.H(this,m);g.EJ(a,m.element,5);m.subscribe("show",function(n){b.Zo(m,n)});
l=new qM(a,b,m);g.H(this,l);l.Ba(e.element);l=a.getVideoData();if(c.gk||l.D&&"1"===c.controlsType)this.C=new g.SN(a,b),g.H(this,this.C),this.C.Ba(e.element);g.H(this,this.Z);!f&&1>=this.settingsMenu.rD&&(c.showMiniplayerButton&&!a.V().N("web_player_pip")&&(this.D=new pM(a,b),g.H(this,this.D),this.D.Ba(e.element)),this.Z.Ba(e.element),l.DE||this.Z.hide(),c.Kb||(l=new JN(a,b),g.H(this,l),l.Ba(e.element)),c.kb&&(l=new $M(a,b,this.settingsMenu),g.H(this,l),l.Ba(e.element)),c.rl&&(c=new cM(a,b),g.H(this,
c),c.Ba(e.element)));g.H(this,this.Ia);this.Ia.Ba(e.element);g.H(this,this.ye);this.T(a,"appresize",this.xb);this.T(a,"fullscreentoggled",this.xb);this.T(a,"presentingplayerstatechange",this.nE);this.T(a,"videodatachange",this.onVideoDataChange);this.xb()};
JDa=function(a,b){a.I.yb().isCued()||b?b&&(a.ma.hide(),a.ra.hide(),a.muteButton&&a.muteButton.jc(!1),a.C&&a.C.jc(!1),a.D&&a.D.jc(!1),a.B.pc().wk(a.u.element)):b||(a.ma.show(),a.ra.show(),a.muteButton&&a.muteButton.jc(!0),a.C&&a.C.jc(!0),a.D&&a.D.jc(!0),a.Rk())};
KDa=function(a){var b=a.I.Ya().getPlayerSize().width;return Math.max(b-2*UN(a),100)};
UN=function(a){var b=a.B.If();return 12*(a.I.getVideoData().D?0:b?2:1)};
VN=function(a){var b=a.B.If()?72:50;a=a.I.V();g.RC(a)&&(b=54,wua(a)&&(b=62));return b};
WN=function(a,b){ZL.call(this,a,b,!1);var c=this;this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.Lw("suggested_action_button_visible"),function(){c.uf(!0)});
this.T(this.I,g.Mw("suggested_action_button_visible"),function(){c.uf(!1)})};
XN=function(a){a.I.Nf("suggested_action_button_visible")};
ZN=function(a){var b={G:"div",L:YN.SUBTEXT,U:[{G:"a",L:YN.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},oa:"{{channelName}}"}]};a.V().C&&(b={G:"div",L:YN.SUBTEXT,U:[{G:"span",L:YN.CHANNEL_NAME,oa:"{{channelName}}"}]});g.V.call(this,{G:"div",L:YN.TITLE,U:[{G:"div",L:YN.TEXT,U:[{G:"a",Ea:[YN.LINK,YN.SESSIONLINK],W:{target:a.V().K,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},oa:"{{title}}"},b]}]});this.api=a;this.j=null;this.link=this.Ca(YN.LINK);
a.Ab(this.element,this,23851);this.T(a,"videodatachange",this.Ha);this.T(a,"videoplayerreset",this.Ha);this.Ha()};
LDa=function(a){a.Ka("channelLink","");a.Ka("channelName","");a.Ka("channelTitleFocusable","-1")};
g.$N=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",oa:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",oa:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",oa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ga=b;this.env=this.api.V();this.Aa=this.env.isMobile;this.bg=this.Ca("ytp-tooltip-bg");this.image=this.Ca("ytp-tooltip-image");this.text=this.Ca("ytp-tooltip-text");
this.title=this.Ca("ytp-tooltip-title");this.Y=function(d){(d=tu(d))&&g.ii(c.u,d)||c.xl()};
this.C=function(d){3===c.type&&c.xl();(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),MDa(c,d,2))};
this.Z=function(){c.xl()};
this.u=null;this.D=new g.JH(this,100);this.type=null;this.S=!1;this.j=null;this.B=NaN;this.J="";this.oE=this.api.Ya().getPlayerSize().width;this.K=!0;this.scale=1;this.ma=new g.L(this.OW,250,this);this.va=new g.L(this.xl,5E3,this);g.H(this,this.D);g.H(this,this.ma);g.H(this,this.va);nC&&(a=this.Ca("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
gL=function(a){a.element.setAttribute("aria-live","polite")};
IDa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:aO(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.K=b};
PDa=function(a,b,c,d,e,f,k,l){if(!a.Aa||a.env.J){3===a.type&&a.xl();1!==a.type&&(g.Ep(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.Yh(),a.j&&a.j.subscribe("l",a.yP,a));a.update({text:d,title:null!=k?k:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!k);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=KD(a.j,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=Ava(a.j,d,c));NDa(a,d);if(l)switch(c=g.Vm(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"}ODa(a,!!e,b,f)}};
g.bO=function(a){1===a.type&&a.xl()};
g.cL=function(a,b){if(a.Aa)return function(){};
b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.xl();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
BL=function(a,b,c){if(a.type)if(3===a.type)a.xl();else return;MDa(a,b,3,c)};
MDa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Is("showElementTooltip called with non-element.",b.toString()),g.Iv(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.Ep(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.O(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.Z);a.K&&(aO(a),a.D.show(0))}};
aO=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.S){var c=a.u;a.Ka("text",b);var d=c.getAttribute("data-duration");a.update({title:a.J,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,k=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=k+"px "+l+"px";g.Gp(a.element,["ytp-text-detail","ytp-preview"]);
g.O(a.element,"ytp-has-duration",!!d)}else a.Ka("text",a.J),g.Ip(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);ODa(a,!!b)};
ODa=function(a,b,c,d){var e=Math.min(a.oE,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ga.ws(a.element,a.u,c,1===a.type,d);a.element.style.top?g.M(a.element,"ytp-bottom"):a.element.style.bottom&&g.M(a.element,"ytp-top");3===a.type&&a.va.start()};
CL=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.J=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&aO(a))};
NDa=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=wva(a.j,a.B,b);iM(a.bg,d,b,c,!0);a.ma.start()}};
QDa=function(a){var b=a.u;3===a.type&&a.va.stop();a.api.removeEventListener("appresize",a.Z);a.S||b.setAttribute("title",a.J);a.J="";a.u=null};
g.cO=function(a,b){g.V.call(this,{G:"button",Ea:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.rC(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",oa:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",oa:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.pc();gL(this.tooltip);a.Ab(this.element,this,28665);this.Ma("click",this.onClick,this);this.T(a,"videoplayerreset",this.BT);
this.T(a,"appresize",this.nA);this.T(a,"videodatachange",this.nA);this.T(a,"presentingplayerstatechange",this.nA);this.nA();a=this.I.V();var c=g.hw("yt-player-watch-later-pending");a.j&&c?(mta(),RDa(this)):this.Ha(2);g.O(this.element,"ytp-show-watch-later-title",g.rC(a));g.pf(this,g.cL(b.pc(),this.element))};
SDa=function(a,b){g.jI(function(){mta({videoId:b});window.location.reload()},"wl_button",g.MC(a.I.V()))};
RDa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ha(3);var b=a.I.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.Wl(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ha(2);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ha(1);a.I.V().isMobile&&BL(a.tooltip,a.element);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_ADDED")};
wI(c,b).then(d,function(){a.isRequestPending=!1;TDa(a,"An error occurred. Please try again later.")})}};
TDa=function(a,b){a.Ha(4,b);a.I.V().B&&a.I.Oa("WATCH_LATER_ERROR",b)};
UDa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=DK();break;case 1:d=bH();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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",Mb:!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",Mb:!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.Ka("icon",d);a.icon=b}};
dO=function(a){g.SK.call(this,a);var b=this;this.NB=(this.Gr=g.rC(this.api.V()))&&(this.api.V().isMobile||is()||gs());this.uF=48;this.vF=69;this.Ql=null;this.Qp=[];this.Cc=new g.YK(this.api);this.vx=this.api.N("web_player_deprecate_double_tap_ux")?new DL:new EL(this.api);this.dj=new g.V({G:"div",L:"ytp-chrome-top"});this.Mz=[];this.tooltip=new g.$N(this.api,this);this.backButton=this.uv=null;this.channelAvatar=new iL(this.api,this);this.title=new ZN(this.api,this);this.Jh=new g.VG({G:"div",L:"ytp-chrome-top-buttons"});
this.lh=this.shareButton=this.Fi=null;this.kh=new bL(this.api,this,this.dj.element);this.overflowButton=this.eh=null;this.wg="1"===this.api.V().controlsType?new TN(this.api,this,this.Xd):null;this.contextMenu=new g.zL(this.api,this,this.Cc);this.kF=!1;this.hB=new g.V({G:"div",W:{tabindex:"0"}});this.gB=new g.V({G:"div",W:{tabindex:"0"}});this.ez=null;this.wH=this.SA=!1;var c=a.Ya(),d=a.V(),e=a.getVideoData();this.Gr&&(g.M(a.getRootNode(),"ytp-embed"),g.M(a.getRootNode(),"ytp-embed-playlist"),this.NB&&
(g.M(a.getRootNode(),"ytp-embed-overlays-autohide"),g.M(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.uF=60,this.vF=89);this.api.V().isMobile&&(g.M(a.getRootNode(),"ytp-mobile"),this.api.V().J&&g.M(a.getRootNode(),"ytp-embed-mobile-exp"));this.oh=e&&e.oh;g.H(this,this.Cc);g.EJ(a,this.Cc.element,4);g.H(this,this.vx);g.EJ(a,this.vx.element,4);e=new g.V({G:"div",L:"ytp-gradient-top"});g.H(this,e);g.EJ(a,e.element,1);this.AJ=new g.JH(e,250,!0,100);g.H(this,this.AJ);g.H(this,this.dj);g.EJ(a,
this.dj.element,1);this.zJ=new g.JH(this.dj,250,!0,100);g.H(this,this.zJ);g.H(this,this.tooltip);g.EJ(a,this.tooltip.element,4);var f=new PL(a);g.H(this,f);g.EJ(a,f.element,5);f.subscribe("show",function(l){b.Zo(f,l)});
this.Mz.push(f);this.uv=new QL(a,this,f);g.H(this,this.uv);d.showBackButton&&(this.backButton=new XK(a),g.H(this,this.backButton),this.backButton.Ba(this.dj.element));this.Gr||this.uv.Ba(this.dj.element);this.channelAvatar.Ba(this.dj.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.Ba(this.dj.element);g.H(this,this.Jh);this.Jh.Ba(this.dj.element);d.C||(this.Fi=new g.cO(a,this),g.H(this,this.Fi),this.Fi.Ba(this.Jh.element));var k=new g.WL(a,this);g.H(this,k);g.EJ(a,k.element,5);
k.subscribe("show",function(l){b.Zo(k,l)});
this.Mz.push(k);d.C||(this.shareButton=new g.VL(a,this,k),g.H(this,this.shareButton),this.shareButton.Ba(this.Jh.element),this.lh=new g.AL(a,this),g.H(this,this.lh),this.lh.Ba(this.Jh.element));d.El&&(e=new bM(a),g.H(this,e),g.EJ(a,e.element,4));this.Gr&&this.uv.Ba(this.Jh.element);g.H(this,this.kh);this.kh.Ba(this.Jh.element);d.C||(e=new dL(a,this,this.kh),g.H(this,e),e.Ba(this.Jh.element));this.eh=new ML(a,this);g.H(this,this.eh);g.EJ(a,this.eh.element,5);this.eh.subscribe("show",function(){b.Zo(b.eh,
b.eh.Xg())});
this.Mz.push(this.eh);this.overflowButton=new LL(a,this,this.eh);g.H(this,this.overflowButton);this.overflowButton.Ba(this.Jh.element);this.wg&&g.H(this,this.wg);"3"===d.controlsType&&(e=new UL(a,this),g.H(this,e),g.EJ(a,e.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.NR,this);e=new eI(a,new WK(a));g.H(this,e);g.EJ(a,e.element,4);this.hB.Ma("focus",this.HV,this);g.H(this,this.hB);this.gB.Ma("focus",this.IV,this);g.H(this,this.gB);(this.Mn=d.cf?null:new g.IL(a,c,this.contextMenu,
this.Xd,this.Cc,this.vx,function(){return b.Tl()}))&&g.H(this,this.Mn);
this.Gr||(this.XQ=new $L(this.api,this),g.H(this,this.XQ),g.EJ(a,this.XQ.element,4));this.jR=new WN(this.api,this);g.H(this,this.jR);g.EJ(a,this.jR.element,4);this.Pp.push(this.Cc.element);this.T(a,"fullscreentoggled",this.Tn);this.T(a,"offlineslatestatechange",function(){b.api.py()&&xK(b.Xd,128,!1)});
this.T(a,"cardstatechange",function(){b.Yj()});
this.T(a,"resize",this.bY);this.T(a,"showpromotooltip",this.DY)};
VDa=function(a){var b=a.api.V(),c=g.U(a.api.yb(),128);return b.j&&c&&!a.api.isFullscreen()};
eO=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Nm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=eO(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};
WDa=function(a,b,c){if(a.api.V().N("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData();if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.ez){if(!(b=!b)){var f,k;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(k=d.promoConfig)?void 0:k.promoId)}e=b}e&&(a.ez=new RL(d,a,a.api),g.H(a,a.ez),g.EJ(a.api,a.ez.element,9));var l;null==(l=a.ez)||l.lE(d,c)}}};
g.fO=function(a){g.cK.call(this,a);this.chrome=null;this.load()};
gO=function(a,b,c,d){function e(k){var l=!(204!==k.status&&200!==k.status&&!k.response),m;k={succ:""+ +l,rc:k.status,lb:(null==(m=k.response)?void 0:m.byteLength)||0,rt:((0,g.R)()-f).toFixed(),shost:g.mj(a),trigger:b};XDa(k,a);c&&c(k);d&&!l&&d(new fD("pathprobe.net",k))}
var f=(0,g.R)();g.Gr(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
XDa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed())};
hO=function(a){g.G.call(this);var b=this;this.X=a;this.j=new Map;this.C=[];this.B=this.X.N("html5_onesie_prefer_trusted_host");this.Y=g.sB(this.X.experiments,"html5_onesie_prewarm_interval_ms");this.S=new g.L(this.K,this.Y,this);this.J=-1;g.H(this,this.S);YDa(this,g.hw("yt-player-bandaid-host"));this.Z=this.load();this.Y&&this.Z.then(function(){b.K()})};
YDa=function(a,b){var c=null==b?void 0:b.primary;a.u(0,c);c=c?ZDa(c):void 0;a.u(2,c);a.u(1,null==b?void 0:b.secondary)};
iO=function(a,b){return new g.$x("https://"+b+a.X.Wh.baseUrl)};
jO=function(a,b,c,d){gO("https://"+b+"/videoplayback?probe=1",c,function(e){d.N("html5_onesie_host_racing")&&!d.N("html5_onesie_probe_ec_hosts")&&(d.PB||d.RN());a.C.push(e)},function(e){a.C.push(e.details)})};
ZDa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
lO=function(a,b){var c,d,e,f,k,l;return g.B(function(m){if(1==m.j){c=iO(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.A(m,Ir(ay(c),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.Is("b204258371_no_host",ay(c),e.xhr.status)));f=new g.$x(e.xhr.responseText);k=cy(f);
l=f.get("ms");a.X.N("html5_onesie_keep_redirector_params")?f.set("id",null):(f=iO(a,k),f.set("ms",l));return k&&$Da(k)?2!==b||kO(k)?m.return(f):m.return(Promise.reject(new g.Is("b204258371_untrusted",k,l))):m.return(Promise.reject(new g.Is("b204258371_invalid",k,l)))})};
aEa=function(a){var b=a.C;a.C=[];return b};
$Da=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
kO=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
mO=function(a,b){this.location=a;this.ZN=b;this.endTimestamp=this.startTimestamp=-1};
nO=function(a){return a.endTimestamp<=a.startTimestamp?Infinity:a.endTimestamp-a.startTimestamp};
bEa=function(a){var b,c;null==(b=window.h5vcc)||null==(c=b.settings)||c.set("QUIC",+a)};
cEa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.u(new Uint8Array(c))));a.close()}return b};
dEa=function(){for(var a=oO.length;4>a;a++){var b=g.ci("VIDEO");b.load();oO.push(new g.wK(b))}};
eEa=function(){this.u=200;this.j=12};
fEa=function(a){var b=new eEa;b.u=g.sB(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.j=g.sB(a.experiments,"html5_gapless_max_played_ranges");return b};
g.pO=function(a,b,c,d){d=void 0===d?!1:d;XF.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
gEa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Li()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.j&&((b=b.Ld())&&b.isView()&&(b=b.mediaElement),b&&b.yr().length>a.j&&g.kE(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.j||!c.j)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.kE(f)&&
g.kE(e))return{msg:"content-protection"};a=c.j[0];e=e.C.j[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.mA?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.Yb(),cr:f.sampleRate,ni:e.Yb(),nr:b.sampleRate}};
qO=function(){var a=this;this.j=this.u=iaa;this.promise=new g.xi(function(b,c){a.u=b;a.j=c})};
rO=function(a,b,c,d){g.G.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Em=new qO;this.fl=d-1E3*b.Fd();this.Em.then(void 0,function(){});
this.timeout=new g.L(function(){e.Ff("timeout")},1E4);
g.H(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null}};
lEa=function(a){var b,c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.sO.kq("gtfta");return g.A(p,a.Em,2)}g.sO.gp(b);c=a.j.Ld();if(c.Gg())return a.Ff("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!CA(a.C))return a.Ff("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.xr()!==a.C)return a.Ff("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=hEa(a);e=d.dP;f=d.TM;k=d.cP;a.j.Eh(!1,!0);l=iEa(c,e,k,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.K&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Er:!0,yJ:3,Ie:"gapless_pseudo"}),l.play()||Mr());m=c.Pb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+k;a.u.xa("gapless",m);a.j.xa("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();jEa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);jEa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.vi(function(){!a.u.getVideoData().kb&&g.gG(a.u.getPlayerState())&&kEa(a.u)});
tO(a,6);a.dispose();return p.return(Promise.resolve())})};
oEa=function(a){if(a.u.getVideoData().C){uO(a.u,a.C);tO(a,3);mEa(a);var b=nEa(a),c=b.WQ;b=b.Z_;c.subscribe("updateend",a.Ft,a);b.subscribe("updateend",a.Ft,a);a.Ft(c);a.Ft(b)}};
mEa=function(a){a.j.unsubscribe("internalvideodatachange",a.Oq,a);a.u.unsubscribe("internalvideodatachange",a.Oq,a);a.j.unsubscribe("mediasourceattached",a.Oq,a);a.u.unsubscribe("statechange",a.Yc,a)};
iEa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.pO(a,b,c,d)};
tO=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Em.resolve(void 0))};
hEa=function(a){var b=a.j.Ld();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:vO(a.j,!0);c=Math.min(a.fl/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Li()+d;return{mV:b,dP:a,TM:c,cP:Infinity}};
nEa=function(a){return{WQ:a.B.j.Wd,Z_:a.B.u.Wd}};
wO=function(a){g.G.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.K=!1;this.C=null;this.S=fEa(this.app.V());this.B=null;this.J=function(){g.vi(function(){pEa(b)})}};
qEa=function(a,b,c,d){d=void 0===d?0:d;a.Su()||xO(a);a.C=new qO;a.j=b;var e=c,f=a.app.Pc(),k=f.getVideoData().isLivePlayback?Infinity:1E3*vO(f,!0);e>k&&(e=k-a.S.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.u=f,f=e,e=a.u,a.app.Ra.addEventListener(g.Lw("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.Jw(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,
vO(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),k=Math.min(d,vO(b)+l));f=cta(e,k)||d;f!==d&&a.j.xa("qvaln",{st:d,at:f,rm:l,ct:k})}b=f;d=a.j;d.getVideoData().Ee=!0;d.getVideoData().Ia=!0;g.yO(d,!0);e={};a.u&&(e=g.zO(a.u.Zb.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.xa("queued",e);0!==b&&d.seekTo(b+.01,{Er:!0,yJ:3,Ie:"videoqueuer_queued"});a.B=new rO(a.S,a.app.Pc(),a.j,c);c=a.B;Infinity!==c.status.status&&(tO(c,1),c.j.subscribe("internalvideodatachange",c.Oq,c),
c.u.subscribe("internalvideodatachange",c.Oq,c),c.j.subscribe("mediasourceattached",c.Oq,c),c.u.subscribe("statechange",c.Yc,c),c.j.subscribe("newelementrequired",c.DP,c),c.Oq());return a.C};
pEa=function(a){var b,c,d;g.B(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.K&&AO(a.app.Pc(),!0,!1);b=null;if(!a.B){e.Va(2);break}g.ta(e,3);return g.A(e,lEa(a.B),5);case 5:g.ua(e,2);break;case 3:b=c=g.va(e);case 2:if(!a.j)return e.return();g.sO.AI("vqsp",function(){BO(a.app,a.j)});
g.sO.AI("vqpv",function(){a.app.playVideo()});
b&&rEa(a.j,b.message);d=a.C;xO(a);return e.return(d.resolve(void 0))}})};
xO=function(a){if(a.u){var b=a.u;a.app.Ra.removeEventListener(g.Lw("vqueued"),a.J);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Ff("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.GJ(a.app,1)&&a.j!==a.app.Pc()&&a.j.dispose();a.j=null;a.K=!1};
sEa=function(){var a=doa();return!(!a||"visible"===a)};
uEa=function(a){var b=tEa();b&&document.addEventListener(b,a,!1)};
vEa=function(a){var b=tEa();b&&document.removeEventListener(b,a,!1)};
tEa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[ku+"VisibilityState"])return"";a=ku+"visibilitychange"}return a};
CO=function(){g.iv.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.uf()};
uEa(this.C);this.D=this.getVisibilityState(this.eg(),this.isFullscreen(),this.Af(),this.isInline(),this.Qu(),this.Nu())};
wEa=function(a){this.end=this.start=a};
g.GO=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.X=b;this.ya=c;this.Aa=new Map;this.Ta=new Map;this.Ga=new Map;this.D=new Map;this.B=[];this.J=[];this.u=new Map;this.Vb=new Map;this.K=new Map;this.Kb=NaN;this.rb=this.Ua=null;this.Ib=new g.L(function(){DO(d,d.Kb)});
this.events=new g.iA(this);this.isLiveNow=!0;this.Pd=g.sB(this.X.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.ma=new g.L(function(){d.Z=!0;var e=d.ya,f=d.Pd;e.xa("sdai",{aftimeout:f});e.zd(new fD("ad.fetchtimeout",{timeout:f}));EO(d);d.Yx(!1)},this.Pd);
this.Z=!1;this.Ia=new Map;this.kb=[];this.Y=null;this.Id=new Set;this.va=[];this.kc=[];this.fd=[];this.Oc=[];this.j=void 0;this.La=0;this.ib=!0;this.C=!1;this.Xa=[];this.bd=new Set;this.ud=new Set;this.qd=new Set;this.tj=0;this.S=null;this.gb=new Set;this.Kc=0;this.Xo=this.Gc=!1;this.ya.getPlayerType();xEa(this.ya,this);this.ra=dD(this.X);g.H(this,this.Ib);g.H(this,this.events);g.H(this,this.ma);FO(this)||(this.events.T(this.api,g.Lw("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api,
g.Mw("serverstitchedcuerange"),this.onCueRangeExit))};
AEa=function(a,b,c,d,e,f,k){var l=yEa(a,e,e+d);a.X.N("html5_ssdai_log_ad_transition_info")&&a.ya.xa("sdai",{attl:1,len:(d/1E3).toFixed(3),enter:(e/1E3).toFixed(3),abid:k});a.Z&&a.ya.xa("sdai",{adaftto:1});var m=a.X.N("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.ya;f=void 0===f?e+d:f;e===f&&!d&&a.X.N("html5_allow_zero_duration_ads_on_timeline")&&a.ya.xa("sdai",{attl0d:1});if(e>f&&(HO(a,{reason:"enterTime_greater_than_return",yc:e,Sc:f}),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&
(HO(a,{reason:"enterTime_less_than_minSeekableTime",yc:e,aja:p}),m))return"";n=1E3*n.getDuration();if(f>n&&(HO(a,{reason:"parent_return_greater_than_content_duration",Sc:f,Yia:n}),m))return"";n=null;if(m)for(m=g.r(a.J),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.yc&&e<p.Sc||f<=p.Sc&&f>p.yc||f===p.yc)return IO(a,b.video_id||"",e,f,p),"";e===p.Sc&&(n=p)}else m=g.gc(a.J,{Sc:e},function(t,v){return t.Sc-v.Sc}),0<=m&&(n=a.J[m],n.Sc>e&&IO(a,b.video_id||"",e,f,n));
if(l&&n)for(m=g.r(a.va.entries()),p=m.next();!p.done;p=m.next()){var q=g.r(p.value);p=q.next().value;q=q.next().value;if(q.identifier===l.identifier){a.va.splice(p,1);break}}else if(l&&a.X.N("web_player_ss_timeout_skip_ads"))return a.ya.xa("sdai",{rejectAttl:1}),k&&!Zm(a.Oc,function(t){return t===k})&&(a.ya.xa("sdai",{rejectAdBreakAttl:1}),a.Oc.push(k)),a.X.N("web_player_stop_timer_for_timedout_ab_killswitch")||JO(a),"";
l="ss_childplayback_"+zEa++;b.cpn||(b.cpn=g.Pv(16));m=b.cpn;b=new g.TD(a.X,b);b.Ac=l;c={Ac:l,playerType:c,durationMs:d,yc:e,Sc:f,cpn:m,videoData:b,errorCount:0};g.kc(a.J,c,function(t,v){return t.yc-v.yc});
a.u.set(m,c);a.Vb.set(l,c);a.ya.xa("sdai",{attlDone:f-e});k?c.Jl=k:n?c.Jl=n.Jl:c.Jl=c.cpn;if(e=c.Jl)(d=a.K.get(e))?(d.push(c),g.ic(d,function(t,v){return t.yc-v.yc})):a.K.set(e,[c]);
a.ma.isActive()&&(a.Z=!1,a.ma.stop(),EO(a),a.Yx(!0));return l};
KO=function(a,b,c){return a.X.experiments.jb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}};
BEa=function(a,b,c){return new g.Jw(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
LO=function(a){return{cpn:a.ya.getVideoData().clientPlaybackNonce,durationMs:0,yc:0,playerType:1,Sc:0,videoData:a.ya.getVideoData(),errorCount:0}};
NO=function(a,b,c){var d=a.C,e=LO(a),f=b.Wf-c.Wf;.5<Math.abs(f)&&a.ya.xa("sdai",{ttdtb:1,delta:f,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var k=a.u.get(b.adCpn);var l=a.u.get(c.adCpn)}l&&k&&(a.api.ea("serverstitchedvideochange",k.Ac,k.Lo),a.ya.xa("sdai",KO(a,"a2a",k)),a.tj++,MO(a.ya,l,k,c.Wf,b.Wf,d))}else if(!b.isAd&&c.isAd){a.api.ea("serverstitchedvideochange");a.ya.xa("sdai",KO(a,"a2c"));a.tj=0;if(f=c.Qd)a.La=f.end;var m;c.adCpn&&(m=a.u.get(c.adCpn));m&&MO(a.ya,
m,e,c.Wf,b.Wf,d)}else if(b.isAd&&!c.isAd){var n;b.adCpn&&(n=a.u.get(b.adCpn));n&&(a.La=0,a.api.ea("serverstitchedvideochange",n.Ac,n.Lo),a.ya.xa("sdai",KO(a,"c2a",n)),a.tj=1,MO(a.ya,e,n,c.Wf,b.Wf,d))}};
OO=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.gc(a.J,{yc:c},function(e,f){return e.yc-f.yc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.J[d],a.Sc>=c)?{cn:a,Yr:b}:{cn:void 0,Yr:b}};
PO=function(a,b){var c="";FO(a)?(c=b/1E3-a.Cn(),c=a.ya.Hu(c)):(b=CEa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
CEa=function(a,b){a=g.r(a.D.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
DO=function(a,b){var c=a.rb||a.api.Pc().getPlayerState();QO(a,!0);var d=b;a.X.N("web_player_ssdai_seek_without_offset_killswitch")&&(d=OO(a,b).Yr);a.ya.seekTo(d);a=a.api.Pc();b=a.getPlayerState();g.gG(c)&&!g.gG(b)?a.playVideo():g.U(c,4)&&!g.U(b,4)&&a.pauseVideo()};
QO=function(a,b){a.Kb=NaN;a.Ib.stop();a.Ua&&b&&RO(a.Ua);a.rb=null;a.Ua=null};
SO=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=[],k=g.r(a.J),l=k.next();!l.done;l=k.next())l=l.value,(l.yc<d||l.Sc>e)&&f.push(l);a.J=f;d=b;e=c;f=g.r(a.D.values());for(k=f.next();!k.done;k=f.next())k=k.value,k.start>=d&&k.end<=e&&(a.ya.removeCueRange(k),a.D.delete(k.getId()),a.ya.xa("sdai",{rmAdCR:1}));d=OO(a,b/1E3);b=d.cn;d=d.Yr;b&&(d=1E3*d-b.yc,e=b.yc+d,b.durationMs=d,b.Sc=e,DEa(a,b));if(b=OO(a,c/1E3).cn){var m;d="playback_timelinePlaybackId_"+b.Ac+"_video_id_"+(null==
(m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.yc+"_parentReturnTimeMs_"+b.Sc;a.yy("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
EEa=function(a){a.X.N("web_player_ss_timeline_manager_reset_all_killswitch")||(a.Aa.clear(),a.Ta.clear(),a.Ga.clear(),a.D.clear(),a.B=[],a.J=[],a.u.clear(),a.Vb.clear(),a.K.clear(),a.Ia.clear(),a.kb=[],a.Y=null,a.Id.clear(),a.va=[],a.kc=[],a.fd=[],a.Oc=[],a.Xa=[],a.bd.clear(),a.ud.clear(),a.qd.clear(),a.gb.clear(),a.isLiveNow=!0,a.Z=!1,a.j=void 0,a.La=0,a.ib=!0,a.C=!1,a.tj=0,a.S=null,a.Kc=0,a.Gc=!1,a.Xo=!1)};
DEa=function(a,b){var c=a.D.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.yc+b.durationMs:d.end===c.start&&(d.end=b.yc);c.start=b.yc;c.end=b.yc+b.durationMs}};
TO=function(a,b,c){c=a.Ia.get(c);c||(b+=a.Cn(),c=OO(a,b,1).cn);return c};
UO=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;FEa(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.ya.removeCueRange(e);if(a.Xa.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else FEa(a,b,c)};
FEa=function(a,b,c){b=BEa(b,c);c=!0;g.kc(a.B,b,function(k,l){return k.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ya.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.ya.addCueRange(b),b=a.ya.Ax("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())};
VO=function(a,b,c){if(void 0===c||!c){c=g.r(a.kb);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.kb.push(new wEa(b))}};
g.GEa=function(a,b){a=g.r(a.kb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
IO=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Uia:b,yc:c,Sc:d,wia:e.Ac,xia:(null==(f=e.videoData)?void 0:f.videoId)||"",tia:e.durationMs,uia:e.yc,via:e.Sc};HO(a,b)};
HO=function(a,b){a=a.ya;a.xa("timelineerror",b);a.zd(new fD("dai.timelineerror",b))};
HEa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
IEa=function(a,b,c){var d=0;a=a.K.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
JEa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
KEa=function(a,b){var c=0;a=a.K.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Sc!==b.yc&&c++;return c};
LEa=function(a,b,c){var d=!1;if(c&&(c=a.K.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Sc!==e.yc&&(e=e.cpn,b===e&&(d=!0),d&&!a.ud.has(e)&&(a.ya.xa("sdai",{decoratedAd:e}),a.ud.add(e)))}};
EO=function(a){a.ra&&a.ya.xa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Kc)+"_isTimeout_"+a.Z})};
yEa=function(a,b,c){if(a.va.length)for(var d={},e=g.r(a.va),f=e.next();!f.done;d={tq:d.tq},f=e.next()){d.tq=f.value;f=1E3*d.tq.startSecs;var k=1E3*d.tq.durationSecs+f;if(b>f&&b<k||c>f&&c<k)return Zm(a.fd,function(l){return function(m){return m.identifier===l.tq.identifier}}(d))||(a.ya.xa("sdai",{adskip:b}),a.fd.push(d.tq)),d.tq}};
JO=function(a){a.Z=!1;a.ma.isActive()&&EO(a);a.ma.stop();a.Yx(!1)};
FO=function(a){return a.X.experiments.jb("html5_ssdai_use_new_ad_report")};
WO=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.X=b;this.j=c;this.J=new Map;this.u=[];this.B=this.K=null;this.Y=NaN;this.D=this.C=null;this.S=new g.L(function(){MEa(d,d.Y)});
this.Z=[];this.ma=new g.L(function(){var e=d.Z.pop();if(e){var f=e.Ac,k=e.playerVars;e=e.playerType;k&&(k.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(k,e,NaN,"",f),d.Z.length&&g.zp(d.ma,4500))}});
this.events=new g.iA(this);c.getPlayerType();g.H(this,this.S);g.H(this,this.ma);g.H(this,this.events);this.events.T(this.api,g.Lw("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.dh)};
QEa=function(a,b,c,d,e,f){var k=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return XO(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),k,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return XO(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,k,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Fd(),XO(a,m,k,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.yc&&e<q.Sc)return XO(a,"overlappingEnter",k,l),"";if(f<=q.Sc&&f>q.yc)return XO(a,"overlappingReturn",k,l),"";if(f===q.yc)return XO(a,"outOfOrder",k,l),"";e===q.Sc&&(n=q)}k="cs_childplayback_"+NEa++;l={Qd:YO(d,!0),fl:Infinity,target:null};var t={Ac:k,playerVars:b,playerType:c,durationMs:d,yc:e,Sc:f,bp:l};a.u=a.u.concat(t).sort(function(y,z){return y.yc-z.yc});
n?OEa(a,n,{Qd:YO(n.durationMs,!0),fl:a.X.N("timeline_manager_transition_killswitch")?Infinity:n.bp.fl,target:t}):(b={Qd:YO(e,!1),fl:e,target:t},a.J.set(b.Qd,b),m.addCueRange(b.Qd));b=a.X.N("html5_gapless_preloading");if(a.j===a.api.Pc()&&(m=1E3*m.getCurrentTime(),m>=t.yc&&m<t.Sc)){var v=a.api.Pc().getPlayerState(),x=m-t.yc;pi(function(){PEa(a,t,x/1E3,v)});
b=!1}b&&(a.Z.unshift(t),g.zp(a.ma,0));return k};
YO=function(a,b){return new g.Jw(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
REa=function(a,b,c,d){a.B=d;a.api.YA(a.j,c,b)};
SEa=function(a,b,c,d){a.B=d;d=b.Ac;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
OEa=function(a,b,c){var d=b.bp;b.bp=c;ZO(a,b)&&(c=a.api.Pc(),d.Qd===a.B&&$O(a),c.removeCueRange(d.Qd),c.addCueRange(b.bp.Qd))};
$O=function(a){a.K=null;a.B=null;a.api.Su()||a.api.clearQueue()};
TEa=function(a,b){ZO(a,b)||XO(a,"childPlaybackIsNotPresenting");return b.Sc===b.yc+b.durationMs?(a=a.api.Pc(),b.yc+1E3*a.getCurrentTime()):b.Sc};
aP=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.yc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{cn:d,Yr:b-e};c=f-d.Sc/1E3}return{cn:null,Yr:b-c}};
MEa=function(a,b){var c=a.D||a.api.Pc().getPlayerState();bP(a,!0);b=a.X.N("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.Ck();var d=aP(a,b);b=d.cn;d=d.Yr;var e=b&&!ZO(a,b)||!b&&a.j!==a.api.Pc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||$O(a);b?PEa(a,b,d,c):cP(a,d,c)};
cP=function(a,b,c){var d=a.j,e=a.api.Pc();d!==e&&a.api.Xn();d.seekTo(b,{Ie:"application_timelinemanager"});UEa(a,c)};
PEa=function(a,b,c,d){var e=ZO(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.TD(a.X,b.playerVars);f.Ac=b.Ac;a.api.Lp(f,b.playerType)}f=a.api.Pc();e||f.addCueRange(b.bp.Qd);f.seekTo(c,{Ie:"application_timelinemanager"});UEa(a,d)};
UEa=function(a,b){a=a.api.Pc();var c=a.getPlayerState();g.gG(b)&&!g.gG(c)?a.playVideo():g.U(b,4)&&!g.U(c,4)&&a.pauseVideo()};
bP=function(a,b){a.Y=NaN;a.S.stop();a.C&&b&&RO(a.C);a.D=null;a.C=null};
ZO=function(a,b){a=a.api.Pc();return!!a&&a.getVideoData().Ac===b.Ac};
VEa=function(a){var b=a.u.find(function(e){return ZO(a,e)});
if(b){var c=a.api.Pc();$O(a);var d=new g.aG(8);b=TEa(a,b)/1E3;cP(a,b,d);c.xa("forceParentTransition",{childPlayback:1});a.j.xa("forceParentTransition",{parentPlayback:1})}};
dP=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.r(a.J),k=f.next();!k.done;k=f.next()){var l=g.r(k.value);k=l.next().value;l=l.next().value;l.fl>=d&&l.target&&l.target.Sc<=e&&(a.j.removeCueRange(k),a.J.delete(k))}d=b;e=c;f=[];k=g.r(a.u);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.yc>=d&&l.Sc<=e){var m=a;m.K===l&&$O(m);ZO(m,l)&&m.api.Xn()}else f.push(l);a.u=f;d=aP(a,b/1E3);b=d.cn;d=d.Yr;b&&(d*=1E3,WEa(a,b,d,b.Sc===b.yc+b.durationMs?b.yc+d:b.Sc));(b=aP(a,c/1E3).cn)&&
XO(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Ac+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.yc+" parentReturnTimeMs="+b.Sc+"}.Child playbacks can only have duration updated not their start."))};
WEa=function(a,b,c,d){b.durationMs=c;b.Sc=d;d={Qd:YO(c,!0),fl:c,target:null};OEa(a,b,d);ZO(a,b)&&1E3*a.api.Pc().getCurrentTime()>c&&(b=TEa(a,b)/1E3,c=a.api.Pc().getPlayerState(),cP(a,b,c))};
XO=function(a,b,c,d){a.j.xa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
YEa=function(a){a&&"web"!==a&&XEa.includes(a)};
gP=function(a,b){g.G.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.L(function(){eP(c);fP(c)});
g.H(this,this.j)};
ZEa=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())hP(a,d.value,b);a.data=[];fP(a)};
eP=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire<b&&hP(a,c,!0)});
a.data=g.Zn(a.data,function(c){return!(c.expire<b)})};
hP=function(a,b,c){c&&a.u&&a.u(b.value)};
fP=function(a){a.j.stop();var b=Infinity;for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
g.iP=function(a){this.tag=a};
jP=function(){g.G.call(this);this.j=new gP(5,null);g.H(this,this.j)};
$Ea=function(a,b){return b?!!a.j.get(b):!1};
kP=function(){g.$p.call(this);this.D=new Map};
lP=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
aFa=function(a){return a.data[a.j]||0};
mP=function(a){g.G.call(this);this.B=a;this.j=new Map;this.u=new g.L(this.sample,250,this);g.H(this,this.u);this.start()};
nP=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
oP=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:aFa(c.buffer))||0};
pP=function(a){this.u=a;this.j=NaN;this.buffer=new lP(100)};
bFa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.Yb()+")":a.Yb()};
qP=function(a){g.G.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
sP=function(a){g.V.call(this,{G:"div",Ea:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.rP.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.kx=this.Ca(g.rP.VIDEO_CONTAINER);this.wv=new g.Hm(0,0,0,0);this.Jb=null;this.NC=new g.Hm(0,0,0,0);this.wG=this.zH=this.yH=NaN;this.FB=this.KC=this.rI=this.CM=!1;this.zF=NaN;this.cH=!1;this.zy=null;this.SH=function(){b.element.focus()};
this.xC=function(){b.app.Ra.ea("playerUnderlayVisibilityChange","visible");b.Jb.classList.remove(g.rP.VIDEO_CONTAINER_TRANSITIONING);b.Jb.removeEventListener(cFa,b.xC);b.Jb.removeEventListener("transitioncancel",b.xC)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,k,l){c.apply(b.element,[f,k,l])};
this.removeEventListener=function(f,k,l){d.apply(b.element,[f,k,l])};
var e=a.V();e.transparentBackground&&this.Mo("ytp-transparent");"0"===e.controlsType&&this.Mo("ytp-hide-controls");g.M(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.M(this.element,"ytp-linear-gradient-bottom-experiment");wua(e)&&g.M(this.element,"ytp-larger-tap-buttons");e.N("enable_new_paid_product_placement")&&!g.UC(e)&&g.M(this.element,"ytp-exp-ppp-update");WC(e)&&g.M(this.element,"ytp-exp-hybrid-controls");e.N("web_player_fit_cover_killswitch")||
g.M(this.element,"ytp-exp-fit-cover");Moa(this.element,"version",dFa(a));this.YQ=!1;this.Dx=new g.yh(NaN,NaN);eFa(this);this.T(a.Ra,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
eFa=function(a){function b(){a.Jb&&tP(a);uP(a)!==a.cH&&a.resize()}
function c(k,l){a.Bp(k,l)}
function d(k){k.getVideoData()&&a.updateVideoData(k.getVideoData())}
function e(){a.NC=new g.Hm(0,0,0,0);a.wv=new g.Hm(0,0,0,0)}
var f=a.app.Ra;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.pf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
fFa=function(a){var b=g.GJ(a.app);if(b=b?b.getVideoData():null){if(g.rE(b)||g.sE(b)||g.uE(b))return 16/9;if(bE(b)&&b.C.j)return a=b.C.videoInfos[0].video,vP(a.width,a.height)}return(a=a.Jb)?vP(a.videoWidth,a.videoHeight):16/9};
gFa=function(a,b,c,d){var e=c,f=vP(b.width,b.height);a.CM?e=c<f?Infinity:0:isNaN(a.wG)?isNaN(a.zH)||(e=a.zH):e=a.wG;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};
vP=function(a,b){return 1>Math.abs(wP*b-a)||1>Math.abs(wP/a-b)?wP:a/b};
uP=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.GJ(a.app);if(!b||b.gm())return!1;var c=a.app.Ra.yb();a=!g.U(c,2)||!a.app.V().N("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ia;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()};
tP=function(a){var b="3"===a.app.V().controlsType&&!a.FB&&uP(a)&&!a.app.Ey||!1;a.Jb.controls=b;a.Jb.tabIndex=b?0:-1;b?a.Jb.removeEventListener("focus",a.SH):a.app.V().N("disable_focus_redirect")||a.Jb.addEventListener("focus",a.SH)};
hFa=function(a){var b=a.Zh(),c=1,d=!1,e=gFa(a,b,a.getVideoAspectRatio()),f=a.app.V().N("enable_desktop_player_underlay"),k=es(),l=g.sB(a.app.V().experiments,"player_underlay_min_player_width");l=f&&a.rI&&a.getPlayerSize().width>l;if(uP(a)){var m=fFa(a);var n=isNaN(m)||g.ot||xP&&g.Qs||l;fs&&!g.sc(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=.02*a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.Hm(n,0,b.width,
b.height)):n=new g.Hm(0,0,b.width,b.height):(c=e.aspectRatio/m,n=new g.Hm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Qs&&(m=n.width-b.height*m,0<m&&(n.width+=m,n.height+=m)));if(k||a.YQ)a.Jb.style.display="";a.cH=!0}else{n=-b.height;fs?n*=window.devicePixelRatio:g.YC&&(n-=window.screen.height);n=new g.Hm(0,n,b.width,b.height);if(k||a.YQ)a.Jb.style.display="none";a.cH=!1}Im(a.NC,n)||(a.NC=n,g.zC(a.app.V())?(a.Jb.style.setProperty("width",n.width+"px","important"),a.Jb.style.setProperty("height",
n.height+"px","important")):g.Um(a.Jb,n.getSize()),d=new g.wh(n.left,n.top),g.Qm(a.Jb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Hm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Im(a.wv,b)||(a.wv=b,d=!0);g.Km(a.Jb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.KC&&(l&&(a.Jb.addEventListener(cFa,a.xC),a.Jb.addEventListener("transitioncancel",a.xC),a.Jb.classList.add(g.rP.VIDEO_CONTAINER_TRANSITIONING)),a.KC=l,a.app.Ra.ea("playerUnderlayVisibilityChange",a.KC?"transitioning":"hidden"));
return d};
iFa=function(){this.csn=g.Tv();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
jFa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
kFa=function(a){if(a.csn!==g.Tv())if("UNDEFINED_CSN"===a.csn)a.csn=g.Tv();else{var b=g.Tv(),c=g.Sv();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.Xv(void 0,b,c,[e])}if(b)for(a=g.r(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Yv(b,c)}};
yP=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.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"};
zP=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.ci("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.j*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.ci("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*
c,a.u.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.r(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
AP=function(a){var b=null;b={G:"button",Ea:["html5-video-info-panel-close","ytp-button"],W:{title:"close"},oa:"[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",oa:"Video ID / sCPN"},{G:"span",oa:"{{video_id_and_cpn}}",L:"ytp-sfn-cpn"}]},{G:"div",U:[{G:"div",oa:"Viewport / Frames"},{G:"span",oa:"{{dims_and_frames}}"}]},{G:"div",U:[{G:"div",oa:"Current / Optimal Res"},{G:"span",oa:"{{resolution}}"}]},{G:"div",U:[{G:"div",
oa:"Volume / Normalized"},{G:"span",oa:"{{volume}}"}]},{G:"div",U:[{G:"div",oa:"Codecs"},{G:"span",oa:"{{codecs}}"}]},{G:"div",W:{style:"{{shader_info_style}}"},U:[{G:"div",oa:"Shader Info"},{G:"span",oa:"{{shader_info}}"}]},{G:"div",W:{style:"{{color_style}}"},U:[{G:"div",oa:"Color"},{G:"span",oa:"{{color}}"}]},{G:"div",W:{style:"{{drm_style}}"},U:[{G:"div",oa:"Protected"},{G:"span",oa:"{{drm}}"}]},{G:"div",W:{style:"{{bandwidth_style}}"},U:[{G:"div",oa:"Connection Speed"},{G:"span",U:[{G:"span",
oa:"{{bandwidth_chart}}"},{G:"span",oa:"{{bandwidth_kbps}}"}]}]},{G:"div",W:{style:"{{network_activity_style}}"},U:[{G:"div",oa:"Network Activity"},{G:"span",U:[{G:"span",oa:"{{network_activity_chart}}"},{G:"span",oa:"{{network_activity_bytes}}"}]}]},{G:"div",U:[{G:"div",oa:"Buffer Health"},{G:"span",U:[{G:"span",oa:"{{buffer_health_chart}}"},{G:"span",oa:"{{buffer_health_seconds}}"}]}]},{G:"div",W:{style:"{{live_latency_style}}"},U:[{G:"div",oa:"Live Latency"},{G:"span",U:[{G:"span",oa:"{{live_latency_chart}}"},
{G:"span",oa:"{{live_latency_secs}}"}]}]},{G:"div",W:{style:"{{live_mode_style}}"},U:[{G:"div",oa:"Live Mode"},{G:"span",oa:"{{live_mode}}"}]},{G:"div",W:{style:"{{playback_categories_style}}"},U:[{G:"div",oa:"Playback Categories"},{G:"span",oa:"{{playback_categories}}"}]},{G:"div",U:[{G:"div",oa:"Mystery Text"},{G:"span",oa:"{{debug_info}}"}]},{G:"div",U:[{G:"div",oa:"Date"},{G:"span",oa:"{{date}}"}]},{G:"div",W:{style:"{{cotn_and_local_media_style}}"},U:[{G:"div",oa:"COTN / Local Media"},{G:"span",
oa:"{{cotn_and_local_media}}"}]},{G:"div",W:{style:"{{release_style}}"},U:[{G:"div",oa:"Player Release"},{G:"span",oa:"{{release_name}}"}]}]}]});b?(b=this.Ca("html5-video-info-panel-close"),this.T(b,"click",this.hide)):this.T(this.element,"click",this.hide);b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.D={};this.j=new yP(300,1,150,b,c);g.H(this,this.j);this.Ka("bandwidth_chart",this.j);this.B=new yP(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.B);this.Ka("live_latency_chart",this.B);this.u=new yP(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.u);this.Ka("buffer_health_chart",this.u);this.C=new yP(300,1,150,d,c);g.H(this,this.C);this.Ka("network_activity_chart",this.C);this.delay=
new g.L(this.Ha,500,this);g.H(this,this.delay);this.Ra=a};
lFa=function(a){a=void 0===a?{}:a;var b=a.Ei,c=a.Hh,d=a.getLastSegmentNumber,e=a.Cu;this.pn=a.pn;this.Ei=b;this.Hh=c;this.getLastSegmentNumber=d;this.Cu=e};
mFa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.pn||b===c&&(a=a.Cu())&&b===a.Ja?!0:!1};
nFa=function(a,b,c){if(!mFa(a,b))return 0;if(!a.Ei||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Cu())&&b===a.Ja&&!a.pending?2:1};
BP=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
oFa=function(a,b){var c=Math.min(2.5,aC(a.schedule));a=CP(a);return b-c*a};
DP=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Me&&(d=Math.abs(d));d/=a.playbackRate;var f=1/cC(a.schedule);var k=Math.max(.9*(d-3),aC(a.schedule)+2048*f);c=k/f*a.policy.Xm/(b+c);c=Math.min(c,d);a.policy.Pe&&e&&(c=Math.max(c,a.policy.Pe));return pFa(a,c,b)};
pFa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Wm*c),Math.min(Math.min(a.policy.La,31*c),Math.ceil(b*c))))||65536};
CP=function(a){return cC(a.schedule,!a.policy.gk,a.policy.Vm)};
EP=function(a){return CP(a)/a.playbackRate};
qFa=function(a,b,c,d,e){this.Sa=a;this.j=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.B=0;this.u=!1;this.C=this.j.isManifestless&&!this.j.Lf;this.D=null};
rFa=function(a,b){var c=a.j.index,d=a.u.Ja;Lz(c,d)||b&&b.Ja===d?(a.D=!Lz(c,d),a.S=!Lz(c,d)):(a.D=!0,a.S=!0)};
tFa=function(a,b,c,d){if(!b.j.Kf())return d=a.policy.Mw&&!!b.B.length&&b.B[0]instanceof FP,0===c||d||GP(b),c;a=HP(b,c);if(!isNaN(a))return a;GP(b);IP(b.C);return d&&(d=uA(d.ag(),c),!isNaN(d))?(JP(b,d+sFa),c):JP(b,c)};
xFa=function(a,b,c,d){if(a.u&&a.B){var e=uFa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.C=!0;g.vi(function(){a.Sa.xa("seekreason",{reason:"behindMinSq",tgt:e});vFa(a,e)});
return}}c?a.videoTrack.S=!1:a.audioTrack.S=!1;var f=a.policy.wt||!a.C;0<=HP(a.videoTrack,a.B)&&0<=HP(a.audioTrack,a.B)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Sa.xa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.vi(function(){if(a.C||!a.policy.Ua)wFa(a);else{var k=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>=k&&a.B<k+l+.1?((c?a.videoTrack:a.audioTrack).D=
!1,a.videoTrack.D||a.audioTrack.D||(a.Sa.xa("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Sa.xa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.B,actual:k,duration:l,isVideo:c}),a.seek(a.B)):(a.Sa.xa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.B,actual:k}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Sa.ya.seekTo(k+.1,{Er:!0,Ie:"chunkSelectorSynchronizeMedia",Pq:!0})))}})};
uFa=function(a,b,c){if(!a.u)return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.B);return(Lz(c,a.j.Ye)||b.Ja===a.j.Ye)&&d<a.j.Ye?a.j.getMinSeekableTime():-1};
vFa=function(a,b){a.C&&-1!==a.videoTrack.J&&-1!==a.audioTrack.J&&(a.C=!1,a.Sa.ya.seekTo(b+.1,{Er:!0,Ie:"chunkSelectorSynchronize",Pq:!0}))};
wFa=function(a){var b=-1!==a.videoTrack.J,c=-1!==a.audioTrack.J;if(!b||!c)if(b=!b&&a.videoTrack.og(),c=!c&&a.audioTrack.og(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.J=c.og().info.Ja,-1!==b.J){var d=Math.max(b.j.index.getStartTime(b.J),c.j.index.getStartTime(c.J));NA(a.j)&&432E3<Math.abs(d-NA(a.j))&&fta(a.j);g.vi(function(){return vFa(a,d)});
a.Sa.xa("initManifestlessSync",{st:d,a:a.audioTrack.J,v:a.videoTrack.J});a.D&&(a.D.resolve(d+.1),a.D=null)}};
yFa=function(a){this.j=a;this.J=this.K=this.B=this.C=0;this.ticks={}};
KP=function(a,b,c,d,e,f){g.iv.call(this);this.Sa=a;this.S=b;this.policy=c;this.J=d;this.Aa=e;this.ma=this.j=null;this.B=this.D=NaN;this.K=0;this.Y=NaN;this.C=null;this.ra=new Map;this.Z="";this.va=0;this.u=f?1:0};
LP=function(a,b,c){b.startSecs+=isNaN(a.K)?0:a.K;a=a.S;a.Z.push(b);a.ea("cuepointsadded",c)};
zFa=function(a,b,c,d){c.ey?MP(a,4,"cue"):(a.B=b.j[0].Ja,a.D=b.j[0].B,a.xa("sdai",{joinad:a.u,sg:a.B,st:a.D.toFixed(3)}),a.Y=Date.now(),MP(a,2,"join"),d.yG(c.Rd))};
AFa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
CFa=function(a,b,c,d){BFa(a.J,d,c,b);BFa(a.Aa,d,c,b);PA(a.S,d,!0);PA(a.S,d,!1);a.xa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
DFa=function(a,b){if(a.j){var c=a.j.Rd.durationSecs-(b.startTime+a.K-a.j.Rd.startSecs);0>=c||(c=new Bw(a.j.Rd.startSecs-(isNaN(a.K)?0:a.K),c,a.j.Rd.context,a.j.Rd.identifier,"stop",a.j.Rd.j+1E3*b.duration),a.xa("cuepointdiscontinuity",{segNum:b.Ja}),LP(a,c,b.Ja))}};
MP=function(a,b,c){a.u!==b&&(a.xa("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
EFa=function(a,b,c,d){(void 0===d?0:d)?MP(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&MP(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
NP=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
FFa=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Sa=a;this.ra=b;this.policy=c;this.C=d;this.J=e;this.gb=f;this.logger=new g.iP("dash/abr");this.j=SD;this.u=this.K=null;this.Y=-1;this.Ia=!1;this.nextVideo=this.B=null;this.D=[];this.Aa={};this.videoIndex=0;this.Ua=this.Z=this.S=!1;this.va=0;this.Ta=new Set;this.Xa=!1;this.ma=new Map;this.La=0;this.ib=!1;this.Ga=null};
KFa=function(a,b,c){OP(a,b);GFa(a,c);a.K=a.B;HFa(a);IFa(a);a.u=a.nextVideo;a.K=a.B;return JFa(a)};
LFa=function(a,b){if(a.j.equals(b))return null;if("m"===b.reason&&b.isLocked())return OP(a,b),a.videoIndex=a.D.length-1,PP(a),QP(a),a.Z=a.Z||a.u!==a.nextVideo,a.u=a.nextVideo,new NP(a.B,a.u,b.reason);"r"===b.reason&&(a.Y=-1);OP(a,b);QP(a);if("r"===b.reason&&a.nextVideo===a.u)return new NP(a.B,a.nextVideo,b.reason);a.u&&a.nextVideo&&RP(a,a.u.info)<RP(a,a.nextVideo.info)&&(b=a.j.reason,a.S=a.S||"r"===b||"u"===b||"v"===b);return null};
MFa=function(a,b){if(b.info.video){if(a.u!==b)return a.u=b,JFa(a)}else a.Ua=a.K!==b,a.K=b;return null};
SP=function(a,b,c){a.La+=1;if(void 0===c?0:c)a.ib=!0;c=6E4*Math.pow(2,a.La);a.ma.set(b.info.id,(0,g.R)()+c);a.Y=-1;OP(a,a.j)};
TP=function(a){if(a.ma.size){for(var b=(0,g.R)(),c=g.r(a.ma.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ma.clear()}return!1};
NFa=function(a,b){return new NP(a.K,a.u,b||a.j.reason)};
JFa=function(a){a.Ia?a.Ia=!1:a.Y=(0,g.R)();a.S=!1;return new NP(a.K,a.u,a.j.reason)};
OFa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],k=f&&eA(f)&&f.video.j>a.policy.S,l=e<=a.policy.S?eA(d):cA(d);if(!f||k||l)c[e]=d}return c};
OP=function(a,b){a.j=b;var c=a.J.videoInfos;if(!a.j.isLocked()){var d=(0,g.R)();c=g.Zn(c,function(q){if(q.Qb>this.policy.Qb)return!1;var t=this.C.j[q.id],v=t.info.j;return this.policy.At&&this.Ta.has(v)||this.ma.get(q.id)>d||4<t.u.u||4<t.S?!1:t.C?!1:!0},a);
a.ib&&TP(a)&&(c=a.policy.zt?g.Zn(c,function(q){return 854>=q.video.width&&480>=q.video.height}):g.Zn(c,function(q){return 480>=q.video.j}))}c.length||(c=a.J.videoInfos);
var e=g.Zn(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.fk&&xP&&g.Qs&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)}));
if(0<e.length)if(zA()){var k=OFa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.j===k[q.video.j].j})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=OFa(a,b)[n].j;e=e.filter(function(q){return!!q&&!!q.video&&q.j===p})}}e.length||(e=[c[0]]);
e.sort(function(q,t){return RP(a,q)-RP(a,t)});
c={};for(b=1;b<e.length;c={Wz:c.Wz,Vz:c.Vz},b++)c.Vz=e[b-1],c.Wz=e[b],c.Vz.video.width>c.Wz.video.width?(g.Vb(e,b),b--):RP(a,c.Vz)*a.policy.B>RP(a,c.Wz)&&(g.Vb(e,b-1),b--);c=e[e.length-1];a.Xa=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;uBa(a.policy,c)};
GFa=function(a,b){b?a.B=a.C.j[b]:(b=(b=g.Pb(a.J.j,function(c){return!!c.Ic&&c.Ic.isDefault}))||a.J.j[0],a.B=a.C.j[b.id]);
PP(a)};
PFa=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=EP(a.ra)/a.policy.B;return RP(a,b.info)+RP(a,a.D[c])>d};
PP=function(a){if(!a.B||!a.policy.u)if(!a.B||!a.B.info.Ic)if(a.B=a.C.j[a.J.j[0].id],1<a.J.j.length){var b=!1;if(a.policy.Ta){if(b=!0,a.policy.Sm){var c=Ob(a.J.j,function(d){return"250"===d.Yb()});
0<=c&&(a.B=a.C.j[a.J.j[c].id],b=PFa(a,a.B))}}else b=a.j.isLocked()?240>a.j.j:PFa(a,a.B);b&&(a.B=a.C.j[g.Nb(a.J.j).id])}};
QP=function(a){a.policy.Tg&&(a.Ga=a.Ga||new g.L(function(){a.policy.Tg&&a.u&&!TP(a)&&1===Math.floor(10*Math.random())?(SP(a,a.u),a.S=!0):a.Ga.start()},6E4),g.zp(a.Ga));
if(!a.nextVideo||!a.policy.u)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Nb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=EP(a.ra),d=RP(a,a.B.info),e=c/a.policy.C-d;0<b&&!(RP(a,a.D[b])<=e);b--);for(var f=c/a.policy.B-d;b<a.D.length-1&&!(RP(a,a.D[b+1])>=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var k=a.j;return"Adapt to: "+zsa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
f.toFixed(0)+", constraint: ["+(k.u+"-"+k.j+", override: "+(k.B+", reason: "+k.reason+"]"))});
a.videoIndex=b}};
HFa=function(a){var b=a.policy.C,c=EP(a.ra),d=c/b-RP(a,a.B.info);b=g.Qb(a.D,function(e){return RP(this,e)<d},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+zsa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
IFa=function(a){if(a.gb.length){var b=a.gb,c=function(d,e){if("f"===d.info.j||b.includes(nz(d,a.C.isLive,a.Sa.wh(),a.policy.ib)))return d;for(var f={},k=0;k<e.length;f={Zz:f.Zz,bA:f.bA},k++){var l=a.C.j[e[k].id],m=nz(l,a.C.isLive,a.Sa.wh(),a.policy.ib);if(b.includes(m)){m=d.info.j;var n=l.info.j;if(m===n||zA())return f.Zz=d.info.Yb(),f.bA=l.info.Yb(),a.Sa.xa("ombifa",{f:f.Zz,t:f.bA}),a.logger.info(function(p){return function(){return"Initial format selection changed from "+p.Zz+" to "+p.bA+" based on prefetched media."}}(f)),
a.Ia=!0,l;
a.Sa.xa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Sa.xa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.J.videoInfos);a.B=c(a.B,a.J.j)}};
RP=function(a,b){if(!a.Aa[b.id]){var c=a.C.j[b.id].index.getLocalMaxByterate(a.va,15);c=b.Vt&&a.u&&a.u.index.isLoaded()?c||b.Vt:c||b.Qb;a.Aa[b.id]=c}c=a.Aa[b.id];a.policy.ud&&b.video&&b.video.j>a.policy.ud&&(c*=1.5);return c};
QFa=function(a,b){a=Of(a.C.j,function(c){return c.info.Yb()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
RFa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(Qsa(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.D.length;c++){var d=a.D[c].Yb();b.push(d)}b.reverse()}return b};
SFa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
Vua=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=UP.kq("woe");d=new g.MB(a.u);return g.A(f,d.encrypt(b,a.j),2)}e=f.u;UP.gp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
$ua=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=UP.kq("wod");d=new g.MB(a.u);return g.A(f,d.decrypt(b,a.j),2)}e=f.u;UP.gp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
VP=function(a,b,c){this.policy=a;this.j=b;this.va=c;this.B=this.u=0;this.Bf=null;this.Z=new Set;this.S=[];this.indexRange=this.initRange=null;this.Y=new qO;this.ma=this.ra=!1;a:{if(this.policy.De&&this.policy.Ot){b={};c=g.r(this.policy.De);for(var d=c.next();!d.done;b={Xz:b.Xz,Yz:b.Yz},d=c.next())if(d=g.or(d.value),b.Xz=+d.clen,b.Yz=+d.csz,0<b.Xz&&0<b.Yz&&this.policy.u===d.docid&&this.j.info.id===d.fmtid&&this.j.info.lastModified===+d.lmt){c={};b=(c.clen=b.Xz,c.csz=b.Yz,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.Bt,this.C=0,this.K=g.Pv(16),this.J=g.Pv(16));this.D=new Uint8Array(this.chunkSize);this.K&&this.J&&(this.crypto=new SFa(this.K,this.J))};
WP=function(a){return!!a.Bf&&sz(a.Bf)};
VFa=function(a,b){if(!WP(a)&&!a.isDisposed()){if(!(a.ra||(a.ra=!0,0<a.C))){var c=XP(a);c=BD(a.policy.u,a.j.info,YP(a),c);ZP(a,c)}if(1===b.info.type)a.initRange=qz(0,b.j.totalLength);else if(2===b.info.type){if(!a.Bf||1!==a.Bf.type)throw Error("deprecated use case");a.indexRange=qz(a.initRange.end+1,b.j.totalLength)}else if(3===b.info.type){if(3===a.Bf.type&&!vz(a.Bf,b.info)&&(a.S=[],b.info.Ja!==wz(a.Bf)||0!==b.info.zb))return;if(b.info.le){c=g.r(a.S);for(var d=c.next();!d.done;d=c.next())TFa(a,d.value);
a.S=[]}else{a.S.push(b);a.Bf=b.info;return}}a.Bf=b.info;TFa(a,b);UFa(a)}};
TFa=function(a,b){var c=0,d=ny(b.j);if(a.B<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.zb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c<d.length;){e.hw=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.hw);a.D.set(f,a.u);a.u+=e.hw;c+=e.hw;if(a.u===a.D.length){if(b.info===a.Bf&&WP(a)&&c===d.length)break;f=XP(a);f=BD(a.policy.u,a.j.info,YP(a),f,a.B,a.D,a.crypto);a.policy.gb&&a.Z.add(f);ZP(a,
f);a.isDisposed()||(f=XP(a),a.va(YP(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}e={hw:e.hw}}};
UFa=function(a){if(WP(a)){var b=new Uint8Array(a.D.buffer,0,a.u),c=WFa(a),d=a.policy.u;if(a.policy.gb)Promise.all(a.Z).then(function(){var f=BD(d,a.Bf.j.info,YP(a),c,a.B,b,a.crypto);ZP(a,f,!0)});
else{var e=BD(a.policy.u,a.Bf.j.info,YP(a),c,a.B,b,a.crypto);ZP(a,e,!0)}}};
XP=function(a){return{downloadedEndTime:Math.round(a.Bf?a.Bf.C:0),maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Vt)}};
WFa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Vt)}};
YP=function(a){var b={lmt:a.j.info.lastModified,docid:a.policy.u,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(b.ck=a.K,b.civ=a.J);var c="local://localhost/videoplayback?"+lr(b),d,e;b={itag:+a.j.info.Yb(),mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Qb,lastModified:String(a.j.info.lastModified),initRange:null==(d=a.initRange)?void 0:Ora(d),indexRange:null==(e=a.indexRange)?void 0:Ora(e),url:c};d=a.j.info;if(d=0<d.id.indexOf(";")?d.id.split(";")[1]:
null)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
ZP=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.policy.gb&&a.Z.delete(b);(c||4===d)&&a.Y.resolve(d)},function(d){a.Y.reject(d)})};
XFa=function(a){a=g.Sy(a,1886614376);for(var b=g.r(a),c=b.next();!c.done;c=b.next());return g.Wl(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
YFa=function(a){var b=Yl(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
ZFa=function(a,b,c,d,e){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e};
$P=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.u=[];this.Xe=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Xe=!0};
aGa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var k=d.getUint32(c+28);f+=16*k+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=$Fa;if(aQ.length){var p=aQ.pop();gd(p);p.j.init(n,void 0,void 0,void 0);m=p}else m=new jd(n);try{var q=Ke(f);var t=Le(new q.gr,m,q);break b}finally{m.j.clear(),m.C=-1,m.u=-1,100>aQ.length&&aQ.push(m)}t=
void 0}m=t;if(null!==m){var v=m;break a}}catch(x){}}c+=e}v=null}catch(x){v=null}}if(null!=v){b=g.Yd(v,7);null==b||a.Xe||(a.cryptoPeriodIndex=b);b=g.Yd(v,10);null!=b&&0<b&&!a.Xe&&(a.j=b);b=g.$d(v,2,!1);if(b.length&&!(Jd(b)&4)){Object.isFrozen(b)&&(b=Kd(b.slice()),g.D(v,2,b,void 0,!0));for(c=0;c<b.length;c++)b[c]=Pd(b[c]);Id(b,5)}Ld(v.Ud)&&Object.freeze(b);v=g.r(b);for(b=v.next();!b.done;b=v.next())a.u.push(g.wc(Sc(b.value),4))}};
bGa=function(a){return isNaN(a.cryptoPeriodIndex)?g.wc(a.initData):""+a.cryptoPeriodIndex};
bQ=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.cz?void 0:d.cz;d=void 0===d.HB?!1:d.HB;this.videoId=a;this.status=b;this.videoDuration=c;this.cz=e;this.HB=d};
cGa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
cQ=function(a){this.j=a;this.offset=0};
dQ=function(a){if(a.offset>=a.j.totalLength)throw Error();return oy(a.j,a.offset++)};
dGa=function(a,b){b=void 0===b?!1:b;var c=dQ(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=dQ(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+dQ(a),d*=128;return b?c:c-d};
fQ=function(a,b,c){var d=this;this.Sa=a;this.policy=b;this.D=c;this.logger=new g.iP("dash");this.u=[];this.j=null;this.ma=-1;this.S=0;this.va=NaN;this.Y=0;this.B=NaN;this.Ga=this.Ia=0;this.Ua=-1;this.Aa=this.C=this.K=this.ra=null;this.Xa=this.Ta=NaN;this.J=this.Z=this.La=this.gb=null;this.ib=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.J=new VP(this.policy,e,function(k,l,m){eQ(a,new bQ(d.policy.u,2,{cz:new cGa(f,k,e.info,l,m)}))});
this.J.Y.promise.then(function(k){d.J=null;1===k&&eQ(a,new bQ(d.policy.u,k))},function(k){var l=(k.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
d.logger.info(function(){return"Failed to write to disk: "+l});
d.Sa.xa("dldbwerr",{em:l});eGa(d);eQ(a,new bQ(d.policy.u,4,{HB:!0}))})}};
fGa=function(a){return a.u.length?a.u[0]:null};
gQ=function(a){return a.u.length?a.u[a.u.length-1]:null};
jGa=function(a,b,c){if(a.C){var d=a.C.zb+a.C.u;if(0<c.info.zb)if(c.info.Ja===a.C.Ja&&c.info.zb<d){if(c.info.zb+c.info.u<=d)return;c=nsa(c,d-c.info.zb)[1]}else if(0<=c.info.Ja&&0<=a.C.Ja&&!vz(a.C,c.info))throw new g.Is("improper_continuation",yz(a.C),yz(c.info));d=a.C;var e=c.info;(d.Ja!==e.Ja&&e.Ja!==d.Ja+1||d.type!==e.type?0:vz(d,e)||(vh(d.B,e.B)&&d.Ja===e.Ja?0:Rra(d,e)))||hQ(a,"d")}else if(0<c.info.zb)throw new g.Is("continuation_of_null",yz(c.info));a.C=c.info;a.D=c.info.j;d=b.rG();if(0===c.info.zb){if(a.j)throw new g.Is("slice_not_fully_processed",
yz(a.j.info),yz(c.info));iQ(a);a.Ia=d}else{if(a.policy.xt&&a.Ia&&d&&a.Ia!==d)throw a=new g.Is("lmt_mismatch",c.info.Ja,a.Ia,d),a.level="WARNING",a;!c.info.j.pm()&&a.K&&(d=c.info,e=a.K.j,d.D="updateWithEmsg",d.Ja=e)}if(a.j){d=osa(a.j,c);if(!d)throw new g.Is("failed_to_merge",yz(a.j.info),yz(c.info));a.j=d}else a.j=c;a:{c=g.Sz(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.le)break a;6===a.j.info.type?gGa(a,b,a.j):jQ(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.ma&&0===a.S){var f=a.j.j,
k=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=lra(f,l),n=lra(f,l+4);l+=m||1;if(1836019558===n)k=l;else if(1835295092===n){e=l;break}}0>e&&(k=-1)}else{f=new cQ(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=dGa(p,!0),t=dGa(p,!1);var v=q;var x=t}catch(z){x=v=-1}p=v;var y=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>k&&(k=n),m))break;163===p&&(k=Math.max(0,k),e=f.getOffset()+y);if(160===p){0>k&&(e=k=f.getOffset()+
y);break}f.skip(y)}}0>k&&(e=-1)}if(0>k)break;a.ma=k;a.S=e-k}if(a.ma>d)break;a.ma?(d=hGa(a,a.ma),d.D&&iGa(a,d),gGa(a,b,d),kQ(a,d),a.ma=0):a.S&&(d=hGa(a,0>a.S?Infinity:a.S),a.S-=d.j.totalLength,kQ(a,d))}}a.j&&a.j.info.le&&(kQ(a,a.j),a.j=null)};
jQ=function(a,b){!b.info.j.pm()&&0===b.info.zb&&(g.Sz(b.info.j.info)||b.info.j.info.Xe())&&usa(b);if(1===b.info.type)try{iGa(a,b),kGa(a,b)}catch(d){g.Iv(d);var c=xz(b.info);c.hms="1";a.Sa.handleError("fmt.unparseable",c||{},1)}b.info.j.CG(b);a.J&&VFa(a.J,b)};
IP=function(a){a.u=[];iQ(a);eGa(a)};
eGa=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
lGa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
lQ=function(a){return g.Wl(a.u,function(b){return b.info})};
hGa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=nsa(c,b);a.j=c[1];return c[0]};
iGa=function(a,b){var c=Rz(b);if(dA(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new Ty(c);Vy(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.j,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;cA(d)&&!dA(d)&&(d=Rz(b),(new Ty(d)).Pu(),Zy([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.Sz(d.info)?d.B=ura(c):d.info.Xe()&&(d.B=Bra(c))));b.info.j.info.Xe()&&
b.info.isVideo()&&(c=Rz(b),(new Ty(c)).Pu(),Zy([408125543,374648427,174,224],30320,c)&&Zy([408125543,374648427,174,224],21432,c));if(a.policy.Ow&&b.info.j.info.Xe()){c=Rz(b);var e=new Ty(c);if(Vy(e,[408125543,374648427,174,29637])){d=Yy(e,!0);e=e.start+e.j;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Gn()&&g.Sz(b.info.j.info)){d=Rz(b);c=g.Jy(d,0,1701606260);f=g.Jy(d,0,1836476516);if(c&&f){c.skip(2);var k=Ay(c),l=Cy(c);d=[];e=[];var m=[],n=[];if(k)for(k=0;k<l;++k)d.push(Dy(c)),
e.push(Dy(c)),m.push(Ay(c)),n.push(Ay(c));else for(k=0;k<l;++k)d.push(By(c)),e.push(By(c)),m.push(Ay(c)),n.push(Ay(c));c=g.Ky(f);c=new rra(e[0]/c,d[0]/c)}else c=null;if(c){if(g.Sz(b.info.j.info))for(d=Rz(b),e=g.Jy(d,0,1701082227);e;)e.markAsSkip(),e=g.Jy(d,e.offset+e.size,1701082227);a.ib=!0;b.info.j.D=c}}b.info.j.pm()||b.info.j.j||b.info.j.indexRange||vsa(b)};
gGa=function(a,b,c){if(c.info.j.pm()){if(a.ib&&mGa(c)&&(b=Rz(c),b=g.Jy(b,0,1953658222))){b.skip(1);var d=zy(b)<<16|Ay(b),e=d&1,f=d&4;if(d&256){var k=d&512,l=d&1024;d&=2048;var m=Cy(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=Cy(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.ra&&!!a.ra.D.D)if(b=c.info.isVideo())b=tsa(c),k=a.ra,mQ?(l=1/b,b=nQ(a,b)>=nQ(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&mGa(c)&&(b=a.ra,mQ?(l=tsa(c),k=1/l,l=nQ(a,l),b=nQ(b)+k-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,tra(Rz(c),b))}else{k=!1;a.K||(usa(c),c.u&&(a.K=c.u,k=!0,l=c.info,e=c.u.j,l.D="updateWithEmsg",l.Ja=e,l=c.u,l.C&&(a.D.index.u=!l.C),l=c.info.j.info,e=Rz(c),g.Sz(l)?Ry(e,1701671783):l.Xe()&&Zy([408125543],307544935,e)));a:{if(e=l=Tz(c,a.policy.Ia))e=c.info.j.info.Xe()&&160===oy(c.j,0);if(e)a.Y+=l,a.B=a.policy.fd?a.B+l:NaN;else{if(a.policy.Nr){var n=a.Sa.Pq(psa(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.fd&&isNaN(a.Ta)){g.Jv(new g.Is("Missing duration while processing previous chunk",
yz(c.info)));hQ(a,"m");break a}f=n-a.B;var p=f-a.Ga;d=c.info.Ja;var q=a.Aa?a.Aa.Ja:-1,t=a.Xa,v=a.Ta;m=a.policy.qf&&f>a.policy.qf;var x=a.policy.cf&&p>a.policy.cf;1E-4<Math.abs(p)&&(n={audio:""+ +a.Gn(),sq:d.toFixed(),sliceStart:n,lastSq:q.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},a.Sa.handleError("qoe.avsync",n),a.Ua=d);n=0;m||x||(e=a.B);a.ra&&!a.Gn()&&g.Sz(c.info.j.info)&&(x=a.ra,m=x.Ua,x=x.Ga,p=.02<Math.abs(x-f),
(d===m||d>m&&d>a.Ua)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),tra(Rz(c),d),d=Tz(c,a.policy.Ia),n=l-d,l=d));a.Ga=f+n}}else e=isNaN(a.B)?c.info.startTime:a.B;qsa(c,e)?(isNaN(a.va)&&(a.va=e),a.Y+=l,a.B=e+l):(l=xz(c.info),l.smst="1",a.Sa.handleError("fmt.unparseable",l||{},1))}}a.Aa=c.info;a.Ta=ssa(c);0<=c.C&&(a.Xa=c.C);if(k&&a.K){k=nGa(a,!0);zz(c.info,k);a.j&&zz(a.j.info,k);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())zz(l.value,k);(c.info.le||a.j&&a.j.info.le)&&6!==c.info.type||(a.Z=k,b=
a.Sa,b.j.isManifestless&&oGa(b,k,null,!!a.D.info.video),a.policy.pe||pGa(a))}}kGa(a,c);a.timestampOffset&&rsa(c,a.timestampOffset)};
kQ=function(a,b){if(b.info.le){a.gb=b.info;if(a.K){var c=a.K,d=nGa(a,!1),e=null;if(a.K.ey()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=c.data["Stitched-Video-Cpn"]?c.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],k=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())k.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=
g.r(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new ZFa(e,f,k,l,g.qra(c))}a.Sa.ZH(a.D,d,e);a.Z||a.policy.pe||pGa(a);a.Z=null}iQ(a)}a.J&&VFa(a.J,b);if(c=gQ(a))if(c=osa(c,b,a.policy.Nj)){a.u.pop();a.u.push(c);return}a.u.push(b)};
iQ=function(a){a.j=null;a.ma=-1;a.S=0;a.K=null;a.va=NaN;a.Y=0;a.Z=null};
hQ=function(a,b){b={rst4disc:b,cd:a.Ga.toFixed(3),sq:a.Aa?a.Aa.Ja:-1};a.B=NaN;a.Ga=0;a.Ua=-1;a.Aa=null;a.Xa=NaN;a.Ta=NaN;a.La=null;a.Sa.xa("mdstm",b)};
kGa=function(a,b){if(a.D.info.ke){if(b.info.j.info.Xe()){var c=new Ty(Rz(b));if(Vy(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Yy(c,!0);c=16!==d?null:cz(c,d)}else c=null;d="webm"}else b.info.K=XFa(Rz(b)),c=YFa(b.info.K),d="cenc";c&&c.length&&(c=new $P(c,d),c.Xe=b.info.j.info.Xe(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Sa.ev(c))}};
pGa=function(a){var b=a.K,c=ora(b);c&&(c.startSecs+=a.va,a.Sa.YH(a.D,c,b.j,b.ey()))};
nGa=function(a,b){var c,d=a.K;if(c=ora(d))c.startSecs+=a.va;return new gy(d.j,a.va,b?d.Uj:a.Y,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
mGa=function(a){return a.info.j.pm()&&a.info.Ja===a.info.j.index.getLastSegmentNumber()};
nQ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.D&&b&&(b+=a.D.D.j);return b+a.getDuration()};
qGa=function(a,b){0>b||(a.u.forEach(function(c){rsa(c,b)}),a.timestampOffset=b)};
oQ=function(a,b){this.info=a;this.callback=b;this.state=1;this.S=!1;this.C=0;this.D=!1;this.j=this.lastError=null};
rGa=function(a){return g.Xl(a.info.j,function(b){return 3===b.type})};
pQ=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
qQ=function(a,b){b&&a.state<b?pQ(a,b):a.callback&&a.callback(a,a.state)};
sGa=function(a,b){this.j=a;this.u=0;this.B=null;this.Je=[];this.C=null;(this.length=b?b:0)?1!==this.j.length||this.j[0].u||(this.j[0].u=this.length):1===this.j.length||g.Xl(this.j,function(c){return!!c.range})};
tGa=function(a,b,c){a.B&&(jy(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,k=0,l=g.r(a.j),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(tz(m)&&!c&&a.u+b.totalLength-k<f+m.u){a.B=b.split(k).Ns;break}var n=3===m.type||4===m.type,p=a,q=a.u-f,t=k,v=b,x=n&&d&&!e&&1===b.j.length,y=v.totalLength-t;m.range&&(y=Math.min(m.u-q,y));var z=m.range?m.zb+q+y===m.range.length:!!c;q=new rz(m.type,m.j,m.range,"reslice"+m.D,m.Ja,m.startTime,m.duration,m.zb+q,y,z&&sz(m),z);t=ky(v,t,y);
p.Je.push(new Qz(q,t,x));p=y;a.u+=p;k+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(k===b.totalLength)break}};
uGa=function(a){if(!a.Je.length)return[];var b=a.Je;a.Je=[];a.C=g.Nb(b).info;return b};
vGa=function(a){return a.length-a.u+a.Je.reduce(function(b,c){return b+c.j.totalLength},0)};
FP=function(a,b,c,d,e){oQ.call(this,c,e);var f=this;this.policy=a;this.u=b;this.me=d;this.B=new g.L(function(){f.isComplete()||(f.lastError="net.timeout",pQ(f,5))},this.policy.Nw);
this.Vd=function(){f.isDisposed()||(rQ(f.me,f.u)?(f.isComplete()||f.B.start(),f.me.Yg(f.u)&&qQ(f,2),f.me.Jf(f.u)&&(wGa(f.me,f.u)?pQ(f,4):(f.lastError="net.closed",pQ(f,5)))):(f.lastError="player.exception",pQ(f,5)))};
this.B.start();this.j=new sGa(this.info.j,Bz(this.info));xGa(this.me,this.u,this.Vd);g.vi(this.Vd)};
sQ=function(a,b,c){this.Sa=a;this.policy=b;this.j=c;this.B=[];this.u=this.hc=null;this.Z=this.ma=0;this.J=-1;this.S=!1;this.Y=-1;this.C=new fQ(a,b,c);this.Qb=c.info.Qb;this.K=c.oy();this.isManifestless=c.oy();this.D=this.K};
tQ=function(a,b){b&&mQ&&qGa(a.C,b.sG());a.hc=b};
uQ=function(a){return a.hc&&a.hc.rB()};
vQ=function(a,b){a.B.push(b);a.u=g.Nb(b.info.j)};
wQ=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();yGa(a,b);a.ma=b.tN()}a.B.length&&(b=a.B[0],b.vv()&&(!b.info.Pl()||a.policy.As||b instanceof FP)&&yGa(a,b))};
yGa=function(a,b){if(b.vv()){var c=b.pE();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Z&&b instanceof FP&&a.Sa.xa("omblss",{s:yz(d.info)}),zGa(a,b,d)}};
zGa=function(a,b,c){switch(c.info.type){case 1:case 2:jQ(a.C,c);break;case 4:var d=c.info.j,e=d.DK(c),f;(null==(f=a.u)?0:4===f.type)&&Vra(c.info,a.u)&&(a.u=d.Cv(a.u).pop());c=g.r(e);for(d=c.next();!d.done;d=c.next())zGa(a,b,d.value);break;case 3:jGa(a.C,b,c);break;case 6:jGa(a.C,b,c),a.u=c.info}};
HP=function(a,b,c){c=void 0===c?!1:c;if(a.hc){var d=a.hc.ag(),e=uA(d,b),f=NaN,k=uQ(a);k&&(f=uA(d,k.j.index.getStartTime(k.Ja)));if(e===f&&a.u&&a.u.u&&AGa(xQ(a),0))return b}a=BGa(a,b,c);return 0<=a?a:NaN};
JP=function(a,b){a.j.Kf();var c=BGa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.J)if(e=e.J,e.Bf&&3===e.Bf.type)e=e.Bf.startTime;else if(0<e.C){var f=e.j.index;f=g.gc(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.u=a.j.Bn(b).j[0];yQ(a)&&a.hc&&a.hc.abort();a.Z=0;return a.u.startTime};
CGa=function(a){a.K=!0;a.D=!0;a.J=-1;JP(a,Infinity)};
zQ=function(a){for(var b=0,c=g.r(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.j&&d.j.length?vGa(d.j):Yra(d.info),b+=d;return b+=lGa(a.C)};
AQ=function(a,b){if(!a.hc)return 0;var c=uQ(a);if(c&&sz(c))return c.C;a=a.hc.ag(!0);return Csa(a,b)};
BFa=function(a,b,c,d){GP(a);for(var e=a.C,f=null,k=e.u.length-1;0<=k;k--){var l=e.u[k];l.info.Ja>=b&&(e.u.pop(),e.B-=Tz(l,e.policy.Ia),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.La,e.policy.Ym&&0===e.u.length&&!e.C&&hQ(e,"r"));e.policy.Ym&&(k=f?f.Ja:-1,f=f?f.j.info.Yb():"",e.Sa.xa("mdstm",{rollbk:1,itag:f,popped:k,sq:b,lastslc:e.C?e.C.Ja:-1,lastfraget:e.B.toFixed(3)}));d>c?JP(a,d):a.u=a.j.Go(b-1,!1).j[0]};
DQ=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)BQ(a,b);else{for(;c<a.B.length;)BQ(a,a.B.pop());var d=CQ(a);d&&d.j.Jr()&&Zm(b.info.j,function(e){return Wra(e,d)})?a.u=d:uz(b.info.j[0])?a.u=b.j&&b.j.C?Ura(b.j.C):Tra(b.info.j[0]):a.u=null}};
yQ=function(a){var b;!(b="f"===a.j.info.j)&&(b=a.policy.u)&&(b=a.C,b=!!b.J&&WP(b.J));if(b)return!0;b=uQ(a);if(!b)return!1;var c=sz(b)&&b.le;return a.isManifestless&&0<a.Y?c||b.Ja>=a.Y:c};
DGa=function(a){var b;return yQ(a)||!(null==(b=gQ(a.C))||!sz(b.info))};
xQ=function(a){var b=[],c=uQ(a);c&&b.push(c);b=g.Zb(b,lQ(a.C));c=g.r(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.r(d.info.j),k=f.next();!k.done;e={qt:e.qt},k=f.next())e.qt=k.value,d.S&&(b=g.Zn(b,function(l){return function(m){return!Vra(m,l.qt)}}(e))),(uz(e.qt)||4===e.qt.type)&&b.push(e.qt)}a.u&&!Qra(a.u,g.Nb(b),a.u.j.pm())&&b.push(a.u);
return b};
AGa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Rra(a[b-1],a[b]))return!1;return!0};
BGa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=xQ(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var k=a[f];if(k.B<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:AGa(a,c?b:0)?a[b].startTime:NaN};
EQ=function(a){return!(!a.u||a.u.j===a.j)};
EGa=function(a){return EQ(a)&&a.j.Kf()&&a.u.j.info.Qb<a.j.info.Qb};
FGa=function(a,b,c){return(a=CQ(a))&&!sz(a)?a.C>b&&a.C<b+c:!1};
CQ=function(a){var b=gQ(a.C);return b?b.info:uQ(a)};
GP=function(a){for(var b=g.r(a.B),c=b.next();!c.done;c=b.next())BQ(a,c.value);a.B=[];a.u=null};
BQ=function(a,b){if(b.S&&!b.info.j[0].j.Jr()){a=a.C;if(a.Z&&!a.policy.Qg){var c=a.Sa;c.j.isManifestless&&PA(c.j,a.Z.Ja,!!a.D.info.video)}a.Z=null;a.K=null;a.C=a.gb;a.B=a.C?a.B-a.Y:NaN;iQ(a)}b.dispose()};
GGa=function(a){return!!a.u&&-1!==a.u.Ja&&a.u.Ja<a.j.index.getFirstSegmentNumber()};
HGa=function(a){var b=a.u;b&&-1===b.Ja&&(a=gQ(a.C))&&uz(a.info)&&(a=a.info.Ja,b.D="updateLastSliceRequested",b.Ja=a)};
IGa=function(a){return Zm(a.B,function(b){return b.D})};
FQ=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.j=new iy;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.fv()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.u=f;e.B+=f.length;f=(0,g.R)();f-e.D>e.policy.j&&(e.callbacks.hs(f,e.B),e.D=f)},function(){},d.body||null)};
KGa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=pz(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new iy;JGa(this).then(function(){c.callbacks.Zp()},function(d){c.error=""+d||"unknown_err";
c.callbacks.Zp()})};
JGa=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){if(1==z.j){a.status=200;b=a.j.get("docid");c=Ch(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new SFa(a.j.get("ck"),a.j.get("civ")));k=a.range;l=Math.floor(k.start/e);m=Math.floor(k.end/e);n=l}if(5!=z.j)return n<=m?g.A(z,ava(b,c,d,n,f),5):z.Va(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e;
v=Math.max(0,k.start-q);x=Math.min(k.end+1,t)-(v+q);y=new Uint8Array(p.buffer,v,x);a.u.append(y);a.loaded+=x;a.loaded<k.length&&a.callbacks.hs((0,g.R)(),a.loaded);n++;return z.Va(2)})};
GQ=function(a,b){var c=b.Ph,d=void 0===b.zk?1:b.zk,e=void 0===b.CC?d:b.CC,f=void 0===b.Pl?!1:b.Pl,k=void 0===b.In?!1:b.In,l=void 0===b.OF?!1:b.OF,m=b.oi,n=b.Ja;b=b.Gf;this.callbacks=a;this.requestNumber=++LGa;this.j=this.now();this.ra=this.La=NaN;this.Ga=0;this.C=this.j;this.u=0;this.Ta=this.j;this.va=0;this.Ua=this.Ia=this.isActive=!1;this.B=0;this.Z=NaN;this.K=this.D=Infinity;this.S=NaN;this.Aa=!1;this.Y=NaN;this.J=void 0;this.Ph=c;this.policy=this.Ph.ra;this.zk=d;this.CC=e;this.Pl=f;this.In=k;
l&&(this.J=[]);this.oi=m;this.Ja=n;this.Gf=b;this.snapshot=dC(this.Ph);MGa(this);NGa(this,this.j);this.Z=(this.Y-this.j)/1E3};
OGa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
HQ=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.Z).toFixed(),pb:a.zk,stall:(1E3*a.B).toFixed(),hrt:(a.La-a.j).toFixed(),elt:(a.ra-a.j).toFixed(),elb:a.Ga};a.url&&XDa(b,a.url);return b};
QGa=function(a,b,c,d){if(!a.Ia){a.Ia=!0;if(!a.In){IQ(a,b,c);PGa(a,b,c);var e=a.kp();if(2===e&&d)JQ(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Ua&&KQ(a)&&JQ(a,d,c),KQ(a)&&(d=a.Ph,c=Math.max(c,2048),d.j.Nh(1,a.B/c),eC(d));c=a.Ph;b=(b-a.j)/1E3||.05;d=a.Z;e=a.Pl;c.J.Nh(b,a.u/b);c.C=$B();e||c.u.Nh(1,b-d)}a.deactivate()}};
PGa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.kp();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&JQ(a,.05,e)):JQ(a,d,e),a.Ua=!0);else if(LQ(a,c)){if(1===f&&(f=(b-a.j)/1E3,!RGa(a)&&!a.In)){var k=a.Ph;k.K.Nh(1,f);eC(k)}a.ra=b;a.Ga=c;a.isActive=!0}a.In||eua(a.Ph,d,e);a.C=b;a.u=c};
JQ=function(a,b,c){a.In||(b=Math.max(b,.05),a=a.Ph,a.B.Nh(b,c/b),a.C=$B())};
IQ=function(a,b,c){c=Math.round(c/1024);a.J&&a.J.push(MQ(b-a.Ta,c-a.va));a.Ta=b;a.va=c};
SGa=function(a){return a.J?a.J.join(""):""};
LQ=function(a,b){return b?a.oi&&1!==a.kp()?!0:2048<=b:!1};
KQ=function(a){return LQ(a,a.u)};
TGa=function(a){return(a.C-a.j)/1E3};
MGa=function(a){a.S=a.j+1E3*a.snapshot.delay;a.Aa=!1};
NQ=function(a,b){if(a.oi&&void 0!==a.Ja&&void 0!==a.Gf){var c=Math,d=c.min,e=a.D;var f=a.oi;var k=a.j;if(mFa(f,a.Ja))f=b;else{var l=0;f.Ei&&(l=.2);f=k+1E3*(f.Hh+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.K;f=a.oi;k=a.j;l=nFa(f,a.Ja,a.Gf);2!==l&&(b=l?b:k+1E3*f.Hh,f.Ei&&(b+=1E3*f.Hh));a.K=d.call(c,e,b);a.D<=a.j?MGa(a):(a.S=a.D,a.Aa=!0)}};
RGa=function(a){a.oi&&NQ(a,a.now());return a.Aa};
NGa=function(a,b){b=void 0===b?a.now():b;if(a.oi){NQ(a,b);if(a.ma?a.oi&&1!==a.kp():a.D!==a.K){var c=a.K;if(b<c){a.Y=a.K;return}}else c=a.D;c=Math.max(c,a.S)}else c=a.S;var d=a.zk-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=KQ(a)?d+b:d+Math.max(b,c);a.Y=d};
MQ=function(a,b){for(var c="";4095<a;)c+=MQ(4095,0),a-=4095;for(;4095<b;)c+=MQ(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))};
OQ=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.Y=d;this.status=0;this.response=void 0;this.S=this.u=0;this.J=this.K=!1;this.errorMessage="";this.ma=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.zm=f.body.getReader(),e.isDisposed()?e.zm.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.hv(),UGa(e));
else e.onDone()};
this.Z=function(f){var k=(0,g.R)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.zm=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.R)(),f-e.S>e.policy.j&&(e.S=f,e.callbacks.hs(k,e.u)),UGa(e)))};
this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
this.j=new iy;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
UGa=function(a){a.zm.read().then(a.Z,a.onError).then(void 0,Cs)};
PQ=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.fv(f)};
a=ir(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",ir(function(f){d.Vd(f)}),!1)};
SQ=function(a,b,c,d,e,f){var k=void 0===f?{}:f;f=void 0===k.Xy?[]:k.Xy;var l=void 0===k.Fz?!1:k.Fz,m=void 0===k.Tq?0:k.Tq,n=void 0===k.poToken?"":k.poToken,p=void 0===k.aq?void 0:k.aq;k=void 0===k.gz?"":k.gz;oQ.call(this,b,e);var q=this;this.policy=a;this.logger=new g.iP("dash/request");this.Z=this.B=0;this.Aa=!1;this.K=this.J=null;this.va=!1;this.timing=new GQ(this,c);this.ma=d;this.Fz=l;this.u=g.Ez(this.info,this.policy,this.ma);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf",
(1E3*m).toFixed().toString());this.Fz&&this.u.set("smb","1");this.policy.Ui&&n&&this.u.set("pot",n);k&&this.u.set("bbs",k);this.Xy=f||null;this.aq=p;this.D=VGa(this);this.ra=1*this.policy.Ee;this.Y=new g.L(this.K_,this.ra,this);this.info.u.K=(0,g.R)();Jra(QQ(this));try{this.xhr=WGa(this),this.Y.start()}catch(t){g.Jv(t),this.lastError="net.ssl",g.vi(function(){RQ(q)})}};
VGa=function(a){if(!(Dz(a.info)&&a.info.Pl()&&a.policy.Gc&&a.Xy)||2<=a.info.u.u||0<RA()||!nta())return!1;var b=a.u.get("aitags");if(!b)return!1;b=Ch(b).split(",");for(var c=[],d=g.r(a.Xy),e=d.next();!e.done;e=d.next())e=e.value,g.Sb(b,e)&&c.push(e);if(!c.length)return!1;a.u.set("altitags",g.Bh(c.join(",")));return!0};
QQ=function(a){return jz(a.ma,cy(a.u.Ki))};
YGa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.iz())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(XGa(a)){var d=b.og();d.totalLength<=a.policy.Qf&&(c=ny(d),c=sy(c),c=Fw(c)?c:"")}if(c){var e=QQ(a);(0,g.R)();e.started=0;e.timedOut=0;e.j=0;a.info.Hk(a.u,c);return 3}c=b.Dk();if((d=Bz(a.info))&&d!==c||b.SC())return a.lastError="net.closed",5;a.Ap(!0);if(!d&&a.j&&(d=a.j.Je,d.length&&!msa(d[0])))return a.lastError="net.closed",5;d=rGa(a)?b.getResponseHeader("X-Bandwidth-Est"):
0;if(b=rGa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.Aa=!0,a.policy.Tm&&(d=b);QGa(a.timing,(0,g.R)(),c,d?Number(d):0);b=QQ(a);(0,g.R)();b.started=0;b.timedOut=0;b.j=0;b=a.info.u;b.u=0;b.D=0;b.J=0;null!=(b=a.aq)&&(a=a.u.Ki,(0,g.R)()<b.J+3E5||dy(a)||(c=cy(a))&&$Da(c)&&b.B===kO(c)&&(ey(a)&&(e=cy(fy(a))),g.gw("yt-player-bandaid-host",{primary:c,secondary:e},864E3),b.J=(0,g.R)(),YDa(b,{primary:c,secondary:e})));return 4};
RQ=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.R)();if(!b.In){IQ(b,c,1024*b.va);var d=(c-b.j)/1E3;if(2!==b.kp())if(KQ(b)){b.B+=(c-b.C)/1E3;var e=b.Ph,f=b.u;f=Math.max(f,2048);e.j.Nh(1,b.B/f);eC(e)}else RGa(b)||b.In||(e=b.Ph,e.K.Nh(1,d),eC(e)),b.ra=c;e=b.Ph;f=b.Z;var k=b.Pl;e.J.Nh(d,b.u/d);e.C=$B();k||e.u.Nh(1,d-f);eua(b.Ph,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!dy(a.u.Ki)?(c=QQ(a),
c.timedOut+=1):(c=QQ(a),c.j+=1),a.timing.u||(c=a.info.u,d=a.u,++c.u,b&&++c.D,cy(d.Ki).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.B))):++a.info.u.J;pQ(a,5)};
ZGa=function(a,b){b&&(b=QQ(a),b.u+=1);TQ(a);a.lastError="net.timeout";RQ(a)};
TQ=function(a){a.xhr&&a.xhr.abort();a.timing.deactivate()};
XGa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Hx();c=!c||c<=a.policy.Qf;return(!a.xhr.Nv()||!b||-1!==b.indexOf("text/plain"))&&c};
WGa=function(a){if(dy(a.u.Ki))return new KGa(a.u,a.timing);var b=g.hz(a.u);return a.policy.ra&&(a.policy.Dr&&!isNaN(a.info.Gf)&&a.info.Gf>a.policy.vl||a.D&&!a.policy.As?0:Gx())?Hx()?new FQ(b,a.policy.D,a.timing):new OQ(b,a.policy.D,a.timing):new PQ(b,a.timing)};
$Ga=function(a){if(!a.policy.D.Ei||!isNaN(a.info.Gf)&&0<a.info.Gf)return!1;if(!a.xhr.Cr())return!0;var b=a.xhr;b.Hx()?b=!1:(b=b.getResponseHeader("content-type"),b="audio/mp4"===b||"video/mp4"===b||"video/webm"===b);return!b||isNaN(a.info.Gf)&&(b=a.xhr.getResponseHeader("x-head-seqnum"))&&Number(b)>a.info.j[0].Ja?!1:!0};
aHa=function(a,b,c,d,e){this.Sa=a;this.policy=b;this.schedule=c;this.S=d;this.Z=e;this.ma=NaN;this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.Y=NaN};
bHa=function(a,b,c,d,e){return b.kb&&b.va&&3===Zqa(b)?new aHa(a,b,c,d,e):null};
cHa=function(a,b){if(a.policy.Qs){var c=b.info.Qb,d=cC(a.schedule);b=b.index.Hh;c=Math.max(1,d/c);a.Y=Math.round(1E3*Math.max(((c-1)*b+a.policy.ma)/c,b-a.policy.Pd))}};
fHa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.Wh,k=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Vs&&(k=!0);a.J=c}c=d>=a.policy.Pd&&!a.B;if(!f&&!c&&dHa(a,b))return NaN;c&&(a.B=!0);a:{d=k;c=Date.now()/1E3-(a.S.rh()||0)-a.K.u-a.policy.ma;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){UQ(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Id;d<c&&(c=d)}else a.B&&(d=c+a.policy.ma-a.ma+a.policy.Ws,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Id))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!k&&dHa(a,b))return eHa(a,b),NaN;if(a.j<=a.u.startTime)return UQ(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.j,!1))return!eHa(a,b)&&k&&(UQ(a,NaN,"t",b),a.clear()),NaN;k=a.j;UQ(a,k,"s",b);a.clear();return k};
eHa=function(a,b){return a.Z(a.j,!0)?!1:(UQ(a,NaN,"ns",b),a.clear(),!0)};
dHa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.Id:a.policy.Rs)};
UQ=function(a,b,c,d){var e=a.C.rr();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.K.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.S.rh()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;Lz(b,a.u.Ja,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ja)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ja)).toFixed(0));a.Sa.xa("ssr",e)};
gHa=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.VQ=function(a,b,c,d,e,f,k,l,m,n){l=void 0===l?!1:l;g.G.call(this);var p=this;this.ya=a;this.schedule=b;this.policy=c;this.j=d;this.Y=m;this.kc=n;this.timing=new yFa(this.kc);this.S=new BP(this.schedule,this.policy);this.mediaSource=null;this.ma=new g.L(this.Ii,0,this);this.Ua=new g.L(this.Ii,1E3,this);this.Vb=new g.L(this.Ii,void 0,this);this.Kb=new g.L(this.Ii,1E4,this);this.K=this.currentTime=NaN;this.ra=this.kb=0;this.va=this.gb=this.isSuspended=!1;this.Z=null;this.La=this.Ta="";this.Ia=new XB(5);
this.Aa={};this.rb=this.Gf=NaN;this.oi=null;this.timestampOffset=NaN;this.Ib=!1;this.ib=0;this.Bo=!1;this.C=null;this.Ga=NaN;this.gz="";this.logger=new g.iP("dash");a=m&&Array.from(m.ge.keys());m&&(this.Ga=Date.now());this.u=new FFa(this,this.S,c,this.j,e,a);c=KFa(this.u,f,k&&k.id);this.audioTrack=new sQ(this,this.policy,c.audio);this.videoTrack=new sQ(this,this.policy,c.video);this.videoTrack.C.ra=this.audioTrack.C;this.Xa={updateend:this.CT,error:this.KX};g.H(this,this.ma);g.H(this,this.Ua);g.H(this,
this.Vb);g.H(this,this.Kb);this.D=bHa(this,this.policy,this.schedule,this.Ia,function(q,t){return hHa(p,q,t)});
this.B=new KP(this,this.j,this.policy,this.videoTrack,this.audioTrack,l);this.J=new qFa(this,this.j,this.videoTrack,this.audioTrack,this.policy);0<this.policy.El&&(this.gz=g.Pv(this.policy.El))};
kHa=function(a,b){var c=b.j,d=a.j.isLive;if(a.j.isLive){var e=Date.now();if(!isNaN(a.Ga)&&e-a.Ga>1E3*a.policy.Lw){a.xa("ombttl",{});return}if(a.j.Ye&&a.j.K)return}e=a.wh();if(a.Y&&rQ(a.Y,nz(c,d,e,a.policy.ib))){d=nz(c,d,e,a.policy.ib);e=iHa(a.Y,d);if(a.j.isLive&&a.policy.Ys)var f=c.Bn(Infinity);else{if(!c.indexRange||!c.initRange)return;var k=c.indexRange.length+c.initRange.length,l=jHa(a.Y,d);if(!l){a.xa("ombooo",{});return}k=l-k;if(0<e.length){var m;f=null==(m=c.vp(0))?void 0:Zra(m,e,k)}f&&0!==
e.length||(f=c.vp(k),a.xa("ombcf",{}))}f&&(m=function(n){try{n.isFailed()?(a.handleError(n.lastError,n.rr()),DQ(b,n),Dz(n.info)&&WQ(a,b,c,!0),a.Ii()):XQ(a,n)&&a.Ii()}catch(p){n=hD(p),a.handleError(n.errorCode,n.details,n.severity),YQ(a)}},c.J=!0,Cz(f)&&vQ(b,new FP(a.policy,d,f,a.Y,m)))}else a.xa("ombfmt",{})};
lHa=function(a){var b=a.videoTrack.j.index;a.oi=new lFa({pn:a.policy.pn,Ei:a.policy.D.Ei,Hh:b.Hh,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
Cu:function(){return b.Cu()}})};
ZQ=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.va!==b&&(d.Aa={},d.va=b,OP(d,d.j));b=!d.j.isLocked()&&-1<d.Y&&8E3>(0,g.R)()-d.Y;var e=d.nextVideo&&3*RP(d,d.nextVideo.info)<EP(d.ra);if(!b||e)PP(d),QP(d),d.Z=d.Z||d.nextVideo!==d.u;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.va=-1);d=d.nextVideo;c.j!==d&&(c.j=d);c=a.audioTrack;a=a.u.B;c.j!==a&&(c.j=a)};
$Q=function(a,b){a.gb=b;a.Bo||(a.isSuspended=!0)};
aR=function(a,b){a.policy.Qe&&a.C&&(a.Ta=b)};
nHa=function(a){a.policy.qd=!1;try{mHa(a)}catch(b){g.Iv(b)}};
oHa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(kv(a.mediaSource.j,a.Xa,a),kv(a.mediaSource.u,a.Xa,a));tQ(a.audioTrack,null);tQ(a.videoTrack,null);a.mediaSource=null};
bR=function(a,b){b=void 0===b?!1:b;oHa(a);b?a.Bo=!0:a.policy.Pg?$Q(a,a.Ib):$Q(a,!1);YQ(a)};
cR=function(a){a.mediaSource&&a.mediaSource.Jf()&&(bR(a),a.policy.jr&&a.handleError("fmt.unplayable",{unexpected:1},1))};
dR=function(a,b,c){var d=a.B;if(2===d.u||3===d.u)return aR(a,"waitad"),!1;if(!Nra(b.u?b.u.j.u:b.j.u,a.policy))return aR(a,"resource"),!1;if(a.isSuspended&&(!fua(a.schedule)||a.gb))return aR(a,"suspend"),!1;if(a.policy.u&&5<=AD)return g.zp(a.Ua),aR(a,"exceedq"),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ja)return aR(a,"pending"),!1;if(b.B.length>=a.policy.nk)return aR(a,"toomany"),!1;if(!a.policy.Gl&&0<b.B.length&&!a.policy.D.Ei)return aR(a,"pipeline"),!1;if(b.K)return b=!a.j.isLive||
!isNaN(a.Gf),aR(a,b?"":"sqless"),b}if(IGa(b))return aR(a,"shavable"),!1;if(!b.u){if(!b.j.Kf())return aR(a,"meta"),!1;JP(b,a.currentTime)}d=b.B.length+c.B.length;(b.B.length&&b.B[0].Cw()||c.B.length&&c.B[0].Cw()||a.j.isLive)&&--d;if(d+1>=a.policy.wl)return aR(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Kf()&&(b.u=g.Nb(d.j.Cv(d)),d=b.u);if(!sz(d)&&!d.j.Fo(d))return aR(a,"notready"),!1;var e=a.j.Lf||a.j.K;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber();
e=Math.min(e,f);if(0<b.j.index.ww&&0<e&&d.Ja>=e)return b.Y=e,c.Y=e,aR(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return aR(a,"toomanyaudio"),!1;if(EGa(b)&&!a.policy.Xa)return aR(a,""),!0;if(sz(d))return aR(a,"eos"),!1;if(zQ(b)&&zQ(b)+zQ(c)>a.policy.Kb)return aR(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.C;f=!!(c.u&&!sz(c.u)&&c.u.C<f);var k=b===a.videoTrack&&a.Bo;if(f&&(!a.j.isManifestless||c.u&&c.u.C&&d.C)&&e&&!k)return aR(a,"othertrack"),!1;if(a.policy.Ua&&!b.D&&c.D)return aR(a,"seek"),!1;if(uz(d)&&d.C>
pHa(a,b))return aR(a,"maxtime;"+d.C.toFixed(3)+";"+pHa(a,b)),!1;if((b=b.hc)&&b.isLocked())return aR(a,"locked"),!1;aR(a,"");return!0};
qHa=function(a,b,c){if(dR(a,b,c)){if(b.K){if(a.j.isLive){var d=a.j.Ye&&a.j.K?b.j.Go(a.j.Ye,!1):b.j.Bn(Infinity);d.Gf=a.Gf}else d=b.j.Go(0,!1);a.D?0===d.Gf&&(d.D=a.D.Y):d.D=a.rb}else if(d=b.u,d.j.Kf()){var e=d.C-a.currentTime,f=!d.range||0===d.u&&0===d.zb?0:d.range.length-(d.zb+d.u),k=d.j;if(EQ(b)&&b.j.Kf()){var l=Math.min(15,.5*eR(a,b,!0));l=EGa(b)||e<=l||a.u.S}else l=!1;l&&0===f&&(a.j.isManifestless?k=b.j:(k=d.startTime+fR,d.u&&(k+=d.duration),JP(b,k),d=b.u,k=d.j));k.pm()?(f=a.u,c=DP(a.S,k.info.Qb,
c.j.info.Qb,e,0<f.D.length&&0===f.videoIndex&&a.va),k=EQ(b),c=d.j.Dt(d,c),(e=Bz(c))&&1<c.j.length&&(k||c.u.u||c.j[0].j!==d.j?c=d.j.Dt(d,c.j[0].u):(k=c.j[c.j.length-1],f=k.u/e,!k.le&&.4>f&&(c=d.j.Dt(d,e-k.u)))),d=c):(0>d.Ja&&(c=xz(d),c.pr=""+b.B.length,a.J.u&&(c.sk="1"),c.snss=d.D,a.xa("nosq",c)),d=k.uw(d));if(a.Bo)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.pm()?(c=DP(a.S,b.j.info.Qb,c.j.info.Qb,0),d=d.j.Dt(d,c)):d=d.j.uw(d);if(a.C&&(c=a.B,e=d.j[0].Ja,c=0>e&&!isNaN(c.B)?c.B:
e,k=AFa(a.B,d.j[0].B,c),f=b===a.audioTrack?1:2,e=a.C.Ak(k,c,d.j[0].j.info.id,f),0>c&&(a.policy.Qw||2===f)&&EFa(a.B,0,0,!0),e)){k={decurl_itag:d.j[0].j.info.Yb(),sg:c,st:k.toFixed(3)};if(a.policy.Mr&&b.isRequestPending(c-1)){a.xa("sdai",{wt_daistate_on_sg:c-1});return}a.xa("sdai",k);e&&(d.B=new g.$x(e))}a.policy.Vj&&-1!==d.j[0].Ja&&d.j[0].Ja<a.j.Ye&&(d=b.j.Go(a.j.Ye,!1));vQ(b,gR(a,d))}};
gR=function(a,b){uz(b.j[b.j.length-1])&&rHa(a,MFa(a.u,b.j[0].j));var c=Yra(b);c={Ph:a.schedule,zk:c,CC:oFa(a.S,c),Pl:tz(b.j[0]),In:dy(b.u.j),OF:a.policy.Z};a.oi&&(c.Ja=b.j[0].Ja,c.Gf=b.Gf,c.oi=a.oi);var d={Tq:Math.max(0,b.j[0].B-a.currentTime),Xy:a.policy.Gc&&Dz(b)&&b.j[0].j.info.video?RFa(a.u):void 0,Fz:a.Bo,poToken:a.ya.X.Oe||"",aq:a.ya.jh.aq,gz:a.gz};return new SQ(a.policy,b,c,a.Aa,function(e,f){try{a:{a.policy.Qe&&a.C&&(a.Z=e);var k=e.info.j[0].j,l=k.info.video?a.videoTrack:a.audioTrack;if(!(2<=
e.state)||e.isComplete()||e.C||!(!a.mediaSource||a.isSuspended||3<AQ(l,a.currentTime))){var m=a.policy.Oc;if(!(!m||e.isComplete()||e.C<m||lz(e.info.u,a.policy,a.Aa))){var n=a.Aa;var p=cy(kz(e.info.u,a.policy));var q=jz(n,p);if(!(q.j||q.timedOut||q.started)){var t=$ra(e.info,!0);t&&gR(a,t)}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.rb){var v=Object.assign(HQ(e.timing),{rst:""+e.state,strm:""+e.xhr.Nv(),d:SGa(e.timing)});a.xa("rqs",v)}e.Aa&&a.xa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var x=
a.timing,y=e.info.j[0].j,z=!x.D&&y.info.video,E=!x.u&&y.info.audio;3===e.state?z?x.tick("vrr"):E&&x.tick("arr"):4===e.state?z?(x.D=g.hz(e.u),g.Vr(),Xr(4)):E&&(x.u=g.hz(e.u)):e.Cw()&&z&&(g.Vr(),Xr(4));if(3===e.state){DQ(l,e);Dz(e.info)&&WQ(a,l,k,!0);if(a.C){var J=e.info.Ak();J&&a.C.Hk(e.info.j[0].Ja,k.info.id,J)}a.Ii()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var I=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;I&&I instanceof SQ&&I.C&&ZGa(I,!0)}e.dispose()}else{if(!e.isFailed()&&
e.D&&2<=e.state&&3!==e.state){var N=e.xhr.getResponseHeader("X-Response-Itag");if(N){var Z=QFa(a.u,N),K=Bz(e.info);if(K){var ra=K-Z.mG();Z.J=!0;e.info.j[0].j.J=!1;var za=Z.vp(ra);e.info=za;if(e.j){var Pa=e.j,Sa=za.j;Pa.j=Sa;var ac=Sa[0].range,zb=new iy;for(f=0;f<Pa.Je.length;f++)jy(zb,Pa.Je[f].j);for(f=0;f<Pa.Je.length;f++){Pa.Je[f].info=Sa[f];var yc=Sa[f].range;Pa.Je[f].j=ky(zb,yc.start-ac.start,yc.length)}}e.D=!1;var Rc=a.videoTrack;Rc.j!==Z&&(Rc.j=Z);var hd=a.videoTrack;hd.u&&(hd.u.j=Z);var he=
a.ya;he.videoData.Pj=g.Lx("auto",Z.info.video.quality,!1,"u");hR(he);var Lf=e.rG();Lf&&Z.info.lastModified&&Z.info.lastModified!==+Lf&&DQ(a.videoTrack,e)}}else e.D=!1}if(4===e.state){if(XQ(a,e),a.B){var Ab=a.B,Mf=e.info,pg=a.C;if(0!==Ab.u&&pg&&Mf.j[0].isVideo())if(Mf.j[0].Ja>Ab.B&&(Ab.B=NaN,Ab.D=NaN),Ab.j&&Ab.j.Ja===Mf.j[0].Ja)if(Ab.policy.Vw){var Zi=Ab.j,ie=Zi.Rd;pg.Up(ie)&&"predictStart"!==ie.event?zFa(Ab,Mf,Zi,pg):MP(Ab,5,"nogab")}else{var zc=Ab.j.Rd.event;"start"===zc||"continue"===zc?1!==Ab.u&&
5!==Ab.u||zFa(Ab,Mf,Ab.j,pg):("stop"!==zc||1!==Ab.u&&5!==Ab.u||Ab.xa("sdai",{joinstop:1,st:Ab.u,sg:Ab.B}),MP(Ab,5,"stop"))}else 1===Ab.u&&MP(Ab,5,"noad")}}else if(a.policy.ra&&e.vv()&&!e.isComplete()&&!XQ(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Ar(e);a.Ii();if(a.policy.Kc&&e.isComplete()&&e.canRetry()&&lz(e.info.u,a.policy,a.Aa)){var wk=a.Aa;var Ie=cy(e.info.u.j);var $i=jz(wk,Ie);if(!($i.B+a.policy.Kc*Kra($i,a.policy,!0)>(0,g.R)())){var Rh=$ra(e.info,!1);Rh&&gR(a,Rh)}}}}}}}catch(xk){e=gD(0),Z=
hD(xk,0),a.handleError(Z.errorCode,Z.details,Z.severity),e||YQ(a)}},d)};
rHa=function(a,b){b&&a.ya.rC(b);a.policy.lk&&a.u.Ua&&(b=NFa(a.u,"a"),iR(a.ya,b.reason,b.audio.info))};
XQ=function(a,b){try{var c=b.info.j[0].j.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.vv(),c.K=!1);b.fG()&&a.Ia.Nh(1,b.fG());var d=b.UK(),e=b.wN(),f=a.j,k;for(k in f.j){var l=f.j[k].index;l.Ll&&(d&&(l.ww=Math.max(l.ww,d)),e&&(l.B=Math.max(l.B||0,e)))}}if(b.info.Pl()&&!Cz(b.info))for(var m=g.r(b.pE()),n=m.next();!n.done;n=m.next())jQ(c.C,n.value);wQ(c);return!!c.og()}catch(p){return b=b.rr(),b.origin="hrhs",sHa(a,p,b),!1}};
sHa=function(a,b,c){if(b instanceof Error&&(c.msg||(c.msg=""+b.message),g.Jv(b),"WARNING"===b.level)){jR(a.ya,c);return}a.handleError("fmt.unplayable",c,1)};
mHa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=tHa(a);if(d){if(a.policy.vt){if(!b.qp()){var e=a.audioTrack.og();e&&(kR(a,a.audioTrack,b,e.info),lR(a,b,e))}!c.qp()&&(b=a.videoTrack.og())&&(kR(a,a.videoTrack,c,b.info),lR(a,c,b))}a.ra||(a.ra=(0,g.R)(),a.policy.Z&&a.xa("apdps",{r:d}))}else{if(a.ra){d=(0,g.R)()-a.ra;e=AQ(a.audioTrack,a.currentTime);var f=AQ(a.videoTrack,a.currentTime);a.policy.Z&&a.xa("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});
a.ra=0}if(a.D){d=a.D;e=a.audioTrack;f=vA(a.mediaSource.u.ag());if(d.C)d=fHa(d,f);else{if(f=e.og()){var k=f.u;k&&k.D&&k.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Gf&&(d.C=e,d.K=k,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime)}d=NaN}d&&a.ya.seekTo(d,{Er:!0,Ie:"pollSubsegmentReadahead",Pq:!0})}d=!1;uHa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.R)(),IJ("vda",e.C,e.j),e.B&&(g.Vr(),Xr(4))));if(a.mediaSource&&!a.mediaSource.Jf()&&(uHa(a,
a.audioTrack,b)&&(d=a.timing,d.B||(d.B=(0,g.R)(),IJ("ada",d.B,d.j),d.C&&(g.Vr(),Xr(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.qd&&yQ(a.videoTrack)&&yQ(a.audioTrack)&&CA(a.mediaSource)&&!a.mediaSource.di()&&(e=uQ(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,CA(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Ef.webkitSourceEndOfStream(e.Ef.EOS_NO_ERROR)),e=a.schedule,ita(dC(e)),e.D=$B(),e.S=!0));e=a.policy.Jw;f=a.policy.Rw;d||!(0<e||f)||!CA(a.mediaSource)||yQ(a.videoTrack)||yQ(a.audioTrack)||
(b.uD(a.currentTime,f,e),c.uD(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):EA());c&&g.zp(a.ma)}}}};
tHa=function(a){if(IGa(a.videoTrack))return"ssf";var b=a.B;if(1===b.u||2===b.u||3===b.u)return"cpm";if(a.policy.Bg||DGa(a.videoTrack)||DGa(a.audioTrack))return"";if(a.J.u){b=a.S;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=0,f=lQ(c.C).concat(lQ(d.C));f=g.r(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.u;c=c.j.info.Qb+d.j.info.Qb;e/=c;b=e<b.policy.Cl?!1:10<e?!0:10>c*(10-e)/EP(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&fGa(b.C).info.J<
b.ma)return"seek"}if(!a.va||!a.policy.kc||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";b=FGa(a.videoTrack,a.currentTime,a.policy.kc)||FGa(a.audioTrack,a.currentTime,a.policy.kc);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||dR(a,a.videoTrack,a.audioTrack)||dR(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
uHa=function(a,b,c){if(c.di())return!0;if(!c.JA())return!1;var d=b.og(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.u&&b===e.Aa)e=CQ(e.J),f=d.info.Ja>(e?e.Ja:-1);e=!!f}if(e)return!1;kR(a,b,c,d.info);if(a.j.u&&0===d.info.zb&&(g.Sz(d.info.j.info)||a.policy.zq)){if(null==c.qp()){e=uQ(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var k=0;k<e.length;k++)if(!g.jc(e[k],f[k])){e=!1;break b}e=!0}f=!e}e=f}else e=c.qp(),a.policy.Uw&&d.info.j.Tu()&&
vsa(d),f=d.info.j.j,e=e!==f&&!g.jc(e,f);e&&(f=uQ(b),a.xa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Ja}));a.policy.bd&&!e&&(g.Sz(d.info.j.info)?(Ry(Rz(d),1836019574),Ry(Rz(d),1718909296)):(e=new Ty(Rz(d)),Fra(e),Xy(e,524531317,!0),d.j=d.j.split(e.start+e.j).Ns),d.D=!1)}a.policy.Th?d.B=!1:a.policy.Pw&&!c.qp()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.zb||d.D||d.B||3!==d.info.type||!e||(f=new iy([e]),jy(f,d.j),e=ny(f).subarray(e.length),d.j=new iy([e]),d.B=!0));
e=a.D&&!!a.D.C&&b.j.info.audio;f=a.j.isManifestless||d.B||d.D;if(!(a.j.u&&0!==d.info.zb||f&&!e)&&lR(a,c,d))return!0;if(e)return!1;e=a.currentTime+eR(a,b,!1);(e=d.info.B>e)||(a.policy.Ib&&(!d.info.zb||d.info.le||10>d.info.B)&&a.xa("sba",c.Pb({as:yz(d.info)})),e=d.D||d.B?d.info.j.j:null,f=ny(d.j),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),c=vHa(a,c,f,d.info,e),"s"===c?(a.ib=0,a=!0):("i"===c||"x"===c?wHa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.K=Math.floor(.8*e.K),
e.Ga=Math.floor(.8*e.Ga),e.J=Math.floor(.8*e.J)):(e=a.policy,e.Y=Math.floor(.8*e.Y),e.Vb=Math.floor(.8*e.Vb),e.J=Math.floor(.8*e.J)),SP(a.u,d.info.j)),jR(a.ya,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.Zi(d);return!0};
wHa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",a.policy.Dl||(d.j.C=e),d.j.info.video&&!TP(a.u)&&SP(a.u,d.j)):"i"===c&&(15>a.ib?(a.ib++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=xz(d);var k;d.mrs=null==(k=a.mediaSource)?void 0:DA(k);d.origin=b;d.reason=c;a.handleError(e,d,f)};
oGa=function(a,b,c,d){var e=a.j,f=!1,k=-1;for(n in e.j){var l=gA(e.j[n].info.mimeType)||e.j[n].info.isVideo();if(d===l)if(f=e.j[n].index,Lz(f,b.Ja)){l=b;var m=f.Ul(l.Ja);m&&m.startTime!==l.startTime?(f.segments=[],f.fE(l),f=!0):f=!1;f&&(k=b.Ja)}else f.fE(b),f=!0}if(0<=k){var n={};e.ea("clienttemp","resetMflIndex",(n[d?"v":"a"]=k,n),!1)}xFa(a.J,b,d,f);a.B.ZH(b,c,d)};
kR=function(a,b,c,d){b=uQ(b);!b||b.le||vz(b,d)||c.abort();!c.Lx()||zA()?c.NJ(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Lx()&&a.xa("ctu",{ct:zA(),prev_c:c.Lx(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.ql&&b&&(d=0+b.duration,b=-b.j,0===c.mB()&&d===c.cG()||c.WI(0,d),b!==c.Fd()&&(c.gD(b),mQ&&qGa(a.audioTrack.C,c.sG())))};
lR=function(a,b,c){c.info.j.Kf();var d=c.info.j.j;if(!d||!b.JA()||b.qp()===d)return!1;var e=d,f=b.qB();if(a.policy.Th&&f&&b.isView()&&g.Sz(c.info.j.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=zra(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.xa("fenc",{})}f=null;(k=c.info.j.vp(0))&&(f=k.j[0]);a.policy.Ib&&a.xa("sbi",b.Pb({as:yz(c.info)}));a.policy.Si&&b.abort();d=vHa(a,b,e,f,d);if("s"!==d)return wHa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.K||(a.K=
(0,g.R)(),IJ("vis_a",a.K,a.j))):(a=a.timing,a.J||(a.J=(0,g.R)(),IJ("ais_a",a.J,a.j)));return b.di()};
vHa=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:rA(b.ag()).replace(/,/g,"_"),message:g.xc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},gHa()),a.handleError("player.exception",b),"q";g.Iv(f)}return"u"}return a.mediaSource.Jf()?"m":"s"};
eQ=function(a,b){a.ya.sC(b)};
eR=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.Y:a.policy.K;!a.policy.Xa&&a.u.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.Vb:a.policy.Ga));c&&(d+=a.policy.Kb);c=a.u.j.isLocked()?b.u?b.u.j.info.Qb:b.j.info.Qb:b.Qb*a.policy.Pj;d/=c;0<a.policy.Bl&&a.mediaSource&&CA(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.di()&&(b=b.ag(),c=sA(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.Bl,a.policy.Kw))));0<a.policy.J&&
(d=Math.min(d,a.policy.J));return d};
pHa=function(a,b){var c=a.B;c=c.j?c.j.Rd:null;if(a.Bo&&c)return c.startSecs+c.durationSecs+15;b=eR(a,b,!0);!a.u.j.isLocked()&&0<a.policy.Aa&&(c=((0,g.R)()-a.kb)/1E3,b=Math.min(b,a.policy.Aa+a.policy.Ne*c));b=a.currentTime+b;return a.policy.Rm&&(c=xHa(a)+a.policy.Rm,c<b)?(a.xa("mrl",{ori:b,mod:c},!0),a.policy.hk&&(a.kb=(0,g.R)()),c):b};
xHa=function(a){var b=g.Zn(a.ya.yn(),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};
yHa=function(a,b){gO(b,"cms",function(c){a.policy.Z&&a.xa("pathprobe",c)},function(c){a.ya.handleError(c)})};
zHa=function(a,b){a.C=b;a.B&&(a.B.C=b);a.C.aJ(a.videoTrack.j.info.Xe())};
AHa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.B,d=b;if(0!==c.u&&c.C){var e=c.Hu(d);e!==c.Z&&(c.C.fI(c.Z,e,c.va,d),c.Z=e);c.va=d}a.currentTime!==b&&a.resume();a.J.u&&a.mediaSource&&!a.mediaSource.Jf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=tA(a.mediaSource.u.ag(),a.currentTime+fR),c&&d&&(a.J.u=!1));a.J.u||(a.currentTime=b);g.zp(a.Ua)}};
BHa=function(a,b){var c=xQ(a.videoTrack).find(function(d){return d.startTime>=b&&hHa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
hHa=function(a,b,c){if(!(a.videoTrack.j.Kf()&&a.audioTrack.j.Kf()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.j))return!1;if(c&&a.j.isManifestless&&(-1===a.videoTrack.J||-1===a.audioTrack.J))return!0;var d=HP(a.videoTrack,b,c);if(isNaN(d))return!1;a=HP(a.audioTrack,a.policy.va?b:d,c);return isNaN(a)?!1:!0};
WQ=function(a,b,c,d){if(!(c.Kf()||c.Tu()||c.J)&&Nra(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.S;var e=c.info,f=pFa(d,e.video?d.policy.yq:d.policy.Mj,e.Qb);d=d.policy.ai&&e.video?Math.max(f,d.policy.ai):f}else d=0;d=c.vp(d);a=gR(a,d);Cz(d)&&vQ(b,a);c.J=!0}};
YQ=function(a){try{var b=a.audioTrack;GP(b);IP(b.C);var c=a.videoTrack;GP(c);IP(c.C)}catch(d){g.Iv(d)}a.policy.u=""};
CHa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.B.K=a.timestampOffset,a.ya.hI(a.timestampOffset),a.j.isManifestless&&(a.j.timestampOffset=a.timestampOffset))};
g.mR=function(a){this.td=a};
nR=function(){g.iv.apply(this,arguments)};
oR=function(a,b,c,d){nR.call(this);var e=this;this.B=-1;this.j={};this.C=new g.L(this.D,0,this);g.H(this,this.C);this.u=new g.L(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.H(this,this.u);d.subscribe("fairplay_next_need_key_info",this.J,this)};
DHa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
EHa=function(a){var b=a.interval,c=a.Dv;this.url=a.url;this.interval=b;this.Dv=c};
FHa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
GHa=function(a){var b=qy(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=Iy(b.slice(d+2));if(null==b)return null;a=new FHa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.nxa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new EHa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Dv:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.j=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.r(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.u=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
HHa=function(a,b,c){c=void 0===c?"":c;g.G.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Ti(5E3,2E4,.2)};
IHa=function(a,b,c){a.onSuccess=b;a.onError=c};
KHa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(mx("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=GHa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else JHa(a,e)},
onError:function(e){JHa(a,e)}};
c&&(b=wca(b,"access_token",c));g.Gr(b,d)};
JHa=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)};
MHa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){mx("drm_net_r",void 0,a.timer);var k="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Fc(f.license)}catch(x){g.Iv(x)}if(0!==k||l){l=new FHa(k,l);0!==k&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){k={};for(var m=[],n={},p=g.r(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var t=LHa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&(t+="HDR");
k[t]||(m.push(t),k[t]=!0);var v=null;try{v=Fc(q.keyId)}catch(x){g.Iv(x)}v&&(n[g.wc(v,4)]=t)}}l.j=m;l.u=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.lM="Bearer "+d);g.ju(c,"player/get_drm_license",b,e)};
qR=function(a,b,c,d){g.iv.call(this);this.videoData=a;this.X=b;this.S=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.Z=!1;this.B=null;this.va=[];this.D=[];this.ma=!1;this.j={};this.ra=NaN;this.status="";this.J=NaN;this.u=a.Y;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.X.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ta&&(a.vvt=this.videoData.Ta,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.X.authUser&&(a.authuser=this.X.authUser);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.qb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.Y=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.VA(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.Y=!1);this.baseUrl=g.rB(this.u)?DHa(c.initData).replace("skd://",
"https://"):this.u.C;this.fairplayKeyId=uj(this.baseUrl,"ek")||"";if(b=uj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Aa=this.videoData.N("html5_use_drm_retry");this.va=c.Xe?[g.wc(c.initData,4)]:c.u;pR(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
QHa=function(a,b){pR(a,{createkeysession:1});a.status="gr";mx("drm_gk_s",void 0,a.videoData.Aa);a.url=NHa(a);try{a.B=b.createSession(a.S,function(c){pR(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ea("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(OHa(a.B,function(c,d){PHa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.rB(a.u)&&g.zC(a.X)&&a.X.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.X.N("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(pR(a,{onkyadd:1}),a.K||(a.ea("sessionready"),a.K=!0))},function(c){a.Xp(c)}),g.H(a,a.B))};
NHa=function(a){var b=a.baseUrl;bqa(b)||a.error("drm.net",2,"t.x");if(!uj(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=wca(b,d,a.C[d]);return b};
PHa=function(a,b,c){if(!a.isDisposed())if(b){pR(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":RHa(a,b);return;default:a.ea("ctmp","message_type",{t:c,l:b.byteLength})}a.Z||(mx("drm_gk_f",void 0,a.videoData.Aa),a.Z=!0,a.ea("newsession",a));if(ZA(a.u)&&(b=SHa(b),!b))return;g.rB(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=py(g.wc(b)));b=new HHa(b,++a.requestNumber,a.videoData.Aa);IHa(b,function(d){THa(a,
d)},function(d,e,f){if(!a.isDisposed()){var k=0,l;
(l=3<=d.j.u)||(l=a.Aa&&36E4<(0,g.R)()-a.ra);l&&(k=1,e="drm.net.retryexhausted");pR(a,{onlcsrqerr:e,info:f});a.error(e,k,f);a.shouldRetry(gD(k),d)&&UHa(a,d)}});
g.H(a,b);VHa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
RHa=function(a,b){pR(a,{sdpvrq:1});a.J=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.X.deviceParams);c=g.sj("https://web.archive.org/web/20220414023957/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:qy(b)}),responseType:"arraybuffer"};
g.Jr(c,b,3,500).then(ir(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=qy(d);try{var f=JSON.parse(e)}catch(k){}f&&f.signedResponse?(a.ea("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.J)/1E3,a.J=NaN,a.ea("ctmp","provs",{et:f.toFixed(3)}),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),ir(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
rR=function(a){var b;if(b=a.Y&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
VHa=function(a,b){a.status="km";mx("drm_net_s",void 0,a.videoData.Aa);if(a.videoData.useInnertubeDrmService()){var c=new g.iu(a.X.Uh),d={context:g.ws(c.config_||g.vs())};d.drmSystem=WHa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.wc(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,k=!!(null==(e=a.videoData.u)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=k?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.X.deviceParams)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Ta&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ta,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Kb&&(d.context.user.kidsParent={oauthToken:a.videoData.Kb});g.rB(a.u)&&(d.fairplayKeyId=g.wc(kaa(a.fairplayKeyId)));g.cD(a.X,g.BE(a.videoData)).then(function(l){MHa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.cD(a.X,g.BE(a.videoData)).then(function(l){KHa(b,a.url,l);
a.status="rs"})};
THa=function(a,b){if(!a.isDisposed())if(pR(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{mx("drm_kr_s",void 0,a.videoData.Aa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.C.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ea("newlicense",b.heartbeatParams);b.j&&(a.D=b.j,a.X.N("html5_heartbeat_wait_for_drm_killswitch")||
(a.videoData.useInnertubeDrmService()&&!a.videoData.fH&&a.ea("newlicense",new EHa({})),a.videoData.fH=!0),a.ma=Zm(a.D,function(d){return d.includes("HDR")}));
b.u&&(a.j=Cf(b.u,function(d){return{type:d,status:"unknown"}}));
$A(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Fc(qy(b.message)):aB(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=py(g.wc(b.message)));a.B&&(pR(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){mx("drm_kr_f",void 0,a.videoData.Aa);rR(a)||(pR(a,{ksApiUnsup:1}),a.ea("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.xc(d.message);
a.error("drm.keyerror",1,d)}));
a.K&&(a.ra=(0,g.R)());g.rB(a.u)&&a.ea("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)}};
UHa=function(a,b){var c=b.j.getValue();c=new g.L(function(){VHa(a,b)},c);
g.H(a,c);c.start();g.Ui(b.j);pR(a,{rtyrq:1})};
XHa=function(a,b){for(var c=[],d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
sR=function(a){var b={};b[a.status]=rR(a)?XHa(a,"."):a.D.join(".");return b};
YHa=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};
tR=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
pR=function(a,b){var c=void 0===c?!1:c;eD(b);(c||dD(a.X))&&a.ea("ctmp","drmlog",b)};
ZHa=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};
SHa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=hda(new DOMParser,g.nh(g.Fg("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array($Ha(Dc(a.childNodes[0].nodeValue)).buffer):null:null};
aIa=function(a,b,c,d){if(a=py(g.wc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=xca(c,d),g.Jr(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=GHa(e))&&e.message&&b.update(e.message)})};
uR=function(a,b,c,d,e){g.G.call(this);this.element=a;this.S=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.K=this.J=this.B=this.D=null;this.C=new g.iA(this);g.H(this,this.C);bIa(this)};
bIa=function(a){a.j?(a.C.T(a.j,"message",a.DT),a.C.T(a.j,"keystatuseschange",a.Xp),a.j.closed&&a.j.closed.then(ir(function(){a.isDisposed()||Yr("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(gv(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.LP),gv(a.C,a.u,["mskeyerror","webkitkeyerror"],a.KP),gv(a.C,a.u,["mskeyadded","webkitkeyadded"],a.JP))};
OHa=function(a,b,c,d,e){a.D=b;a.B=c;a.J=d;a.K=e};
cIa=function(a,b,c){g.hr(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
vR=function(a,b){g.G.call(this);this.element=a;this.j=b;this.J={};this.C=null;this.D=new g.iA(this);this.B=this.u=null;g.H(this,this.D)};
eIa=function(a,b){b=dIa(b,a.j.u);a=a.B.createSession("video/mp4",b);return new uR(null,null,null,null,a)};
fIa=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 uR(null,null,null,null,a)};
wR=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};
dIa=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};
xR=function(a,b){g.G.call(this);this.j=g.ci("video");this.u=null;this.D=[];this.C=new g.iA(this);this.B=new WA("fairplay","com.youtube.fairplay","",b);this.B.u=a;g.H(this,this.C);this.init()};
yR=function(a,b,c,d){nR.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.j=[];this.u=new g.L(function(){e.ea("log_qoe",{wvagt:"timer",reqlen:e.j?e.j.length:-1});if(e.j){if(0<e.j.length){var f=e.j.shift();gIa(e,f.info)}0<e.j.length&&(f=e.j[0].time-(0,g.R)(),e.u.start(Math.max(0,f)))}},0);
g.H(this,this.u);d.subscribe("widevine_set_need_key_info",this.J,this)};
gIa=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)};
zR=function(){this.keys=[];this.values=[]};
AR=function(a){a.keys=[];a.values=[]};
BR=function(a,b,c){g.iv.call(this);this.element=a;this.videoData=b;this.X=c;this.j=this.videoData.Y;this.drmSessionId=this.videoData.drmSessionId||g.rpa();this.u=new Map;this.J=new zR;this.K=new zR;this.B=[];this.Ga=2;this.ma=new g.iA(this);this.Ia=this.va=!1;this.heartbeatParams=null;this.ra=this.Y=!1;this.D=null;this.Aa=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||XA()||tB(c.experiments);c=this.videoData.Tg;this.S="fairplay"===this.j.flavor||c?SD:hIa;this.C=new vR(this.element,this.j);g.H(this,
this.C);YA(this.j)&&(this.Z=new vR(this.element,this.j),g.H(this,this.Z));g.H(this,this.ma);c=this.element;this.j.keySystemAccess?this.ma.T(c,"encrypted",this.HT):gv(this.ma,c,YA(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.LY);iIa(this);a:switch(c=this.j,a=this.X.experiments,b=this.u,c.flavor){case "fairplay":19.2999<dma()?(a=c.K,c=c.J,c>=a&&(c=.75*a),b=.5*(a-c),c=new oR(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new yR(a.jb("disable_license_delay"),!a.jb("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.hM,this),this.D.subscribe("log_qoe",this.Lh,this);tB(this.X.experiments);this.Lh({cks:this.j.cg()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.La=new xR(this.videoData.Id,this.X.experiments),g.H(this,this.La))};
iIa=function(a){var b=a.C.attach();b?b.then(ir(function(){jIa(a)}),ir(function(c){if(!a.isDisposed()){g.hr(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Lh({mdkrdy:1}),a.Y=!0);
a.Z&&(b=a.Z.attach())};
lIa=function(a,b,c){a.Ia=!0;c=new $P(b,c);a.X.N("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));kIa(a,c)};
kIa=function(a,b){if(!a.isDisposed()){a.Lh({onInitData:1});if(a.X.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.Lh({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.va&&!a.videoData.isLivePlayback)CR(a);else{if(!(a.X.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Xe)){a.va=!0;c=b.cryptoPeriodIndex;var d=b.j;aGa(b);b.Xe||(d&&b.j!==d?a.ea("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ea("widevine_set_need_key_info",b)}}else a.hM(b)}};
jIa=function(a){if(!a.isDisposed())if(a.X.N("html5_drm_set_server_cert")&&!g.IC(a.X)){var b=a.C.setServerCertificate();b?b.then(ir(function(c){dD(a.X)&&a.ea("ctmp","ssc",{success:c})}),ir(function(c){a.ea("ctmp","ssce",{n:c.name,
m:c.message})})).then(ir(function(){DR(a)})):DR(a)}else DR(a)};
DR=function(a){a.isDisposed()||(a.Y=!0,a.Lh({onmdkrdy:1}),CR(a))};
mIa=function(a){return"widevine"===a.j.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
CR=function(a){if(a.Ia&&a.Y&&!a.ra){for(;a.B.length;){var b=a.B[0],c=mIa(a)?bGa(b):g.wc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}aGa(b);break}a.B.length&&a.createSession(a.B[0])}};
nIa=function(a){var b;if(b=g.$r()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.uy(b),a.ea("ctmp","drm",{metrics:b}))};
FR=function(a){g.G.call(this);var b=this;this.ya=a;this.j=this.ya.V();this.videoData=this.ya.getVideoData();this.uy=0;this.J=this.B=!1;this.D=0;this.C=g.sB(this.j.experiments,"html5_delayed_retry_count");this.u=new g.L(function(){ER(b.ya)},g.sB(this.j.experiments,"html5_delayed_retry_delay_ms"));
g.H(this,this.u)};
HR=function(a,b,c){var d=a.videoData.u,e=a.videoData.J;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.ya.Bh.C&&d&&"22"===d.Yb())return a.ya.Bh.C=!0,a.zd("qoe.restart",{reason:"fmt.unplayable.22"}),GR(a.ya),!0;var f=!1,k=a.uy+3E4<(0,g.R)()||a.u.isActive();if(a.j.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.zd("auth",c),!0;var l;if(l=!k)l=a.ya.zp(),l=!!(l.Af()||l.isInline()||l.isBackground()||
l.Qu()||l.Nu());l&&(c.nonfg="paused",k=!0,a.ya.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:Rqa(e)||Qqa(e))&&(Fta(a.j.u,e.j),c.acfallexp=e.j,f=k=!0);!k&&0<a.C&&(a.u.start(),k=!0,c.delayed="1",--a.C);e=a.ya.Sa;if(!k&&((null==d?0:eA(d))||(null==d?0:cA(d)))){var m;if(a.videoData.N("html5_disable_codec_for_playback_on_error")&&e){l=e.u;var n=d.j;l.Ta.has(n)?l=!1:(l.Ta.add(n),l.Y=-1,OP(l,l.j),l=!0);l&&(m="cfallp")}else Fta(a.j.u,d.j),m="cfallexp";m&&(f=k=!0,c[m]=d.j)}if(!k)return oIa(a,
c);a.uy=(0,g.R)();k=a.videoData;k.ib?(k=k.ib.EK(),m=Date.now()/1E3+1800,k=k<m):k=!1;c.e=b;k&&(c.staleprog="1");a.zd("qoe.restart",c);if(k&&pIa(a))return qIa(a),!0;Yr("philips")&&rIa(a);d&&eA(d)?(f=a.j.u,f.Y=!0,f=f.j=!0):e?(b=(b=uQ(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.S+=1,SP(e.u,b,!0)):a.videoData.ib&&a.videoData.ib.QI();a.u.isActive()||ER(a.ya,f);return!0};
oIa=function(a,b){if(a.videoData.kb)return!1;a.j.ib+=1;if(10>=a.j.ib)return!1;b.exiled=""+a.j.ib;a.zd("qoe.start15s",b);a.ya.ea("playbackstalledatstart");return!0};
rIa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}};
pIa=function(a){return a.B?!0:"yt"!==a.j.Ga?!1:a.videoData.kb?25>a.videoData.Vb:!a.videoData.Vb};
qIa=function(a){if(!a.B){a.B=!0;var b=a.ya.getPlayerState();b=g.U(b,4)||b.isSuspended();a.ya.Yn();b&&!CE(a.videoData)||a.ya.ea("signatureexpired")}};
sIa=function(a,b){if((a=a.ya.Ld())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.qk();b.details.merr=c?c.toString():"0";b.details.msg=a.jf()}};
tIa=function(a,b){return a.j.N("html5_eliminate_net_retryexhausted_error")?"net.badstatus"===b.errorCode&&(1===b.severity||!!b.details.fmt_unav):"net.retryexhausted"===b.errorCode||"net.badstatus"===b.errorCode&&!!b.details.fmt_unav};
vIa=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="19095";if(pIa(a))return gD(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new fD("qoe.restart",b)),a.zd(b.errorCode,b.details),qIa(a),!0;6048E5<(0,g.R)()-a.j.Ne&&uIa(a,"signature");return!1};
uIa=function(a,b){try{window.location.reload();a.zd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.N("tvhtml5_retire_old_players")&&g.IC(a.j)&&rIa(a)};
wIa=function(a,b){var c=a.j.u;c.D=!1;c.j=!0;a.zd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});GR(a.ya)};
xIa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
IR=function(a,b,c){this.X=a;this.Cz=b;this.ya=c;this.Y=this.J=this.K=this.u=this.j=this.D=this.S=this.B=0;this.playbackRate=1;this.C=!1};
zIa=function(a,b,c){!a.X.N("html5_tv_ignore_capable_constraint")&&g.IC(a.X)&&(c=c.compose(yIa(a,b)));return c};
AIa=function(a,b){return 1<a.playbackRate?(a=Bta(a.X.u,b.j.videoInfos,a.playbackRate),new Jx(0,a,!0,"o")):new Jx(0,0,!1,"o")};
BIa=function(a,b){var c=a.ya;c=c.videoData.xu||c.jh.jd().xu;if(a.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.TJ&&Mx(b.videoData.Pj))a=c.TJ,b.videoData.Pj=new Jx(0,a,!1,"u");else{var d;if(c&&(null==(d=c.jF)?0:d.length)&&Mx(b.videoData.Pj)){a=new Map;d=g.r(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.Yb(),e.video.j);d=[];c=g.r(c.jF);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.u(d));b.videoData.Pj=new Jx(0,
a,!1,"u")}}return b.videoData.Pj};
yIa=function(a,b){if(g.IC(a.X)&&Tx(a.X.u,Ux.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;wC(a.X)&&(e=window.screen&&window.screen.width?new g.yh(window.screen.width,window.screen.height):null);e||(e=a.X.lk?a.X.lk.clone():a.Cz.Zh());(yC||xP||d)&&e.scale(g.QC());d=e;cE(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||uC||(e=.45);a=g.sB(a.X.experiments,"html5_viewport_undersend_maximum");for(f=0;f<
b.length;f++){c=b[f];var k=c.video;if(null===d||k.width*e<d.width&&k.height*e<d.height){a&&f&&k.width<d.width*a&&k.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.Yb()?g.Kx[Xz(d.width,d.height)]:d.j;c=new Jx(0,c,!1,"r")}else c=SD;c=c.j}c&&(c=Math.max(c,360));return new Jx(0,c,!1,"r")};
CIa=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:return a.j.j&&navigator.mediaCapabilities?g.A(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:b=g.r(a.j.videoInfos),c=b.next();case 3:if(c.done){e.Va(0);break}d=c.value;return g.A(e,xsa(d),4);case 4:c=b.next(),e.Va(3)}})};
EIa=function(a,b){if(!b.videoData.u||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Ta()-a.S&&(a.B=0);a.B++;a.S=g.Ta();if(4!==a.B)return!1;DIa(a,b.videoData.u);return!0};
GIa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.sB(a.X.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),k=g.sB(a.X.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.R)()-a.D?0:f||0<e||0<k))return!1;a.D=(0,g.R)();c=c.jA();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.Y;a.J=c.droppedVideoFrames;a.Y=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&dD(a.X)&&a.ya.xa("ddf",
{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:n});if(d)return a.j=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.u=0<k&&60*d>k?a.u+1:0;if(!e||g.IC(a.X))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;DIa(a,b.videoData.u);a.ya.xa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},FIa()));return!0};
HIa=function(a,b){return 0>=g.sB(a.X.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
DIa=function(a,b){var c=b.j,d=b.video.fps;b=b.video.j-1;var e=SA();c=lta(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.gw("yt-player-performance-cap",e,604800));a.ya.Sv()};
IIa=function(a,b){if(!b.j.j)return a.C?new Jx(0,360,!1,"b"):SD;for(var c=!1,d=!1,e=g.r(b.j.videoInfos),f=e.next();!f.done;f=e.next())eA(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.sB(a.X.experiments,"html5_performance_cap_floor");a=a.X.isMobile?240:f;b=g.r(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!eA(e))if(f=TA(e.j,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new Jx(0,d,!1,"b")};
JIa=function(a){a=a.ya.zp();return a.isInline()?new Jx(0,480,!1,"v"):a.isBackground()&&60<Du()/1E3?new Jx(0,360,!1,"v"):SD};
LIa=function(a,b,c){if(a.X.experiments.jb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.IC(a.X)&&(1080<=RA(-1)||b.osid))return SD;var d=g.sB(a.X.experiments,"html5_autonav_quality_cap"),e=g.sB(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.nm&&Du()/1E3>e?(c&&(d=KIa(a,c,d)),new Jx(0,d,!1,"e")):SD};
KIa=function(a,b,c){if(a.N("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
MIa=function(a,b){a.N("html5_log_media_perf_info")&&(a.ya.xa("perfdb",FIa()),a.ya.xa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.ya.xa("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.u)?void 0:d.smooth)}).map(function(c){return c.Yb()}).join("-")}))};
FIa=function(){return Cf(SA(),function(a){return""+a})};
JR=function(a,b){g.G.call(this);this.j=a;this.K=b;this.u=-1;this.J=!1;this.B=-1;this.playerState=new g.aG;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.L(this.send,6E4,this);this.C=!1;g.H(this,this.delay)};
KR=function(a){0<=a.u||(3===a.j.ya.getVisibilityState()?a.J=!0:(a.u=g.zO(a.j),a.delay.start()))};
NIa=function(a){if(!(0>a.B)){var b=g.zO(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.iG(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
LR=function(a,b){b?OIa.test(a):(a=g.or(a),Object.keys(a).includes("cpn"))};
MR=function(a,b,c,d,e,f,k){var l={format:"RAW"},m={};if(rr(a)&&sr()){if(k){var n;2!==(null==(n=PIa.uaChPolyfill)?void 0:n.state.type)?k=null:(k=PIa.uaChPolyfill.state.data.values,k={"Synth-Sec-CH-UA-Arch":k.architecture,"Synth-Sec-CH-UA-Model":k.model,"Synth-Sec-CH-UA-Platform":k.platform,"Synth-Sec-CH-UA-Platform-Version":k.platformVersion,"Synth-Sec-CH-UA-Full-Version":k.uaFullVersion});m=Object.assign(m,k);l.withCredentials=!0}k=g.P("EOM_VISITOR_DATA");b.N("enable_web_eom_visitor_data")&&k?m["X-Goog-EOM-Visitor-Id"]=
k:d?m["X-Goog-Visitor-Id"]=d:b.N("enable_visitor_header_for_vss")&&g.P("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);k||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&OIa.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};
NR=function(a,b,c,d,e,f,k,l){sr()&&c.token&&(a=pr(a,{ctt:c.token,cttype:c.xJ,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:LR(a,d.N("html5_assert_cpn_with_regex")),k?d.N("use_new_nwl_saw")?Wt().sendAndWrite(a,b):du(a,b):d.N("use_new_nwl_stw")?Wt().sendThenWrite(a,b,l):cu(a,b,l)):d.ai?(b=b||{},LR(a,d.N("html5_assert_cpn_with_regex")),d.ai.enqueue(a,b)):b?(LR(a,d.N("html5_assert_cpn_with_regex")),g.Gr(a,b)):g.Nt(a,e)};
g.PR=function(a){g.G.call(this);var b=this;this.j=a;this.logger=new g.iP("qoe");this.u={};this.sequenceNumber=1;this.Xa=NaN;this.Yd="N";this.S=this.Ib=this.ib=this.Ua=this.C=0;this.Ga=this.Kb="";this.kb=this.ma=NaN;this.gb=0;this.Vb=-1;this.rb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Ta=this.va=this.isOffline=this.ra=!1;this.Gc=[];this.Z=null;this.D=this.La=this.J=!1;this.B=-1;this.Ia=!1;this.kc=new g.L(this.bW,750,this);this.Y=this.adCpn="";this.adFormat=void 0;this.Oc=0;this.Kc=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));
g.H(this,this.kc);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.Z=c});
g.OR(this,0,"vps",["N"])};
g.OR=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
QR=function(a,b){var c=a.j.ya.getCurrentTime();g.OR(a,b,"cmt",[c.toFixed(3)]);c=a.j.ya.Li();if(a.K&&1E3*c>a.K.eP+100&&a.K){var d=a.K,e=d.isAd;c=1E3*c-d.eP;a.Aa=1E3*b-d.Q_-c-d.F_;if(!a.j.videoData.N("web_player_dai_csi_killswitch")){c=(0,g.R)()-c;b=a.Aa;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var k={};!d.N("web_player_csi_ctt_killswitch")&&d.K&&(k.cttAuthInfo={token:d.K,videoId:d.videoId});k.startTime=c-b;ox(f,k);nx({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);mx("pbs",c,f)}else c=a.j.ya.vj(),c.K!==d.clientPlaybackNonce?(c.J=d.clientPlaybackNonce,c.B=b):g.Jv(new g.Is("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.xa("gllat",{l:a.Aa.toFixed(),prev_ad:+e});delete a.K}};
RR=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.zO(a.j);var c=a.j.ya.zB();if(!isNaN(a.ma)&&!isNaN(c.j)){var d=c.j-a.ma;0<d&&g.OR(a,b,"bwm",[d,(c.C-a.kb).toFixed(3)])}isNaN(a.ma)&&c.j&&a.isOffline&&QIa(a,!1);a.ma=c.j;a.kb=c.C;isNaN(c.bandwidthEstimate)||g.OR(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);dD(a.j.X)&&0!==Object.keys(c.u).length&&a.xa("bwinfo",c.u);if(dD(a.j.X)||a.j.X.N("html5_log_meminfo"))d=gHa(),Object.values(d).some(function(e){return void 0!==e})&&a.xa("meminfo",d);
a.Z&&g.OR(a,b,"bat",[a.Z.level,a.Z.charging?"1":"0"]);d=a.j.ya.getVisibilityState();a.Vb!==d&&(g.OR(a,b,"vis",[d]),a.Vb=d);QR(a,b);(d=RIa(a.j))&&d!==a.gb&&(g.OR(a,b,"conn",[d]),a.gb=d);SIa(a,b,c)};
SIa=function(a,b,c){if(!isNaN(c.Tq)){var d=c.Tq;c.B<d&&(d=c.B);g.OR(a,b,"bh",[d.toFixed(3)])}};
TIa=function(a,b,c){g.cD(a.j.X,g.BE(a.j.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.j.X.N("kevlar_woffle")||a.j.X.N("qoe_nwl_downloads"))e=!0}else a.j.X.N("qoe_with_networkless")&&(e=!0);var f=a.j.X.N("qoe_send_and_write"),k=a.j.X,l=a.j.N("web_player_vss_pageid_header")?a.j.X.pageId:void 0;d=MR(b,k,l,a.j.X.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,d);k.N("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,NR(b,d,{token:a.j.videoData.K,
xJ:a.j.videoData.ij,mdxEnvironment:a.j.videoData.mdxEnvironment},k,void 0,e,f&&a.va)):e?(e=a.j.X.N("networkless_ajax"),k={method:"POST",postBody:c},f&&a.va?a.j.X.N("use_new_nwl_saw")?Wt().sendAndWrite(b,k):du(b,k):e?g.Gr(b,{method:"POST",postBody:c}):a.j.X.N("use_new_nwl_stw")?Wt().sendThenWrite(b,k):cu(b,k)):(f=c,f=void 0===f?"":f,Lna(b,f)||g.Nt(b,void 0,void 0,void 0,f))})};
SR=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(Yl(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.L(a.reportStats,0,a)).start()};
UIa=function(a){a.j.videoData.Ee&&TR(a,"prefetch");a.j.videoData.Vb&&a.xa("reload",{r:a.j.videoData.reloadReason,ct:a.j.videoData.Vb});a.j.videoData.Ib&&TR(a,"monitor");a.j.videoData.isLivePlayback&&TR(a,"live");a.j.videoData.fh&&a.xa("ctrl",{mode:a.j.videoData.fh},!0);if(a.j.videoData.Dh){var b=a.j.videoData.Dh.replace(/,/g,"_");a.xa("ytp",{type:b},!0)}a.j.videoData.XN&&(b=a.j.videoData.XN.replace(/,/g,"."),a.xa("ytrexp",{ids:b},!0));if(!a.j.X.N("html5_disable_gpu_reporting")){var c=a.j.videoData;
b=a.j.X.N("enable_white_noise")||a.j.X.N("enable_webgl_noop")||a.j.X.N("enable_gpu_logging");c=g.tE(c)||g.rE(c)||g.sE(c)||g.uE(c);(b||c)&&(b=(0,g.UR)())&&(a.u.gpu=[b])}CE(a.j.videoData)&&g.OR(a,g.zO(a.j),"dt",["1"]);dD(a.j.X)&&(b=(0,g.R)()-a.j.X.Ne,a.xa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.Xa=g.Cr(function(){a.reportStats()},1E4)};
WIa=function(a,b,c){var d=g.zO(a.j);VIa(a,d,b,0,c);RR(a,d);SR(a)};
VIa=function(a,b,c,d,e){var f=a.j.ya.getCurrentTime();c=[c,1===d?"fatal":"",f.toFixed(3)];e&&c.push(XIa(e));g.OR(a,b,"error",c);a.D=!0};
VR=function(a){0<=a.B||(a.j.X.De||3!==a.j.ya.getVisibilityState()?a.B=g.zO(a.j):a.Ia=!0)};
TR=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
QIa=function(a,b){a.isOffline=b;g.OR(a,g.zO(a.j),"is_offline",[a.isOffline?"1":"0"])};
YIa=function(a,b,c,d,e){var f=g.zO(a.j);1===b&&g.OR(a,f,"vps",[a.Yd]);var k=a.u.xvt||[];k.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=k};
XIa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
ZIa=function(a){this.j=a;this.S=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.K=this.J=0;this.Z=this.j.Mi().volume;this.Y=this.j.Mi().muted;this.C=WR(this.j)};
YR=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Nb(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=WR(a.j);a.B=a.u};
$Ia=function(a){a.segments.length&&a.u===a.B||YR(a);var b=a.segments;a.segments=[];return b};
bJa=function(a){aJa(a);a.K=g.Cr(function(){a.update()},100);
a.lastUpdateTime=g.zO(a.j);a.C=WR(a.j)};
aJa=function(a){window.clearInterval(a.K);a.K=NaN};
cJa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
ZR=function(a,b,c,d){this.X=b;this.segments=[];this.experimentIds=[];this.Ua=this.Vb=this.isFinal=this.Ne=this.Kb=this.autoplay=this.autonav=!1;this.Gc="yt";this.J=this.K=null;this.sendVisitorIdHeader=this.Xa=!1;this.pageId="";this.B="watchtime"===c;this.C="playback"===c;this.ma="delayplay"===c;this.Z="atr"===c;this.Oe="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Z?"/api/stats/"+c:"//"+b.nk+"/api/stats/"+c;this.Qf=!b.N("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.D;d&&(this.Vb=d.fs,d.rtn&&(this.J=d.rtn),this.B?(this.playerState=d.state,0<d.rti&&(this.K=d.rti)):(this.Pe=d.mos,this.nj=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Oc=d.inview),d.size&&(this.Kc=d.size));this.deviceParams=g.Uf(b.deviceParams);this.Me=b.Me;b.N("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Ta=b.Qf;this.Gc=b.Ga;this.region=
b.region;this.userAge=b.userAge;this.rb=b.Ag;this.ud=Du();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.ra=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.Qe=b.N("vss_final_ping_send_and_write");this.va=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.cf=b.N("vss_playback_use_send_and_write");this.fd=b.N("use_new_nwl_saw");this.qd=b.N("use_new_nwl_stw");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Pg=b.j&&b.N("embeds_append_synth_ch_headers");g.rC(b)&&
!b.N("embeds_rct_killswitch")&&(this.embedsRct=b.embedsRct);g.rC(b)&&!b.N("embeds_enable_epm_killswitch")&&(this.La=b.Mj);this.accessToken=g.BE(a);a.OL&&(this.D=a.OL);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=AE(a);this.autonav=a.nm||this.autonav;this.Ee=yE(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Kb=a.D;a.K&&(this.S=a.K,this.Ib=a.ij);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Kw;this.Ia=a.Gc;a.u&&(this.videoFormat=a.u.Yb(),a.J&&a.J.Yb()!==
this.videoFormat&&(this.audioFormat=a.J.Yb()));a.j&&Qx(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Qf?"embedded_unbranded":xE(a);this.Ua=a.Qf;this.Id=a.ol;if(b=mE(a))this.qf=b;this.Pd=a.Sm;this.eventId=a.eventId;this.playlistId=a.UO||a.playlistId;this.fh=a.fh;this.Dh=a.Dh;this.De=a.Mw;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.pe=a.Y0;this.referrer=a.referrer;this.gb=a.HN||a.mN;this.ib=
a.Ow;this.kb=a.d1;this.userGenderAge=a.userGenderAge;this.Ga=a.t0};
$R=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.cD(a.X,a.accessToken).then(function(d){return MR(a.uri,a.X,a.pageId,c,d,b,a.Pg)})};
dJa=function(a,b){return function(){a.X.N("html5_simplify_pings")?(a.j=a.Aa,a.bd=b(),a.ud=0,a.send()):$R(a).then(function(c){var d=a.uri,e=aS(a),f=a.ra,k=a.va,l=a.fd,m=a.qd;l=void 0===l?!1:l;m=void 0===m?!1:m;e.cmt=e.len;e.lact="0";var n=b().toFixed(3);e.rt=Number(n).toString();d=g.sj(d,e);f?(null==c&&(c={}),k?l?Wt().sendAndWrite(d,c):du(d,c):m?Wt().sendThenWrite(d,c):cu(d,c)):c?g.Gr(d,c):g.Nt(d)})}};
aS=function(a){var b={ns:a.Gc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.Vb?"1":"0",rt:a.u(a.bd),adformat:a.adFormat,content_v:a.Ee,etv:a.embedsTokenValue,euri:a.Me,lact:a.ud,live:a.qf,cl:(441272844).toString(),mos:a.Pe,state:a.playerState,volume:a.nj};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.Kb&&(b.dni="1");!a.B&&a.La&&(b.epm=eJa[a.La]);a.isFinal&&(b["final"]="1");a.Ua&&(b.splay="1");a.Ia&&(b.delay=a.Ia);
a.Ta&&(b.hl=a.Ta);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.rb&&(b.uga=a.rb+a.userAge);void 0!==a.Aa&&(b.len=a.u(a.Aa));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.J&&(b.rtn=a.u(a.J));a.gb&&(b.feature=a.gb);a.fh&&(b.ctrl=a.fh);a.Dh&&(b.ytr=a.Dh);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.kc&&(b.lio=a.u(a.kc));a.B?(b.idpj=a.Id,b.ldpj=a.Pd,null!=a.K&&(b.rti=
a.u(a.K)),a.Ga&&(b.ald=a.Ga)):void 0!==a.adType&&(b.at=a.adType);a.Kc&&(a.C||a.ma||a.B)&&(b.size=a.Kc);null!=a.Oc&&(a.C||a.ma||a.B)&&(b.inview=a.u(a.Oc));a.B&&(b.volume=bS(a,g.Wl(a.segments,function(d){return d.volume})),b.st=bS(a,g.Wl(a.segments,function(d){return d.startTime})),b.et=bS(a,g.Wl(a.segments,function(d){return d.endTime})),Zm(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=bS(a,g.Wl(a.segments,function(d){return d.playbackRate}))),Zm(a.segments,function(d){return"-"!==d.j})&&
(b.als=g.Wl(a.segments,function(d){return d.j}).join(",")));
b.muted=bS(a,g.Wl(a.segments,function(d){return d.muted?1:0}));
Zm(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=bS(a,g.Wl(a.segments,function(d){return d.visibilityState})));
Zm(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=bS(a,g.Wl(a.segments,function(d){return d.connectionType})));
Zm(a.segments,function(d){return 0!==d.u})&&(b.blo=bS(a,g.Wl(a.segments,function(d){return d.u})));
Zm(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Wl(a.segments,function(d){return d.C}).join(","));
Zm(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Wl(a.segments,function(d){return d.clipId}).join(","));
if(Zm(a.segments,function(d){return!!d.B})){var c="au";
a.C&&(c="au_d");b[c]=g.Wl(a.segments,function(d){return d.B}).join(",")}sr()&&a.S&&(b.ctt=a.S,b.cttype=a.Ib,b.mdx_environment=a.mdxEnvironment);
a.Oe&&(b.etype=void 0!==a.Y?a.Y:0);a.ib&&(b.uoo=a.ib);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=fJa[a.livingRoomAppMode]||a.livingRoomAppMode);a.D&&a.X.N("html5_log_server_url_param")?gJa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.pe,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.De&&(b.ssrt="1"),a.kb&&(b.upt=a.kb));(a.C||a.ma)&&a.embedsRct&&
(b.rct=a.embedsRct);return b};
gJa=function(a,b){if(b&&a.D)for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]),f=g.r(Object.keys(a.D)),k=f.next();!k.done;k=f.next())k=k.value,d.has(k)||c.has(k)||e.has(k)&&!a.D[k]||(b[k]=a.D[k])};
bS=function(a,b){return g.Wl(b,a.u).join(",")};
hJa=function(a,b){a.attestationResponse&&$R(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.ra?a.va?a.fd?Wt().sendAndWrite(b,c):du(b,c):a.qd?Wt().sendThenWrite(b,c):cu(b,c):g.Gr(b,c)})};
cS=function(a){g.G.call(this);this.j=a;this.currentPlayerState="paused";this.B=NaN;this.J=[10,10,10,40];this.S=this.K=0;this.ra=this.ma=this.Aa=this.va=this.Z=this.Y=this.C=!1;this.D=NaN;this.u=new ZIa(a)};
jJa=function(a){if(!a.C){a.j.X.N("disable_embedpage_playback_logging")||16623!==a.j.videoData.rz||g.Jv(Error("Playback for EmbedPage"));var b=dS(a,"playback");a:{if(a.j.X.N("web_player_use_server_vss_schedule")){var c,d=null==(c=a.j.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.j.videoData.ol,k=a.j.videoData.Sm,l=-f;e=g.r(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+k-f);c.push(d);a.J=c;break a}}a.J=[10+a.j.videoData.ol,10,10,40+a.j.videoData.Sm-a.j.videoData.ol,40]}bJa(a.u);b.J=eS(a,!0);0<a.D&&(b.j-=a.D);b.send();a.j.videoData.Rs&&(b=a.j.X,d=a.j.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Rs,oid:d.FL,ptchn:d.EL,pltype:d.GL,content_v:yE(d)},d.Mr&&Object.assign(c,{m:d.Mr}),b=g.sj(b.ma+"ptracking",c),fS(a,b));a.j.videoData.Gc||iJa(a);a.C=!0;a=a.u;a.u=a.j.ya.getCurrentTime();
a.j.X.N("html5_vss_media_time_killswitch")||(a.u=a.j.ya.Li());a.lastUpdateTime=g.zO(a.j);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.S=!0}};
eS=function(a,b,c){c=void 0===c?NaN:c;var d=g.zO(a.j);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.J[a.K];a.K+1<a.J.length&&a.K++;var f=c+e;a.B=g.Br(function(){if(!a.isDisposed()){a.B=NaN;a.u.update();var k=$Ia(a.u),l=kJa(a,k);b&&(l.K=f);var m=1E3<a.S;!(1<k.length)&&k[0].isEmpty()||m||(l.J=eS(a,!0,f));l.send();a.S++}},1E3*(f-d));
return f};
dS=function(a,b){var c=a.j;c=Object.assign(c.Mi(),c.videoData.Mi());Object.assign(c,{state:a.currentPlayerState});b=new ZR(a.j.videoData,a.j.X,b,c);b.j=a.j.ya.getCurrentTime();a.j.X.N("html5_vss_media_time_killswitch")||(b.j=a.j.ya.Li());a.j.videoData.isLivePlayback||(b.Aa=a.j.ya.getDuration());a.j.videoData.j&&(c=a.j.videoData.j.getIngestionTime(b.j))&&(b.kc=c-b.j);b.bd=g.zO(a.j);b.segments=[WR(a.j)];return b};
kJa=function(a,b){var c=dS(a,"watchtime");if(0<a.D){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.j-=a.D}else c.j=a.u.u;c.segments=b;return c};
gS=function(a){a.u.update();return kJa(a,$Ia(a.u))};
iJa=function(a){a.j.videoData.remarketingUrl&&!a.va&&(fS(a,a.j.videoData.remarketingUrl),a.va=!0);a.j.videoData.youtubeRemarketingUrl&&!a.Aa&&(fS(a,a.j.videoData.youtubeRemarketingUrl),a.Aa=!0);a.j.videoData.googleRemarketingUrl&&!a.ma&&(fS(a,a.j.videoData.googleRemarketingUrl),a.ma=!0);a.j.videoData.ppvRemarketingUrl&&!a.ra&&(fS(a,a.j.videoData.ppvRemarketingUrl),a.ra=!0);a.Uv()};
hS=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=gS(a);b.isFinal=!0;b.send();a.dispose()}};
lJa=function(a,b,c){if(!a.Y){c||(c=dS(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Y=!0}};
fS=function(a,b){var c=a.j.X;g.cD(a.j.X,g.BE(a.j.videoData)).then(function(d){var e=a.j.N("web_player_vss_pageid_header")?a.j.X.pageId:void 0,f=a.j.X.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,k=a.j.X.N("vss_pings_using_networkless")||a.j.X.N("kevlar_woffle"),l=a.j.X.N("allow_skip_networkless");d=MR(b,c,e,f,d);NR(b,d,{token:a.j.videoData.K,xJ:a.j.videoData.ij,mdxEnvironment:a.j.videoData.mdxEnvironment},c,void 0,k&&!l,!1,!0)})};
mJa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.j=this.clipId="-"};
iS=function(a,b,c,d){this.videoData=a;this.X=b;this.ya=c;this.Mi=d;this.j=void 0};
g.zO=function(a){return nJa(a)()};
nJa=function(a){if(!a.j){var b=g.Ra(function(d){var e=(0,g.R)();d&&631152E6>=e&&(g.Iv(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.X.N("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.ya.eI()}return a.j};
RIa=function(a){if(navigator.connection&&navigator.connection.type)return oJa[navigator.connection.type]||oJa.other;if(g.IC(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
WR=function(a){var b=new mJa;b.C=a.Mi().cc||"-";b.playbackRate=a.ya.getPlaybackRate();var c=a.ya.getVisibilityState();0!==c&&(b.visibilityState=c);a.X.bd&&(b.u=1);c=a.ya.getAudioTrack();c.Ic&&c.Ic.id&&"und"!==c.Ic.id&&(b.B=c.Ic.id);b.connectionType=RIa(a);b.volume=a.Mi().volume;b.muted=a.Mi().muted;b.clipId=a.Mi().clipid||"-";b.j=a.videoData.ML||"-";return b};
g.jS=function(a){g.G.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.Ug=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Mj&&(this.j=new cS(this.u),g.H(this,this.j),this.qoe=new g.PR(this.u),g.H(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Ug=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.Ug,this.j));this.C=new JR(this.u,function(c){b.xa("h5h",c)});
g.H(this,this.C)};
pJa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.Ug){var b;null!=(b=a.B.get(a.Ug))&&YR(b.u)}else a.j&&YR(a.j.u)};
qJa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Yd&&(b.Yd="N");var c=g.zO(b.j);g.OR(b,c,"vps",[b.Yd]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);dD(b.j.X)&&b.xa("finalized",{});b.va=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())hS(c.value);else a.j&&hS(a.j);a.dispose()};
rJa=function(a,b){a.j&&lJa(a.j,b)};
sJa=function(a){if(!a.j)return null;var b=dS(a.j,"atr");return function(c){a.j&&lJa(a.j,c,b)}};
tJa=function(a,b,c,d){c.adFormat=c.qd;var e=b.ya;b=new cS(new iS(c,b.X,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Li:function(){return e.Li()},
zB:function(){return e.zB()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Vx:function(){return e.Vx()},
getVisibilityState:function(){return e.getVisibilityState()},
vj:function(){return e.vj()},
eI:function(){e.eI()},
Oy:function(){e.Oy()}},b.Mi));
b.D=d;g.H(a,b);return b};
uJa=function(){this.Tq=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
vJa=function(){this.u=g.Kw;this.j=[]};
xJa=function(a,b,c){var d=[];for(b=wJa(a,b);b<a.j.length;++b){var e=a.j[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
yJa=function(a,b){var c=[];a=g.r(a.j);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
zJa=function(a){return a.j.slice(wJa(a,0x7ffffffffffff),a.j.length)};
wJa=function(a,b){a=hc(a.j,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
AJa=function(a,b){var c=NaN;a=g.r(a.j);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
BJa=function(a,b){a.j=a.j.filter(function(c){return!b.has(c)})};
kS=function(a,b,c,d){g.G.call(this);this.S=a;this.ma=b;this.D=c;this.Y=d;this.u=NaN;this.J=this.K=this.started=!1;this.B=[];this.Z=new g.L(this.yl,250,this);g.H(this,this.Z);this.C=new g.L(this.yl,0,this);g.H(this,this.C);this.j=new vJa};
CJa=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.Y(g.Lw(d.namespace),d):a.Y(g.Mw(d.namespace),d)}};
DJa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.IC(a)&&(this.C=.01)};
lS=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
mS=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
EJa=function(a,b){this.videoData=a;this.j=b};
FJa=function(a,b,c){return bwa(b,c).then(function(){return Mr(new EJa(b,b.C))},function(d){d instanceof Error&&jr(d);
d=b.isLivePlayback&&!g.zB(a.u,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e=b.isLivePlayback&&!g.zB(a.u,!0)?2:1,f={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.rb,drm:""+ +dE(b),f18:""+ +(0<=b.Nj.indexOf("itag=18")),c18:""+ +kA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.j&&(dE(b)?(f.f142=""+ +!!b.j.j["142"],f.f149=""+ +!!b.j.j["149"],f.f279=""+ +!!b.j.j["279"]):(f.f133=""+ +!!b.j.j["133"],f.f140=""+ +!!b.j.j["140"],f.f242=""+ +!!b.j.j["242"]),f.cAVC=""+ +lA('video/mp4; codecs="avc1.42001E"'),
f.cAAC=""+ +lA('audio/mp4; codecs="mp4a.40.2"'),f.cVP9=""+ +lA('video/webm; codecs="vp9"'));if(b.Y){f.drmsys=b.Y.keySystem;var k=0;b.Y.j&&(k=Object.keys(b.Y.j).length);f.drmst=""+k}return new fD(d,f,e)})};
GJa=function(a){this.D=a;this.B=this.u=0;this.C=new lP(50)};
oS=function(a,b,c){g.iv.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 HJa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Ib?c.u=3:g.pE(a)&&(c.u=2);b.jb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=Uva(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===iE(a)&&(c.J=g.sB(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Yr("trident/")||Yr("edge/"))c.B=Math.max(c.B,g.sB(b,"html5_platform_minimum_readahead_seconds")||
3);g.sB(b,"html5_minimum_readahead_seconds")&&(c.B=g.sB(b,"html5_minimum_readahead_seconds"));g.sB(b,"html5_maximum_readahead_seconds")&&(c.Y=g.sB(b,"html5_maximum_readahead_seconds"));b.jb("html5_force_adaptive_readahead")&&(c.C=!0);g.sB(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.sB(b,"html5_allowable_liveness_drift_chunks"));g.sB(b,"html5_readahead_ratelimit")&&(c.Z=g.sB(b,"html5_readahead_ratelimit"));switch(iE(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.K=b.jb("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Ib&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(iE(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=nS(this,b)};
IJa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.K&&3===Uva(a.videoData)&&--c;return pS(a)*c};
qS=function(a,b){var c=a.Ck(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*pS(a);return b>=c-a};
JJa=function(a,b,c){b=qS(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
KJa=function(a,b){b=qS(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b};
pS=function(a){return a.videoData.j?OA(a.videoData.j)||5:5};
nS=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/pS(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Y/pS(a))),b)};
HJa=function(){this.ma=1;this.B=0;this.Y=Infinity;this.Z=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.S=!1};
tS=function(a){g.G.call(this);this.ya=a;this.X=this.ya.V();this.C=this.j=0;this.B=new g.L(this.D,1E3,this);this.Aa=new rS({delayMs:g.sB(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Y=new rS({delayMs:g.sB(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Ga=sS(this,"html5_seek_set_cmt");this.ma=sS(this,"html5_seek_jiggle_cmt");this.ra=sS(this,"html5_seek_new_elem");this.Ua=sS(this,"html5_unreported_seek_reseek");this.K=sS(this,"html5_long_rebuffer_jiggle_cmt");this.S=new rS({delayMs:2E4});
this.J=sS(this,"html5_ads_preroll_lock_timeout");this.Ia=new rS({delayMs:g.sB(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,mu:!this.X.N("html5_report_slow_ads_as_error")});this.La=new rS({delayMs:g.sB(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,mu:!this.X.N("html5_skip_slow_buffering_ad")});this.va=sS(this,"html5_seek_over_discontinuities");this.Ta=new rS({delayMs:g.sB(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Z=sS(this,"html5_slow_start_no_media_source");
this.u={};g.H(this,this.B)};
sS=function(a,b){var c=g.sB(a.X.experiments,b+"_delay_ms");a=a.X.N(b+"_cfl");return new rS({delayMs:c,mu:a})};
LJa=function(a,b,c,d,e,f,k){var l=sA(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&k&&m;var n=l+1<c.length?c.start(l+1):d;uS(a,a.va,m&&!e,f&&!k,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
uS=function(a,b,c,d,e,f,k){MJa(b,c)?(a.zd(e,b,k),b.mu||f()):(b.ZC&&b.triggerTimestamp&&!b.B?(c=(0,g.R)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.ZC,c=b.j&&c-b.j>b.CI||f?b.B=!0:!1):c=!1,c&&(c=Object.assign({},a.Pb(b)),c.wn=k,c.we=e,c.wsuc=d,a.ya.xa("workaroundReport",c),d&&(b.reset(),a.u[e]=!1)))};
rS=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.CI?1E3:b.CI,d=void 0===b.ZC?3E4:b.ZC;b=void 0===b.mu?!1:b.mu;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.CI=c;this.ZC=d;this.mu=b};
MJa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.R)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
wS=function(a){g.G.call(this);var b=this;this.ya=a;this.X=this.ya.V();this.videoData=this.ya.getVideoData();this.policy=new NJa(this.X);this.Z=new tS(this.ya);this.playbackData=null;this.Ia=new g.iA;this.J=this.u=this.Sa=this.mediaElement=null;this.j=NaN;this.C=0;this.B=null;this.va=NaN;this.D=this.K=null;this.Y=this.S=!1;this.ra=new g.L(function(){OJa(b,!1)},2E3);
this.Ua=new g.L(function(){vS(b)});
this.Ga=new g.L(function(){b.S=!0;PJa(b)});
this.timestampOffset=0;this.La=!0;this.Aa=0;this.Ta=NaN;this.ma=new g.L(function(){var c=b.X.pe;c.j+=1E4/36E5;c.j-c.B>1/6&&(hua(c),c.B=c.j);b.ma.start()},1E4);
g.H(this,this.Z);g.H(this,this.Ia);g.H(this,this.ra);g.H(this,this.Ga);g.H(this,this.Ua);g.H(this,this.ma)};
QJa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new GJa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if($D(a.videoData)&&a.Sa){var c=a.Sa.Ia.rh()||0;break a}if(a.videoData.j){c=a.videoData.j.ra;break a}}c=0}return c}),a.u=new oS(a.videoData,a.X.experiments,function(){return a.Kd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
zS=function(a,b){(a.Sa=b)?xS(a,!0):yS(a)};
RJa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.J&&d){var e=a.J;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.getSegmentNumberForTime(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.mediaElement?ZF(a.mediaElement):0,d.C++,3>d.C||g.Ta()-d.J<d.policy.Z||(d.J=g.Ta(),d.u.push(e),50<d.u.length&&d.u.shift())),d=a.u,JJa(d,c,void 0===b?!0:b),KJa(d,c),b&&OJa(a,!0))};
OJa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!qS(c,d)&&c.Jn()?(c.policy.S&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.getMinSeekableTime()?Math.min(c.videoData.getMinSeekableTime()+10,c.Ck()):NaN;if(!isNaN(c)){if(a.Sa&&b&&(b=a.ra.isActive(),d=a.u.Ck(),(d=BHa(a.Sa,d-a.Fd()))&&!b)){a.ra.start();a.ya.xa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Fd()});a.seekTo(d+a.Fd(),{Ie:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{Ie:"playbacktimeline_pegToLive"})}}};
xS=function(a,b){if(a.u&&a.Sa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=nS(b,b.j-1);break b}if(b.policy.C){d=nS(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.ya.Zb,b=IJa(a.u),c.qoe&&(c=c.qoe,g.OR(c,g.zO(c.j),"lra",[b]),c.xa("live-readahead-seconds",{v:b})));b=a.Sa;c=a.u.j;d=a.u;d=(d.j-1+d.policy.j)*
pS(d);a=a.u.policy.J;b.Gf=Math.max(c-1,0);b.D&&(b.D.ma=d);b.rb=a}};
SJa=function(a,b){a.C=b};
AS=function(a){return a.videoData.isLivePlayback&&!!a.videoData.C&&!a.videoData.C.j};
PJa=function(a){TJa(a).then(void 0,function(){yS(a)});
BS(a).then(function(c){UJa(a,c)},function(){yS(a)});
RO(a.ya);if(2<=a.X.Y){var b=a.Pb();b["native"]=""+ +a.Y;b.tgt=""+a.j;a.ya.xa("startSeek",b)}};
TJa=function(a){if(!a.K)if(a.Sa)if(isFinite(a.j))a.K=a.Sa.seek(a.j-a.timestampOffset);else{var b=a.Sa;YQ(b);b.D&&cHa(b.D,b.videoTrack.j);g.zp(b.ma);b=b.J;var c=Math.max(b.videoTrack.C.B||0,b.audioTrack.C.B||0);CGa(b.videoTrack);CGa(b.audioTrack);var d=b.j,e;for(e in d.j)gra(d.j[e].index,Infinity);b.j.isManifestless&&(b.C=!0);b.Sa.currentTime=c;b.u=!0;b.D=new qO;a.K=b.D;a.j=a.Sa.getCurrentTime()+a.timestampOffset}else a.K=zi(a.j-a.timestampOffset);return a.K};
BS=function(a){var b=a.B;b||(a.B=new qO,b=a.B,vS(a));return b};
VJa=function(a,b,c){return isNaN(b)?NaN:g.sh(b,a.getMinSeekableTime(),a.Kd(c))};
vS=function(a){if(a.B)if(!a.N("html5_nondash_live_seek_killswitch")&&AS(a)&&a.mediaElement&&0<a.mediaElement.Hi()&&0<YF(a.mediaElement)&&(a.j=VJa(a,a.j,!1)),!a.mediaElement||!WJa(a))a.Ua.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.va!==a.j-a.timestampOffset){var b=a.mediaElement.getCurrentTime()-a.j;if(Math.abs(b)<=a.Aa)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else if(!a.videoData.isLivePlayback&&a.j>=a.Kd()-.1)a.j=a.Kd(),a.B.resolve(a.Kd()),AO(a.ya);else try{var c=a.j-a.timestampOffset;
a.mediaElement.seekTo(c);a.Z.j=c;a.va=c;a.C=a.j}catch(d){}}};
WJa=function(a){if(!a.mediaElement||0===a.mediaElement.Hi()||0<a.mediaElement.qk())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.N("html5_nondash_mediaelementready_killswitch")||a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&dE(a.videoData))return b;if(0<=a.j){var c=a.mediaElement.Tx();if(c.length||!b)return tA(c,a.j-a.timestampOffset)}return b};
UJa=function(a,b){a.D&&(a.D.resolve(b),a.ya.ea("SEEK_COMPLETE"),2<=a.X.Y&&(b=a.Pb(),b["native"]=""+ +a.Y,a.ya.xa("seekEnd",b)));yS(a)};
yS=function(a){a.j=NaN;a.va=NaN;a.B=null;a.K=null;a.D=null;a.S=!1;a.Y=!1;a.Aa=0;a.ra.stop();a.Ga.stop()};
XJa=function(a){if(a.mediaElement){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ia.T(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.Y&&d!==a.j)a.B=new qO,a.va=d,e=e.getCurrentTime(),a.Z.j=e,a.seekTo(d,{Ie:"playbacktimeline_mediaElementEvent"}),a.Y=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.La){e="ss";
d=0;(qE(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.j?(d=a.videoData.liveUtcStartSeconds||a.videoData.fd,e="utc",d=a.Kd()-a.getIngestionTime(a.Kd())+d):a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.fd?(e="mss",d=a.videoData.fd+a.Fd()):a.videoData.zq&&(e="stss",d=a.videoData.zq);var f={};d?(a.seekTo(d,{Ie:"playbacktimeline_startSeconds"}),f[e]=d,
a.ya.xa("startSeconds",f),a.La=!1):a.videoData.fd&&(f[e]=a.videoData.fd+a.Fd(),a.ya.xa("startSeconds",f));e=!!d}else e=!1;a.N("html5_nondash_live_seek_killswitch")&&!e&&AS(a)&&(a.j=isFinite(a.j)?g.sh(a.j,a.getMinSeekableTime(),a.Kd()):a.Kd());vS(a);break;case "progress":vS(a)}});
a.D||a.C||a.policy.u||!a.mediaElement.GI()||a.seekTo(.01,{Ie:"playbacktimeline_setupMediaElement"})}};
YJa=function(a,b){a.j=b;a.C=b;BS(a).then(function(c){UJa(a,c)},function(){yS(a)})};
NJa=function(a){this.j=a.N("html5_live_smoothly_extend_max_seekable_time");this.u=a.N("html5_requires_seek_for_playback_at_zero_killswitch")};
CS=function(){this.finished=this.started=!1};
DS=function(a){this.j=a;this.iv=$Ha(Ov(16))};
ZJa=function(a,b){var c;return g.B(function(d){c=aua(a.j);return d.return(c.encrypt(b,a.iv))})};
$Ja=function(a,b){var c;return g.B(function(d){var e=a.j;e.C||(e.C=new Tta(e.B));c=e.C;return d.return(Wta(c,b,a.iv))})};
aKa=function(a,b,c){var d;return g.B(function(e){d=aua(a.j);return e.return(d.decrypt(b,c))})};
ES=function(a){g.G.call(this);this.u=a;this.logger=new g.iP("onesie");this.ge=new Map;this.j=!1};
rQ=function(a,b){return a.ge.has(b)};
iHa=function(a,b){return(a=a.ge.get(b))?a.PO:[]};
xGa=function(a,b,c){a.ge.get(b).Vd=c};
HS=function(a,b){rQ(a,b)&&(a.ge.get(b).Je=new iy,GS(a,b))};
bKa=function(a){for(var b=g.r(a.ge),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.Vd||HS(a,c)}};
jHa=function(a,b){var c;return(null==(c=a.ge.get(b))?void 0:c.zk)||0};
wGa=function(a,b){var c=a.ge.get(b),d=!c.zk&&!!c.bytesReceived;b=a.Gg(b);return d&&a.j&&void 0!==b?b:(d||c.bytesReceived===c.zk)&&c.EA+c.Je.totalLength===c.bytesReceived};
cKa=function(a,b,c){c=void 0===c?!1:c;a.ge.set(b,{Je:new iy,EA:0,bytesReceived:0,uI:!1,Jf:!1,Gg:!1,Gn:c,PO:[]})};
IS=function(a){a=g.r(a.ge.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.uI&&(b.Vd&&b.Vd(),b.uI=!1)};
GS=function(a,b){if((b=a.ge.get(b))&&!b.Jf){b.Jf=!0;b.Vd&&b.Vd();a:{b=g.r(a.ge.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.Jf){b=!1;break a}b=!0}if(b&&(a=a.u,a.playerResponse)){var d;null==(d=a.xhr)||d.abort()}}};
dKa=function(a,b){for(var c=!1,d=g.r(a.ge.keys()),e=d.next();!e.done;e=d.next()){e=a.ge.get(e.value);var f=void 0,k=void 0;(null==(f=e)?0:f.zk)&&0<(null==(k=e)?void 0:k.zk)&&(e.Gn?c=!0:b=!0)}return b&&c};
fKa=function(a,b){eJ(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(dJ(a,112),dJ(a,c<<1^c>>31));eJ(a,16,b.MW);eJ(a,18,b.fV);eJ(a,19,b.eV);eJ(a,21,b.g0);eJ(a,23,b.TU);eJ(a,34,b.visibility);iJ(a,38,b.mediaCapabilities,eKa,3);eJ(a,39,b.w0);eJ(a,40,b.bN)};
gKa=function(a){for(var b=[];YI(a,2);)b.push(XI(a));return{jF:b.length?b:void 0,TJ:ZI(a,4)}};
eKa=function(a,b){var c;if(b.SJ)for(c=0;c<b.SJ.length;c++)iJ(a,1,b.SJ[c],hKa,1);if(b.iF)for(c=0;c<b.iF.length;c++)iJ(a,2,b.iF[c],iKa,1)};
iKa=function(a,b){eJ(a,1,b.SU);eJ(a,2,b.numChannels);eJ(a,3,b.UW)};
hKa=function(a,b){eJ(a,1,b.V0);eJ(a,3,b.VW);eJ(a,4,b.WW);eJ(a,11,b.maxFramerate);eJ(a,12,b.UW)};
lKa=function(a){return{s_:ZI(a,1),itag:aJ(a,3),hQ:QAa(a,4,jKa),lmt:ZI(a,5),yia:ZI(a,7),xtags:aJ(a,15),bX:QAa(a,23,kKa)}};
jKa=function(a){return{iv:$I(a,5),FW:!!PAa(a,7)}};
kKa=function(a){return{videoId:aJ(a,2)}};
nKa=function(a,b){iJ(a,2,b.HM,fKa,3);iJ(a,3,b.WG,mKa,3);gJ(a,4,b.onesieUstreamerConfig);gJ(a,9,b.Uz)};
mKa=function(a,b){gJ(a,2,b.encryptedOnesieInnertubeRequest);gJ(a,5,b.encryptedClientKey);gJ(a,6,b.iv);gJ(a,7,b.hmac);fJ(a,10,b.serializeResponseAsJson);fJ(a,13,b.enableAdPlacementsPreroll);fJ(a,14,b.enableCompressionResponseOnly)};
oKa=function(a,b){hJ(a,1,b.name);hJ(a,2,b.value)};
pKa=function(a,b){hJ(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)iJ(a,2,b.httpHeaders[c],oKa,3);gJ(a,3,b.postBody);fJ(a,4,b.proxiedByTrustedBandaid);fJ(a,6,b.skipResponseEncryption)};
qKa=function(a){return{onesieProxyStatus:ZI(a,1),httpStatus:ZI(a,2),body:$I(a,4)}};
JS=function(a){this.Nk=a;this.u=!1;this.j=[]};
LS=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.nJ;if(b=b.buffer)rKa(a.Nk.Cd,c,b);else if(b=a.Nk,b.j[c].UN=!0,b=KS(b.Cd,c),null==b?0:rQ(b,c))null==b||GS(b,c)}};
sKa=function(a,b){a.j.push({nJ:b,isEncrypted:!1});a.u||LS(a)};
g.tKa=function(a){this.data=a;this.j=0;this.D=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===MS.length){MS.length=288;MS.fill(8);for(a=144;280>a;a++)MS[a]=255>=a?9:7;NS.length=32;NS.fill(5);OS.length=286;OS.fill(0);for(a=261;285>a;a++)OS[a]=Math.floor((a-261)/4);PS[257]=3;for(a=258;285>a;a++){var b=PS[a-1];b+=1<<OS[a-1];PS[a]=b}PS[285]=258;for(a=0;30>a;a++)QS[a]=3>=a?0:Math.floor((a-2)/2);for(a=RS[0]=1;30>a;a++)b=RS[a-1],b+=1<<QS[a-1],RS[a]=b}a=100+7*this.data.length;31===this.data[0]&&139===
this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.C=new Uint8Array(a)};
g.xKa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!SS(b,1);switch(SS(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=SS(b,5)+257;var f=SS(b,5)+1;for(var k=SS(b,4)+4,l=0;l<k;l++)d[uKa[l]]=SS(b,3);d=TS(d);for(k=e+f;c.length<k;){l=vKa(b,d);switch(l){case 16:l=c[c.length-1];var m=SS(b,2)+3;break;case 17:l=0;m=SS(b,3)+3;break;case 18:l=0;m=SS(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==k?b.error=!0:(f=c.slice(-f),c.length=e,wKa(b,c,f));break;case 1:wKa(b,MS,NS);break;case 0:US(b,
b.j&7);c=SS(b,16);e=SS(b,16);65535!==(c^e)&&(b.error=!0);b.C.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>a.C.length&&(a.C=new Uint8Array(2*a.B),a.B=0,a.u=0,a.D=!1,a.j=0,a.register=0)}a.C.length!==a.B&&(a.C=a.C.subarray(0,a.B));return a.error?new Uint8Array(0):a.C};
wKa=function(a,b,c){b=TS(b);c=TS(c);for(var d=a.data,e=a.C,f=a.B,k=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}k|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[k&127];if(0>n)for(k>>=7;0>n;)n=b[(k&1)-n],k>>=1;else k>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=k,a.j=l,a.u=m,256<n){k=PS[n];k+=SS(a,OS[n]);m=vKa(a,c);l=RS[m];l+=SS(a,QS[m]);if(yKa&&k<l)l=f-l,e.copyWithin(f,l,l+k);else for(m=f+k,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];f+=k;k=
a.register;l=a.j;m=a.u}else break}a.B=f};
vKa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return US(a,c&15),c>>4;for(US(a,7);0>c;)c=b[SS(a,1)-c];return c>>4};
SS=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
US=function(a,b){a.j-=b;a.register>>=b};
TS=function(a){for(var b=[],c=g.r(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var k=1;k<b.length;k++)b[k]?d=k:b[k]=0,e=e+b[k-1]<<1,c[k]=e,7<k&&(f+=b[k]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(k=a[f]){for(var l=c[k]++,m=e=0;m<k;m++)e=e<<1|l>>m&1;l=f<<4|k;if(7>=k)for(m=1<<7-k;m--;)d[m<<k|e]=l;else{m=e&127;k-=7;for(e>>=7;k--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
zKa=function(a){var b,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.xKa(new g.tKa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new iy([]);case 2:return g.A(m,d.read(),4);case 4:f=m.u;k=f.value;if(l=f.done){m.Va(3);break}e.append(k);m.Va(2);break;case 3:return m.return(ny(e))}})};
BKa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=AKa[d]||0;a.j&&e>a.j||c.push(d)}return c};
EKa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.u(CKa[c]||[]));b.N("html5_early_media_for_drm")&&a.push.apply(a,g.u(DKa[c]||[]))};
JKa=function(a,b){var c=eE(a),d=a.V().u;if(VS&&!d.j)return VS;for(var e=[],f=[],k={},l=g.r(FKa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=GKa(p);!q||!q.video||eA(q)&&!c.ra&&q.video.j>c.Y||(n?e.push(p):(q=Rx(c,q,d),!0===q?(n=!0,e.push(p)):k[p]=q))}e&&EKa(e,a)}l=g.r(HKa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=IKa(m))&&p.audio)if(p=Rx(c,p,d),!0===p){f.push(m);break}else k[m]=
p;f&&EKa(f,a)}c.B&&b("orfmts",k);VS={video:e,audio:f};d.j=!1;return VS};
GKa=function(a){var b=KKa[aA[a]],c=LKa[a];if(!c||!b)return null;var d=new Yz(c.width,c.height,c.fps);b=Ssa(b,d);return new bA(a,b,{video:d,Qb:c.bitrate/8})};
IKa=function(a){var b=KKa[aA[a]],c=MKa[a];return c&&b?new bA(a,b,{audio:new Wz(c.audioSampleRate,c.numChannels)}):null};
NKa=function(a){this.Cd=a;this.logger=new g.iP("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new JS(this)};
WS=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].UN||sKa(a.queue,c)};
OKa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.dI(b,a.C).then(function(e){var f=a.Cd;f.Hd("oprr");f.playerResponse=e;f.vH||(f.Bv=!1);XS(f)},function(e){a.Cd.fail(e)});
break;case 2:a.Hd("ormk");b=ny(b);a.queue.decrypt(b);break;default:d=!0}a.Cd.Pi&&a.Cd.xa("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
PKa=function(a,b,c){var d=oy(b,0);a.Cd.Pi&&a.Cd.xa("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Ns,d=a.B[d]||null)&&(a.Os(a.j[d].Gn?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))};
SKa=function(a,b,c,d){var e={},f=RA(0);f&&(e.MW=f,e.lastManualDirection=jta(),f=Fpa()||0,0<f&&(e.timeSinceLastManualFormatSelectionMs=(0,g.R)()-f));e.g0=RA();if(a.schedule.S||!a.N("html5_onesie_enable_server_side_badwidth_estimation"))e.TU=cC(a.schedule,!0);f=g.QC();e.fV=c.width*f;e.eV=c.height*f;e.visibility=d;e.w0=Du();a.N("html5_onesie_media_capabilities")&&(e.bN=3);a.N("html5_onesie_audio_only_playback")&&cE(b)&&(e.bN=1);if(a.N("html5_onesie_media_capabilities")){b=eE(b);a=a.u;c=[];d=[];f=g.r(FKa);
for(var k=f.next();!k.done;k=f.next()){k=g.r(k.value);for(var l=k.next();!l.done;l=k.next()){l=l.value;var m=GKa(l);if(m&&m.video&&!0===Rx(b,m,a)){c.push({V0:QKa[aA[l]],WW:m.video.width,VW:m.video.height,maxFramerate:m.video.fps});break}}}f=g.r(HKa);for(k=f.next();!k.done;k=f.next())for(k=g.r(k.value),l=k.next();!l.done;l=k.next())if(l=l.value,(m=IKa(l))&&m.audio&&!0===Rx(b,m,a)){d.push({SU:RKa[aA[l]],numChannels:m.audio.numChannels});break}e.mediaCapabilities={SJ:c,iF:d}}return e};
UKa=function(a,b,c){var d,e,f;return g.B(function(k){if(1==k.j)return d=jJ(b,pKa),g.A(k,ZJa(c,d),2);if(3!=k.j)return e=k.u,g.A(k,$Ja(c,e),3);f=k.u;return k.return({encryptedOnesieInnertubeRequest:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,hmac:f,serializeResponseAsJson:!0,enableAdPlacementsPreroll:a.N("html5_onesie_ads"),enableCompressionResponseOnly:TKa(a,!!b.skipResponseEncryption)})})};
VKa=function(a,b,c,d,e,f,k,l){var m,n;return g.B(function(p){if(1==p.j)return g.A(p,UKa(c,a,b),2);m=p.u;n=SKa(c,d,e,f);return p.return({WG:m,HM:n,onesieUstreamerConfig:k,Uz:l})})};
TKa=function(a,b){var c=cC(a.schedule,!0);a=b&&a.N("html5_onesie_disable_js_cleartext_compression")||!!LB()&&1572864<c;return"DecompressionStream"in window||!a};
WKa=function(a,b){if(b+1<=a.totalLength){var c=oy(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=oy(a,b++);else if(2===c)c=oy(a,b++),a=oy(a,b++),a=(c&63)+64*a;else if(3===c){c=oy(a,b++);var d=oy(a,b++);a=oy(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=oy(a,b++);d=oy(a,b++);var e=oy(a,b++);a=oy(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),my(a,c,4)?a=ira(a).getUint32(c-a.B,!0):(d=oy(a,c+2)+256*oy(a,c+3),a=oy(a,c)+256*(oy(a,c+1)+
256*d)),b+=5;return[a,b]};
YS=function(a){this.callbacks=a;this.j=new iy};
XKa=function(a,b){var c=g.VA(b.X.experiments,"debug_bandaid_hostname");if(c)b=iO(b,c);else if(c=b.j.get(0)){var d=c;if(b.X.N("html5_onesie_host_racing_during_prewarming")){var e=b.j.values();e=g.r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,nO(f)<nO(d)&&(d=f);e=g.sB(b.X.experiments,"html5_onesie_host_racing_cap_ms");0<e&&0!==d.ZN&&nO(c)-nO(d)<=e&&(d=c);var k;b.D=null==(k=d)?void 0:k.NW}b=d.location.clone()}else b=void 0;if(b&&a.videoId){k=WB(a.videoId);a=[];if(k)for(k=g.r(k),c=k.next();!c.done;c=
k.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
YKa=function(a,b){return b.load().then(function(){return XKa(a,b)})};
ZS=function(a,b){g.G.call(this);this.ya=a;this.playerRequest=b;this.X=this.ya.V();this.videoData=this.ya.getVideoData();this.logger=new g.iP("onesie");this.Pi=2<=this.X.Y;this.IF=this.X.Wh;this.zC=new DS(this.IF.j);this.xhr=null;this.Em=new qO;this.WN=!1;this.playerResponse="";this.CR=new YS(this);this.Nk=new NKa(this);this.AC=new g.L(this.RN,1E4,this);this.YP=new g.L(this.YW,2E3,this);this.zs="";this.PB=this.jO=!1;this.Ep=this.ya.jh.aq;this.ov="";this.Bv=this.N("html5_onesie_wait_for_media_availability");
this.enableCompression=this.vH=this.OB=!1;g.H(this.videoData,this);g.H(this,this.AC);g.H(this,this.YP);a=Gx();b=yB(this.X.u);this.N("html5_onesie_media_bytes")&&a&&b&&(this.N("html5_onesie_ads")?this.Df=new Map:(this.me=new ES(this),g.H(this,this.me)));this.xa("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||Hx())},!0)};
KS=function(a,b){return a.Df?(b=b.split(";")[0],a.Df.get(b)):a.me};
ZKa=function(a,b,c){var d;return g.B(function(e){if(1==e.j)return a.Hd("oprd_s"),LB()?g.A(e,aKa(a.zC,b,c),3):(d=a.zC.decrypt(b,c),e.Va(2));2!=e.j&&(d=e.u);a.Hd("oprd_c");return e.return(d)})};
$Ka=function(a){return a.N("html5_onesie_host_probing")||a.Pi};
rKa=function(a,b,c){null!=(a=KS(a,b))&&(b=a.ge.get(b))&&!b.Jf&&(jy(b.Je,c),b.bytesReceived+=c.totalLength,b.uI=!0)};
XS=function(a){if(!a.playerResponse)return!1;if(a.OB)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&cE(a.videoData);if(!a.Df&&a.Bv&&a.me&&!dKa(a.me,b))return!1;if(a.Df&&a.Bv){if(!a.Df.has(a.zs))return!1;var c=a.Df.get(a.zs);if(c&&!dKa(c,b))return!1}a.Hd("ofr");a.Em.resolve(a.playerResponse);a.AC.stop();return a.OB=!0};
bLa=function(a){a.Hd("ogsf_s");var b;if((null!=(b=a.Df)?b:a.me)&&!a.N("html5_onesie_media_capabilities")){b=JKa(a.ya.getVideoData(),function(d,e){a.xa(d,e)});
var c=aLa(a.ya);b.video=BKa(c,b.video);if(b.video.length)return a.Hd("ogsf_c"),b;a.xa("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
cLa=function(a){if(!a.Bm)return{};var b=HQ(a.Bm);b.d=SGa(a.Bm);b.shost=a.QQ;b.ty="o";return b};
iLa=function(a){function b(e){return(d.Uh&&!c.N("web_player_no_force_gvi")||!((c.Vj?0:c.N("web_player_gvi_wexit")||(g.IC(c)?"TVHTML5"===GC(c)?vua(c)?c.N("web_player_gvi_wexit_living_room_pangea"):c.N("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===GC(c)?c.N("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===GC(c)||mC(c)?c.N("web_player_gvi_wexit_living_room_simply"):SC(c)||"TV_UNPLUGGED_CAST"===GC(c)?c.N("web_player_gvi_wexit_living_room_unplugged"):c.N("web_player_gvi_wexit_living_room_other"):
1))||d.jk&&d.B.B)?0:"yt"!==c.Ga?38===d.Ga&&"books"===c.playerStyle||30===d.Ga&&"docs"===c.playerStyle||33===d.Ga&&"google-live"===c.playerStyle?0:c.N("web_player_gvi_wexit_all_player_styles"):"adunit"!==xE(d)||c.N("web_player_gvi_wexit_adunit"))?dLa(a,d).then(function(){$S(a,d)},function(f){$S(a,d,!0);
throw f;}):eLa(a,d,e)}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.La=!0;return fLa(a)?gLa(a,d).then(function(){$S(a,d)},function(e){e=hD(e);
if(gD(e.severity))return $S(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(hLa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
fLa=function(a){var b=a.V();if(!b.N("html5_onesie"))return!1;var c=a.getVideoData();if(!b.N("html5_onesie_cast")&&(c.K||c.fh)||!b.N("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Ga||hLa)return!1;b=b.Wh;if(!b||!b.j)return a.handleError(new fD("onesie.unavailable.hotconfig",{key:"0"})),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new fD("html5.missingapi",b)),!1):!0};
jLa=function(a){var b=yG();Gxa(b,a);return g.GI(b,jAa())};
gLa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){if(1==z.j)return b.fetchType="onesie",c=KAa(b,a.getPlayerSize(),a.getVisibilityState()),d=new ZS(a,c),g.A(z,d.fetch(),2);e=z.u;f={player_response:e};b.La=!1;k=a.V();l=k.N("html5_onesie_ads");if(!l)b.rl=d.me;else if(l&&d.Df)for(m=g.r(d.Df.keys()),n=m.next();!n.done;n=m.next())p=n.value,(q=d.Df.get(p))&&a.jh.Yu.j.set(p,q,180);if(l){var E=d.xu;a.jh.jd().xu=E}else b.xu=d.xu;g.WD(b,f,!0);if(b.La||UD(b))return z.return(Promise.resolve());
l?ZEa(a.jh.Yu.j):b.rl=void 0;t={};v="onesie.response";x=0;b.errorCode?(v="auth",t.ec=b.errorCode,t.ed=b.errorDetail,t.es=b.yk||"",x=2):(t.successButUnplayable="1",t.disposed=""+ +b.isDisposed(),t.afmts=""+ +/adaptiveFormats/.test(e),t.cpn=b.clientPlaybackNonce);y=new fD(v,t,x);return z.return(Promise.reject(y))})};
dLa=function(a,b){var c,d,e,f,k,l,m,n,p,q;return g.B(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Va(4);break}if(!(0<f)){t.Va(5);break}return g.A(t,Gi(5E3),6);case 6:k=new g.Is("Retrying OnePlatform request",{attempt:f}),g.Jv(k);case 5:return g.ta(t,7),g.A(t,kLa(a,b),9);case 9:return t.return();case 7:l=g.va(t);m=hD(l);n=m.errorCode;d&&"manifest.net.badstatus"===n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return t.return(Promise.reject(m));
a.handleError(m);if(gD(m.severity)){t.Va(4);break}case 3:f++;t.Va(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,t.return(Promise.reject(new fD(p,{backend:"op"},q)))}})};
kLa=function(a,b){var c;return g.B(function(d){c=a.V();b.fetchType="gp";return c.N("html5_use_oauth_callback")?d.return(g.cD(c,g.BE(b)).then(function(e){return lLa(a,b,e)},void 0)):d.return(lLa(a,b,g.BE(b)))})};
lLa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,J,I,N,Z;return g.B(function(K){if(1==K.j)return d=jLa(c),e=KAa(b,a.getPlayerSize(),a.getVisibilityState()),f=g.pI(mLa),k=g.BE(b),l=(0,g.R)(),m=!1,n="empty",p=0,a.Hd("ps_s"),q=function(ra){2===ra.readyState&&a.Hd("ps_c")},t={fv:q},g.A(K,g.AG(d,e,f,void 0,t),2);
v=K.u;a.Hd("ps_r");if(b.isDisposed())return K.return();v?v.error?(m=!0,n="esf:"+v.error.message,p=v.error.code):v.errorMetadata&&(m=!0,n="its",p=v.errorMetadata.status):m=!0;if(m)return x=0,y=((0,g.R)()-l).toFixed(),z=a.V(),E={backend:"op",rc:""+p,rt:y,reason:n,has_kpt:b.Kb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:z.pageId?"1":"0",has_token:k?"1":"0",has_vvt:b.Ta?"1":"0",is_mdx:b.isMdxPlayback?"1":
"0",mdx_ctrl:b.fh||"",token_eq:k===g.BE(b)?"1":"0"},J="manifest.net.connect",429===p?(J="auth",x=2):200<p&&(J="manifest.net.badstatus",400===p&&(x=2)),K.return(Promise.reject(new fD(J,E,x)));b.La=!1;g.WD(b,{raw_player_response:v},!0);if(b.errorCode)return I={ec:b.errorCode,ed:b.errorDetail,es:b.yk||""},K.return(Promise.reject(new fD("auth",I,2)));if(!b.La&&!UD(b))return N=b.isAd()?"auth":"manifest.net.retryexhausted",Z=b.isAd()?2:1,K.return(Promise.reject(new fD(N,{successButUnplayable:"1",hasMedia:oE(b)?
"1":"0"},Z)));g.sa(K)})};
eLa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,v;return g.B(function(x){switch(x.j){case 1:d=yAa(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(y){y=hD(y);
if(gD(y.severity))return Promise.reject(y);a.handleError(y);return!1},l=(k=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){x.Va(4);break}n=d;if(!(0<m)){x.Va(5);break}return g.A(x,Gi(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},k||(p.recover="embedded"),n=qr(d,p);case 5:return g.A(x,nLa(b,n).then(e,f),7);case 7:if(q=x.u)return x.return();m++;x.Va(2);break;case 4:t=k?"auth":"manifest.net.retryexhausted";v=k?2:1;if(!k&&1E-4>Math.random())try{g.Jv(new g.Is("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new fD(t,{backend:"gvi"},v)))}})};
nLa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){if(1==z.j)return a.fetchType="gvi",c=a.V(),(f=zAa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=qr(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),k={},c.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.VA(c.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=l),0<Object.keys(k).length&&(d.headers=
k),m=(0,g.R)(),n=function(E){if(!a.isDisposed()){E=E?E.status:-1;var J=0,I=((0,g.R)()-m).toFixed();I={backend:"gvi",rc:""+E,rt:I};var N="manifest.net.connect";429===E?(N="auth",J=2):200<E&&(N="manifest.net.badstatus",400===E&&(J=2));return Promise.reject(new fD(N,I,J))}},p=function(E){return n(E.xhr)},g.A(z,FA(Ir,e,d).then(void 0,p),2);
q=z.u;if(!q||!q.responseText)return z.return(n(q));a.La=!1;t=mr(q.responseText);g.WD(a,t,!0);if(a.errorCode)return v={ec:a.errorCode,ed:a.errorDetail,es:a.yk||""},z.return(Promise.reject(new fD("auth",v,2)));if(!a.La&&!UD(a))return x=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,z.return(Promise.reject(new fD(x,{successButUnplayable:"1"},y)));g.sa(z)})};
$S=function(a,b,c){c=void 0===c?!1:c;var d;g.B(function(e){d=a.V();return c&&(!g.UC(d)||"embedded"!==xE(b))||b.Dr||"adunit"!==xE(b)&&(g.IC(d)||JC(d)||g.AC(d)||g.zC(d)||"WEB_CREATOR"===GC(d))?e.return():d.N("html5_use_oauth_callback")?e.return(g.cD(d,g.BE(b)).then(function(f){return oLa(a,b,f)})):e.return(oLa(a,b,g.BE(b)))})};
oLa=function(a,b,c){var d,e,f,k;return g.B(function(l){if(1==l.j){g.ta(l,2);d=jLa(c);var m=b.V();g.qs.getInstance();var n={context:g.TI(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===xE(b)&&(n.isAdPlayback=!0);m.embedConfig&&(n.serializedThirdPartyEmbedConfig=m.embedConfig);m.ul&&(n.showContentOwnerOnly=!0);g.rs(0,141)&&(n.autonavState=g.rs(0,140)?"STATE_OFF":"STATE_ON");if(g.VC(m)){m=g.rs(0,65);m=null!=m?!m:!1;var p=!!g.hw("yt-player-sticky-caption");
n.captionsRequested=m&&p}e=n;f=g.pI(pLa);a.Hd("wn_s");return g.A(l,g.AG(d,e,f),4)}if(2!=l.j)return k=l.u,a.Hd("wn_r"),k&&!k.error&&g.WD(b,{raw_watch_next_response:k},!1),g.ua(l,0);g.va(l);g.sa(l)})};
qLa=function(a){function b(){a.Hd("virc");Cx("virc",void 0,"video_to_ad")}
a.Hd("vir");Cx("vir",void 0,"video_to_ad");var c=iLa(a);c.then(b,b);return c};
g.dT=function(a,b,c,d,e,f,k,l,m,n){m=void 0===m?new g.TD(a):m;n=void 0===n?!0:n;g.iv.call(this);var p=this;this.X=a;this.playerType=b;this.Hb=c;this.Cz=d;this.getVisibilityState=f;this.visibility=k;this.jh=l;this.videoData=m;this.VU=n;this.logger=new g.iP("VideoPlayer");this.ex=new DJa(this.X);this.xe=null;this.qv=new zR;this.un=null;this.Bh=new IR(this.X,this.Cz,this);this.TN=!0;this.mediaSource=this.Sa=null;this.Jj=[];this.Un=new CS;this.vf=this.Wy=null;this.Vn=new CS;this.GC=null;this.HG=this.Ru=
!1;this.HC=NaN;this.playerState=new g.aG;this.JC=[];this.Xv=new g.iA;this.xk=new FR(this);this.mediaElement=null;this.Tr=new g.L(this.zY,15E3,this);this.NI=this.mC=!1;this.ys=NaN;this.CA=!1;this.gF=0;this.hF=new g.L(this.RI,4500,this);this.jy=!1;this.VB=NaN;this.lJ=new mP(new Map([["bufferhealth",function(){var q=p.Zc;return q.mediaElement?ZF(q.mediaElement):0}],
["bandwidth",function(){return p.dG()}],
["networkactivity",function(){return p.X.schedule.Y}],
["livelatency",function(){return p.isAtLiveHead()&&p.Nc()?aT(p):NaN}],
["rawlivelatency",function(){return aT(p)}]]));
this.uy=0;this.loop=!1;this.playbackRate=1;this.xO=0;this.Zc=new wS(this);this.pM=!1;this.IC=[];this.hH=this.gQ=0;this.JI=this.IR=!1;this.VE=new g.L(this.RV,0,this);this.td=null;this.gP=new g.L(this.ZU,0,this);this.OC=new g.L(this.EQ,3E4,this);this.pX=[this.Xv,this.VE,this.Tr,this.OC,this.hF,this.lJ,this.gP];this.uf=function(){var q=p.Zb;q.u.X.De||3===q.u.ya.getVisibilityState()||(q.u.X.De=!0);pJa(q);var t=q.C;t.J&&0>t.u&&3!==t.j.ya.getVisibilityState()&&KR(t);q.qoe&&(q=q.qoe,q.Ia&&0>q.B&&q.j.X.De&&
VR(q));p.Sa&&hR(p);p.X.Gl&&!p.videoData.backgroundable&&p.mediaElement&&!p.eg()&&(p.isBackground()&&p.mediaElement.hA()?(p.xa("bgmobile",{suspend:1}),p.Yn(!0)):p.isBackground()||bT(p)&&p.xa("bgmobile",{resume:1}))};
this.nh=new kS(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.Lw("endcr")||g.U(p.playerState,32)||AO(p);
e(q,t,p.playerType)});
g.H(this,this.nh);g.H(this,this.Zc);rLa(this,m);this.videoData.subscribe("dataupdated",this.i_,this);this.videoData.subscribe("dataloaded",this.tF,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.xa,this);this.videoData.subscribe("ctmpstr",this.BI,this);sLa(this);uEa(this.uf);this.visibility.subscribe("visibilitystatechange",this.uf);this.videoData.Ia&&tLa(this);!fwa(this.videoData)&&lwa(this.videoData)||uLa(this);1===this.playerType&&cT.isActive()&&
this.OC.start();this.videoData.Pe=this.getUserAudio51Preference();this.N("html5_generate_content_po_token")&&vLa(this)};
rLa=function(a,b){if(2===a.playerType||a.X.Il)b.lK=!0;var c=hva(b.qd,b.wt,a.X.j,a.X.B);c&&(b.adFormat=c);2===a.playerType&&(b.xm=!0);if(a.isFullscreen()||a.X.j)c=g.hw("yt-player-autonavstate"),b.autonavState=c||(a.X.j?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&eT(a,b.endSeconds)};
sLa=function(a){!a.Zb||a.Zb.isDisposed();a.Zb=new g.jS(new iS(a.videoData,a.X,a,function(){return a.jh.Mi()}))};
tF=function(a){return a.mediaElement&&a.mediaElement.Cq()?a.mediaElement.nf():null};
fT=function(a){if(a.videoData.isValid())return!0;a.rg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
tLa=function(a){var b=a.jh.Pc();a.videoData.Tm=a.videoData.Tm||(null==b?void 0:b.gG());a.videoData.Um=a.videoData.Um||(null==b?void 0:b.hG())};
g.yO=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.Zb;KR(c.C);c.qoe&&VR(c.qoe)}a.Ru=b;!fT(a)||a.Un.started?g.IC(a.X)&&a.videoData.isLivePlayback&&a.Un.started&&!a.Un.isFinished()&&!a.Ru&&a.tF():(a.Un.start(),b=a.Zb,g.zO(b.u),b.qoe&&UIa(b.qoe),a.tF())};
wLa=function(a){var b=a.videoData;qLa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=hD(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.rg("auth",2,unescape(a.videoData.errorReason),eD(c.details),a.videoData.errorDetail,a.videoData.yk||void 0):a.handleError(c))})};
xEa=function(a,b){a.td=b;a.Sa&&zHa(a.Sa,new g.mR(b))};
xLa=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Jj=g.$b(a.videoData.ra)),oE(a.videoData)){a.Hb.tick("bpd_s");gT(a).then(function(){a.Hb.tick("bpd_c");if(!a.isDisposed()){a.Ru&&(a.Ub(cG(cG(a.playerState,512),1)),bT(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&eT(a,c.endSeconds);a.Un.finished=!0;hT(a,"dataloaded");a.Vn.started&&iT(a);MIa(a.Bh,a.vf)}});
a.N("html5_log_media_perf_info")&&a.xa("loudness",{v:a.videoData.Oe.toFixed(3)},!0);var b=mwa(a.videoData);b&&a.xa("playerResponseExperiment",{id:b},!0);a.fF()}else hT(a,"dataloaded")};
gT=function(a){jT(a);a.vf=null;var b=FJa(a.X,a.videoData,a.eg());a.Wy=b;a.Wy.then(function(c){yLa(a,c)},function(c){a.isDisposed()||(c=hD(c),a.visibility.isBackground()?(kT(a,"vp_none_avail"),a.Wy=null,a.Un.reset()):(a.Un.finished=!0,a.rg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",eD(c.details))))});
return b};
GR=function(a){gT(a).then(function(){return bT(a)});
g.gG(a.playerState)&&a.playVideo()};
yLa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.vf=b;QJa(a.Zc,a.vf);if(a.videoData.isLivePlayback){var c=(a.N("html5_onesie_ads")?$Ea(a.jh.Yu,a.videoData.videoId):!!a.videoData.rl)||a.Sa&&!isNaN(a.Sa.Ga);c=a.N("html5_onesie_live")&&c;0<a.videoData.fd&&!$D(a.videoData)||c||a.seekTo(a.Kd(),{Ie:"videoplayer_playbackData"})}a.videoData.C.j?a.Sa?g.Jv(Error("Duplicated Loader")):(c=g.sB(a.X.experiments,"html5_onesie_defer_content_loader_ms"),a.N("html5_onesie_ads")&&c&&g.Sb(a.Jj,"ad")&&
$Ea(a.jh.Yu,a.videoData.nS)?g.Br(function(){a.isDisposed()||a.Sa||lT(a)},c):lT(a)):!a.videoData.C.j&&CE(a.videoData)&&a.sC(new bQ(a.videoData.videoId||"",4));
mT(a);CIa(b).then(function(){a.Sv();nT(a)})}};
oT=function(a){a.mediaElement&&a.mediaElement.St();g.yO(a);fT(a)&&!g.U(a.playerState,128)&&(a.Vn.started||(a.Vn.start(),a.Ub(cG(cG(a.playerState,8),1))),iT(a))};
iT=function(a){a.isDisposed();if(!a.Vn.isFinished()&&a.Un.isFinished()&&!g.U(a.playerState,128)&&!a.Jj.length){if(!a.nh.started){var b=a.nh;b.started=!0;b.yl()}if(!a.gm()){a.Sa&&(b=a.Sa.timing,a.HG=!!b.u&&!!b.D);a.Vn.isFinished()||(a.Vn.finished=!0);b=a.N("html5_onesie_live")&&a.Sa&&!isNaN(a.Sa.Ga);!a.videoData.isLivePlayback||0<a.videoData.fd&&!$D(a.videoData)||b||(a.seekTo(Infinity,{Ie:"videoplayer_readying"}),a.isBackground()&&(a.NI=!0));b=a.Zb;if(b.qoe){b=b.qoe;b.j.videoData.wl&&TR(b,b.j.videoData.wl);
if(b.j.videoData.isLivePlayback){var c=b.j.videoData.j;$D(b.j.videoData)&&TR(b,"manifestless");c&&OA(c)&&TR(b,"live-segment-"+OA(c).toFixed(1))}"yt"!==b.j.X.Ga&&(b.u.len=[b.j.videoData.lengthSeconds.toFixed(2)]);b.j.videoData.cotn&&!CE(b.j.videoData)&&QIa(b,!0);dD(b.j.X)&&(c=cEa())&&b.xa("cblt",{m:c})}a.ea("playbackready",a);Bx("pbr",a.Hb.timerName)||(a.Hb.tick("pbr"),Cx("pbr",void 0,"video_to_ad"))}}};
AO=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Ub(b?new g.aG(14):new g.aG)};
eT=function(a,b){a.un&&pT(a);a.un=new g.Jw(1E3*b,0x7ffffffffffff);a.un.namespace="endcr";a.addCueRange(a.un)};
pT=function(a){a.removeCueRange(a.un);a.un=null};
rT=function(a,b,c,d){a.videoData.u=c;d&&iR(a,b,d);d=(d=g.qT(a))?d.Yb():"";a.Zb.Uy(new xIa(a.videoData,c,b,d));c=a.Bh;c.B=0;c.j=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)};
g.qT=function(a){var b=sT(a);return Mx(b)||!a.vf?null:g.Pb(a.vf.j.videoInfos,function(c){return b.C(c)})};
iR=function(a,b,c){if(c!==a.videoData.J){var d=!a.videoData.J;a.videoData.J=c;"m"!==b&&(b=d?"i":"a");a.Zb.My(new xIa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}};
jR=function(a,b){b&&a.zd(new fD("qoe.restart",b));a.N("html5_reloads_report_as_buffering")&&a.Ub(cG(a.playerState,2048));tT(a);b=a.videoData.j&&Wx(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Sa&&nHa(a.Sa),ER(a)):(a.N("html5_reloads_report_as_buffering")||a.Ub(cG(a.playerState,16)),bT(a),g.gG(a.playerState)&&a.playVideo())};
sT=function(a){if(a.vf){var b=a.Bh;var c=a.vf;a=a.Du();if(b.ya.zp().isInline())var d=SD;else b.N("html5_exponential_memory_for_sticky")?d=.5>fC(b.X.pe,"sticky-lifetime")?"auto":Nx[RA()]:d=Nx[RA()],d=g.Lx("auto",d,!1,"s");if(Mx(d)){d=yIa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var k=g.r(f.videoInfos),l=k.next();!l.done;l=k.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;ema()&&!g.IC(b.X)&&cA(c.j.videoInfos[0])&&
(f=Math.min(f,g.Kx.large));d=e.call(d,new Jx(0,f,!1,"o"));e=d.compose;f=4320;!b.X.isMobile||g.xC(b.X)||es()||b.X.N("hls_for_vod")||(f=b.X.N("mweb_default_hd720")?g.Kx.hd720:g.Kx.medium);(k=g.sB(b.X.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.fh&&!c.videoData.ke&&(f=Math.min(f,k));k=g.sB(b.X.experiments,"html5_random_playback_cap");l=/[a-h]$/;k&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,k));if(l=k=g.sB(b.X.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.r(l.videoInfos),
m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,k));(k=g.sB(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,k));f=KIa(b,c,f);d=e.call(d,new Jx(0,4320===f?0:f,!1,"d")).compose(JIa(b)).compose(LIa(b,c.videoData,c)).compose(IIa(b,c)).compose(BIa(b,c)).compose(AIa(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(IIa(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&(d=d.compose(BIa(b,c)));b.N("html5_varispeed_playback_rate")&&
(d=d.compose(AIa(b,c)));b=c.videoData.vt.compose(d).compose(c.videoData.AQ).compose(a)}else b=SD;return b};
aLa=function(a){var b=a.Bh;a=a.videoData;var c=JIa(b);b.N("html5_disable_client_autonav_cap_for_onesie")||c.compose(LIa(b,a));return c};
g.zLa=function(a,b,c){a.videoData.vt=b;if(a.vf&&c){c=a.Bh;var d=a.vf;if(d.j.j){var e=RA(),f=d.j.videoInfos[0].video.j;if(!(e>f&&0!==f&&b.j===f)){1<c.playbackRate&&c.N("html5_varispeed_playback_rate")&&(e=Bta(c.X.u,d.j.videoInfos,c.playbackRate),0!==b.j&&e<b.j&&c.ya.setPlaybackRate(1));var k,l;d=(null==(k=d.videoData.u)?void 0:null==(l=k.video)?void 0:l.j)||0;g.gw("yt-player-quality",{quality:g.Kx[Ox(b)],previousQuality:d},31104E3);c.X.schedule.policy.C=480<=RA();if(c.N("html5_exponential_memory_for_sticky")){b=
c.X.pe;k=1;var m=void 0===m?!1:m;jua(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.En["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.En["sticky-lifetime"]=0);m&&.0625<fC(b,"sticky-lifetime")&&(k=2*b.En["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/k);b.En["sticky-lifetime"]=k;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){m=SA();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.gw("yt-player-performance-cap",m,604800)}else g.iw("yt-player-performance-cap")}}}mT(a)};
vLa=function(a){a.videoData.videoId?ALa(a.jh,a.videoData.videoId).then(function(b){a.videoData.z7=b}):a.xa("pomvid",{})};
mT=function(a){if(!a.isDisposed()&&!g.U(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)nT(a);else{var b=sT(a),c=a.videoData;a:{var d=a.videoData.kc;if(b.j){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.cg(),l=g.Kx[k.video.quality];if((!b.B||"auto"!==k.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ib=d;rT(a,b.reason,BLa(a,a.videoData.ib))}if(a.N("html5_check_unstarted")?g.gG(a.playerState):a.Nc())a.Zc.La=!1,a.playVideo()}};
nT=function(a){if(a.videoData.C&&a.videoData.C.j){var b=sT(a);if(a.Sa&&(a=a.Sa,!a.isDisposed()&&!a.u.j.equals(b)&&a.videoTrack)){var c=a.u.j;rHa(a,LFa(a.u,b));ZQ(a);var d=a.u.j.isLocked()&&"m"===b.reason&&a.u.Z,e=a.policy.Wj&&"l"===b.reason&&EQ(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.u.Xa&&!zA();d||e||b||c?jR(a.ya,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.zp(a.ma)}}};
hR=function(a){a.N("html5_update_constraint")?nT(a):mT(a)};
DLa=function(a){var b=CLa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Ic.getName()===b})};
CLa=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
lT=function(a){dta(a.videoData.j,{cpn:a.videoData.clientPlaybackNonce,c:a.X.deviceParams.c,cver:a.X.deviceParams.cver});var b=a.X,c=a.videoData,d=new g.tBa(b),e=sBa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,im:c.im});d.D=e;d.ma=g.sB(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Pd=g.sB(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Rs=g.sB(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Id=g.sB(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Vs=g.sB(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Wh=g.sB(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Ws=g.sB(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Dr=b.N("html5_restrict_streaming_xhr_on_sqless_requests");d.vl=g.sB(b.experiments,"html5_max_headm_for_streaming_xhr");d.Gl=b.N("html5_pipeline_manifestless_allow_nonstreaming");d.Tm=b.N("html5_prefer_server_bwe3");d.ai=1024*g.sB(b.experiments,"html5_video_tbd_min_kb");d.jk=b.N("html5_last_slice_transition");
d.us=b.N("html5_store_xhr_headers_readable");d.Kc=g.sB(b.experiments,"html5_probe_primary_delay_base_ms")||d.Kc;d.Qg=b.N("html5_no_placeholder_rollbacks");d.Qs=b.N("html5_subsegment_readahead_enable_mffa");b.N("html5_allow_video_keyframe_without_audio")&&(d.va=!0);d.zq=b.N("html5_webm_init_skipping");d.Me=b.N("html5_abs_buffer_health");d.hk=b.N("html5_interruption_resets_seeked_time");d.nj=g.sB(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.nj;d.Oe=b.N("html5_explicitly_dispose_xhr");
d.jr=b.N("html5_restart_on_unexpected_detach");d.cf=g.sB(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.qf=g.sB(b.experiments,"html5_max_drift_per_track_secs");d.ud=g.sB(b.experiments,"html5_static_abr_resolution_shelf");d.Nj=!b.N("html5_encourage_array_coalescing");d.fk=b.N("html5_filter_non_efficient_formats_for_safari");d.ut=b.N("html5_format_hybridization");d.Si=b.N("html5_abort_before_separate_init");d.Mr=b.N("html5_serialize_server_stitched_ad_request");d.Bg=b.N("html5_never_pause_appends");
d.Cl=g.sB(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Ui=b.N("html5_attach_po_token_to_bandaid");b.N("html5_allow_video_keyframe_without_audio")&&(d.va=!0);0<g.sB(b.experiments,"html5_max_redirect_response_length")&&(d.Qf=g.sB(b.experiments,"html5_max_redirect_response_length"));e=g.sB(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.Iq=e);d.fd=b.N("html5_rewrite_timestamps_for_webm");d.Ia=b.N("html5_only_media_duration_for_discontinuities");b.N("html5_media_common_config_killswitch")||
(d.J=c.maxReadAheadMediaTimeMs/1E3||d.J,e=b.schedule,e.B.rh()===e.policy.B?d.Aa=10:d.Aa=c.minReadAheadMediaTimeMs/1E3||d.Aa,d.Ne=c.readAheadGrowthRateMs/1E3||d.Ne);Lm&&(d.Ga=41943040);d.Xa=!EA();g.IC(b)||!EA()?(e=b.experiments,d.K=8388608,d.Y=524288,d.Mj=5,d.Kb=2097152,d.La=1048576,d.Wm=1.5,d.Fl=!1,d.Qb=4587520,bs()&&(d.Qb=786432),d.B*=1.1,d.C*=1.1,d.bd=!0,d.Ga=d.K,d.Vb=d.Y,d.Pg=e.jb("persist_disable_player_preload_on_tv")||e.jb("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&
(d.B*=1.3,d.C*=1.3);g.mA&&Yr("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.K=20971520,d.Y=1572864,e&&(d.Qb=812500,d.Ee=1E3,d.yq=5,d.La=2097152));!b.N("html5_disable_firefox_init_skipping")&&g.Fx&&(d.bd=!0);b.supportsGaplessAudio()||(d.ql=!1);oC&&(d.Ta=!0);d.Gc=b.N("html5_peak_shave");"onesie"===c.fetchType&&b.N("html5_disable_peak_shave_for_onesie")&&(d.Gc=!1);var f;e=null==(f=c.j)?void 0:Wx(f);if($D(c)){d.pe=!0;d.gk=!0;d.Ia=!0;d.fd=!0;d.Nr=!0;if("ULTRALOW"===c.latencyClass||"LOW"===
c.latencyClass&&!b.N("html5_disable_low_pipeline"))d.nk=2,d.wl=4;d.pn=c.defraggedFromSubfragments;c.Ge&&(d.Um=!0);g.pE(c)&&(d.Ua=!1);d.Vj=g.TC(b)}c.isAd()&&(d.kc=0,d.Pe=0);Tva(c)&&(d.ra=!0,b.N("html5_aggressive_timeout_for_streaming_xhr")&&(d.Ee=400,d.Oc*=3,d.pk=2,d.Ag=3,d.Uh=1.4));d.kb=b.N("html5_enable_subsegment_readahead_v3")||b.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.rb=dD(b);d.Z=d.rb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||2<=b.Y);js()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&
!b.N("html5_disable_move_pssh_to_moov")&&e&&(d.bd=!1);var k=0;b.N("html5_live_use_alternate_bandwidth_window_sizes")&&(k=b.schedule.policy.u,c.isLivePlayback&&(k=g.sB(b.experiments,"ULTRALOW"===c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||k));f=b.schedule;f.ra.j=$D(c)?.5:0;if(!f.policy.j&&k&&(f=f.B,k=Math.round(k*f.resolution),k!==f.j)){var l=Array(k),m=Math.min(k,f.u?
f.j:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.j);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.j];for(;p<k;++p)l[p]=Infinity;f.j=k;f.values=l;f.valueIndex=m%k;f.u=m===k;f.C=!0;f.J=cua(f)}d.Bg=c.isLivePlayback;switch(iE(c)){case 21530001:d.Ri=b.N("html5_live_smoothly_extend_max_seekable_time");d.kb=!0;"LOW"===c.latencyClass?d.ma=g.sB(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.ma=g.sB(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Qg=
!0;break;case 2153E4:d.kb=!1}c.fg()&&(d.Pj=g.sB(b.experiments,"html5_live_byterate_factor_for_readahead")||1);d.Ta=d.Ta||c.Lw;d.qd=c.Ia;2<=b.Y&&(d.Ib=!0);c.Ia&&!e&&b.N("html5_hack_gapless_init")&&(d.Th=!0);(e=g.sB(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ia&&c.isAd()&&(d.B*=e,d.C*=e);CE(c)&&(d.u=c.videoId,b.N("woffle_pending_promises_killswitch")&&(d.gb=!1),d.Me=!0,d.Xs=4,c.Rm&&0<c.Rm.length&&(d.De=c.Rm));d.Wj=c.Tg;d.S=UA(b,{},c.C||void 0);c=480<=RA();e=g.sB(b.experiments,"html5_deadzone_multiplier")||
1;d.B*=e;d.C*=e;if(e=g.sB(b.experiments,"html5_request_sizing_multiplier"))d.Xm=e;Tx(b.u,Ux.BITRATE)&&(d.Qb=NaN);b.u.B&&(d.rl="; "+Ux.EXPERIMENTAL.name+"=allowed");c&&(d.ud=0);b.N("html5_prefer_low_quality_audio_means_64k")&&oC&&(d.Sm=!0);b.N("debug_html5_random_stun_format")&&(d.Tg=!0);b.N("html5_log_audio_abr")&&(d.lk=!0);b=a.getAudioTrack();b=b.Ic.isDefault?void 0:b;AR(a.qv);if(a.N("html5_onesie_ads"))a:{c=a.jh.Yu;if(e=a.videoData.videoId)if(f=c.j.get(e)){c.j.remove(e);c=f;break a}c=void 0}else c=
a.videoData,e=c.rl,delete c.rl,c=e;a.Sa=new g.VQ(a,a.X.schedule,d,a.videoData.j,a.videoData.C,sT(a),b,a.videoData.enableServerStitchedDai,c,a.videoData.Aa);d=ELa(a)?!0:a.Ru&&g.IC(a.X)&&a.videoData.isLivePlayback;a.Sa.initialize(a.getCurrentTime(),sT(a),d);a.videoData.probeUrl&&(a.Sa.La=a.videoData.probeUrl);!a.Jj.length&&!a.Ru||!a.N("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||uT(a,!1);zS(a.Zc,a.Sa);a.td&&zHa(a.Sa,new g.mR(a.td));g.DE(a.videoData)&&(a.Sa.policy.ul=2)};
jT=function(a){a.Sa&&(a.Sa.dispose(),a.Sa=null,zS(a.Zc,null));tT(a)};
tT=function(a){if(a.mediaSource){if(a.Sa){var b=$D(a.videoData)&&a.videoData.Ge&&!a.videoData.isAd();bR(a.Sa,b)}a.mediaSource.dispose();a.mediaSource=null}};
FLa=function(a){if(a.mediaSource)return a.mediaSource.By;a:{try{if(g.$r()&&a.videoData.ZG()){var b=a.mediaElement;b.B&&(b.B.dispose(),b.B=void 0)}var c=a.mediaElement.xr()}catch(d){if(HR(a.xk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.rg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}uO(a,c)}return a.mediaSource?a.mediaSource.By:null};
uO=function(a,b){GLa(a);a.mediaSource=b;Fsa(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){var d=a.getDuration();!d&&$D(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,c>a.mediaSource.getDuration()&&a.mediaSource.Zk(c)):a.mediaSource.Zk(d);var e=a.Sa,f=a.mediaSource;e.Bo&&(YQ(e),e.Bo=!1);oHa(e);if(!f.j&&!f.u){var k=e.videoTrack.og(),l=k?k.info.j:e.videoTrack.j,m=e.audioTrack.og(),n=l.info.mimeType+e.policy.rl,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,t=null==(q=f.mediaSource)?
void 0:q.addSourceBuffer(p),v,x="fakesb"===n.split(";")[0]?void 0:null==(v=f.mediaSource)?void 0:v.addSourceBuffer(n);f.Ef&&(f.Ef.webkitSourceAddId("0",p),f.Ef.webkitSourceAddId("1",n));var y=new yA(t,f.Ef,"0",$z(p),!1),z=new yA(x,f.Ef,"1",$z(n),!0);f.j=y;f.u=z;g.H(f,y);g.H(f,z)}tQ(e.videoTrack,f.u||null);tQ(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.jv(f.j,e.Xa,e);g.jv(f.u,e.Xa,e);try{e.Ii()}catch(E){g.Iv(E)}a.ea("mediasourceattached")}}catch(E){g.Jv(E),a.handleError(new fD("fmt.unplayable",
{msi:"1",ename:E.name},1))}})};
GLa=function(a){a.Sa?a.Sa.seek(a.getCurrentTime()-a.Fd()).Di(function(){}):lT(a)};
ER=function(a,b){b=void 0===b?!1:b;return g.B(function(c){if(1==c.j)return!a.N("html5_reset_daistate_on_newelement_killswitch")&&a.Sa&&a.Sa.Br(),a.Sa&&a.Sa.isDisposed()&&jT(a),a.N("html5_reloads_report_as_buffering")&&a.Ub(cG(a.playerState,2048)),a.ea("newelementrequired"),b?g.A(c,gT(a),2):c.Va(2);g.U(a.playerState,8)&&a.playVideo();g.sa(c)})};
rEa=function(a,b){a.xa("newelem",{r:b});ER(a)};
vT=function(a){a.Hb.D.MH();g.U(a.playerState,32)||(a.Ub(cG(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Tb()};
RO=function(a){g.U(a.playerState,32)?(a.Ub(eG(a.playerState,16,32)),a.ea("endseeking",a)):g.U(a.playerState,2)||a.Ub(cG(a.playerState,16));a.Hb.D.QH(a.videoData,g.U(a.playerState,4))};
uLa=function(a){var b=a.videoData.errorDetail;a.rg("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.yk||void 0)};
hT=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
HLa=function(a){for(var b=g.r("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.Xv.T(a.mediaElement,c.value,a.iI,a);a.X.rl&&a.mediaElement.Cq()&&(a.Xv.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.FX,a),a.Xv.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.GX,a))};
ILa=function(a){window.clearInterval(a.HC);wT(a)||(a.HC=g.Cr(function(){return wT(a)},100))};
wT=function(a){var b=a.mediaElement;b&&a.mC&&!a.videoData.kb&&!Bx("vfp",a.Hb.timerName)&&2<=b.Hi()&&!b.Gg()&&0<vA(b.Vg())&&a.Hb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.kb&&0<b.getDuration()&&(!Bx("pbp",a.Hb.timerName)&&b.Mm()&&2<=b.Hi()&&0<vA(b.Vg())&&a.Hb.tick("pbp"),b=b.getCurrentTime(),lS(a.ex,b))?(kEa(a),!0):!1};
kEa=function(a){window.clearInterval(a.HC);a.Tr.stop();a.videoData.kb=!0;a.X.vl=!0;a.X.ib=0;var b=a.xk;if(b.videoData.u){var c=b.j.u;c.u.delete(b.videoData.u.j);c.j=!0}b.u.stop();a.X.Nj=a.videoData.Nw;a.videoData.FO=!0;JLa(a);g.U(a.playerState,8)&&a.Ub(dG(a.playerState,65));b=a.Zb;b.j&&jJa(b.j);b=b.C;c=g.zO(b.j);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.zp(a.hF);a.ea("playbackstarted");g.Wr()&&((a=g.Ia("yt.scheduler.instance.clearPriorityThreshold"))?a():Xr(0))};
JLa=function(a){var b=a.getCurrentTime(),c=a.jh.jd();!Bx("pbs",a.Hb.timerName)&&Uw.measure&&Uw.getEntriesByName&&(Uw.getEntriesByName("mark_nr")[0]?Eqa("mark_nr"):Eqa());c.videoId&&a.Hb.info("docid",c.videoId);c.eventId&&a.Hb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.N("web_player_early_cpn")&&a.Hb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Hb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Mm())if(a.X.experiments.jb("web_csi_via_jspb")){var d=new Nq;g.D(d,
6,!0);var e=new Pq;re(e,22,d);Ax(e,a.Hb.timerName)}else a.Hb.info("paused",1);a.X.experiments.jb("web_csi_via_jspb")?(d=new Nq,c.u?(e=Number(c.u.Yb()),g.D(d,1,e)):g.D(d,1,-1),e=new Pq,re(e,22,d),Ax(e,a.Hb.timerName)):c.u?a.Hb.info("fmt",c.u.Yb()):a.Hb.info("fmt","-1");c.Ee&&(e=a.HG?2:1,a.X.experiments.jb("web_csi_via_jspb")?(d=new Nq,g.D(d,8,e),e=new Pq,re(e,22,d),Ax(e,a.Hb.timerName)):a.Hb.info("yt_pre",String(a.HG?2:1)));a.isFullscreen()&&a.Hb.info("yt_fs","1");nx({liveStreamMode:KLa[mE(c)]},a.Hb.timerName);
a.Hb.info("cmt",b.toFixed(3));if(a.Sa){b=a.Sa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.D&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("vrc",c.responseEnd))),b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("avb",
c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.Hb.tick(f,b[f])}};
LLa=function(a){a.Zb.Vd();if(a.videoData.isLivePlayback&&Date.now()>a.xO+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&LA(a.videoData.j))){var b=a.Zb;if(b.qoe){b=b.qoe;var c=b.j.ya.zB(),d=g.zO(b.j);SIa(b,d,c);c=c.D;isNaN(c)||g.OR(b,d,"e2el",[c.toFixed(3)])}}g.TC(a.X)&&a.xa("rawlat",{l:oP(a.lJ,"rawlivelatency").toFixed(3)});a.xO=Date.now()}a.videoData.u&&fA(a.videoData.u)&&(b=tF(a))&&b.videoHeight!==a.hH&&(a.hH=b.videoHeight,rT(a,"a",BLa(a,a.videoData.ib)))};
BLa=function(a,b){if("auto"===b.j.video.quality&&fA(b.cg())&&a.videoData.kc)for(var c=g.r(a.videoData.kc),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.hH&&"auto"!==d.j.video.quality)return d.cg();return b.cg()};
aT=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Sa&&a.videoData.j&&(b=$D(a.videoData)?a.Sa.Ia.rh()||0:a.videoData.j.ra);return Date.now()/1E3-a.getIngestionTime()-b};
MLa=function(a){!a.N("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.eg()&&(a.VB=(0,g.R)());a.X.Vm?g.Br(function(){xT(a)},0):xT(a)};
xT=function(a){if(a.mediaElement)try{a.GC=a.mediaElement.playVideo()}catch(c){kT(a,"err."+c)}if(a.GC){var b=a.GC;b.then(void 0,function(c){if(!(g.U(a.playerState,4)||g.U(a.playerState,256)||a.GC!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);kT(a,d);a.pM=!0;a.videoData.NQ=!0}})}};
kT=function(a,b){g.U(a.playerState,128)||(a.Ub(eG(a.playerState,1028,9)),a.xa("dompaused",{r:b}),a.ea("onAutoplayBlocked"))};
bT=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=FLa(a);var d;null==(d=a.Sa)||d.resume()}else jT(a),a.videoData.ib&&(c=a.videoData.ib.xw());b=c;d=a.mediaElement.hA();c=!1;d&&d.equals(b)||(NLa(a,b),c=!0);g.U(a.playerState,2)||(b=a.Zc,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{Ie:"playbacktimeline_resumeTime"}));a:if(b=c,g.kE(a.videoData)&&a.mediaElement)if((d=a.videoData.Y)&&a.mediaElement.Cq()){var e=a.mediaElement.nf();
if(a.xe)if(e!==a.xe.element)yT(a);else if(b&&"fairplay"===d.flavor&&!as())yT(a);else break a;a.xe=new BR(e,a.videoData,a.X);a.xe.subscribe("licenseerror",a.qC,a);a.xe.subscribe("qualitychange",a.wY,a);a.xe.subscribe("heartbeatparams",a.Qy,a);a.xe.subscribe("keystatuseschange",a.Xp,a);a.xe.subscribe("ctmp",a.xa,a);b=g.r(a.qv.keys);for(d=b.next();!d.done;d=b.next())d=a.qv.get(d.value),a.xe.ev(d);a.N("html5_eme_loader_sync")||AR(a.qv)}else a.rg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return c};
NLa=function(a,b){a.Hb.tick("vta");Cx("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&SJa(a.Zc,a.getCurrentTime());a.mediaElement.St(b);a.mediaSource&&Xr(4);!a.videoData.kb&&g.gG(a.playerState)&&a.Tr.start();if(a.N("html5_native_audio_track_switching")){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ea("internalaudioformatchange",a.videoData,!0)}}};
yT=function(a){a.xe&&(a.xe.dispose(),a.xe=null)};
vO=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.Jn()||g.pE(a.videoData))?a.getCurrentTime():a.Kd(b)};
OLa=function(a){a.mediaElement&&(a.mediaSource?(yT(a),tT(a),FLa(a)):(a.videoData.ib&&a.videoData.ib.QI(),a.mediaElement.stopVideo()),a.playVideo())};
zT=function(a,b){a.X.N("html5_log_rebuffer_reason")&&a.xa("bufreason",{r:b,lact:Du()})};
MO=function(a,b,c,d,e,f){var k;if(null==(k=a.videoData.j)?0:k.isLive){k=2===c.playerType?c:b;var l=b.videoData.videoId,m=c.videoData.videoId;if(l&&m){var n=a.Zb;if(n.qoe){n=n.qoe;var p=b.cpn,q=c.cpn,t=k.videoData.qd,v=n.j.videoData.clientPlaybackNonce,x=n.j.videoData.videoId,y=q!==v&&m!==x;v=p!==v&&l!==x;n.reportStats();n.adCpn&&n.adCpn!==p||(n.adCpn=v?p:"",n.Y=v?l:"",n.adFormat=v?t:void 0,YIa(n,f?2:0,q,m,e),n.reportStats(),n.adCpn=y?q:"",n.Y=y?m:"",n.adFormat=y?t:void 0,YIa(n,f?3:1,p,l,d),n.reportStats())}d=
a.Zb;f=b.cpn;d.B.has(f)?(l=d.B.get(f),gS(l).send(),g.Dr(l.B),l.B=NaN,d.u.X.N("watch_time_greater_than_playback_time_fix_killswitch")||f===d.u.videoData.clientPlaybackNonce||(hS(l),d.B.delete(f))):(d.Ug=d.u.videoData.clientPlaybackNonce,d.Ug&&d.j&&d.B.set(d.Ug,d.j));d=a.Zb;f=c.cpn;k=k.videoData;l=e-a.Cn();if(d.B.has(f)){var z;null!=(z=d.B.get(f))&&z.C&&isNaN(z.B)&&eS(z,!1)}else z=tJa(d,d.u,k,l),d.B.set(f,z),jJa(z);d.Ug=f;z=a.videoData.clientPlaybackNonce;a=c.videoData;b=(c.cpn===z?"video":"ad")+"_to_"+
(b.cpn===z?"video":"ad");z={};!a.N("web_player_csi_ctt_killswitch")&&a.K&&(z.cttAuthInfo={token:a.K,videoId:a.videoId});z.startTime=e;ox(b,z);nx({targetVideoId:a.videoId,targetCpn:c.cpn},b);mx("pbs",e,b)}}};
PLa=function(a,b){if(dD(a.X)){var c=g.sB(a.X.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.Pb();d.rt=(1E3*g.zO(a.Zb.u)).toFixed();d.e=b.substr(0,3);a.IC[a.gQ++%c]=d}}};
QLa=function(a){if(dD(a.X)){a.IC.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.IC),c=b.next();!c.done;c=b.next())c=c.value,a.xa("vpe",Object.assign({t:c.rt},c));a.IC=[];a.gQ=0}};
RLa=function(a){if(Yr("cobalt")&&Yr("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.xa("nxdock",{d:b})}};
jEa=function(a,b,c,d,e){a.xa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
uT=function(a,b){var c;null==(c=a.Sa)||$Q(c,b||ELa(a))};
ELa=function(a){var b=a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.IC(a.X),c=a.N("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.Sb(a.Jj,"ad")};
g.CT=function(a,b,c){g.G.call(this);var d=this;this.logger=new g.iP("App");this.Ey=this.qh=!1;this.Ts={};this.bF={};this.PC={};this.Ev=[];this.dO=!1;this.XG=null;this.hO=!1;this.Lr=!0;this.cJ=!1;this.AO=this.jH=null;this.HO=!0;this.mediaElement=this.Lb=null;this.Vy=!1;this.OQ=this.fz=this.Cb=this.playlist=null;this.Az=void 0;this.oq=0;this.Bd=this.cw=this.dk=null;this.useLivingRoomPoToken=!1;this.config=Soa(b||{});this.webPlayerContextConfig=c;Ema();b=this.config.args||{};this.X=new KC(b,c,c?c.canaryState:
this.config.assets.player_canary_state);g.H(this,this.X);this.fF();this.X.isMobile&&!SLa&&(window.addEventListener(nC?"touchstart":"click",dEa,{capture:!0,passive:!0}),SLa=!0);this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);this.N("html5_generate_session_po_token")&&!this.useLivingRoomPoToken&&(this.N("html5_webpo_idle_priority_job")?g.Tr(g.Vr(),function(){TLa(d)}):TLa(this));
this.N("html5_onesie")&&(this.aq=new hO(this.X),g.H(this,this.aq));this.aR=gC(tC(this.X)&&!0,b.enablesizebutton);this.dH=gC(!1,b.player_wide);this.visibility=new CO;g.H(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.iA(this);g.H(this,this.events);this.Wn=new kP;g.H(this,this.Wn);this.vn=new kP;g.H(this,this.vn);this.Hp=new iFa;this.Ra=new g.xJ(this);g.H(this,this.Ra);this.template=new sP(this);g.H(this,this.template);this.appState=1;this.gh=this.X.storeUserVolume?
hta():{volume:100,muted:this.X.mute};this.I=this.X.B?new wJ(this,1):new qJ(this,1);g.H(this,this.I);c={};this.eF=(c.internalvideodatachange=this.JX,c.playbackready=this.LX,c.playbackstarted=this.MX,c.statechange=this.OX,c);this.Ec=ULa(this);this.eX=new g.iA(this);g.H(this,this.eX);this.N("html5_enable_web_assembly")&&this.Ec&&FBa(this.Ec).then(function(e){d.X.pk=e});
this.Hb=new JJ(this.X,this.Ec);this.tb=VLa(this);c={};this.jQ=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.MH,c.endseeking=this.QH,c.internalAbandon=this.VH,c.internalaudioformatchange=this.My,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.Uy,c.liveviewshift=this.yY,c.playbackstalledatstart=this.OZ,c.progresssync=this.gZ,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.vC,
c.SEEK_TO=this.DZ,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.WY,c.statechange=this.XP,c.connectionissue=this.Oy,c.newelementrequired=this.EP,c.heartbeatparams=this.Qy,c.videoelementevent=this.iI,c.drmoutputrestricted=this.onDrmOutputRestricted,c.signatureexpired=this.JZ,c.nonfatalerror=this.MY,c);this.Np=new g.iA(this);g.H(this,this.Np);c=10;g.IC(this.X)&&(c=3);SC(this.X)&&(c=g.sB(this.X.experiments,
"tvhtml5_unplugged_preload_cache_size"));this.Yu=new jP;g.H(this,this.Yu);this.Zy=new gP(c,function(e){e!==g.GJ(d,e.getPlayerType())&&e.dispose()});
g.H(this,this.Zy);this.VF=this.cB=-1;this.cD=new g.L(this.template.resize,16,this.template);g.H(this,this.cD);WLa(this);this.td=new WO(this.Ra,this.X,this.tb);this.Yv=new wO(this);g.H(this,this.Yv);YEa(this.X.deviceParams.c);this.events.T(this.Ra,g.Lw("appapi"),this.HX);this.events.T(this.Ra,g.Mw("appapi"),this.IX);this.events.T(this.Ra,g.Lw("appad"),this.kP);this.events.T(this.Ra,g.Mw("appad"),this.kP);this.events.T(this.Ra,g.Lw("appprogressboundary"),this.fZ);this.events.T(this.Ra,g.Mw("applooprange"),
this.dD);this.events.T(this.Ra,"presentingplayerstatechange",this.dh);this.events.T(this.Ra,"resize",this.rZ);this.template.Ba(Nh(a));this.events.T(this.Ra,"offlineslatestatechange",this.PY);this.UJ=XLa(this,this.template.element);g.H(this,this.UJ);this.Ec.I.V().Bg&&mK(this.Ec,"offline");this.X.Gc&&g.bK("ux",g.fO);this.kM=new g.L(this.E_,g.sB(this.X.experiments,"html5_defer_fetch_att_ms"),this);g.H(this,this.kM);this.jd().isValid()&&(g.jw()&&this.jd().ra.push("remote"),AT(this),!this.X.N("html5_delay_initial_loading")&&
BT(this)&&(this.X.Si||this.X.Qe)&&g.yO(this.tb));this.Hb.tick("fs");YLa(this);this.Nd=null;this.X.Gc&&CBa(this.Ec);g.CC(this.Ec.I.V())&&mK(this.Ec,"music");g.rC(this.Ec.I.V())&&mK(this.Ec,"embed");this.N("web_player_sentinel_is_uniplayer")||g.Jv(new g.Is("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");c=g.Q("web_player_sentinel_yt_experiments_sync");a!==c&&g.Jv(new g.Is("b/195699950",{yt:a,player:c}));this.DR=ZLa(this);if(a=
g.sB(this.X.experiments,"html5_block_pip_safari_delay"))this.aG=new g.L(this.wM,a,this),g.H(this,this.aG);this.X.N("embeds_enable_pem_cookie_blocking_killswitch")||(Nr=this.X.Ua);a=g.sB(this.X.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.bQ=new g.Ei(a),g.H(this,this.bQ),this.events.T(this.bQ,"tick",function(){d.cQ&&$La.gp(d.cQ);d.cQ=$La.kq("apit")}))};
ZLa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Cb||a.tb).Zb.zd("player.exception",eD({n:c.name,m:c.message}))}
Kv.subscribe("handleError",b);gr.push(b);return function(){Kv.unsubscribe("handleError",b);var c=gr.indexOf(b);-1!==c&&gr.splice(c,1)}};
VLa=function(a){var b=new g.TD(a.X,a.config.args);b=a.Uo(1,b);b.setPlaybackRate(a.X.j?1:aMa(a,Number(g.hw("yt-player-playback-rate"))||1));g.jv(b,a.eF,a);return b};
ULa=function(a){var b="",c=dFa(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.Jv(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new jK(a.Ra,b);bMa(a,b);return b};
bMa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
cMa=function(a,b){var c=a.isVideoInfoVisible();a.dk||(a.dk=new AP(a.Ra),g.H(a,a.dk),g.EJ(a.Ra,a.dk.element,4));g.YG(a.dk,b);DT(a)&&c!==b&&AJ(a.Ec).wJ();a=a.Cb;b&&a&&a.xa("sfn",{},!0)};
ET=function(a){var b=XC(a.X)?new g.wK(g.ci("AUDIO")):oO.pop()||new g.wK(g.ci("VIDEO"));a.mediaElement=b;g.H(a,a.mediaElement);a.Cb&&a.Cb.setMediaElement(a.mediaElement);try{a.X.kc?(a.cw&&a.events.xc(a.cw),a.cw=a.events.T(a.mediaElement,"volumechange",a.GY)):(a.mediaElement.Gv(a.gh.muted),a.mediaElement.setVolume(a.gh.volume/100))}catch(d){a.Ff("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.hv(a.Np);dMa(a);b=a.template;b.Jb=a.mediaElement.nf();
b.FB=!1;b.Jb.parentNode||g.fi(b.kx,b.Jb,0);b.NC=new g.Hm(0,0,0,0);hFa(b);tP(b);g.M(b.Jb,"video-stream");g.M(b.Jb,g.rP.MAIN_VIDEO);var c=b.app.V();c.Th&&b.Jb.setAttribute("data-no-fullscreen","true");c.ql&&(b.Jb.setAttribute("webkit-playsinline",""),b.Jb.setAttribute("playsinline",""));c.Um&&b.Jb&&b.T(b.Jb,"click",b.Jb.play,b.Jb);try{a.mediaElement.St()}catch(d){a.Ff("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
BO=function(a,b){if(a.Cb!==b){var c=null;if(a.Cb){c=a.Cb.getPlayerState();oK(a.Ec,3);FT(a,"cuerangesremoved",a.Cb.yn());a.Yv&&!b.isGapless()&&a.Cb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var d;if(d=a.Bd)d=a.mediaElement,d=!!d&&d===a.Bd.mediaElement;d&&(a.Eh(),ET(a));a.Cb&&(a.Cb.Eh(),kv(a.Cb,a.jQ,a),1!==a.Cb.getPlayerType()&&a.Cb.dispose());a.Cb=null}1===b.getPlayerType()&&a.tb!==b&&(b.getVideoData().autonavState=a.tb.getVideoData().autonavState,kv(a.tb,a.eF,a),d=a.tb.getPlaybackRate(),
a.tb.dispose(),a.tb=b,a.tb.setPlaybackRate(d),g.jv(b,a.eF,a),AT(a));d=b.getPlayerType();if(b!==a.tb&&b!==a.Ts[d]){var e;null==(e=a.Ts[d])||e.dispose();a.Ts[d]=b}a.Cb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.jv(b,a.jQ,a);if(b.TB())GT(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.fG(c,b.getPlayerState())&&a.XP(new g.wF(b.getPlayerState(),c));if(b.Un.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&
a.Ra.Oa("onPlaybackQualityChange",c.quality);FT(a,"cuerangesadded",a.Cb.yn());c=b.getPlayerState();g.U(c,2)?eMa(a):g.U(c,8)&&b.playVideo()}}};
eMa=function(a){if(!fMa(a)){var b=a.tb.Ld();b&&(b=b.zx(),b instanceof Promise&&b.catch(function(){}));
HT(a,jG(a.yb()))}};
dMa=function(a){var b=a.mediaElement;oA()?a.Np.T(b,"webkitpresentationmodechanged",a.AZ):nA()&&(a.Np.T(b,"enterpictureinpicture",function(){a.Hv(!0)}),a.Np.T(b,"leavepictureinpicture",function(){a.Hv(!1)}));
yC&&(a.Np.T(b,"webkitbeginfullscreen",function(){a.Rj(3)}),a.Np.T(b,"webkitendfullscreen",function(){a.Rj(0)}))};
g.GJ=function(a,b){return b?1===b?a.tb:a.getVideoData().enableServerStitchedDai&&2===b?!a.N("web_player_enable_preroll_for_ssdai_killswitch")&&a.getVideoData().enablePreroll?a.Ts[2]||a.Cb:a.Cb:a.Ts[b]||null:a.Cb};
IT=function(a,b){return a.Ge(b)?a.tb:b};
JT=function(a,b){var c=a.Cb;return c&&b===a.tb&&a.Ge(b)&&a.Ge(c)?c:b};
KT=function(a){if(!DT(a)){var b=pK(a.Ec);b&&!b.created&&lK(a.Ec)&&b.create()}};
gMa=function(a){var b=a.getVideoData(),c=a.Ec;nK(c)||c.EF();mK(c,"attribution",!1,!0);mK(c,"embed");mK(c,"inline_preview");mK(c,"kids");mK(c,"remote");mK(c,"miniplayer");mK(c,"music");mK(c,"offline");mK(c,"unplugged");mK(c,"ypc",!1,!0);mK(c,"ypc_clickwrap",!1,!0);mK(c,"yto",!1,!0);mK(c,"webgl",!1,!0);c.D||(mK(c,"captions",!0),mK(c,"endscreen"),c.FF(),mK(c,"creatorendscreen",!0));c.MM();BBa(c);a.Ra.ea("videoready",b)};
BT=function(a){a=a.jd();a.isValid();return zE(a)};
YLa=function(a){a.JF();var b=a.config.args;ET(a);var c=a.jd();a.Ra.Oa("onVolumeChange",a.gh);if(b&&XJ(b)){var d=PC(a.X);d&&!a.qh&&(b.fetch=0);var e=g.rC(a.X);e&&!a.qh&&(b.fetch=0);LT(a,b);g.rC(a.X)&&a.Hb.tick("ep_pr_s");if(d&&!a.qh)MT(a);else if(e&&!a.qh)NT(a);else if(!c.isValid())a.playlist.onReady(function(){OT(a)})}BO(a,a.tb);
g.U(a.tb.getPlayerState(),128)||(b=Asa(!XC(a.X)),"fmt.noneavailable"===b?a.Ff("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Ff(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&BT(a)&&(a.X.Si||a.X.Qe)?PT(a):g.hw("yt-player-playback-on-reload")?(g.Ds("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.authUser}),ota(!1),PT(a)):$C(a.X)||hMa(a),g.RC(a.X)||"MWEB"===GC(a.X)?(g.Tr(g.Vr(),function(){QT(a)}),g.Tr(g.Vr(),function(){lAa()})):
(QT(a),lAa()))};
QT=function(a){if(a.N("fetch_att_independently"))g.zp(a.kM);else{var b=a.getVideoData().botguardData;b&&(a.getVideoData(),g.OI(b,a.X))}};
hMa=function(a){a.Ra.ea("initializingmode");a.Dm(2);mK(a.Ec,"remote");a.X.N("player_cued_miniplayer_module_killswitch")||mK(a.Ec,"miniplayer")};
PT=function(a){if(g.U(a.tb.getPlayerState(),128))return!1;BT(a)&&a.X.Qe&&(oO.length&&a.Ey?(sJ(a,{muted:!1,volume:a.gh.volume},!1),RT(a,!1)):oO.length||a.gh.muted||(sJ(a,{muted:!0,volume:a.gh.volume},!1),RT(a,!0)));var b=a.tb.getVideoData();b.hP&&sJ(a,{muted:!0,volume:a.gh.volume},!1);ST(a,1,b,!1);a.Ra.ea("initializingmode");BO(a,a.tb);a.Dm(3);if(!(b=!a.X.jk)){if(b=a.Bd)b=a.mediaElement,b=!!b&&b===a.Bd.mediaElement;b=b&&a.dO}b&&(a.Eh(),ET(a),a.tb.setMediaElement(a.mediaElement));oT(a.tb);if(g.U(a.tb.getPlayerState(),
128))return!1;HT(a,3);return a.dO=!0};
TLa=function(a){var b=a.N("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",c=a.N("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";b=g.IC(a.X)?b:c;try{if(a.dw=Zda({Yk:b,onError:function(e){g.Jv(e)}}),!a.N("html5_generate_content_po_token")){a.dw.ready().then(function(){iMa(a)});
var d=g.sB(a.X.experiments,"html5_session_po_token_interval_time_ms");0<d&&(a.VI=g.Cr(function(){iMa(a)},d))}}catch(e){e instanceof Error&&g.Jv(e)}};
iMa=function(a){var b,c,d,e;g.B(function(f){if(!a.N("html5_generate_session_po_token")||null==(b=a.dw)||!b.isReady()||a.useLivingRoomPoToken)return f.return();c=a.N("enable_web_eom_visitor_data")?g.P("EOM_VISITOR_DATA")||g.P("VISITOR_DATA"):g.P("VISITOR_DATA");d=a.X.Rm?a.X.datasyncId:c;e=a.X.livingRoomPoTokenId||d;a.X.Oe=jMa(a,e);g.sa(f)})};
jMa=function(a,b){var c;if(null==(c=a.dw)||!c.isReady())return"";try{var d=a.dw.Zu({lx:b});return g.wc(d,2)}catch(e){return g.Jv(e),""}};
ALa=function(a,b){return g.B(function(c){return a.dw?c.return(a.dw.ready().then(function(){return jMa(a,b)})):c.return(Promise.reject("web po not ready"))})};
DT=function(a){a=AJ(a.Ec);return!!a&&a.loaded};
kMa=function(a,b){if(!a.Lb)return!1;var c=.001*a.Lb.startTimeMs-1;a=.001*a.Lb.endTimeMs;return vh(b,c)||vh(b,a)||b>=c&&b<=a};
lMa=function(a){g.U(a.tb.getPlayerState(),64)&&a.jd().isLivePlayback&&5E3>a.Lb.startTimeMs||a.tb.seekTo(.001*a.Lb.startTimeMs,{Ie:"application_loopRangeStart"})};
aMa=function(a,b){var c=a.Ra.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};
UT=function(a,b,c){if(a.Ge(c)){c=c.getVideoData();if(TT(a))c=b;else{a=a.td;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Ac===e.Ac){b+=e.yc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Ac===e.Ac)break;var f=e.yc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Sc/1E3;else break}c=d}return c}return b};
mMa=function(a,b){if(3===a.getPresentingPlayerType())return jG(AJ(a.Ec).Yd);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Nd)?0:c.isAdPlaying(a.getCurrentTime()))?a.cB:-1}return 2!==b||a.Ge()?a.cB:a.VF};
AT=function(a){VT(a);a.setLoopVideo(!1);a.setLoopRange(null);a.bF={};a.PC={};a.Ev=[];jBa(a.Hb);if(a.Nd){var b=a.Nd,c=a.tb;c.getPlayerType();QO(b,!1);SO(b);EEa(b);b.ya=c}b=a.td;a=a.tb;1!==a.getPlayerType()&&XO(b,"invalidParentVideoPlayerType");bP(b,!1);dP(b);b.j=a};
MT=function(a){var b=nMa();if(b)if(!b.list)a.Zt();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ra.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.YJ(a.playlist).videoId||(b.index=a.playlist.index));$J(a.playlist,b);a.fz&&WT(a,a.fz)}else a.fz=null};
NT=function(a,b){var c=(b?b:a.jd()).WR;a.Hb.tick("ep_pr_r");if(null!=c&&($J(a.playlist,c),a.cJ))a.playlist.onReady(function(){OT(a,b)})};
LT=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Zt,a),g.nf(a.playlist),a.playlist=null);b&&(a.qh&&(b.fetch=0),a.playlist=new WJ(a.X,b),a.playlist.subscribe("error",a.Zt,a))};
XT=function(a,b,c,d){b in a.bF||(c=new g.Jw(c,d,{id:b,priority:2,namespace:"appad"}),a.tb.addCueRange(c),a.bF[b]=c)};
rMa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.rp(c,d);d=void 0;d=void 0===d?!1:d;(d=Cw(Dw(c,oMa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=Cw(Dw(c,pMa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=Cw(Dw(c,qMa),c,d,"Nielsen OCR URL"));g.Nt(c,void 0,d)}return!0};
HT=function(a,b){if(a.Cb){var c=a.Cb.getPlayerType();if(2===c&&!a.Ge()){a.VF!==b&&(a.VF=b,a.Ra.Oa("onAdStateChange",b));return}if(2===c&&a.Ge()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.N("clips_disable_end_when_looping")&&0===b&&a.Lb||a.cB===b||(a.cB=b,a.Ra.Oa("onStateChange",b))};
ST=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Ac;var f=a.Zy.get(e);if(!f)return null;a.Zy.remove(e);if(g.U(f.getPlayerState(),128))return f.dispose(),null}if(f===g.GJ(a,b))return nx({isCacheHit:!0},a.Hb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||BO(a,f);nx({isCacheHit:!0},a.Hb.timerName);return f};
ZT=function(a,b,c){c=g.GJ(a,c);b&&c===a.tb&&(c.getVideoData().Qf=!0)};
$T=function(a,b,c){c=void 0===c?1:c;if(b.isValid()){var d=a.Uo(c,b);a.cancelPlayback(4,c);BO(a,d);2===c&&a.tb.yv(b.clientPlaybackNonce,b.qd||"",b.breakType||0,b.Oe);1===c&&(a.Dm(1),hMa(a))}else b.dispose(),g.nf(g.GJ(a,c)),!a.N("web_player_clean_up_adplayer_for_preroll_on_ssdai_killswitch")&&kwa(a.jd())&&2===c&&delete a.Ts[2]};
sMa=function(a,b,c,d,e){b=YAa(b,c,d,e);(c=g.rC(a.X)&&!a.X.S)&&!a.qh&&(b.fetch=0);LT(a,b);g.rC(a.X)&&a.Hb.tick("ep_a_pr_s");if(c&&!a.qh)c=a.jd(),oBa(c,b).then(function(f){a.cJ=!0;NT(a,f)});
else a.playlist.onReady(function(){OT(a)});
g.rC(a.X)&&a.Hb.tick("ep_a_pr_r")};
OT=function(a,b){var c=g.rC(a.X)&&!a.X.S,d=c&&b?b:g.YJ(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.xm&&(a.X.Si||a.X.Qe)||!a.Lr?(b=b.Qf,d=a.Lp(d,1),b&&ZT(a,d)):$T(a,d,1));g.rC(a.X)&&a.Hb.tick("ep_p_l");a.cJ=!1;a.Ra.Oa("onPlaylistUpdate")};
fMa=function(a){if(a.playlist&&g.xC(a.X)&&a.Fx()){var b=a.X.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
WT=function(a,b){var c=g.Ia(b);c?((b=nMa())&&b.list&&c(),a.fz=null):a.fz=b};
nMa=function(){var a=g.Ia("yt.www.watch.lists.getState");return a?a():null};
aU=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=Iw.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=Iw.AD_MARKER:(b.style=Iw.TIME_MARKER,b.color=e),b.visible=!0);a.Xw([new g.Jw(1E3*c,1E3*d,b)],1);return!0};
tMa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.Ev.push({id:b,T0:c,S0:d}),!1;e=f-a.getCurrentTime();return aU(a,b,c-e,d-e)};
uMa=function(a,b){a.Ev=g.Zn(a.Ev,function(f){return f.id!==b});
for(var c=a.tb.yn(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.tb.removeCueRange(e),FT(a,"cuerangesremoved",[e]),!0}return!1};
vMa=function(a){var b=(0,g.R)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
sJ=function(a,b,c){a.X.va&&(a.gh=b,b.muted||RT(a,!1),c&&a.X.storeUserVolume&&!a.X.kc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.gw("yt-player-volume",c),g.gw("yt-player-volume",c,2592E3))),wMa(a),c=g.mA&&a.mediaElement&&!a.mediaElement.dg(),a.X.kc&&!c||a.Ra.Oa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.X.storeUserVolume}))};
wMa=function(a){var b=a.getVideoData();if(!b.Qg){b=a.X.kc?1:iwa(b);var c=a.mediaElement;c.Gv(a.gh.muted);try{c.setVolume(a.gh.volume*b/100)}catch(d){g.Jv(new g.Is("b183742307","multiplier: "+b+", volume: "+a.gh.volume))}}};
RT=function(a,b){b!==a.Ey&&(a.Ey=b,a.Ra.Oa("onMutedAutoplayChange",b))};
bU=function(a){var b=cv(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.nf())?b:null};
yMa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.X.N("lock_fullscreen2")||a.X.J)&&c&&c.lock&&(!g.mA||!xMa))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.Vy||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.Vy=!0}}else a.Vy&&(a.Vy=!1,c.unlock())};
FT=function(a,b,c){a.Ra.ea(b,c);var d=g.IC(a.X)||g.zC(a.X)||g.AC(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ra.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}}))}};
cU=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.GJ(a,e);if(!k||(2!==k.getPlayerType()||a.Ge(k)||f)&&!g.pE(k.getVideoData()))3===a.getPresentingPlayerType()?AJ(a.Ec).wm("control_seek",b,c):(k===a.tb&&a.Lb&&!kMa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
dU=function(a){a.Ra.Oa("SIZE_CLICKED",!a.dH)};
GT=function(a,b,c,d){c&&(a.Eh(),ET(a));c=g.GJ(a);c.zd(new fD("staleconfig",{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?$D(e)&&g.TC(a.X)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Ta&&(f.vvt=e.Ta);e.K&&(f.vss_credentials_token=e.K,f.vss_credentials_token_type=e.ij);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Uh&&(f.force_gvi=e.Uh);f.autoplay=1;f.reload_count=e.Vb+1;f.reload_reason=b;e.Ow&&
(f.unplugged_partner_opt_out=e.Ow);e.Pd&&(f.ypc_is_premiere_trailer=e.Pd);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d);"signature"===b&&a.Nd&&KT(a)};
zMa=function(a,b){a.jd().autonavState=b;g.gw("yt-player-autonavstate",b);a.Ra.ea("autonavchange",b)};
AMa=function(a){var b=a.getVideoData().Qg,c=a.X.bd,d=a.isInline()&&!a.getVideoData().IG,e=a.mediaElement;b||c||d?e.LF():(e.NF(),sJ(a,a.gh))};
XLa=function(a,b){return a.X.N("html5_enable_embedded_player_visibility_signals")&&g.rC(a.X)?new qP(b):null};
VT=function(a){(a=pK(a.ob()))&&a.created&&a.destroy()};
TT=function(a){return(a.N("html5_halftime_limit_timeline_usage_killswitch")||a.getVideoData().enableServerStitchedDai)&&!!a.Nd};
BMa=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]=Nm(a,d);b.hidden=!!a.hidden};
WLa=function(a){var b=a.X,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.Qs&&d&&b.j?gs()||b.Ua?(g.Ds("embedsStorageAccessNotChecked",{isIosWebview:gs(),isPemPlayer:b.Ua}),a.Az=!1):c.hasStorageAccess().then(function(e){g.Ds("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Az=!e},function(e){g.Ds("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Jv(Error("Embeds ITP Error: "+e));a.Az=!1}):a.Az=!1};
CMa=function(a,b){return g.IC(a.X)&&tr(b)&&sr(b)?g.cD(a.X,g.BE(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Mr()};
eU=function(a,b){CMa(a,b).then(function(c){g.Nt(b,void 0,void 0,c)})};
fU=function(a,b){b.forEach(function(c){eU(a,c)})};
dFa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
DMa=function(a){var b;a=null==(b=tJ(a.ob()))?void 0:b.Gx();if(!(a instanceof g.SK))return null;var c;return(null==(c=a.EN())?void 0:c.Y)||null};
EMa=function(a,b,c,d){var e=1E3*a.getCurrentTime()<c?1:-1;b.CQ(e,d);cU(a,c/1E3)};
gU=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
tw=function(a,b){return a.j.has(b)};
W=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
hU=function(a){return Array.from(a.j.keys())};
GMa=function(a){var b;return(null==(b=FMa.get(a))?void 0:b.Ms)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
jU=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:HMa.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Rb&&(c.entryTriggerType=b.Rb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Rb)c.debugData.slotEntryTriggerData=iU(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(iU(d.value));b=b.wc;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(iU(a.value))}return c};
IMa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:HMa.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
iU=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Kh&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Kh);null!=a.wf&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.wf);return c};
JMa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Wl(d||[],function(e){return jU(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
mU=function(a,b){return function(c){return kU(lU(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Za,b.Rb,b.qc,b.wc,c.layoutId,c.layoutType,c.Za)}};
kU=function(a,b,c,d,e,f,k,l,m,n,p){return{adClientDataEntry:{slotData:jU(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Za:e,Rb:f,qc:k,wc:l,Da:new gU([])}),layoutData:IMa(a,{layoutId:m,layoutType:n,Za:p,Md:[],Wc:[],Tc:[],Xc:[],md:[],vc:new Map,Da:new gU([]),Dc:{}})}}};
nU=function(a){this.Na=a;a=Math.random();var b=this.Na.get();b=g.sB(b.I.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
lU=function(a){var b;(b=a.j)||(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};
KMa=function(a,b){var c={slotId:yw(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rb:void 0,qc:[],wc:[],Za:"surface",Da:new gU([])},d=Object,e=d.assign;b=zw(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",vc:new Map,Md:[],Wc:[],Tc:[],Xc:[],md:[],Za:"surface",Da:new gU([]),Dc:kU(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Za,c.Rb,c.qc,c.wc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},
a,{DW:!0,slot:c,layout:b})};
oU=function(a){this.controller=a};
pU=function(a){this.BF=a};
qU=function(a,b,c){this.BF=a;this.gi=b;this.Bj=c};
LMa=function(a,b,c){var d=a.BF();switch(b.type){case "SKIP":Aya(d,a.gi,a.Bj,c)}};
rU=function(){};
sU=function(){};
tU=function(a,b){this.Wk=a;this.w_=b};
uU=function(a,b){this.Mq=a;this.Pa=b};
vU=function(a){this.I=a};
wU=function(a,b){this.Kj=a;this.Pa=b};
NMa=function(a){g.G.call(this);this.j=a;this.IT=MMa(this)};
MMa=function(a){var b=new NG(a.j.Vc);g.H(a,b);a=g.r([new oU(a.j.LU),new uU(a.j.Mq,a.j.Pa),new vU(a.j.I),new wU(a.j.Kj,a.j.Pa),new qU(a.j.nX,a.j.gi,a.j.Bj),new pU(a.j.cV),new sU,new tU(a.j.Wk,a.j.ph),new rU]);for(var c=a.next();!c.done;c=a.next())c=c.value,sya(b,c),tya(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())LG(b,c.value,function(){});
return b};
xU=function(a){this.value=a};
yU=function(a){this.value=a};
zU=function(a){this.value=a};
AU=function(a){this.value=a};
BU=function(a){this.value=a};
CU=function(){xU.apply(this,arguments)};
DU=function(a){this.value=a};
EU=function(a){this.value=a};
FU=function(a){this.value=a};
GU=function(a){this.value=a};
HU=function(a){this.value=a};
IU=function(a){this.value=a};
JU=function(){xU.apply(this,arguments)};
KU=function(){xU.apply(this,arguments)};
LU=function(a){this.value=a};
MU=function(a){this.value=a};
NU=function(a){this.value=a};
OU=function(a){this.value=a};
PU=function(a){this.value=a};
QU=function(a){this.value=a};
RU=function(a){this.value=a};
SU=function(a){this.value=a};
TU=function(a){this.value=a};
UU=function(a){this.value=a};
VU=function(a){this.value=a};
WU=function(a){this.value=a};
XU=function(a){this.value=a};
YU=function(a){this.value=a};
ZU=function(a){this.value=a};
$U=function(a){this.value=a};
aV=function(a){this.value=a};
bV=function(a){this.value=a};
cV=function(a){this.value=a};
dV=function(a){this.value=a};
eV=function(a){this.value=a};
fV=function(a){this.value=a};
gV=function(a){this.value=a};
hV=function(a){this.value=a};
iV=function(a){this.value=a};
jV=function(a){this.value=a};
kV=function(a){this.value=a};
lV=function(a){this.value=a};
mV=function(a){this.value=a};
nV=function(a){this.value=a};
oV=function(a){this.value=a};
pV=function(a){this.value=a};
qV=function(a){this.value=a};
rV=function(a){this.value=a};
sV=function(){xU.apply(this,arguments)};
tV=function(){xU.apply(this,arguments)};
uV=function(){xU.apply(this,arguments)};
vV=function(){xU.apply(this,arguments)};
wV=function(){xU.apply(this,arguments)};
xV=function(){xU.apply(this,arguments)};
OMa=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}};
yV=function(a,b,c,d){g.G.call(this);this.qe=b;this.Wb=c;this.Na=d;this.j=a(this,this,this,this,this);g.H(this,this.j);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.H(this,b.value)};
zV=function(a,b){a.qe.add(b);a.Na.get().I.V().N("html5_not_register_disposables_when_core_listens")||g.H(a,b)};
Zwa=function(a,b){NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
$wa=function(a,b){NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.qe);for(var c=a.next();!c.done;c=a.next())c.value.xi(b)};
axa=function(a,b){NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.qe);for(var c=a.next();!c.done;c=a.next())c.value.Tf(b)};
Swa=function(a,b){NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.qe);for(var c=a.next();!c.done;c=a.next())c.value.Uf(b)};
BV=function(a,b,c){S(c,b,void 0,void 0,c.Nq);AV(a,b,!0)};
RMa=function(a,b,c){if(CV(a.j,b))if(DV(a.j,b).C=c?"filled":"not_filled",null===c){EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.qe);for(var d=c.next();!d.done;d=c.next())d.value.Uk(b);AV(a,b,!1)}else{EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=W(c.Da,"metadata_type_sub_layouts")){d=g.r(d);for(var e=d.next();!e.done;e=d.next())EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.r(a.qe);for(d=e.next();!d.done;d=
e.next())d.value.Vk(b);if(CV(a.j,b))if(DV(a.j,b).D)AV(a,b,!1);else{EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!DV(f,b))throw new FV("Unknown slotState for onLayout");if(!f.Be.Nn.get(b.slotType))throw new FV("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.Tb(c.Md)&&g.Tb(c.Wc)&&g.Tb(c.Tc)&&g.Tb(c.Xc)&&g.Tb(c.md))throw new FV("Layout has no exit triggers.");GV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Md);GV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Wc);GV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Tc);GV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Xc);GV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.md)}catch(n){a.jg(b,c,n);AV(a,b,!0);return}DV(a.j,b).J=!0;try{var k=a.j,l=DV(k,b),m=k.Be.Nn.get(b.slotType).get().Te(k.C,k.u,b,c);m.init();l.layout=c;if(l.B)throw new FV("Already had LayoutRenderingAdapter registered for slot");l.B=m;HV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Md);HV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Wc);HV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Tc);HV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Xc);HV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.md)}catch(n){IV(a,b);AV(a,b,!0);a.jg(b,c,n);return}EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.r(a.qe);for(d=f.next();!d.done;d=f.next())d.value.Ej(b,c);IV(a,b);PMa(a,b)}else QMa(a.Na.get())&&S("slot is unscheduled after been fulfilled.",b,c)}};
JV=function(a,b,c){"core"!==b.Za&&EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
KV=function(a,b,c){EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.qe);for(var d=a.next();!d.done;d=a.next())d.value.Ej(b,c)};
OF=function(a,b,c){a=g.r(a.qe);for(var d=a.next();!d.done;d=a.next())d.value.Fj(b,c)};
LV=function(a,b,c){EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.qe);for(var d=a.next();!d.done;d=a.next())d.value.Rc(b,c)};
JF=function(a,b,c,d){EV(a.Wb,GMa(d),b,c);a=g.r(a.qe);for(var e=a.next();!e.done;e=a.next())e.value.od(b,c,d)};
IV=function(a,b){if(CV(a.j,b)){DV(a.j,b).J=!1;var c=MV;b=DV(a.j,b);var d=[].concat(g.u(b.S));Ub(b.S);c(a,d)}};
MV=function(a,b){b.sort(function(f,k){function l(m){S("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===k.category?f.trigger.triggerId.localeCompare(k.trigger.triggerId):OMa(f.category,l)-OMa(k.category,l)});
var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,CV(a.j,d.slot))if(DV(a.j,d.slot).J)DV(a.j,d.slot).S.push(d);else{SMa(a.Wb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(TMa);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))&&UMa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&VMa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&WMa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
XMa(a,c)};
UMa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&NV(a.j,d.slot)&&YMa(a,d.slot,d.layout,c)};
VMa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())AV(a,c.value.slot,!1)};
WMa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(DV(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.Cx(c.slot))}};
XMa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.qe),e=d.next();!e.done;e=d.next())e.value.Hj(c.slot);try{var f=a.j,k=c.slot,l=DV(f,k);if(!l)throw new OV("Got enter request for unknown slot");if(!l.u)throw new OV("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.j)throw new OV("Tried to enter a slot from stage: "+l.j);if(PV(l))throw new OV("Got enter request for already active slot");
for(var m=g.r(QV(f,k.slotType+"_"+k.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&PV(p))throw new OV("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j});}}catch(q){S(q,c.slot,RV(a.j,c.slot),void 0,q.Nq);AV(a,c.slot,!0);continue}c=DV(a.j,c.slot);"scheduled"!==c.j&&SV(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.ZA()}};
PMa=function(a,b){if(CV(a.j,b)&&PV(DV(a.j,b))&&RV(a.j,b)&&!NV(a.j,b)){var c;EV(a.Wb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=RV(a.j,b))?c:void 0);a=DV(a.j,b);"entered"!==a.j&&SV(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
YMa=function(a,b,c,d){if(CV(a.j,b)){var e=a.Wb,f;var k=(null==(f=FMa.get(d))?void 0:f.Cs)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";EV(e,k,b,c);a=DV(a.j,b);"rendering"!==a.j&&SV(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.Pf(c,d)}};
AV=function(a,b,c){if(CV(a.j,b)){a:switch(DV(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(DV(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(DV(a.j,b).D=!0,!c))return;if(PV(DV(a.j,b)))DV(a.j,b).D=!0,ZMa(a,b,c);else{a:switch(DV(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)DV(a.j,b).D=!0,CV(a.j,b)&&(NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=DV(a.j,b),b.C="fill_cancel_requested",b.K.pF());else{c=
RV(a.j,b);NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=DV(a.j,b);var e=b.Rb,f=d.ra.get(e.triggerId);f&&(f.Xj(e),d.ra.delete(e.triggerId));e=g.r(b.qc);for(f=e.next();!f.done;f=e.next()){f=f.value;var k=d.Z.get(f.triggerId);k&&(k.Xj(f),d.Z.delete(f.triggerId))}e=g.r(b.wc);for(f=e.next();!f.done;f=e.next())if(f=f.value,k=d.Y.get(f.triggerId))k.Xj(f),d.Y.delete(f.triggerId);null!=d.layout&&(e=d.layout,TV(d,e.Md),TV(d,e.Wc),TV(d,e.Tc),TV(d,e.Xc),TV(d,e.md));d.K=void 0;null!=d.u&&(d.u.release(),
d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.j;DV(d,b)&&(d=QV(d,b.slotType+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.qe);for(d=a.next();!d.done;d=a.next())d=d.value,d.Ij(b),c&&d.Fj(b,c)}}}};
ZMa=function(a,b,c){if(CV(a.j,b)&&PV(DV(a.j,b))){var d=RV(a.j,b);if(d&&NV(a.j,b))YMa(a,b,d,c?"error":"abandoned");else{NF(a.Wb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=DV(a.j,b);if(!e)throw new OV("Cannot exit slot it is unregistered");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&SV(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new OV("Cannot exit slot because adapter is not defined");e.u.bB()}catch(f){S(f,b,void 0,void 0,f.Nq)}}}};
$Ma=function(a){this.slot=a;this.ra=new Map;this.Z=new Map;this.Y=new Map;this.ma=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.S=[];this.j="not_scheduled";this.C="not_filled"};
PV=function(a){return"enter_requested"===a.j||a.isActive()};
FV=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.Nq=c;this.args=[];b&&this.args.push(b)};
OV=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.Nq=c;this.args=[];b&&this.args.push(b)};
UV=function(a,b,c,d,e,f){g.G.call(this);this.Be=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Na=f;this.j=new Map};
QV=function(a,b){return(a=a.j.get(b))?a:new Map};
DV=function(a,b){return QV(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
aNa=function(a){var b=[];a.j.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
CV=function(a,b){return null!=DV(a,b)};
NV=function(a,b){a=DV(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
RV=function(a,b){(a=DV(a,b))?null!=a.layout&&!a.layout&&S("Unexpected empty layout",b):S("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
VV=function(a,b,c){if(g.Tb(c))throw new OV("No "+bNa.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.Be.gj.get(d.triggerType))throw new OV("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
GV=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Be.gj.get(d.triggerType))throw new FV("No trigger adapter registered for "+bNa.get(b)+" trigger of type: "+d.triggerType);};
HV=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.Be.gj.get(e.triggerType);f.Oj(c,e,b.slot,b.layout?b.layout:null);b.ma.set(e.triggerId,f)}};
TV=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.Xj(c),a.ma.delete(c.triggerId))}};
SV=function(a,b,c){S("Slot stage was "+b+" when calling method "+c,a)};
cNa=function(a){return WV(a.ls).concat(WV(a.gj)).concat(WV(a.xn)).concat(WV(a.uo)).concat(WV(a.Nn))};
WV=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.xj&&b.push(c);return b};
XV=function(a){g.G.call(this);this.j=a;this.u=dNa(this)};
dNa=function(a){var b=new yV(function(c,d,e,f){return new UV(a.j.Be,c,d,e,f,a.j.Na)},new Set(cNa(a.j.Be).concat(a.j.listeners)),a.j.Wb,a.j.Na);
g.H(a,b);return b};
YV=function(a){g.G.call(this);var b=this;this.u=a;this.j=null;g.pf(this,function(){g.nf(b.j);b.j=null})};
X=function(a){return new YV(a)};
ZV=function(a){this.j=a};
AH=function(a,b,c,d){(a=a.j())||S("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
$V=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
eNa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
hNa=function(a,b,c,d,e,f,k){b=fNa(b,f,Number(d.prefetchMilliseconds)||0,k);a=b instanceof OV?b:gNa(a,d,e,b,c);return a instanceof OV?a:[a]};
iNa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
mNa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,aW(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return jNa(n)});
a=[];b={};f=g.r(f);for(var k=f.next();!k.done;b={Zs:b.Zs},k=f.next()){b.Zs=k.value;k={};for(var l=g.r(b.Zs.YE),m=l.next();!m.done;k={Co:k.Co},m=l.next())k.Co=m.value,m=function(n,p){return function(q){return n.Co.OM(q,p.Zs.instreamVideoAdRenderer.elementId,n.Co.fM)}}(k,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===k.Co.Tt?a.push(kNa(c,d,k.Co.gM,e,b.Zs.instreamVideoAdRenderer.elementId,k.Co.adSlotLoggingData,m)):a.push(lNa(c,d,e,b.Zs.instreamVideoAdRenderer.elementId,k.Co.adSlotLoggingData,m))}return a};
aW=function(a,b,c){if(b=nNa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=oNa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.KB=c)}else S("InstreamVideoAdRenderer without externalVideoId")}};
nNa=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};
jNa=function(a){if(void 0===a.instreamVideoAdRenderer)return S("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.YE),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.OM)return!1;if(void 0===c.fM)return S("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.KB||void 0===c.Tt||a.KB!==c.Tt&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Tt)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return S("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.KB,"matching APSR kind":c.Tt}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Tt&&void 0===c.gM)return S("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
oNa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,KB:void 0,adVideoId:b,YE:[]});return a.get(b)};
bW=function(a,b,c,d,e,f,k){d?oNa(a,d).YE.push({gM:b,Tt:c,fM:e,adSlotLoggingData:f,OM:k}):S("Companion AdPlacementSupportedRenderer without adVideoId")};
qNa=function(a){if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var b,c,d=(null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon)||(null==(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon);return pNa(d)?!0:!1};
rNa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon,b=pNa(a)):b=!1:b=!1;return b};
pNa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null==b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null==b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
cW=function(a){var b=0;a=g.r(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=c.instreamSurveyAdMultiSelectQuestionRenderer||c.instreamSurveyAdSingleSelectQuestionRenderer){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
dW=function(a){var b,c,d,e,f=(null==(b=a.questions)?void 0:null==(c=b[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon)||(null==(d=a.questions)?void 0:null==(e=d[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:e.surveyAdQuestionCommon),k;b=[].concat(g.u((null==(k=a.playbackCommands)?void 0:k.instreamAdCompleteCommands)||[]),g.u((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,t,v,x,y,z,E,J,I,N,Z,K,ra,za,Pa,Sa;return{impressionCommands:null==(l=a.playbackCommands)?
void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(t=a.playbackCommands)?void 0:t.rewindCommands,resumeCommands:null==(v=a.playbackCommands)?void 0:v.resumeCommands,skipCommands:null==(x=a.playbackCommands)?void 0:x.skipCommands,progressCommands:null==
(y=a.playbackCommands)?void 0:y.progressCommands,hia:null==(z=a.playbackCommands)?void 0:z.clickthroughCommands,fullscreenCommands:null==(E=a.playbackCommands)?void 0:E.fullscreenCommands,activeViewViewableCommands:null==(J=a.playbackCommands)?void 0:J.activeViewViewableCommands,activeViewMeasurableCommands:null==(I=a.playbackCommands)?void 0:I.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(N=a.playbackCommands)?void 0:N.activeViewFullyViewableAudibleHalfDurationCommands,
activeViewAudioAudibleCommands:null==(Z=a.playbackCommands)?void 0:null==(K=Z.activeViewTracking)?void 0:K.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ra=a.playbackCommands)?void 0:null==(za=ra.activeViewTracking)?void 0:za.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(Pa=a.playbackCommands)?void 0:Pa.endFullscreenCommands,abandonCommands:null==(Sa=a.playbackCommands)?void 0:Sa.abandonCommands,completeCommands:b}};
tNa=function(a,b,c,d,e,f,k){return function(l,m){return sNa(a,m.slotId,l,f,function(n,p){n=k(n);return eW(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new SU(c),d],c.adLayoutLoggingData)})}};
wNa=function(a,b,c,d,e,f,k){if(!uNa(a))return new OV("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[vNa(f,b,c,d,function(m){var n=k(m);m=m.slotId;m=zw(e.fb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Za:"core"},q=new fW(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",vc:new Map,Md:[q],Wc:[],
Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new TU(l)]),Dc:n(p)}})]};
uNa=function(a){a=((null==a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
zNa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!rNa(a))return function(){return new OV("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var k=a.playerOverlay.instreamSurveyAdRenderer,l=cW(k);return 0>=l?function(){return new OV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k})}:function(m,n){var p=xNa(m,c,d,function(q){var t=n(q),v=q.slotId;
q=dW(k);v=zw(e.fb.get(),"LAYOUT_TYPE_SURVEY",v);var x={layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",Za:"core"},y=new fW(e.j,d),z=new gW(e.j,v),E=new hW(e.j,v),J=new yNa(e.j);return{layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",vc:new Map,Md:[y,J],Wc:[z],Tc:[],Xc:[E],md:[],Za:"core",Da:new gU([new RU(k),new HU(b),new qV(l/1E3),new tV(q)]),Dc:t(x),adLayoutLoggingData:k.adLayoutLoggingData}});
m=wNa(a,c,p.slotId,d,e,m,n);return m instanceof OV?m:[p].concat(g.u(m))}};
HNa=function(a,b,c,d,e){var f=[];try{var k=[];if(c.renderer.linearAdSequenceRenderer)var l=function(v){v=ANa(v.slotId,c,b,e(v),d);k=v.n0;return v.nV};
else if(c.renderer.instreamVideoAdRenderer)l=function(v){var x=v.slotId;v=e(v);var y=c.config.adPlacementConfig,z=BNa(y),E=z.eN;z=z.hN;var J=c.renderer.instreamVideoAdRenderer,I;if(null==J?0:null==(I=J.playerOverlay)?0:I.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=CNa(J);I=Math.min(E+1E3*N.videoLengthSeconds,z);z=new RE(0,[N.videoLengthSeconds],I);var Z=N.videoLengthSeconds,K=N.playerVars,ra=N.instreamAdPlayerOverlayRenderer,za=N.adVideoId,
Pa=DNa(c),Sa=N.vc;N=N.dM;var ac=null==J?void 0:J.adLayoutLoggingData;J=null==J?void 0:J.sodarExtensionData;x=zw(b.fb.get(),"LAYOUT_TYPE_MEDIA",x);var zb={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",Za:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",vc:Sa,Md:[new iW(b.j)],Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new LU(d),new cV(Z),new dV(K),new fV(E),new gV(I),ra&&new MU(ra),new HU(y),new JU(za),new IU(z),new lV(Pa),J&&new eV(J),new ZU({current:null}),new iV({}),new xV(N)].filter(ENa)),
Dc:v(zb),adLayoutLoggingData:ac}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=FNa(a,d,l);f.push(m);for(var n=g.r(k),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof OV)return t;f.push.apply(f,g.u(t))}}catch(v){return new OV(v,{errorMessage:v.message,AdPlacementRenderer:c,numberOfSurveyRenderers:GNa(c)})}return f};
GNa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=b.instreamVideoAdRenderer)?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
ANa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,k=BNa(f),l=k.eN,m=k.hN;k=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==k||!k.length)throw new TypeError("Expected linear ads");var n=[],p={hR:l,iR:0,j0:n};k=k.map(function(t){return INa(a,t,p,c,d,f,e,m)}).map(function(t,v){v=new RE(v,n,m);
return t(v)});
var q=k.map(function(t){return t.oV});
return{nV:JNa(c,a,l,q,f,DNa(b),d,m),n0:k.map(function(t){return t.m0})}};
INa=function(a,b,c,d,e,f,k,l){var m=CNa(b.instreamVideoAdRenderer),n=c.hR,p=c.iR,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.hR=q;c.iR++;c.j0.push(m.videoLengthSeconds);var t,v,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.u&&(z.slot_pos=y.j);z.autoplay="1";var E,J;z=m.videoLengthSeconds;var I=m.playerVars,
N=m.vc,Z=m.dM,K=m.instreamAdPlayerOverlayRenderer,ra=m.adVideoId,za=null==(E=b.instreamVideoAdRenderer)?void 0:E.adLayoutLoggingData;E=null==(J=b.instreamVideoAdRenderer)?void 0:J.sodarExtensionData;J=zw(d.fb.get(),"LAYOUT_TYPE_MEDIA",a);var Pa={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};y={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",vc:N,Md:[],Wc:[],Tc:[],Xc:[],md:[],Za:"adapter",Da:new gU([new LU(k),new cV(z),new dV(I),new fV(n),new gV(q),new hV(p),new ZU({current:null}),K&&new MU(K),
new HU(f),new JU(ra),new IU(y),E&&new eV(E),x&&new wV(x),new iV({}),new xV(Z)].filter(ENa)),Dc:e(Pa),adLayoutLoggingData:za};z=zNa(b.instreamVideoAdRenderer,f,k,y.layoutId,d);return{oV:y,m0:z}}};
CNa=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=mr(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,vc:a.pings?TE(a.pings):new Map,dM:SE(a.pings)}};
DNa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
BNa=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{eN:b,hN:a}};
LNa=function(a,b,c,d,e,f,k){var l=c.pings;return l?[KNa(a,f,e,function(m){var n=m.slotId;m=k(m);var p=c.adLayoutLoggingData;n=zw(b.fb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Za:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",vc:TE(l),Md:[new jW(b.j,f)],Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new HU(d)]),Dc:m(q),adLayoutLoggingData:p}})]:new OV("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
NNa=function(a,b,c,d,e,f,k,l){a=MNa(a,c,f,k,d,function(m){var n=m.slotId;m=l(m);n=zw(b.fb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Za:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",vc:q,Md:[new kW(b.j,n)],Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new kV(e),new HU(c)]),Dc:m(p)}});
return a instanceof OV?a:[a]};
PNa=function(a,b,c,d,e,f,k,l){a=ONa(a,c,f,k,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=zw(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=lW(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,mW(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=zw(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=lW(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,mW(b,n,p))):q.imageOverlayAdContentRenderer?(q=zw(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=mW(b,n,p),n.push(new nW(b.j,q)),n=lW(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new FV("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new FV("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof OV?a:[a]};
SNa=function(a,b,c,d,e,f,k){var l=Number(d.durationMilliseconds);return isNaN(l)?new OV("Expected valid duration for AdActionInterstitialRenderer."):function(m){return QNa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,k(m),function(n){return RNa(a,n,e,function(p,q){var t=p.slotId;p=k(p);t=zw(b.fb.get(),"LAYOUT_TYPE_ENDCAP",t);
return eW(b,t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new PU(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
TNa=function(a,b,c,d){if(!c.playerVars)return new OV("No playerVars available in AdIntroRenderer.");var e=mr(c.playerVars);e.autoplay="1";return function(f){var k=f.slotId;f=d(f);k=zw(a.fb.get(),"LAYOUT_TYPE_MEDIA",k);var l={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};return{Ls:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",vc:new Map,Md:[],Wc:[],Tc:[],Xc:[],md:[],Za:"adapter",Da:new gU([new jV({}),new HU(b),new ZU({current:null}),new dV(e)]),Dc:f(l)},du:[new oW(a.j,k,"error")],Yq:[],RA:[],
QA:[]}}};
VNa=function(a,b,c,d,e,f,k,l){var m=cW(e);if(!qNa(e))return new OV("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new OV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=tNa(a,b,e,f,c,d,k);return n instanceof OV?n:function(p){return UNa(b,p.slotId,c,m,dW(e),k(p),n,l)}};
WNa=function(a,b,c,d,e,f,k){function l(p){return RNa(a,p,d,m)}
function m(p,q){var t=p.slotId;p=k(p);t=zw(b.fb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return eW(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new QU(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 OV("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
k(p);p=pW(b,p.slotId,c,n,q,new Map,t,l);q=new VU(p.kI);return{Ls:{layoutId:p.layoutId,layoutType:p.layoutType,vc:p.vc,Md:[],Wc:[],Tc:[],Xc:[],md:[],Za:p.Za,Da:new gU([].concat(g.u(p.jx),[q])),Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},du:[],Yq:p.Tc,RA:p.Xc,QA:p.md,zi:p.zi}}};
ZNa=function(a,b,c,d,e,f,k,l,m,n,p){c=XNa(c,d,f,k,l,m,n,p);if(c instanceof OV)return c;a=YNa(b,a,k,e,c);return a instanceof OV?a:[].concat(g.u(a.Yi),[a.tv])};
aOa=function(a,b,c,d,e,f,k,l,m,n,p){b=XNa(b,c,e,f,l,m,n,p);if(b instanceof OV)return b;a=$Na(a,c,f,k,d,l.fg,b);return a instanceof OV?a:a.Yi.concat(a.tv)};
XNa=function(a,b,c,d,e,f,k,l){var m=qW(c);return m instanceof FV?new OV(m):function(n){var p=new RE(0,[m.yA]),q=bOa(m.playerVars,m.zQ,e,l,p);n=f(n);var t=k.get(m.AD.externalVideoId);p=cOa(a,"core",m.AD,b,q,m.yA,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,vc:p.vc,Md:p.Md,Wc:p.Wc,Tc:p.Tc,Xc:p.Xc,md:p.md,Za:p.Za,Da:p.Da,Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},Yi:[]}}};
qW=function(a){if(!a.playerVars)return new FV("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(b=a.playerOverlay)?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new FV("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=mr(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,S("Expected valid length seconds in player vars but got NaN"));
return{AD:a,playerVars:b,zQ:a.playerVars,yA:c}};
bOa=function(a,b,c,d,e){a.iv_load_policy=d;b=mr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){S(f)}c.fh&&(a.ctrl=c.fh);c.Dh&&(a.ytr=c.Dh);c.dn&&(a.ytrcc=c.dn);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.ij&&(a.vss_credentials_token_type=c.ij),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
eOa=function(a,b,c,d,e,f,k,l,m,n,p){a=YNa(b,a,k,e,dOa(b,c,d,f,k,l,m,n,p));return a instanceof OV?a:[].concat(g.u(a.Yi),[a.tv])};
gOa=function(a,b,c,d,e,f,k,l,m,n,p){b=dOa(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=fOa(a,c,f,k),c instanceof OV?d=c:(f=yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),k=zw(a.fb.get(),"LAYOUT_TYPE_SURVEY",f),a=[].concat(g.u(c.wc),[new rW(a.j,k)]),f=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Za:c.Za,Rb:c.Rb,qc:c.qc,wc:a},{slotId:f,layoutId:k}),d=f instanceof OV?f:{tv:{slotId:c.slotId,slotType:c.slotType,
slotPhysicalPosition:c.slotPhysicalPosition,Rb:c.Rb,qc:c.qc,wc:a,Za:c.Za,Da:new gU([new mV(f.layout)]),adSlotLoggingData:d},Yi:f.Yi})):d=$Na(a,c,f,k,d,l.fg,b);return d instanceof OV?d:d.Yi.concat(d.tv)};
dOa=function(a,b,c,d,e,f,k,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),v=t.next();!v.done;v=t.next())if(v=v.value,v.instreamVideoAdRenderer){v=qW(v.instreamVideoAdRenderer);if(v instanceof FV){q=new OV(v);break b}q.push(v.yA)}}if(q instanceof OV)p=q;else{t=0;v=[];for(var x=[],y=[],z=[],E=[],J=[],I=new $U({current:null}),N=[],Z=g.r(d),K=Z.next();!K.done;K=Z.next())if(K=K.value,K.adIntroRenderer){K=TNa(b,c,K.adIntroRenderer,k);if(K instanceof OV){p=K;break a}K=K(n);v.push(K.Ls);x=[].concat(g.u(K.du),
g.u(x));y=[].concat(g.u(K.Yq),g.u(y));K.zi&&(N=[K.zi].concat(g.u(N)))}else if(K.instreamVideoAdRenderer){var ra=qW(K.instreamVideoAdRenderer);if(ra instanceof FV){p=new OV(ra);break a}var za=new RE(t,q);K=b;var Pa=ra.AD,Sa=bOa(ra.playerVars,ra.zQ,f,m,za),ac=k(n),zb=l.get(ra.AD.externalVideoId);ra=cOa(K,"adapter",Pa,c,Sa,ra.yA,e,za,ac,zb);za=ra.Wc;Pa.isCritical&&(za=[new oW(K.j,ra.layoutId,"error")].concat(g.u(za)));K={layoutId:ra.layoutId,layoutType:ra.layoutType,vc:ra.vc,Md:[],Wc:[],Tc:[],Xc:[],
md:[],Za:ra.Za,Da:ra.Da,Dc:ra.Dc,adLayoutLoggingData:ra.adLayoutLoggingData};Pa=za;ra=ra.Tc;t++;v.push(K);x=[].concat(g.u(Pa),g.u(x));y=[].concat(g.u(ra),g.u(y))}else if(K.adActionInterstitialRenderer){K=SNa(a,b,c,K.adActionInterstitialRenderer,e,t,k);if(K instanceof OV){p=K;break a}K=K(n);v.push(K.Ls);x=[].concat(g.u(K.du),g.u(x));y=[].concat(g.u(K.Yq),g.u(y));K.zi&&(N=[K.zi].concat(g.u(N)))}else if(K.instreamSurveyAdRenderer){if(void 0===p){p=new OV("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:K.instreamSurveyAdRenderer});break a}K=VNa(a,b,c,e,K.instreamSurveyAdRenderer,I,k,p);if(K instanceof OV){p=K;break a}K=K(n);v.push(K.Ls);K.zi&&N.push(K.zi);x=[].concat(g.u(K.du),g.u(x));y=[].concat(g.u(K.Yq),g.u(y));z=[].concat(g.u(K.RA),g.u(z));E=[].concat(g.u(K.QA),g.u(E));J=[I].concat(g.u(J))}else if(K.surveyTextInterstitialRenderer){K=WNa(a,b,c,e,K.surveyTextInterstitialRenderer,I,k);if(K instanceof OV){p=K;break a}K=K(n);v.push(K.Ls);K.zi&&N.push(K.zi);y=[].concat(g.u(K.Yq),
g.u(y))}else{p=new OV("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={k0:v,Wc:x,Xc:z,md:E,Tc:y,jx:J,Yi:N}}}p instanceof OV?n=p:(z=n.slotId,q=p.k0,t=p.Wc,v=p.Tc,x=p.Xc,y=p.jx,n=k(n),z=zw(b.fb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),E={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Za:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",vc:new Map,Md:[new kW(b.j,z)],Wc:t,Tc:v,Xc:x,md:[],Za:"core",Da:new gU([new aV(q)].concat(g.u(y))),
Dc:n(E)},Yi:p.Yi});return n}};
iOa=function(a,b,c,d,e,f,k){if(!qNa(c))return new OV("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=cW(c);if(0>=l)return new OV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new $U({current:null}),n=tNa(a,b,c,m,d,f,k);return hOa(a,d,f,l,e,function(p,q){var t=p.slotId,v=dW(c);p=k(p);t=zw(b.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Za:"core"},y=n(t,
q);W(y.Da,"metadata_type_fulfilled_layout")||S("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new HU(d),new rV(l),new tV(v),new uV(!0),m,new WU("LAYOUT_TYPE_SURVEY")];return{aX:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",vc:new Map,Md:[new kW(b.j,t)],Wc:[new gW(b.j,q.layoutId)],Tc:[],Xc:[new hW(b.j,q.layoutId)],md:[],Za:"core",Da:new gU(v),Dc:p(x)},wW:y}})};
jOa=function(a){if(!eNa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&HF(b)?!0:(S("Invalid Sandwich with notify"),!1):!1};
kOa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?HF(a)?!0:(S("Invalid LASR with notify"),!1):!1};
sW=function(a,b,c,d,e,f,k){this.Db=a;this.vb=b;this.Na=c;this.Fb=d;this.j=e;this.Sh=f;this.loadPolicy=void 0===k?1:k};
Qpa=function(a,b,c,d,e,f,k){var l=[];if(0===b.length&&0===c.length)return l;b=b.filter($V);for(var m=c.filter($V),n=new Map,p=new Map,q=g.r(b),t=q.next();!t.done;t=q.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);q=g.r(b);for(t=q.next();!t.done;t=q.next()){t=t.value;var v=lOa(a,n,t,d,e,f,k,p);v instanceof OV?S(v,void 0,void 0,{renderer:t.renderer,config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):l.push.apply(l,
g.u(v))}e=mOa(a,m,d,k,p,n);l.push.apply(l,g.u(e));if(null===a.j||f&&!k.UM){var x,y,z;a=k.fg&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var E,J,I,N;S("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(E=b[0])?void 0:null==(J=E.config)?void 0:
null==(I=J.adPlacementConfig)?void 0:I.kind,renderer:null==(N=b[0])?void 0:N.renderer})}return l}x=c.filter($V);l.push.apply(l,g.u(mNa(n,x,a.Db.get(),a.j,d,a.Na.get())));if(!l.length){var Z,K,ra,za;S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(Z=b[0])?void 0:null==(K=Z.config)?void 0:null==(ra=K.adPlacementConfig)?void 0:ra.kind,renderer:null==(za=b[0])?void 0:za.renderer})}return l};
mOa=function(a,b,c,d,e,f){function k(t){return mU(a.Fb.get(),t)}
var l=[];b=g.r(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&jOa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,aW(f,n,m.config.adPlacementConfig.kind),m=ZNa(q.layout.layoutId,a.Db.get(),a.vb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,k,e,a.loadPolicy,a.Na.get()),m instanceof OV?S(m):l.push.apply(l,g.u(m))):q&&kOa(q)&&(aW(f,n,m.config.adPlacementConfig.kind),m=eOa(q.adStart.adMessageRenderer.layout.layoutId,
a.Db.get(),a.vb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,c,d,k,e,a.loadPolicy,a.Na.get()),m instanceof OV?S(m):l.push.apply(l,g.u(m)))}return l};
lOa=function(a,b,c,d,e,f,k,l){function m(x){return mU(a.Fb.get(),x)}
var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,v=k.UM&&"AD_PLACEMENT_KIND_START"===q;v=f&&!v;if(null!=n.adsEngagementPanelRenderer)return bW(b,c.elementId,q,n.adsEngagementPanelRenderer.adVideoId,p,t,function(x,y,z){var E=a.vb.get(),J=n.adsEngagementPanelRenderer,I=mU(a.Fb.get(),x);return tW(E,x.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new zU(J),y,z,J.impressionPings,I,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[];
if(null!=n.actionCompanionAdRenderer)bW(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.vb.get(),J=n.actionCompanionAdRenderer,I=mU(a.Fb.get(),x);return tW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new yU(J),y,z,J.impressionPings,I,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)bW(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.vb.get(),J=n.imageCompanionAdRenderer,I=mU(a.Fb.get(),x);return tW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new DU(J),y,z,J.impressionPings,I,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)bW(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var E=a.vb.get(),J=n.shoppingCompanionCarouselRenderer,I=mU(a.Fb.get(),x);return tW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new EU(J),y,z,J.impressionPings,I,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else if(n.adBreakServiceRenderer){if(!iNa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return hNa(a.Db.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Sh)return new OV("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");k.fg||S("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(k.fg),clientPlaybackNonce:k.clientPlaybackNonce});
nOa(a.Sh,{adPlacementRenderer:c,contentCpn:d,KM:e})}else{if(n.clientForecastingAdRenderer)return NNa(a.Db.get(),a.vb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return PNa(a.Db.get(),a.vb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&v)return HNa(a.Db.get(),a.vb.get(),c,d,m);if(n.linearAdSequenceRenderer&&!v)return aW(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?gOa(a.Db.get(),a.vb.get(),p,t,n.linearAdSequenceRenderer.linearAds,
d,e,k,m,l,a.loadPolicy,a.Na.get()):new OV("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!v)return aW(b,n,q),aOa(a.Db.get(),a.vb.get(),p,t,n.instreamVideoAdRenderer,d,e,k,m,l,a.loadPolicy,a.Na.get());if(n.instreamSurveyAdRenderer)return iOa(a.Db.get(),a.vb.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return eNa(n.sandwichedLinearAdRenderer)?gOa(a.Db.get(),a.vb.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,
n.sandwichedLinearAdRenderer.linearAd],d,e,k,m,l,a.loadPolicy,a.Na.get()):new OV("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return LNa(a.Db.get(),a.vb.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]};
uW=function(a){g.G.call(this);this.j=a};
qw=function(a,b,c,d){a.j().Xi(b,d);c=c();a=a.j();vW(a.Wb,"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;NF(d.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);NF(d.Wb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.ib(c.slotId))throw new OV("Slot ID was empty");if(DV(e,c))throw new OV("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Rb.triggerType});if(!e.Be.xn.has(c.slotType))throw new OV("No fulfillment adapter factory registered for slot of type: "+
c.slotType);if(!e.Be.uo.has(c.slotType))throw new OV("No SlotAdapterFactory registered for slot of type: "+c.slotType);VV(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Rb?[c.Rb]:[]);VV(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.qc);VV(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.wc);var f=d.j,k=c.slotType+"_"+c.slotPhysicalPosition,l=QV(f,k);if(DV(f,c))throw new OV("Duplicate slots not supported");l.set(c.slotId,new $Ma(c));f.j.set(k,l)}catch(za){S(za,c,void 0,void 0,za.Nq);break a}DV(d.j,c).J=!0;try{var m=d.j,n=DV(m,
c),p=c.Rb,q=m.Be.gj.get(p.triggerType);q&&(q.Oj("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ra.set(p.triggerId,q));for(var t=g.r(c.qc),v=t.next();!v.done;v=t.next()){var x=v.value,y=m.Be.gj.get(x.triggerType);y&&(y.Oj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Z.set(x.triggerId,y))}for(var z=g.r(c.wc),E=z.next();!E.done;E=z.next()){var J=E.value,I=m.Be.gj.get(J.triggerType);I&&(I.Oj("TRIGGER_CATEGORY_SLOT_EXPIRATION",J,c,null),n.Y.set(J.triggerId,I))}var N=m.Be.xn.get(c.slotType).get().Te(m.B,
c);n.K=N;var Z=m.Be.uo.get(c.slotType).get().Te(m.D,c);Z.init();n.u=Z}catch(za){S(za,c,void 0,void 0,za.Nq);AV(d,c,!0);break a}NF(d.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.xi(c);for(var K=g.r(d.qe),ra=K.next();!ra.done;ra=K.next())ra.value.xi(c);IV(d,c)}};
wW=function(a,b,c,d){this.qq=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
xW=function(a,b,c,d){g.G.call(this);var e=this;this.Sb=a;this.Db=b;this.lc=c;this.j=new Map;d.get().addListener(this);g.pf(this,function(){d.get().removeListener(e)})};
Npa=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 wW?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):S("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Xp(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.lc.get().addCueRange(d,c.start,c.end,!1,a)};
yW=function(){g.G.apply(this,arguments);this.xj=!0;this.bj=new Map;this.j=new Map};
oOa=function(a,b){a=g.r(a.bj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
pOa=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}S("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ib(b)),layoutId:b})};
rW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
oW=function(a,b,c){this.wf=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
fW=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
iW=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
zW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
AW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
kW=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
jW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
qOa=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)};
yNa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
gW=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
hW=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
nW=function(a,b){this.durationMs=45E3;this.wf=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
rOa=function(a){return[new UU(a.Qv),new MU(a.instreamAdPlayerOverlayRenderer),new YU(a.fQ),new HU(a.adPlacementConfig),new cV(a.videoLengthSeconds),new qV(a.uH)]};
sOa=function(a,b,c,d,e,f){a=c.NG?c.NG:zw(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var k={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Za:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",vc:new Map,Md:[new fW(function(l){return Aw(f,l)},c.Qv)],
Wc:[],Tc:[],Xc:[],md:[],Za:b,Da:d,Dc:e(k),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
BW=function(a){var b=this;this.fb=a;this.j=function(c){return Aw(b.fb.get(),c)}};
tOa=function(a,b,c,d,e,f){c=new gU([new NU(c),new HU(d)]);b=zw(a.fb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Za:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",vc:new Map,Md:[new fW(function(k){return Aw(a.fb.get(),k)},e)],
Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:c,Dc:f(d),adLayoutLoggingData:void 0}};
CW=function(a,b,c,d,e){return sOa(b,c,d,new gU(rOa(d)),e,a.fb.get())};
uOa=function(a,b,c,d,e){var f=rOa(d);f.push(new FU(d.KU));f.push(new GU(d.MU));return sOa(b,c,d,new gU(f),e,a.fb.get())};
tW=function(a,b,c,d,e,f,k,l,m){b=zw(a.fb.get(),c,b);var n={layoutId:b,layoutType:c,Za:"core"},p=new Map;k&&p.set("impression",k);return{layoutId:b,layoutType:c,vc:p,Md:[new kW(a.j,b),new zW(a.j,e)],Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([d,new HU(f),new UU(e)]),Dc:l(n),adLayoutLoggingData:m}};
mW=function(a,b,c){var d=[];d.push(new AW(a.j,c));b&&d.push(b);return d};
lW=function(a,b,c,d,e,f,k){var l={layoutId:b,layoutType:c,Za:"core"};return{layoutId:b,layoutType:c,vc:new Map,Md:k,Wc:[new rW(a.j,b)],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new CU(d),new HU(e)]),Dc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
eW=function(a,b,c,d,e,f,k,l){var m={layoutId:b,layoutType:f,Za:"core"};return{layoutId:b,layoutType:f,vc:new Map,Md:[new fW(a.j,c)],Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new HU(d)].concat(g.u(k))),Dc:e(m),adLayoutLoggingData:l}};
QNa=function(a,b,c,d,e,f,k,l,m,n){a=pW(a,b,c,d,e,f,k,l,m,n);return{Ls:{layoutId:a.layoutId,layoutType:a.layoutType,vc:a.vc,Md:[],Wc:[],Tc:[],Xc:[],md:[],Za:a.Za,Da:new gU(a.jx),Dc:a.Dc,adLayoutLoggingData:a.adLayoutLoggingData},du:a.Wc,Yq:a.Tc,RA:a.Xc,QA:a.md,zi:a.zi}};
UNa=function(a,b,c,d,e,f,k,l){b=pW(a,b,c,d,e,new Map,f,function(m){return k(m,l)});
a=new hW(a.j,b.kI);c=new VU(b.kI);d=new WU("LAYOUT_TYPE_SURVEY");return{Ls:{layoutId:b.layoutId,layoutType:b.layoutType,vc:b.vc,Md:[],Wc:[],Tc:[],Xc:[],md:[],Za:b.Za,Da:new gU([].concat(g.u(b.jx),[c,d])),Dc:b.Dc,adLayoutLoggingData:b.adLayoutLoggingData},du:b.Wc,Yq:b.Tc,RA:[].concat(g.u(b.Xc),[a]),QA:b.md,zi:b.zi}};
pW=function(a,b,c,d,e,f,k,l,m,n){b=zw(a.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Za:"adapter"};l=l(b);var q=W(l.Da,"metadata_type_fulfilled_layout");q||S("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new HU(c),new rV(d),new tV(e)];n&&c.push(new hV(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",vc:f,Md:[],Wc:[new gW(a.j,q)],Tc:[],Xc:[],md:[],Za:"adapter",
jx:c,Dc:k(p),adLayoutLoggingData:m,zi:l,kI:q}};
cOa=function(a,b,c,d,e,f,k,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Za:b};d=[new HU(d),new IU(l),new JU(c.externalVideoId),new LU(k),new MU(c.playerOverlay.instreamAdPlayerOverlayRenderer),new tV({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new dV(e),new ZU({current:null}),new cV(f)];(e=c.playerUnderlay)&&d.push(new NU(e));e=yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:zw(a.fb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new VU(f));d.push(new XU(e));d.push(new hV(l.j));c.adNextParams&&d.push(new AU(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new OU(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new BU(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new sV(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new eV(c.sodarExtensionData));n&&d.push(new pV(n));d.push(new xV(SE(c.pings)));return{layoutId:p,
layoutType:"LAYOUT_TYPE_MEDIA",vc:TE(c.pings),Md:[new kW(a.j,p)],Wc:c.skipOffsetMilliseconds?[new gW(a.j,f)]:[],Tc:[new gW(a.j,f)],Xc:[],md:[],Za:b,Da:new gU(d),Dc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
JNa=function(a,b,c,d,e,f,k,l){d.every(function(n){return GF(n,[],["LAYOUT_TYPE_MEDIA"])})||S("Unexpect subLayout type for DAI composite layout");
b=zw(a.fb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Za:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",vc:new Map,Md:[new iW(a.j)],Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new fV(c),new gV(l),new aV(d),new HU(e),new lV(f),new iV({})]),Dc:k(m)}};
ENa=function(a){return null!=a};
DW=function(a,b,c){this.qq=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
EW=function(a,b,c){this.wf=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
FW=function(a,b){this.wf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
vOa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
GW=function(a,b,c){this.qq=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
HW=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
IW=function(a,b){this.Kh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
JW=function(a,b){this.Kh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
KW=function(a,b){this.Kh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
LW=function(a,b){this.Kh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
MW=function(a,b){this.Kh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
fNa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={ym:new Xp(-0x8000000000000,-0x8000000000000),QC:d},null!=c&&(d.vu=new Xp(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={ym:new Xp(0x7ffffffffffff,0x8000000000000),QC:d},null!=c&&(d.vu=new Xp(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||S("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||S("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 OV("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={ym:new Xp(a,e),QC:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.vu=new Xp(a,e)}return d;default:return new OV("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
NW=function(a,b){var c=this;this.fb=a;this.vb=b;this.j=function(d){return Aw(c.fb.get(),d)}};
gNa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var k=yw(a.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.vu&&d.vu.start!==d.ym.start&&l.push(new wW(a.j,c,new Xp(d.vu.start,d.ym.start),!1));l.push(new wW(a.j,c,new Xp(d.ym.start,d.ym.end),d.QC));d={getAdBreakUrl:b.getAdBreakUrl,yQ:d.ym.start,xQ:d.ym.end};b=new LW(a.j,k);f=[new nV(d)].concat(g.u(f));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Rb:b,qc:l,wc:[new jW(a.j,c),new JW(a.j,k),new KW(a.j,k)],Za:"core",Da:new gU(f),
adSlotLoggingData:e}};
xOa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(wOa(a,b,e.value));return d};
wOa=function(a,b,c){return null!=c.Kh&&c.Kh===a?c.clone(b):c};
sNa=function(a,b,c,d,e){return yOa(a,b,c,d,e)};
RNa=function(a,b,c,d){var e=yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER");return yOa(a,e,b,c,d)};
yOa=function(a,b,c,d,e){var f=new FW(a.j,c),k=[new IW(a.j,b)];a=[new JW(a.j,b),new jW(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rb:f,qc:k,wc:a,Za:"core",Da:new gU([new mV(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",Rb:f,qc:k,wc:a},c))]),adSlotLoggingData:void 0}};
hOa=function(a,b,c,d,e,f){var k=yw(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),l=yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=zw(a.fb.get(),"LAYOUT_TYPE_SURVEY",l);b=OW(a,b,c,d);d=[new IW(a.j,k)];a=[new JW(a.j,k),new jW(a.j,c),new rW(a.j,m)];if(b instanceof OV)return b;f=f({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Za:"core",Rb:b,qc:d,wc:a},{slotId:l,layoutId:m});l=f.wW;return[{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Rb:b,qc:d,wc:a,Za:"core",Da:new gU([new mV(f.aX)]),
adSlotLoggingData:e},l]};
zOa=function(a,b,c,d,e){e=e?e:yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new FW(a.j,c);var f=[new IW(a.j,e)];a=[new jW(a.j,b),new JW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rb:c,qc:f,wc:a,Za:"core",Da:new gU([new mV(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",Rb:c,qc:f,wc:a}))])}};
AOa=function(a,b,c,d){var e=yw(a.fb.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new FW(a.j,c);var f=[new IW(a.j,e)];a=[new jW(a.j,b),new JW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Rb:c,qc:f,wc:a,Za:"core",Da:new gU([new mV(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Za:"core",Rb:c,qc:f,wc:a}))])}};
ONa=function(a,b,c,d,e,f){b=OW(a,b,c,d);if(b instanceof OV)return b;var k=b instanceof wW?new GW(a.j,c,b.j):null;d=yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER");var l=[new IW(a.j,d)];a=[new jW(a.j,c),new JW(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",Rb:b,qc:l,wc:a},k);return f instanceof FV?new OV(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rb:b,qc:l,wc:a,Za:"core",Da:new gU([new mV(f)]),adSlotLoggingData:e}};
xNa=function(a,b,c,d){var e=yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new FW(a.j,c);var f=[new IW(a.j,e)],k=[new JW(a.j,e),new jW(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",Rb:c,qc:f,wc:k};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rb:c,qc:[new IW(a.j,e)],wc:[new jW(a.j,b),new JW(a.j,e)],Za:"core",Da:new gU([new mV(d(f))])}};
vNa=function(a,b,c,d,e){var f=yw(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new EW(a.j,d,c);d=[new IW(a.j,f)];a=[new jW(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rb:c,qc:d,wc:a,Za:"core",Da:new gU([new mV(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",Rb:c,qc:d,wc:a}))])}};
lNa=function(a,b,c,d,e,f){var k=yw(a.fb.get(),b);return BOa(a,k,b,new FW(a.j,d),c,e,d,f)};
KNa=function(a,b,c,d){var e=yw(a.fb.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new vw(a.j,b);var f=[new IW(a.j,e)];a=[new JW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Rb:b,qc:f,wc:a,Za:"core",Da:new gU([new mV(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Za:"core",Rb:b,qc:f,wc:a}))]),adSlotLoggingData:c}};
kNa=function(a,b,c,d,e,f,k){return BOa(a,c,b,new HW(a.j,c),d,f,e,k)};
FNa=function(a,b,c){var d=yw(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new vOa(a.j),f=[new MW(a.j,d)];a=[new jW(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Rb:e,qc:f,wc:a,Za:"core",Da:new gU([new mV(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Za:"core",Rb:e,qc:f,wc:a})),new iV({})])}};
YNa=function(a,b,c,d,e){b=new oW(a.j,b,"normal");a=COa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Rb:a.Rb,qc:a.qc,wc:a.wc,Za:a.Za});return e instanceof OV?e:{tv:Object.assign({},a,{Da:new gU([new mV(e.layout)]),adSlotLoggingData:d}),Yi:e.Yi}};
$Na=function(a,b,c,d,e,f,k){a=fOa(a,b,c,d);if(a instanceof OV)return a;k=k({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Rb:a.Rb,qc:a.qc,wc:a.wc,Za:a.Za});if(k instanceof OV)return k;b=[new mV(k.layout)];f&&b.push(new vV({}));return{tv:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Rb:a.Rb,qc:a.qc,wc:a.wc,Za:a.Za,Da:new gU(b),adSlotLoggingData:e},Yi:k.Yi}};
COa=function(a,b,c){var d=yw(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new IW(a.j,d)];a=[new JW(a.j,d),new jW(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Rb:b,qc:e,wc:a,Za:"core"}};
fOa=function(a,b,c,d){b=OW(a,b,c,d);return b instanceof OV?b:COa(a,b,c)};
MNa=function(a,b,c,d,e,f){var k=yw(a.fb.get(),"SLOT_TYPE_FORECASTING");b=OW(a,b,c,d);if(b instanceof OV)return b;d=[new IW(a.j,k)];a=[new JW(a.j,k),new jW(a.j,c)];return{slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Rb:b,qc:d,wc:a,Za:"core",Da:new gU([new mV(f({slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Za:"core",Rb:b,qc:d,wc:a}))]),adSlotLoggingData:e}};
DOa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new vw(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=fNa(b,d),a instanceof OV?a:e(a.ym,f);case "AD_PLACEMENT_KIND_END":return new DW(a.j,c,f);default:return new OV("Cannot construct entry trigger",{kind:b.kind})}};
OW=function(a,b,c,d){return DOa(a,b,c,d,function(e,f){return new wW(a.j,c,e,f)})};
BOa=function(a,b,c,d,e,f,k,l){var m=[new MW(a.j,b)];a=[new jW(a.j,e),new JW(a.j,b),new oW(a.j,k,"error")];return{slotId:b,slotType:c,slotPhysicalPosition:1,Rb:d,qc:m,wc:a,Za:"core",Da:new gU([new mV(l({slotId:b,slotType:c,slotPhysicalPosition:1,Za:"core",Rb:d,qc:m,wc:a}))]),adSlotLoggingData:f}};
PW=function(a,b){g.G.call(this);this.Na=a;this.j=b;this.eventCount=0};
NF=function(a,b,c){vW(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
EV=function(a,b,c,d){vW(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
SMa=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"))&&vW(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)};
vW=function(a,b,c,d,e,f,k,l,m,n){try{if(!EOa(a)&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=lU(a.j.get()),q=FOa(a,p,b,c,d,e,f,k,l,m,n);g.Ds("adsClientStateChange",{adsClientEvent:q})}}catch(t){g.Tr(g.Vr(),function(){S(t instanceof Error?t:String(t),f,k,{pacf_message:"exception during pacf logging"})})}};
EOa=function(a){var b=a.Na.get();return!(b.I.V().N("html5_enable_ads_client_monitoring_log_live_infra")||(g.IC(b.I.V())?b.I.V().N("html5_enable_ads_client_monitoring_log_tv"):b.I.V().N("html5_enable_ads_client_monitoring_log_web")))||a.Na.get().I.V().N("html5_disable_client_tmp_logs")};
FOa=function(a,b,c,d,e,f,k,l,m,n,p){c={eventType:c,eventOrder:++a.eventCount};var q={};k&&(q.slotData=jU(b,k));l&&(q.layoutData=IMa(b,l));m&&(q.triggerData=iU(m.trigger,m.category));d&&(q.opportunityData=JMa(b,d,e,f));b={organicPlaybackContext:{contentCpn:rw(a.Qa.get(),1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=rw(a.Qa.get(),1).fg;var t;b.organicPlaybackContext.isMdxPlayback=null==(t=rw(a.Qa.get(),1))?void 0:t.isMdxPlayback;var v;if(a=null==(v=rw(a.Qa.get(),2))?void 0:v.clientPlaybackNonce)b.adVideoPlaybackContext=
{adVideoCpn:a};b&&(q.externalContext=b);c.adClientData=q;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);p&&(c.serializedAdServingData=p.serializedAdServingDataEntry);return c};
QW=function(a,b,c){PW.call(this,a,b);this.Qa=c};
RW=function(){this.j=new Map};
SW=function(a,b,c,d,e){g.G.call(this);this.I=a;this.u=b;this.Fa=c;this.Qa=d;this.Fe=e;this.listeners=[];var f=new fv(this);g.H(this,f);f.T(a,"internalAbandon",this.VH);g.pf(this,function(){g.hv(f)})};
TW=function(a){g.G.call(this);this.I=a;this.j=new Map;this.u=new fv(this);g.H(this,this.u);this.u.T(this.I,g.Lw("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.Mw("ad"),this.onCueRangeExit,this)};
GOa=function(a,b,c,d,e){g.Jw.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
UW=function(a){this.I=a};
VW=function(a){this.I=a};
WW=function(a){var b,c,d;return(null==(b=a.I.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
QMa=function(a){if(g.TC(a.I.V()))return a.I.V().N("html5_enable_vod_lsar_ivar_pacf_unplugged");if(HC(a.I.V())||g.IC(a.I.V()))return!0;S("Composite VOD on legacy path.");return!1};
HOa=function(a){return a.I.V().N("html5_recognize_predict_start_cue_point")};
XW=function(a){return a.I.V().N("html5_enable_common_timer_for_survey_web")};
IOa=function(a){return a.I.V().experiments.jb("enable_desktop_player_underlay")};
JOa=function(a){return a.I.V().experiments.jb("html5_disable_lidar")};
YW=function(a,b){this.Fa=a;this.I=b;this.j=new Map;QE().subscribe("adactiveviewmeasurable",this.Ky,this);QE().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Jy,this);QE().subscribe("adviewableimpression",this.Ly,this);QE().subscribe("adaudioaudible",this.Hy,this);QE().subscribe("adaudiomeasurable",this.Iy,this)};
$W=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?S("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),Jha(Zl(op),c),rwa(QE(),b,{Kx:function(){return d?{currentTime:a.Fa.get().getCurrentTimeSec(2,!1),duration:d,Nc:2===a.Fa.get().getPresentingPlayerType()&&1===ZW(a.Fa.get(),2),Nia:!1,Oia:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}:{}}}))};
aX=function(a,b){a.j.has(b)?(a.j.delete(b),delete QE().j[b]):S("Unexpected unregistration of layout in LidarApi")};
bX=function(a,b,c){this.B=c;this.C=a;this.D=b};
cX=function(a,b,c,d){var e=void 0===e?new bX(function(){var f=a.getVideoData(1);return f?g.BE(f):""},function(){return a.V().pageId},function(f){return a.V().N(f)}):e;
this.I=a;this.u=b;this.Bb=c;this.Qa=d;this.Mq=e;this.mD=null;this.j=new Map;this.Kj=new iF(e);this.B=a.V().experiments.jb("html5_disable_lidar")};
LOa=function(a,b,c,d){d=void 0===d?[]:d;var e=pOa(a.u.get(),c);e?(c=dX(a,KOa(e),e),b.hasOwnProperty("baseUrl")?a.Mq.send(b,c):a.Kj.send(b,c,{},d)):S("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
eX=function(a,b){g.Ds("adsClientStateChange",b)};
fX=function(a,b){a.j.has(b.Nx())?S("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Nx(),b)};
gX=function(a,b){a.j.delete(b.Nx())||S("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
KOa=function(a){var b=W(a.Da,"metadata_type_ad_placement_config");a=W(a.Da,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,QO:a}};
dX=function(a,b,c,d){var e=c?MOa(a):{};c=c?NOa(a,c.layoutId):{};var f=a.I.V().N("enable_macro_substitution_on_html5")?OOa(a):{},k={},l={};d=Object.assign({},dF(a.I,d),zwa(b.adPlacementConfig),(k.SLOT_POS=cF(function(){return(b.QO||0).toString()}),k),c,e,f,(l.FINAL=cF(function(){return"1"}),l.AD_CPN=cF(function(){var m;
return(null==(m=rw(a.Qa.get(),2))?void 0:m.clientPlaybackNonce)||""}),l));
e={};c=g.r(Object.values(POa));for(f=c.next();!f.done;f=c.next())f=f.value,k=d[f],null!=k&&(e[f]=k.toString());return e};
MOa=function(a){var b={},c,d=null==(c=a.mD)?void 0:QOa(c);null!=d&&(b.SURVEY_ELAPSED_MS=cF(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=cF(function(){return Math.round(Date.now()/1E3).toString()});
return b};
NOa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.bG();if(!a)return{};b={};return b.YT_ERROR_CODE=a.DD.toString(),b.ERRORCODE=a.Qz.toString(),b.ERROR_MSG=a.errorMessage,b};
OOa=function(a){var b={},c=a.I.getVideoData(1);b.ASR=cF(function(){var d;return null!=(d=null==c?void 0:c.fk)?d:null});
b.EI=cF(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
hX=function(a,b,c){g.G.call(this);this.I=a;this.Ad=b;this.Na=c;this.listeners=[];this.lH=null;this.ZE=new Map;b=new g.iA(this);g.H(this,b);b.T(a,"videodatachange",this.h_);b.T(a,"serverstitchedvideochange",this.EZ);this.ir=rw(this)};
rw=function(a,b){var c=a.I.getVideoData(b);return c?ROa(a,c,b||a.I.getPresentingPlayerType(!0)):null};
SOa=function(a,b,c){var d=ROa(a,b,c);a.ir=d;a.listeners.forEach(function(e){e.IP(d)})};
ROa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,k=b.Ac,l=b.title,m=b.fh,n=b.Dh,p=b.isMdxPlayback,q=b.ij,t=b.mdxEnvironment,v=b.nm,x=b.xm,y=b.Uq,z=b.videoId||"",E=b.profilePicture||"",J=b.Zj||"";b=b.dn||void 0;k=a.Ad.get().j.get(k)||{layoutId:null,slotId:null};var I=a.I.getVideoData(1),N=I.fg();I=I.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var Z,K,ra=(null==I?void 0:null==(Z=I.playerConfig)?void 0:null==(K=Z.daiConfig)?void 0:K.enableDai)||!1,za,
Pa;Z=(null==I?void 0:null==(za=I.playerConfig)?void 0:null==(Pa=za.daiConfig)?void 0:Pa.enablePreroll)||!1;return Object.assign({},k,{videoId:z,author:d,clientPlaybackNonce:e,playbackDurationMs:c,KM:a,daiEnabled:ra,UM:Z,isListed:f,fg:N,profilePicture:E,title:l,Zj:J,fh:m,Dh:n,dn:b,isMdxPlayback:p,ij:q,mdxEnvironment:t,nm:v,xm:x,Uq:y})};
iX=function(a,b){g.G.call(this);this.I=a;this.Qa=b;this.listeners=[];this.lr=function(){S("Called 'doUnlockPreroll' before it's initialized.")};
b=new fv(this);var c=new g.iA(this);g.H(this,c);g.H(this,b);b.T(a,"progresssync",this.hZ);b.T(a,"presentingplayerstatechange",this.YY);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.ah);b.T(a,"resize",this.xb);c.T(a,g.Lw("appad"),this.Qk)};
jX=function(a,b){var c;b=null!=(c=a.Qa.get().ZE.get(b))?c:null;if(null===b)return S("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a<b?0:a-b};
ZW=function(a,b){return a.I.yb(b)};
TOa=function(a){var b=a.I.Ya().Zh();a=a.I.Ek(!0,!0);return b.height-(a.height+a.top)};
UOa=function(a){a.I.cueVideoByPlayerVars({videoId:"empty_video"},2)};
VOa=function(a,b){var c=a.I.V();wC(c)||"3"!==c.controlsType||a.I.Ya().vz(b)};
kX=function(a,b){g.M(a.I.getRootNode(),b)};
lX=function(a,b){g.Hp(a.I.getRootNode(),b)};
WOa=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=X(function(){return new xw});
g.H(this,this.fb);this.vb=X(function(){return new BW(f.fb)});
g.H(this,this.vb);this.zc=X(function(){return new yW});
g.H(this,this.zc);this.Sb=X(function(){return new uW(a)});
g.H(this,this.Sb);this.Db=X(function(){return new NW(f.fb,f.vb)});
g.H(this,this.Db);this.Ad=X(function(){return new RW});
g.H(this,this.Ad);this.Eb=X(function(){return new ZV(e)});
this.lc=X(function(){return new TW(b)});
g.H(this,this.lc);this.Vc=X(function(){return new UW(b)});
g.H(this,this.Vc);this.Na=X(function(){return new VW(b)});
g.H(this,this.Na);this.Fb=X(function(){return new nU(f.Na)});
g.H(this,this.Fb);this.Dd=X(function(){return new sW(f.Db,f.vb,f.Na,f.Fb,null,null)});
g.H(this,this.Dd);this.Qa=X(function(){return new hX(b,f.Ad,f.Na)});
g.H(this,this.Qa);this.Wb=new QW(this.Na,this.Fb,this.Qa);g.H(this,this.Wb);this.Fa=X(function(){return new iX(b,f.Qa)});
g.H(this,this.Fa);this.Bb=X(function(){return new YW(f.Fa,b)});
g.H(this,this.Bb);this.Pa=X(function(){return new cX(b,f.zc,f.Bb,f.Qa)});
g.H(this,this.Pa);this.Fc=new ww(this.Sb,this.Dd,c,this.Na,a,this.Qa,this.Fa);g.H(this,this.Fc);var k=new SW(b,this.Fc,this.Fa,this.Qa);this.rf=X(function(){return k});
this.Tp=k;this.Ce=new xW(this.Sb,this.Db,this.lc,this.rf);g.H(this,this.Ce);this.Hc=new pw(this.Sb,this.Db,this.Dd,this.Qa,this.Ce,c);g.H(this,this.Hc);this.Be={ls:new Map,xn:new Map,gj:new Map,uo:new Map,Nn:new Map};this.listeners=[];this.Qr={Hc:this.Hc,Kl:null,Pn:null,ph:this.Na.get(),eb:this.Eb.get(),bq:this.Fa.get(),Fc:this.Fc,Ik:this.fb.get(),On:null,Bj:{DG:function(){}},
gi:this.zc.get(),Wk:this.Qa.get()}};
mX=function(){this.listeners=new Set};
nX=function(){};
XOa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&eea(b.siub,b.scs,b.bgub,b.bgp)};
YOa=function(a,b,c,d){this.callback=a;this.slot=b;this.vb=c;this.Fb=d;this.j=null};
ZOa=function(a,b,c,d){a.j&&S("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.Ov?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",k=a.vb.get(),l=a.slot.slotId,m=mU(a.Fb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Za:a.slot.Za,Rb:a.slot.Rb,qc:a.slot.qc,wc:a.slot.wc}),n=zw(k.fb.get(),f,l),p={layoutId:n,layoutType:f,Za:"core"};e={layoutId:n,
layoutType:f,vc:new Map,Md:[new qOa(k.j,l)],Wc:[],Tc:[],Xc:[],md:[],Za:"core",Da:new gU([new oV(e)]),Dc:m(p)};RMa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Di||BV(a.callback,a.slot,new OV(e,void 0,!0))})};
$Oa=function(a){if(null==a.j)a.callback.wC(a.slot);else try{a.j.cancel(),a.j=null,a.callback.wC(a.slot)}catch(b){a.j=null,BV(a.callback,a.slot,new OV(b))}};
oX=function(a,b,c,d,e,f){this.slot=b;this.Re=c;this.He=f;this.j=new YOa(a,b,d,e)};
aPa=function(a){var b;null==(b=a.He)||b.get().Yp(W(a.slot.Da,"metadata_type_cue_point").identifier)};
pX=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Re=c;this.j=new YOa(a,b,d,e)};
qX=function(a,b){this.callback=a;this.slot=b};
rX=function(a,b){return uw(a,b.re,b.slotType)?!0:!1};
sX=function(){};
tX=function(a,b,c,d){this.Re=a;this.vb=b;this.Fb=c;this.He=d};
uX=function(){};
bPa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
vX=function(a,b){return GF(a,b.re,b.Cf)?!0:!1};
wX=function(a){this.j=a};
xX=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Pa=b;this.layoutId=d;this.j=0;this.B=null;this.C=new Set;this.u=Array.from(this.D.get("progress")||[]);this.u.sort(function(f,k){return(f.offsetMilliseconds||0)-(k.offsetMilliseconds||0)});
this.J={adPlacementConfig:c,QO:e}};
yX=function(){return["metadata_type_ad_placement_config"]};
zX=function(a){var b=a.Pa.get();return dX(b,a.J)};
AX=function(a,b){a.C.has(b)||a.xg(b)};
BX=function(a,b,c){for(c=void 0===c?!1:c;a.j<a.u.length;){var d=a.u[a.j];if(d.offsetMilliseconds<=b||c)cPa(a,"progress",[d]),a.j++;else break}};
CX=function(a,b){return a.C.has(b)};
cPa=function(a,b,c){var d,e=a.Pa.get(),f=a.layoutId;a=null!=(d=a.B)?d:void 0;c=void 0===c?[]:c;if(d=pOa(e.u.get(),f))for(b=e.B?{}:e.Bb.get().xg(f,b),f=dX(e,KOa(d),d,a),c=g.r(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Kj.send(d.baseUrl,f,b,d.headers);else S("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
dPa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Pa=d;this.j=e;a=W(this.layout.Da,"metadata_type_ad_placement_config");this.u=new xX(c.vc,this.Pa,a,c.layoutId)};
ePa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];yX().forEach(function(b){a.push(b)});
return{re:a,Cf:["LAYOUT_TYPE_FORECASTING"]}};
XX=function(a,b,c){this.Pa=a;this.j=b;this.Bb=c};
gY=function(a,b,c,d){g.iv.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.j=[]};
iY=function(a,b,c,d,e,f,k){e=W(c.Da,e);a=zX(a);var l=yg(function(){d.Rc(b,c)});
k.push(f(e,a,c.layoutId,{adsClientData:c.Dc},function(){l()}))};
jY=function(a,b,c,d,e,f,k,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.r(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():S("Tried to call engagePingCallback but it is null",k,l)}}else S("Companion AdUxClick received without a layoutId",k,l)};
fPa=function(a,b,c,d,e){ME.call(this,"action-companion",a,b,c,d,e)};
kY=function(a,b,c,d,e,f,k,l){gY.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.xj=!0;this.B=null;this.C=W(c.Da,"metadata_type_linked_player_bytes_layout_id");zV(this.gf(),this);a=W(c.Da,"metadata_type_ad_placement_config");this.D=new xX(c.vc,this.Pa,a,c.layoutId)};
gPa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];yX().forEach(function(b){a.push(b)});
return{re:a,Cf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
lY=function(a,b,c,d,e){gY.call(this,a,b,c,d);a=W(c.Da,"metadata_type_ad_placement_config");this.B=new xX(c.vc,e,a,c.layoutId)};
hPa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];yX().forEach(function(b){a.push(b)});
return{re:a,Cf:["LAYOUT_TYPE_ENDCAP"]}};
mY=function(a,b,c,d,e,f,k,l){gY.call(this,a,b,c,d);this.Fa=e;this.Pa=f;this.D=k;this.C=l;this.B=!1;this.J=W(this.layout.Da,"metadata_type_linked_player_bytes_layout_id")};
iPa=function(){return{re:["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"]}};
nY=function(a,b,c,d,e,f,k,l){return vX(c,iPa())?new mY(a,b,c,d,e,f,k,l):vX(c,hPa())?new lY(a,b,c,d,f):null};
oY=function(a,b,c,d,e){this.Xb=a;this.Fa=b;this.Pa=c;this.u=d;this.j=e};
pY=function(a,b,c,d,e,f){g.G.call(this);this.callback=a;this.ue=b;this.Fa=c;this.Jd=d;this.gf=e;this.Na=f;this.xj=!0;this.MG=!1};
qY=function(a,b,c,d,e,f,k,l,m,n){pY.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=k;this.J=l;this.u=[];this.j=-1;this.C=!1};
rY=function(a,b,c){var d=W(a.Nb().Da,"metadata_type_linked_in_player_layout_id");return d?d:(S("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Td(),a.Nb(),{requestingSlot:b,requestingLayout:c}),null)};
sY=function(a,b,c,d){if(!a.C){var e=a.u[a.j];e?(e.Nb().layoutId!==c.layoutId&&S("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Nb().layoutId}),a.C=!0,e.Pf(e.Nb(),d),JF(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.Jd.get().Lv()):jPa(a)):S("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
jPa=function(a){if(a.j===a.u.length-1)a.j++,tY(a.J,a.layout.layoutId),a.Jd.get().Lv();else{-1===a.j&&a.callback.Rc(a.slot,a.layout);a.j++;var b=a.u[a.j];0<a.j&&a.Jd.get().jJ();b.startRendering(b.Nb())}};
uY=function(a){return!a.Rp.Nc()&&a.state.Nc()};
vY=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
kPa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
lPa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
mPa=function(a,b,c,d){this.Eb=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":kPa(b)?this.u.push(b):S("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":lPa(b)?this.j.push(b):S("Invalid AdVideoProgressMillisecondsCommand");break;default:S("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
xY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v){g.G.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Pa=d;this.Bb=e;this.Fa=f;this.Jd=k;this.df=l;this.Eb=m;this.D=n;this.position=q;this.ra=t;this.Na=v;this.xj=!0;this.ma=!1;this.u="not_rendering";this.K=!1;a=W(this.layout.Da,"metadata_type_ad_placement_config");this.j=new xX(c.vc,this.Pa,a,c.layoutId);var y;a=(null==(y=wY(this))?void 0:y.progressCommands)||[];this.Aa=new mPa(m,a,c.layoutId,function(){return x.An()});
this.Z=yg(function(){x.callback.Rc(x.slot,x.layout)});
this.J=yg(function(){"rendering_stop_requested"!==x.u&&p(x);x.S?x.callback.od(x.slot,x.layout,x.S):S("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
wY=function(a){return W(a.layout.Da,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
zY=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){BX(a.j,1E3*b,c);a.K||BX(a.j,1E3*b,void 0===c?!1:c);var d=a.An();if(d){d/=1E3;if(b>=.25*d||c)AX(a.j,"first_quartile"),yY(a,"unmuted_first_quartile");if(b>=.5*d||c)AX(a.j,"midpoint"),yY(a,"unmuted_midpoint");if(b>=.75*d||c)AX(a.j,"third_quartile"),yY(a,"unmuted_third_quartile");a=a.Aa;b*=1E3;if(c=a.D()){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Eb.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=
a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.Eb.get().executeCommand(c.command,a.layoutId),a.B++;else break}}}};
AY=function(a,b){a.K||a.j.xg(b)};
yY=function(a,b){a.K||AX(a.j,b)};
BY=function(a,b,c){g.iv.call(this);var d=this;this.durationMs=a;this.C=b;this.D=c;this.u=!1;this.B=this.j=0;this.timer=new g.Ei(200);g.H(this,this.timer);this.timer.Ma("tick",function(){d.Tb()})};
DY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x){xY.call(this,a,b,c,d,e,f,k,m,n,p,q,t,v,x);var y=this;this.Vc=l;this.QB=!0;this.Y=this.B=0;XW(this.Na.get())?(this.C=new BY(this.An(),function(z){zY(y,z/1E3);CY(y,z)},function(){zY(y,y.An()/1E3,!0);
CY(y,y.An());y.J()}),g.H(this,this.C)):(this.timer=new g.Ei(200),this.timer.Ma("tick",function(){y.Tb()}),g.H(this,this.timer))};
nPa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(yX()),c=b.next();!c.done;c=b.next())a.push(c.value);return{re:a,Cf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
oPa=function(a){XW(a.Na.get())?a.C.start():(a.Y=Date.now(),CY(a,a.B),a.timer.start())};
QOa=function(a){return XW(a.Na.get())?a.C.j/1E3:a.B/1E3};
CY=function(a,b){b={current:b/1E3,duration:a.An()/1E3};a.Vc.get().Oa("onAdPlaybackProgress",b)};
EY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,J,I){xY.call(this,a,b,c,d,e,m,p,t,v,y,z,E,J,I);var N=this;this.oe=f;this.ue=k;this.Qa=l;this.lc=n;this.Vc=q;this.lf=x;this.adCpn="";this.C=new g.L(function(){N.Fy("load_timeout",new FV("Media layout load timeout.",{},!0))},1E4)};
pPa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(yX()),c=b.next();!c.done;c=b.next())a.push(c.value);return{re:a,Cf:["LAYOUT_TYPE_MEDIA"]}};
FY=function(a,b,c,d,e,f,k){pY.call(this,a,b,c,d,f,k);this.j=e};
rPa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,J){if(vX(d,{re:["metadata_type_sub_layouts"],Cf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var I=W(d.Da,"metadata_type_sub_layouts");a=new qY(a,n,q,v,b,c,d,f,e,J);e=[];for(b={wq:0};b.wq<I.length;b={wq:b.wq},b.wq++){var N=qPa({Rc:a.QZ.bind(a),od:a.SZ.bind(a),jg:a.RZ.bind(a)},c,I[b.wq],k,l,m,n,p,q,t,v,x,y,z,E,function(Z){return function(K){K.Pf(I[Z.wq],"normal")}}(b),b.wq,I.length,J);
if(!N)return;e.push(N)}a.u=e;return a}if(vX(d,{re:[],Cf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=qPa({Rc:a.Rc.bind(a),od:a.od.bind(a),jg:a.jg.bind(a)},c,d,k,l,m,n,p,q,t,v,x,y,z,E,function(){tY(f,d.layoutId)},0,1,J))?new FY(a,n,q,v,c,e,J):c};
qPa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,J){if(vX(c,nPa()))return new DY(a,b,c,d,e,m,p,q,t,v,function(){},y,z,E,J);
if(vX(c,pPa()))return tw(c.Da,"metadata_type_ad_intro")?new EY(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,function(I){q.get().Oa("onAdIntroStateChange",I)},y,z,E,J):new EY(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,function(I){q.get().Lj(I)},y,z,E,J)};
GY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x){this.gf=a;this.j=b;this.Pa=c;this.Bb=d;this.oe=e;this.ue=f;this.Qa=k;this.Fa=l;this.lc=m;this.Jd=n;this.Vc=p;this.df=q;this.Eb=t;this.lf=v;this.Na=x};
HY=function(a,b,c,d,e,f,k,l){g.G.call(this);var m=this;this.Sb=a;this.Db=b;this.Fe=d;this.Fa=e;this.Na=f;this.Pa=k;this.He=l;this.j=null;c.get().addListener(this);g.pf(this,function(){c.get().removeListener(m)});
d.get().addListener(this);g.pf(this,function(){d.get().removeListener(m)})};
nOa=function(a,b){if(a.j)S("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.r(a.Fe.get().tD);for(var c=b.next();!c.done;c=b.next())sPa(a,a.j,c.value)}};
sPa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(1,!1);a.Na.get().I.V().experiments.jb("html5_ssdai_log_ad_transition_info")&&a.Pa.get().Ti("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.durationSecs.toFixed(3));qw(a.Sb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Db.get(),f=WW(a.Na.get());var k=1E3*c.startSecs;k={ym:new Xp(k,k+1E3*c.durationSecs),QC:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Xp(1E3*(c.startSecs-4),1E3*l);else{var m=
Math.max(0,c.startSecs-d-10);f=new Xp(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}k.vu=f;return[gNa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,k,b.adPlacementRenderer.adSlotLoggingData,[new bV(c)])]})};
IY=function(a,b,c,d,e,f,k,l,m){g.G.call(this);this.j=a;this.B=b;this.u=c;this.Sb=d;this.Db=e;this.vb=f;this.Fb=k;this.Na=l;this.Qa=m;this.xj=!0};
tPa=function(a,b,c){return AOa(a.Db.get(),b.contentCpn,b.Qv,function(d){return tOa(a.vb.get(),d.slotId,c,b.adPlacementConfig,b.Qv,mU(a.Fb.get(),d))})};
JY=function(a){var b,c=null==(b=W(a.Da,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(c){b=a.layoutId;var d=W(a.Da,"metadata_type_content_cpn"),e=W(a.Da,"metadata_type_instream_ad_player_overlay_renderer"),f=W(a.Da,"metadata_type_player_underlay_renderer"),k=W(a.Da,"metadata_type_ad_placement_config"),l=W(a.Da,"metadata_type_video_length_seconds");var m=tw(a.Da,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?W(a.Da,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):tw(a.Da,"metadata_type_layout_enter_ms")&&
tw(a.Da,"metadata_type_layout_exit_ms")?(W(a.Da,"metadata_type_layout_exit_ms")-W(a.Da,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Qv:b,contentCpn:d,fQ:c,instreamAdPlayerOverlayRenderer:e,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:k,videoLengthSeconds:l,uH:m,NG:W(a.Da,"metadata_type_linked_in_player_layout_id"),bO:W(a.Da,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
vPa=function(a,b){return uPa(a,b)};
wPa=function(a,b){b=uPa(a,b);if(!b)return null;var c;b.uH=null==(c=W(a.Da,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
uPa=function(a,b){var c,d=null==(c=W(a.Da,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;tw(a.Da,"metadata_ad_video_is_listed")?c=W(a.Da,"metadata_ad_video_is_listed"):b?c=b.isListed:(S("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);tw(a.Da,"metadata_type_ad_info_ad_metadata")?b=W(a.Da,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Zj,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(S("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{KU:b,adPlacementConfig:W(a.Da,"metadata_type_ad_placement_config"),MU:c,contentCpn:W(a.Da,"metadata_type_content_cpn"),NG:W(a.Da,"metadata_type_linked_in_player_layout_id"),bO:W(a.Da,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:W(a.Da,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,uH:void 0,fQ:d,Qv:a.layoutId,videoLengthSeconds:W(a.Da,"metadata_type_video_length_seconds")}};
xPa=function(a,b){this.callback=a;this.slot=b};
KY=function(){};
yPa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
zPa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c;this.u=!1;this.j=0};
APa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
LY=function(a){this.Fa=a};
MY=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
NY=function(a){g.G.call(this);this.qE=a;this.Ob=new Map};
BPa=function(a,b){for(var c=[],d=g.r(a.Ob.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof hW&&f.wf===b&&c.push(e)}c.length?MV(a.qE(),c):S("Survey is submitted but no registered triggers can be activated.")};
OY=function(a,b){NY.call(this,a);var c=this;b.get().addListener(this);g.pf(this,function(){b.get().removeListener(c)})};
PY=function(a){g.G.call(this);this.j=a;this.xj=!0;this.Ob=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.J=new Set;this.u=new Set};
QY=function(a,b){g.G.call(this);var c=this;this.j=a;this.Ob=new Map;b.get().addListener(this);g.pf(this,function(){b.get().removeListener(c)})};
CPa=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 jW){var k=f.trigger.j===b;k===c?e.push(f):d&&k&&(S("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
RY=function(a,b,c,d){g.G.call(this);var e=this;this.u=a;this.lc=b;this.Fa=c;this.Qa=d;this.Ob=new Map;this.j=new Set;c.get().addListener(this);g.pf(this,function(){c.get().removeListener(e)})};
SY=function(a,b,c,d,e,f,k,l,m,n){if(rw(a.Qa.get(),1).clientPlaybackNonce!==m)throw new OV("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ob.set(c.triggerId,{bundle:new MY(b,c,d,e),UA:f});a.lc.get().addCueRange(f,k,l,n,a)};
DPa=function(a,b){a=g.r(a.Ob.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.UA)return c}return""};
TY=function(a){g.G.call(this);this.B=a;this.xj=!0;this.Ob=new Map;this.u=this.j=null};
tY=function(a,b){for(var c=[],d=g.r(a.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof kW){var f;if(f=e.trigger.layoutId===b)f=(f=TMa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&MV(a.B(),c)};
UY=function(a){g.G.call(this);this.j=a;this.xj=!0;this.Ob=new Map};
VY=function(a,b,c){g.G.call(this);this.j=a;this.qm=b;this.fb=c;this.qm.get().addListener(this)};
WY=function(a,b,c,d,e,f){g.G.call(this);this.B=a;this.ze=b;this.Fb=c;this.Qa=d;this.fb=e;this.Na=f;this.j=this.u=null;this.C=!1;this.ze.get().addListener(this)};
Ywa=function(a,b,c,d,e){var f=yw(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Rb:void 0,qc:[],wc:[],Za:"surface",Da:new gU([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",vc:new Map,Md:[],Wc:[],Tc:[],Xc:[],md:[],Za:"surface",Da:new gU(c),Dc:kU(lU(a.Fb.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};JV(a.B(),a.u,a.j);d&&(KV(a.B(),a.u,a.j),a.C=!0,LV(a.B(),a.u,a.j))};
XY=function(a){this.Jq=a};
EPa=function(a,b){if(!a)return{Zm:[],Ov:!0};a.trackingParams&&Axa(qG(),a.trackingParams);if(a.adThrottled)return{Zm:[],Ov:!0};a=a.playerAds;if(!a||!a.length)return{Zm:[],Ov:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{Zm:[],Ov:!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{Zm:a,
Ov:!1}};
YY=function(a){g.G.call(this);this.I=a;this.listeners=[];this.j=new fv(this);g.H(this,this.j);this.j.T(this.I,"aduxclicked",this.onAdUxClicked);this.j.T(this.I,"aduxmouseover",this.IH);this.j.T(this.I,"aduxmouseout",this.HH);this.j.T(this.I,"muteadaccepted",this.DX)};
FPa=function(a,b,c){b=g.Wl(b,function(d){return new Pw(d,c,d.id)});
a.I.Oa("onAdUxUpdate",b)};
ZY=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
$Y=function(a,b,c){g.G.call(this);this.I=a;this.Na=b;this.Pa=c;this.listeners=[];this.B=!1;this.tD=[];this.C=new RF(this,HOa(b.get()));this.u=new SF;this.j=null};
HPa=function(a,b){eX(a.Pa.get(),{cuepointTrigger:{event:GPa(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.durationSecs,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.I.getVideoData(1).clientPlaybackNonce}})};
GPa=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");}};
aZ=function(a){this.I=a};
bZ=function(a){this.I=a};
cZ=function(){this.listeners=[]};
IPa=function(a){this.I=a};
JPa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Fa=d;this.Pa=e;a=W(c.Da,"metadata_type_ad_placement_config");this.j=new xX(c.vc,this.Pa,a,c.layoutId)};
KPa=function(a,b){this.Fa=a;this.Pa=b};
dZ=function(a,b,c,d,e,f,k,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Qa=d;this.He=e;this.Fe=f;this.Fa=k;this.j=l;this.Pa=m;this.D=n;this.driftRecoveryMs=W(this.layout.Da,"metadata_type_drift_recovery_ms")||null};
LPa=function(a){var b=W(a.layout.Da,"metadata_type_layout_enter_ms"),c=W(a.layout.Da,"metadata_type_layout_exit_ms");a=a.Fe.get();b=TF(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
eZ=function(a,b){var c;eX(a.Pa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Qa.get().ir)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Dc.adClientDataEntry},b)})};
fZ=function(a,b,c,d,e,f,k,l,m,n,p){dZ.call(this,a,b,c,d,e,f,k,l,m,n);this.C=p;this.B=this.u=null;a=g.r(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,tw(b.Nb().Da,"metadata_type_survey_overlay")&&(this.B=b.Nb().layoutId)};
NPa=function(a,b){var c=MPa(a,b);a.u={pj:c};c?c.startRendering(c.Nb()):b===a.B&&S("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
MPa=function(a,b){return null==b?null:a.C.find(function(c){return c.Nb().layoutId===b})||null};
OPa=function(a,b,c,d,e,f,k,l,m,n){var p=e-d,q=tw(b.Da,"metadata_type_survey_overlay");if(!p)return k.gy(c,2,f,d,e,a.slotId),n.Ti("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q),null;c=k.Ut(c,2,f,d,e,a.slotId);n.Ti("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q);if(!c)return S("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.j.has(c)&&S("Unexpected remap of timeline playback"),l.j.set(c,
{slotId:a,layoutId:b})):S("Invalid timeline playback ID");d+f>e&&k.Tv(c,e-d);return c};
PPa=function(a,b){var c=W(b.Da,"metadata_type_sodar_extension_data");if(c)try{XOa(0,c)}catch(d){S("Unexpected error when loading Sodar",a,b,{error:d})}};
QPa=function(a,b,c,d,e,f){gZ(a,b,new g.wF(c,new g.aG),d,e,!1,f)};
gZ=function(a,b,c,d,e,f,k){f=void 0===f?!0:f;uY(c)&&vY(e,0,null)&&(!CX(a,"impression")&&k&&k(),AX(a,"impression"));CX(a,"impression")&&(g.yF(c,4)&&!g.yF(c,2)&&a.xg("pause"),0>xF(c,4)&&!(0>xF(c,2))&&a.xg("resume"),g.yF(c,16)&&.5<=e&&a.xg("seek"),f&&g.yF(c,2)&&hZ(a,c.state,b,d,e))};
hZ=function(a,b,c,d,e,f){if(CX(a,"impression")){var k=1>=Math.abs(d-e);iZ(a,b,k?d:e,c,d,f);k&&AX(a,"complete")}};
iZ=function(a,b,c,d,e,f){BX(a,1E3*c);0>=e||0>=c||(null==b?0:g.U(b,16))||(null==b?0:g.U(b,32))||(vY(c,.25*e,d)&&(f&&!CX(a,"first_quartile")&&f("first"),AX(a,"first_quartile")),vY(c,.5*e,d)&&(f&&!CX(a,"midpoint")&&f("second"),AX(a,"midpoint")),vY(c,.75*e,d)&&(f&&!CX(a,"third_quartile")&&f("third"),AX(a,"third_quartile")))};
RPa=function(a,b){CX(a,"impression")&&a.xg(b?"fullscreen":"end_fullscreen")};
SPa=function(a){CX(a,"impression")&&a.xg("clickthrough")};
TPa=function(a){a.xg("active_view_measurable")};
UPa=function(a){CX(a,"impression")&&!CX(a,"seek")&&a.xg("active_view_fully_viewable_audible_half_duration")};
VPa=function(a){CX(a,"impression")&&!CX(a,"seek")&&a.xg("active_view_viewable")};
WPa=function(a){CX(a,"impression")&&!CX(a,"seek")&&a.xg("audio_audible")};
XPa=function(a){CX(a,"impression")&&!CX(a,"seek")&&a.xg("audio_measurable")};
YPa=function(a,b,c,d,e,f,k,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.He=d;this.j=e;this.Fa=f;this.Ad=k;this.Bb=l;this.oe=m;this.Na=n;this.Pa=p;this.Qa=q;this.QB=!0;this.Ac=this.u=null};
ZPa=function(a,b,c){var d;a.Pa.get().Ti("ads_qua","cpn."+W(a.layout.Da,"metadata_type_content_cpn")+";acpn."+(null==(d=rw(a.Qa.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
$Pa=function(a,b){var c;a.Pa.get().Ti("ads_imp","cpn."+W(a.layout.Da,"metadata_type_content_cpn")+";acpn."+(null==(c=rw(a.Qa.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
jZ=function(a){return{enterMs:W(a.Da,"metadata_type_layout_enter_ms"),exitMs:W(a.Da,"metadata_type_layout_exit_ms")}};
kZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v){dZ.call(this,a,b,c,d,e,k,l,m,n,q);this.Ad=f;this.oe=p;this.Bb=t;this.Na=v;this.Ac=this.u=null};
aQa=function(a,b){var c;a.Pa.get().Ti("ads_imp","acpn."+(null==(c=rw(a.Qa.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
bQa=function(a,b,c){var d;a.Pa.get().Ti("ads_qua","cpn."+W(a.layout.Da,"metadata_type_content_cpn")+";acpn."+(null==(d=rw(a.Qa.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
lZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,J){this.gf=a;this.u=b;this.Qa=c;this.He=d;this.Fa=e;this.Pa=f;this.Ad=k;this.Fe=l;this.Bb=m;this.oe=n;this.ue=p;this.lc=q;this.Jd=t;this.Vc=v;this.df=x;this.Eb=y;this.lf=z;this.Na=E;this.j=J};
mZ=function(a){g.G.call(this);this.j=a;this.Ob=new Map};
nZ=function(a,b){for(var c=[],d=g.r(a.Ob.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&MV(a.j(),c)};
oZ=function(a,b){g.G.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.pf(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().ir)?void 0:d.slotId)||null};
cQa=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};
pZ=function(a){this.I=a};
dQa=function(a,b,c,d,e){ME.call(this,"image-companion",a,b,c,d,e)};
qZ=function(a,b,c,d,e,f,k,l){gY.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.xj=!0;this.B=null;this.C=W(c.Da,"metadata_type_linked_player_bytes_layout_id");zV(this.gf(),this);a=W(c.Da,"metadata_type_ad_placement_config");this.D=new xX(c.vc,this.Pa,a,c.layoutId)};
eQa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];yX().forEach(function(b){a.push(b)});
return{re:a,Cf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
fQa=function(a,b,c,d,e){ME.call(this,"shopping-companion",a,b,c,d,e)};
rZ=function(a,b,c,d,e,f,k,l){gY.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.xj=!0;this.B=null;this.C=W(c.Da,"metadata_type_linked_player_bytes_layout_id");zV(this.gf(),this);a=W(c.Da,"metadata_type_ad_placement_config");this.D=new xX(c.vc,this.Pa,a,c.layoutId)};
gQa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];yX().forEach(function(b){a.push(b)});
return{re:a,Cf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
hQa=function(a,b,c,d,e){ME.call(this,"ads-engagement-panel",a,b,c,d,e)};
sZ=function(a,b,c,d,e,f,k,l){gY.call(this,a,b,c,d);this.Pa=e;this.gf=f;this.J=l;this.xj=!0;this.B=null;this.C=W(c.Da,"metadata_type_linked_player_bytes_layout_id");zV(this.gf(),this);a=W(c.Da,"metadata_type_ad_placement_config");this.D=new xX(c.vc,this.Pa,a,c.layoutId)};
iQa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];yX().forEach(function(b){a.push(b)});
return{re:a,Cf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
jQa=function(a,b,c,d,e){this.Xb=a;this.Pa=b;this.gf=c;this.j=d;this.Bb=e};
tZ=function(a,b,c){ME.call(this,"player-underlay",a,{},b,c);this.j=c};
uZ=function(a,b,c,d){gY.call(this,a,b,c,d)};
kQa=function(a){this.Xb=a};
vZ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;ME.call(this,"survey-interstitial",a,b,c,d);this.Gh=e;this.dJ=f};
wZ=function(a,b,c,d,e){gY.call(this,c,a,b,d);this.Pa=e;a=W(b.Da,"metadata_type_ad_placement_config");this.B=new xX(b.vc,e,a,b.layoutId)};
xZ=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
zZ=function(a,b,c){c=void 0===c?yZ:c;c.width<yZ.width&&(c=yZ);if(a.width<c.width||a.height<c.height)return{DD:3,Qz:501,errorMessage:"ad("+xZ(c)+") larger than container("+xZ(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{DD:3,Qz:501,errorMessage:"ad("+xZ(c)+") to container("+xZ(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{DD:3,Qz:501,errorMessage:"ad("+xZ(c)+") covers container("+xZ(a)+") center."}};
lQa=function(a,b){var c=W(a.Da,"metadata_type_ad_placement_config");return new xX(a.vc,b,c,a.layoutId)};
AZ=function(a){return W(a.Da,"metadata_type_invideo_overlay_ad_renderer")};
BZ=function(a,b,c,d){ME.call(this,"invideo-overlay",a,b,c,d);this.j=d};
CZ=function(a,b,c,d,e,f,k,l,m,n,p,q){gY.call(this,f,a,b,e);this.Pa=c;this.B=k;this.Fa=l;this.Eb=m;this.Na=n;this.D=p;this.C=q;this.K=lQa(b,c)};
mQa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];yX().forEach(function(b){a.push(b)});
return{re:a,Cf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
DZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t){gY.call(this,f,a,b,e);this.Pa=c;this.B=k;this.K=l;this.Fa=m;this.Eb=n;this.Na=p;this.D=q;this.C=t;this.S=lQa(b,c)};
nQa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(yX()),c=b.next();!c.done;c=b.next())a.push(c.value);return{re:a,Cf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
EZ=function(a){this.Fa=a;this.j=!1};
FZ=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;ME.call(this,"survey",a,{},b,c);this.Gh=d;this.Sj=e};
GZ=function(a,b,c,d,e,f,k){gY.call(this,c,a,b,d);this.B=e;this.Fa=f;this.Na=k};
oQa=function(a,b,c,d,e,f,k,l,m,n){this.Xb=a;this.Fa=b;this.Pa=c;this.C=d;this.Bb=e;this.u=f;this.B=k;this.Eb=l;this.Na=m;this.j=n};
HZ=function(a){g.G.call(this);this.B=a;this.xj=!0;this.Ob=new Map;this.j=new Map;this.u=new Map};
pQa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
qQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=X(function(){return new xw});
g.H(this,this.fb);this.vb=X(function(){return new BW(f.fb)});
g.H(this,this.vb);this.zc=X(function(){return new yW});
g.H(this,this.zc);this.Sb=X(function(){return new uW(a)});
g.H(this,this.Sb);this.Db=X(function(){return new NW(f.fb,f.vb)});
g.H(this,this.Db);this.Ad=X(function(){return new RW});
g.H(this,this.Ad);this.df=X(function(){return new NE(b.V())});
g.H(this,this.df);this.Xb=X(function(){return new YY(b)});
g.H(this,this.Xb);this.Eb=X(function(){return new ZV(e)});
g.H(this,this.Eb);this.Jd=X(function(){return new WF(b)});
g.H(this,this.Jd);this.lc=X(function(){return new TW(b)});
g.H(this,this.lc);this.ue=X(function(){return new aZ(b)});
g.H(this,this.ue);this.Vc=X(function(){return new UW(b)});
g.H(this,this.Vc);this.Na=X(function(){return new VW(b)});
g.H(this,this.Na);this.Re=X(function(){return new XY(d)});
g.H(this,this.Re);this.Fb=X(function(){return new nU(f.Na)});
g.H(this,this.Fb);this.Dd=X(function(){return new sW(f.Db,f.vb,f.Na,f.Fb,"SLOT_TYPE_ABOVE_FEED",f.Sh)});
g.H(this,this.Dd);this.lf=X(function(){return new bZ(b)});
g.H(this,this.lf);this.ze=X(function(){return new cZ});
g.H(this,this.ze);this.qm=X(function(){return new mX});
g.H(this,this.qm);this.Qa=X(function(){return new hX(b,f.Ad,f.Na)});
g.H(this,this.Qa);this.Wb=new QW(this.Na,this.Fb,this.Qa);g.H(this,this.Wb);this.Fe=X(function(){return new $Y(b,f.Na,f.Pa)});
g.H(this,this.Fe);this.He=X(function(){return new pZ(b)});
g.H(this,this.He);this.Fa=X(function(){return new iX(b,f.Qa)});
g.H(this,this.Fa);this.oe=X(function(){return new nX});
this.Bb=X(function(){return new YW(f.Fa,b)});
g.H(this,this.Bb);this.Pa=X(function(){return new cX(b,f.zc,f.Bb,f.Qa)});
g.H(this,this.Pa);this.Jg=new IY(JY,IZ,function(l,m,n,p){return CW(f.vb.get(),l,m,n,p)},this.Sb,this.Db,this.vb,this.Fb,this.Na,this.Qa);
g.H(this,this.Jg);this.Fc=new ww(this.Sb,this.Dd,c,this.Na,a,this.Qa,this.Fa);g.H(this,this.Fc);var k=new SW(b,this.Fc,this.Fa,this.Qa,this.Fe);this.rf=X(function(){return k});
this.Tp=k;this.Sh=new HY(this.Sb,this.Db,this.rf,this.Fe,this.Fa,this.Na,this.Pa,this.He);g.H(this,this.Sh);this.Ce=new xW(this.Sb,this.Db,this.lc,this.rf);g.H(this,this.Ce);this.Hc=new pw(this.Sb,this.Db,this.Dd,this.Qa,this.Ce,c);g.H(this,this.Hc);this.Dg=X(function(){return new tX(f.Re,f.vb,f.Fb,f.He)});
g.H(this,this.Dg);this.xd=X(function(){return new uX});
g.H(this,this.xd);this.Se=new OY(a,this.Xb);g.H(this,this.Se);this.wb=new PY(a);g.H(this,this.wb);this.Xq=new mZ(a);g.H(this,this.Xq);this.hf=new QY(a,this.rf);g.H(this,this.hf);this.Ue=new RY(a,this.lc,this.Fa,this.Qa);g.H(this,this.Ue);this.Sr=new oZ(a,this.Qa);g.H(this,this.Sr);this.Uc=new TY(a);g.H(this,this.Uc);this.Hg=new UY(a);g.H(this,this.Hg);this.Ps=new HZ(a);g.H(this,this.Ps);this.rd=X(function(){return new KY});
g.H(this,this.rd);this.Kg=X(function(){return new LY(f.Fa)});
g.H(this,this.Kg);this.cM=X(function(){return new jQa(f.Xb,f.Pa,a,f.zc,f.Bb)});
g.H(this,this.cM);this.Cg=X(function(){return new wX(f.Hc)});
g.H(this,this.Cg);this.Eg=X(function(){return new XX(f.Pa,f.Uc,f.Bb)});
g.H(this,this.Eg);this.Ig=X(function(){return new lZ(a,f.Uc,f.Qa,f.He,f.Fa,f.Pa,f.Ad,f.Fe,f.Bb,f.oe,f.ue,f.lc,f.Jd,f.Vc,f.df,f.Eb,f.lf,f.Na,f.zc)});
g.H(this,this.Ig);this.eQ=X(function(){return new KPa(f.Fa,f.Pa)});
g.H(this,this.eQ);this.Jk=X(function(){return new oQa(f.Xb,f.Fa,f.Pa,f.zc,f.Bb,f.Xq,f.Ps,f.Eb,f.Na,c)});
g.H(this,this.Jk);this.ER=X(function(){return new kQa(f.Xb)});
g.H(this,this.ER);this.XE=new VY(a,this.qm,this.fb);g.H(this,this.XE);this.Xk=new WY(a,this.ze,this.Fb,this.Qa,this.fb,this.Na);g.H(this,this.Xk);this.Be={ls:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Sh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Fc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ce]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Dg],["SLOT_TYPE_ABOVE_FEED",this.xd],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.xd],["SLOT_TYPE_PLAYER_UNDERLAY",this.xd],["SLOT_TYPE_PLAYBACK_TRACKING",this.xd]]),gj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Se],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Se],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.wb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Xq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ue],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ue],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",
this.Ue],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Sr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Sr],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ps]]),uo:new Map([["SLOT_TYPE_ABOVE_FEED",this.rd],["SLOT_TYPE_AD_BREAK_REQUEST",this.rd],["SLOT_TYPE_FORECASTING",
this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.Kg],["SLOT_TYPE_PLAYER_UNDERLAY",this.rd],["SLOT_TYPE_PLAYBACK_TRACKING",this.rd]]),Nn:new Map([["SLOT_TYPE_ABOVE_FEED",this.cM],["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.Eg],["SLOT_TYPE_PLAYER_BYTES",this.Ig],["SLOT_TYPE_PLAYBACK_TRACKING",this.eQ],["SLOT_TYPE_IN_PLAYER",this.Jk],["SLOT_TYPE_PLAYER_UNDERLAY",this.ER]])};this.listeners=[this.zc.get()];this.Qr={Hc:this.Hc,Kl:this.Uc,Pn:this.ze.get(),
ph:this.Na.get(),eb:this.Eb.get(),bq:this.Fa.get(),Fc:this.Fc,Ik:this.fb.get(),On:this.qm.get(),Bj:this.Se,gi:this.zc.get(),Wk:this.Qa.get()}};
rQa=function(a,b,c,d,e,f,k,l,m,n){this.Xb=a;this.Fa=b;this.Pa=c;this.C=d;this.Bb=e;this.u=f;this.B=k;this.Eb=l;this.Na=m;this.j=n};
sQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=X(function(){return new xw});
g.H(this,this.fb);this.vb=X(function(){return new BW(f.fb)});
g.H(this,this.vb);this.zc=X(function(){return new yW});
g.H(this,this.zc);this.Sb=X(function(){return new uW(a)});
g.H(this,this.Sb);this.Db=X(function(){return new NW(f.fb,f.vb)});
g.H(this,this.Db);this.Ad=X(function(){return new RW});
g.H(this,this.Ad);this.df=X(function(){return new NE(b.V())});
g.H(this,this.df);this.Xb=X(function(){return new YY(b)});
g.H(this,this.Xb);this.Eb=X(function(){return new ZV(e)});
g.H(this,this.Eb);this.Jd=X(function(){return new WF(b)});
g.H(this,this.Jd);this.lc=X(function(){return new TW(b)});
g.H(this,this.lc);this.ue=X(function(){return new aZ(b)});
g.H(this,this.ue);this.Vc=X(function(){return new UW(b)});
g.H(this,this.Vc);this.Na=X(function(){return new VW(b)});
g.H(this,this.Na);this.Re=X(function(){return new XY(d)});
g.H(this,this.Re);this.Fb=X(function(){return new nU(f.Na)});
g.H(this,this.Fb);this.Dd=X(function(){return new sW(f.Db,f.vb,f.Na,f.Fb,null,f.Sh)});
g.H(this,this.Dd);this.lf=X(function(){return new bZ(b)});
g.H(this,this.lf);this.ze=X(function(){return new cZ});
g.H(this,this.ze);this.qm=X(function(){return new mX});
g.H(this,this.qm);this.Qa=X(function(){return new hX(b,f.Ad,f.Na)});
g.H(this,this.Qa);this.Wb=new QW(this.Na,this.Fb,this.Qa);g.H(this,this.Wb);this.Fe=X(function(){return new $Y(b,f.Na,f.Pa)});
this.Fa=X(function(){return new iX(b,f.Qa)});
g.H(this,this.Fa);this.Bb=X(function(){return new YW(f.Fa,b)});
g.H(this,this.Bb);this.Pa=X(function(){return new cX(b,f.zc,f.Bb,f.Qa)});
g.H(this,this.Pa);this.oe=X(function(){return new nX});
g.H(this,this.oe);this.Jg=new IY(JY,IZ,function(l,m,n,p){return CW(f.vb.get(),l,m,n,p)},this.Sb,this.Db,this.vb,this.Fb,this.Na,this.Qa);
g.H(this,this.Jg);this.Fc=new ww(this.Sb,this.Dd,c,this.Na,a,this.Qa,this.Fa);g.H(this,this.Fc);var k=new SW(b,this.Fc,this.Fa,this.Qa,this.Fe);this.rf=X(function(){return k});
this.Tp=k;this.Sh=new HY(this.Sb,this.Db,this.rf,this.Fe,this.Fa,this.Na,this.Pa);g.H(this,this.Sh);this.Ce=new xW(this.Sb,this.Db,this.lc,this.rf);g.H(this,this.Ce);this.Hc=new pw(this.Sb,this.Db,this.Dd,this.Qa,this.Ce,c);g.H(this,this.Hc);this.Dg=X(function(){return new tX(f.Re,f.vb,f.Fb)});
g.H(this,this.Dg);this.xd=X(function(){return new uX});
g.H(this,this.xd);this.Se=new OY(a,this.Xb);g.H(this,this.Se);this.wb=new PY(a);g.H(this,this.wb);this.Xq=new mZ(a);g.H(this,this.Xq);this.hf=new QY(a,this.rf);g.H(this,this.hf);this.Ue=new RY(a,this.lc,this.Fa,this.Qa);g.H(this,this.Ue);this.Uc=new TY(a);g.H(this,this.Uc);this.Hg=new UY(a);g.H(this,this.Hg);this.Ps=new HZ(a);g.H(this,this.Ps);this.rd=X(function(){return new KY});
g.H(this,this.rd);this.Kg=X(function(){return new LY(f.Fa)});
g.H(this,this.Kg);this.Cg=X(function(){return new wX(f.Hc)});
g.H(this,this.Cg);this.Eg=X(function(){return new XX(f.Pa,f.Uc,f.Bb)});
g.H(this,this.Eg);this.Jk=X(function(){return new rQa(f.Xb,f.Fa,f.Pa,f.zc,f.Bb,f.Xq,f.Ps,f.Eb,f.Na,c)});
g.H(this,this.Jk);this.Ig=X(function(){return new GY(a,f.Uc,f.Pa,f.Bb,f.oe,f.ue,f.Qa,f.Fa,f.lc,f.Jd,f.Vc,f.df,f.Eb,f.lf,f.Na)});
g.H(this,this.Ig);this.XE=new VY(a,this.qm,this.fb);g.H(this,this.XE);this.Xk=new WY(a,this.ze,this.Fb,this.Qa,this.fb,this.Na);g.H(this,this.Xk);this.Be={ls:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Sh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Fc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ce]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Dg],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.xd]]),gj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Se],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.wb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Xq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ue],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ue],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ue],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ps]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rd],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.Kg]]),Nn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.Eg],["SLOT_TYPE_IN_PLAYER",this.Jk],["SLOT_TYPE_PLAYER_BYTES",this.Ig]])};this.listeners=[this.zc.get()];this.Qr={Hc:this.Hc,Kl:null,Pn:this.ze.get(),
ph:this.Na.get(),eb:this.Eb.get(),bq:this.Fa.get(),Fc:this.Fc,Ik:this.fb.get(),On:this.qm.get(),Bj:this.Se,gi:this.zc.get(),Wk:this.Qa.get()}};
tQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=X(function(){return new xw});
g.H(this,this.fb);this.vb=X(function(){return new BW(f.fb)});
g.H(this,this.vb);this.zc=X(function(){return new yW});
g.H(this,this.zc);this.Sb=X(function(){return new uW(a)});
g.H(this,this.Sb);this.Db=X(function(){return new NW(f.fb,f.vb)});
g.H(this,this.Db);this.Ad=X(function(){return new RW});
g.H(this,this.Ad);this.df=X(function(){return new NE(b.V())});
g.H(this,this.df);this.Xb=X(function(){return new YY(b)});
g.H(this,this.Xb);this.Eb=X(function(){return new ZV(e)});
g.H(this,this.Eb);this.Jd=X(function(){return new WF(b)});
g.H(this,this.Jd);this.lc=X(function(){return new TW(b)});
g.H(this,this.lc);this.ue=X(function(){return new aZ(b)});
g.H(this,this.ue);this.Vc=X(function(){return new UW(b)});
g.H(this,this.Vc);this.Na=X(function(){return new VW(b)});
g.H(this,this.Na);this.Re=X(function(){return new XY(d)});
g.H(this,this.Re);this.Fb=X(function(){return new nU(f.Na)});
g.H(this,this.Fb);this.Dd=X(function(){return new sW(f.Db,f.vb,f.Na,f.Fb,null,null)});
g.H(this,this.Dd);this.lf=X(function(){return new bZ(b)});
g.H(this,this.lf);this.ze=X(function(){return new cZ});
g.H(this,this.ze);this.Qa=X(function(){return new hX(b,f.Ad,f.Na)});
g.H(this,this.Qa);this.Wb=new QW(this.Na,this.Fb,this.Qa);g.H(this,this.Wb);this.Fa=X(function(){return new iX(b,f.Qa)});
g.H(this,this.Fa);this.Bb=X(function(){return new YW(f.Fa,b)});
g.H(this,this.Bb);this.Pa=X(function(){return new cX(b,f.zc,f.Bb,f.Qa)});
g.H(this,this.Pa);this.oe=X(function(){return new nX});
g.H(this,this.oe);this.Jg=new IY(JY,IZ,function(l,m,n,p){return CW(f.vb.get(),l,m,n,p)},this.Sb,this.Db,this.vb,this.Fb,this.Na,this.Qa);
g.H(this,this.Jg);this.Fc=new ww(this.Sb,this.Dd,c,this.Na,a,this.Qa,this.Fa);g.H(this,this.Fc);var k=new SW(b,this.Fc,this.Fa,this.Qa);this.rf=X(function(){return k});
this.Tp=k;this.Ce=new xW(this.Sb,this.Db,this.lc,this.rf);g.H(this,this.Ce);this.Hc=new pw(this.Sb,this.Db,this.Dd,this.Qa,this.Ce,c);g.H(this,this.Hc);this.Dg=X(function(){return new tX(f.Re,f.vb,f.Fb)});
g.H(this,this.Dg);this.xd=X(function(){return new uX});
g.H(this,this.xd);this.Se=new OY(a,this.Xb);g.H(this,this.Se);this.wb=new PY(a);g.H(this,this.wb);this.hf=new QY(a,this.rf);g.H(this,this.hf);this.Ue=new RY(a,this.lc,this.Fa,this.Qa);g.H(this,this.Ue);this.Uc=new TY(a);g.H(this,this.Uc);this.Hg=new UY(a);g.H(this,this.Hg);this.rd=X(function(){return new KY});
g.H(this,this.rd);this.Kg=X(function(){return new LY(f.Fa)});
g.H(this,this.Kg);this.Cg=X(function(){return new wX(f.Hc)});
g.H(this,this.Cg);this.Eg=X(function(){return new XX(f.Pa,f.Uc,f.Bb)});
g.H(this,this.Eg);this.ZP=X(function(){return new oY(f.Xb,f.Fa,f.Pa,f.zc,c)});
g.H(this,this.ZP);this.Ig=X(function(){return new GY(a,f.Uc,f.Pa,f.Bb,f.oe,f.ue,f.Qa,f.Fa,f.lc,f.Jd,f.Vc,f.df,f.Eb,f.lf,f.Na)});
g.H(this,this.Ig);this.Xk=new WY(a,this.ze,this.Fb,this.Qa,this.fb,this.Na);g.H(this,this.Xk);this.Be={ls:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Fc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ce]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dg],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",
this.xd]]),gj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Se],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ue],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ue],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hg]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rd],["SLOT_TYPE_ABOVE_FEED",this.rd],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",
this.Kg]]),Nn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.Eg],["SLOT_TYPE_IN_PLAYER",this.ZP],["SLOT_TYPE_PLAYER_BYTES",this.Ig]])};this.listeners=[this.zc.get()];this.Qr={Hc:this.Hc,Kl:null,Pn:this.ze.get(),ph:this.Na.get(),eb:this.Eb.get(),bq:this.Fa.get(),Fc:this.Fc,Ik:this.fb.get(),On:null,Bj:this.Se,gi:this.zc.get(),Wk:this.Qa.get()}};
uQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=X(function(){return new xw});
g.H(this,this.fb);this.vb=X(function(){return new BW(f.fb)});
g.H(this,this.vb);this.zc=X(function(){return new yW});
g.H(this,this.zc);this.Sb=X(function(){return new uW(a)});
g.H(this,this.Sb);this.Db=X(function(){return new NW(f.fb,f.vb)});
g.H(this,this.Db);this.Ad=X(function(){return new RW});
g.H(this,this.Ad);this.df=X(function(){return new NE(b.V())});
g.H(this,this.df);this.Xb=X(function(){return new YY(b)});
g.H(this,this.Xb);this.Eb=X(function(){return new ZV(e)});
g.H(this,this.Eb);this.Jd=X(function(){return new WF(b)});
g.H(this,this.Jd);this.lc=X(function(){return new TW(b)});
g.H(this,this.lc);this.ue=X(function(){return new aZ(b)});
g.H(this,this.ue);this.Vc=X(function(){return new UW(b)});
g.H(this,this.Vc);this.Na=X(function(){return new VW(b)});
g.H(this,this.Na);this.Re=X(function(){return new XY(d)});
g.H(this,this.Re);this.Fb=X(function(){return new nU(f.Na)});
g.H(this,this.Fb);this.Dd=X(function(){return new sW(f.Db,f.vb,f.Na,f.Fb,null,null)});
g.H(this,this.Dd);this.lf=X(function(){return new bZ(b)});
g.H(this,this.lf);this.ze=X(function(){return new cZ});
g.H(this,this.ze);this.Qa=X(function(){return new hX(b,f.Ad,f.Na)});
g.H(this,this.Qa);this.Wb=new QW(this.Na,this.Fb,this.Qa);g.H(this,this.Wb);this.Fa=X(function(){return new iX(b,f.Qa)});
g.H(this,this.Fa);this.Bb=X(function(){return new YW(f.Fa,b)});
g.H(this,this.Bb);this.Pa=X(function(){return new cX(b,f.zc,f.Bb,f.Qa)});
g.H(this,this.Pa);this.oe=X(function(){return new nX});
g.H(this,this.oe);this.Jg=new IY(JY,IZ,function(l,m,n,p){return CW(f.vb.get(),l,m,n,p)},this.Sb,this.Db,this.vb,this.Fb,this.Na,this.Qa);
g.H(this,this.Jg);this.Fc=new ww(this.Sb,this.Dd,c,this.Na,a,this.Qa,this.Fa);g.H(this,this.Fc);var k=new SW(b,this.Fc,this.Fa,this.Qa);this.rf=X(function(){return k});
this.Tp=k;this.Ce=new xW(this.Sb,this.Db,this.lc,this.rf);g.H(this,this.Ce);this.Hc=new pw(this.Sb,this.Db,this.Dd,this.Qa,this.Ce,c);g.H(this,this.Hc);this.Dg=X(function(){return new tX(f.Re,f.vb,f.Fb)});
g.H(this,this.Dg);this.xd=X(function(){return new uX});
g.H(this,this.xd);this.Se=new OY(a,this.Xb);g.H(this,this.Se);this.wb=new PY(a);g.H(this,this.wb);this.hf=new QY(a,this.rf);g.H(this,this.hf);this.Ue=new RY(a,this.lc,this.Fa,this.Qa);g.H(this,this.Ue);this.Uc=new TY(a);g.H(this,this.Uc);this.Hg=new UY(a);g.H(this,this.Hg);this.rd=X(function(){return new KY});
g.H(this,this.rd);this.Kg=X(function(){return new LY(f.Fa)});
g.H(this,this.Kg);this.Cg=X(function(){return new wX(f.Hc)});
g.H(this,this.Cg);this.Eg=X(function(){return new XX(f.Pa,f.Uc,f.Bb)});
g.H(this,this.Eg);this.Jk=X(function(){return new oY(f.Xb,f.Fa,f.Pa,f.zc,c)});
g.H(this,this.Jk);this.Ig=X(function(){return new GY(a,f.Uc,f.Pa,f.Bb,f.oe,f.ue,f.Qa,f.Fa,f.lc,f.Jd,f.Vc,f.df,f.Eb,f.lf,f.Na)});
g.H(this,this.Ig);this.Xk=new WY(a,this.ze,this.Fb,this.Qa,this.fb,this.Na);g.H(this,this.Xk);this.Be={ls:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Fc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ce]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dg],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",
this.xd]]),gj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Se],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ue],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hg]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rd],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.Kg]]),Nn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",
this.Eg],["SLOT_TYPE_IN_PLAYER",this.Jk],["SLOT_TYPE_PLAYER_BYTES",this.Ig]])};this.listeners=[this.zc.get()];this.Qr={Hc:this.Hc,Kl:null,Pn:this.ze.get(),ph:this.Na.get(),eb:this.Eb.get(),bq:this.Fa.get(),Fc:this.Fc,Ik:this.fb.get(),On:null,Bj:this.Se,gi:this.zc.get(),Wk:this.Qa.get()}};
JZ=function(a,b,c,d,e,f,k,l,m){mY.call(this,a,b,c,d,e,f,k,m);this.vk=l};
vQa=function(){var a=iPa();a.re.push("metadata_type_ad_info_ad_metadata");return a};
wQa=function(a,b,c,d,e,f){this.Xb=a;this.Fa=b;this.Pa=c;this.u=d;this.vk=e;this.j=f};
xQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=X(function(){return new xw});
g.H(this,this.fb);this.vb=X(function(){return new BW(f.fb)});
g.H(this,this.vb);this.zc=X(function(){return new yW});
g.H(this,this.zc);this.Sb=X(function(){return new uW(a)});
g.H(this,this.Sb);this.Db=X(function(){return new NW(f.fb,f.vb)});
g.H(this,this.Db);this.Ad=X(function(){return new RW});
g.H(this,this.Ad);this.vk=X(function(){return new IPa(b)});
g.H(this,this.vk);this.df=X(function(){return new NE(b.V())});
g.H(this,this.df);this.Xb=X(function(){return new YY(b)});
g.H(this,this.Xb);this.Eb=X(function(){return new ZV(e)});
g.H(this,this.Eb);this.Jd=X(function(){return new WF(b)});
g.H(this,this.Jd);this.lc=X(function(){return new TW(b)});
g.H(this,this.lc);this.ue=X(function(){return new aZ(b)});
g.H(this,this.ue);this.Vc=X(function(){return new UW(b)});
g.H(this,this.Vc);this.Na=X(function(){return new VW(b)});
g.H(this,this.Na);this.Re=X(function(){return new XY(d)});
g.H(this,this.Re);this.Fb=X(function(){return new nU(f.Na)});
g.H(this,this.Fb);this.Dd=X(function(){return new sW(f.Db,f.vb,f.Na,f.Fb,null,null)});
g.H(this,this.Dd);this.lf=X(function(){return new bZ(b)});
g.H(this,this.lf);this.ze=X(function(){return new cZ});
g.H(this,this.ze);this.Qa=X(function(){return new hX(b,f.Ad,f.Na)});
g.H(this,this.Qa);this.Wb=new QW(this.Na,this.Fb,this.Qa);g.H(this,this.Wb);this.Fa=X(function(){return new iX(b,f.Qa)});
g.H(this,this.Fa);this.Bb=X(function(){return new YW(f.Fa,b)});
g.H(this,this.Bb);this.Pa=X(function(){return new cX(b,f.zc,f.Bb,f.Qa)});
g.H(this,this.Pa);this.oe=X(function(){return new nX});
g.H(this,this.oe);this.Jg=new IY(vPa,IZ,function(l,m,n,p){return uOa(f.vb.get(),l,m,n,p)},this.Sb,this.Db,this.vb,this.Fb,this.Na,this.Qa);
g.H(this,this.Jg);this.Fc=new ww(this.Sb,this.Dd,c,this.Na,a,this.Qa,this.Fa);g.H(this,this.Fc);var k=new SW(b,this.Fc,this.Fa,this.Qa);this.rf=X(function(){return k});
this.Tp=k;this.Ce=new xW(this.Sb,this.Db,this.lc,this.rf);g.H(this,this.Ce);this.Hc=new pw(this.Sb,this.Db,this.Dd,this.Qa,this.Ce,c);g.H(this,this.Hc);this.Dg=X(function(){return new tX(f.Re,f.vb,f.Fb)});
g.H(this,this.Dg);this.xd=X(function(){return new uX});
g.H(this,this.xd);this.Se=new OY(a,this.Xb);g.H(this,this.Se);this.wb=new PY(a);g.H(this,this.wb);this.hf=new QY(a,this.rf);g.H(this,this.hf);this.Ue=new RY(a,this.lc,this.Fa,this.Qa);g.H(this,this.Ue);this.Uc=new TY(a);g.H(this,this.Uc);this.Hg=new UY(a);g.H(this,this.Hg);this.rd=X(function(){return new KY});
g.H(this,this.rd);this.Kg=X(function(){return new LY(f.Fa)});
g.H(this,this.Kg);this.Cg=X(function(){return new wX(f.Hc)});
g.H(this,this.Cg);this.Eg=X(function(){return new XX(f.Pa,f.Uc,f.Bb)});
g.H(this,this.Eg);this.Ig=X(function(){return new GY(a,f.Uc,f.Pa,f.Bb,f.oe,f.ue,f.Qa,f.Fa,f.lc,f.Jd,f.Vc,f.df,f.Eb,f.lf,f.Na)});
g.H(this,this.Ig);this.TR=X(function(){return new wQa(f.Xb,f.Fa,f.Pa,f.zc,f.vk,c)});
g.H(this,this.TR);this.Xk=new WY(a,this.ze,this.Fb,this.Qa,this.fb,this.Na);g.H(this,this.Xk);this.Be={ls:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Fc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ce]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dg],["SLOT_TYPE_FORECASTING",this.xd],["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",
this.xd]]),gj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Se],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ue],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ue],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hg]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rd],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.Kg]]),Nn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Cg],["SLOT_TYPE_FORECASTING",this.Eg],["SLOT_TYPE_IN_PLAYER",this.TR],["SLOT_TYPE_PLAYER_BYTES",this.Ig]])};this.listeners=[this.zc.get()];this.Qr={Hc:this.Hc,Kl:null,Pn:this.ze.get(),ph:this.Na.get(),eb:this.Eb.get(),bq:this.Fa.get(),Fc:this.Fc,Ik:this.fb.get(),On:null,Bj:this.Se,gi:this.zc.get(),Wk:this.Qa.get()}};
yQa=function(a,b,c,d,e,f){this.Xb=a;this.Fa=b;this.Pa=c;this.u=d;this.vk=e;this.j=f};
zQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=X(function(){return new xw});
g.H(this,this.fb);this.vb=X(function(){return new BW(f.fb)});
g.H(this,this.vb);this.zc=X(function(){return new yW});
g.H(this,this.zc);this.Sb=X(function(){return new uW(a)});
g.H(this,this.Sb);this.Db=X(function(){return new NW(f.fb,f.vb)});
g.H(this,this.Db);this.Ad=X(function(){return new RW});
g.H(this,this.Ad);this.vk=X(function(){return new IPa(b)});
g.H(this,this.vk);this.df=X(function(){return new NE(b.V())});
g.H(this,this.df);this.Xb=X(function(){return new YY(b)});
g.H(this,this.Xb);this.Eb=X(function(){return new ZV(e)});
g.H(this,this.Eb);this.Jd=X(function(){return new WF(b)});
g.H(this,this.Jd);this.lc=X(function(){return new TW(b)});
g.H(this,this.lc);this.ue=X(function(){return new aZ(b)});
g.H(this,this.ue);this.Vc=X(function(){return new UW(b)});
g.H(this,this.Vc);this.Na=X(function(){return new VW(b)});
g.H(this,this.Na);this.Re=X(function(){return new XY(d)});
g.H(this,this.Re);this.Fb=X(function(){return new nU(f.Na)});
g.H(this,this.Fb);this.Dd=X(function(){return new sW(f.Db,f.vb,f.Na,f.Fb,null,f.Sh,3)});
g.H(this,this.Dd);this.lf=X(function(){return new bZ(b)});
g.H(this,this.lf);this.ze=X(function(){return new cZ});
g.H(this,this.ze);this.Qa=X(function(){return new hX(b,f.Ad,f.Na)});
g.H(this,this.Qa);this.Wb=new QW(this.Na,this.Fb,this.Qa);g.H(this,this.Wb);this.Fe=X(function(){return new $Y(b,f.Na,f.Pa)});
g.H(this,this.Fe);this.He=X(function(){return new pZ(b)});
g.H(this,this.He);this.Fa=X(function(){return new iX(b,f.Qa)});
g.H(this,this.Fa);this.oe=X(function(){return new nX});
this.Bb=X(function(){return new YW(f.Fa,b)});
g.H(this,this.Bb);this.Pa=X(function(){return new cX(b,f.zc,f.Bb,f.Qa)});
g.H(this,this.Pa);this.Fc=new ww(this.Sb,this.Dd,c,this.Na,a,this.Qa,this.Fa);g.H(this,this.Fc);var k=new SW(b,this.Fc,this.Fa,this.Qa,this.Fe);this.rf=X(function(){return k});
this.Tp=k;this.Jg=new IY(wPa,IZ,function(l,m,n,p){return uOa(f.vb.get(),l,m,n,p)},this.Sb,this.Db,this.vb,this.Fb,this.Na,this.Qa);
g.H(this,this.Jg);this.Sh=new HY(this.Sb,this.Db,this.rf,this.Fe,this.Fa,this.Na,this.Pa,this.He);g.H(this,this.Sh);this.Ce=new xW(this.Sb,this.Db,this.lc,this.rf);g.H(this,this.Ce);this.Hc=new pw(this.Sb,this.Db,this.Dd,this.Qa,this.Ce,c);g.H(this,this.Hc);this.Dg=X(function(){return new tX(f.Re,f.vb,f.Fb,f.He)});
g.H(this,this.Dg);this.xd=X(function(){return new uX});
g.H(this,this.xd);this.Se=new OY(a,this.Xb);g.H(this,this.Se);this.wb=new PY(a);g.H(this,this.wb);this.hf=new QY(a,this.rf);g.H(this,this.hf);this.Ue=new RY(a,this.lc,this.Fa,this.Qa);g.H(this,this.Ue);this.Sr=new oZ(a,this.Qa);g.H(this,this.Sr);this.Uc=new TY(a);g.H(this,this.Uc);this.Hg=new UY(a);g.H(this,this.Hg);this.rd=X(function(){return new KY});
g.H(this,this.rd);this.Kg=X(function(){return new LY(f.Fa)});
g.H(this,this.Kg);this.Cg=X(function(){return new wX(f.Hc)});
g.H(this,this.Cg);this.Eg=X(function(){return new XX(f.Pa,f.Uc,f.Bb)});
g.H(this,this.Eg);this.Ig=X(function(){return new lZ(a,f.Uc,f.Qa,f.He,f.Fa,f.Pa,f.Ad,f.Fe,f.Bb,f.oe,f.ue,f.lc,f.Jd,f.Vc,f.df,f.Eb,f.lf,f.Na,f.zc)});
g.H(this,this.Ig);this.Jk=X(function(){return new yQa(f.Xb,f.Fa,f.Pa,f.zc,f.vk,c)});
g.H(this,this.Jk);this.Xk=new WY(a,this.ze,this.Fb,this.Qa,this.fb,this.Na);g.H(this,this.Xk);this.Be={ls:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Hc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Sh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Fc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ce]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dg],["SLOT_TYPE_FORECASTING",this.xd],
["SLOT_TYPE_IN_PLAYER",this.xd],["SLOT_TYPE_PLAYER_BYTES",this.xd]]),gj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Se],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.wb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ue],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ue],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Sr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Sr],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Uc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hg]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.rd],["SLOT_TYPE_FORECASTING",this.rd],["SLOT_TYPE_IN_PLAYER",this.rd],["SLOT_TYPE_PLAYER_BYTES",this.Kg]]),Nn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cg],["SLOT_TYPE_FORECASTING",this.Eg],["SLOT_TYPE_PLAYER_BYTES",this.Ig],["SLOT_TYPE_IN_PLAYER",this.Jk]])};this.listeners=[this.zc.get()];this.Qr={Hc:this.Hc,Kl:null,Pn:this.ze.get(),ph:this.Na.get(),eb:this.Eb.get(),bq:this.Fa.get(),Fc:this.Fc,Ik:this.fb.get(),On:null,Bj:this.Se,gi:this.zc.get(),Wk:this.Qa.get()}};
KZ=function(a,b,c,d){g.G.call(this);var e=this;this.j=AQa(function(){return e.u},a,b,c,d);
g.H(this,this.j);this.u=(new XV(this.j)).B();g.H(this,this.u)};
LZ=function(a){return a.j.Qr};
AQa=function(a,b,c,d,e){try{var f=b.V();if(g.RC(f))var k=new qQa(a,b,c,d,e);else if(g.UC(f))k=new sQa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===GC(f))k=new uQa(a,b,c,d,e);else if(JC(f))k=new tQa(a,b,c,d,e);else if(g.AC(f))k=new xQa(a,b,c,d,e);else if(g.zC(f))k=new zQa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return k}catch(l){return k=b.V(),S("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:k.deviceParams.cplatform,interface:k.deviceParams.c,
Kia:k.deviceParams.cver,Jia:k.deviceParams.ctheme,Iia:k.deviceParams.cplayer,bja:k.playerStyle}),new WOa(a,b,c,d,e)}};
MZ=function(a,b){this.j=a;this.Kl=b};
NZ=function(a){yH.call(this,a)};
OZ=function(a,b,c,d,e,f){GH.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.Ca("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10*
Math.PI);this.hide()};
PZ=function(a,b,c,d,e,f,k){$G.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.Gh=f;this.Sj=k;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ia=this.Ca("ytp-ad-action-interstitial-image-container");this.D=new uH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.Ba(this.Ia);this.Ga=this.Ca("ytp-ad-action-interstitial-headline-container");this.S=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-action-interstitial-headline");g.H(this,this.S);
this.S.Ba(this.Ga);this.Aa=this.Ca("ytp-ad-action-interstitial-description-container");this.J=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-action-interstitial-description");g.H(this,this.J);this.J.Ba(this.Aa);this.Ua=this.Ca("ytp-ad-action-interstitial-background-container");this.Z=new uH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Z);this.Z.Ba(this.Ua);this.La=this.Ca("ytp-ad-action-interstitial-action-button-container");
this.C=new fv;g.H(this,this.C);this.hide()};
BQa=function(a){var b=g.Th("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
QZ=function(a,b,c,d,e){$G.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.S=[];this.gb=this.Aa=this.D=this.Ua=this.Ia=null;this.La=!1;this.J=null;this.Z=0;a=this.Ca("ytp-ad-overlay-container");this.Ga=new PH(a,45E3,6E3,.3,.4);g.H(this,this.Ga);this.C=CQa(this);g.H(this,this.C);this.C.Ba(a);this.B=DQa(this);g.H(this,this.B);this.B.Ba(a);this.u=EQa(this);g.H(this,this.u);this.u.Ba(a);this.hide()};
CQa=function(a){var b=new g.ZG({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:[nH(RZ)]}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Ea:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){return SZ(a,b.element,
c)});
a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){return SZ(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Dj);b.hide();return b};
DQa=function(a){var b=new g.ZG({G:"div",Ea:["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:[nH(RZ)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Ea:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
oa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){return SZ(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){return SZ(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Dj);a.T(b.Ca("ytp-ad-overlay-text-image"),"click",a.VZ);b.hide();return b};
EQa=function(a){var b=new g.ZG({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:[nH(RZ)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ca("ytp-ad-overlay-image"),"click",function(c){return SZ(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Dj);b.hide();return b};
TZ=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.Iv(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Th("video-ads ytp-ad-module")||null,null==b)g.Iv(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.ZG({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.Aa),a.Aa.Ba(b),b=new DH(a.api,a.bb,a.layoutId,a.j,a.eb,a.Aa.element,!1),g.H(a,b),b.init(LE("ad-info-hover-text-button"),
c,a.macros),a.J){b.Ba(a.J,0);b.subscribe("f",a.wX,a);b.subscribe("e",a.bI,a);a.T(a.J,"click",a.xX);var d=g.Th("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f,k;if(null==(e=c.button)?0:null==(f=e.buttonRenderer)?0:null==(k=f.serviceEndpoint)?0:k.adInfoDialogEndpoint)a.La=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.gb=b}else g.Iv(Error("Ad info button container within overlay ad was not present."))}else g.Jv(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
FQa=function(a,b){if(UZ(a,VZ)||a.api.Af())return!1;var c=aH(b.title),d=aH(b.description);if(g.ib(c)||g.ib(d))return!1;a.Qh(a.C.element,b.trackingParams||null);a.C.Ka("title",aH(b.title));a.C.Ka("description",aH(b.description));a.C.Ka("displayUrl",aH(b.displayUrl));b.navigationEndpoint&&g.bc(a.S,b.navigationEndpoint);a.C.show();a.Ga.start();a.Wa(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.Z++});
return!0};
GQa=function(a,b){if(UZ(a,VZ)||a.api.Af())return!1;var c=aH(b.title),d=aH(b.description);if(g.ib(c)||g.ib(d))return!1;a.Qh(a.B.element,b.trackingParams||null);a.B.Ka("title",aH(b.title));a.B.Ka("description",aH(b.description));a.B.Ka("displayUrl",aH(b.displayUrl));a.B.Ka("imageUrl",aza(b.image));b.navigationEndpoint&&g.bc(a.S,b.navigationEndpoint);a.Ua=b.imageNavigationEndpoint||null;a.B.show();a.Ga.start();a.Wa(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Z++});
return!0};
HQa=function(a,b){if(a.api.Af())return!1;var c=bza(b.image),d=c;c.width<VZ.width&&(d=VZ);if(0===c.width||0===c.height||UZ(a,d))return!1;a.Qh(a.u.element,b.trackingParams||null);a.u.Ka("imageUrl",aza(b.image));a.u.Ka("width",c.width);a.u.Ka("height",c.height);b.navigationEndpoint&&g.bc(a.S,b.navigationEndpoint);b=a.u.Ca("ytp-ad-image-overlay");g.Km(b,"max-width",c.width+"px");a.u.show();a.Wa(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Z++;a.api.IH("invideo-overlay",a.layoutId)});
a.T(a.u.element,"mouseout",function(){a.api.HH("invideo-overlay",a.layoutId)});
return!0};
UZ=function(a,b){var c=a.api.Ya().Zh(),d=a.api.Ek(!0,!1);return(b=zZ(c,c.height-(d.height+d.top),b))?(a.Ia&&b&&(c=g.Uf(a.macros),c.ERRORCODE=b.Qz.toString(),c.ERROR_MSG=b.errorMessage,AH(a.eb,a.Ia,c)),!0):!1};
SZ=function(a,b,c){var d=g.Uf(a.macros),e=g.Vm(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Tm(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.Z.toString()}};
b=g.r(a.S);for(c=b.next();!c.done;c=b.next())AH(a.eb,c.value,d);a.api.pauseVideo()};
IQa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
WZ=function(a,b,c,d,e,f){GH.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",U:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var k=this;this.Z=-1;this.C=0;this.S=!1;this.Aa=this.Ca("ytp-ad-message-slot");this.B=new g.ZG({G:"span",L:"ytp-ad-message-container"});this.B.Ba(this.Aa);g.H(this,this.B);this.messageText=new EH(this.api,this.bb,this.layoutId,this.j,e,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.Ba(this.B.element);this.J=new g.JH(this.B,400,!1,100,function(){return k.hide()});
g.H(this,this.J);this.hide()};
JQa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
XZ=function(a,b,c,d,e){$G.call(this,a,b,{G:"div",L:"ytp-ad-underlay-companion",U:[{G:"div",L:"ytp-ad-underlay-side-container",U:[{G:"div",L:"ytp-ad-underlay-image-container"},{G:"div",L:"ytp-ad-underlay-description-container"},{G:"div",L:"ytp-ad-underlay-headline-container"},{G:"div",L:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d,e);this.actionButton=null;this.Aa=this.Ca("ytp-ad-underlay-image-container");this.C=new uH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-underlay-image");
g.H(this,this.C);this.C.Ba(this.Aa);this.Z=this.Ca("ytp-ad-underlay-headline-container");this.u=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-underlay-headline");g.H(this,this.u);this.u.Ba(this.Z);this.S=this.Ca("ytp-ad-underlay-description-container");this.D=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-underlay-description");g.H(this,this.D);this.D.Ba(this.S);this.J=this.Ca("ytp-ad-underlay-action-button-container");this.B=this.Ca("ytp-ad-underlay-side-container");
this.hide()};
KQa=function(a){var b=g.Th("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
YZ=function(a,b,c,d,e){$G.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.u=null;this.toggledLoggingParams="";this.answer=this.Ca("ytp-ad-survey-answer");this.hide()};
ZZ=function(a,b,c,d,e){$G.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.u=this.Ca("ytp-ad-survey-none-of-the-above");this.hide()};
$Z=function(a,b,c,d,e){oH.call(this,a,b,c,d,e,["ytp-ad-survey-submit-button"],"survey-submit")};
a_=function(a,b,c,d,e,f,k){$G.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",U:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d,e);this.C=f;this.Sj=k;this.B=this.u=null;this.D=this.Ca("ytp-ad-survey-player-overlay-instream-info");
this.J=this.Ca("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ca("ytp-ad-survey-player-overlay-submit");g.H(this,this.C);this.hide()};
b_=function(a,b,c,d,e,f,k,l){$G.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",U:[{G:"div",Ea:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ea:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ea:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},f,c,d,e);this.Gh=k;this.Sj=l;this.D=null;this.B=[];this.u=null;this.question=this.Ca("ytp-ad-survey-question");this.S=this.Ca("ytp-ad-survey-question-background");
this.questionText=this.Ca("ytp-ad-survey-question-text");this.answers=this.Ca("ytp-ad-survey-answers");this.playerOverlay=this.Ca("ytp-ad-survey-question-player-overlay");this.C=g.Ta()};
LQa=function(a,b,c){var d=new YZ(a.api,a.bb,a.layoutId,a.j,a.eb);d.Ba(a.answers);d.init(LE("survey-answer"),b,c);a.B.push(d)};
NQa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&tH(c)||"",g.ib(c)?g.Jv(Error("Found ThumbnailDetails without valid image URL")):g.Km(a.S,"backgroundImage","url("+c+")"));MQa(a,b)}else g.Iv(Error("addCommonComponents() needs to be called before starting countdown."))};
MQa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.Iv(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Ta();a.u=a.Gh?new VH(a.api,b.durationMilliseconds):new WH(b.durationMilliseconds,a.bb,!0);g.H(a,a.u);if(b.timeoutCommands&&!a.Gh){var c=b.timeoutCommands;a.u.subscribe("g",function(){for(var e=g.r(c),f=e.next();!f.done;f=e.next())AH(a.eb,f.value,a.macros)})}if(a.u&&b.instreamAdPlayerOverlay&&
b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new a_(a.api,a.bb,a.layoutId,a.j,a.eb,a.u,a.Sj);
d.Ba(a.playerOverlay);d.init(LE("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.H(a,d);a.BQ()}catch(e){g.Iv(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.Iv(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new eI(a.api,a.u),b.Ba(a.playerOverlay),g.H(a,b)):g.Iv(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
OQa=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Ta()-a.C).toString()})};
c_=function(a,b,c,d,e,f,k){b_.call(this,a,b,c,d,e,"survey-question-multi-select",f,k);this.noneOfTheAbove=null;this.submitEndpoints=[];this.J=null;this.hide()};
PQa=function(a,b,c){a.noneOfTheAbove=new ZZ(a.api,a.bb,a.layoutId,a.j,a.eb);a.noneOfTheAbove.Ba(a.answers);a.noneOfTheAbove.init(LE("survey-none-of-the-above"),b,c)};
QQa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
d_(a,!0)};
d_=function(a,b){var c=a.D;a=RQa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof RH&&!c.u.J&&Lza(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
RQa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
e_=function(a,b,c,d,e,f,k){b_.call(this,a,b,c,d,e,"survey-question-single-select",f,k);this.hide()};
f_=function(a,b,c,d,e,f,k){$G.call(this,a,b,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.Gh=f;this.Sj=k;this.questions=[];this.u=this.Ca("ytp-ad-survey-questions");this.hide()};
g_=function(a,b,c,d,e,f,k){$G.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",U:[{G:"div",L:"ytp-ad-survey-interstitial-contents",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.Gh=f;this.dJ=k;this.u=this.actionButton=null;this.interstitial=this.Ca("ytp-ad-survey-interstitial");this.B=this.Ca("ytp-ad-survey-interstitial-contents");this.text=this.Ca("ytp-ad-survey-interstitial-text");
this.logoImage=this.Ca("ytp-ad-survey-interstitial-logo-image");this.transition=new g.JH(this,500,!1,300);g.H(this,this.transition)};
SQa=function(a,b){b=b&&tH(b)||"";if(g.ib(b))g.Jv(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Ec&&10>document.documentMode)c=Yg;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.ci("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=jia(d.style)}b=gba(c,Zg({"background-image":'url("'+b+'")'}));a.style.cssText=Wg(b)}};
TQa=function(a){var b=g.Th("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
h_=function(a,b,c,d){yH.call(this,a);this.api=a;this.eb=c;this.u={};this.K=b;a=new g.V({G:"div",Ea:["video-ads","ytp-ad-module"]});g.H(this,a);oC&&g.M(a.element,"ytp-ads-tiny-mode");this.D=new TG(a.element);g.H(this,this.D);g.EJ(this.api,a.element,4);IOa(d)&&(d=new g.V({G:"div",Ea:["ytp-ad-underlay"]}),g.H(this,d),this.B=new TG(d.element),g.H(this,this.B),g.EJ(this.api,d.element,0));g.H(this,tza())};
UQa=function(a,b){a=g.Sf(a.u,b.id,null);null==a&&g.Jv(Error("Component not found for element id: "+b.id));return a||null};
i_=function(a){g.cK.call(this,a);var b=this;this.u=this.bb=null;this.created=!1;this.Jq=new zG(this.player);this.B=function(){function d(){return b.bb}
if(null!=b.u)return b.u;var e=Bya({fn:a.getVideoData(1)});e=new NMa({LU:new MZ(function(){return b.bb},LZ(b.j).Kl),
Mq:e.JV(),cV:d,nX:d,Bj:LZ(b.j).Bj,Kj:e.oG(),Wk:LZ(b.j).Wk,I:b.player,ph:LZ(b.j).ph,Pa:b.j.j.Pa,gi:LZ(b.j).gi,Vc:b.j.j.Vc});b.u=e.IT;return b.u};
this.j=new KZ(this.player,this,this.Jq,this.B);g.H(this,this.j);var c=a.V();!HC(c)||g.zC(c)||JC(c)||(g.H(this,new h_(a,function(){return b.bb},LZ(this.j).eb,LZ(this.j).ph)),g.H(this,new NZ(a)))};
VQa=function(a){a.created!==a.loaded&&S("Created and loaded are out of sync")};
j_=function(a,b){b===a.Rt&&(a.Rt=void 0)};
WQa=function(a){a.bb?LZ(a.j).Fc.GG()||a.bb.GG()||LZ(a.j).bq.lr():S("AdService is null when calling maybeUnlockPrerollIfReady")};
XQa=function(a){a=g.r(LZ(a.j).gi.bj.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.Za)return!0;return!1};
k_=function(a){a=g.r(LZ(a.j).gi.bj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
Opa=function(a,b,c){c=void 0===c?"":c;var d=LZ(a.j).ph,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.fg()||!1;d=YQa(b,d,f,e,LZ(a.j).Ik);Rpa(LZ(a.j).Hc,c,d.EC,b);a.bb&&0<d.gx.length&&(a=a.bb,b=d.gx,b=Iya(a,b),b=Jya(a,b),Kya(a,b))};
YQa=function(a,b,c,d,e){var f={gx:[],EC:[]};a=g.r(a);for(var k=a.next();!k.done;k=a.next())if((k=k.value)&&null!=k.renderer){var l=k.renderer,m=void 0,n=void 0,p=void 0,q=void 0,t=e;if(null==(q=l.sandwichedLinearAdRenderer)?0:null==(p=q.adVideoStart)?0:p.adMessageRenderer)m=KMa(l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,t),l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer=m;else if(null==(n=l.linearAdSequenceRenderer)?0:null==(m=n.adStart)?0:m.adMessageRenderer)m=KMa(l.linearAdSequenceRenderer.adStart.adMessageRenderer,
t),l.linearAdSequenceRenderer.adStart.adMessageRenderer=m;m=b;n=d;c||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=l.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer||null!=l.videoAdTrackingRenderer||null!=l.clientForecastingAdRenderer||null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||null!=l.invideoOverlayAdRenderer||
null!=l.adBreakServiceRenderer?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=n)||(l=m,g.TC(l.I.V())?l=l.I.V().N("html5_enable_vod_lsar_ivar_pacf_unplugged"):HC(l.I.V())||g.IC(l.I.V())?l=!0:(S("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?m.I.V().N("html5_enable_vod_lasr_with_notify_pacf"):n||QMa(m):null!=l.sandwichedLinearAdRenderer?m.I.V().N("html5_enable_vod_slar_with_notify_pacf"):
!1;l?f.EC.push(k):f.gx.push(k)}return f};
ZQa=function(){if(!g.Ec)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.l_=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=kh(a,null);return b.parseFromString(g.dh(a),"application/xml")}if($Qa){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.m_=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",Ea:["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.Ma("click",this.onClick,this);this.Ka("title",FK(a,e,"i"));g.pf(this,g.cL(b.pc(),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,k){this.j=f;fa(this,"description",{configurable:!0,writable:!0,value:k})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
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 aRa="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||aRa});
var ma="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},bRa=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}}(),n_;
if("function"==typeof Object.setPrototypeOf)n_=Object.setPrototypeOf;else{var o_;a:{var cRa={a:!0},dRa={};try{dRa.__proto__=cRa;o_=dRa.a;break a}catch(a){}o_=!1}n_=o_?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=n_;
oa.prototype.S=function(a){this.u=a};
oa.prototype.return=function(a){this.B={return:a};this.j=this.D};
oa.prototype.Va=function(a){this.j=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return bRa});
ha("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});
ha("Promise",function(a){function b(k){this.j=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.u=function(k){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(k)};
var e=ea.setTimeout;c.prototype.B=function(k){e(k,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var k=this.j;this.j=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(k){this.B(function(){throw k;})};
b.prototype.C=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.ra),reject:k(this.D)}};
b.prototype.ra=function(k){if(k===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.Aa(k);else{a:switch(typeof k){case "object":var l=null!=k;break a;case "function":l=!0;break a;default:l=!1}l?this.ma(k):this.J(k)}};
b.prototype.ma=function(k){var l=void 0;try{l=k.then}catch(m){this.D(m);return}"function"==typeof l?this.Ga(l,k):this.J(k)};
b.prototype.D=function(k){this.S(2,k)};
b.prototype.J=function(k){this.S(1,k)};
b.prototype.S=function(k,l){if(0!=this.j)throw Error("Cannot settle("+k+", "+l+"): Promise already settled in state"+this.j);this.j=k;this.B=l;2===this.j&&this.va();this.Y()};
b.prototype.va=function(){var k=this;e(function(){if(k.Z()){var l=ea.console;"undefined"!==typeof l&&l.error(k.B)}},1)};
b.prototype.Z=function(){if(this.K)return!1;var k=ea.CustomEvent,l=ea.Event,m=ea.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof k?k=new k("unhandledrejection",{cancelable:!0}):"function"===typeof l?k=new l("unhandledrejection",{cancelable:!0}):(k=ea.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.B;return m(k)};
b.prototype.Y=function(){if(null!=this.u){for(var k=0;k<this.u.length;++k)f.u(this.u[k]);this.u=null}};
var f=new c;b.prototype.Aa=function(k){var l=this.C();k.IA(l.resolve,l.reject)};
b.prototype.Ga=function(k,l){var m=this.C();try{k.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(k,l){function m(t,v){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:v}
var n,p,q=new b(function(t,v){n=t;p=v});
this.IA(m(k,n),m(l,p));return q};
b.prototype.catch=function(k){return this.then(void 0,k)};
b.prototype.IA=function(k,l){function m(){switch(n.j){case 1:k(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.K=!0};
b.resolve=d;b.reject=function(k){return new b(function(l,m){m(k)})};
b.race=function(k){return new b(function(l,m){for(var n=g.r(k),p=n.next();!p.done;p=n.next())d(p.value).IA(l,m)})};
b.all=function(k){var l=g.r(k),m=l.next();return m.done?d([]):new b(function(n,p){function q(x){return function(y){t[x]=y;v--;0==v&&n(t)}}
var t=[],v=0;do t.push(void 0),v++,d(m.value).IA(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Ca(this,b,c).RR}});
ha("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.r(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!la(m,k)){var n=new c;fa(m,k,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var k="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!la(m,k))throw Error("WeakMap key fail: "+m);m[k][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&la(m,k)?m[k][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&la(m,k)&&la(m[k],this.j)};
b.prototype.delete=function(m){return d(m)&&la(m,k)&&la(m[k],this.j)?delete m[k][this.j]:!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.j;return ia(function(){if(n){for(;n.head!=l.j;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++k,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&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.j=b();this.size=0;if(l){l=g.r(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.r([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.j=this.j.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var k=0;return e});
ha("Array.prototype.entries",function(a){return a?a:function(){return Da(this,function(b,c){return[b,c]})}});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Object.setPrototypeOf",function(a){return a||na});
ha("Array.prototype.keys",function(a){return a?a:function(){return Da(this,function(b){return b})}});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ea(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=Ea(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k<f&&c<e;)if(d[c++]!=b[k++])return!1;return k>=f}});
ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ea(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.j=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ha("Array.prototype.values",function(a){return a?a:function(){return Da(this,function(b,c){return c})}});
ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;k<f;k++)e.push(c.call(d,b[k],k));return e}});
ha("globalThis",function(a){return a||ea});
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("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ca(this,b,c).aO}});
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!==Ea(this,b,"includes").indexOf(b,c||0)}});
ha("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
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("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ha("Int8Array.prototype.fill",Fa);ha("Uint8Array.prototype.fill",Fa);ha("Uint8ClampedArray.prototype.fill",Fa);ha("Int16Array.prototype.fill",Fa);ha("Uint16Array.prototype.fill",Fa);ha("Int32Array.prototype.fill",Fa);ha("Uint32Array.prototype.fill",Fa);ha("Float32Array.prototype.fill",Fa);ha("Float64Array.prototype.fill",Fa);
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ea(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.j=new WeakMap;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ha("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ha("Int8Array.prototype.copyWithin",Ga);ha("Uint8Array.prototype.copyWithin",Ga);ha("Uint8ClampedArray.prototype.copyWithin",Ga);ha("Int16Array.prototype.copyWithin",Ga);ha("Uint16Array.prototype.copyWithin",Ga);ha("Int32Array.prototype.copyWithin",Ga);ha("Uint32Array.prototype.copyWithin",Ga);ha("Float32Array.prototype.copyWithin",Ga);ha("Float64Array.prototype.copyWithin",Ga);ha("Number.parseInt",function(a){return a||parseInt});
zj=zj||{};g.C=this||self;Na="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ua(Za,Error);Za.prototype.name="CustomError";var Lh;g.Ua($a,Za);$a.prototype.name="AssertionError";var od=void 0,nd,Eaa="undefined"!==typeof TextDecoder,cb,jaa="undefined"!==typeof TextEncoder;var nb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},maa=/&/g,naa=/</g,oaa=/>/g,paa=/"/g,qaa=/'/g,raa=/\x00/g,laa=/[\x00&<>"']/;var eRa=g.Ia("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var rb;if(null!=eRa&&eRa){var fRa=g.C.navigator;rb=fRa?fRa.userAgentData||null:null}else rb=null;var Rb,Yl,Zm;Rb=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.gRa=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.lc=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.Zn=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Wl=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
Yl=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.lc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Zm=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.Xl=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};nc[" "]=function(){};var Lm,xP,xMa,hRa,iRa,jRa,nC,oC,p_;g.pC=vb();g.Ec=wb();g.ot=tb("Edge");g.YC=g.ot||g.Ec;Lm=tb("Gecko")&&!(lb(g.qb(),"WebKit")&&!tb("Edge"))&&!(tb("Trident")||tb("MSIE"))&&!tb("Edge");g.uf=lb(g.qb(),"WebKit")&&!tb("Edge");xP=Kb();xMa=Lb();g.hs=Hb();hRa=Ib();iRa=tb("iPad");jRa=tb("iPod");nC=Jb();oC=lb(g.qb(),"KaiOS");
a:{var q_="",r_=function(){var a=g.qb();if(Lm)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.ot)return/Edge\/([\d\.]+)/.exec(a);if(g.Ec)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.uf)return/WebKit\/(\S+)/.exec(a);if(g.pC)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
r_&&(q_=r_?r_[1]:"");if(g.Ec){var s_=qc();if(null!=s_&&s_>parseFloat(q_)){p_=String(s_);break a}}p_=q_}var rc=p_,Baa={},t_;if(g.C.document&&g.Ec){var kRa=qc();t_=kRa?kRa:parseInt(rc,10)||void 0}else t_=void 0;var Caa=t_;var yC,EE;g.Fx=Bb();yC=Ib()||tb("iPod");EE=tb("iPad");g.qC=Eb();g.mA=Cb();g.Qs=Db()&&!Jb();var vc={},Gc=null;var Hc="undefined"!==typeof Uint8Array,Jc,Lc={};var Oc;Nc.prototype.isEmpty=function(){return null==this.pd};var Daa;Daa="function"===typeof Uint8Array.prototype.slice;g.Vc=0;g.Uc=0;g.h=g.Xc.prototype;g.h.init=function(a,b,c,d){d=void 0===d?{}:d;this.AA=void 0===d.AA?!1:d.AA;a&&(a=Tc(a),this.u=a.buffer,this.D=a.Hr,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.h.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.AA=!1};
g.h.reset=function(){this.j=this.C};
g.h.advance=function(a){this.j+=a;Yc(this)};
g.h.dA=ba(0);var fd=[];jd.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
jd.prototype.advance=function(a){this.j.advance(a)};
var aQ=[];var td;vd.prototype.length=function(){return this.j.length};
vd.prototype.end=function(){var a=this.j;this.j=[];return a};var Fd={};var Hd="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var ye,Zd=Object.freeze(Kd([])),sp="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;g.h=xe.prototype;g.h.toJSON=function(){var a=this.Ud;return ye?a:Ud(a,Wd)};
g.h.bE=function(a){return a.u(this)};
g.h.clone=function(){var a=Ud(this.Ud);we=a;a=new this.constructor(a);we=null;Be(a,this);return a};
g.h.isMutable=function(a){Gd(a);return!Ld(this.Ud)};
g.h.Hr=function(a){Gd(a);return Ld(this.Ud)};
g.h.toString=function(){return this.Ud.toString()};
var we;g.w(Ce,xe);Ce.prototype.vJ=function(){return this};
if(sp){var lRa={};Object.defineProperties(Ce,(lRa[Symbol.hasInstance]=Rd(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),lRa))};var Ge,Re,Oe,Ne,mRa,u_,nRa,y_,oRa,z_,pRa;Ge=Symbol();Re=Symbol();Oe=Symbol();Ne=Symbol();mRa=g.Ve(function(a,b,c){if(1!==a.u)return!1;a=g.bd(a.j);fe(b,c,a,0);return!0},g.We);
u_=g.Ve(function(a,b,c){if(0!==a.u)return!1;a=g.Zc(a.j);fe(b,c,a,0);return!0},g.Xe);
nRa=g.Ve(function(a,b,c){if(0!==a.u)return!1;a=g.$c(a.j);fe(b,c,a,0);return!0},g.Ye);
g.v_=g.Ve(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,g.pd(a));return!0},g.Ze);
g.w_=g.Ve(function(a,b,c,d,e){if(2!==a.u)return!1;g.md(a,ue(b,c,d),e);return!0},function(a,b,c,d,e){b=pe(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Cd(a,c);e(b[d],a);Dd(a,f)}});
g.x_=g.Ve(function(a,b,c,d,e,f){if(2!==a.u)return!1;(f=le(b,f))&&f!==c&&ee(b,f);b=g.ne(b,d,c);g.md(a,b,e);return!0},g.$e);
y_=g.Ve(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,rd(a));return!0},function(a,b,c){b=g.Yd(b,c);
null!=b&&g.Ed(a,c,Tc(b).buffer)});
oRa=g.Ve(function(a,b,c){if(2!==a.u)return!1;a=rd(a);g.ge(b,c,a,void 0,!0);return!0},function(a,b,c){b=g.$d(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.Ed(a,c,Tc(e).buffer)}});
z_=g.Ve(function(a,b,c){if(0!==a.u)return!1;g.D(b,c,g.$c(a.j)>>>0);return!0},function(a,b,c){b=g.Yd(b,c);
null!=b&&null!=b&&(g.Bd(a,c,0),xd(a.j,b))});
pRa=g.Ve(function(a,b,c){if(0!==a.u)return!1;g.D(b,c,g.$c(a.j));return!0},function(a,b,c){b=g.Yd(b,c);
null!=b&&(b=parseInt(b,10),g.Bd(a,c,0),yd(a.j,b))});g.w(g.F,Ce);g.F.prototype.vJ=function(a){Gd(a);if(Ld(this.Ud)){a={DF:!0};var b=Ld(this.Ud);if(b&&!a.DF)throw Error("copyRepeatedFields must be true for frozen messages");var c=new this.constructor;this.Ip&&(c.Ip=this.Ip.slice());for(var d=this.Ud,e=0;e<d.length;e++){var f=d[e];if(e===d.length-1&&Nd(f))for(l in f){var k=+l;Number.isNaN(k)?Xd(c)[l]=f[l]:bf(this,c,k,f[l],b,a)}else bf(this,c,e-this.Qq,f,b,a)}var l=c}else l=this;return l};
if(sp){var qRa={};Object.defineProperties(g.F,(qRa[Symbol.hasInstance]=Rd(Object[Symbol.hasInstance]),qRa))};g.w(df,g.F);var rRa=[df,1,y_,2,y_];g.w(ef,g.F);var sRa=[ef,1,y_,2,y_];g.w(ff,g.F);var tRa=[ff,1,y_,2,y_];g.w(gf,g.F);var A_=[1,2,3],uRa=[gf,1,g.x_,rRa,A_,2,g.x_,sRa,A_,3,g.x_,tRa,A_];g.h=jf.prototype;g.h.NU=function(a){var b=g.Ba.apply(1,arguments),c=this.eG(b);c?c.push(new hf(a)):this.SQ(a,b)};
g.h.SQ=function(a){this.Yt.set(this.zN(g.Ba.apply(1,arguments)),[new hf(a)])};
g.h.eG=function(){var a=this.zN(g.Ba.apply(0,arguments));return this.Yt.has(a)?this.Yt.get(a):void 0};
g.h.MV=function(){var a=this.eG(g.Ba.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.h.clear=function(){this.Yt.clear()};
g.h.zN=function(){var a=g.Ba.apply(0,arguments);return a?a.join(","):"key"};g.w(kf,jf);kf.prototype.B=function(a){var b=g.Ba.apply(1,arguments),c=0,d=this.MV(b);d&&(c=d.BM);this.SQ(c+a,b)};g.w(mf,jf);mf.prototype.Am=function(a){this.NU(a,g.Ba.apply(1,arguments))};g.G.prototype.nj=!1;g.G.prototype.isDisposed=function(){return this.nj};
g.G.prototype.dispose=function(){this.nj||(this.nj=!0,this.qa())};
g.G.prototype.qa=function(){if(this.Pg)for(;this.Pg.length;)this.Pg.shift()()};g.qf.prototype.stopPropagation=function(){this.u=!0};
g.qf.prototype.preventDefault=function(){this.defaultPrevented=!0};var sf={};var Zaa=function(){if(!g.C.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.C.addEventListener("test",function(){},b),g.C.removeEventListener("test",function(){},b)}catch(c){}return a}();var fCa=vf("AnimationEnd"),cFa=vf("TransitionEnd");g.Ua(wf,g.qf);var vRa={2:"touch",3:"pen",4:"mouse"};
wf.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)?Lm&&(oc(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:vRa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&wf.Ke.preventDefault.call(this)};
wf.prototype.stopPropagation=function(){wf.Ke.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
wf.prototype.preventDefault=function(){wf.Ke.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var xf="closure_listenable_"+(1E6*Math.random()|0);var Waa=0;var Wf="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Zf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var k=ag(a,b,d,e);-1<k?(b=a[k],c||(b.HA=!1)):(b=new Xaa(b,this.src,f,!!d,e),b.HA=c,a.push(b));return b};
Zf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=ag(e,b,c,d);return-1<b?(zf(e[b]),g.Vb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
Zf.prototype.Ox=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=ag(a,b,c,d));return-1<e?a[e]:null};var gg="closure_lm_"+(1E6*Math.random()|0),lg={},ig=0,mg="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ua(g.ng,g.G);g.ng.prototype[xf]=!0;g.h=g.ng.prototype;g.h.addEventListener=function(a,b,c,d){g.cg(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){jg(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.Ia;if(b){var c=[];for(var d=1;b;b=b.Ia)c.push(b),++d}b=this.rb;d=a.type||a;if("string"===typeof a)a=new g.qf(a,b);else if(a instanceof g.qf)a.target=a.target||b;else{var e=a;a=new g.qf(d,b);g.Xf(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var k=a.currentTarget=c[f];e=og(k,d,!0,a)&&e}a.u||(k=a.currentTarget=b,e=og(k,d,!0,a)&&e,a.u||(e=og(k,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)k=a.currentTarget=c[f],e=og(k,d,!1,a)&&e;return e};
g.h.qa=function(){g.ng.Ke.qa.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,zf(d[e]);delete a.listeners[c];a.j--}}this.Ia=null};
g.h.Ma=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.h.ZB=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.h.xc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.h.Ox=function(a,b,c,d){return this.B.Ox(String(a),b,c,d)};sg.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var uba=g.Ec||g.uf;var wRa={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 zg;Dg.prototype.jm=!0;Dg.prototype.Oi=function(){return this.j};
var Cg={},Bg={};g.Fg("");var Gg={};Hg.prototype.Oi=function(){return this.j.toString()};
Hg.prototype.toString=function(){return this.j.toString()};var mia,lia,kia,nia;mia=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.xRa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.yRa=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.Tp=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]");lia=/^http:\/\/.*/;g.zRa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");kia=/\s+/;nia=/[\d\u06f0-\u06f9]/;g.h=Jg.prototype;g.h.jm=!0;g.h.Oi=function(){return this.j.toString()};
g.h.LG=!0;g.h.Ct=function(){return 1};
g.h.toString=function(){return this.j+""};
var dba=/%{(\w+)}/g,cba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Ig={};g.h=g.Ng.prototype;g.h.jm=!0;g.h.Oi=function(){return this.j.toString()};
g.h.LG=!0;g.h.Ct=function(){return 1};
g.h.toString=function(){return this.j.toString()};
var fba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Qg=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Mg={},Rg=new g.Ng("about:invalid#zClosurez",Mg);var Ug={};Vg.prototype.Oi=function(){return this.j};
Vg.prototype.toString=function(){return this.j.toString()};
var Yg=new Vg("",Ug),hba=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),ah=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),$g=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),iba=/\/\*/;var bh={};ch.prototype.Ct=function(){return this.u};
ch.prototype.Oi=function(){return this.j.toString()};
ch.prototype.toString=function(){return this.j.toString()};
var ARa=/^[a-zA-Z0-9-]+$/,BRa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},CRa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},mh=new ch(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",0,bh);var oba=xg(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.dh(mh);return!b.parentElement}),pba=/^[\w+/_-]+[=]{0,2}$/;g.h=g.wh.prototype;g.h.clone=function(){return new g.wh(this.x,this.y)};
g.h.equals=function(a){return a instanceof g.wh&&xh(this,a)};
g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.h.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.h=g.yh.prototype;g.h.clone=function(){return new g.yh(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!Ah(this)};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.DRa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Uh={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=Jh.prototype;g.h.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.h.Ca=function(a){return g.Th(a,this.j)};
g.h.createElement=function(a){return $h(this.j,a)};
g.h.appendChild=function(a,b){a.appendChild(b)};
g.h.append=function(a,b){ai(Kh(a),a,arguments,1)};
g.h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.h.removeNode=g.gi;g.h.contains=g.ii;var oi;ri.prototype.add=function(a,b){var c=zba.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
ri.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var zba=new sg(function(){return new si},function(a){return a.reset()});
si.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};
si.prototype.reset=function(){this.next=this.scope=this.j=null};var ti,ui=!1,xba=new ri;Aba.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var Bba=new sg(function(){return new Aba},function(a){a.reset()});
g.xi.prototype.then=function(a,b,c){return Jba(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.xi.prototype.$goog_Thenable=!0;g.h=g.xi.prototype;g.h.Di=function(a,b){return Jba(this,null,a,b)};
g.h.catch=g.xi.prototype.Di;g.h.cancel=function(a){if(0==this.j){var b=new Di(a);g.vi(function(){Fba(this,b)},this)}};
g.h.G0=function(a){this.j=0;wi(this,2,a)};
g.h.H0=function(a){this.j=0;wi(this,3,a)};
g.h.AV=function(){for(var a;a=Gba(this);)Hba(this,a,this.j,this.K);this.J=!1};
var Nba=qi;g.Ua(Di,Za);Di.prototype.name="cancel";g.Ua(g.Ei,g.ng);g.h=g.Ei.prototype;g.h.enabled=!1;g.h.uc=null;g.h.setInterval=function(a){this.Wg=a;this.uc&&this.enabled?(this.stop(),this.start()):this.uc&&this.stop()};
g.h.u0=function(){if(this.enabled){var a=g.Ta()-this.BO;0<a&&a<.8*this.Wg?this.uc=this.Lz.setTimeout(this.sM,this.Wg-a):(this.uc&&(this.Lz.clearTimeout(this.uc),this.uc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.uc||(this.uc=this.Lz.setTimeout(this.sM,this.Wg),this.BO=g.Ta())};
g.h.stop=function(){this.enabled=!1;this.uc&&(this.Lz.clearTimeout(this.uc),this.uc=null)};
g.h.qa=function(){g.Ei.Ke.qa.call(this);this.stop();delete this.Lz};g.h=g.Hi.prototype;g.h.TI=function(a){this.D=a;this.C=1};
g.h.bR=function(){var a=this.j.values();a=[].concat(g.u(a)).filter(function(b){return b.Yt.size});
a.length&&this.K.flush(a,this.D);Qba(a);this.B=0;this.u.enabled&&this.u.stop()};
g.h.zA=function(a){var b=g.Ba.apply(1,arguments);this.j.has(a)||this.j.set(a,new kf(a,b))};
g.h.iM=function(a){var b=g.Ba.apply(1,arguments);this.j.has(a)||this.j.set(a,new mf(a,b))};
g.h.wK=function(a){this.cE.apply(this,[a,1].concat(g.u(g.Ba.apply(1,arguments))))};
g.h.cE=function(a,b){var c=g.Ba.apply(2,arguments),d=Pba(this,a);d&&d instanceof kf&&(d.B(b,c),Oba(this))};
g.h.Am=function(a,b){var c=g.Ba.apply(2,arguments),d=Pba(this,a);d&&d instanceof mf&&(d.Am(b,c),Oba(this))};Rba.prototype.Am=function(a,b,c,d,e){this.j.Am("/client_streamz/po/w/rl",a,b,c,d,e)};
Sba.prototype.Am=function(a,b,c){this.j.Am("/client_streamz/po/w/el",a,b,c)};var Uba,Vba;g.w(g.Ii,g.F);g.w(g.Ji,g.F);g.w(g.Ki,g.F);g.w(g.Li,g.F);Uba=[3,6,4];Vba=[1];g.Ni=[1,2,3];g.Mi=[1,2,3];g.w(Xba,g.F);var Wba=[1];var dca={};g.h=Oi.prototype;g.h.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{bC:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.h.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.fja;d=c.T_||!1;var f=c.domain||void 0;var k=c.path||void 0;var l=c.bC}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";k=k?";path="+k:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+
e:"")};
g.h.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=nb(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{bC:0,path:b,domain:c});return d};
g.h.zn=function(){return Pi(this).keys};
g.h.wj=function(){return Pi(this).values};
g.h.isEmpty=function(){return!this.j.cookie};
g.h.clear=function(){for(var a=Pi(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Or=new Oi("undefined"==typeof document?null:document);g.w(Si,g.F);var gca=[2];g.Ti.prototype.u=0;g.Ti.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.Ti.prototype.getValue=function(){return this.B};var kca={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},jca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Xi.prototype.u=null;Xi.prototype.getOptions=function(){return this.u||(this.u=this.C())};var B_;g.Ua(Yi,Xi);Yi.prototype.j=function(){var a=mca(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Yi.prototype.C=function(){var a={};mca(this)&&(a[0]=!0,a[1]=!0);return a};
B_=new Yi;var kj=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),uca=/#|$/,vca=/[?&]($|#)/;g.Ua(g.xj,g.ng);var Fca=/^https?$/i,ERa=["POST","PUT"],yca=[];g.h=g.xj.prototype;g.h.bV=function(){this.dispose();g.Xb(yca,this)};
g.h.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.ma+"; newUri="+a);b=b?b.toUpperCase():"GET";this.ma=a;this.D="";this.u=0;this.Aa=!1;this.C=!0;this.j=this.Y?this.Y.j():B_.j();this.va=this.Y?this.Y.getOptions():B_.getOptions();this.j.onreadystatechange=(0,g.Qa)(this.OP,this);try{this.getStatus(),this.Ga=!0,this.j.open(b,String(a),!0),this.Ga=!1}catch(k){this.getStatus();Cca(this,k);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(k){return"content-type"==k.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.Sb(ERa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.r(c);for(d=b.next();!d.done;d=b.next())c=g.r(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.La&&(this.j.responseType=this.La);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Eca(this),0<this.S&&(this.Ta=Aca(this.j),this.getStatus(),this.Ta?(this.j.timeout=this.S,this.j.ontimeout=(0,g.Qa)(this.xK,
this)):this.ra=g.Fi(this.xK,this.S,this)),this.getStatus(),this.Z=!0,this.j.send(a),this.Z=!1}catch(k){this.getStatus(),Cca(this,k)}};
g.h.xK=function(){"undefined"!=typeof zj&&this.j&&(this.D="Timed out after "+this.S+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.J=!0,this.j.abort(),this.J=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),yj(this))};
g.h.qa=function(){this.j&&(this.C&&(this.C=!1,this.J=!0,this.j.abort(),this.J=!1),yj(this,!0));g.xj.Ke.qa.call(this)};
g.h.OP=function(){this.isDisposed()||(this.Ga||this.Z||this.J?Dca(this):this.jZ())};
g.h.jZ=function(){Dca(this)};
g.h.isActive=function(){return!!this.j};
g.h.isComplete=function(){return 4==g.Aj(this)};
g.h.getStatus=function(){try{return 2<g.Aj(this)?this.j.status:-1}catch(a){return-1}};
g.h.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.h.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};g.w(Fj,g.F);g.w(Ica,g.F);var Hca=[1];g.w(Gj,g.F);g.w(Hj,g.F);Hj.prototype.N=function(){return null!=g.Yd(this,7)};
var Jca=[3,20,27];g.w(Lca,g.F);var Kca=[3,5];g.w(Nca,g.F);var Mca=[5];g.w(Oca,g.F);var FRa;FRa=new af(175237375,{Pia:0},Oca,function(a,b){if(null!=b){var c={oja:ve(b,1,-1)};a&&(c.YR=b);return c}});g.w(Jj,g.ng);g.h=Jj.prototype;g.h.qa=function(){this.YF();g.ng.prototype.qa.call(this)};
g.h.dispatch=function(a){if(a instanceof Hj)this.log(a);else{var b=new Hj;a=ze(a);b=g.D(b,8,a);this.log(b)}};
g.h.log=function(a){a=a.clone();var b=this.Ib++;g.D(a,21,b);this.Z&&g.D(a,26,this.Z);if(!g.Yd(a,1)){b=a;var c=Date.now().toString();g.D(b,1,c)}null!=g.Yd(a,15)||g.D(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),re(a,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.K;this.u.push(a);this.dispatchEvent(new Vca(a));this.va||this.j.enabled||this.j.start()};
g.h.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Aa)Uca(this);else{var d=Date.now();if(this.ib>d&&this.Ga<d)b&&b("throttled");else{var e=this.J.Te(this.u,this.K);d={};var f=this.Xa();f&&(d.Authorization=f);var k=Rca(this);this.Y&&(d["X-Goog-AuthUser"]=this.Y,k=tj(k,"authuser",this.Y));this.pageId&&(d["X-Goog-PageId"]=this.pageId,k=tj(k,"pageId",this.pageId));if(f&&this.gb===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.K=0;var l=ze(e),m;this.S&&
this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:k,body:l,UU:1,Ds:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(v){c.D.reset();c.j.setInterval(c.D.getValue());if(v){var x=null;try{var y=JSON.parse(v.replace(")]}'\n",""));x=new Nca(y)}catch(z){}x&&(v=Number(be(x,1,"-1")),0<v&&(c.Ga=Date.now(),c.ib=c.Ga+v),x=x.bE(FRa))&&(x=ve(x,1,-1),-1!=x&&(c.Ua||Sca(c,x)))}a&&a()},q=function(v,x){var y=pe(e,Hj,3);
g.Ui(c.D);c.j.setInterval(c.D.getValue());401===v&&f&&(c.gb=f);void 0===x&&(x=500<=v&&600>v||401===v||0===v);x&&(c.u=y.concat(c.u),c.va||c.j.enabled||c.j.start());b&&b("net-send-failed",v)},t=function(){c.Ta?c.Ta.send(n,p,q):c.kb(n,p,q)};
m?m.then(function(v){n.Ds["Content-Encoding"]="gzip";n.Ds["Content-Type"]="application/binary";n.body=v;n.UU=2;t()},function(){t()}):t()}}}};
g.h.YF=function(){this.flush()};
g.w(Vca,g.qf);Pca.prototype.Te=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.D(c,4,d);a=te(c,3,a);b&&g.D(a,14,b);return a};Yca.prototype.Te=function(){var a=new Jj(1654,this.ma?this.ma:Ri,"0",this.J,this.B,this.C,!1,this.Aa,void 0,void 0,this.K?this.K:void 0);this.Y&&Ij(a.J,this.Y);if(this.u){var b=this.u,c=Kj(a.J);g.D(c,7,b)}this.D&&(a.S=this.D);this.j&&(a.Z=this.j);this.S&&((b=this.S)?(a.C||(a.C=new Si),b=ze(b),g.D(a.C,4,b)):a.C&&ee(a.C,4));this.ra&&(b=this.ra,a.C||(a.C=new Si),de(a.C,2,b));this.Z&&(b=this.Z,a.Ua=!0,Sca(a,b));this.va&&Wca(a.J,this.va);return a};Zca.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Xba,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Yba(e);c.push(f);e.clear()}te(b,1,c);this.j.dispatch(b);this.j.flush()}};g.w(Lj,Error);Lj.prototype.name="RpcError";Nj.prototype.done=function(){this.logger.IO(this.j,Mj()-this.startMillis)};
Oj.prototype.wy=function(){};
Oj.prototype.IO=function(){};
Oj.prototype.pH=function(a,b,c){return c};
Pj.prototype.wy=function(a){this.clientError.j.wK("/client_streamz/po/w/cec",a,this.Yk)};
Pj.prototype.IO=function(a,b){this.u.Am(b,a,this.Yk)};
Pj.prototype.pH=function(a,b,c){function d(k){var l=Mj()-f;e.B.Am(l,a,b,k,e.Yk)}
var e=this,f=Mj();c.then(function(){d(0)},function(k){k instanceof Lj?d(k.code):d(-1)});
return c};g.w(ada,g.F);g.w(bda,g.F);g.w(Qj,g.F);Qj.j="bfkj";Sj.prototype.snapshot=function(a){if(this.j)throw Error("Already disposed");return this.u.then(function(b){var c=b.RU;return new Promise(function(d){c(function(e){d(e)},[a.lx,
a.d0])})})};
Sj.prototype.dispose=function(){this.j=!0;this.u.then(function(a){(a=a.b0)&&a()})};
Sj.prototype.isDisposed=function(){return this.j};/*

 SPDX-License-Identifier: Apache-2.0
*/
var Xj={};g.w(Tj,dda);Tj.prototype.toString=function(){return this.j.toString()};g.w(Uj,eda);Uj.prototype.toString=function(){return this.j};
var Qza=new Uj("about:invalid#zTSz",Xj);g.w(Yj,g.F);g.w(Zj,g.F);g.w(ak,g.F);oda.prototype.ping=function(a,b){var c=this,d,e;return g.B(function(f){d=c.j();e=b||new ak;var k=g.D(e,1,c.Yk);g.D(k,2,a);return g.A(f,c.client.ping(e,d),0)})};ea.Object.defineProperties(sda.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.j.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.j.b}}});g.w(ck,g.F);dk.prototype.sB=function(){return this.B};
dk.prototype.getMetadata=function(){return this.u};ek.prototype.getMetadata=function(){return this.j};
ek.prototype.sB=function(){return this.u};
ek.prototype.getStatus=function(){return null};fk.prototype.getName=function(){return this.name};var GRa=new fk("/google.internal.waa.v1.Waa/Create",Yj,ck,function(a){return ze(a)},function(a){return Ae(ck,a)});g.w(gk,g.F);var qda=new fk("/google.internal.waa.v1.Waa/GenerateIT",Zj,gk,function(a){return ze(a)},function(a){return Ae(gk,a)});g.w(hk,g.F);var HRa=new fk("/google.internal.waa.v1.Waa/Ping",ak,hk,function(a){return ze(a)},function(a){return Ae(hk,a)});var Rda=Promise;g.w(ik,g.F);ik.prototype.getValue=function(){if(Array.isArray(g.Yd(this,2)))throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ce(this,2)};
ik.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=g.D(this,2,Ud(a));else if("string"===typeof a||a instanceof Nc||Ic(a))Qd(this),null==a||(a instanceof Nc?a.isEmpty():0===a.length)?ee(this,2):g.D(this,2,a),a=this;else throw Error("invalid value in Any.value field: "+a+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");return a};g.w(jk,g.F);jk.prototype.getMessage=function(){return be(this,2,"")};
var uda=[3];kk.prototype.Sn=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};
kk.prototype.removeListener=function(a,b){"data"==a?ok(this.B,b):"metadata"==a?ok(this.D,b):"status"==a?ok(this.J,b):"end"==a?ok(this.C,b):"error"==a&&ok(this.u,b);return this};
kk.prototype.cancel=function(){this.j.abort()};
kk.prototype.cancel=kk.prototype.cancel;kk.prototype.removeListener=kk.prototype.removeListener;kk.prototype.on=kk.prototype.Sn;g.Ua(g.pk,Xi);g.pk.prototype.j=function(){return new qk(this.D,this.B)};
g.pk.prototype.C=vg({});g.Ua(qk,g.ng);g.h=qk.prototype;g.h.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.ma=a;this.Z=b;this.readyState=1;rk(this)};
g.h.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Y,method:this.ma,credentials:this.J,cache:void 0};a&&(b.body=a);(this.ra||g.C).fetch(new Request(this.Z,b)).then(this.eW.bind(this),this.EB.bind(this))};
g.h.abort=function(){this.response=this.responseText="";this.Y=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,sk(this));this.readyState=0};
g.h.eW=function(a){if(this.j&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,rk(this)),this.j&&(this.readyState=3,rk(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.cW.bind(this),this.EB.bind(this));else if("undefined"!==typeof g.C.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.S=new TextDecoder;zda(this)}else a.text().then(this.dW.bind(this),this.EB.bind(this))};
g.h.UV=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.S.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?sk(this):rk(this);3==this.readyState&&zda(this)}};
g.h.dW=function(a){this.j&&(this.response=this.responseText=a,sk(this))};
g.h.cW=function(a){this.j&&(this.response=a,sk(this))};
g.h.EB=function(){this.j&&sk(this)};
g.h.setRequestHeader=function(a,b){this.Y.append(a,b)};
g.h.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.h.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
Object.defineProperty(qk.prototype,"withCredentials",{get:function(){return"include"===this.J},
set:function(a){this.J=a?"include":"same-origin"}});g.uk.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Mk(b,IRa,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.S)&&a.push(Mk(b,IRa,!0),"@"),a.push(g.Bh(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.getPath())this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Mk(c,"/"==c.charAt(0)?JRa:KRa,!0));(c=this.B.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Mk(c,LRa));return a.join("")};
g.uk.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.vk(b,a.C):c=!!a.S;c?b.S=a.S:c=!!a.j;c?g.Hk(b,a.j):c=null!=a.u;var d=a.getPath();if(c)g.Ik(b,a.u);else if(c=!!a.K){if("/"!=d.charAt(0))if(this.j&&!this.K)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.kb(e,"./")||g.kb(e,"/.")){d=fb(e,"/");e=e.split("/");for(var f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&k==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.K=d:c=""!==a.B.toString();c?Jk(b,a.B.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.uk.prototype.clone=function(){return new g.uk(this)};
g.uk.prototype.getPath=function(){return this.K};
var IRa=/[#\/\?@]/g,KRa=/[#\?:]/g,JRa=/[#\?]/g,Dda=/[#\?@]/g,LRa=/#/g;g.h=Lk.prototype;g.h.add=function(a,b){Rk(this);this.B=null;a=Sk(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.h.remove=function(a){Rk(this);a=Sk(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.h.clear=function(){this.j=this.B=null;this.u=0};
g.h.isEmpty=function(){Rk(this);return 0==this.u};
g.h.forEach=function(a,b){Rk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.h.zn=function(){Rk(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.h.wj=function(a){Rk(this);var b=[];if("string"===typeof a)Fda(this,a)&&(b=b.concat(this.j.get(Sk(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.h.set=function(a,b){Rk(this);this.B=null;a=Sk(this,a);Fda(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.h.get=function(a,b){if(!a)return b;a=this.wj(a);return 0<a.length?String(a[0]):b};
g.h.toString=function(){if(this.B)return this.B;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Bh(d);d=this.wj(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Bh(d[f]));a.push(k)}}return this.B=a.join("&")};
g.h.clone=function(){var a=new Lk;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.h.extend=function(a){for(var b=0;b<arguments.length;b++)g.tk(arguments[b],function(c,d){this.add(d,c)},this)};g.Ua(g.Uk,g.G);var MRa=[];g.h=g.Uk.prototype;g.h.Ma=function(a,b,c,d){Array.isArray(b)||(b&&(MRa[0]=b.toString()),b=MRa);for(var e=0;e<b.length;e++){var f=g.cg(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.h.ZB=function(a,b,c,d){return Ida(this,a,b,c,d)};
g.h.xc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.xc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Ma(d)?!!d.capture:!!d,e=e||this.u||this,c=dg(c),d=!!d,b=yf(a)?a.Ox(b,c,d,e):a?(a=fg(a))?a.Ox(b,c,d,e):null:null,b&&(kg(b),delete this.j[b.key])};
g.h.qa=function(){g.Uk.Ke.qa.call(this);g.Vk(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Jda.prototype.isInputValid=function(){return this.B};Wk.prototype.isInputValid=function(){return 3!=this.j};
Wk.prototype.jf=function(){return this.J};
Wk.prototype.xA=function(){return!0};
Wk.prototype.parse=function(a){function b(m){m&128&&Xk(f,k,l,"invalid tag");2!=(m&7)&&Xk(f,k,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Xk(f,k,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Xk(f,k,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())}
function d(m){f.D[f.S++]=m;f.S==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.j=0}
for(var f=this,k=a instanceof Array?a:new Uint8Array(a),l=0;l<k.length;){switch(f.j){case 3:Xk(f,k,l,"stream already broken");break;case 0:b(k[l]);break;case 1:c(k[l]);break;case 2:d(k[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.Y++;l++}a=f.K;f.K=[];return 0<a.length?a:null};Yk.prototype.isInputValid=function(){return null===this.j};
Yk.prototype.jf=function(){return this.j};
Yk.prototype.xA=function(){return!1};
Yk.prototype.parse=function(a){null!==this.j&&Lda(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||Kda(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=Dc(c.j.slice(0,4*d))}catch(k){Kda(c,c.j,k.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(k){Lda(this,a,k.message)}this.u+=a.length;return b};var NRa={INIT:0,Tw:1,KE:2,Qt:3,lw:4,jw:5,STRING:6,EE:7,wL:8,JL:9,KL:10,LL:11,eK:12,fK:13,gK:14,hK:15,AL:16,BL:17,CL:18,zU:19,IE:20};g.h=$k.prototype;g.h.isInputValid=function(){return 3!=this.D};
g.h.jf=function(){return this.Y};
g.h.done=function(){return 2===this.D};
g.h.xA=function(){return!1};
g.h.parse=function(a){function b(){for(;t<a.length;)if(Zk(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var x;;){x=a[t++];if(!x)break;f.B++;switch(f.j){case m.INIT:"{"===x?f.j=m.KE:"["===x?f.j=m.lw:Zk(x)||al(f,a,t);continue;case m.EE:case m.KE:if(Zk(x))continue;if(f.j===m.EE)k.push(m.wL);else if("}"===x){e("{}");f.j=d();continue}else k.push(m.Qt);'"'===x?f.j=m.STRING:al(f,a,t);continue;case m.wL:case m.Qt:if(Zk(x))continue;":"===x?(f.j===m.Qt&&(k.push(m.Qt),f.u++),f.j=m.Tw):"}"===x?(f.u--,e(),f.j=d()):","===x?(f.j===m.Qt&&k.push(m.Qt),f.j=m.EE):al(f,a,t);continue;case m.lw:case m.Tw:if(Zk(x))continue;
if(f.j===m.lw)if(f.u++,f.j=m.Tw,"]"===x){f.u--;if(0===f.u){f.j=m.jw;return}e("[]");f.j=d();continue}else k.push(m.jw);'"'===x?f.j=m.STRING:"{"===x?f.j=m.KE:"["===x?f.j=m.lw:"t"===x?f.j=m.JL:"f"===x?f.j=m.eK:"n"===x?f.j=m.AL:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.j=m.IE:al(f,a,t));continue;case m.jw:if(","===x)k.push(m.jw),f.j=m.Tw,1===f.u&&(q=t);else if("]"===x){f.u--;if(0===f.u)return;e();f.j=d()}else if(Zk(x))continue;else al(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.j=d();break}if("\\"===x&&!f.K&&(f.K=!0,x=a[t++],!x))break;if(f.K)if(f.K=!1,"u"===x&&(f.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.JL:if(!x)continue;"r"===x?f.j=m.KL:al(f,a,t);continue;case m.KL:if(!x)continue;"u"===x?f.j=m.LL:al(f,a,t);continue;case m.LL:if(!x)continue;"e"===x?f.j=d():al(f,a,t);continue;case m.eK:if(!x)continue;"a"===x?f.j=m.fK:
al(f,a,t);continue;case m.fK:if(!x)continue;"l"===x?f.j=m.gK:al(f,a,t);continue;case m.gK:if(!x)continue;"s"===x?f.j=m.hK:al(f,a,t);continue;case m.hK:if(!x)continue;"e"===x?f.j=d():al(f,a,t);continue;case m.AL:if(!x)continue;"u"===x?f.j=m.BL:al(f,a,t);continue;case m.BL:if(!x)continue;"l"===x?f.j=m.CL:al(f,a,t);continue;case m.CL:if(!x)continue;"l"===x?f.j=d():al(f,a,t);continue;case m.zU:"."===x?f.j=m.IE:al(f,a,t);continue;case m.IE:if(-1!=="0123456789.eE+-".indexOf(x))continue;else t--,f.B--,f.j=
d();continue;default:al(f,a,t)}}}
function d(){var x=k.pop();return null!=x?x:m.Tw}
function e(x){1<f.u||(x||(x=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.Z?f.J.push(x):f.J.push(JSON.parse(x)),q=t)}
for(var f=this,k=f.ma,l=f.ra,m=NRa,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return al(f,a,t),null;case 2:return b()&&al(f,a,t),null;case 0:if(b()){var v=a[t++];f.B++;if("["===v){f.D=1;p=t;f.j=m.lw;continue}else al(f,a,t)}return null;case 1:return c(),0===f.u&&f.j==m.jw?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.J.length?(v=f.J,f.J=[],v):null}return null};bl.prototype.isInputValid=function(){return null===this.D};
bl.prototype.jf=function(){return this.D};
bl.prototype.xA=function(){return!1};
bl.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+k+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new $k({eia:!0,pV:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.J||1<m.length)&&b("extra status: "+m);f.J=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,k=0;k<a.length;){var l;if(l=2!==f.u){a:{for(;k<a.length;){if(!Zk(a[k])){l=!0;break a}k++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[k]?(f.u=1,k++,f.j++):b("unexpected input token");break;case 1:"["===a[k]?(f.u=2,c()):","===a[k]||"null,"==a.slice(k,k+5)?f.u=3:"]"===a[k]?(f.u=5,k++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(k));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-k-l.length,a=l,k=0):(f.j+=a.length-
k,k=a.length);break;case 3:","===a[k]||"null,"==a.slice(k,k+5)?(f.u=4,c(),f.B.parse("["),k+=","===a[k]?1:5,f.j++):"]"===a[k]&&(f.u=5,k++,f.j++);break;case 4:l=f.B.parse(a.substring(k));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-k-l.length,a=l,k=0):(f.j+=a.length-k,k=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};cl.prototype.getStatus=function(){return this.C};
cl.prototype.Z=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Aj(this.j),c=this.j.u,d=this.j.getStatus(),e=g.Cj(this.j);a=[];if(g.Dj(this.j)instanceof Array){var f=g.Dj(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?dl(this,7):7==c?dl(this,8):d||dl(this,3)),this.u||(this.u=Mda(this.j),null==this.u&&dl(this,5)),2<this.C)el(this);else{if(a.length>this.B){var k=a.length;c=[];try{if(this.u.xA())for(var l=0;l<k;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.J){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.J=new TextDecoder}for(l=0;l<k;l++)m+=this.J.decode(a[l],{stream:4==b&&l==k-1});c=this.u.parse(m)}a.splice(0,k);c&&this.D(c)}catch(p){dl(this,5);el(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){dl(this,5);el(this);break a}}4==b?(0!=e.length||
this.Y?dl(this,2):dl(this,4),el(this)):dl(this,1)}}}catch(p){dl(this,6),el(this)}};g.h=Nda.prototype;g.h.Sn=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.h.addListener=function(a,b){this.Sn(a,b);return this};
g.h.removeListener=function(a,b){var c=this.u[a];c&&g.Xb(c,b);(a=this.j[a])&&g.Xb(a,b);return this};
g.h.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.h.fY=function(a){var b=this.u.data;b&&Oda(a,b);(b=this.j.data)&&Oda(a,b);this.j.data=[]};
g.h.PZ=function(){switch(this.B.getStatus()){case 1:fl(this,"readable");break;case 5:case 6:case 4:case 7:case 3:fl(this,"error");break;case 8:fl(this,"close");break;case 2:fl(this,"end")}};Pda.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Qda(function(k){var l=k.sB(),m=k.getMetadata(),n=Tda(e,!1);m=Uda(e,m,n,f+l.getName());var p=Vda(n,l.u,!0);k=l.j(k.j);n.send(m,"POST",k);return p},this.C).call(this,tda(d,b,c))};gl.prototype.create=function(a,b){return bk(this.j,"https://web.archive.org/web/20220414023957/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},GRa)};
gl.prototype.ping=function(a,b){return bk(this.j,"https://web.archive.org/web/20220414023957/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},HRa)};var Xda={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.w(kl,Error);g.w(ll,g.G);g.w(nl,ll);nl.prototype.Zu=function(a){++this.D>=this.J&&this.B.resolve();var b=new Nj(this.logger,"C");a=new sda(this.C(a.lx));b.done();b=a.u;var c=this.j;c=oe(c,ff,3===le(c,A_)?3:-1);c||(c=new ff,a=Fc(a.B),g.D(c,2,a),se(this.j,3,A_,c));g.D(c,1,b);return g.Ue(this.j,uRa)};
g.w(ol,ll);ol.prototype.Zu=function(){return this.j};
g.w(pl,ll);pl.prototype.Zu=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C};
jl.prototype.isReady=function(){return!!this.j};
jl.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.u.promise,0)})};
jl.prototype.Zu=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Nj(this.logger,this.j.u);try{return this.j.Zu(a)}catch(e){b=new Nj(this.logger,"e");var c=new kl(5,e);this.logger.wy(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new pl(c)).Zu()}finally{b.done()}};var mn;mn=["av.default","js","unreleased"].slice(-1)[0];var an=document,Fl=window;var iea={NONE:0,T6:1},Qea={mS:0,Sda:1,Rda:2,Tda:3},Pea={t2:"a",K6:"d",VIDEO:"v"};rl.prototype.isVisible=function(){return this.Ir?.3<=this.Ed:.5<=this.Ed};var Bl={v3:0,n7:1},Nea={NONE:0,G8:1,K7:2};sl.prototype.getValue=function(){return this.pd};
g.w(tl,sl);tl.prototype.setValue=function(a){if(null!==this.pd||!g.Kf(this.u,a))return!1;this.pd=a;return!0};
g.w(ul,sl);ul.prototype.setValue=function(a){if(null!==this.pd||"number"!==typeof a)return!1;this.pd=a;return!0};
g.w(vl,sl);vl.prototype.setValue=function(a){if(null!==this.pd||"string"!==typeof a)return!1;this.pd=a;return!0};wl.prototype.disable=function(){this.u=!1};
wl.prototype.enable=function(){this.u=!0};
wl.prototype.isEnabled=function(){return this.u};
wl.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var Tfa=!g.Ec&&!Db();Cl.prototype.now=function(){return 0};
Cl.prototype.u=function(){return 0};
Cl.prototype.B=function(){return 0};
Cl.prototype.j=function(){return 0};g.w(El,Cl);El.prototype.now=function(){return Dl()&&Fl.performance.now?Fl.performance.now():Cl.prototype.now.call(this)};
El.prototype.u=function(){return Dl()&&Fl.performance.memory?Fl.performance.memory.totalJSHeapSize||0:Cl.prototype.u.call(this)};
El.prototype.B=function(){return Dl()&&Fl.performance.memory?Fl.performance.memory.usedJSHeapSize||0:Cl.prototype.B.call(this)};
El.prototype.j=function(){return Dl()&&Fl.performance.memory?Fl.performance.memory.jsHeapSizeLimit||0:Cl.prototype.j.call(this)};var lea=xg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});mea.prototype.isVisible=function(){return 1===Il(an)};g.Fg("csi.gstatic.com");g.Fg("googleads.g.doubleclick.net");g.Fg("partner.googleadservices.com");g.Fg("pubads.g.doubleclick.net");g.Fg("securepubads.g.doubleclick.net");g.Fg("tpc.googlesyndication.com");var qea=/https?:\/\/[^\/]+/,oea={G1:"allow-forms",H1:"allow-modals",I1:"allow-orientation-lock",J1:"allow-pointer-lock",K1:"allow-popups",L1:"allow-popups-to-escape-sandbox",M1:"allow-presentation",N1:"allow-same-origin",O1:"allow-scripts",P1:"allow-top-navigation",Q1:"allow-top-navigation-by-user-activation"},tea=xg(function(){return pea()});var xea=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");$l.prototype.setInterval=function(a,b){return Fl.setInterval(a,b)};
$l.prototype.clearInterval=function(a){Fl.clearInterval(a)};
$l.prototype.setTimeout=function(a,b){return Fl.setTimeout(a,b)};
$l.prototype.clearTimeout=function(a){Fl.clearTimeout(a)};Jea.prototype.getContext=function(){if(!this.j){if(!Fl)throw Error("Context has not been set and window is undefined.");this.j=Zl($l)}return this.j};g.w(bm,g.F);var Uga=[bm,1,mRa,2,u_,3,u_,4,u_,5,nRa];var Oea={qda:1,GU:2,pba:3};g.Lg(Eg(g.Fg("https://web.archive.org/web/20220414023957/https://pagead2.googlesyndication.com/pagead/osd.js")));Rea.prototype.tI=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.setValue(d)}}}};var C_=null;var mm=g.C.performance,ORa=!!(mm&&mm.mark&&mm.measure&&mm.clearMarks),km=xg(function(){var a;if(a=ORa){var b;if(null===C_){C_="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(C_=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=C_;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
lm.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(km()&&g.lc(this.events,Wea),this.events.length=0)};
lm.prototype.start=function(a,b){if(!this.j)return null;var c=Uea()||Tea();a=new Vea(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";mm&&km()&&mm.mark(b);return a};
lm.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=Uea()||Tea();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";mm&&km()&&mm.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};Xea.prototype.rH=function(a,b,c,d,e){e=e||this.fN;try{var f=new Sl;f.j.push(1);f.u[1]=Tl("context",a);b.error&&b.meta&&b.id||(b=new qm(rm(b)));if(b.msg){var k=b.msg.substring(0,512);f.j.push(2);f.u[2]=Tl("msg",k)}var l=b.meta||{};if(this.aF)try{this.aF(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=zea();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Tl("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?oca(m.j.url):""}];f.j.push(5);f.u[5]=p;em(this.j,e,f,!1,c)}catch(q){try{em(this.j,
e,{context:"ecmserr",rctx:a,msg:rm(q),url:m&&m.j.url},!1,c)}catch(t){}}return this.fJ};
g.w(qm,Sea);var om,pm,nm=new lm;om=new function(){var a="https:";Fl&&Fl.location&&"http:"===Fl.location.protocol&&(a="http:");this.u=a;this.j=.01;this.B=Math.random()};
pm=new Xea;Fl&&Fl.document&&("complete"==Fl.document.readyState?Zea():nm.j&&Hl(Fl,"load",function(){Zea()}));var bfa=Date.now(),ym=-1,wm=-1,tga,zm=-1,xm=!1;g.h=Am.prototype;g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new Am(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof Am?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Em.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Cm(this.j,a.j)&&!0};Fm.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.S==a.S&&Cm(this.B,a.B)&&Cm(this.J,a.J)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.K==a.K};var PRa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},qo={CU:"start",rS:"firstquartile",xU:"midpoint",DU:"thirdquartile",iS:"complete",ERROR:"error",wU:"metric",PAUSE:"pause",AU:"resume",BU:"skip",FU:"viewable_impression",yU:"mute",EU:"unmute",sS:"fullscreen",pS:"exitfullscreen",gS:"bufferstart",fS:"bufferfinish",tS:"fully_viewable_audible_half_duration_impression",vU:"measurable_impression",ZR:"abandon",oS:"engagedview",uS:"impression",jS:"creativeview",uU:"loaded",yda:"progress",
CLOSE:"close",h3:"collapse",yca:"overlay_resize",zca:"overlay_unmeasurable_impression",Aca:"overlay_unviewable_impression",Cca:"overlay_viewable_immediate_impression",Bca:"overlay_viewable_end_of_session_impression",kS:"custom_metric_viewable",tca:"verification_debug",aS:"audio_audible",cS:"audio_measurable",bS:"audio_impression"},Gha="start firstquartile midpoint thirdquartile resume loaded".split(" "),Hha=["start","firstquartile","midpoint","thirdquartile"],uga=["abandon"],Lo={UNKNOWN:-1,CU:0,rS:1,
xU:2,DU:3,iS:4,wU:5,PAUSE:6,AU:7,BU:8,FU:9,yU:10,EU:11,sS:12,pS:13,tS:14,vU:15,ZR:16,oS:17,uS:18,jS:19,uU:20,kS:21,gS:22,fS:23,bS:24,cS:25,aS:26};var dfa={s1:"addEventListener",M7:"getMaxSize",N7:"getScreenSize",O7:"getState",P7:"getVersion",Nda:"removeEventListener",d9:"isViewable"};g.h=g.Hm.prototype;g.h.clone=function(){return new g.Hm(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.wh?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.h.getSize=function(){return new g.yh(this.width,this.height)};
g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var hfa={};qfa.prototype.update=function(a){a&&a.document&&(this.K=Gm(!1,a,this.isMobileDevice),this.j=Gm(!0,a,this.isMobileDevice),sfa(this,a),rfa(this,a))};cn.prototype.cancel=function(){am().clearTimeout(this.j);this.j=null};
cn.prototype.schedule=function(){var a=this;this.j=am().setTimeout(cm(dm().j.j,tm(143,function(){a.u++;a.B.sample()})),cfa())};g.h=dn.prototype;g.h.nw=function(){return!1};
g.h.initialize=function(){return this.isInitialized=!0};
g.h.yu=function(){return this.j.Aa};
g.h.by=function(){return this.j.Z};
g.h.fail=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.Aa=a,this.S=0,this.j!=this||fn(this)};
g.h.getName=function(){return this.j.La};
g.h.tp=function(){return this.j.xN()};
g.h.xN=function(){return{}};
g.h.Dn=function(){return this.j.S};
g.h.yK=function(){var a=$m();a.j=Gm(!0,this.B,a.isMobileDevice)};
g.h.zK=function(){rfa($m(),this.B)};
g.h.FN=function(){return this.C.j};
g.h.sample=function(){};
g.h.isActive=function(){return this.j.J};
g.h.Ju=function(a){var b=this.j;this.j=a.Dn()>=this.S?a:this;b!==this.j?(this.J=this.j.J,fn(this)):this.J!==this.j.J&&(this.J=this.j.J,fn(this))};
g.h.Cp=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.Y);this.C=a;b&&vfa(this)}};
g.h.Cm=function(){return this.Y};
g.h.dispose=function(){this.va=!0};
g.h.isDisposed=function(){return this.va};g.h=gn.prototype;g.h.dE=function(){return!0};
g.h.ow=function(){};
g.h.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Xb(a.D,this);a.Y&&this.Cm()&&ufa(a);this.ow();this.Z=!0}};
g.h.isDisposed=function(){return this.Z};
g.h.tp=function(){return this.u.tp()};
g.h.Dn=function(){return this.u.Dn()};
g.h.yu=function(){return this.u.yu()};
g.h.by=function(){return this.u.by()};
g.h.Ju=function(){};
g.h.Cp=function(){this.Qo()};
g.h.Cm=function(){return this.ma};g.h=hn.prototype;g.h.Dn=function(){return this.j.Dn()};
g.h.yu=function(){return this.j.yu()};
g.h.by=function(){return this.j.by()};
g.h.create=function(a,b,c){var d=null;this.j&&(d=this.eA(a,b,c),en(this.j,d));return d};
g.h.AK=function(){return this.pw()};
g.h.pw=function(){return!1};
g.h.init=function(a){return this.j.initialize()?(en(this.j,this),this.C=a,!0):!1};
g.h.Ju=function(a){0==a.Dn()&&this.C(a.yu(),this)};
g.h.Cp=function(){};
g.h.Cm=function(){return!1};
g.h.dispose=function(){this.D=!0};
g.h.isDisposed=function(){return this.D};
g.h.tp=function(){return{}};jn.prototype.add=function(a,b,c){++this.B;a=new wfa(a,b,c);this.j.push(new wfa(a.j,a.pd,a.u+this.B/4096));this.u=!0;return this};Bfa.prototype.toString=function(){var a="//web.archive.org/web/20220414023957/https://pagead2.googlesyndication.com//pagead/gen_204",b=ln(this.j);0<b.length&&(a+="?"+b);return a};nn.prototype.update=function(a,b,c){a&&(this.j+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var Hfa=[1,.75,.5,.3,0];on.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var k=this.u[e],l=0<b&&b>=k;k=!(0<a&&a>=k)||c;this.j[e].update(f&&l,d,!f||k)}};un.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.Ed):b.Ed;this.ma=Math.max(this.ma,b.Ed);this.ra=-1!=this.ra?Math.min(this.ra,b.Bi):b.Bi;this.Aa=Math.max(this.Aa,b.Bi);this.gb.update(b.Bi,c.Bi,b.j,a,d);this.u.update(b.Ed,c.Ed,b.j,a,d);c=d||c.Ir!=b.Ir?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.La.update(c,a,b)};
un.prototype.Ln=function(){return this.La.B>=this.Xa};var Mfa=[xn("data"),xn("http"),xn("https"),xn("mailto"),xn("ftp"),new wn(function(a){return/^[^:]*([/?#]|$)/.test(a)})];if(an&&an.URL){var D_=an.URL,E_;if(E_=!!D_){var F_;a:{if(D_){var QRa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var G_=QRa.exec(decodeURIComponent(D_));if(G_){F_=G_[1]&&1<G_[1].length?G_[1].substring(1):"true";break a}}catch(a){}}F_=""}E_=0<F_.length}pm.fJ=!E_};var RRa=new Am(0,0,0,0);var Rfa=new Am(0,0,0,0);g.w(Bn,g.G);g.h=Bn.prototype;
g.h.qa=function(){if(this.Rh.j){if(this.Zq.EH){var a=this.Rh.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Zq.EH,Gl());this.Zq.EH=null}this.Zq.CH&&(a=this.Rh.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Zq.CH,Gl()),this.Zq.CH=null)}this.Ez&&this.Ez.dispose();this.Ae&&this.Ae.dispose();delete this.fC;delete this.tH;delete this.FR;delete this.Rh.Mp;delete this.Rh.j;delete this.Zq;delete this.Ez;delete this.Ae;delete this.featureSet;g.G.prototype.qa.call(this)};
g.h.wp=function(){return this.Ae?this.Ae.j:this.position};
g.h.tI=function(a){dm().tI(a)};
g.h.Cm=function(){return!1};
g.h.vB=function(){return new un};
g.h.uh=function(){return this.fC};
g.h.AN=function(a){return Vfa(this,a,1E4)};
g.h.Ha=function(a,b,c,d,e,f,k){this.Jp||(this.WA&&(a=this.mF(a,c,e,k),d=d&&this.hg.Ed>=(this.Ir()?.3:.5),this.PJ(f,a,d),this.lastUpdateTime=b,0<a.Ed&&-1===this.oR&&(this.oR=b),-1==this.rR&&this.Ln()&&(this.rR=b),-2==this.oH&&(this.oH=zn(this.wp())?a.Ed:-1),this.hg=a),this.tH(this))};
g.h.PJ=function(a,b,c){this.uh().update(a,b,this.hg,c)};
g.h.nG=function(){return new rl};
g.h.mF=function(a,b,c,d){c=this.nG();c.j=b;b=am().u;b=0===Il(an)?-1:b.isVisible()?0:1;c.u=b;c.Ed=this.yF(a);c.Ir=this.Ir();c.Bi=d;return c};
g.h.yF=function(a){return 0===this.opacity&&1===zl(this.featureSet,"opac")?0:a};
g.h.Ir=function(){return!1};
g.h.iD=function(){return this.GW||this.JW};
g.h.kC=function(){vm()};
g.h.DH=function(){vm()};
g.h.Xl=function(){return 0};
g.h.Ln=function(){return this.fC.Ln()};
g.h.GN=function(){return this.Jp?2:this.Ln()?4:3};
g.h.nB=function(){return 0};g.Un.prototype.next=function(){return g.H_};
g.H_={done:!0,value:void 0};g.Un.prototype.Ji=function(){return this};g.w(aga,rl);var I_=dga([void 0,1,2,3,4,8,16]),J_=dga([void 0,4,8,16]),SRa={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Yn("p0",J_),p1:Yn("p1",J_),p2:Yn("p2",J_),p3:Yn("p3",J_),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Xn("mtos1",[0,2,4],!1,J_),mtos2:Xn("mtos2",[0,2,4],!1,J_),mtos3:Xn("mtos3",[0,2,4],!1,J_),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Yn("a0",J_),a1:Yn("a1",J_),a2:Yn("a2",J_),a3:Yn("a3",J_),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Yn("c0",J_),c1:Yn("c1",J_),c2:Yn("c2",J_),c3:Yn("c3",J_),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Yn("qmtos",I_),qnc:Yn("qnc",I_),qmv:Yn("qmv",I_),qnv:Yn("qnv",I_),
raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Yn("ss0",J_),ss1:Yn("ss1",J_),ss2:Yn("ss2",J_),ss3:Yn("ss3",J_),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
TRa=Object.assign({},SRa,{avid:vg("audio"),avas:"avas",vs:"vs"}),URa={atos:"atos",avt:Xn("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};co.prototype.getValue=function(){return this.u};
co.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.w(eo,un);
eo.prototype.update=function(a,b,c,d){if(!b.paused){un.prototype.update.call(this,a,b,c,d);var e=Wn(b)&&Wn(c),f=.5<=(d?Math.min(b.Ed,c.Ed):c.Ed);Ym(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.va+=a,this.Y+=e?a:0);this.j.update(b.Ed,c.Ed,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Z.update(c.fullscreen,a);this.ib.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ga.update(a,b.isVisible());this.Ua.update(a,1<=b.Ed);this.Ta.update(a,
Wn(b))}};iga.prototype.D=function(a){this.u||(this.j(a)?(a=tha(this.Y,this.B,a),this.C|=a,a=0==a):a=!1,this.u=a)};g.w(go,iga);go.prototype.j=function(){return!0};
go.prototype.J=function(){return!1};
go.prototype.getId=function(){var a=this,b=Nf(qo,function(c){return c==a.B});
return Lo[b].toString()};
go.prototype.toString=function(){var a="";this.J()&&(a+="c");this.u&&(a+="s");0<this.C&&(a+=":"+this.C);return this.getId()+a};g.w(ho,go);ho.prototype.D=function(a,b){b=void 0===b?null:b;null!=b&&this.K.push(b);go.prototype.D.call(this,a)};g.w(io,gn);g.h=io.prototype;g.h.oF=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=nfa(a.getBoundingClientRect())}catch(n){c=new Am(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=kfa(a,b),k=f.x,l=f.y;var m=new Am(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(n){m=RRa.clone()}this.j=m}};
g.h.uM=function(){this.C=this.u.C.j};
g.h.nO=function(a){var b=1==zl(this.featureSet,"od");return Qfa(a,this.C,this.element,b)};
g.h.vM=function(){this.timestamp=vm()};
g.h.Qo=function(){this.vM();this.oF();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.yh(a.videoWidth,a.videoHeight);a=this.j;var c=Bm(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.uM();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Am(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 Am(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Am(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.nO(c)?c=new Am(0,0,0,0):(d=$m().C,b=new Am(0,d.height,d.width,0),d=An(c,this.j),e=An(c,$m().j),b=An(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Am(0,0,0,
0):Dm(c,-this.j.left,-this.j.top);bn()||(e=d=0);this.K=new Fm(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.h.getName=function(){return this.u.getName()};var VRa=new Am(0,0,0,0);g.w(jo,io);g.h=jo.prototype;g.h.dE=function(){this.B();return!0};
g.h.Cp=function(){io.prototype.Qo.call(this)};
g.h.vM=function(){};
g.h.oF=function(){};
g.h.Qo=function(){this.B();io.prototype.Qo.call(this)};
g.h.Ju=function(a){a=a.isActive();a!==this.J&&(a?this.B():($m().j=new Am(0,0,0,0),this.j=new Am(0,0,0,0),this.C=new Am(0,0,0,0),this.timestamp=-1));this.J=a};var K_={},sga=(K_.firstquartile=0,K_.midpoint=1,K_.thirdquartile=2,K_.complete=3,K_);g.w(lo,Bn);g.h=lo.prototype;g.h.Cm=function(){return!0};
g.h.Kn=function(){return 2==this.Zg};
g.h.AN=function(a){return Vfa(this,a,Math.max(1E4,this.B/3))};
g.h.Ha=function(a,b,c,d,e,f,k){var l=this,m=this.K(this)||{};g.Xf(m,e);this.B=m.duration||this.B;this.Y=m.isVpaid||this.Y;this.Ia=m.isYouTube||this.Ia;e=kga(this,b);1===jga(this)&&(f=e);Bn.prototype.Ha.call(this,a,b,c,d,m,f,k);this.Vr&&this.Vr.u&&g.lc(this.J,function(n){n.D(l)})};
g.h.PJ=function(a,b,c){Bn.prototype.PJ.call(this,a,b,c);oo(this).update(a,b,this.hg,c);this.gb=Wn(this.hg)&&Wn(b);-1==this.Aa&&this.Xa&&(this.Aa=this.uh().B.j);this.Yf.B=0;a=this.Ln();b.isVisible()&&bo(this.Yf,"vs");a&&bo(this.Yf,"vw");Ym(b.volume)&&bo(this.Yf,"am");Wn(b)&&bo(this.Yf,"a");this.Lu&&bo(this.Yf,"f");-1!=b.u&&(bo(this.Yf,"bm"),1==b.u&&bo(this.Yf,"b"));Wn(b)&&b.isVisible()&&bo(this.Yf,"avs");this.gb&&a&&bo(this.Yf,"avw");0<b.Ed&&bo(this.Yf,"pv");po(this,this.uh().B.j,!0)&&bo(this.Yf,"gdr");
2E3<=sn(this.uh().u,1)&&bo(this.Yf,"pmx")};
g.h.vB=function(){return new eo};
g.h.uh=function(){return this.fC};
g.h.nG=function(){return new aga};
g.h.mF=function(a,b,c,d){a=Bn.prototype.mF.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Lu;a.paused=this.Kn();a.volume=c.volume;Ym(a.volume)||(this.kb++,b=this.hg,Ym(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.h.yF=function(a){return $m(),this.Lu?1:Bn.prototype.yF.call(this,a)};
g.h.Xl=function(){return 1};
g.h.getDuration=function(){return this.B};
g.h.GN=function(){return this.Jp?2:mga(this)?5:this.Ln()?4:3};
g.h.nB=function(){return this.ib?2E3<=this.uh().D.B?4:3:2};var WRa=g.Ta();Cga.prototype.reset=function(){this.j=[];this.u=[]};
var wo=Zl(Cga);g.w(zo,hn);g.h=zo.prototype;g.h.getName=function(){return(this.u?this.u:this.j).getName()};
g.h.tp=function(){return(this.u?this.u:this.j).tp()};
g.h.Dn=function(){return(this.u?this.u:this.j).Dn()};
g.h.init=function(a){var b=!1;(0,g.lc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,en(this.j,this));return b};
g.h.dispose=function(){(0,g.lc)(this.B,function(a){a.dispose()});
hn.prototype.dispose.call(this)};
g.h.AK=function(){return Zm(this.B,function(a){return a.nw()})};
g.h.pw=function(){return Zm(this.B,function(a){return a.nw()})};
g.h.eA=function(a,b,c){return new io(a,this.j,b,c)};
g.h.Cp=function(a){this.u=a.u};var Lga={threshold:[0,.3,.5,.75,1]};g.w(Ao,io);g.h=Ao.prototype;g.h.dE=function(){var a=this;this.Y||(this.Y=vm());if(afa(298,function(){return Mga(a)}))return!0;
this.u.fail("msf");return!1};
g.h.ow=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.h.Qo=function(){var a=Bo(this);0<a.length&&Co(this,a);io.prototype.Qo.call(this)};
g.h.oF=function(){};
g.h.nO=function(){return!1};
g.h.uM=function(){};
g.h.tp=function(){var a={};return Object.assign(this.u.tp(),(a.niot_obs=this.Y,a.niot_cbk=this.S,a))};
g.h.getName=function(){return"nio"};g.w(Do,hn);Do.prototype.getName=function(){return"nio"};
Do.prototype.pw=function(){return!$m().u&&null!=this.j.j.B.IntersectionObserver};
Do.prototype.eA=function(a,b,c){return new Ao(a,this.j,b,c)};g.w(Eo,dn);Eo.prototype.FN=function(){return $m().j};
Eo.prototype.nw=function(){var a=Oga();this.S!==a&&(this.j!=this&&a>this.j.S&&(this.j=this,fn(this)),this.S=a);return 2==a};Fo.prototype.sample=function(){Io(this,xo(),!1)};
Fo.prototype.C=function(){var a=bn(),b=vm();a?(xm||(ym=b,g.lc(wo.j,function(c){var d=c.uh();d.Ia=fo(d,b,1!=c.Zg)})),xm=!0):(this.K=Tga(this,b),xm=!1,tga=b,g.lc(wo.j,function(c){c.WA&&(c.uh().S=b)}));
Io(this,xo(),!a)};
var Go=Zl(Fo);var Wga=null,fp="",ep=!1;var Zga=Yga().Ol,Ko=Yga().Rl;var bha={p7:"visible",u2:"audible",zfa:"time",Afa:"timetype"},cha={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(Oo,go);Oo.prototype.getId=function(){return this.K};
Oo.prototype.J=function(){return!0};
Oo.prototype.j=function(a){var b=a.uh(),c=a.getDuration();return Zm(this.S,function(d){if(void 0!=d.j)var e=eha(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.w(Po,fha);Po.prototype.u=function(){return null};
Po.prototype.B=function(){return[]};g.w(Qo,ega);Qo.prototype.j=function(a){var b=new $n;b.j=ao(a,SRa);b.u=ao(a,URa);return b};g.w(Ro,go);Ro.prototype.j=function(a){return mga(a)};g.w(So,fha);g.w(To,go);To.prototype.j=function(a){return a.uh().Ln()};g.w(Uo,ho);Uo.prototype.j=function(a){var b=g.Sb(this.K,zl(dm().featureSet,"ovms"));return!a.Jp&&(0!=a.Zg||b)};g.w(Vo,So);Vo.prototype.u=function(){return new Uo(this.j)};
Vo.prototype.B=function(){return[new To("viewable_impression",this.j),new Ro(this.j)]};g.w(Wo,jo);Wo.prototype.B=function(){var a=g.Ia("ima.admob.getViewability"),b=zl(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
Wo.prototype.getName=function(){return"gsv"};g.w(Xo,hn);Xo.prototype.getName=function(){return"gsv"};
Xo.prototype.pw=function(){var a=$m();dm();return a.u&&!1};
Xo.prototype.eA=function(a,b,c){return new Wo(this.j,b,c)};g.w(Yo,jo);Yo.prototype.B=function(){var a=this,b=g.Ia("ima.bridge.getNativeViewability"),c=zl(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Pf(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=ofa(d.opt_nativeViewBounds||{});var k=a.u.C;k.j=f?VRa.clone():ofa(e);a.timestamp=d.opt_nativeTime||-1;$m().j=k.j;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
Yo.prototype.getName=function(){return"nis"};g.w(Zo,hn);Zo.prototype.getName=function(){return"nis"};
Zo.prototype.pw=function(){var a=$m();dm();return a.u&&!1};
Zo.prototype.eA=function(a,b,c){return new Yo(this.j,b,c)};g.w($o,dn);g.h=$o.prototype;g.h.nw=function(){return null!=this.u.Ok};
g.h.xN=function(){var a={};this.Ga&&(a.mraid=this.Ga);this.ra&&(a.mlc=1);a.mtop=this.u.e0;this.K&&(a.mse=this.K);this.Ia&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.h.gq=function(a){var b=g.Ba.apply(1,arguments);try{return this.u.Ok[a].apply(this.u.Ok,b)}catch(c){um(538,c,.01,function(d){d.method=a})}};
g.h.initialize=function(){var a=this;if(this.isInitialized)return!this.by();this.isInitialized=!0;if(2===this.u.compatibility)return this.K="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.fail("w"),!1;$m().S=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?jha(this):yn(this.B,"load",function(){am().setTimeout(tm(292,function(){return jha(a)}),100)},292);
return!0};
g.h.yK=function(){var a=$m(),b=oha(this,"getMaxSize");a.j=new Am(0,b.width,b.height,0)};
g.h.zK=function(){$m().C=oha(this,"getScreenSize")};
g.h.dispose=function(){lha(this);dn.prototype.dispose.call(this)};g.h=bp.prototype;g.h.qx=function(a){Cn(a,!1);Gga(a)};
g.h.AB=function(){};
g.h.mz=function(a,b,c,d){var e=this;b=c?b:-1;c=this.PM();a=new lo(Fl,a,b,7,this.GF(),c.u(),c.B());a.Lg=d;gea(a.featureSet);yl(a.featureSet,"queryid",a.Lg);a.tI("");Yfa(a,function(){return e.NN.apply(e,g.u(g.Ba.apply(0,arguments)))},function(){return e.gW.apply(e,g.u(g.Ba.apply(0,arguments)))});
(d=Zl(yo).j)&&Ufa(a,d);a.Rh.Mp&&Zl(Pga);return a};
g.h.Ju=function(a){switch(a.Dn()){case 0:if(a=Zl(yo).j)a=a.j,g.Xb(a.D,this),a.Y&&this.Cm()&&ufa(a);dp();break;case 2:Ho()}};
g.h.Cp=function(){};
g.h.Cm=function(){return!1};
g.h.gW=function(a,b){a.Jp=!0;switch(a.Xl()){case 1:uha(a,b);break;case 2:this.DI(a)}this.UI()};
g.h.pW=function(a){var b=a.K(a);b&&(b=b.volume,a.ib=Ym(b)&&0<b);pga(a,0);return ro(a,"start",bn())};
g.h.Rv=function(a,b,c){Io(Go,[a],!bn());return this.Yl(a,b,c)};
g.h.Yl=function(a,b,c){return ro(a,c,bn())};
g.h.kW=function(a){return jp(a,"firstquartile",1)};
g.h.mW=function(a){a.Xa=!0;return jp(a,"midpoint",2)};
g.h.qW=function(a){return jp(a,"thirdquartile",3)};
g.h.hW=function(a){var b=jp(a,"complete",4);mo(a);return b};
g.h.iW=function(a){zl(dm().featureSet,"vveh")&&(a.Zg=3);return ro(a,"error",bn())};
g.h.JQ=function(a,b,c){b=bn();if(a.Kn()&&!b){var d=vm();a.uh().S=d}Io(Go,[a],!b);a.Kn()&&(a.Zg=1);return ro(a,c,b)};
g.h.oW=function(a,b){b=this.Rv(a,b||{},"skip");mo(a);return b};
g.h.lW=function(a,b){Cn(a,!0);return this.Rv(a,b||{},"fullscreen")};
g.h.jW=function(a,b){Cn(a,!1);return this.Rv(a,b||{},"exitfullscreen")};
g.h.mI=function(a,b,c){b=a.uh();var d=vm();b.Ia=fo(b,d,1!=a.Zg);Io(Go,[a],!bn());1==a.Zg&&(a.Zg=2);return ro(a,c,bn())};
g.h.nW=function(a){Io(Go,[a],!bn());return a.u()};
g.h.FG=function(a){Io(Go,[a],!bn());this.DQ(a);mo(a);return a.u()};
g.h.NN=function(){};
g.h.DI=function(){};
g.h.DQ=function(){};
g.h.BK=function(){};
g.h.UI=function(){};
g.h.HF=function(){};
g.h.PM=function(){this.j||(this.j=this.HF());return null==this.j?new Po:new Vo(this.j)};
g.h.GF=function(){return new Qo};g.w(kp,go);kp.prototype.j=function(a){return 4==a.nB()};g.w(lp,ho);lp.prototype.j=function(a){a=a.nB();return 3==a||4==a};g.w(mp,So);mp.prototype.u=function(){return new lp(this.j)};
mp.prototype.B=function(){return[new kp(this.j)]};g.w(np,ega);np.prototype.j=function(a){!a||4!==a.vs&&5!==a.vs||(a=Object.assign({},a,{vs:3}));var b=new $n;b.j=ao(a,TRa);b.u=ao(a,URa);return b};zha.prototype.u=function(){return g.Ia(this.j)};var sua={Y6:"EMBEDDED_PLAYER_MODE_UNKNOWN",V6:"EMBEDDED_PLAYER_MODE_DEFAULT",X6:"EMBEDDED_PLAYER_MODE_PFP",W6:"EMBEDDED_PLAYER_MODE_PFL"},tua={a$:"LIVING_ROOM_APP_MODE_UNSPECIFIED",X9:"LIVING_ROOM_APP_MODE_MAIN",W9:"LIVING_ROOM_APP_MODE_KIDS",Y9:"LIVING_ROOM_APP_MODE_MUSIC",Z9:"LIVING_ROOM_APP_MODE_UNPLUGGED",V9:"LIVING_ROOM_APP_MODE_GAMING"},Ama={sha:"WEB_DISPLAY_MODE_UNKNOWN",oha:"WEB_DISPLAY_MODE_BROWSER",qha:"WEB_DISPLAY_MODE_MINIMAL_UI",rha:"WEB_DISPLAY_MODE_STANDALONE",pha:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(op,bp);g.h=op.prototype;g.h.AB=function(a,b){var c=this,d=Zl(yo);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Dha(this,a,b);break;case "gsv":e=Cha(this,a,b);break;case "exc":e=Eha(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=wha(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Xl()&&(e.K==g.wg&&(e.K=function(f){return c.BK(f)}),Bha(this,e,b));
return e};
g.h.BK=function(a){a.u=0;a.va=0;if("h"==a.C||"n"==a.C){dm();a.Ua&&(dm(),"h"!=hp(this)&&hp(this));var b=g.Ia("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Lg)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ia("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Lg)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ia("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Lg)}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.Pf(c)?a.u|=32:null!=c.errorCode&&(a.va=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.S=0;for(var d in PRa)null==b[d]&&(a.S|=PRa[d]);yha(b,"currentTime");yha(b,"duration");Ym(c.volume)&&Ym()&&(c.volume*=NaN);return c};
g.h.HF=function(){dm();"h"!=hp(this)&&hp(this);var a=Fha(this);return null!=a?new zha(a):null};
g.h.DI=function(a){!a.j&&a.Jp&&ip(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.h.DQ=function(a){a.ZQ&&(a.Ln()?ip(this,a,"overlay_viewable_end_of_session_impression"):ip(this,a,"overlay_unviewable_impression"),a.ZQ=!1)};
g.h.NN=function(){};
g.h.UI=function(){};
g.h.mz=function(a,b,c,d){a=bp.prototype.mz.call(this,a,b,c,d);this.C&&(b=this.D,null==a.D&&(a.D=new Zfa),b.j[a.Lg]=a.D,a.D.D=WRa);return a};
g.h.qx=function(a){a&&1==a.Xl()&&this.C&&delete this.D.j[a.Lg];return bp.prototype.qx.call(this,a)};
g.h.PM=function(){this.j||(this.j=this.HF());return null==this.j?new Po:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.J?new mp(this.j):new Vo(this.j)};
g.h.GF=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.J?new np:new Qo};
var pp=new $n;pp.j="stopped";pp.u="stopped";var XRa=sm(193,qp,void 0,vha);g.Ha("Goog_AdSense_Lidar_sendVastEvent",XRa);var YRa=tm(194,function(a,b){b=void 0===b?{}:b;a=Iha(Zl(op),a,b);return Kha(a)});
g.Ha("Goog_AdSense_Lidar_getViewability",YRa);var ZRa=sm(195,function(){return Iea()});
g.Ha("Goog_AdSense_Lidar_getUrlSignalsArray",ZRa);var $Ra=tm(196,function(){return JSON.stringify(Iea())});
g.Ha("Goog_AdSense_Lidar_getUrlSignalsList",$Ra);var tja=(new Date).getTime();var aSa="client_dev_mss_url client_dev_regex_map client_dev_root_url client_rollout_override expflag jsfeat jsmode mods".split(" ");g.u(aSa);var Mha="://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(" "),Nha=/\bocr\b/;var Pha=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.w(up,g.ng);up.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Lk.sj(this.J);delete up.j};
up.prototype.tf=function(){return this.j};wp.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
wp.prototype.get=function(a){return!!this.data_[a]};g.Ua(g.xp,g.G);g.h=g.xp.prototype;g.h.start=function(){this.stop();this.C=!1;var a=Uha(this),b=Vha(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.cg(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(aba(this.B),20)};
g.h.stop=function(){if(this.isActive()){var a=Uha(this),b=Vha(this);a&&!b&&this.u.mozRequestAnimationFrame?kg(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.h.isActive=function(){return null!=this.j};
g.h.RS=function(){this.C&&this.j&&kg(this.j);this.j=null;this.J.call(this.D,g.Ta())};
g.h.qa=function(){this.stop();g.xp.Ke.qa.call(this)};g.Ua(g.L,g.G);g.h=g.L.prototype;g.h.qw=0;g.h.qa=function(){g.L.Ke.qa.call(this);this.stop();delete this.j;delete this.u};
g.h.start=function(a){this.stop();this.qw=g.Fi(this.B,void 0!==a?a:this.Wg)};
g.h.stop=function(){this.isActive()&&g.C.clearTimeout(this.qw);this.qw=0};
g.h.isActive=function(){return 0!=this.qw};
g.h.CK=function(){this.qw=0;this.j&&this.j.call(this.u)};Cp.prototype[Symbol.iterator]=function(){return this};
Cp.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};Jp.prototype.Ji=function(){return new Kp(this.u())};
Jp.prototype[Symbol.iterator]=function(){return new Lp(this.u())};
Jp.prototype.j=function(){return new Lp(this.u())};
g.w(Kp,g.Un);Kp.prototype.next=function(){return this.u.next()};
Kp.prototype[Symbol.iterator]=function(){return new Lp(this.u)};
Kp.prototype.j=function(){return new Lp(this.u)};
g.w(Lp,Jp);Lp.prototype.next=function(){return this.B.next()};g.h=g.Np.prototype;g.h.wj=function(){Pp(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.h.zn=function(){Pp(this);return this.j.concat()};
g.h.has=function(a){return Op(this.u,a)};
g.h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||Zha;Pp(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.h.isEmpty=function(){return 0==this.size};
g.h.clear=function(){this.u={};this.rq=this.size=this.j.length=0};
g.h.remove=function(a){return this.delete(a)};
g.h.delete=function(a){return Op(this.u,a)?(delete this.u[a],--this.size,this.rq++,this.j.length>2*this.size&&Pp(this),!0):!1};
g.h.get=function(a,b){return Op(this.u,a)?this.u[a]:b};
g.h.set=function(a,b){Op(this.u,a)||(this.size+=1,this.j.push(a),this.rq++);this.u[a]=b};
g.h.forEach=function(a,b){for(var c=this.zn(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new g.Np(this)};
g.h.keys=function(){return Mp(this.Ji(!0)).j()};
g.h.values=function(){return Mp(this.Ji(!1)).j()};
g.h.entries=function(){var a=this;return Wha(this.keys(),function(b){return[b,a.get(b)]})};
g.h.Ji=function(a){Pp(this);var b=0,c=this.rq,d=this,e=new g.Un;e.next=function(){if(c!=d.rq)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.H_;var f=d.j[b++];return g.Vn(a?f:d.u[f])};
return e};g.Ua(g.Qp,g.ng);g.h=g.Qp.prototype;g.h.Nc=function(){return 1==this.j};
g.h.oC=function(){this.uj("begin")};
g.h.Py=function(){this.uj("end")};
g.h.onFinish=function(){this.uj("finish")};
g.h.uj=function(a){this.dispatchEvent(a)};var bSa=xg(function(){if(g.Ec)return g.sc("10.0");var a=g.ci("DIV"),b=g.uf?"-webkit":Lm?"-moz":g.Ec?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!ARa.test("div"))throw Error("");if("DIV"in CRa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!ARa.test(l))throw Error("");var f=b[l];if(null!=f){var k=l;if(f instanceof Dg)f=Eg(f);else if("style"==k.toLowerCase()){if(!g.Ma(f))throw Error("");
f instanceof Vg||(f=Zg(f));f=Wg(f)}else{if(/^on/i.test(k))throw Error("");if(k.toLowerCase()in BRa)if(f instanceof Jg)f=Kg(f).toString();else if(f instanceof g.Ng)f=g.Og(f);else if("string"===typeof f)f=g.Sg(f).Oi();else throw Error("");}f.jm&&(f=f.Oi());k=k+'="'+jb(String(f))+'"';e+=" "+k}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===wRa.div?l+=">":(c=mba(d),l+=">"+g.dh(c).toString()+"</div>",c=c.Ct());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=kh(l,c);g.oh(a,b);return""!=
g.Mm(a.firstChild,"transition")});g.Ua(Rp,g.Qp);g.h=Rp.prototype;g.h.play=function(){if(this.Nc())return!1;this.oC();this.uj("play");this.startTime=g.Ta();this.j=1;if(bSa())return g.Km(this.u,this.K),this.C=g.Fi(this.v_,void 0,this),!0;this.eE(!1);return!1};
g.h.v_=function(){g.Vm(this.u);$ha(this.u,this.S);g.Km(this.u,this.D);this.C=g.Fi((0,g.Qa)(this.eE,this,!1),1E3*this.J)};
g.h.stop=function(){this.Nc()&&this.eE(!0)};
g.h.eE=function(a){g.Km(this.u,"transition","");g.C.clearTimeout(this.C);g.Km(this.u,this.D);this.endTime=g.Ta();this.j=0;if(a)this.uj("stop");else this.onFinish();this.Py()};
g.h.qa=function(){this.stop();Rp.Ke.qa.call(this)};
g.h.pause=function(){};var bia={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};Sp("Element","attributes")||Sp("Node","attributes");Sp("Element","innerHTML")||Sp("HTMLElement","innerHTML");Sp("Node","nodeName");Sp("Node","nodeType");Sp("Node","parentNode");Sp("Node","childNodes");Sp("HTMLElement","style")||Sp("Element","style");Sp("HTMLStyleElement","sheet");var hia=dia("getPropertyValue"),iia=dia("setProperty");Sp("Element","namespaceURI")||Sp("Node","namespaceURI");var gia={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Vp.prototype.clone=function(){return new g.Vp(this.j,this.K,this.B,this.D,this.C,this.J,this.u,this.S)};
g.Vp.prototype.equals=function(a){return this.j==a.j&&this.K==a.K&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.J==a.J&&this.u==a.u&&this.S==a.S};Xp.prototype.clone=function(){return new Xp(this.start,this.end)};var cSa=new WeakMap;(function(){if(xMa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.qb()))?a[1]:"0"}return xP?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.qb()))?a[0].replace(/_/g,"."):"10"):g.hs?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.qb()))?a[1]:""):hRa||iRa||jRa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.qb()))?a[1].replace(/_/g,"."):""):""})();var pia=function(){if(g.Fx)return Yp(/Firefox\/([0-9.]+)/);if(g.Ec||g.ot||g.pC)return rc;if(g.mA){if(Jb()||Kb()){var a=Yp(/CriOS\/([0-9.]+)/);if(a)return a}return Yp(/Chrome\/([0-9.]+)/)}if(g.Qs&&!Jb())return Yp(/Version\/([0-9.]+)/);if(yC||EE){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.qb()))return a[1]+"."+a[2]}else if(g.qC)return(a=Yp(/Android\s+([0-9.]+)/))?a:Yp(/Version\/([0-9.]+)/);return""}();g.Ua(g.$p,g.G);g.h=g.$p.prototype;g.h.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.J=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.yg(a)}return!1};
g.h.yg=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.Xb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.h.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.K)for(e=0;e<c.length;e++){var k=c[e];qia(this.j[k+1],this.j[k+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)k=c[e],this.j[k+1].apply(this.j[k+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.yg(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.yg,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.h.qa=function(){g.$p.Ke.qa.call(this);this.clear();this.B.length=0};g.aq.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Wi(b))};
g.aq.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.aq.prototype.remove=function(a){this.j.remove(a)};g.Ua(bq,g.aq);bq.prototype.set=function(a,b){bq.Ke.set.call(this,a,sia(b))};
bq.prototype.u=function(a){a=bq.Ke.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
bq.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ua(cq,bq);cq.prototype.set=function(a,b,c){if(b=sia(b)){if(c){if(c<g.Ta()){cq.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ta()}cq.Ke.set.call(this,a,b)};
cq.prototype.u=function(a,b){var c=cq.Ke.u.call(this,a);if(c)if(!b&&g.tia(c))cq.prototype.remove.call(this,a);else return c};g.Ua(g.dq,cq);g.Ua(eq,uia);eq.prototype[Symbol.iterator]=function(){return Mp(this.Ji(!0)).j()};
eq.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.Ua(fq,eq);g.h=fq.prototype;g.h.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.j.removeItem(a)};
g.h.Ji=function(a){var b=0,c=this.j,d=new g.Un;d.next=function(){if(b>=c.length)return g.H_;var e=c.key(b++);if(a)return g.Vn(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Vn(e)};
return d};
g.h.clear=function(){this.j.clear()};
g.h.key=function(a){return this.j.key(a)};g.Ua(gq,fq);g.Ua(via,fq);g.Ua(iq,eq);var wia={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},hq=null;g.h=iq.prototype;g.h.isAvailable=function(){return!!this.j};
g.h.set=function(a,b){this.j.setAttribute(jq(a),b);kq(this)};
g.h.get=function(a){a=this.j.getAttribute(jq(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.j.removeAttribute(jq(a));kq(this)};
g.h.Ji=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Un;d.next=function(){if(b>=c.length)return g.H_;var e=c[b++];if(a)return g.Vn(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Vn(e)};
return d};
g.h.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);kq(this)};g.Ua(lq,eq);lq.prototype.set=function(a,b){this.u.set(this.j+a,b)};
lq.prototype.get=function(a){return this.u.get(this.j+a)};
lq.prototype.remove=function(a){this.u.remove(this.j+a)};
lq.prototype.Ji=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.Un;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.Vn(a?e.slice(c.j.length):c.u.get(e))};
return d};nq.prototype.getKey=function(){return this.j};
nq.prototype.getValue=function(){return this.pd};
nq.prototype.clone=function(){return new nq(this.j,this.pd)};g.h=oq.prototype;g.h.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ub(a);else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2;f=k<d&&b[k].getKey()<b[f].getKey()?k:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.wj=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.zn=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.h.clone=function(){return new oq(this)};
g.h.isEmpty=function(){return 0===this.j.length};
g.h.clear=function(){Ub(this.j)};g.Ua(pq,oq);pq.prototype.enqueue=function(a,b){xia(this,a,b)};Ja(qq);qq.prototype.j=0;/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var sq="@@redux/INIT"+rq(),Cia="@@redux/REPLACE"+rq();var Dia="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(tq,g.F);tq.prototype.getType=function(){return be(this,11,0)};
g.w(uq,g.F);uq.prototype.getKey=function(){return ae(this,3)};
var Eia=[2,13,14],$Fa=[tq,2,oRa,4,y_,7,z_,9,z_,10,z_,11,pRa,12,z_,13,oRa,14,g.w_,[uq,1,y_,2,y_,3,y_,4,y_,5,z_],15,g.v_,16,g.v_,17,z_,1,pRa,3,g.v_,5,g.v_,6,g.v_,8,y_];g.w(vq,g.F);vq.prototype.getKey=function(){return g.Yd(this,1)};
vq.prototype.getValue=function(){return g.Yd(this,2===le(this,dSa)?2:-1)};
vq.prototype.setValue=function(a){return g.me(this,2,dSa,a)};
var dSa=[2,3,4,5,6];g.w(wq,g.F);g.w(xq,g.F);g.w(g.yq,g.F);g.yq.prototype.mp=ba(1);g.yq.prototype.getPlayerType=function(){return g.Yd(this,36)};
g.yq.prototype.setHomeGroupInfo=function(a){return re(this,81,a)};
var Gia=[9,66,24,32,86,100,101],qua={iga:0,iha:1,vha:32,Aha:61,Fha:67,Cha:86,uha:42,wha:60,nha:62,zha:73,yha:76,Dha:88,Eha:90,Gha:41,Hha:69,Iha:70,Jha:71,Xba:2,Yba:27,ANDROID:3,V1:54,W1:14,f2:91,X1:55,Y1:24,Z1:20,b2:18,e2:21,h2:30,m2:29,n2:28,o2:34,g2:36,d2:38,IOS:5,M8:15,X8:92,N8:40,P8:25,Q8:17,S8:19,T8:64,U8:66,V8:26,Z8:22,a9:33,b9:68,c9:35,W8:53,Y8:37,O8:39,Rfa:7,Sfa:57,Tfa:43,Vfa:59,Ufa:93,l2:74,Wfa:75,Xfa:85,Yfa:65,aga:80,cga:8,Pfa:10,fga:58,ega:63,Zfa:72,j2:23,Oha:11,Pha:13,g3:12,Qfa:16,tha:56,
Bha:31,Cba:77,Q7:84,xha:87,R7:89};g.w(Iia,g.F);var Hia=[15,26,28];g.w(zq,g.F);zq.prototype.setToken=function(a){return g.D(this,2,a)};g.w(Aq,g.F);Aq.prototype.setSafetyMode=function(a){return g.D(this,5,a)};
var Jia=[12];g.w(Bq,g.F);var Kia=[12];g.w(Mia,g.F);g.w(Cq,g.F);Cq.prototype.getKey=function(){return be(this,1,"")};
Cq.prototype.getValue=function(){return be(this,2,"")};
Cq.prototype.setValue=function(a){return g.D(this,2,a)};
var Lia=[4,5];g.w(Nia,g.F);g.w(Oia,g.F);var mpa=[2,3];g.w(Eq,g.F);Eq.prototype.getMessage=function(){return be(this,1,"")};g.w(Fq,g.F);g.w(Pia,g.F);g.w(Ria,g.F);var Qia=[10,17];g.w(Sia,g.F);g.w(Gq,g.F);Gq.prototype.al=function(a){g.D(this,1,a)};g.w(Tia,g.F);g.w(Hq,g.F);Hq.prototype.Ci=function(a){g.D(this,3,a)};
g.w(Uia,g.F);g.w(Iq,g.F);Iq.prototype.Ci=function(a){g.D(this,2,a)};
g.w(Wia,g.F);g.w(Jq,g.F);Jq.prototype.Ci=function(a){g.D(this,1,a)};
var Yia=[3];g.w(Kq,g.F);Kq.prototype.Ci=function(a){g.D(this,1,a)};
Kq.prototype.Dp=function(){return null!=g.Yd(this,2)};g.w(Lq,g.F);Lq.prototype.Ci=function(a){g.D(this,1,a)};
Lq.prototype.Dp=function(){return null!=g.Yd(this,2)};g.w(Mq,g.F);Mq.prototype.Ci=function(a){g.D(this,1,a)};
Mq.prototype.Dp=function(){return null!=g.Yd(this,2)};g.w($ia,g.F);g.w(Nq,g.F);Nq.prototype.Yb=function(){return ve(this,1)};
Nq.prototype.getVisibilityState=function(){return be(this,5,0)};
var aja=[16];g.w(Oq,g.F);g.w(Pq,g.F);Pq.prototype.getPlayerType=function(){return be(this,7,0)};
Pq.prototype.wh=function(){return be(this,19,"")};
Pq.prototype.setVideoId=function(a){return g.D(this,19,a)};
g.w(Qq,g.F);Qq.prototype.getId=function(){return be(this,2,"")};
var bja=[83,68];g.w(eja,g.F);g.w(fja,g.F);g.w(Sq,g.F);g.w(Tq,g.F);Tq.prototype.getContext=function(){return oe(this,Sq,33)};
var Gv=[23,24,11,6,7,5,2,3,20,21,28,32,37,229,241,45,59,225,288,72,73,78,208,156,202,215,74,76,79,80,111,85,91,97,100,102,105,119,126,127,136,146,157,158,159,163,164,168,176,222,383,177,178,179,411,184,188,189,190,191,193,194,195,196,198,199,200,201,203,204,205,206,258,259,260,261,209,226,227,232,233,234,240,247,248,251,254,255,270,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,328,330,331,332,337,338,340,344,348,350,351,352,353,354,355,356,357,358,361,363,364,368,369,370,373,374,375,
378,380,381,388,389,403,412,429,413,414,415,416,417,418,430,423,424,425,426,427,117];var ypa={B8:0,m8:1,s8:2,t8:4,y8:8,u8:16,v8:32,A8:64,z8:128,o8:256,q8:512,x8:1024,p8:2048,r8:4096,n8:8192,w8:16384};g.w(gja,g.F);g.w(Uq,g.F);Uq.prototype.wh=function(){return g.Yd(this,1===le(this,Uu)?1:-1)};
Uq.prototype.setVideoId=function(a){return g.me(this,1,Uu,a)};
Uq.prototype.getPlaylistId=function(){return g.Yd(this,2===le(this,Uu)?2:-1)};
var Uu=[1,2];g.w(Vq,g.F);Vq.prototype.getContext=function(){return oe(this,Bq,1)};
var hja=[3];g.w(Wq,g.F);g.w(Xq,g.F);var eSa;eSa=new af(406606992,{Fia:0},Xq,function(a,b){if(null!=b){var c={gl:cf(g.Yd(b,1)),hl:cf(g.Yd(b,2)),Dia:cf(g.Yd(b,3)),locale:cf(g.Yd(b,4)),Wia:cf(g.Yd(b,5))};a&&(c.YR=b);return c}});g.w(Yq,Xq);Qha(Yq);var L_=g.C.window,fSa,gSa,$q=(null==L_?void 0:null==(fSa=L_.yt)?void 0:fSa.config_)||(null==L_?void 0:null==(gSa=L_.ytcfg)?void 0:gSa.data_)||{},hSa,iSa=(null==L_?void 0:null==(hSa=L_.ytcfg)?void 0:hSa.obfuscatedData_)||[];g.w(Zq,Wq);Zq.prototype.bE=function(a){var b=br();406606992!==a.j||b&&b.jspb_i18n_extension||(a=new af(a.j,a.fieldName,Yq,a.C));return Wq.prototype.bE.call(this,a)};
Qha(Zq);var jSa=new Zq(iSa),kSa=br();if(!kSa||!kSa.jspb_i18n_extension){var lSa=new Yq;eSa.B(jSa,lSa)}g.Ha("yt.config_",$q);g.Ha("yt.configJspb_",iSa);var gr=[];var qja=/^[\w.]*$/,oja={q:!0,search_query:!0},nja=String(kr);var rja=new function(){var a=window.document;this.j=window;this.u=a};
g.Ha("yt.ads_.signals_.getAdSignalsString",function(a){return lr(ur(a))});g.Ta();var uja="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var wja={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},yja="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.u(aSa)),Nla=!1,Mxa=Er;g.w(Hr,Za);Kr.prototype.then=function(a,b,c){return 1===this.j&&a?(a=a.call(c,this.pd))&&"function"===typeof a.then?a:Mr(a):2===this.j&&b?(a=b.call(c,this.pd))&&"function"===typeof a.then?a:Lr(a):this};
Kr.prototype.getValue=function(){return this.pd};
Kr.prototype.$goog_Thenable=!0;var Nr=!1;Rr.prototype.Sg=function(a,b){return Sr(a,1,b)};g.w(Ur,Rr);Ur.prototype.sj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ia("yt.scheduler.instance.cancelJob");b?b(a):g.Dr(a)}};
Ur.prototype.start=function(){var a=g.Ia("yt.scheduler.instance.start");a&&a()};
Ur.prototype.pause=function(){var a=g.Ia("yt.scheduler.instance.pause");a&&a()};g.vp=g.Vr();var fs=yC||EE;g.w(ms,Za);ms.prototype.name="BiscottiError";g.w(ls,Za);ls.prototype.name="BiscottiMissingError";var hma={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ns=null;var ps=g.Ia("ytglobal.prefsUserPrefsPrefs_")||{};g.Ha("ytglobal.prefsUserPrefsPrefs_",ps);g.h=g.qs.prototype;g.h.get=function(a,b){us(a);ts(a);a=void 0!==ps[a]?ps[a].toString():null;return null!=a?a:b?b:""};
g.h.set=function(a,b){us(a);ts(a);if(null==b)throw Error("ExpectedNotNull");ps[a]=b.toString()};
g.h.remove=function(a){us(a);ts(a);delete ps[a]};
g.h.save=function(){var a=!0;g.Q("web_secure_pref_cookie_killswitch")&&(a=!1);g.Pr(this.j,this.dump(),63072E3,this.u,a)};
g.h.clear=function(){g.Qf(ps)};
g.h.dump=function(){var a=[],b;for(b in ps)a.push(b+"="+encodeURIComponent(String(ps[b])));return a.join("&")};
Ja(g.qs);var qma={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"},Bma={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_INVALID:31},Cma={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},sma={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};xs.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Wi(b))}catch(f){return}else e=escape(b);g.Pr(a,e,c,this.u)};
xs.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.Qr(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
xs.prototype.remove=function(a){this.j&&this.j.remove(a);g.$la(a,"/",this.u)};var M_;M_=window;g.R=M_.ytcsi&&M_.ytcsi.now?M_.ytcsi.now:M_.performance&&M_.performance.timing&&M_.performance.now&&M_.performance.timing.navigationStart?function(){return M_.performance.timing.navigationStart+M_.performance.now()}:function(){return(new Date).getTime()};var ys=function(){var a;return function(){a||(a=new xs("ytidb"));return a}}();var Es=[],As,Fs=!1;g.w(g.Is,Error);var N_={},Fma=(N_.AUTH_INVALID="No user identifier specified.",N_.EXPLICIT_ABORT="Transaction was explicitly aborted.",N_.IDB_NOT_SUPPORTED="IndexedDB is not supported.",N_.MISSING_INDEX="Index not created.",N_.MISSING_OBJECT_STORES="Object stores not created.",N_.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",N_.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",N_.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",N_.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",N_.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",N_.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",N_.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",N_),O_={},Gma=(O_.AUTH_INVALID="ERROR",O_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",O_.EXPLICIT_ABORT="IGNORED",
O_.IDB_NOT_SUPPORTED="ERROR",O_.MISSING_INDEX="WARNING",O_.MISSING_OBJECT_STORES="ERROR",O_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",O_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",O_.QUOTA_EXCEEDED="WARNING",O_.QUOTA_MAYBE_EXCEEDED="WARNING",O_.UNKNOWN_ABORT="WARNING",O_.INCOMPATIBLE_DB_VERSION="WARNING",O_),P_={},Hma=(P_.AUTH_INVALID=!1,P_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,P_.EXPLICIT_ABORT=!1,P_.IDB_NOT_SUPPORTED=!1,P_.MISSING_INDEX=!1,P_.MISSING_OBJECT_STORES=!1,P_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,P_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,P_.QUOTA_EXCEEDED=!1,P_.QUOTA_MAYBE_EXCEEDED=!0,P_.UNKNOWN_ABORT=!0,P_.INCOMPATIBLE_DB_VERSION=!1,P_);g.w(g.Ns,g.Is);g.w(Os,g.Ns);g.w(Ps,Error);var Ima=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.Us.all=function(a){return new g.Us(new Ts(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={gt:0};f.gt<a.length;f={gt:f.gt},++f.gt)g.Us.resolve(a[f.gt]).then(function(k){return function(l){d[k.gt]=l;e--;0===e&&b(d)}}(f)).catch(function(k){c(k)})}))};
g.Us.resolve=function(a){return new g.Us(new Ts(function(b,c){a instanceof g.Us?a.then(b,c):b(a)}))};
g.Us.reject=function(a){return new g.Us(new Ts(function(b,c){c(a)}))};
g.Us.prototype.then=function(a,b){var c=this,d=null!=a?a:Kma,e=null!=b?b:Jma;return new g.Us(new Ts(function(f,k){"PENDING"===c.state.status?(c.j.push(function(){Lma(c,c,d,f,k)}),c.onRejected.push(function(){Mma(c,c,e,f,k)})):"FULFILLED"===c.state.status?Lma(c,c,d,f,k):"REJECTED"===c.state.status&&Mma(c,c,e,f,k)}))};
g.Us.prototype.catch=function(a){return this.then(void 0,a)};g.h=Pma.prototype;g.h.advance=function(a){this.cursor.advance(a);return Ys(this.request)};
g.h.continue=function(a){this.cursor.continue(a);return Ys(this.request)};
g.h.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return Ys(this.request)};
g.h.getKey=function(){return this.cursor.key};
g.h.xB=function(){return this.cursor.primaryKey};g.h=Qma.prototype;g.h.add=function(a,b,c){return g.bt(this,[a],{mode:"readwrite",Lc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.h.clear=function(a){return g.bt(this,[a],{mode:"readwrite",Lc:!0},function(b){return b.objectStore(a).clear()})};
g.h.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.h.count=function(a,b){return g.bt(this,[a],{mode:"readonly",Lc:!0},function(c){return c.objectStore(a).count(b)})};
g.h.delete=function(a,b){return g.bt(this,[a],{mode:"readwrite",Lc:!0},function(c){return c.objectStore(a).delete(b)})};
g.h.get=function(a,b){return g.bt(this,[a],{mode:"readonly",Lc:!0},function(c){return c.objectStore(a).get(b)})};
g.h.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.h.getName=function(){return this.j.name};
g.h=Zs.prototype;g.h.add=function(a,b){return g.Ws(this.j.add(a,b))};
g.h.autoIncrement=function(){return this.j.autoIncrement};
g.h.clear=function(){return g.Ws(this.j.clear()).then(function(){})};
g.h.count=function(a){return g.Ws(this.j.count(a))};
g.h.delete=function(a){return a instanceof IDBKeyRange?Vma(this,a):g.Ws(this.j.delete(a))};
g.h.get=function(a){return g.Ws(this.j.get(a))};
g.h.index=function(a){try{return new ana(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Ps(a,this.j.name);throw b;}};
g.h.getName=function(){return this.j.name};
g.h.keyPath=function(){return this.j.keyPath};
dt.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.Ns("EXPLICIT_ABORT");};
dt.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new Zs(a),this.B.set(a,b));return b};
g.h=ana.prototype;g.h.count=function(a){return g.Ws(this.j.count(a))};
g.h.delete=function(a){return g.ht(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.h.get=function(a){return g.Ws(this.j.get(a))};
g.h.getKey=function(a){return g.Ws(this.j.getKey(a))};
g.h.keyPath=function(){return this.j.keyPath};
g.h.unique=function(){return this.j.unique};
g.h=bna.prototype;g.h.advance=function(a){this.cursor.advance(a);return gt(this.request)};
g.h.continue=function(a){this.cursor.continue(a);return gt(this.request)};
g.h.delete=function(){return g.Ws(this.cursor.delete()).then(function(){})};
g.h.getKey=function(){return this.cursor.key};
g.h.xB=function(){return this.cursor.primaryKey};
g.h.getValue=function(){return this.cursor.value};
g.h.update=function(a){return g.Ws(this.cursor.update(a))};kt.prototype.B=function(a,b,c){c=void 0===c?{}:c;return dna(a,b,c)};
kt.prototype.delete=function(a){a=void 0===a?{}:a;return jt(this.name,a)};
kt.prototype.open=function(){function a(){var f,k,l,m,n,p,q,t,v,x;return g.B(function(y){switch(y.j){case 1:return k=null!=(f=Error().stack)?f:"",g.ta(y,2),g.A(y,c.B(c.name,c.options.version,e),4);case 4:l=y.u;for(var z=c.options,E=[],J=g.r(Object.keys(z.Xr)),I=J.next();!I.done;I=J.next()){I=I.value;var N=z.Xr[I],Z=void 0===N.J_?Number.MAX_VALUE:N.J_;!(l.j.version>=N.No)||l.j.version>=Z||l.j.objectStoreNames.contains(I)||E.push(I)}m=E;if(0===m.length){y.Va(5);break}n=Object.keys(c.options.Xr);p=l.objectStoreNames();
if(c.J<g.dr("ytidb_reopen_db_retries",0))return c.J++,l.close(),Gs(new g.Ns("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());if(!(c.D<g.dr("ytidb_remake_db_retries",1))){y.Va(6);break}c.D++;if(!g.Q("ytidb_remake_db_enable_backoff_delay")){y.Va(7);break}return g.A(y,ena(c.u),8);case 8:c.u*=2;case 7:return g.A(y,c.delete(),9);case 9:return Gs(new g.Ns("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),
y.return(a());case 6:throw new Os(p,n);case 5:return y.return(l);case 2:q=g.va(y);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){y.Va(10);break}return g.A(y,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:t=y.u;v=t.j.version;if(void 0!==c.options.version&&v>c.options.version+
1)throw t.close(),c.C=!1,fna(c,v);return y.return(t);case 10:throw b(),q instanceof Error&&!g.Q("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+k.substring(k.indexOf("\n")+1)),Rs(q,c.name,"",null!=(x=c.options.version)?x:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw fna(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,q0:b,upgrade:this.options.upgrade};return this.j=d=a()};var mt=new kt("YtIdbMeta",{Xr:{databases:{No:1}},upgrade:function(a,b){b(1)&&g.$s(a,"databases",{keyPath:"actualName"})}});var qt,pt=new function(){}(new function(){});new g.Rj;g.h=ut.prototype;g.h.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.wd&&this.Ve){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Sf.set(d,this.wd).then(function(e){d.id=e;c.Mf.tf()&&vt(c,d)}).catch(function(e){vt(c,d);
wt(c,e)})}else this.jo(a,b)};
g.h.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.wd&&this.Ve){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.jb&&this.jb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Mf.tf()||this.jb&&this.jb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(k,l){return g.B(function(m){if(1==m.j)return g.A(m,d.Sf.set(e,d.wd).catch(function(n){wt(d,n)}),2);
f(k,l);g.sa(m)})}}this.jo(a,b,e.skipRetry)}else this.Sf.set(e,this.wd).catch(function(k){d.jo(a,b,e.skipRetry);
wt(d,k)})}else this.jo(a,b,this.jb&&this.jb("nwl_skip_retry")&&c)};
g.h.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.wd&&this.Ve){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(k,l){void 0!==d.id?c.Sf.ou(d.id,c.wd):e=!0;c.Mf.Rn&&c.jb&&c.jb("vss_network_hint")&&c.Mf.Rn(!0);f(k,l)};
this.jo(d.url,d.options);this.Sf.set(d,this.wd).then(function(k){d.id=k;e&&c.Sf.ou(d.id,c.wd)}).catch(function(k){wt(c,k)})}else this.jo(a,b)};
g.h.Jz=function(){var a=this;if(!this.wd)throw g.Ss("throttleSend");this.j||(this.j=this.Lk.Sg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,a.Sf.BN("NEW",a.wd),2);if(3!=c.j)return b=c.u,b?g.A(c,vt(a,b),3):(a.xM(),c.return());a.j&&(a.j=0,a.Jz());g.sa(c)})},this.nR))};
g.h.xM=function(){this.Lk.sj(this.j);this.j=0};zt.prototype.toString=function(){return this.topic};var mSa=g.Ia("ytPubsub2Pubsub2Instance")||new g.$p;g.$p.prototype.subscribe=g.$p.prototype.subscribe;g.$p.prototype.unsubscribeByKey=g.$p.prototype.yg;g.$p.prototype.publish=g.$p.prototype.ea;g.$p.prototype.clear=g.$p.prototype.clear;g.Ha("ytPubsub2Pubsub2Instance",mSa);var Ct=g.Ia("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ha("ytPubsub2Pubsub2SubscribedKeys",Ct);var Dt=g.Ia("ytPubsub2Pubsub2TopicToKeys")||{};g.Ha("ytPubsub2Pubsub2TopicToKeys",Dt);var yna=g.Ia("ytPubsub2Pubsub2IsAsync")||{};
g.Ha("ytPubsub2Pubsub2IsAsync",yna);g.Ha("ytPubsub2Pubsub2SkipSubKey",null);g.w(Gt,kt);Gt.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.yz?ona:nna)(a,b,Object.assign({},c))};
Gt.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.yz?sna:pna)(this.name,a)};var It;var nSa={},Hna=g.Ht("ServiceWorkerLogsDatabase",{Xr:(nSa.SWHealthLog={No:1},nSa),yz:!0,upgrade:function(a,b){b(1)&&g.et(g.$s(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Ot={},Nna=0;Pt.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
Pt.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
Pt.prototype.removeParams=function(a){return a.split("?")[0]};
Pt.prototype.removeParams=Pt.prototype.removeParams;Pt.prototype.isEndpointCFR=Pt.prototype.isEndpointCFR;Pt.prototype.requestComplete=Pt.prototype.requestComplete;Pt.getInstance=Qt;var Rt;var Una=g.dr("network_polling_interval",3E4);g.w(Tt,g.ng);g.h=Tt.prototype;g.h.tf=function(){if(g.Q("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.tf()}return this.u};
g.h.Rn=function(a){if(g.Q("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.u&&(this.u=a)};
g.h.fX=function(a){!g.Q("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.S||Tna(this))};
g.h.vG=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.h.uV=function(){this.J=!0};
g.h.Ma=function(a,b){return g.Q("use_shared_nsm")&&this.j?this.j.Ma(a,b):g.ng.prototype.Ma.call(this,a,b)};
g.h.oo=function(a){var b=this;if(g.Q("use_shared_nsm")&&this.j){var c=tp(this.j,a);c.then(function(d){g.Q("use_cfr_monitor")&&Qt().requestComplete("generate_204",d)});
return c}return this.D?this.D:this.D=new Promise(function(d){var e,f,k,l;return g.B(function(m){switch(m.j){case 1:return e=window.AbortController?new window.AbortController:void 0,k=null==(f=e)?void 0:f.signal,l=!1,g.ta(m,2,3),e&&(b.K=g.vp.Sg(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD",
signal:k}),5);case 5:l=!0;case 3:g.wa(m);g.Q("use_cfr_monitor")&&Qt().requestComplete("generate_204",l);b.D=void 0;b.K&&g.vp.sj(b.K);l!==b.u&&(b.u=l,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));d(l);g.xa(m,0);break;case 2:g.va(m),l=!1,m.Va(3)}})})};
Tt.prototype.sendNetworkCheckRequest=Tt.prototype.oo;Tt.prototype.listen=Tt.prototype.Ma;Tt.prototype.enableErrorFlushing=Tt.prototype.uV;Tt.prototype.getWindowStatus=Tt.prototype.vG;Tt.prototype.monitorNetworkStatusChange=Tt.prototype.fX;Tt.prototype.networkStatusHint=Tt.prototype.Rn;Tt.prototype.isNetworkAvailable=Tt.prototype.tf;Tt.getInstance=Sna;g.w(g.Ut,g.ng);g.Ut.prototype.tf=function(){var a=g.Ia("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0};
g.Ut.prototype.Rn=function(a){var b=g.Ia("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)};
g.Ut.prototype.oo=function(a){var b=this,c;return g.B(function(d){c=g.Ia("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return g.Q("skip_network_check_if_cfr")&&Qt().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Rn((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.tf())})):c?d.return(c(a)):d.return(!0)})};var Xt;g.w(Vt,ut);Vt.prototype.writeThenSend=function(a,b){b||(b={});g.Ks()||(this.Ve=!1);ut.prototype.writeThenSend.call(this,a,b)};
Vt.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Ks()||(this.Ve=!1);ut.prototype.sendThenWrite.call(this,a,b,c)};
Vt.prototype.sendAndWrite=function(a,b){b||(b={});g.Ks()||(this.Ve=!1);ut.prototype.sendAndWrite.call(this,a,b)};
Vt.prototype.awaitInitialization=function(){return this.u.promise};var eu=0,gu=0,hu,fu=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:gu};g.Ha("ytNetworklessLoggingInitializationOptions",fu);g.iu.prototype.isReady=function(){!this.config_&&uma()&&(this.config_=g.vs());return!!this.config_};var Hoa={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},Goa={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 oSa=0,ku=g.uf?"webkit":Lm?"moz":g.Ec?"ms":g.pC?"o":"",pSa=g.Ia("ytDomDomGetNextId")||function(){return++oSa};
g.Ha("ytDomDomGetNextId",pSa);var eoa={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};mu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
mu.prototype.lO=function(){return this.event?!1===this.event.returnValue:!1};
mu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
mu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var nu=g.C.ytEventsEventsListeners||{};g.Ha("ytEventsEventsListeners",nu);var hoa=g.C.ytEventsEventsCounter||{count:0};g.Ha("ytEventsEventsCounter",hoa);var Qoa=xg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),ioa=xg(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var $B=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Ua(zu,g.G);zu.prototype.Y=function(a){void 0===a.j&&foa(a);var b=a.j;void 0===a.u&&foa(a);this.j=new g.wh(b,a.u)};
zu.prototype.wp=function(){return this.j||new g.wh};
zu.prototype.Z=function(){if(this.j){var a=$B();if(0!=this.C){var b=this.J,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.j;this.B=(this.B+1)%4}};
zu.prototype.qa=function(){window.clearInterval(this.S);g.pu(this.ma)};var Cu={};var qSa,Fu,Hu;qSa=g.C.ytPubsubPubsubInstance||new g.$p;Fu=g.C.ytPubsubPubsubSubscribedKeys||{};Hu=g.C.ytPubsubPubsubTopicToKeys||{};g.Gu=g.C.ytPubsubPubsubIsSynchronous||{};g.$p.prototype.subscribe=g.$p.prototype.subscribe;g.$p.prototype.unsubscribeByKey=g.$p.prototype.yg;g.$p.prototype.publish=g.$p.prototype.ea;g.$p.prototype.clear=g.$p.prototype.clear;g.Ha("ytPubsubPubsubInstance",qSa);g.Ha("ytPubsubPubsubTopicToKeys",Hu);g.Ha("ytPubsubPubsubIsSynchronous",g.Gu);
g.Ha("ytPubsubPubsubSubscribedKeys",Fu);var woa=g.dr("initial_gel_batch_timeout",2E3),Foa=Math.pow(2,16)-1,Ou=void 0,Qu=new poa,Pu=new poa,Xu=!0,Mu=g.C.ytLoggingTransportGELQueue_||new Map;g.Ha("ytLoggingTransportGELQueue_",Mu);var Nu=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ha("ytLoggingTransportGELProtoQueue_",Nu);var Wu=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Ha("ytLoggingTransportTokensToCttTargetIds_",Wu);var Vu=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Ha("ytLoggingTransportTokensToJspbCttTargetIds_",Vu);var Yu=g.C.ytLoggingGelSequenceIdObj_||{};g.Ha("ytLoggingGelSequenceIdObj_",Yu);var Joa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Ooa={};g.w(fv,g.G);fv.prototype.T=function(a,b,c,d,e){c=ir((0,g.Qa)(c,d||this.Xa));c={target:a,name:b,callback:c};var f;e&&Qoa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c};
fv.prototype.xc=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b]==a){this.J.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
fv.prototype.qa=function(){g.hv(this);g.G.prototype.qa.call(this)};g.Ua(g.iv,g.G);g.iv.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Ne.subscribe(a,b,c)};
g.iv.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Ne.unsubscribe(a,b,c)};
g.iv.prototype.yg=function(a){return this.isDisposed()?!1:this.Ne.yg(a)};
g.iv.prototype.ea=function(a,b){return this.isDisposed()?!1:this.Ne.ea.apply(this.Ne,arguments)};g.w(g.mv,g.iv);g.h=g.mv.prototype;g.h.cancel=function(){this.B&&(this.B=!1,this.ea("dragend",0,0,null));this.u&&(this.u=!1,this.ea("hoverend",0,0,null),ov(this),lv(this))};
g.h.ZO=function(a){ov(this);nv(this,pv("move"),this.XO);nv(this,pv("out"),this.YO);nv(this,"touchstart",this.DJ);this.j&&nv(this,pv("down"),this.BH);var b=g.qu(a);a=uu(a);this.u=!0;this.ea("hoverstart",a.x,a.y,b);this.ea("hovermove",a.x,a.y,b)};
g.h.XO=function(a){var b=g.qu(a);a=uu(a);if(this.D){var c=this.D;this.D=null;if(tu(c)==b&&xh(uu(c),a))return}this.ea("hovermove",a.x,a.y,b)};
g.h.YO=function(a){var b=uu(a),c=tu(a);try{if(c&&g.ii(this.J,c)){this.D=a;this.ea("hovermove",b.x,b.y,c);return}}catch(d){}ov(this);lv(this);this.u=!1;this.ea("hoverend",b.x,b.y,c)};
g.h.hX=function(a){this.ZO(a);this.BH(a)};
g.h.BH=function(a){if("number"!==typeof a.button||0==a.button){ov(this);this.C.T(document,pv("move"),this.gX);this.C.T(document,pv("up"),this.lX);var b=g.qu(a);if(g.uf)nv(this,"dragstart",this.rV);else if(g.vu(a),(g.YC||Lm)&&b)a:{for(var c=b;c;){if(li(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=uu(a);this.ea("dragstart",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)}};
g.h.rV=function(a){g.vu(a)};
g.h.gX=function(a){var b=g.qu(a);b==document&&(b=null);a=uu(a);this.ea("hovermove",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)};
g.h.lX=function(a){ov(this);this.B=!1;var b=ru(a),c=g.qu(a);a=uu(a);b&&g.ii(this.J,b)?(nv(this,pv("move"),this.XO),nv(this,pv("out"),this.YO),nv(this,pv("down"),this.BH),nv(this,"touchstart",this.DJ),this.ea("dragend",a.x,a.y,c)):(lv(this),this.u=!1,this.ea("dragend",a.x,a.y,c),this.ea("hoverend",a.x,a.y,c))};
g.h.DJ=function(a){var b=a.changedTouches[0];b&&(ov(this),nv(this,"touchmove",this.z0),nv(this,"touchend",this.tR),nv(this,"touchcancel",this.tR),this.K=b.identifier,a=g.qu(a),this.u||(this.u=!0,this.ea("hoverstart",b.pageX,b.pageY,a)),this.ea("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ea("dragstart",b.pageX,b.pageY,a),this.ea("dragmove",b.pageX,b.pageY,a)))};
g.h.z0=function(a){var b=Roa(this,a);b&&(this.j&&g.vu(a),a=g.qu(a),this.ea("hovermove",b.pageX,b.pageY,a),this.j&&this.ea("dragmove",b.pageX,b.pageY,a))};
g.h.tR=function(a){var b=Roa(this,a);if(b){ov(this);lv(this);this.u=!1;var c=g.qu(a);this.j&&(this.S||g.vu(a),this.B=!1,this.ea("dragend",b.pageX,b.pageY,c));this.ea("hoverend",b.pageX,b.pageY,c)}};
g.h.qa=function(){this.j&&(g.uf&&this.J.removeAttribute("draggable"),this.J.style.touchAction="");ov(this);g.iv.prototype.qa.call(this)};yv.prototype.clone=function(){var a=new yv,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ka(c)?g.Uf(c):c}return a};var LAa=["att/get"],nBa=["embedded_player"],rSa=["share/get_web_player_share_panel"],sSa=["feedback"],tSa=["notification/modify_channel_preference"],mLa=["player"],uSa=["browse/edit_playlist"],vSa=["subscription/subscribe"],wSa=["subscription/unsubscribe"],pLa=["next","unplugged/watch_next"];var hpa=[{xH:function(a){return"Cannot read property '"+a.key+"'"},
FC:{Error:[{Ch:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ch:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ch:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ch:/\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"]},{Ch:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ch:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ch:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{xH:function(a){return"Cannot call '"+a.key+"'"},
FC:{TypeError:[{Ch:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ch:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ch:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ch:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ch:/\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"]},
{Ch:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{xH:function(a){return a.key+" is not defined"},
FC:{ReferenceError:[{Ch:/(.*) is not defined/,groups:["key"]},{Ch:/Can't find variable: (.*)/,groups:["key"]}]}}];var Woa={Qn:[],Ro:[{callback:Toa,weight:500}]};var zv;var Kv=new g.$p;var Zoa=g.C.ytLoggingGelSequenceIdObj_||{};g.Ha("ytLoggingGelSequenceIdObj_",Zoa);var ipa=new Set,fpa=0,kpa=0,jpa=0,gpa=[],npa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var ppa=1;Lv.prototype.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);return a};
Lv.prototype.getAsJspb=function(){var a=new Gq;void 0!==this.j.trackingParams?a.al(this.j.trackingParams):(void 0!==this.j.veType&&g.D(a,2,this.j.veType),void 0!==this.j.veCounter&&g.D(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&g.D(a,3,this.j.elementIndex));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();re(a,7,b)}void 0!==this.j.youtubeData&&re(a,8,this.j.jspbYoutubeData);return a};
Lv.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Lv.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};var Nv=Date.now().toString();var Q_=g.C.ytLoggingDocDocumentNonce_;Q_||(Q_=g.Pv(16),g.Ha("ytLoggingDocDocumentNonce_",Q_));var vpa=Q_;var Dxa={mS:0,Z2:1,w3:2,Waa:3,D6:4,bha:5,Vba:6,rea:7,Cda:8,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS"};g.Ha("yt_logging_screen.getRootVeType",spa);g.Ha("yt_logging_screen.getCurrentCsn",g.Tv);g.Ha("yt_logging_screen.getCttAuthInfo",Uv);g.Ha("yt_logging_screen.setCurrentScreen",wpa);g.w(Vv,xt);var zpa=new zt("screen-created",Vv),Zv=[],xpa=Dpa,$v=0;var xSa={Y2:3611,g1:27686,j1:85013,l1:23462,n1:42016,o1:62407,q1:26926,m1:43781,t1:51236,u1:79148,v1:50160,w1:77504,S1:87907,T1:18630,q2:54445,s2:80935,A2:105675,B2:37521,C2:147285,D2:47786,F2:98349,G2:123695,K2:6827,L2:29434,W2:7282,X2:124448,l3:32276,j3:76278,m3:147868,n3:147869,o3:93911,r3:106531,s3:27259,t3:27262,u3:27263,x3:21759,y3:27107,z3:62936,A3:49568,C3:38408,D3:80637,E3:68727,F3:68728,G3:80353,H3:80356,I3:74610,J3:45707,K3:83962,L3:83970,M3:46713,N3:89711,O3:74612,P3:93265,Q3:74611,R3:131380,
T3:128979,U3:139311,V3:128978,S3:131391,W3:105350,Y3:139312,Z3:134800,X3:131392,b4:113533,d4:93252,e4:99357,g4:94521,h4:114252,i4:113532,j4:94522,f4:94583,l4:88E3,m4:139580,n4:93253,o4:93254,p4:94387,q4:94388,r4:93255,s4:97424,a4:72502,t4:110111,v4:76019,x4:117092,y4:117093,w4:89431,z4:110466,A4:77240,B4:60508,C4:148123,D4:148124,E4:137401,F4:137402,G4:137046,H4:73393,I4:113534,J4:92098,K4:131381,L4:84517,M4:83759,N4:80357,O4:86113,P4:72598,Q4:72733,R4:107349,S4:124275,T4:118203,U4:133275,V4:133274,
W4:133272,X4:133273,Y4:133276,Z4:144507,a5:143247,b5:143248,c5:143249,d5:143250,e5:143251,f5:144401,h5:117431,g5:133797,i5:128572,j5:133405,k5:117429,l5:117430,m5:117432,n5:120080,o5:117259,p5:121692,q5:145656,r5:145655,s5:145653,t5:145654,u5:145657,v5:132972,w5:133051,x5:133658,y5:132971,z5:97615,B5:143359,A5:143356,D5:143361,C5:143358,F5:143360,E5:143357,G5:142303,H5:143353,I5:143354,J5:144479,K5:143355,L5:31402,N5:133624,O5:146477,P5:133623,Q5:133622,M5:133621,R5:84774,S5:95117,T5:98930,U5:98931,
V5:98932,W5:43347,X5:129889,Y5:149123,Z5:45474,a6:100352,b6:84758,c6:98443,d6:117985,e6:74613,f6:74614,g6:64502,h6:136032,i6:74615,j6:74616,k6:122224,l6:74617,m6:77820,n6:74618,o6:93278,p6:93274,q6:93275,r6:93276,s6:22110,t6:29433,w6:133798,x6:132295,A6:120541,E6:82047,F6:113550,G6:75836,H6:75837,L6:42352,P6:84512,Q6:76065,S6:75989,a7:16623,b7:32594,c7:27240,e7:32633,o7:74858,r7:3945,q7:16989,s7:45520,t7:25488,u7:25492,v7:25494,x7:55760,y7:14057,A7:18451,B7:57204,C7:57203,D7:17897,E7:57205,F7:18198,
G7:17898,H7:17909,I7:43980,J7:46220,T7:11721,V7:147994,X7:49954,c8:96369,d8:3854,k8:56251,l8:25624,H8:16906,I8:99999,K8:68172,L8:27068,e9:47973,f9:72773,g9:26970,h9:26971,i9:96805,j9:17752,k9:73233,l9:109512,m9:22256,n9:14115,o9:22696,p9:89278,q9:89277,r9:109513,s9:43278,t9:43459,u9:43464,v9:89279,w9:43717,x9:55764,y9:22255,z9:147912,A9:89281,B9:40963,C9:43277,D9:43442,F9:91824,H9:120137,J9:96367,K9:36850,L9:72694,M9:37414,N9:36851,P9:124863,O9:121343,Q9:73491,R9:54473,S9:43375,T9:46674,g$:143815,
h$:139095,i$:144402,j$:149968,k$:149969,l$:32473,p$:72901,q$:72906,r$:50947,s$:50612,t$:50613,u$:50942,v$:84938,w$:84943,x$:84939,y$:84941,z$:84944,A$:84940,B$:84942,C$:35585,D$:51926,E$:79983,F$:63238,G$:18921,H$:63241,I$:57893,J$:41182,K$:135732,L$:33424,M$:22207,N$:42993,O$:36229,P$:22206,Q$:22205,R$:18993,S$:19001,T$:18990,U$:18991,V$:18997,W$:18725,X$:19003,Y$:36874,Z$:44763,aaa:33427,baa:67793,caa:22182,daa:37091,eaa:34650,faa:50617,haa:47261,iaa:22287,jaa:25144,maa:97917,oaa:62397,paa:125598,
qaa:137935,raa:36961,saa:108035,taa:27426,uaa:27857,vaa:27846,waa:27854,xaa:69692,yaa:61411,zaa:39299,Aaa:38696,Baa:62520,Caa:36382,Daa:108701,Eaa:50663,Faa:36387,Gaa:14908,Haa:37533,Iaa:105443,Jaa:61635,Kaa:62274,Laa:133818,Maa:65702,Naa:65703,Oaa:65701,Paa:76256,Raa:37671,Saa:49953,Zaa:36216,aba:28237,bba:39553,cba:29222,dba:26107,eba:38050,fba:26108,jba:120745,hba:26109,kba:26110,lba:66881,mba:28236,nba:14586,rba:57929,uba:74723,vba:44098,wba:44099,zba:23528,Aba:61699,xba:134104,yba:134103,Bba:59149,
Dba:101951,Eba:97346,Fba:118051,Gba:95102,Hba:64882,Iba:119505,Jba:63595,Kba:63349,Lba:95101,Mba:75240,Nba:27039,Oba:68823,Pba:21537,Qba:83464,Rba:75707,Sba:83113,Tba:101952,Uba:101953,Wba:79610,cca:125755,dca:24402,eca:24400,fca:32925,gca:57173,ica:122502,jca:145268,kca:138480,lca:64423,mca:64424,nca:33986,oca:100828,pca:129089,qca:21409,Gca:135155,Hca:135156,Ica:135157,Jca:135158,Kca:135159,Lca:135160,Mca:135161,Nca:135162,Oca:135163,Pca:135164,Qca:135165,Rca:135166,Dca:11070,Eca:11074,Fca:17880,
Sca:14001,Uca:30709,Vca:30707,Wca:30711,Xca:30710,Yca:30708,Tca:26984,Zca:146143,bda:63648,cda:63649,fda:51879,kda:111059,mda:5754,nda:20445,sda:130975,rda:130976,tda:110386,vda:113746,wda:66557,Dda:17310,Eda:28631,Gda:21589,Hda:68012,Ida:60480,Jda:138664,Kda:141121,Lda:31571,Mda:141978,Qda:76980,Uda:41577,Vda:45469,aea:38669,bea:13768,cea:13777,fea:141842,gea:62985,hea:4724,iea:59369,jea:43927,lea:43928,oea:12924,qea:100355,tea:56219,uea:27669,vea:10337,sea:47896,wea:122629,yea:139723,xea:139722,
zea:121258,Aea:107598,Bea:127991,Cea:96639,Dea:107536,Eea:130169,Fea:96661,Gea:145188,Hea:96658,Iea:116646,Jea:121122,Kea:96660,Lea:127738,Mea:127083,Nea:147842,Oea:104443,Pea:96659,Qea:147595,Rea:106442,Tea:134840,Xea:63667,Yea:63668,Zea:63669,afa:130686,efa:147036,gfa:78314,ifa:147799,kfa:148649,mfa:55761,nfa:127098,ofa:134841,sfa:96368,tfa:67374,ufa:48992,xfa:146176,yfa:49956,Cfa:31961,Dfa:26388,Ifa:23811,Jfa:5E4,Kfa:126250,Mfa:96370,Nfa:47355,Ofa:47356,dga:37935,gga:45521,hga:21760,jga:83769,
kga:49977,lga:49974,nga:93497,oga:93498,pga:34325,rga:140759,tga:115803,vga:123707,wga:100081,xga:35309,yga:68314,zga:25602,Aga:100339,Bga:143516,Dga:59018,Ega:18248,Fga:50625,Gga:9729,Hga:37168,Iga:37169,Jga:21667,Kga:16749,Lga:18635,Mga:39305,Nga:18046,Pga:53969,Qga:8213,Sga:93926,Vga:102852,Wga:110099,Xga:22678,Yga:69076,Zga:137575,cha:139224,dha:100856,fha:17736,gha:3832,hha:147111,lha:55759,mha:64031,Kha:93044,Mha:93045,Qha:34388,Rha:17657,Sha:17655,Tha:39579,Uha:39578,Vha:77448,Wha:8196,Xha:11357,
Yha:69877,Zha:8197,bia:82039};dw.prototype.clear=function(){this.u.clear();this.j.clear();this.B.clear()};
Ja(dw);var fw;g.ew=xg(function(){var a=new gq;return a.isAvailable()?new g.dq(a):null});
fw=xg(function(){var a=new via;return a.isAvailable()?new g.dq(a):null});var Gpa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Hpa=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Kpa={};g.w(pw,g.G);var Spa=!1;g.w(ww,g.G);ww.prototype.GG=function(){var a=this.j().qG("SLOT_TYPE_PLAYER_BYTES",1),b=rw(this.Qa.get(),1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.Rb instanceof vw?d.Rb.qq:void 0;e&&e===b&&(c&&S("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
ww.prototype.ri=function(a,b,c,d,e,f){var k=this,l=rw(this.Qa.get(),1);l.Uq?this.Fa.get().lr():(qw(this.Sb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Qpa(k.Dd.get(),d,e,a,b,f,l)}),WQa(this.WE))};
ww.prototype.Sk=function(){};var R_={},Iw=(R_.AD_MARKER="ytp-ad-progress",R_.CHAPTER_MARKER="ytp-chapter-marker",R_.TIME_MARKER="ytp-time-marker",R_);var oMa=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/)"),Vpa=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/)"),
Wpa=RegExp("^https?://(music|music-green-qa|music-release-qa)\\.youtube\\.com/"),pMa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),cqa=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)|$))"),
aqa=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)|$))"),Ypa=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/)"),
qMa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Zpa=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)"),Xpa=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/.*$)"),
mua=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)"),
lua=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)"),
ySa=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.Jw.prototype.getId=function(){return this.id};
g.Jw.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+gqa(this.start)+", "+gqa(this.end)+"]"};
g.Jw.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 fqa=1;g.Jw.prototype.getId=g.Jw.prototype.getId;g.w(Nw,g.Jw);Nw.prototype.deactivate=function(){this.B=!0};
Nw.prototype.Jx=function(){return this.end-this.start};var S_;var zSa=g.qb(),ASa=zSa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ASa||2>ASa.length)S_=void 0;else{var T_=zSa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);S_=T_&&6==T_.length?Number(T_[5].replace("_",".")):0}var FE=S_,UK=0<=FE;UK&&0<=g.qb().search("Safari")&&g.qb().search("Version");g.w(Sw,xt);g.w(kqa,xt);var rqa=new zt("aft-recorded",Sw),BSa=new zt("timing-sent",kqa);var U_=window,Uw=U_.performance||U_.mozPerformance||U_.msPerformance||U_.webkitPerformance||new lqa;var qqa=!1,Ex={'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"},
Cqa=(0,g.Qa)(Uw.clearResourceTimings||Uw.webkitClearResourceTimings||Uw.mozClearResourceTimings||Uw.msClearResourceTimings||Uw.oClearResourceTimings||g.wg,Uw);var V_={},wqa=(V_.auto_search="LATENCY_ACTION_AUTO_SEARCH",V_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",V_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",V_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",V_.app_startup="LATENCY_ACTION_APP_STARTUP",V_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",V_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",V_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",V_.browse="LATENCY_ACTION_BROWSE",V_.cast_splash="LATENCY_ACTION_CAST_SPLASH",
V_.channels="LATENCY_ACTION_CHANNELS",V_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",V_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",V_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",V_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",V_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",V_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",V_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",
V_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",V_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",V_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",V_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",V_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",V_.chips="LATENCY_ACTION_CHIPS",V_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",V_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",
V_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",V_.embed="LATENCY_ACTION_EMBED",V_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",V_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",V_.explore="LATENCY_ACTION_EXPLORE",V_.home="LATENCY_ACTION_HOME",V_.library="LATENCY_ACTION_LIBRARY",V_.live="LATENCY_ACTION_LIVE",V_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",V_.onboarding="LATENCY_ACTION_ONBOARDING",V_.parent_profile_settings=
"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",V_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",V_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",V_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",V_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",V_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",V_.prebuffer="LATENCY_ACTION_PREBUFFER",V_.prefetch="LATENCY_ACTION_PREFETCH",V_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",V_.profile_switcher="LATENCY_ACTION_LOGIN",
V_.reel_watch="LATENCY_ACTION_REEL_WATCH",V_.results="LATENCY_ACTION_RESULTS",V_.search_ui="LATENCY_ACTION_SEARCH_UI",V_.search_suggest="LATENCY_ACTION_SUGGEST",V_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",V_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",V_.seek="LATENCY_ACTION_PLAYER_SEEK",V_.settings="LATENCY_ACTION_SETTINGS",V_.tenx="LATENCY_ACTION_TENX",V_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",V_.watch="LATENCY_ACTION_WATCH",V_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",
V_["watch,watch7"]="LATENCY_ACTION_WATCH",V_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",V_["watch,watch7ad"]="LATENCY_ACTION_WATCH",V_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",V_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",V_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",V_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",V_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",V_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",V_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",
V_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",V_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",V_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",V_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",V_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",V_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",V_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",V_.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",V_),W_={},xqa=(W_.ad_allowed="adTypesAllowed",W_.yt_abt="adBreakType",W_.ad_cpn="adClientPlaybackNonce",W_.ad_docid="adVideoId",W_.yt_ad_an="adNetworks",W_.ad_at="adType",W_.aida="appInstallDataAgeMs",W_.browse_id="browseId",W_.p="httpProtocol",W_.t="transportProtocol",W_.cs="commandSource",W_.cpn="clientPlaybackNonce",W_.ccs="creatorInfo.creatorCanaryState",W_.ctop="creatorInfo.topEntityType",W_.csn="clientScreenNonce",W_.docid="videoId",W_.GetHome_rid="requestIds",
W_.GetSearch_rid="requestIds",W_.GetPlayer_rid="requestIds",W_.GetWatchNext_rid="requestIds",W_.GetBrowse_rid="requestIds",W_.GetLibrary_rid="requestIds",W_.is_continuation="isContinuation",W_.is_nav="isNavigation",W_.b_p="kabukiInfo.browseParams",W_.is_prefetch="kabukiInfo.isPrefetch",W_.is_secondary_nav="kabukiInfo.isSecondaryNav",W_.nav_type="kabukiInfo.navigationType",W_.prev_browse_id="kabukiInfo.prevBrowseId",W_.query_source="kabukiInfo.querySource",W_.voz_type="kabukiInfo.vozType",W_.yt_lt=
"loadType",W_.mver="creatorInfo.measurementVersion",W_.yt_ad="isMonetized",W_.nr="webInfo.navigationReason",W_.nrsu="navigationRequestedSameUrl",W_.pnt="performanceNavigationTiming",W_.prt="playbackRequiresTap",W_.plt="playerInfo.playbackType",W_.pis="playerInfo.playerInitializedState",W_.paused="playerInfo.isPausedOnLoad",W_.yt_pt="playerType",W_.fmt="playerInfo.itag",W_.yt_pl="watchInfo.isPlaylist",W_.yt_pre="playerInfo.preloadType",W_.yt_ad_pr="prerollAllowed",W_.pa="previousAction",W_.yt_red=
"isRedSubscriber",W_.rce="mwebInfo.responseContentEncoding",W_.rc="resourceInfo.resourceCache",W_.scrh="screenHeight",W_.scrw="screenWidth",W_.st="serverTimeMs",W_.ssdm="shellStartupDurationMs",W_.br_trs="tvInfo.bedrockTriggerState",W_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",W_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",W_.label="tvInfo.label",W_.is_mdx="tvInfo.isMdx",W_.preloaded="tvInfo.isPreloaded",W_.aac_type="tvInfo.authAccessCredentialType",W_.upg_player_vis="playerInfo.visibilityState",
W_.query="unpluggedInfo.query",W_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",W_.yt_vst="videoStreamType",W_.vph="viewportHeight",W_.vpw="viewportWidth",W_.yt_vis="isVisible",W_.rcl="mwebInfo.responseContentLength",W_.GetSettings_rid="requestIds",W_.GetTrending_rid="requestIds",W_.GetMusicSearchSuggestions_rid="requestIds",W_.REQUEST_ID="requestIds",W_),yqa="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
X_={},zqa=(X_.ccs="CANARY_STATE_",X_.mver="MEASUREMENT_VERSION_",X_.pis="PLAYER_INITIALIZED_STATE_",X_.yt_pt="LATENCY_PLAYER_",X_.pa="LATENCY_ACTION_",X_.ctop="TOP_ENTITY_TYPE_",X_.yt_vst="VIDEO_STREAM_TYPE_",X_),Aqa="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 T={LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,
LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,
LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,
LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,
LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,
LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,
LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,
LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,
LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,
LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,
LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,
LATENCY_ACTION_UNKNOWN:0};T[T.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";T[T.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";T[T.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";T[T.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";T[T.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";
T[T.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";T[T.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";T[T.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";T[T.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";T[T.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";T[T.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";T[T.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";
T[T.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";T[T.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";T[T.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";T[T.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";T[T.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";T[T.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";T[T.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";
T[T.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";T[T.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";T[T.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";T[T.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";T[T.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";T[T.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";
T[T.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";T[T.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";T[T.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";T[T.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";T[T.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";T[T.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";T[T.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";
T[T.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";T[T.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";T[T.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";T[T.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";T[T.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";T[T.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";
T[T.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";T[T.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";T[T.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";T[T.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";T[T.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";T[T.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";
T[T.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";T[T.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";T[T.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";T[T.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";T[T.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";T[T.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";T[T.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";
T[T.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";T[T.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";T[T.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";T[T.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";T[T.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";T[T.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";T[T.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";T[T.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";
T[T.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";T[T.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";T[T.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";T[T.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";T[T.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";T[T.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";
T[T.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";T[T.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";T[T.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";T[T.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";T[T.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";T[T.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";T[T.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
T[T.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";T[T.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";T[T.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";T[T.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";T[T.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";T[T.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";
T[T.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";T[T.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";T[T.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";T[T.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";T[T.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";T[T.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";T[T.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";T[T.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";
T[T.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";T[T.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";T[T.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";T[T.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";T[T.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";T[T.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";
T[T.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";T[T.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";T[T.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";T[T.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";T[T.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";T[T.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";
T[T.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";T[T.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";T[T.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";T[T.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";T[T.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";
T[T.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";T[T.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
T[T.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";T[T.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";T[T.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";T[T.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";
T[T.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";T[T.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";T[T.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";T[T.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";T[T.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";
T[T.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";T[T.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";T[T.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";T[T.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";T[T.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";T[T.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";T[T.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";T[T.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";
T[T.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";T[T.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";T[T.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";T[T.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";T[T.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";T[T.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";T[T.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";
T[T.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";T[T.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";T[T.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";T[T.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";T[T.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";T[T.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";T[T.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";T[T.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";
T[T.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";T[T.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";T[T.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";T[T.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";T[T.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";T[T.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";T[T.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";T[T.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";T[T.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";
T[T.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";T[T.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var qx={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};qx[qx.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";qx[qx.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";qx[qx.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var rx={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};rx[rx.CONN_INVALID]="CONN_INVALID";rx[rx.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";rx[rx.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";rx[rx.CONN_WIFI_METERED]="CONN_WIFI_METERED";rx[rx.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";
rx[rx.CONN_DISCO]="CONN_DISCO";rx[rx.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";rx[rx.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";rx[rx.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";rx[rx.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";rx[rx.CONN_WIFI]="CONN_WIFI";rx[rx.CONN_NONE]="CONN_NONE";rx[rx.CONN_UNKNOWN]="CONN_UNKNOWN";rx[rx.CONN_DEFAULT]="CONN_DEFAULT";
var sx={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};sx[sx.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
sx[sx.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";sx[sx.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";sx[sx.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";sx[sx.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";sx[sx.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";sx[sx.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
sx[sx.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";sx[sx.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";sx[sx.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";sx[sx.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";sx[sx.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";sx[sx.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";sx[sx.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";sx[sx.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
sx[sx.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";sx[sx.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";sx[sx.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";sx[sx.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";sx[sx.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";sx[sx.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";sx[sx.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";sx[sx.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
sx[sx.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";sx[sx.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";sx[sx.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";sx[sx.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var tx={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
tx[tx.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";tx[tx.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";tx[tx.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";tx[tx.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";tx[tx.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";tx[tx.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";tx[tx.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";tx[tx.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var ux={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};ux[ux.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";ux[ux.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";ux[ux.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";ux[ux.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var vx={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
vx[vx.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";vx[vx.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var wx={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};wx[wx.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";wx[wx.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";wx[wx.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
wx[wx.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";wx[wx.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";wx[wx.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var xx={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};xx[xx.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";xx[xx.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";xx[xx.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";xx[xx.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var yx={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};yx[yx.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";yx[yx.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";yx[yx.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var zx={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};zx[zx.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
zx[zx.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";zx[zx.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var Dqa="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo prefetchInfo accelerationSession webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var ix=g.C.ytLoggingLatencyUsageStats_||{};g.Ha("ytLoggingLatencyUsageStats_",ix);gx.prototype.tick=function(a,b,c,d){jx(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Q("web_csi_via_jspb")?(d=new eja,g.D(d,1,a),g.D(d,2,b),a=new Tq,se(a,5,Gv,d),Fv(a,c)):g.Ds("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
gx.prototype.info=function(a,b,c){var d=Object.keys(a).join("");jx(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Ds("latencyActionInfo",a,{cttAuthInfo:c}))};
gx.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));jx(this,"info_"+d+"_"+b)||(g.D(a,2,b),b={cttAuthInfo:c},c=new Tq,se(c,7,Gv,a),Fv(c,b))};
gx.prototype.span=function(a,b,c){var d=Object.keys(a).join("");jx(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Ds("latencyActionSpan",a,{cttAuthInfo:c}))};var Y_=window;Y_.ytcsi&&(Y_.ytcsi.info=g.px,Y_.ytcsi.tick=mx);var Gva={I6:1,d7:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var wP=16/9,CSa=[.25,.5,.75,1,1.25,1.5,1.75,2],DSa=CSa.concat([3,4,5,6,7,8,9,10,15]);var ESa=["h","H"],FSa=["9","("],GSa=["9h","(h"],HSa=["8","*"],ISa=["a","A"],JSa=["o","O"],KSa=["m","M"],LSa=["mac3","MAC3"],MSa=["meac3","MEAC3"],Z_={},sta=(Z_.h=ESa,Z_.H=ESa,Z_["9"]=FSa,Z_["("]=FSa,Z_["9h"]=GSa,Z_["(h"]=GSa,Z_["8"]=HSa,Z_["*"]=HSa,Z_.a=ISa,Z_.A=ISa,Z_.o=JSa,Z_.O=JSa,Z_.m=KSa,Z_.M=KSa,Z_.mac3=LSa,Z_.MAC3=LSa,Z_.meac3=MSa,Z_.MEAC3=MSa,Z_);g.Ix.prototype.getLanguageInfo=function(){return this.Ic};
g.Ix.prototype.toString=function(){return this.Ic.name};
g.Ix.prototype.getLanguageInfo=g.Ix.prototype.getLanguageInfo;var $_,Nx;$_={};g.Kx=($_.auto=0,$_.tiny=144,$_.light=144,$_.small=240,$_.medium=360,$_.large=480,$_.hd720=720,$_.hd1080=1080,$_.hd1440=1440,$_.hd2160=2160,$_.hd2880=2880,$_.highres=4320,$_);Nx={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Jx.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
Jx.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
Jx.prototype.compose=function(a){if(a.B&&Mx(a))return SD;if(a.B||Mx(this))return a;if(this.B||Mx(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new Jx(b,c,!1,c===this.j?this.reason:a.reason)};
Jx.prototype.C=function(a){return a.video?Lqa(this,a.video.quality):!1};
var NSa=g.Lx("auto","hd1080",!1,"l"),hIa=g.Lx("auto","large",!1,"l"),SD=g.Lx("auto","auto",!1,"p");Px.prototype.jp=function(a){a=a||SD;for(var b=g.Zn(this.videoInfos,function(k){return a.C(k)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
Px.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var Zx={mO:function(a){a.reverse()},
u4:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
Gm:function(a,b){a.splice(0,b)}};g.$x.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.$x.prototype.get=function(a){by(this);return this.j[a]||null};
g.$x.prototype.clone=function(){var a=new g.$x(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.Uf(this.j);a.url=this.url;return a};
var era=[Fia];g.h=hy.prototype;g.h.fE=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.Ul(a))?a.duration:0};
g.h.getDurationTicks=function(a){return this.getDuration(a)};
g.h.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ja:-1};
g.h.getIngestionTime=function(a){return(a=this.Ul(a))?a.ingestionTime:NaN};
g.h.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ja:-1};
g.h.bH=function(a){return this.getLastSegmentNumber()===a&&!this.u&&0<=a};
g.h.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.getMinSeekableTime=function(){return this.segments[0].startTime};
g.h.getNumberOfSegments=function(){return this.segments.length};
g.h.getOffset=function(){return 0};
g.h.getSegmentNumberForTime=function(a){return(a=this.wu(a))?a.Ja:-1};
g.h.getSegmentURL=function(a){return(a=this.Ul(a))?a.sourceURL:""};
g.h.getStartTime=function(a){return(a=this.Ul(a))?a.startTime:0};
g.h.getStartTimeInPeriod=function(a){return(a=this.Ul(a))?a.j:0};
g.h.isLoaded=function(){return 0<this.segments.length};
g.h.Ul=function(a){if(this.j&&this.j.Ja===a)return this.j;a=g.gc(this.segments,new gy(a,0,0,0,""),function(b,c){return b.Ja-c.Ja});
return this.j=0<=a?this.segments[a]:null};
g.h.wu=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.gc(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.append=function(a){if(a.length)if(a=g.$b(a),this.segments.length){var b=this.segments.length?g.Nb(this.segments).endTime:0,c=a[0].Ja-this.getLastSegmentNumber();1<c&&Ub(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.h.getLocalMaxByterate=function(){return 0};iy.prototype.append=function(a){if(hra(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);ly(this)}else this.j.push(a);this.totalLength+=a.length};
iy.prototype.split=function(a){for(var b=new iy,c=new iy,d=g.r(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{JG:b,Ns:c}};
iy.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
iy.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&ly(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var $Ha=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}(),ty=Array(1024),ry=window.TextDecoder?new TextDecoder:void 0,vy=window.TextEncoder?new TextEncoder:void 0;yy.prototype.skip=function(a){this.j+=a};
yy.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var a0={},OSa=(a0.predictStart="predictStart",a0.start="start",a0["continue"]="continue",a0.stop="stop",a0),nra={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Hy.prototype.ey=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"])};
Hy.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 yra=!1;Ty.prototype.Pu=function(){var a=this.j;this.j=0;var b=!1;try{Xy(this,440786851)&&(this.j=0,Xy(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.j=0,b=!1,g.Jv(c);else throw c;}this.j=a;return b};gz.prototype.set=function(a,b){this.Ki.get(a);this.j[a]=b;this.url=""};
gz.prototype.get=function(a){return this.j[a]||this.Ki.get(a)};Lra.prototype.Hk=function(a,b){a.Ki===this.j&&(this.j=iz(a,b));a.Ki===this.B&&(this.B=iz(a,b))};mz.prototype.Kf=function(){return!!this.j&&this.index.isLoaded()};
mz.prototype.Tu=function(){return!1};
mz.prototype.DK=function(a){return[a]};
mz.prototype.Cv=function(a){return[a]};oz.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};rz.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
rz.prototype.equals=function(a){return!(!a||a.j!==this.j||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Ja!==this.Ja||a.zb!==this.zb||a.u!==this.u)};
rz.prototype.isVideo=function(){return!!this.j.info.video};Az.prototype.Ak=function(){return this.B?ay(this.B):""};
Az.prototype.Pl=function(){return tz(this.j[0])};
Az.prototype.Hk=function(a,b){this.u.Hk(a,b);if(this.B){this.B=iz(a,b);b=g.r(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.B.set(c.value,null)}this.requestId=a.get("req_id")};
var Xra=!1;g.w(Fz,mz);g.h=Fz.prototype;g.h.pm=function(){return!1};
g.h.Jr=function(){return PSa};
g.h.oy=function(){return!1};
g.h.Tu=function(){return!this.K};
g.h.vp=function(){return new Az([new rz(1,this,this.initRange,"getMetadataRequestInfo")],this.K)};
g.h.Dt=function(){return null};
g.h.uw=function(a){this.Fo(a);if(this.Jr()&&a.u&&!a.le){var b=new rz(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ja,a.startTime,a.duration,a.zb+a.u,NaN,sz(a),!0);return new Az([b],this.index.getSegmentURL(a.Ja))}return this.Go(wz(a),!1)};
g.h.Bn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.Yb()||this.info.Yb();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.Go(a,!0)};
g.h.CG=function(a){this.j=new Uint8Array(Rz(a).buffer)};
g.h.Fo=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ja&&this.index.getFirstSegmentNumber()<=a.Ja+1};
g.h.update=function(a,b,c){this.index.append(a);gra(this.index,c);this.index.u=b};
g.h.Kf=function(){return this.Tu()?!0:mz.prototype.Kf.call(this)};
g.h.Go=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.Qb?this.info.Qb*e:1E3;b=!b;this.index.getLastSegmentNumber();return new Az([new rz(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,0,b)],c)};
g.h.mG=function(){return this.Tu()?0:this.initRange.length};
g.h.pI=function(){return!1};
var PSa=!1;Iz.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new Iz,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+Gz(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+Gz(a,"startNumber")||0,m=d.C=k,n=+Gz(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(csa(Gz(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.K=Gz(a,"media"));a=c?l-c.Ja: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.Ja)l++;else{var v=new asa(l,b,n,m+p,k);d.j.push(v);var x=v.startSecs;v=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(v&&y){v=Number(v);x=-v/f+x;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,E=e.getAttribute("yt:cuepointIdentifier")||"",J=e.getAttribute("yt:cuepointEvent")||"";v=new Bw(x,y,z,E,OSa[J]||"unknown",v)}else v=
null;v&&d.B.push(v);l++;b+=n;k+=n;m+=n+p}}d.j.length&&(d.u=g.Nb(d.j))}this.J=d.J;this.u=d.u||this.u;g.bc(this.j,d.j);g.bc(this.B,d.B);this.D=d.D;this.K=d.K;-1===this.C&&(this.C=d.getStreamTimeOffset())};
Iz.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(Jz,hy);g.h=Jz.prototype;g.h.getFirstSegmentNumber=function(){return this.Ll?this.segments.length?this.wu(this.getMinSeekableTime()).Ja:-1:hy.prototype.getFirstSegmentNumber.call(this)};
g.h.getMinSeekableTime=function(){if(this.Lf)return 0;if(!this.Ll)return hy.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Nb(this.segments).endTime-this.qn,0);return 0<this.Ye&&this.wu(a).Ja<this.Ye?this.Ul(this.Ye).startTime:a};
g.h.getMaxKnownEndTime=function(){if(!this.segments.length)return hy.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.Ll||a<=this.segments[this.segments.length-1].Ja)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new gy(a,Math.max(0,b.startTime-(b.Ja-a)*this.Hh),this.Hh,0,"sq/"+a,void 0,void 0,!0)}return null!==this.C&&a.pending&&3===this.C?this.Lf?Math.min(this.qn,a.startTime):a.startTime:this.Lf?Math.min(this.qn,a.endTime):
a.endTime};
g.h.getNumberOfSegments=function(){return this.Ll?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:hy.prototype.getNumberOfSegments.call(this)};
g.h.getLastSegmentNumber=function(){var a=Math.min(this.yh,Math.max(hy.prototype.getLastSegmentNumber.call(this),this.ww)),b=1E3*this.qn;b=0<this.B&&this.B<b;this.Lf&&0<this.qn&&0<this.ww&&!b&&(b=this.wu(this.qn))&&(a=Math.min(b.Ja-1,a));return a};
g.h.Cu=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.h.fE=function(a){var b=Kz(this,a.Ja);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Ay&&0===a.Ja%(300/this.Hh)){var c=this.segments[0].Ja,d=Math.floor(this.Ay/this.Hh);a=a.Ja-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.h.wu=function(a){if(!this.Ll)return hy.prototype.wu.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].Ja-Math.ceil((this.segments[0].startTime-a)/this.Hh));else if(a>=b.endTime)b=b.Ja+Math.floor((a-b.endTime)/this.Hh+1);else{b=hc(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.Ja-b.Ja-1))+1)+b.Ja}return this.Ul(b)};
g.h.Ul=function(a){if(!this.Ll)return hy.prototype.Ul.call(this,a);if(!this.segments.length)return null;var b=Kz(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Hh;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ja-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ja-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ja-d.Ja-1),d=d.endTime+(a-d.Ja-1)*b);return new gy(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(Mz,Fz);g.h=Mz.prototype;g.h.oy=function(){return!0};
g.h.Kf=function(){return!0};
g.h.Fo=function(a){return this.Jr()&&a.u&&!a.le||!a.j.index.bH(a.Ja)};
g.h.vp=function(){};
g.h.Bn=function(a,b){return"number"!==typeof a||isFinite(a)?Fz.prototype.Bn.call(this,a,void 0===b?!1:b):new Az([new rz(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Uj,void 0,this.Uj*this.info.Qb)],"")};
g.h.Go=function(a,b){var c=void 0===c?!1:c;if(Lz(this.index,a))return Fz.prototype.Go.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Uj*this.info.Qb;b=!b;c=new rz(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.index.u&&0<e,b);return new Az([c],0<=a?"sq/"+a:"")};g.w(Nz,mz);g.h=Nz.prototype;g.h.pm=function(){return!1};
g.h.Jr=function(){return!1};
g.h.oy=function(){return!1};
g.h.vp=function(){return new Az([new rz(1,this,void 0,"otfInit")],this.K)};
g.h.Dt=function(){return null};
g.h.uw=function(a){this.Fo(a);return ksa(this,wz(a),!1)};
g.h.Bn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return ksa(this,a,!0)};
g.h.CG=function(a){1===a.info.type&&(this.j||(this.j=kra(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&lsa(this,a.u))};
g.h.Fo=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ja&&this.index.getFirstSegmentNumber()<=a.Ja+1};
g.h.mG=function(){return 0};
g.h.pI=function(){return!1};g.h=Oz.prototype;g.h.getOffset=function(a){return this.offsets[a]};
g.h.getStartTime=function(a){return this.j[a]/this.B};
g.h.getStartTimeInPeriod=function(){return 0};
g.h.getIngestionTime=function(){return NaN};
g.h.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
g.h.getDurationTicks=function(a){return a+1<this.count||this.u?this.j[a+1]-this.j[a]:-1};
g.h.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
g.h.getFirstSegmentNumber=function(){return 0};
g.h.getLastSegmentNumber=function(){return this.count-1};
g.h.bH=function(a){return this.getLastSegmentNumber()===a&&0<=a};
g.h.getMaxKnownEndTime=function(){return this.u?this.j[this.count]/this.B:NaN};
g.h.getMinSeekableTime=function(){return 0};
g.h.getNumberOfSegments=function(){return this.count};
g.h.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.h.getSegmentURL=function(){return""};
g.h.getSegmentNumberForTime=function(a){a=g.gc(this.j.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.h.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c};
g.h.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.j[a]=c[a]};
g.h.setTimebase=function(a){this.B=a};
g.h.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.j[0]=b;this.u=!0};
g.h.addSegmentBySize=function(a,b){this.count++;Pz(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.j[this.count]=this.j[this.count-1]+b};
g.h.addSegmentByStart=function(a,b){Pz(this);this.offsets[this.count]=a;this.j[this.count]=b;this.count++};
g.h.cap=function(a,b){Pz(this);this.u=!0;this.j[this.count]=b;this.offsets[this.count]=a};Qz.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=Rz(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.zb)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=Rz(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.zb)return 524531317===c||440786851===c}return!0};g.w(Uz,mz);g.h=Uz.prototype;g.h.vp=function(a){var b=new rz(2,this,this.indexRange,"indexInfo"),c=[new rz(1,this,this.initRange,"initInfo"),b];0<this.info.contentLength&&a&&(b=b.range.end+1,a=Math.min(a,this.info.contentLength-b),0<a&&c.push(new rz(4,this,qz(b,a),"tbdRange")));return new Az(c)};
g.h.CG=function(a){if(1===a.info.type){if(this.j)return;this.j=kra(a.j)}else if(2===a.info.type){if(this.K||0<=this.index.getLastSegmentNumber())return;if(g.Sz(this.info)){var b=this.index,c=Rz(a);a=a.info.range.start;var d=g.Jy(c,0,1936286840);c=vra(d);b.setTimebase(c.uJ);b.setFirstSegmentStart(c.FV+a+d.size,c.tV);a=c.pJ.length;for(d=0;d<a;d++)b.addSegmentBySize(c.D_[d],c.pJ[d])}else this.K=Rz(a)}if(this.info.Xe()&&this.j&&this.K){a=new DataView(this.j.buffer);b=this.index;d=this.K;c=this.indexRange.end;
var e=new Ty(a);a=e;e=a.j;var f={pR:1E6,qR:1E9,duration:0,PQ:0,OI:0};if(Xy(a,408125543))if(f.PQ=Yy(a,!0),f.OI=a.start+a.j,Xy(a,357149030)){for(var k=Wy(a);!Uy(k);){var l=Yy(k,!1);2807729===l?f.pR=$y(k):2807730===l?f.qR=$y(k):17545===l?f.duration=bz(k):az(k)}a.j=e;a=f}else a.j=e,a=null;else a.j=e,a=null;if(null!==a){b.setTimebase(a.qR/a.pR);e=new Ty(d);d=e;k=a.OI;e=d.j;f=[];if(Xy(d,475249515)){for(l=Wy(d);Xy(l,187);){var m=Wy(l);if(Xy(m,179)){var n=$y(m);if(Xy(m,183)){m=Wy(m);for(var p=k;Xy(m,241);)p=
$y(m)+k;f.push({PA:p,lV:n})}}}if(0<f.length&&c===f[0].PA)for(c=0;c<f.length;c++)f[c].PA+=1;d.j=e;c=f}else d.j=e,c=null;if(null!==c){c=g.r(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.PA,d.lV);b.cap(a.PQ+a.OI,a.duration)}}this.K=null}};
g.h.DK=function(a){for(var b=this.Cv(a.info),c=a.info.range.start+a.info.zb,d=a.B,e=[],f=0;f<b.length;f++){var k=ky(a.j,b[f].range.start+b[f].zb-c,b[f].u);e.push(new Qz(b[f],k,d));d=!1}return e};
g.h.Cv=function(a){for(var b=a.range.start+a.zb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return Vz(this,c,b,a.u).j};
g.h.Fo=function(a){sz(a);return this.Kf()?!0:a.range.end+1<this.info.contentLength};
g.h.Dt=function(a,b){this.Fo(a);if(!this.Kf())return b=qz(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new oz(b.start,this.info.contentLength-1)),new Az([new rz(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.Cv(a),a=a[a.length-1]);var c=0,d=a.range.start+a.zb+a.u;3===a.type&&(sz(a),c=a.Ja,d===a.range.end+1&&(c+=1));return Vz(this,c,d,b)};
g.h.uw=function(){return null};
g.h.Bn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Vz(this,a,this.index.getOffset(a),0)};
g.h.pm=function(){return!0};
g.h.Jr=function(){return!0};
g.h.oy=function(){return!1};
g.h.mG=function(){return this.indexRange.length+this.initRange.length};
g.h.pI=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};Wz.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var b0={},Ux=(b0.WIDTH={name:"width",video:!0,valid:640,invalid:99999},b0.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},b0.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},b0.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},b0.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},b0.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},b0.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},b0.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},b0.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},b0.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},b0);var Y={},aA=(Y["0"]="f",Y["160"]="h",Y["133"]="h",Y["134"]="h",Y["135"]="h",Y["136"]="h",Y["137"]="h",Y["264"]="h",Y["266"]="h",Y["138"]="h",Y["298"]="h",Y["299"]="h",Y["304"]="h",Y["305"]="h",Y["214"]="h",Y["216"]="h",Y["374"]="h",Y["375"]="h",Y["140"]="a",Y["141"]="ah",Y["327"]="sa",Y["258"]="m",Y["380"]="mac3",Y["328"]="meac3",Y["161"]="H",Y["142"]="H",Y["143"]="H",Y["144"]="H",Y["222"]="H",Y["223"]="H",Y["145"]="H",Y["224"]="H",Y["225"]="H",Y["146"]="H",Y["226"]="H",Y["227"]="H",Y["147"]="H",
Y["384"]="H",Y["376"]="H",Y["385"]="H",Y["377"]="H",Y["149"]="A",Y["261"]="M",Y["381"]="MAC3",Y["329"]="MEAC3",Y["598"]="9",Y["278"]="9",Y["242"]="9",Y["243"]="9",Y["244"]="9",Y["247"]="9",Y["248"]="9",Y["353"]="9",Y["355"]="9",Y["271"]="9",Y["313"]="9",Y["272"]="9",Y["302"]="9",Y["303"]="9",Y["407"]="9",Y["408"]="9",Y["308"]="9",Y["315"]="9",Y["330"]="9h",Y["331"]="9h",Y["332"]="9h",Y["333"]="9h",Y["334"]="9h",Y["335"]="9h",Y["336"]="9h",Y["337"]="9h",Y["338"]="so",Y["600"]="o",Y["250"]="o",Y["251"]=
"o",Y["194"]="*",Y["195"]="*",Y["220"]="*",Y["221"]="*",Y["196"]="*",Y["197"]="*",Y["279"]="(",Y["280"]="(",Y["317"]="(",Y["318"]="(",Y["273"]="(",Y["274"]="(",Y["357"]="(",Y["358"]="(",Y["275"]="(",Y["359"]="(",Y["360"]="(",Y["276"]="(",Y["583"]="(",Y["584"]="(",Y["314"]="(",Y["585"]="(",Y["561"]="(",Y["277"]="(",Y["361"]="(h",Y["362"]="(h",Y["363"]="(h",Y["364"]="(h",Y["365"]="(h",Y["366"]="(h",Y["591"]="(h",Y["592"]="(h",Y["367"]="(h",Y["586"]="(h",Y["587"]="(h",Y["368"]="(h",Y["588"]="(h",Y["562"]=
"(h",Y["409"]="(",Y["410"]="(",Y["411"]="(",Y["412"]="(",Y["557"]="(",Y["558"]="(",Y["394"]="1",Y["395"]="1",Y["396"]="1",Y["397"]="1",Y["398"]="1",Y["399"]="1",Y["400"]="1",Y["401"]="1",Y["571"]="1",Y["402"]="1",Y["694"]="1h",Y["695"]="1h",Y["696"]="1h",Y["697"]="1h",Y["698"]="1h",Y["699"]="1h",Y["700"]="1h",Y["701"]="1h",Y["702"]="1h",Y["703"]="1h",Y["386"]="3",Y["387"]="w",Y["406"]="6",Y);var Zz="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Yz.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.h=bA.prototype;g.h.Yb=function(){return this.id.split(";",1)[0]};
g.h.Xe=function(){return 2===this.containerType};
g.h.isEncrypted=function(){return!!this.ke};
g.h.Gn=function(){return!!this.audio};
g.h.isVideo=function(){return!!this.video};g.hA.prototype.getName=function(){return this.name};
g.hA.prototype.getId=function(){return this.id};
g.hA.prototype.getIsDefault=function(){return this.isDefault};
g.hA.prototype.toString=function(){return this.name};
g.hA.prototype.getName=g.hA.prototype.getName;g.hA.prototype.getId=g.hA.prototype.getId;g.hA.prototype.getIsDefault=g.hA.prototype.getIsDefault;g.w(g.iA,fv);g.iA.prototype.T=function(a,b,c,d,e){return fv.prototype.T.call(this,a,b,c,d,e)};g.w(xA,g.iv);g.h=xA.prototype;g.h.appendBuffer=function(a,b,c){if(this.Wd.mB()!==this.appendWindowStart+this.start||this.Wd.cG()!==this.appendWindowEnd+this.start||this.Wd.Fd()!==this.timestampOffset+this.start)this.Wd.supports(1),this.Wd.WI(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Wd.gD(this.timestampOffset+this.start);this.Wd.appendBuffer(a,b,c)};
g.h.abort=function(){this.Wd.abort()};
g.h.remove=function(a,b){this.Wd.remove(a+this.start,b+this.start)};
g.h.WI=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.h.sG=function(){return this.timestampOffset+this.start};
g.h.mB=function(){return this.appendWindowStart};
g.h.cG=function(){return this.appendWindowEnd};
g.h.gD=function(a){this.timestampOffset=a};
g.h.Fd=function(){return this.timestampOffset};
g.h.ag=function(a){a=this.Wd.ag(void 0===a?!1:a);return wA(a,this.start,this.end)};
g.h.di=function(){return this.Wd.di()};
g.h.qp=function(){return this.Wd.qp()};
g.h.qB=function(){return this.Wd.qB()};
g.h.NJ=function(a,b){this.Wd.NJ(a,b)};
g.h.supports=function(a){return this.Wd.supports(a)};
g.h.rB=function(){return this.Wd.rB()};
g.h.isView=function(){return!0};
g.h.uD=function(a,b,c){return this.isActive?this.Wd.uD(a,b,c):!1};
g.h.JA=function(){return this.Wd.JA()?this.isActive:!1};
g.h.isLocked=function(){return this.Tz&&!this.isActive};
g.h.Pb=function(a){a=this.Wd.Pb(a);a.vw=this.start+"-"+this.end;return a};
g.h.Lx=function(){return this.Wd.Lx()};
g.h.pG=function(){return this.Wd.pG()};
g.h.qa=function(){kv(this.Wd,this.SN);g.iv.prototype.qa.call(this)};var mQ=!1;g.w(yA,g.iv);g.h=yA.prototype;g.h.appendBuffer=function(a,b,c){this.FA=!1;c&&(this.WB=c);b&&(b.isEncrypted()&&(this.wO=this.WB),3===b.type&&(this.Bf=b));this.qz&&(2<=this.qz.length||1048576<a.length?delete this.qz:this.qz.push(a));var d;(null==(d=this.hc)?0:d.appendBuffer)?this.hc.appendBuffer(a):this.hc?this.hc.append(a):this.Ef&&this.Ef.webkitSourceAppend(this.id,a)};
g.h.abort=function(){try{this.hc?this.hc.abort():this.Ef&&this.Ef.webkitSourceAbort(this.id)}catch(a){}this.WB=this.Bf=null};
g.h.remove=function(a,b){this.FA=!1;var c;(null==(c=this.hc)?0:c.remove)&&this.hc.remove(a,b)};
g.h.mB=function(){if(mQ&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.hc)?void 0:a.appendWindowStart)||0};
g.h.cG=function(){var a;return(null==(a=this.hc)?void 0:a.appendWindowEnd)||0};
g.h.WI=function(a,b){this.hc&&(mQ&&this.isVideo?(this.appendWindowStart=a,this.hc.appendWindowEnd=b):a>this.mB()?(this.hc.appendWindowEnd=b,this.hc.appendWindowStart=a):(this.hc.appendWindowStart=a,this.hc.appendWindowEnd=b))};
g.h.sG=function(){return this.timestampOffset};
g.h.gD=function(a){mQ?this.timestampOffset=a:this.supports(1)&&(this.hc.timestampOffset=a)};
g.h.Fd=function(){return mQ?this.timestampOffset:this.supports(1)?this.hc.timestampOffset:0};
g.h.ag=function(a){if(void 0===a?0:a)return this.FA||this.di()||(this.tM=this.ag(!1),this.FA=!0),this.tM;try{return this.hc?this.hc.buffered:this.Ef?this.Ef.webkitSourceBuffered(this.id):qA([0],[Infinity])}catch(b){return qA([],[])}};
g.h.di=function(){var a;return(null==(a=this.hc)?void 0:a.updating)||!1};
g.h.qp=function(){return this.WB};
g.h.qB=function(){return this.wO};
g.h.NJ=function(a,b){this.containerType!==a&&(this.supports(4),zA()&&this.hc.changeType(b));this.containerType=a};
g.h.rB=function(){return this.Bf};
g.h.isView=function(){return!1};
g.h.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.hc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.hc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.hc)||!d.remove);case 3:var e,f;return!!((null==(e=this.hc)?0:e.addEventListener)&&(null==(f=this.hc)?0:f.removeEventListener));case 4:return!(!this.hc||!this.hc.changeType);default:return!1}};
g.h.JA=function(){return!this.di()};
g.h.isLocked=function(){return!1};
g.h.Pb=function(a){a.to=this.Fd();a.up=this.di();var b,c=(null==(b=this.hc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.hc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=rA(this.ag())}catch(e){}return a};
g.h.qa=function(){this.supports(3)&&(this.hc.removeEventListener("updateend",this.Qc),this.hc.removeEventListener("error",this.Qc));g.iv.prototype.qa.call(this)};
g.h.uD=function(a,b,c){if(!this.supports(2)||this.di())return!1;var d=this.ag(),e=sA(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),k=d.end(d.length-1);this.remove(f,k);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.h.Lx=function(){return this.containerType};
g.h.pG=function(){return this.qz};
var Dsa=!1;AA.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
AA.prototype.isDisposed=function(){return this.B};
AA.prototype.equals=function(a){return null!==a&&a.j===this.j};
AA.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.w(BA,g.G);g.h=BA.prototype;g.h.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.B};
g.h.Zk=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Ef.webkitSourceSetDuration(a))}catch(b){}};
g.h.Jf=function(){try{return"closed"===DA(this)}catch(a){return!0}};
g.h.di=function(){return!!(this.j&&this.j.di()||this.u&&this.u.di())};
g.h.NZ=function(){!this.isDisposed()&&CA(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.h.MZ=function(){this.dispose()};var Jsa=/action_display_post/;var Ksa;g.w(GA,g.iv);g.h=GA.prototype;g.h.isFailed=function(){return 3===this.state};
g.h.r_=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.fg=this.u=!0;this.timeline||(this.timeline=new esa);isa(this.timeline,a,this.Ua);this.ea("refresh");for(a=0;a<c.length;a++){var d=Ysa(this,c[a]),e=this.isLive&&g.Sz(d)&&this.Xa;if(!this.j[d.id]){var f=JA(Hz(c[a],"BaseURL").textContent),k=Hz(c[a],"Initialization"),l=Gz(k,"sourceURL");k=pz(Gz(k,"range"));e&&(l="",k=void 0);this.j[d.id]=
new Fz(f,d,l,k)}d=this.j[d.id];f=Gz(c[a],"id","AdaptationSet");f=""!==f?f:Gz(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.j||null;f=l.j;!this.S&&l.getStreamTimeOffset()&&(this.S=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),k=f.next();!k.done;k=f.next()){k=k.value;var m=d.info.id,n=8*d.info.Qb,p=k.Ja,q=k.startSecs;var t=l.K.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",q.toString());e.push(new gy(k.Ja,k.startSecs,k.durationSecs,k.j,t.join("$"),null,k.u))}else{l=cc(Hz(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.J);k=[];for(m=0;m<l.length;m++){n=k;p=n.push;q=f[m];t=void 0;var v=l[m];b=v.getAttribute("media");if(!e&&(v=v.getAttribute("mediaRange"))){var x=v.split("-");x[1]&&0<=Number(x[1])?t=pz(v):b=b+"?range="+v}p.call(n,new gy(q.Ja,q.startSecs,q.durationSecs,q.j,b,t,q.u))}e=k}d.update(e,this.isLive,this.Ia)}jsa(this.timeline);
return!0}this.duration=bsa(Gz(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=Ysa(this,f);e=JA(Hz(f,"BaseURL").textContent);l=Hz(f,"SegmentBase");f=pz(l.attributes.getNamedItem("indexRange").value);l=pz(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new Uz(e,d,l,f);if(!d){c=!1;break a}HA(this,d)}c=!0}return c};
g.h.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.sj(this.sourceUrl,{start_seq:bta(this).toString()});$sa(this,a).Di(function(){})}};
g.h.resume=function(){Zsa(this)};
g.h.Kd=function(){if(this.isManifestless&&this.K&&MA(this))return MA(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],k=f.index;k.isLoaded()&&(f.D&&(b=!0),k=k.getMaxKnownEndTime(),f.info.Gn()&&(isNaN(c)||k<c)?c=k:f.info.isVideo()&&(isNaN(d)||k<d)&&(d=k))}return b||isNaN(d)?c:Math.min(c,d)};
g.h.getMinSeekableTime=function(){if(this.isManifestless){if(NA(this))return NA(this);if(this.J){var a=this.getIngestionTime(this.Kd());if(a&&(a-=this.J,0<a))return this.Kd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.h.getStreamTimeOffset=function(){return this.S};
g.h.getIngestionTime=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var QA=null,gta=!!navigator.mediaCapabilities,Xsa={commentary:1,alternate:2,dub:3,main:4};WA.prototype.clone=function(a){return new WA(this.flavor,a,this.C,this.experiments)};
WA.prototype.Pb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
WA.prototype.cg=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var c0={},uB=(c0.playready=["com.youtube.playready","com.microsoft.playready"],c0.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],c0),d0={},WHa=(d0.widevine="DRM_SYSTEM_WIDEVINE",d0.fairplay="DRM_SYSTEM_FAIRPLAY",d0.playready="DRM_SYSTEM_PLAYREADY",d0),e0={},QSa=(e0.widevine=1,e0.fairplay=2,e0.playready=3,e0);g.w(vB,g.G);
vB.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.ke)for(var k=g.r(Object.keys(f.ke)),l=k.next();!l.done;l=k.next())if(l=l.value,uB[l])for(var m=g.r(uB[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new WA(l,n,f.ke[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}as()&&(this.u["com.youtube.fairplay"]=new WA("fairplay","com.youtube.fairplay","",
this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.j=tta(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),g.VA(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
vB.prototype.N=function(a){return this.experiments.jb(a)};var KLa={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var RSa={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},f0;a:{var g0=g.qb();g0=g0.toLowerCase();if(g.kb(g0,"android")){var SSa=g0.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(SSa){var TSa=parseFloat(SSa[1]);if(100>TSa){f0=TSa;break a}}var USa=g0.match("("+g.If(RSa).join("|")+")");f0=USa?RSa[USa[0]]:0}else f0=void 0}var vC=f0,uC=0<=vC;var pua={RED:"red",Lha:"white"};var nua={E1:"adunit",B6:"detailpage",R6:"editpage",U6:"embedded",Z6:"embedded_unbranded",I9:"leanback",uda:"previewpage",xda:"profilepage",qga:"unplugged",lda:"playlistoverview",jfa:"sponsorshipsoffer",Sea:"shortspage"};Ata.prototype.jb=function(a){return"true"===this.flags[a]};xB.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;fs?a=a||VSa[b]:2.2===vC?a=a||WSa[b]:Zr()&&(a=a||XSa[b]);return!!a};
xB.prototype.isTypeSupported=function(a){return this.K?window.cast.receiver.platform.canDisplayType(a):lA(a)};
var WSa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},XSa={"application/x-mpegURL":"maybe"},VSa={"application/x-mpegURL":"maybe"};var Gta=Promise.resolve(),Jta=window.queueMicrotask?window.queueMicrotask.bind(window):Hta;AB.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});Kta(this)};
AB.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Gr(a.url,a.options)}};g.w(BB,g.iv);BB.prototype.add=function(a,b){!this.items[a]&&(b.ix||b.LA||b.Nz)&&(this.items[a]=Yf(b),this.ea("vast_info_card_add",a))};
BB.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
BB.prototype.get=function(a){return this.items[a]||null};
BB.prototype.isEmpty=function(){return g.Pf(this.items)};var DC={b$:1,c$:2,d$:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Lta=!1,DB,EB,FB,GB,HB;IB.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)Nta(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(Nta(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var JB=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var KB;g.MB.prototype.encrypt=function(a,b){var c=this,d,e;return g.B(function(f){if(1==f.j){d=LB();if(!d)return f.return(c.j(a,b));g.ta(f,3);return g.A(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.va(f);g.Jv(e);JB=!0;return f.return(c.j(a,b))})};
g.MB.prototype.u=function(a,b,c){var d=this,e,f,k;return g.B(function(l){switch(l.j){case 1:if(d.D){l.Va(2);break}e=d;return g.A(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.A(l,c.encrypt(f,d.D,a),4);case 4:return k=l.u,l.return(new Uint8Array(k))}})};
g.MB.prototype.j=function(a,b){this.B||(this.B=new IB(this.C));Mta(this.B,b);return this.B.encrypt(a)};
g.MB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.NB.prototype.encrypt=function(a,b){this.j||(this.j=new IB(this.u));Mta(this.j,b);return this.j.encrypt(a)};
g.NB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};OB.prototype.reset=function(){Pta(this);this.update(this.B)};
OB.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,Ota(this,this.J,0));for(;b+64<=c;b+=64)Ota(this,a,b);b<c&&(a=a.subarray(b),this.J.set(a,this.u),this.u+=a.length)};
var PB=[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];RB.prototype.Am=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;QB.forEach(function(e,f){d<e||(c.u[f]+=b)})};
RB.prototype.toString=function(){return""};
var QB=[20,100,500,2E3];g.h=Zta.prototype;g.h.isActive=function(){return!0};
g.h.LB=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.JD=a.prototype[e],d.MD=b[e],a.prototype[e]=function(f){return function(){var k=g.Ba.apply(0,arguments),l=(0,g.R)();k=f.JD.apply(this,k);SB(c,f.MD,(0,g.R)()-l);return k}}(d)),d={JD:d.JD,
MD:d.MD}}};
g.h.kq=function(a){return new Yta(a)};
g.h.gp=function(a,b){b=void 0===b?1:b;a instanceof Yta&&(SB(this,a.name,(0,g.R)()-a.startTimeMs,b),a.j=!0)};
g.h.AI=function(a,b){var c=void 0===c?1:c;var d=(0,g.R)();b();SB(this,a,(0,g.R)()-d,c)};
g.h.lN=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.j)c=null;else{for(var d=c.j.toString()+"."+Math.round(c.B).toString(),e=0;e<QB.length;++e)if(0<c.u[e])d+="."+QB[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new Xta;return a};
g.h.toString=function(){return""};g.h=TB.prototype;g.h.isActive=function(){return!1};
g.h.LB=function(){};
g.h.kq=function(){};
g.h.gp=function(){};
g.h.AI=function(a,b){b()};
g.h.lN=function(){return{}};
g.h.toString=function(){return""};var h0,cT,i0,UP,$La;h0=new TB;cT=cr("html5_enable_profiler")||cr("html5_onesie_enable_profiler")||cr("html5_offline_encryption_enable_profiler")||0<cr("html5_performance_impact_profiling_timer_ms")?new Zta:new TB;g.sO=cr("html5_enable_profiler")?cT:h0;i0=cr("html5_onesie_enable_profiler")?cT:h0;UP=cr("html5_offline_encryption_enable_profiler")?cT:h0;$La=cr("html5_performance_impact_profiling_timer_ms")?cT:h0;g.w(UB,g.MB);UB.prototype.j=function(a,b){var c=i0.kq("oap");b=g.MB.prototype.j.call(this,a,b);i0.gp(c,Math.ceil(a.length/16));return b};
UB.prototype.u=function(a,b,c){var d=this,e,f;return g.B(function(k){if(1==k.j)return e=i0.kq("oan2"),g.A(k,g.MB.prototype.u.call(d,a,b,c),2);f=k.u;i0.gp(e,Math.ceil(a.byteLength/16));return k.return(f)})};
g.w(VB,g.NB);VB.prototype.encrypt=function(a,b){var c=i0.kq("oap");b=g.NB.prototype.encrypt.call(this,a,b);i0.gp(c,Math.ceil(a.byteLength/16));return b};XB.prototype.Nh=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
XB.prototype.rh=function(){return this.j/(1-Math.pow(this.alpha,this.u))};YB.prototype.Nh=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0};
YB.prototype.rh=function(){return this.D?(ZB(this,this.B-this.D)+ZB(this,this.B)+ZB(this,this.B+this.D))/3:ZB(this,this.B)};g.w(iua,g.G);var kua=/^([0-9\.]+):([0-9\.]+)$/;var oua="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),uua={H2:"cbrand",I2:"cbr",J2:"cbrver",C8:"c",F8:"cver",E8:"ctheme",D8:"cplayer",oba:"cmodel",aca:"cnetwork",wca:"cos",xca:"cosver",dda:"cplatform"};g.w(KC,g.G);g.h=KC.prototype;g.h.N=function(a){return this.experiments.jb(a)};
g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.NC(this);d&&"www.youtube.com"===c?d="https://web.archive.org/web/20220414023957/https://youtu.be/"+a:g.zC(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,fs&&(a=ija())&&(b.ebc=a));return g.sj(d,b)};
g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.NC(this)+"/embed/"+a;c&&(a=g.sj(a,{list:c}));c=b.width;b=b.height;a=g.Dh(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.h.supportsGaplessAudio=function(){return g.mA&&!fs&&74<=cma()||g.Fx&&g.sc(68)?!0:!1};
g.h.getPlayerType=function(){return this.deviceParams.cplayer};
var yua=["www.youtube-nocookie.com","youtube.googleapis.com"];g.h=iD.prototype;g.h.cg=function(){return this.j};
g.h.xw=function(){return null};
g.h.EK=function(){var a=this.xw();return a?(a=g.or(a.j),Number(a.expire)):NaN};
g.h.QI=function(){};
g.h.Yb=function(){return this.j.Yb()};
g.h.getHeight=function(){return this.j.video.height};zua.prototype.Te=function(){Cua(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ic){if(e.Ic.getIsDefault()){c=e.Ic.getId();break a}c||(c=e.Ic.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Ic||e.Ic.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(e),f=e.next();!f.done;f=
e.next()){var k=a,l=k.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Ic){p=f.Ic;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=kD(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Bua(f,d)+'",URI="'+(q+'"'));l.call(k,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=YSa,d=(k=d.Ic)?'#EXT-X-MEDIA:URI="'+kD(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+k.getId()+'",NAME="'+k.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?YSa:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,k=b[e.j],l=void 0,0<(null==(l=k)?void 0:l.length)&&(k=k[0],k="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+k.bitrate)+',CODECS="'+(e.codecs+","+k.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Bua(k,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(k+=",FRAME-RATE="+
e.fps),e.Zv&&(k+=",VIDEO-RANGE="+e.Zv),a.push(k),a.push(kD(this,e.url,"")));return a.join("\n")};
var YSa="text";g.w(lD,iD);lD.prototype.EK=function(){return this.expiration};
lD.prototype.xw=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Te();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new AA(a)}return this.u};g.w(mD,iD);mD.prototype.xw=function(){return new AA(ay(this.u))};
mD.prototype.QI=function(){this.u=fy(this.u)};g.w(nD,iD);nD.prototype.xw=function(){return new AA(this.u)};oD.prototype.toString=function(){return this.type+this.id};var Nua={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Oua={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.sD.prototype.zf=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return OC(this.u,this.j,a)};
g.sD.prototype.Zl=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.tD.prototype.zf=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:OC(this.j,this.videoId,a)};
g.tD.prototype.Zl=function(){return this.watchUrl||this.j.getVideoUrl(this.videoId)};var Qua=["APP_STATE","PI"];var j0={},Uua=g.Ht("yt-player-local-media",{Xr:(j0.index={No:2},j0.media={No:2},j0.captions={No:5},j0),yz:!1,upgrade:function(a,b){b(2)&&(g.$s(a,"index"),g.$s(a,"media"));b(5)&&g.$s(a,"captions");b(6)&&(at(a,"metadata"),at(a,"playerdata"))},
version:5});uD.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
uD.prototype.get=function(a){return this.j.get(a)};
uD.prototype.remove=function(a){this.j.remove(a)};var vD=void 0;Rua("LMS",function(){return g.B(function(a){return a.return(g.wD())})});var AD;AD=0;g.bva=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Rua("LMDB",function(){var a,b;return g.B(function(c){if(1==c.j)return g.A(c,g.tt(),2);if(3!=c.j){a=c.u;if(!a)throw g.Ss("edd");return g.A(c,g.zD(a),3)}b=c.u;return c.return(g.bt(b,["index","media","captions"],{mode:"readonly",Lc:!0},function(d){var e={};d=[g.ft(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
Zma(d.objectStore("media")),Zma(d.objectStore("captions"))];return g.Us.all(d).then(function(f){var k=g.r(f);k.next();f=k.next().value;k=k.next().value;return{index:e,media:cva(f||[]),captions:k}})}))})});g.h=g.CD.prototype;g.h.getId=function(){return this.id};
g.h.getName=function(){return this.name};
g.h.isServable=function(){return this.j};
g.h.toString=function(){return this.languageCode+": "+g.DD(this)+" - "+this.vssId};
g.h.equals=function(a){return a?this.toString()===a.toString():!1};
g.h.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var eva={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},fva={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},gva=/^(\d*)_((\d*)_?(\d*))$/;var k0={},Jva=(k0.ALWAYS=1,k0.BY_REQUEST=3,k0.UNKNOWN=void 0,k0),l0={},uva=(l0.COLOR_PRIMARIES_BT709="bt709",l0.COLOR_PRIMARIES_BT2020="bt2020",l0.COLOR_PRIMARIES_UNKNOWN=null,l0.COLOR_PRIMARIES_UNSPECIFIED=null,l0),m0={},iva=(m0.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",m0.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",m0.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",m0.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",m0.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,m0.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,m0),n0={},ID=(n0.FAIRPLAY="fairplay",n0.PLAYREADY="playready",n0.WIDEVINE="widevine",n0.CLEARKEY=null,n0.FLASHACCESS=null,n0.UNKNOWN=null,n0.WIDEVINE_CLASSIC=null,n0),o0={},Kva=(o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",o0),p0={},rva=(p0.UNKNOWN=0,p0.RECTANGULAR=1,p0.EQUIRECTANGULAR=2,p0.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,p0.MESH=4,p0),q0={},tva=(q0.SPATIAL_AUDIO_TYPE_NONE=0,q0.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,q0.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,q0.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,q0),r0={},sva=(r0.STEREO_LAYOUT_UNKNOWN=0,r0.STEREO_LAYOUT_LEFT_RIGHT=1,r0.STEREO_LAYOUT_TOP_BOTTOM=2,r0),s0={},qva=(s0.FORMAT_STREAM_TYPE_UNKNOWN=0,s0.FORMAT_STREAM_TYPE_OTF=3,s0);g.w(JD,g.iv);JD.prototype.qa=function(){this.j&&(this.j=this.j.onload=null);g.iv.prototype.qa.call(this)};g.h=g.OD.prototype;g.h.getHeight=function(){return this.height};
g.h.yN=ba(2);g.h.gE=function(){return this.frameCount};
g.h.isDefault=function(){return-1!==this.B.indexOf("default")};
g.h.isLoaded=function(a){return this.loaded.has(a)};
g.h.fA=function(a){var b=this.gE()-1;return g.sh(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.h.Aq=function(){return this.frameCount-1};
g.h.hE=function(){return this.frameCount?0:-1};
g.h.FK=function(){};g.w(PD,JD);PD.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};
PD.prototype.J=function(a,b,c,d){return new g.OD(a,b,c,d)};g.w(QD,g.OD);g.h=QD.prototype;g.h.gE=function(){return this.u.getNumberOfSegments()};
g.h.fA=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.h.Aq=function(){return this.u.getLastSegmentNumber()};
g.h.hE=function(){return this.u.getFirstSegmentNumber()};
g.h.FK=function(a){this.u=a};g.w(RD,PD);RD.prototype.u=function(a,b){return PD.prototype.u.call(this,"$N|"+a,b)};
RD.prototype.J=function(a,b,c){return new QD(a,b,c,this.isLive)};g.w(g.TD,g.iv);g.h=g.TD.prototype;g.h.V=function(){return this.B};
g.h.N=function(a){return this.B.N(a)};
g.h.Rf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.bd)||!a.rb)};
g.h.wP=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.wP,this),this.EM(-1))};
g.h.EM=function(a){if(!this.isLivePlayback||!this.Y||"fairplay"!=this.Y.flavor){var b=Usa(this.j,this.XJ);if(0<b.length){if(gE(this,"html5_clamp_cuepoints_to_min"))for(var c=g.r(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.getMinSeekableTime());this.ea("cuepointupdated",b,a);this.XJ+=b.length;c=gE(this,"html5_log_all_cuepoints")||2<=this.B.Y;if($D(this)&&c)for(b=g.r(b),d=b.next();!d.done;d=b.next())c=d.value,this.xa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,
id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.Qw.start=this.Kw,this.Qw.end=c+3)}}};
g.h.Mi=function(){var a={};this.u&&(a.fmt=this.u.Yb(),this.J&&this.J.Yb()!=this.u.Yb()&&(a.afmt=this.J.Yb()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Qg&&(a.infringe=1);this.Qf&&(a.splay=1);var b=mE(this);b&&(a.live=b);this.xm&&(a.autoplay=1);this.YL&&(a.sdetail=this.YL);this.Ga&&(a.partnerid=this.Ga);this.osid&&(a.osid=this.osid);return a};
g.h.Yh=function(){if(this.cotn)return null;var a=g.TC(this.B)||this.N("web_l3_storyboard");if(!this.Bg)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Bg=new PD(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=Gf(this.j.j).index)&&(this.Bg=new RD(b.spec,this.j.isLive,c,a))}else this.yq?this.Bg=new PD(this.yq,this.lengthSeconds,void 0,!1,a):this.Qs&&this.j&&
(b=Gf(this.j.j).index)&&(this.Bg=new RD(this.Qs,this.j.isLive,b,a));return this.Bg};
g.h.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.yq||this.Qs};
g.h.Kd=function(){return this.j&&!isNaN(this.j.Kd())?this.j.Kd():$D(this)?0:this.lengthSeconds};
g.h.getMinSeekableTime=function(){return this.j&&!isNaN(this.j.getMinSeekableTime())?this.j.getMinSeekableTime():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.j&&this.u){var b=this.j.j[this.u.id];if(!b)return null;var c=b.index.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.h.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Mj)};
g.h.isLoaded=function(){return UD(this)&&!this.De&&!this.pk};
g.h.zf=function(a){if(30==this.Ga)return(a=this.Z["default.jpg"])?a:this.videoId?g.sj("//web.archive.org/web/20220414023957/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//web.archive.org/web/20220414023957/https://docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.B.S||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:OC(this.B,this.videoId,a)};
g.h.fg=function(){return this.isLivePlayback||this.Lf||this.Wh||!(!this.liveUtcStartSeconds||!this.ai)};
g.h.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Lf&&!this.isLivePlayback&&this.j.u)};
g.h.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.us||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.J&&!fA(this.J))return g.Pb(this.getAvailableAudioTracks(),function(d){return d.id==a.J.id})||this.hk;
if(this.us){if(!this.Bl)for(var b=g.r(this.us),c=b.next();!c.done;c=b.next())if(c=c.value,c.Ic.getIsDefault()){this.Bl=c;break}return this.Bl||this.hk}return this.hk};
g.h.getPlayerResponse=function(){return this.playerResponse};
g.h.Zl=function(){return this.watchUrl?this.watchUrl:this.B.getVideoUrl(this.videoId)};
g.h.ZG=function(){return!!this.j&&(Msa(this.j)||Nsa(this.j)||Osa(this.j))};
g.h.isAd=function(){return!!this.adFormat};
g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.h.bJ=function(){return this.Vj||this.Pd};
g.h.zz=function(){return this.qf||this.Pd};
g.h.cF=function(){return gE(this,"html5_samsung_vp9_live")};
g.h.useInnertubeDrmService=function(){return!0};
g.h.xa=function(a,b,c){this.ea("ctmp",a,b,c)};
g.h.BI=function(a,b,c){this.ea("ctmpstr",a,b,c)};
g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.h.qa=function(){g.iv.prototype.qa.call(this);delete this.rl;this.Vm=null;delete this.e1;delete this.accountLinkingConfig;delete this.j;this.C=this.playerResponse=this.watchNextResponse=null;this.Nj=this.adaptiveFormats="";delete this.botguardData;this.Vs={};this.suggestions=null};HE.prototype.ly=function(){return!1};
HE.prototype.Aa=function(){return function(){return null}};var PE=null;g.w(OE,g.iv);OE.prototype.Kx=function(a){return this.j.hasOwnProperty(a)?this.j[a].Kx():{}};
g.Ha("ytads.bulleit.getVideoMetadata",function(a){return QE().Kx(a)});
g.Ha("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=QE();c=qwa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})});g.w(UE,HE);g.h=UE.prototype;g.h.Ou=function(){return!0};
g.h.Bq=function(){return!1};
g.h.isSkippable=function(){return null!=this.ra};
g.h.wh=function(){return this.K};
g.h.getVideoUrl=function(){return null};
g.h.ly=function(){return!0};g.w(aF,HE);aF.prototype.Ou=function(){return!0};
aF.prototype.Bq=function(){return!1};
aF.prototype.ly=function(){return!0};
aF.prototype.Aa=function(){return function(){return g.Th("video-ads")}};wwa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var POa={h1:"FINAL",z1:"AD_BREAK_LENGTH",A1:"AD_CPN",B1:"AH",C1:"AD_MT",D1:"ASR",F1:"AW",d3:"NM",e3:"NX",f3:"NY",q3:"CONN",B3:"CPN",O6:"DV_VIEWABILITY",f7:"ERRORCODE",j7:"ERROR_MSG",l7:"EI",S7:"GOOGLE_VIEWABILITY",j8:"IAS_VIEWABILITY",G9:"LACT",U9:"LIVE_TARGETING_CONTEXT",e$:"I_X",f$:"I_Y",Qaa:"MT",Uaa:"MIDROLL_POS",Vaa:"MIDROLL_POS_MS",Xaa:"MOAT_INIT",Yaa:"MOAT_VIEWABILITY",gda:"P_H",hda:"PV_H",ida:"PV_W",jda:"P_W",oda:"TRIGGER_TYPE",eea:"SDKV",dfa:"SLOT_POS",wfa:"SURVEY_LOCAL_TIME_EPOCH_S",vfa:"SURVEY_ELAPSED_MS",
GU:"VIS",Tga:"VIEWABILITY",Uga:"VED",aha:"VOL",eha:"WT",aia:"YT_ERROR_CODE"};var Ewa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];gF.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.rp(a.baseUrl,Awa(b,d,c));b={};if(a.headers){for(var f=g.r(a.headers),k=f.next();!k.done;k=f.next())switch(k.value.headerType){case "VISITOR_ID":this.N("enable_visitor_header_for_vss")&&g.P("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));break;case "EOM_VISITOR_ID":this.N("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")&&(b["X-Goog-EOM-Visitor-Id"]=g.P("EOM_VISITOR_DATA"));break;case "USER_AUTH":var l=this.j();l&&
(b.Authorization="Bearer "+l);break;case "PLUS_PAGE_ID":var m=this.u();m&&(b["X-Goog-PageId"]=m)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"]}g.Nt(e,void 0,d,0!==Object.keys(b).length?b:void 0)}catch(n){}};g.w(hF,gF);hF.prototype.j=function(){return this.fn?g.BE(this.fn):""};
hF.prototype.u=function(){return this.fn?this.fn.V().pageId:""};
hF.prototype.N=function(a){return this.fn?this.fn.N(a):!1};iF.prototype.send=function(a,b,c){try{var d=a.match(kj);if("https"===d[1])var e=a;else d[1]="https",e=ij("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=Oha(a);e=[];tr(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}),e.push({headerType:"VISITOR_ID"}),e.push({headerType:"EOM_VISITOR_ID"}));this.Mq.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(k){}};g.w(Gwa,g.G);g.w(zF,g.iv);g.h=zF.prototype;g.h.Kx=function(){return{}};
g.h.IQ=function(){};
g.h.Vf=function(a){this.Vq();this.ea(a)};
g.h.Vq=function(){Mwa(this,this.ra,3);this.ra=[]};
g.h.getDuration=function(){return this.I.getDuration(2,!1)};
g.h.Wx=function(){var a=this.j;jF(a)||!sF(a,"impression")&&!sF(a,"start")||sF(a,"abandon")||sF(a,"complete")||sF(a,"skip")||vF(a,"pause");this.C||(a=this.j,jF(a)||!sF(a,"unmuted_impression")&&!sF(a,"unmuted_start")||sF(a,"unmuted_abandon")||sF(a,"unmuted_complete")||vF(a,"unmuted_pause"))};
g.h.Xx=function(){this.va||this.S||this.Gk()};
g.h.Gi=function(){nF(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();jF(a)||(Jwa(a,0,!0),Kwa(a,0,0,!0),mF(a,"unmuted_complete"))}};
g.h.cm=function(){var a=this.j;!sF(a,"impression")||sF(a,"skip")||sF(a,"complete")||rF(a,"abandon");this.C||(a=this.j,sF(a,"unmuted_impression")&&!sF(a,"unmuted_complete")&&rF(a,"unmuted_abandon"))};
g.h.zG=function(){var a=this.j;kF(a)?mF(a,"skip"):!sF(a,"impression")||sF(a,"abandon")||sF(a,"complete")||mF(a,"skip")};
g.h.Gk=function(){if(!this.S){var a=this.Ex();this.j.macros.AD_CPN=a;a=this.j;if(kF(a)){var b=a.j.getCurrentTime(2,!1);qF(a,"impression",b,0)}else mF(a,"impression");mF(a,"start");jF(a)||a.j.isFullscreen()&&rF(a,"fullscreen");this.S=!0;this.C=this.I.isMuted()||0==this.I.getVolume();this.C||(a=this.j,mF(a,"unmuted_impression"),mF(a,"unmuted_start"),jF(a)||a.j.isFullscreen()&&rF(a,"unmuted_fullscreen"))}};
g.h.fm=function(a){a=a||"";var b="",c="",d="";IE(this.I)&&(b=this.I.yb(2).state,this.I.Ld()&&(c=this.I.Ld().Hi(),null!=this.I.Ld().qk()&&(d=this.I.Ld().qk())));var e=this.j;e.macros=fF(e.macros,Dwa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));mF(e,"error");this.C||(e=this.j,e.macros=fF(e.macros,Dwa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),mF(e,"unmuted_error"))};
g.h.Fg=function(){};
g.h.nQ=function(){this.ea("adactiveviewmeasurable")};
g.h.oQ=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")};
g.h.pQ=function(){this.ea("adoverlaymeasurableimpression")};
g.h.qQ=function(){this.ea("adoverlayunviewableimpression")};
g.h.rQ=function(){this.ea("adoverlayviewableendofsessionimpression")};
g.h.sQ=function(){this.ea("adoverlayviewableimmediateimpression")};
g.h.tQ=function(){this.ea("adviewableimpression")};
g.h.dispose=function(){this.isDisposed()||(this.Vq(),this.u.unsubscribe("adactiveviewmeasurable",this.nQ,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.oQ,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.pQ,this),this.u.unsubscribe("adoverlayunviewableimpression",this.qQ,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.rQ,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.sQ,this),this.u.unsubscribe("adviewableimpression",
this.tQ,this),delete this.u.j[this.ad.J],g.iv.prototype.dispose.call(this))};
g.h.Ex=function(){var a=this.I.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.h.dN=function(){return""};g.w(AF,HE);AF.prototype.Ou=function(){return!0};
AF.prototype.Bq=function(){return!1};g.w(BF,ME);g.w(CF,zF);g.h=CF.prototype;g.h.gA=function(){0<this.B&&this.Gk()};
g.h.Gk=function(){var a=this;this.uc=new g.L(function(){a.Gi();for(var b=g.r(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.J.executeCommand(c.value,a.macros);a.Vf("adended")},this.B,this);
g.H(this,this.uc);this.uc.start();Nwa(this,[new BF(this.D.j,this.macros)]);zF.prototype.Gk.call(this)};
g.h.cm=function(){zF.prototype.cm.call(this);this.Vf("adabandoned")};
g.h.Gi=function(){zF.prototype.Gi.call(this)};
g.h.Vf=function(a){this.uc&&this.uc.stop();zF.prototype.Vf.call(this,a)};g.w(DF,HE);DF.prototype.Ou=function(){return!0};
DF.prototype.Bq=function(){return!1};g.w(EF,HE);EF.prototype.Ou=function(){return!0};
EF.prototype.Bq=function(){return!1};Pwa.prototype.create=function(a,b){return a instanceof UE?this.C.create(a,b):a instanceof AF?this.j.create(a,b):a instanceof EF?this.B.create(a,b):a instanceof DF?this.u.create(a,b):null};g.w(FF,zF);g.h=FF.prototype;g.h.cm=function(){zF.prototype.cm.call(this);this.Vf("adabandoned")};
g.h.Wx=function(){zF.prototype.Wx.call(this);this.ea("adpause",2)};
g.h.Xx=function(){zF.prototype.Xx.call(this);this.ea("adplay",1)};
g.h.Gk=function(){zF.prototype.Gk.call(this);this.B.stop();this.D.T(this.I,g.Lw("bltplayback"),this.SS);var a=new g.Jw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.je([a],2);this.ea("adplay",1)};
g.h.Gi=function(){zF.prototype.Gi.call(this);this.Vf("adended")};
g.h.fm=function(a){zF.prototype.fm.call(this,a);this.Vf("aderror")};
g.h.gA=function(){KE(this.I,!1);var a=this.J.u||{};a.autoplay="1";this.I.cueVideoByPlayerVars(a,2);this.B.start();this.I.playVideo(2);this.I.Oa("onAdIntroStateChange",1)};
g.h.Vf=function(a){this.B.stop();KE(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");this.I.Oa("onAdEnd");this.ea(a);this.I.Oa("onAdIntroStateChange",0)};
g.h.SS=function(a){"bltcompletion"==a.getId()&&(this.I.Nf("bltplayback",2),nF(this.j,this.getDuration()))};var TMa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);g.w(Qwa,ME);g.w(IF,zF);g.h=IF.prototype;g.h.gA=function(){if(this.K){var a=this.B.j;if(!HF(a)){g.Jv(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.r(this.K.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;Zwa(d.j(),c);$wa(d.j(),c);d=d.j();d=g.r(d.qe);for(var e=d.next();!e.done;e=d.next())e.value.Hj(c)}}0>=this.Y&&(g.Iv(Error("durationMs was specified incorrectly with a value of: "+this.Y)),this.Gi());this.Gk();this.I.addEventListener("progresssync",this.ma)};
g.h.cm=function(){zF.prototype.cm.call(this);this.Vf("adabandonedreset",!0)};
g.h.Gk=function(){var a=this.I.V();Cx("apbs",void 0,"video_to_ad");g.px("ad_at","0_0","video_to_ad");zF.prototype.Gk.call(this);this.D=a.N("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.J=this.D+this.Y/1E3;g.IC(a)?this.I.Oa("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):Nwa(this,[new Qwa(this.B.j)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Tv(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.Ds("adNotify",{clientScreenNonce:b,
adMediaTimeMs:Math.floor(1E3*this.J),timeToAdBreakSec:Math.ceil(this.J-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.K){this.Z=!0;b=this.B.j;if(!HF(b)){g.Jv(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.K.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;axa(d.j(),e);LV(d.j(),e,f)}}g.U(this.I.yb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Tv(),c=this.B.j.videoAdBreakOffsetMsInt64,
b&&g.Ds("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.J),timeToAdBreakSec:Math.ceil(this.J-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Gi())};
g.h.Gi=function(){zF.prototype.Gi.call(this);this.Vf("adended",!0)};
g.h.fm=function(a){g.Jv(Error("Player error during adNotify."));zF.prototype.fm.call(this,a);this.Vf("aderror",!0)};
g.h.Vf=function(a,b){(void 0===b?0:b)||g.Jv(Error("TerminateAd directly called from other class during adNotify."));this.I.removeEventListener("progresssync",this.ma);this.Vq();Twa(this,a);"adended"===a||"aderror"===a?this.ea("adnotifyexitednormalorerror"):this.ea(a)};
g.h.dispose=function(){this.I.removeEventListener("progresssync",this.ma);Twa(this);zF.prototype.dispose.call(this)};
g.h.Vq=function(){g.IC(this.I.V())?this.I.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):zF.prototype.Vq.call(this)};LF.prototype.sendAdsPing=function(a){this.B.send(a,Uwa(this),{})};
LF.prototype.yf=function(a){var b=this;if(a){var c=Uwa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.w(MF,zF);g.h=MF.prototype;g.h.Kx=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:owa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}};
g.h.gA=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.wh();a&&b&&this.I.V().Z.add(b,{ix:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{eea(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Fg("//web.archive.org/web/20220414023957/https://tpc.googlesyndication.com/sodar/%{path}");g.Jv(new g.Is("Load Sodar Error.",d instanceof Dg,d.constructor===Dg,{Message:e.message,"Escaped injector basename":g.Dh(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Dg)throw e;}}catch(e){g.Iv(e)}KE(this.I,!1);a=
uwa(this.B);b=this.I.V();a.iv_load_policy=b.isMobile||g.IC(b)||g.TC(b)?3:1;b=this.I.getVideoData(1);b.fh&&(a.ctrl=b.fh);b.Dh&&(a.ytr=b.Dh);b.dn&&(a.ytrcc=b.dn);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.ij&&(a.vss_credentials_token_type=b.ij),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.h.Wx=function(){zF.prototype.Wx.call(this);this.ea("adpause",2)};
g.h.Xx=function(){zF.prototype.Xx.call(this);this.ea("adplay",1)};
g.h.Gk=function(){zF.prototype.Gk.call(this);this.J.stop();this.Z.T(this.I,g.Lw("bltplayback"),this.US);var a=new g.Jw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.je([a],2);a=QF(this);this.D.Aa=a;if(this.I.isMuted()){a=this.j;var b=this.I.isMuted();kF(a)||mF(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.K){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=Xwa(this);for(var c=this.B,d=Wwa(this),e=g.r(this.K.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var k=b,l=c,m=d,n=[],p=l.wh(),q=l.getVideoUrl();p&&n.push(new JU(p));q&&n.push(new KU(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new MU(q)),(q=q.elementId)&&n.push(new VU(q))):S("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new NU(p));l.j.adNextParams&&n.push(new AU(l.j.adNextParams||""));(p=l.va)&&n.push(new BU(p));(p=rw(f.Qa.get(),2))?(n.push(new FU({channelId:p.Zj,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new GU(p.isListed))):S("Expected meaningful PlaybackData on ad started.");n.push(new IU(l.B));n.push(new cV(l.u));n.push(new LU(a));n.push(new ZU({current:this}));p=l.Ia;null!=p.kind&&n.push(new HU(p));(p=l.Ga)&&n.push(new pV(p));void 0!==m&&n.push(new qV(m));f.j?S(f.j.layoutId===k?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):Ywa(f,k,n,!0,l.j.adLayoutLoggingData)}}this.I.Oa("onAdStart",
QF(this));a=g.r(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.h.US=function(a){"bltcompletion"==a.getId()&&(this.I.Nf("bltplayback",2),nF(this.j,this.getDuration()),PF(this,"adended"))};
g.h.Gi=function(){zF.prototype.Gi.call(this);this.Vf("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.h.cm=function(){zF.prototype.cm.call(this);this.Vf("adabandoned")};
g.h.YC=function(){var a=this.j;jF(a)||rF(a,"clickthrough");this.C||(a=this.j,jF(a)||rF(a,"unmuted_clickthrough"))};
g.h.Ty=function(){this.zG()};
g.h.zG=function(){zF.prototype.zG.call(this);this.Vf("adended")};
g.h.fm=function(a){zF.prototype.fm.call(this,a);this.Vf("aderror")};
g.h.Vf=function(a){this.J.stop();KE(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");PF(this,a);this.I.Oa("onAdEnd",QF(this));this.ea(a)};
g.h.Vq=function(){var a=this.I.V();g.IC(a)&&(g.TC(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.IC(a))?this.I.Oa("onAdInfoChange",null):zF.prototype.Vq.call(this)};
g.h.IQ=function(){this.KW&&this.I.playVideo()};
g.h.KW=function(){return 2==this.I.getPlayerState(2)};
g.h.dN=function(a,b){if(!Number.isFinite(a))return g.Iv(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Iv(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=uwa(this.B);d=this.I.Ut(d,2,c,a,b);a+c>b&&this.I.Tv(d,b-a);return d};
g.h.dispose=function(){owa(this.I)&&!this.Y&&this.I.stopVideo(2);PF(this,"adabandoned");zF.prototype.dispose.call(this)};RF.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={nx:null,CO:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.CO))if(b.CO=c,b.nx){if(c<b.nx.end){a:{c=b.nx;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start||c.end<=a?null:a}null!==a&&(b.nx.end=a,this.u.vP(a))}}else if(a=cxa(a,
this.B))c=a.BW,b.nx=a.kV,this.u.cI(c)};
RF.prototype.updateTime=function(){};UF.prototype.Mg=function(a){var b=this.j;g.vi(function(){return b.Mg(a,1)})};g.h=WF.prototype;g.h.Xt=function(a,b,c,d,e){var f=this;kxa(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.Ve=!1;f.u=!1;f.C=!b&&0===c})};
g.h.iJ=function(){this.u=!1;var a={};!this.I.N("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ox("video_to_ad",a)};
g.h.jJ=function(){this.u=!1;var a={};!this.I.N("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ox("ad_to_ad",a)};
g.h.Lv=function(){this.u=!1;var a={};!this.I.N("web_player_csi_ctt_killswitch")&&this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});ox("ad_to_video",a);this.I.N("html5_csi_delay_pbresume")&&(this.I.vj().u=this.I.getCurrentTime(1));this.I.N("send_csi_info_for_ad_to_video_killswitch")||jxa(this)};
g.h.SI=function(){if(this.Ve&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(mx("apbs",void 0,this.actionType),g.Q("finalize_all_timelines")))){var a=this.actionType;lx(a);ex(a);kx(a)}};
g.h.reset=function(){return new WF(this.I)};var t0={},u0=(t0.BUFFERING="buffering-mode",t0.CUED="cued-mode",t0.ENDED="ended-mode",t0.PAUSED="paused-mode",t0.PLAYING="playing-mode",t0.SEEKING="seeking-mode",t0.UNSTARTED="unstarted-mode",t0);var ZSa,v0,mxa;
ZSa={R1:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",v2:"AUTHENTICATION_MALFORMED",w2:"AUTHENTICATION_MISSING",E2:"BAD_REQUEST",P2:"CAST_SESSION_DEVICE_MISMATCHED",Q2:"CAST_SESSION_VIDEO_MISMATCHED",R2:"CAST_TOKEN_EXPIRED",S2:"CAST_TOKEN_FAILED",T2:"CAST_TOKEN_MALFORMED",U2:"CGI_PARAMS_MALFORMED",V2:"CGI_PARAMS_MISSING",C6:"DEVICE_FALLBACK",g7:"GENERIC_WITH_LINK_AND_CPN",h7:"ERROR_HDCP",i7:"LICENSE",k7:"VIDEO_UNAVAILABLE",w7:"FORMAT_UNAVAILABLE",L7:"GEO_FAILURE",e8:"HTML5_AUDIO_RENDERER_ERROR",
f8:"GENERIC_WITHOUT_LINK",g8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",h8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",i8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",J8:"INVALID_DRM_MESSAGE",Ada:"PURCHASE_NOT_FOUND",Bda:"PURCHASE_REFUNDED",Oda:"RENTAL_EXPIRED",Wda:"RETRYABLE_ERROR",mea:"SERVER_ERROR",lfa:"STOPPED_BY_ANOTHER_PLAYBACK",pfa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",qfa:"STREAMING_NOT_ALLOWED",rfa:"STREAM_LICENSE_NOT_FOUND",Efa:"TOO_MANY_REQUESTS",Ffa:"TOO_MANY_REQUESTS_WITH_LINK",
Gfa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Hfa:"TOO_MANY_STREAMS_PER_USER",Cga:"UNSUPPORTED_DEVICE",Oga:"VIDEO_FORBIDDEN",Rga:"VIDEO_NOT_FOUND"};v0={};
g.IK=(v0.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",v0.DEVICE_FALLBACK="Sorry, this video is not available on this device.",v0.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",v0.LICENSE="Sorry, there was an error licensing this video.",v0.VIDEO_UNAVAILABLE=
"Video unavailable",v0.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",v0.GEO_FAILURE="This video isn't available in your country.",v0.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",v0.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",v0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",v0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
v0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",v0.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",v0.PURCHASE_NOT_FOUND="This video requires payment.",v0.PURCHASE_REFUNDED="This video's purchase has been refunded.",v0.RENTAL_EXPIRED="This video's rental has expired.",v0.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",v0.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
v0.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",v0.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",v0.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",v0.SERVER_ERROR="There was an internal server error. Please try again later.",v0.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",v0.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
v0.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",v0.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",v0.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",v0.TOO_MANY_REQUESTS="Please log in to watch this video.",v0.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",v0.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
v0.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",v0.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",v0.VIDEO_FORBIDDEN="Access to this video is forbidden.",v0.VIDEO_NOT_FOUND="This video can not be found.",v0);
mxa={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(XF,g.G);g.h=XF.prototype;g.h.hA=function(){return this.u};
g.h.St=function(a){var b="";a&&(pxa(this,a),b=a.j);if(!this.dg()||b)b&&this.dg()!==b&&(this.lA(b),delete this.B),$Sa||a&&a.u||this.load(),this.K||(this.addEventListener("volumechange",this.GM),this.K=!0)};
g.h.xr=function(){if(this.B){var a=this.B;this.B=void 0;return a}a=this.nf();a=window.MediaSource?new BA(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new BA(new window.WebKitMediaSource,void 0,!1):new BA(void 0,a,!1);this.St(a.By);return a};
g.h.playVideo=function(){var a=this;this.Gg()&&this.seekTo(0);!this.dg()&&this.u&&(g.hr(Error("playVideo without src")),this.lA(this.u.j),this.u.u||this.load());var b=this.play();!b&&aTa&&UK&&7<=(FE||0)&&g.loa(this,"playing",function(){g.Br(function(){oxa(a,a.getCurrentTime(),0)},500)});
return b};
g.h.seekTo=function(a){0<this.Hi()&&(bTa&&UK&&4>FE&&(a=Math.max(.1,a)),this.kA(a))};
g.h.stopVideo=function(){!this.B&&this.dg()&&(cTa&&fs&&0<this.getCurrentTime()&&this.seekTo(0),this.WC(),this.load(),pxa(this,null))};
g.h.Eu=function(){var a=this.Vg();return 0<vA(a)&&this.getDuration()?uA(a,this.getCurrentTime()):0};
g.h.vr=function(){var a=this.getDuration();return Infinity===a?1:a?this.Eu()/a:0};
g.h.Pb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:rA(this.yr(),",",3),vbu:rA(this.Vg()),vpa:""+ +this.Mm(),vsk:""+ +this.yw(),ven:""+ +this.Gg(),vpr:""+this.getPlaybackRate(),vrs:""+this.Hi(),vns:""+this.uB(),vec:""+this.qk(),vemsg:this.jf(),vvol:""+this.getVolume(),vdom:""+ +this.YG(),vsrc:""+ +!!this.dg(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.h.addEventListener=function(a,b){this.C.Ma(a,b,!1,this);this.PF(a)};
g.h.removeEventListener=function(a,b){this.C.xc(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.C.dispatchEvent(a)};
g.h.NF=function(){this.J=!1};
g.h.LF=function(){this.J=!0;this.Gv(!0)};
g.h.GM=function(){this.J&&!this.tB()&&this.Gv(!0)};
g.h.equals=function(a){return!!a&&a.nf()===this.nf()};
g.h.qa=function(){this.K&&this.removeEventListener("volumechange",this.GM);g.G.prototype.qa.call(this)};
var $Sa=!1,cTa=!0,aTa=!0,bTa=!0;g.h=g.aG.prototype;g.h.getData=function(){return this.stateData};
g.h.Nc=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)};
g.h.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)};
g.h.isError=function(){return g.U(this,128)};
g.h.isSuspended=function(){return g.U(this,512)};
g.h.toString=function(){return"PSt."+this.state.toString(16)};g.w(kG,g.iv);g.h=kG.prototype;g.h.Fr=function(){var a=this.u;return a.u instanceof UE||a.u instanceof aF||a.u instanceof VE};
g.h.ZD=function(){return this.u.u.Bq()};
g.h.tK=function(){return this.u.j};
g.h.aE=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.h.uK=function(){return bF(this.u)};
g.h.IN=function(a){if(!Ow(a)){this.Y&&(this.va=this.I.isAtLiveHead(),this.ra=Math.ceil(g.Ta()/1E3));var b=new UF(this.Rg);a=exa(a);b.Mg(a)}this.vK()};
g.h.pO=function(){return!0};
g.h.sy=function(){return this.K instanceof UE};
g.h.vK=function(){var a=this.Rg;this.pO()&&(a.u&&nG(a,!1),a.u=this,this.Fr()&&Sya(a));this.D.iJ();this.dQ()};
g.h.dQ=function(){this.K?this.zw(this.K):oG(this)};
g.h.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Lj(0);oG(this,b)};
g.h.iP=function(){this.onAdEnd()};
g.h.sX=function(){mF(this.j.j,"active_view_measurable")};
g.h.vX=function(){var a=this.j.j;jF(a)||uF(a)||mF(a,"active_view_fully_viewable_audible_half_duration")};
g.h.yX=function(){};
g.h.zX=function(){};
g.h.AX=function(){};
g.h.BX=function(){};
g.h.EX=function(){var a=this.j.j;jF(a)||uF(a)||mF(a,"active_view_viewable")};
g.h.tX=function(){var a=this.j.j;jF(a)||uF(a)||mF(a,"audio_audible")};
g.h.uX=function(){var a=this.j.j;jF(a)||uF(a)||mF(a,"audio_measurable")};
g.h.rN=function(){return this.sy()?[this.wB()]:[]};
g.h.Yc=function(a){if(null!==this.j){this.ma||(a=new g.wF(a.state,new g.aG),this.ma=!0);var b=a.state;if(g.yF(a,2))this.j.Gi();else{var c=a;(this.I.V().experiments.jb("html5_bulleit_handle_gained_playing_state")?c.state.Nc()&&!c.Rp.Nc():c.state.Nc())?(this.D.SI(),this.j.Xx()):b.isError()?this.j.fm(b.getData().errorCode):g.yF(a,4)&&(this.Z||this.j.Wx())}if(null!==this.j){if(g.yF(a,16)&&(b=this.j.j,!(jF(b)||.5>b.j.getCurrentTime(2,!1)&&!b.j.V().N("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;
if(c.ly()){var d=b.B.I.V().N("html5_dai_enable_active_view_creating_completed_adblock");Lha(c.J,d)}b.ad.D.seek=!0}0>xF(a,4)&&!(0>xF(a,2))&&(b=this.j,c=b.j,jF(c)||vF(c,"resume"),b.C||(b=b.j,jF(b)||vF(b,"unmuted_resume")));!this.I.V().experiments.jb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.yF(a,512)&&!g.iG(a.state)&&this.D.Lv()}}};
g.h.onVideoDataChange=function(){return this.daiEnabled?sxa(this):!1};
g.h.resume=function(){this.j&&this.j.IQ()};
g.h.ap=function(){this.j&&this.j.Vf("adended")};
g.h.Sl=function(){this.ap()};
g.h.Lj=function(a){this.Rg.Lj(a)};
g.h.VS=function(a){this.Rg.j.Oa("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.j.Fg(a)};
g.h.pN=function(){return 0};
g.h.qN=function(){return 1};
g.h.GJ=function(a){this.daiEnabled&&this.u.J&&this.u.j.start<=a&&a<mG(this)&&this.I.Wq(a,this.u.j.end)};
g.h.zw=function(a){g.nf(this.j);this.j=a=this.Kq.create(a,eF(Bwa(this.u)),this.u.j.j);this.nH(a);a.va?a.fm("ui_unstable"):a.gA();txa(this,!1)};
g.h.nH=function(a){a.subscribe("adabandoned",g.Ra(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Ra(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.sX,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.iP,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.vX,this);a.subscribe("adoverlaymeasurableimpression",this.yX,this);a.subscribe("adoverlayunviewableimpression",this.zX,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.AX,this);a.subscribe("adoverlayviewableimmediateimpression",this.BX,this);a.subscribe("adpause",this.EG,this);a.subscribe("adplay",this.EG,this);a.subscribe("adunstarted",this.EG,this);a.subscribe("onAdUxUpdate",this.VS,this);a.subscribe("adviewableimpression",this.EX,this);a.subscribe("adaudioaudible",this.tX,this);a.subscribe("adaudiomeasurable",this.uX,this)};
g.h.EG=function(a){this.Lj(a)};
g.h.wB=function(){return this.K};
g.h.isLiveStream=function(){return this.Y};
g.h.reset=function(){return new kG(this.Rg,this.I,this.D.reset(),this.u,this.jn,this.nu,this.Kq,this.daiEnabled)};
g.h.qa=function(){g.nf(this.j);this.j=null;g.iv.prototype.qa.call(this)};yxa.prototype.create=function(a){return(a.u instanceof VE?this.B:""===a.D?this.j:this.u)(a)};pG.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Tv(void 0===c?0:c))?(Cpa(this.client,c,g.Mv(a),b),b=!0):b=!1:b=!1;return b};sG.prototype.handleResponse=function(a,b){var c,d;b=(null==(c=b.lm.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
sG.prototype.replace=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Exa(this,b)};var dTa=window.location.hostname.split(".").slice(-2).join("."),w0;tG.getInstance=function(){w0=g.Ia("yt.clientLocationService.instance");w0||(w0=new tG,g.Ha("yt.clientLocationService.instance",w0));return w0};
tG.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=1E7*this.j.coords.latitude,a.client.locationInfo.longitudeE7=1E7*this.j.coords.longitude,a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
tG.prototype.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")?(this.localStorage=Fxa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Pr("YT_CL",JSON.stringify({loctok:a}),15552E3,dTa,!0))};
tG.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.Q("web_enable_browser_geolocation_api")&&!g.Q("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Q("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
tG.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};vG.prototype.oB=function(a,b){a={};var c=Ri([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.P("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.Q("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c),"INNERTUBE_HOST_OVERRIDE"in $q||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in $q&&(a["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return a};var xG;g.w(wG,vG);wG.prototype.oB=function(a,b){a=vG.prototype.oB.call(this,a,b);return Object.assign({},a,this.Ds)};var Txa=/[&\?]action_proxy=1/,Sxa=/[&\?]token=([\w-]*)/,Uxa=/[&\?]video_id=([\w-]*)/,Vxa=/[&\?]index=([\d-]*)/,Wxa=/[&\?]m_pos_ms=([\d-]*)/,Zxa=/[&\?]vvt=([\w-]*)/,Nxa="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(" "),Xxa="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(" "),Pxa={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"},Qxa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Yxa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};zG.prototype.Wu=function(a){this.player.vj().tick(a)};
zG.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return BG(this,a,b);var d=1===this.j;d&&this.Wu("a_bid_s");var e=Ixa();if(null!==e)return d&&this.Wu("a_bid_f"),BG(this,a,b,e);e=Jxa();d&&Ci(e,function(){c.Wu("a_bid_f")});
return e.then(function(f){return BG(c,a,b,f)})};
zG.prototype.reset=function(){this.u=this.j=1};g.w(CG,g.iv);g.h=CG.prototype;g.h.tK=function(){return this.j.j};
g.h.aE=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.h.uK=function(){return bF(this.j)};
g.h.Fr=function(){return!1};
g.h.ZD=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.IN=function(a){var b=this;S("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.aE()||(c=exa(a));this.j.B=1;Ci(this.C.fetch(this.j.D,{mx:this.j.C||void 0,Qd:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=$xa(b,d);var f=b.B;f.j&&d.isEmpty&&ixa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.qO||(b.j.B=2,(new UF(b.u)).Mg(e),d.isEmpty||Opa(b.J,d.Zm))}},function(){(new UF(b.u)).Mg(c);
var d=b.B;d.j&&ixa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.aE()&&RG(b.u)})}};
g.h.vK=function(){};
g.h.GJ=function(){};g.w(DG,HE);DG.prototype.Ou=function(){return!0};
DG.prototype.Bq=function(){return!1};var cya=Object.freeze([AF,DF,aF,DG,UE]);g.w(EG,kG);g.h=EG.prototype;g.h.rN=function(){for(var a=this.B.j,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.h.pO=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Ou()})};
g.h.sy=function(){return this.J instanceof UE||this.J instanceof DF};
g.h.dQ=function(){this.daiEnabled?IE(this.I)&&sxa(this):bya(this)};
g.h.zw=function(a){var b=aya(a);this.J&&b&&this.S!==b&&(b?Sya(this.Rg):Uya(this.Rg),this.S=b);this.J=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
kG.prototype.zw.call(this,a)};
g.h.nH=function(a){var b=this;kG.prototype.nH.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void oG(b)})};
g.h.Sl=function(){this.C=this.B.j.length;this.j&&this.j.Vf("adended");oG(this)};
g.h.ap=function(){this.onAdEnd()};
g.h.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Lj(0),a?oG(this,b):bya(this))};
g.h.iP=function(){if(1==this.B.u)this.J instanceof EF&&g.Jv(Error("AdNotify error with FailureMode.TERMINATING")),oG(this);else this.onAdEnd()};
g.h.wB=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.h.Fr=function(){return this.S};
g.h.ZD=function(){return this.B.j.every(function(a){return a.Bq()})};
g.h.reset=function(){return new EG(this.Rg,this.I,this.D.reset(),this.u,this.jn,this.nu,this.Kq,this.daiEnabled)};
g.h.pN=function(){return this.C};
g.h.qN=function(){return this.B.j.length};dya.prototype.nN=function(){return this.j};g.w(eya,VE);g.w(gya,VE);hya.prototype.create=function(a,b){function c(k){return new UE(k,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new gya(f,c,this.j):null!=a?new eya(a,c):null};iya.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var k=b,l=new Upa(k.B,k.u,k.daiEnabled,k.C),m=k.Rd;m&&(l.Rd=new Bw(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.j));k.j&&(l.j=k.j);l.visible=k.visible;k=l;k.Rd=f;e.push(jya(this,a[0],c,k));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(jya(this,d.value,c,b)),c++;return e};g.w(FG,g.G);FG.prototype.addEventListener=function(a,b){this.j=b};
FG.prototype.removeEventListener=function(){this.j=null};
g.w(GG,g.G);GG.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
GG.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.w(mya,g.G);var HG=null,IG=null,JG=null,KG=null;g.Ha("yt.www.ads.eventcache.getLastCompanionData",function(){return HG});
g.Ha("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Ha("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return IG});
g.Ha("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return JG});
g.Ha("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return KG});var xya={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(NG,g.G);NG.prototype.qa=function(){this.Be.clear();g.G.prototype.qa.call(this)};
NG.prototype.yf=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)};
NG.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&yya(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?uya(this,e):"confirmDialogEndpoint"===d?vya(this,e):xya.hasOwnProperty(d)||yya(this,d,e,b,c)}};g.w(PG,WF);g.h=PG.prototype;g.h.Xt=function(){};
g.h.iJ=function(){};
g.h.jJ=function(){};
g.h.Lv=function(){};
g.h.SI=function(){};
g.h.reset=function(){return new PG(this.I)};g.w(Dya,g.G);g.w(QG,g.iv);g.h=QG.prototype;g.h.GG=function(){return!Mya(this,Qya(this))};
g.h.Ex=function(){return this.Aa};
g.h.qa=function(){this.ma=!0;g.hv(this.C);if(JE(this.j)){var a=Gya(this.j);a.removeEventListener("updateKevlarOrC3Companion",nya);a.removeEventListener("updateEngagementPanelAction",oya);a.removeEventListener("changeEngagementPanelVisibility",pya);window.removeEventListener("yt-navigate-start",qya);KG=JG=IG=HG=null}a=g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())Tya(this,b.value);nG(this,!1);this.Lq.clear();this.Y=[];this.K.clear();g.nf(this.Z);this.Z=new Map;g.nf(this.J);this.J=new Map;
this.B.clear();g.iv.prototype.qa.call(this)};
g.h.PH=function(a){if(a instanceof Nw&&!a.B&&(!iqa(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.U(this.j.yb(1),32))this.K.add(a);else{var b=this.B.get(a);b&&((this.j.V().experiments.jb("enable_eviction_protection_for_bulleit")?this.u?this.u.ZD():1:1)?b.IN(a):a.deactivate())}};
g.h.eY=function(a){a instanceof Nw&&(a.B&&(a.B=!1),this.K.delete(a))};
g.h.cI=function(){};
g.h.vP=function(a){var b=1E3*a;this.u&&this.u.GJ(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.GJ(b);g.kc(this.Ia.j,1E3*a)};
g.h.wm=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.sy()&&a.I.Pc().playVideo());break;case "control_pause":this.u&&(a=this.u,a.sy()&&a.I.Pc().pauseVideo())}};
g.h.XS=function(a){this.u&&this.u.Yc(a)};
g.h.PX=function(a){0>xF(a,16)&&(this.K.forEach(this.PH,this),this.K.clear())};
g.h.g_=function(){if(this.u)this.u.onVideoDataChange()};
g.h.j_=function(){if(IE(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&Owa(b.j,a)}};
g.h.qX=function(){this.Ta=!0;if(this.u){var a=this.u;a.j&&a.j.cm()}};
g.h.CX=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.h.k_=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.I.isMuted();kF(b)||mF(b,c?"mute":"unmute");a.C||(b=a.I.isMuted(),mF(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.h.oY=function(a){if(this.u){var b=this.u.j,c=b.j;jF(c)||rF(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,jF(b)||rF(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.h.Mg=function(a,b){this.j.Mg(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Lq.delete(b),this.B.delete(b)};
g.h.M0=function(){for(var a=[],b=g.r(this.Lq),c=b.next();!c.done;c=b.next())c=c.value,Ow(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||FT(b,"cuerangemarkersupdated",a)};
g.h.Lj=function(a){this.j.Lj(a);switch(a){case 1:this.JB=1;break;case 0:this.JB=0}};
g.h.eJ=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.S:!1};
g.h.ap=function(){this.u&&this.u.Fr()&&this.u.ap()};
g.h.Sl=function(){this.u&&this.u.Fr()&&this.u.Sl()};
g.h.eB=function(){};
g.h.NA=function(){};
g.h.Tb=function(a){if(this.u){var b=this.u;b.j&&Owa(b.j,a)}};
g.h.executeCommand=function(a,b,c){this.kb.executeCommand(a,b,Pya(this,void 0===c?null:c))};
g.h.isDaiEnabled=function(){return!1};
g.h.nN=function(){return this.va};
g.h.oN=function(){return this.Ga};g.w(SG,g.G);SG.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)};
g.w(TG,SG);g.w(Xya,g.G);var Zya=1;g.w(g.VG,g.G);g.h=g.VG.prototype;
g.h.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ea;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.YC&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.ci(a.G);if(c){if(c=WG(this,e,"class",c))XG(this,e,"class",c),this.Vb[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Vb[f.value]=e;XG(this,e,"class",d.join(" "))}d=a.oa;c=a.U;if(d)b=WG(this,e,"child",d),void 0!==b&&e.appendChild(g.di(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=WG(this,e,"child",f),null!=f&&e.appendChild(g.di(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Mb&&(k=UG(),f.id=k,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+k),g.fi(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],XG(this,b,c,"string"===typeof f?
WG(this,b,c,f):f);return e};
g.h.Ca=function(a){return this.Vb[a]};
g.h.Ba=function(a,b){"number"===typeof b?g.fi(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.gi(this.element)};
g.h.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Ka(c,a[c])};
g.h.Ka=function(a,b){(a=this.Oe["{{"+a+"}}"])&&XG(this,a[0],a[1],b)};
g.h.qa=function(){this.Vb={};this.Oe={};this.detach();g.G.prototype.qa.call(this)};g.w(g.V,g.VG);g.h=g.V.prototype;g.h.Od=function(a,b){this.Ka(b||"content",a)};
g.h.show=function(){this.sb||(g.Km(this.element,"display",""),this.sb=!0)};
g.h.hide=function(){this.sb&&(g.Km(this.element,"display","none"),this.sb=!1)};
g.h.jc=function(a){this.ra=a};
g.h.Ma=function(a,b,c){return this.T(this.element,a,b,c)};
g.h.T=function(a,b,c,d){c=(0,g.Qa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.h.xc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.h.focus=function(){var a=this.element;li(a);a.focus()};
g.h.qa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.VG.prototype.qa.call(this)};g.w(g.ZG,g.V);g.ZG.prototype.subscribe=function(a,b,c){return this.Xa.subscribe(a,b,c)};
g.ZG.prototype.unsubscribe=function(a,b,c){return this.Xa.unsubscribe(a,b,c)};
g.ZG.prototype.yg=function(a){return this.Xa.yg(a)};
g.ZG.prototype.ea=function(a){return this.Xa.ea.apply(this.Xa,[a].concat(g.u(g.Ba.apply(1,arguments))))};var eTa=new WeakSet;g.w($G,g.ZG);g.h=$G.prototype;g.h.bind=function(a){if(!this.Ta&&a.renderer){var b=Object.assign({},Wya(this.api,this.bb),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.Ta=a;this.element.setAttribute("id",this.Ta);this.kb&&g.M(this.element,this.kb);this.Y=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&this.Qh(this.element,this.K)};
g.h.clear=function(){};
g.h.hide=function(){g.ZG.prototype.hide.call(this);null!=this.K&&this.Wa(this.element,!1)};
g.h.show=function(){g.ZG.prototype.show.call(this);if(!this.rb){this.rb=!0;var a=this.Y&&this.Y.impressionCommand;a&&this.LI(a,null)}null!=this.K&&this.Wa(this.element,!0)};
g.h.onClick=function(a){if(this.K&&!eTa.has(a)){var b=this.element;this.api.Dp(b)&&this.sb&&this.api.ub(b,this.j);eTa.add(a)}if(a=this.Y&&this.Y.clickCommand)a=this.mQ(a),this.LI(a,this.sN())};
g.h.mQ=function(a){return a};
g.h.sN=function(){return null};
g.h.aT=function(a){var b=this.ma;b.K=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.J=Yya(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.S=Infinity,b.Y=Infinity):(b.S=c.clientX,b.Y=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.h.ZS=function(a){var b=this.ma;a=a.changedTouches.item(0);if(Jb()&&!(0<=g.pb(Mb(),8))||a&&Math.pow(a.clientX-b.S,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.C=!0};
g.h.YS=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&Yya(b,c)&&(b.Z=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.h.LI=function(a){this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.eb.executeCommand(a,this.layoutId):g.Iv(new g.Is("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType})):AH(this.eb,a,this.macros)};
g.h.Qh=function(a,b){this.api.Qh(a,this);this.api.al(a,b)};
g.h.Wa=function(a,b){this.api.Dp(a)&&this.api.Wa(a,b,this.j)};
g.h.qa=function(){this.clear(null);this.xc(this.ib);for(var a=g.r(this.va),b=a.next();!b.done;b=a.next())this.xc(b.value);g.ZG.prototype.qa.call(this)};g.w(oH,$G);
oH.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.Jv(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.M(this.element,a);null!=b.text&&(a=g.Qw(b.text),g.ib(a)||(this.element.setAttribute("aria-label",a),this.C=new g.ZG({G:"span",L:"ytp-ad-button-text",oa:a}),g.H(this,this.C),this.C.Ba(this.element)));null!=b.icon&&(b=nH(b.icon),
null!=b&&(this.B=new g.ZG({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.H(this,this.B)),this.D?g.fi(this.element,this.B.element,0):this.B.Ba(this.element))}};
oH.prototype.clear=function(){this.hide()};
oH.prototype.onClick=function(a){$G.prototype.onClick.call(this,a);a=g.r(sza(this));for(var b=a.next();!b.done;b=a.next())AH(this.eb,b.value,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(pH,g.G);pH.prototype.qa=function(){this.u&&g.pu(this.u);this.j.clear();qH=null;g.G.prototype.qa.call(this)};
pH.prototype.register=function(a,b){b&&this.j.set(a,b)};
var qH=null;g.w(sH,$G);
sH.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.Iv(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new oH(this.api,this.bb,this.layoutId,this.j,this.eb),g.H(this,this.button),this.button.init(LE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Qw(a)),this.button.Ba(this.element),this.J&&!g.Fp(this.button.element,"ytp-ad-clickable")&&g.M(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.ZG({G:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.ZG({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ba(this.B.element),g.H(this,b)),g.H(this,this.B),this.B.Ba(this.element),b=rH(a),g.fi(this.B.element,b,0)),this.show())};
sH.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();$G.prototype.hide.call(this)};
sH.prototype.show=function(){this.button&&this.button.show();$G.prototype.show.call(this)};g.w(uH,$G);uH.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&tH(a)||"";g.ib(b)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Jv(Error("Found AdImage without valid image URL")):(this.u?g.Km(this.element,"backgroundImage","url("+b+")"):Vh(this.element,{src:b}),Vh(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
uH.prototype.clear=function(){this.hide()};g.w(vH,$G);g.h=vH.prototype;g.h.hide=function(){$G.prototype.hide.call(this);this.C&&this.C.focus()};
g.h.show=function(){this.C=document.activeElement;$G.prototype.show.call(this);this.D.focus()};
g.h.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.Iv(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.Iv(Error("ConfirmDialogRenderer.cancelLabel was not set.")):wza(this,b):g.Iv(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.hv(this.u);this.hide()};
g.h.NH=function(){this.hide()};
g.h.iE=function(){var a=this.B.cancelEndpoint;a&&AH(this.eb,a,this.macros);this.hide()};
g.h.OH=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&AH(this.eb,a,this.macros);this.hide()};g.w(wH,$G);g.h=wH.prototype;
g.h.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.Iv(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.Iv(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.M(this.C,a)}a={};b.defaultText?
(c=g.Qw(b.defaultText),g.ib(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Wm(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=nH(b.defaultIcon),this.Ka("untoggledIconTemplateSpec",c),b.toggledIcon?(this.S=!0,c=nH(b.toggledIcon),this.Ka("toggledIconTemplateSpec",c)):(g.Wm(this.J,!0),g.Wm(this.D,!1)),g.Wm(this.u,!1)):g.Wm(this.Z,!1);g.Pf(a)||this.update(a);b.isToggled&&
(g.M(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));xH(this);this.T(this.element,"change",this.GK);this.show()}};
g.h.onClick=function(a){0<this.va.length&&(this.toggleButton(!this.isToggled()),this.GK());$G.prototype.onClick.call(this,a)};
g.h.GK=function(){g.O(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.r(xza(this,this.isToggled())),b=a.next();!b.done;b=a.next())AH(this.eb,b.value,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);xH(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.O(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;xH(this)};
g.h.isToggled=function(){return this.u.checked};g.w(yH,fv);yH.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 Pw&&this.C(b)}};g.w(zH,$G);g.h=zH.prototype;g.h.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.Iv(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Jv(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Jv(Error("AdFeedbackRenderer.title was not set.")),Bza(this,b)):g.Iv(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){yu(this.J);yu(this.S);this.D.length=0;this.hide()};
g.h.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();$G.prototype.hide.call(this);this.C&&this.C.focus()};
g.h.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;$G.prototype.show.call(this);this.J.focus()};
g.h.qP=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ea("a");this.hide()};
g.h.f_=function(){this.hide()};
Cza.prototype.isChecked=function(){return this.B.checked};g.w(BH,vH);BH.prototype.NH=function(a){vH.prototype.NH.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
BH.prototype.iE=function(a){vH.prototype.iE.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
BH.prototype.OH=function(a){vH.prototype.OH.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ea("b")};g.w(CH,$G);g.h=CH.prototype;
g.h.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);this.J=b;if(null==b.dialogMessage&&null==b.title)g.Iv(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Jv(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new oH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,
this.u),this.u.init(LE("button"),a,this.macros),this.u.Ba(this.element);b.title&&(a=g.Qw(b.title),this.Ka("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=rH(a[c]);if(!g.ib(d.textContent)){var e=bi("LI");e.appendChild(d);this.Ga.appendChild(e)}}else g.Wm(this.Ga,!1);b.dialogMessage&&(a=rH(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.Qw(b.confirmLabel),this.Ka("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&
b.navigationEndpoint.adFeedbackEndpoint||null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.Jv(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Dza(this,a):c&&Eza(this,c),this.C=new oH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.C),this.C.init(LE("button"),b,this.macros),this.C.Ma("click",this.KY,this),
this.C.Ba(this.Ua)));Fza(this)}};
g.h.clear=function(){yu(this.S);this.hide()};
g.h.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();$G.prototype.hide.call(this);this.Z&&this.Z.focus()};
g.h.show=function(){this.u&&this.u.show();this.C&&this.C.show();if(!this.Ia){for(var a=g.r(this.J&&this.J.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())AH(this.eb,b.value,this.macros);this.Ia=!0}this.Z=document.activeElement;$G.prototype.show.call(this);this.S.focus()};
g.h.HK=function(){this.J&&this.J.confirmServiceEndpoint&&AH(this.eb,this.J.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ea("d");this.hide()};
g.h.KY=function(){var a=this.B?this.B:this.D;a&&!a.sb&&(this.hide(),a.show())};g.w(DH,sH);DH.prototype.init=function(a,b,c){sH.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Iza(this,a,c),this.show())};
DH.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();sH.prototype.hide.call(this)};
DH.prototype.show=function(){this.button&&this.button.show();sH.prototype.show.call(this)};
DH.prototype.clear=function(){this.hide()};g.w(EH,$G);EH.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.ji(this.element,aH(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?tH(a):"",c=(c=this.api.getVideoData(1))&&c.Cl,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()};
EH.prototype.isTemplated=function(){return this.u.isTemplated||!1};
EH.prototype.clear=function(){this.hide()};var Mza={seekableStart:0,seekableEnd:1,current:0};g.w(GH,$G);GH.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var k=g.r(f);f=k.next().value;k=ka(k);return a.apply(f,k)}
function d(f){f=g.r(f);f.next();f=ka(f);return b(e,f)}
b=void 0===b?oia:b;var e=g.Oa(a);return function(){var f=g.Ba.apply(0,arguments),k=this||g.C,l=cSa.get(k);l||(l={},cSa.set(k,l));return pc(l,[this].concat(g.u(f)),c,d)}})(function(a){var b=g.ci("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.ci("DIV");g.Um(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.gi(b);return a});g.w(g.JH,g.G);g.h=g.JH.prototype;g.h.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.yD(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.sb||(KH(this,!0),this.state=1,a?this.delay.start(a):this.yD()))};
g.h.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.sb&&(KH(this,!0),this.state=4,this.delay.start(this.C)))};
g.h.yD=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:KH(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();KH(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.h.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.yD()};
g.h.qa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.G.prototype.qa.call(this)};g.w(LH,GH);g.h=LH.prototype;
g.h.init=function(a,b,c){GH.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.Iv(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ua&&g.M(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.u.Jx():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(LE("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Cl&&b.thumbnail?this.J.init(LE("ad-image"),b.thumbnail,c):this.S.hide()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.B.hide();this.C.hide();this.J.hide();IH(this);GH.prototype.hide.call(this)};
g.h.show=function(){HH(this);this.B.show();this.C.show();this.J.show();GH.prototype.show.call(this)};
g.h.xs=function(){this.hide()};
g.h.cq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ia&&a>=this.Aa?(this.Z.hide(),this.Ia=!0,this.ea("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.La&&(FH(this.C,{TIME_REMAINING:String(a)}),this.La=a)))}};g.w(NH,GH);g.h=NH.prototype;
g.h.init=function(a,b,c){GH.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.ib(g.Eh(d[0].url))&&(d[0].url=a.profilePicture)}else g.Jv(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(LE("ad-image"),b.image,c);
this.J.init(LE("ad-text"),b.headline,c);this.C.init(LE("ad-text"),b.description,c);this.B.init(LE("button"),b.actionButton.buttonRenderer,c);this.Z=b.actionButton.buttonRenderer.navigationEndpoint;this.api.RB()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.IK.bind(this));this.Aa=b.startMs||0;HH(this)}else g.Iv(Error("FlyoutCtaRenderer has no valid action button."));else g.Iv(Error("FlyoutCtaRenderer has no description AdText."));else g.Iv(Error("FlyoutCtaRenderer has no headline AdText."));
else g.Jv(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){GH.prototype.onClick.call(this,a);this.api.pauseVideo();!g.ii(this.B.element,a.target)&&this.Z&&AH(this.eb,this.Z,this.macros)};
g.h.cq=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.Aa&&(IH(this),g.Hp(this.element,"ytp-flyout-cta-inactive"))}};
g.h.xs=function(){this.clear()};
g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.IK.bind(this))};
g.h.show=function(){this.B&&this.B.show();GH.prototype.show.call(this)};
g.h.hide=function(){this.B&&this.B.hide();GH.prototype.hide.call(this)};
g.h.IK=function(a){"hidden"==a?this.show():this.hide()};g.w(OH,$G);g.h=OH.prototype;g.h.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(LE("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(LE("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.T(this.element,"change",this.JK),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())AH(this.eb,b.value,this.macros)};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.C.hide();this.B.hide();$G.prototype.hide.call(this)};
g.h.show=function(){this.C.show();this.B.show();$G.prototype.show.call(this)};
g.h.JK=function(){Yha(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Oa("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.h.onClick=function(a){0<this.va.length&&this.JK();$G.prototype.onClick.call(this,a)};g.w(PH,g.G);g.h=PH.prototype;g.h.qa=function(){this.reset();g.G.prototype.qa.call(this)};
g.h.reset=function(){g.hv(this.C);this.J=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.K.play())};
g.h.start=function(){this.reset();this.C.T(this.B,"mouseover",this.cT,this);this.C.T(this.B,"mouseout",this.bT,this);this.j?this.j.start():(this.J=this.u=!0,g.Km(this.B,{opacity:this.Y}))};
g.h.cT=function(){this.u&&(this.u=!1,this.K.play());this.D.stop();this.j&&this.j.stop()};
g.h.bT=function(){this.J?this.D.start():this.j&&this.j.start()};
g.h.mM=function(){this.u||(this.u=!0,this.S.play(),this.J=!0)};g.w(QH,GH);g.h=QH.prototype;
g.h.init=function(a,b,c){GH.prototype.init.call(this,a,b,c);this.S=b;this.Aa=Kza(this);if(!b||g.Pf(b))g.Iv(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Pf(b.message))g.Iv(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=nH(a);null==b?g.Iv(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.J=new g.ZG({G:"button",Ea:["ytp-ad-skip-button","ytp-button"],U:[{G:"span",
L:"ytp-ad-skip-button-icon",U:[b]}]}),g.H(this,this.J),this.J.Ba(this.C.element),this.B=new EH(this.api,this.bb,this.layoutId,this.j,this.eb,"ytp-ad-skip-button-text"),this.B.init(LE("ad-text"),this.S.message,c),g.H(this,this.B),g.fi(this.J.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.va.length)&&c.isMobile&&(oC?0:"ontouchstart"in document.documentElement&&(nea()||Jl()))&&(this.xc(this.ib),d&&this.xc(d),this.va=[this.T(this.element,"touchstart",this.aT,this),this.T(this.element,
"touchmove",this.ZS,this),this.T(this.element,"touchend",this.YS,this)])}};
g.h.clear=function(){this.Z.reset();this.hide()};
g.h.hide=function(){this.C.hide();this.B&&this.B.hide();IH(this);GH.prototype.hide.call(this)};
g.h.onClick=function(a){if(null!=this.J&&(a&&g.vu(a),GH.prototype.onClick.call(this,a),this.ea("j"),this.Ia||!this.Aa))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.h.mQ=function(a){if(!this.Ia)return a;var b,c=null==(b=a.commandExecutorCommand)?void 0:b.commands;if(!c)return a;b=[];for(var d=0;d<c.length;d++){var e=a.commandExecutorCommand.commands[d];e.adLifecycleCommand&&Jza(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.h.sN=function(){return"skip"};
g.h.LI=function(a,b){b=Pya(this.bb,b);AH(this.eb,a,this.macros,b)};
g.h.show=function(){this.Z.start();this.C.show();this.B&&this.B.show();HH(this);GH.prototype.show.call(this)};
g.h.xs=function(){this.ea("k")};
g.h.cq=function(){};g.w(RH,GH);g.h=RH.prototype;
g.h.init=function(a,b,c){GH.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};(a=g.Pf(a)?null:a)?(this.S=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new LH(this.api,this.bb,this.layoutId,this.j,this.eb,this.u,"countdown_next_to_thumbnail"==g.VA(this.api.V().experiments,"preskip_button_style_ads_backend")&&HC(this.api.V())),this.B.init(LE("preskip-component"),a,c),MH(this.B),g.H(this,this.B),this.B.Ba(this.element)):
b.skipOffsetMilliseconds&&(this.S=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Pf(b)?null:b;null==b?g.Iv(Error("SkipButtonRenderer was not set in player response.")):(this.C=new QH(this.api,this.bb,this.layoutId,this.j,this.eb,this.u,this.Z),this.C.init(LE("skip-button"),b,c),g.H(this,this.C),this.C.Ba(this.element),this.show())};
g.h.show=function(){this.J&&this.C?this.C.show():this.B&&this.B.show();HH(this);GH.prototype.show.call(this)};
g.h.xs=function(){};
g.h.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();IH(this);GH.prototype.hide.call(this)};
g.h.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();IH(this);GH.prototype.hide.call(this)};
g.h.cq=function(){1E3*this.u.getProgressState().current>=this.S&&Lza(this,!0)};g.w(SH,oH);SH.prototype.init=function(a,b,c){oH.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Qw(b.text),a=!g.ib(a));a?null==b.navigationEndpoint?g.Jv(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Jv(Error("Button style was not a link-style type in renderer,")):this.show():g.Jv(Error("No visit advertiser text was present in the renderer."))};g.w(TH,$G);TH.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);a=b.text;g.ib(aH(a))?g.Jv(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new EH(this.api,this.bb,this.layoutId,this.j,this.eb),a.init(LE("simple-ad-badge"),b,c),a.Ba(this.element),g.H(this,a)),this.show())};
TH.prototype.clear=function(){this.hide()};g.w(UH,ME);g.w(VH,g.iv);g.h=VH.prototype;g.h.Jx=function(){return this.durationMs};
g.h.stop=function(){this.j&&this.Qc.xc(this.j)};
g.h.Tb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")};
g.h.getProgressState=function(){return this.u};
g.h.Yc=function(a){g.yF(a,2)&&this.ea("g")};g.w(WH,g.iv);g.h=WH.prototype;g.h.Jx=function(){return this.durationMs};
g.h.start=function(){this.u||(this.u=!0,this.timer.start())};
g.h.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.h.Tb=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.bb&&this.bb.Tb(this.B.current);this.ea("h");a&&this.ea("g")};
g.h.getProgressState=function(){return this.B};g.w(ZH,GH);g.h=ZH.prototype;g.h.init=function(a,b,c){GH.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){jr(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new EH(this.api,this.bb,this.layoutId,this.j,this.eb);this.B.init(LE("ad-text"),a,{});this.B.Ba(this.element);g.H(this,this.B)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){IH(this);GH.prototype.hide.call(this)};
g.h.xs=function(){this.hide()};
g.h.cq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.u instanceof VH?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof WH?a.seekableEnd:this.api.getDuration(2,!1))-a.current,FH(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.XH(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.h.show=function(){HH(this);GH.prototype.show.call(this)};g.w($H,EH);$H.prototype.onClick=function(a){EH.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(eI,g.ZG);eI.prototype.Tb=function(){var a=this.u.getProgressState();this.Mc.style.width=100*dI(new aI(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
eI.prototype.onStateChange=function(){g.zC(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Tb,this),this.Tb()):-1!==this.j&&(this.hide(),this.u.yg(this.j),this.j=-1))};g.w(fI,$G);
fI.prototype.init=function(a,b,c,d){$G.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new RH(this.api,this.bb,this.layoutId,this.j,this.eb,this.u,this.J),c.Ba(this.D),c.init(LE("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new LH(this.api,this.bb,this.layoutId,this.j,this.eb,this.u,!1),c.Ba(this.D),c.init(LE("ad-preview"),a.adPreviewRenderer,this.macros),MH(c),g.H(this,c)));b.brandInteractionRenderer&&(a=
b.brandInteractionRenderer.brandInteractionRenderer,c=new OH(this.api,this.bb,this.layoutId,this.j,this.eb),c.Ba(this.Z),c.init(LE("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new NH(this.api,this.bb,this.layoutId,this.j,this.eb,this.u),g.H(this,c),c.Ba(this.S),c.init(LE("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 TH(this.api,this.bb,this.layoutId,this.j,this.eb,!0),g.H(this,c),c.Ba(this.B),c.init(LE("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 ZH(this.api,this.bb,this.layoutId,this.j,this.eb,this.u,d),g.H(this,d),d.Ba(this.B),d.init(LE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new DH(this.api,this.bb,this.layoutId,this.j,this.eb,this.element),g.H(this,a),a.Ba(this.B),a.init(LE("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=Nza(this)&&this.C?this.C:this.B))&&(a=new SH(this.api,this.bb,this.layoutId,this.j,this.eb),g.H(this,a),a.Ba(d),a.init(LE("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!wC(b)&&
"3"==b.controlsType&&(b=new eI(this.api,this.u),b.Ba(this.Aa),g.H(this,b));this.api.V().N("enable_updated_html5_player_focus_style")&&g.M(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
fI.prototype.clear=function(){this.hide()};g.Ha("yt.pubsub.publish",g.Ku);var mI=Symbol("injectionDeps");kI.prototype.toString=function(){return"InjectionToken("+this.name+")"};
Vza.prototype.resolve=function(a){return a instanceof lI?nI(this,a.key,[],!0):nI(this,a,[])};var FI;var vI={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var x0={},Zza=(x0.WEB_UNPLUGGED="^unplugged/",x0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",x0.WEB_UNPLUGGED_OPS="^unplugged/",x0.WEB_UNPLUGGED_PUBLIC="^unplugged/",x0.WEB_CREATOR="^creator/",x0.WEB_KIDS="^kids/",x0.WEB_EXPERIMENTS="^experiments/",x0.WEB_MUSIC="^music/",x0.WEB_REMIX="^music/",x0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",x0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",x0);sI.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?vI:c;var d={context:g.uG(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.pI(this.B());var k;(a=null==(f=a.commandMetadata)?void 0:null==(k=f.webCommandMetadata)?void 0:k.apiUrl)&&(b=a);f=aAa(qI(b));d={input:f,Es:rI(f),lm:d,config:Object.assign({},void 0)};d.config.Rq?d.config.Rq.identity=c:d.config.Rq={identity:c};return d}g.Iv(new g.Is("Error: Failed to create Request from Command.",a))};
ea.Object.defineProperties(sI.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(tI,sI);tI.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Es:rI("/getDatasyncIdsEndpoint","GET"),lm:{}}};
tI.prototype.B=function(){return[]};
tI.prototype.j=function(){};
tI.prototype.u=function(){};var fTa={},bAa=(fTa.GET_DATASYNC_IDS=oI(tI),fTa);var gAa=["consistency","mss","client_location","entities","store"];g.w(xI,sI);xI.prototype.B=function(){return vSa};
xI.prototype.j=function(a){return a.subscribeEndpoint};
xI.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(xI.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(yI,sI);yI.prototype.B=function(){return wSa};
yI.prototype.j=function(a){return a.unsubscribeEndpoint};
yI.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(yI.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(zI,sI);zI.prototype.B=function(){return sSa};
zI.prototype.j=function(a){return a.feedbackEndpoint};
zI.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(zI.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(AI,sI);AI.prototype.B=function(){return tSa};
AI.prototype.j=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
AI.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(BI,sI);BI.prototype.B=function(){return uSa};
BI.prototype.j=function(a){return a.playlistEditEndpoint};
BI.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(CI,sI);CI.prototype.B=function(){return rSa};
CI.prototype.j=function(a){return a.webPlayerShareEntityServiceEndpoint};
CI.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var Uza=new kI("NETWORK_SLI_TOKEN");DI.prototype.fetch=function(a,b){var c=this,d,e;return g.B(function(f){c.j&&(d=jj(g.lj(5,vj(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.Q("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Jv(k)}))):f.return(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Jv(k)}))})};
DI.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.Jv(new g.Is("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
DI[mI]=[new lI];var iAa=new kI("NETWORK_MANAGER_TOKEN");var EI;HI.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))};
f.onload=function(){e(d.handleResponse(a,f.status,f.response))};
if(null==c?0:c.fv)f.onreadystatechange=function(p){c.fv(f,p)};
var k;f.open(null!=(k=b.method)?k:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){k=g.r(Object.entries(b.headers));for(var l=k.next();!l.done;l=k.next()){var m=g.r(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
HI.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Jv(new g.Is("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Jv(new g.Is("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var kAa=[],II=!1;JI.getInstance=function(){var a=g.Ia("ytglobal.storage_");a||(a=new JI,g.Ha("ytglobal.storage_",a));return a};
JI.prototype.estimate=function(){var a,b,c;return g.B(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(nAa()):d.return()})};
g.Ha("ytglobal.storageClass_",JI);Bs.prototype.yy=function(a){this.handleError(a)};
Bs.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Q("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Q("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":pAa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},
b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.h=qAa.prototype;
g.h.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(e=a.interpreterSafeScript,g.Fg("From proto message. b/166824318"),e=e.privateDoNotAccessOrElseSafeScriptWrappedValue||"",e=(f=Ag())?f.createScript(e):e,e=(new Hg(e,Gg)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,g.Fg("From proto message. b/166824318"),d=g.Lg(d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());
sAa(this,e,d,a.program,b,c)}else g.Jv(Error("Cannot initialize botguard without program"))};
g.h.isInitialized=function(){return!!this.j};
g.h.getState=function(){return this.state};
g.h.invoke=function(a){a=void 0===a?{}:a;if(this.j){var b=this.j;a={lx:a};if(b.j)throw Error("Already disposed");b=b.B([a.lx,a.d0])}else b=null;return b};
g.h.dispose=function(){tAa(this,null);this.state=8};var LI,NI;g.KI=new qAa;LI=0;NI=[];var xAa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var HAa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},IAa={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"},JAa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},GAa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},EAa={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"},FAa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};UI.prototype.getState=function(){return this.store.getState()};
UI.prototype.dispatch=function(a){return this.store.dispatch(a)};
UI.prototype.subscribe=function(a){return this.store.subscribe(a)};
UI.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
UI.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var VAa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,mainPlaylistEntity:306,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersVisibilityOverrideEntity:312,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,
orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},UAa={},gTa=g.r(Object.entries(VAa)),y0=gTa.next();!y0.done;y0=gTa.next()){var hTa=g.r(y0.value),iTa=hTa.next().value,jTa=hTa.next().value,kTa=iTa,lTa=jTa;lTa&&(UAa[lTa]=kTa)};var z0;z0={};g.mTa=(z0.INVALID_ENCODER_VERSION="Invalid encoder version",z0.KEY_CREATION_FAILED="Failed to create encoder key",z0.UNKNOWN_DECODE_ERROR="Failed to decode PES data",z0.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",z0.WRONG_DATA_TYPE="Encoder cannot process the data type",z0);var OAa;
OAa=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{Aia(c)}catch(l){var k=l}return function(l,m){l=void 0===l?{}:l;if(k)throw k;for(var n=!1,p={},q=0;q<f.length;q++){var t=f[q],v=l[t],x=(0,c[t])(v,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[t]=
x;n=n||x!==v}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,k=null==(f=e.options)?void 0:f.persistenceOption;if(k&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==k&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==k)return d;if(!e.entityKey)return g.Iv(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.Iv(new g.Is("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Ff(e.payload);return mJ(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===
e.type){e=e.entityKey;try{var m=g.kJ(e).entityType;l=mJ(d,m,e)}catch(q){if(q instanceof Error)g.Iv(new g.Is("Failed to deserialize entity key",{entityKey:e,originalMessage:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.Iv(new g.Is("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Ff(e.payload);var n,p;return WAa(d,l,e.entityKey,e.payload[l],null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},
a);
case "REPLACE_ENTITY":var c=b.payload;return mJ(a,c.entityType,c.key,c.yV);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(k,l){return mJ(k,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,WAa(a,c.entityType,c.key,c.yV,c.Qia);default:return a}}});
g.A0=new UI;var B0={},nTa=(B0["api.invalidparam"]=2,B0.auth=150,B0["drm.auth"]=150,B0["heartbeat.net"]=150,B0["heartbeat.servererror"]=150,B0["heartbeat.stop"]=150,B0["html5.unsupportedads"]=5,B0["fmt.noneavailable"]=5,B0["fmt.decode"]=5,B0["fmt.unplayable"]=5,B0["html5.missingapi"]=5,B0["html5.unsupportedlive"]=5,B0["drm.unavailable"]=5,B0);g.w(qJ,g.G);g.h=qJ.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&Dw(c,ySa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Bl&&!this.Y.has(a)&&(this.Y.add(a),g.Ds("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.Jv(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,
b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.K[a]&&b&&Dw(b,ySa))};
g.h.getBandwidthEstimate=function(){return cC(this.app.V().schedule)};
g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.GJ(this.app);b&&(a={gpu:(0,g.UR)(),d:a},b.handleError(new fD("feedback",a)))};
g.h.getApiInterface=function(){return this.S.slice()};
g.h.getInternalApiInterface=function(){return g.If(this.u)};
g.h.OU=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ba.apply(0,arguments);g.Ia(b).apply(window,d)};
this.J[b]=c}else c=b;this.app.vn.subscribe(a,c)};
g.h.G_=function(a,b){if("string"===typeof b){var c=this.J[b];g.Rf(this.J,b);b=c}this.app.vn.unsubscribe(a,b)};
g.h.getPlayerState=function(){return mMa(this.app)};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.h.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.h.seekTo=function(a,b,c){this.j&&ZT(this.app,!0,this.playerType);cU(this.app,a,b,c,this.playerType)};
g.h.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.h.startSeekCsiAction=function(){this.app.vj().D.j=(0,g.R)()};
g.h.seekToStreamTime=function(a,b,c){this.j&&ZT(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var k=g.GJ(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.Fd()&&(l=k.getStreamTimeOffset());cU(d,a-l,b,c,e,f)};
g.h.getStreamTimeOffset=function(){var a=g.GJ(this.app,1);return a?a.getStreamTimeOffset():0};
g.h.seekToLiveHead=function(a,b){var c=g.GJ(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&cU(this.app,Infinity,a,b,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.gh.volume};
g.h.setVolume=function(a){$Aa(this,a)};
g.h.isMuted=function(){return this.app.gh.muted};
g.h.mute=function(){aBa(this)};
g.h.unMute=function(){bBa(this)};
g.h.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Tg&&this.app.jd().allowImaMonetization,autoplay:zE(this.app.jd()),mutedAutoplay:this.app.jd().mutedAutoplay});return a};
g.h.playVideo=function(){this.j&&ZT(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ge()){var b=pK(this.app.ob());if(!XQa(b)){b.wm("control_play");return}if(k_(b))return}3===a?AJ(this.app.ob()).wm("control_play"):this.app.playVideo(a)};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ge()){var b=pK(this.app.ob());if(!XQa(b)){b.wm("control_pause");return}}3===a?AJ(this.app.ob()).wm("control_pause"):this.app.pauseVideo(a)};
g.h.stopVideo=function(){var a=this.app;a.X.Vb&&a.Ra.ea("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.GJ(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.Pd){var b=a.j||a.N("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://web.archive.org/web/20220414023957/https://admin.youtube.com","https://web.archive.org/web/20220414023957/https://viacon.corp.google.com","https://web.archive.org/web/20220414023957/https://yurt.corp.google.com"].includes(b)||a.Dl?DSa:CSa}else a=[1];return a};
g.h.getPlaybackQuality=function(a){return(a=g.GJ(this.app,a))?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.GJ(this.app,this.playerType);return a?(a=g.Wl(a.jp(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.getAvailableQualityLabels=function(){var a=g.GJ(this.app,this.playerType);return a?g.Wl(a.jp(),function(b){return b.qualityLabel}):[]};
g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.h.getVideoBytesTotal=function(){return 1};
g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.h.getVideoStartBytes=function(){return 0};
g.h.getSize=function(){var a=this.app.Ya().getPlayerSize();return{width:a.width,height:a.height}};
g.h.setSize=function(){this.app.Ya().resize()};
g.h.channelSubscribed=function(){this.Oa("SUBSCRIBE",this.app.jd().Zj)};
g.h.channelUnsubscribed=function(){this.Oa("UNSUBSCRIBE",this.app.jd().Zj)};
g.h.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.getCurrentPlaylistSequence=function(){return g.GJ(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.GJ(this.app).getPlaylistSequenceForTime(a)};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=DMa(this.app);b&&(b.u=a,b.Ha())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=DMa(this.app);b&&(g.O(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.pf(b,g.cL(b.B.pc(),b.element)),b.C=!0))};
g.h.confirmYpcRental=function(){var a=g.GJ(this.app,this.playerType);a&&a.mf("ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.h.setConnectedRemoteApps=function(a){this.app.V().Cl=a};
g.h.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=hC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,tua)};
g.h.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.h.isPictureInPictureAllowed=function(){return this.app.jd().Sw};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"===a&&(a=g.kK(this.app.ob()))&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"===a&&(a=g.kK(this.app.ob()))&&a.loaded&&a.I0()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(nJ(a,b,c),this.playerType),this.j&&ZT(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(nJ(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=XAa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&ZT(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=XAa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.V();if(a.S)return"";var b=this.app.jd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.getDebugText=function(){return this.app.getDebugText()};
g.h.getVideoEmbedCode=function(){var a=this.app.V();return a.S?"":a.getVideoEmbedCode(this.app.jd().videoId,this.app.Ya().getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return aU(this.app,a,b,c)};
g.h.addUtcCueRange=function(a,b,c){return tMa(this.app,a,b,c)};
g.h.removeCueRange=function(a){return uMa(this.app,a)};
g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&ZT(this.app,!0,this.playerType)};
g.h.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.h.nextVideo=function(){this.app.nextVideo();this.j&&ZT(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.j&&ZT(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&ZT(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.h.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.h.OV=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.YJ(a,c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.h.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.ob();return"captions"===a?(a=g.kK(d))&&a.Zf(b,c):null};
g.h.getOption=function(a,b,c){var d=g.GJ(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().j?{}:this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.ob();if("captions"===a){var c;return(null==(c=g.kK(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.kK(b)&&a.push("captions"),a)};
g.h.BB=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.GJ(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.u&&a.u.video){b.video_quality=a.u.video.quality;a=a.u.video;var c=[];32<a.fps&&c.push("hfr");a.isHdr()&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.h.showVideoInfo=function(){cMa(this.app,!0)};
g.h.hideVideoInfo=function(){cMa(this.app,!1)};
g.h.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.h.getAdState=function(){return this.app.getAdState()};
g.h.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.GJ(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.U(a,128)&&5===nTa[b.errorCode])};
g.h.getSphericalProperties=function(){var a=g.CJ(this.app.ob());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.CJ(this.app.ob());b&&b.setSphericalProperties(a,!0)}};
g.h.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.destroy=function(){this.app.dispose()};
g.h.sendAbandonmentPing=function(){var a=g.GJ(this.app);a&&a.sendAbandonmentPing()};
g.h.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.h.queueOfflineAction=function(a,b,c,d){var e=this,f,k;return g.B(function(l){return 1==l.j?(f=sK(e.app.ob()))?g.A(l,f.yI([a],b,c,d),3):l.Va(2):2!=l.j&&(k=l.u,k.length)?l.return(k[0]):l.return(Promise.reject())})};
g.h.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.h.resumeVideoDownload=function(a){var b=this;return g.B(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.h.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.h.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.h.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.h.setAutonavState=function(a){if(this.N("web_player_autonav_use_server_provided_state")){var b;if(null==(b=this.app.jd())?0:aE(b))return}zMa(this.app,a)};
g.h.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.h.setLoopRange=function(a){this.app.setLoopRange(a)};
g.h.getLoopRange=function(){return this.app.getLoopRange()};
g.h.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.GJ(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.h.setUserAudio51Preference=function(a){var b=g.GJ(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.h.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.GJ(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.h.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.h.getAppState=function(){return this.app.getAppState()};
g.h.addInfoCardXml=function(a,b,c){this.app.V().Z.add(a,{LA:b,Nz:c})};
g.h.updateLastActiveTime=function(){Au()};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.h.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.h.setUserEngagement=function(a){this.app.V().Wj!==a&&(this.app.V().Wj=a,(a=g.GJ(this.app,this.playerType))&&mT(a))};
g.h.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.kK(this.app.ob()).LR(a,b)};
g.h.getCaptionWindowContainerId=function(){var a=g.kK(this.app.ob());return a?a.getCaptionWindowContainerId():""};
g.h.toggleSubtitlesOn=function(){var a=g.kK(this.app.ob());a&&a.sR()};
g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Ge()&&(a=1);return a};
g.h.getPlayerResponse=function(){var a=g.GJ(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFrame=function(a,b){var c=this.app.Yh();if(!c)return null;b=c.levels[b];return b?(a=g.MD(b,a))?{column:a.column,columns:a.columns,height:a.Wr,row:a.row,rows:a.rows,url:a.url,width:a.Dy}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.Yh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Fd();return b.fA(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.Yh();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Aq(),minFrameIndex:b.hE()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.Yh();return a?a.levels.length:0};
g.h.BV=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.GJ(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().hk};
g.h.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&AJ(this.app.ob()).wm("control_set_audio_track",a);var b=g.GJ(this.app,this.playerType);if(b&&!b.isDisposed()&&!g.U(b.playerState,128)){var c;if(null==(c=b.videoData.C)?0:c.j)b.Sa.setAudioTrack(a);else{var d;c=null==(d=b.mediaElement)?void 0:d.audioTracks();var e;if(b.N("html5_native_audio_track_switching")&&(null==(e=b.videoData.u)?0:fA(e))&&c&&1<c.length){a:{for(d=0;d<c.length;++d)if(e=c[d],e.label===a.Ic.getName()){if(e.enabled){c=
!1;break a}c=e.enabled=!0;break a}c=void 0}c&&b.xa("hlsaudio",{id:a.id})}else{a:if(c=b.videoData,c.J&&!fA(c.J)||a==c.Bl||!c.kc||0>=c.kc.length)c=!1;else{d=g.r(c.kc);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof lD)){c=!1;break a}var f=a.Ic.getId();e.B&&(Aua(e.B,f),e.u=null)}c.Bl=a;c=!0}c&&bT(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.xa("hlsaudio",{id:a.id}))}}}};
g.h.CV=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.GJ(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.GJ(this.app,this.playerType);return a&&a.getVideoData().u?Ox(a.vf?zIa(a.Bh,a.vf,a.Du()):SD):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.GJ(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.getSubtitlesUserSettings=function(){var a=g.kK(this.app.ob());return a?a.QV():null};
g.h.resetSubtitlesUserSettings=function(){g.kK(this.app.ob()).M_()};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.h.setGlobalCrop=function(a){this.app.Ya().setGlobalCrop(a)};
g.h.getVisibilityState=function(){var a=this.Af();return this.app.getVisibilityState(this.eg(),this.isFullscreen()||wC(this.app.V()),a,this.isInline(),this.app.Qu(),this.app.Nu())};
g.h.isMutedByMutedAutoplay=function(){return this.app.Ey};
g.h.isInline=function(){return this.app.isInline()};
g.h.setInternalSize=function(a,b){this.app.Ya().setInternalSize(new g.yh(a,b))};
g.h.Fd=function(){var a=g.GJ(this.app);return a?a.Fd():0};
g.h.Af=function(){return this.app.Af()};
g.h.eg=function(){var a=g.GJ(this.app,this.playerType);return!!a&&a.eg()};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.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.YJ(b).videoId||(a.index=b.index)):LT(this.app,{list:a.list,index:a.index,playlist_length:d.length});$J(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateVideoData=function(a,b){var c=g.GJ(this.app,this.playerType||1);c&&g.WD(c.getVideoData(),a,b)};
g.h.updateEnvironmentData=function(a){FC(this.app.V(),a,!1)};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=g.tK(this.app.ob());d&&d.Oh()&&d.setCardsVisible(a,b,c)};
g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.h.getVideoAspectRatio=function(){return this.app.Ya().getVideoAspectRatio()};
g.h.getPreferredQuality=function(){var a=g.GJ(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.GJ(this.app,this.playerType);c&&g.zLa(c,g.Lx(a,b||a,!0,"m"),!0)};
g.h.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)};
g.h.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.h.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.h.dispatchReduxAction=function(a){g.A0.dispatch(a)};
g.h.ea=function(a){var b=g.Ba.apply(1,arguments);this.app.V().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.vn.ea.apply(this.app.vn,[a].concat(g.u(b)));this.app.Wn.ea.apply(this.app.Wn,[a].concat(g.u(b)))};
g.h.Oa=function(a){var b=g.Ba.apply(1,arguments);this.app.vn.ea.apply(this.app.vn,[a].concat(g.u(b)));this.app.Wn.ea.apply(this.app.Wn,[a].concat(g.u(b)))};
g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.h.logImaAdEvent=function(a,b){this.app.V().Tg&&this.app.jd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.nca(this.app.V().loaderUrl),eventType:a,youtubeHost:g.mj(this.app.V().ma)||""},g.Ds("embedsAdEvent",a))};
g.h.N=function(a){return this.app.V().N(a)};
g.h.qa=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.J={};g.G.prototype.qa.call(this)};g.w(wJ,qJ);g.h=wJ.prototype;g.h.addCueRange=function(a,b,c,d,e){return aU(this.app,a,b,c,d,e)};
g.h.getPlayerState=function(a){return mMa(this.app,a)};
g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.h.previousVideo=function(a){this.app.previousVideo(a)};
g.h.seekBy=function(a,b,c){cU(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){cU(this.app,a,b,c,d||this.playerType)};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.BB=function(a){a=void 0===a?this.playerType:a;var b=qJ.prototype.BB.call(this,a)||{};if(a=g.GJ(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isLive=a.isLivePlayback;b.isPremiere=a.isPremiere;b.isWindowedLive=a.Wh;b.isManifestless=$D(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.va;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?
0:c.utcTimeMillis)?Gh(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Gh(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.qS;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=ewa(a);b.paidContentOverlayDurationMs=lE(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.j&&Qx(a.j)&&(b.usingLocalMedia=
"true");dE(a)&&(b.isEncrypted=!0);if(a.C)for(e=g.r(a.C.videoInfos),c=e.next();!c.done;c=e.next())if(d=void 0,null==(d=c.value.video)?0:d.isHdr()){b.isHdr=!0;break}var f,k;b.isMultiChannelAudio=!!(null==(f=a.J)?0:null==(k=f.audio)?0:k.isMultiChannelAudio())}return b};
g.h.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):qJ.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=AJ(this.app.ob()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):qJ.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3===this.getPresentingPlayerType())return AJ(this.app.ob()).getProgressState();var b=this.app.getVideoData(),c=(g.GJ(this.app,a)||g.GJ(this.app)).getPlayerType();a:{var d=this.app.getVideoData();var e;if(null==(e=d.progressBarStartPosition)?0:e.utcTimeMillis)if(d=Number(d.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=eBa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null==(f=e.progressBarEndPosition)?0:f.utcTimeMillis)if(f=Number(e.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(f)){f=eBa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var k=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Eu(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.GJ(p,c))?(c=IT(p,c),c=UT(p,vO(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.Rf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:k,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}};
g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.h.getCurrentBroadcastId=function(){return null};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.uJ(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.uJ(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.showControls=function(){var a=g.uJ(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.uJ(this);a&&a.showControls(!1)};
g.h.getVideoContentRect=function(a){a=this.app.Ya().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.setFauxFullscreen=function(a){g.bv();this.app.Rj(a?2:0)};
g.h.toggleFullscreen=function(){function a(c){g.Jv(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.UC(b))return this.isFullscreen()?dv(window.document.documentElement):av(window.document.documentElement).catch(a)}else if(g.bv()||b.J)return this.isFullscreen()?dv(cv()):"3"!==b.controlsType&&g.bv()?av(this.app.Ya().element).catch(a):(b=this.app.Ld().nf())?av(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.h.cancelPlayback=function(){var a=pK(this.app.ob());a&&a.created&&a.destroy();(a=g.GJ(this.app))&&a.stopVideo();(a=this.app.ob().Zd.get("endscreen"))&&a.EW()&&g.zJ(this.app.Ra,!0)};
g.h.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&PC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():qJ.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.GJ(this.app,this.playerType).Pb(!0)};
g.h.toggleSubtitles=function(){var a=g.kK(this.app.ob());a&&a.x0()};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=g.CJ(this.app.ob());b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=g.CJ(this.app.ob());return a?a.getSphericalProperties():{}};
g.h.setVolume=function(a,b){$Aa(this,a,b)};
g.h.mute=function(a){aBa(this,a)};
g.h.unMute=function(a){bBa(this,a)};
g.h.mutedAutoplay=function(){this.N("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.h.loadModule=function(a){if("annotations_module"===a){var b=g.tK(this.app.ob());b&&!b.loaded&&b.load()}qJ.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"===a){var b=g.tK(this.app.ob());b&&b.loaded&&b.unload()}qJ.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.ob();switch(a){case "ad":return(a=pK(d))&&a.Zf&&a.Zf(b,c);case "kids":return(a=qK(d))&&a.Zf(b,c);case "remote":return(a=AJ(d))&&a.Zf(b,c);case "unplugged":return(a=g.rK(d))&&a.Zf(b,c);case "annotations_module":return(a=g.tK(d))&&a.Zf(b,c);case "creatorendscreen":return(a=uK(d))&&a.Zf(b,c)}return qJ.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.ob();switch(a){case "ad":var c,d;return(null==(c=pK(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=AJ(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var k,l;return(null==(k=g.tK(b))?void 0:null==(l=k.getOptions)?void 0:l.call(k))||null;case "creatorendscreen":var m,n;return(null==(m=uK(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.rK(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var t,v;return(null==(t=qK(b))?void 0:null==(v=t.getOptions)?void 0:v.call(t))||null}if(!a){a=qJ.prototype.getOptions.call(this);if(!a)return a;pK(b)&&a.push("ad");AJ(b)&&a.push("remote");g.tK(b)&&a.push("annotations_module");uK(b)&&a.push("creatorendscreen");g.rK(b)&&a.push("unplugged");qK(b)&&a.push("kids");return a}return qJ.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.Ya().getPlayerSize();return{width:a.width,height:a.height}};
g.h.wakeUpControls=function(){var a=g.uJ(this);a&&a.Fm()};
g.h.setCenterCrop=function(a){this.app.Ya().setCenterCrop(a)};
g.h.getLoopVideo=function(){return this.app.getLoopVideo()};
g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var cBa="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(" "),
dBa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.w(g.xJ,wJ);g.h=g.xJ.prototype;g.h.ll=function(a,b,c,d,e,f){return this.app.ll(a,b,c,d,e,f)};
g.h.Fx=function(){return this.app.Fx()};
g.h.qr=ba(4);g.h.ob=function(){return this.app.ob()};
g.h.We=function(){var a=this.ob().Zd.get("endscreen");return!!a&&a.We()};
g.h.getRootNode=function(){return this.Ya().element};
g.h.V=function(){return this.app.V()};
g.h.Fu=ba(6);g.h.Wl=function(a){return this.app.Wl(a)};
g.h.yp=function(){return this.settingsMenu};
g.h.Sx=function(){return this.jE};
g.h.yb=function(a){return this.app.yb(a)};
g.h.Ya=function(){return this.app.Ya()};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){var b=g.GJ(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Nd))b=void 0;else{var d=a.getCurrentTime();b=b.Xo?void 0:null==(c=PO(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.h.Yh=function(a){return this.app.Yh(a)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.isHdr=function(){var a=g.GJ(this.app);return a?a.isHdr():!1};
g.h.qy=function(){return this.app.qy()};
g.h.Iv=function(a){this.app.Iv(a)};
g.h.rg=function(a,b,c,d,e){this.app.Ff(a,b,c,d,e)};
g.h.qo=function(a,b){this.app.qo(a,b)};
g.h.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){AJ(this.app.ob()).wm("control_play");return}if(2===this.getPresentingPlayerType()){var b=pK(this.app.ob());if(b&&k_(b))return}}catch(c){g.Iv(c)}this.app.playVideo(a)};
g.h.stopVideo=function(a){g.GJ(this.app,a).stopVideo()};
g.h.Yn=function(a){g.GJ(this.app,a).Yn()};
g.h.addEventListener=function(a,b){this.app.Wn.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.Wn.unsubscribe(a,b)};
g.h.ea=function(a){wJ.prototype.ea.call.apply(wJ.prototype.ea,[this,a].concat(g.u(g.Ba.apply(1,arguments))))};
g.h.Lj=function(a){this.app.Lj(a)};
g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.h.jp=function(){var a={},b=g.GJ(this.app).jp();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.h.Px=ba(10);g.h.aD=function(a){this.app.aD(a);a&&zMa(this.app,a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.isLivePlayback||(k=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,k,b,c)};
g.h.Qx=ba(12);g.h.Tk=ba(16);g.h.Wu=function(a,b){this.ob().Wu(a,b)};
g.h.Oh=function(){var a=g.tK(this.ob());return!!a&&a.Oh()};
g.h.Ml=function(){var a=g.tK(this.ob());return!!a&&a.Ml()};
g.h.setCardsVisible=function(a,b,c){var d=g.tK(this.ob());d&&d.setCardsVisible(a,b,c)};
g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.h.Fv=ba(17);g.h.Us=function(){var a=g.GJ(this.app);a&&a.Us()};
g.h.vz=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")};
g.h.Ek=function(a,b){var c=g.uJ(this);if(c)return c.Ek(a,b);a=this.app.Ya().Zh();return new g.Hm(0,0,a.width,a.height)};
g.h.zp=function(){return this.app.zp()};
g.h.py=function(){var a=this.ob().Zd.get("heartbeat");return!!a&&a.py()};
g.h.Rf=function(){var a=this.V();if(a.Aa||a.disableSeek)return!1;a=g.GJ(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.pE(b)||2===this.getPresentingPlayerType()&&!this.app.Ge()||a.gm()&&3!==this.getPresentingPlayerType()?!1:!0};
g.h.jy=function(){var a;return(null==(a=g.GJ(this.app))?void 0:a.jy)||!1};
g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.h.iq=function(){var a=g.GJ(this.app);a&&a.iq()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.h.je=function(a,b,c){this.app.Xw(a,b,c)};
g.h.Mg=function(a,b){this.app.VC(a,b)};
g.h.Nf=function(a,b){var c=this.app,d=g.GJ(c,b);d&&(a=d.nh.Nf(a),b&&c.getPresentingPlayerType()!==b||FT(c,"cuerangesremoved",a))};
g.h.mf=function(a,b){(b=g.GJ(this.app,b))&&b.mf(a)};
g.h.gm=function(){var a=g.GJ(this.app);return a?a.gm():!0};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.sh(a,0,100);sJ(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){sJ(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){sJ(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.h.getLoopVideo=function(){return this.app.getLoopVideo()};
g.h.Ld=function(){return this.app.Ld()};
g.h.vj=function(){return this.app.vj()};
g.h.Xh=function(a){return this.app.Xh(a)};
g.h.getBandwidthEstimate=function(){return cC(this.V().schedule)};
g.h.Ab=function(a,b,c,d){this.V().Ta&&this.app.Hp.Ab(a,b,c,void 0===d?!1:d)};
g.h.Qh=function(a,b,c){this.V().Ta&&this.app.Hp.Qh(a,b,void 0===c?!1:c)};
g.h.al=function(a,b){this.V().Ta&&this.app.Hp.al(a,b)};
g.h.ub=function(a,b){this.V().Ta&&this.app.Hp.click(a,b)};
g.h.Wa=function(a,b,c){if(this.V().Ta){var d=this.app.Hp;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Tv(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.aw(e,[f]):g.bw(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Yv(e,f,c),d.B.add(a))}};
g.h.Dp=function(a){return this.V().Ta?this.app.Hp.Dp(a):!1};
g.h.Pc=function(){return g.GJ(this.app)};
g.h.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.h.Xn=function(){this.app.Xn()};
g.h.Uo=function(a,b){return this.app.Uo(a,b)};
g.h.Dm=function(a){this.app.Dm(a)};
g.h.qH=function(){this.app.qH()};
g.h.Ut=function(a,b,c,d,e,f){return this.app.Ut(a,b,c,d,e,f)};
g.h.gy=function(a,b,c,d,e,f){return this.app.gy(a,b,c,d,e,f)};
g.h.Yp=function(a){this.app.Yp(a)};
g.h.Wq=function(a,b){b=void 0===b?Infinity:b;this.app.Wq(void 0===a?-1:a,b)};
g.h.Tv=function(a,b,c){this.app.Tv(a,b,c)};
g.h.rp=function(){return this.app.rp()};
g.h.YA=function(a,b,c){this.app.YA(a,b,void 0===c?0:c)};
g.h.Su=function(){return this.app.Su()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.Ge=function(){return this.app.Ge()};
g.h.Lp=function(a,b,c){return this.app.Lp(a,b,c)};
g.h.xa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.GJ(this.app,d))||e.xa(a,b,c)};
g.h.hD=function(){return this.app.hD()};
g.h.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.h.IH=function(a,b){this.ea("aduxmouseover",a,b)};
g.h.HH=function(a,b){this.ea("aduxmouseout",a,b)};
g.h.bI=function(a,b){this.ea("muteadaccepted",a,b)};
g.h.RB=function(){return this.app.Ya().RB()};
g.h.Jv=function(a){this.app.Ya().Jv(a)};HJ.prototype.MH=function(){this.u=(0,g.R)()};
HJ.prototype.reset=function(){this.j=this.u=NaN};
HJ.prototype.QH=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.X.N("web_player_csi_ctt_killswitch")&&a.K&&(c.cttAuthInfo={token:a.K,videoId:a.videoId});ox("seek",c);g.px("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||mx("pl_ss",this.u,"seek");mx(b,(0,g.R)(),"seek")}this.reset()}};JJ.prototype.reset=function(){kx(this.timerName)};
JJ.prototype.tick=function(a,b){mx(a,b,this.timerName)};
JJ.prototype.Os=function(a){var b=this.timerName;Bx(a,b)?a=!1:(mx(a,void 0,b),a=!0);return a};
JJ.prototype.info=function(a,b){g.px(a,b,this.timerName)};g.w(WJ,g.iv);g.h=WJ.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.h.hm=function(a){return this.loop||!!a||0<=this.index-1};
g.h.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ea("shuffle")};
g.h.zf=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.u.S||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return OC(this.u,this.C[0],a)};
g.h.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.h.onReady=function(a){this.j=a;this.loaded&&g.Br(this.j,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Zl=function(){return this.u.getVideoUrl(g.YJ(this).videoId,this.getPlaylistId())};
g.h.qa=function(){this.j=null;g.of(this.items);g.iv.prototype.qa.call(this)};var aK=new Map;g.w(g.cK,g.iv);g.h=g.cK.prototype;g.h.create=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.Zf=function(){};
g.h.aj=function(){return!0};
g.h.qa=function(){this.loaded&&this.unload();g.iv.prototype.qa.call(this)};
g.h.Pb=function(){return{}};
g.h.getOptions=function(){return[]};g.w(g.fK,g.G);g.h=g.fK.prototype;g.h.Kp=ba(20);g.h.Vu=function(){};
g.h.zo=function(){};
g.h.zr=function(){return""};
g.h.sI=ba(21);g.h.qa=function(){this.zo();g.G.prototype.qa.call(this)};g.w(g.gK,g.fK);g.gK.prototype.Kp=ba(19);g.gK.prototype.Vu=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.eK(this.u,c.value);a()};
g.gK.prototype.zr=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.$r()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.FD(a));return pr(c,d)};
g.gK.prototype.zo=function(){this.j&&this.j.abort()};g.oTa=new Map;g.w(g.iK,g.fK);g.iK.prototype.Kp=ba(18);
g.iK.prototype.Vu=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.cO&&(d.asrs=1);c=pr(c,d);this.zo();this.j=g.Gr(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),k=0;k<f.length;k++){var l=f[k],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),v="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.eK(b.u,new g.CD({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:v}))}e=e.getElementsByTagName("target");f=e.length;for(k=0;k<f;k++)m={languageCode:e[k].getAttribute("lang_code"),languageName:e[k].getAttribute("lang_translated"),languageOriginal:e[k].getAttribute("lang_original"),id:e[k].getAttribute("id"),isDefault:"true"===e[k].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.iK.prototype.zr=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.FD(a));return c=pr(c,b)};
g.iK.prototype.zo=function(){this.j&&this.j.abort()};g.w(jK,g.G);g.h=jK.prototype;g.h.zz=function(){return this.I.getVideoData().zz()};
g.h.bJ=function(){return this.I.getVideoData().bJ()};
g.h.MM=function(){var a=this.Zd.get("heartbeat");mK(this,"heartbeat",!1,!0,this.MM);!a&&this.Zd.has("heartbeat")&&this.I.ea("offlineslatestatechange")};
g.h.FF=function(){mK(this,"annotations_module",!0,void 0,this.FF);var a=this.Zd.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.h.EF=function(){if(!this.Zd.get("ad"))try{lK(this)?mK(this,"ad",!1,!0,this.EF):this.I.mf("ad")}catch(a){this.I.mf("ad"),g.Iv(a)}};
g.h.vj=function(){return this.j};
g.h.uG=function(){var a={},b=g.kK(this);b&&Object.assign(a,b.uG());return a};
g.h.Wu=function(a,b){Object.assign(this.j,a||null);Object.assign(this.TA,b||null)};
g.h.qa=function(){g.G.prototype.qa.call(this);oK(this,1,!0);for(var a=g.r(Object.entries(GBa)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.B.has(c)&&aK.delete(b)}this.B.clear()};
var C0={},GBa=(C0.ad="ad.js",C0.annotations_module="annotations_module.js",C0.attribution="attribution.js",C0.creatorendscreen="annotations_module.js",C0.embed="embed.js",C0.endscreen="endscreen.js",C0.heartbeat="heartbeat.js",C0.inline_preview="inline_preview.js",C0.kids="kids.js",C0.remote="remote.js",C0.miniplayer="miniplayer.js",C0.music="music.js",C0.offline="offline.js",C0.captions="captions.js",C0.unplugged="unplugged.js",C0.ux="ux.js",C0.webgl="webgl.js",C0.ypc="ypc.js",C0.ypc_clickwrap="ypc_clickwrap.js",
C0.yto="yto.js",C0);g.w(vK,g.qf);vK.prototype.preventDefault=function(){g.qf.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
vK.prototype.stopPropagation=function(){g.qf.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.wK,XF);g.h=g.wK.prototype;g.h.Cq=function(){return!0};
g.h.isView=function(){return!1};
g.h.GI=function(){return!1};
g.h.nf=function(){return this.j};
g.h.dg=function(){return this.j.src};
g.h.lA=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.h.WC=function(){this.j.removeAttribute("src")};
g.h.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.h.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.h.wr=function(){return this.j.loop};
g.h.setLoop=function(a){this.j.loop=a};
g.h.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.h.Mm=function(){return this.j.paused};
g.h.yw=function(){return this.j.seeking};
g.h.Gg=function(){return this.j.ended};
g.h.tB=function(){return this.j.muted};
g.h.Gv=function(a){pA();this.j.muted=a};
g.h.yr=function(){return this.j.played||qA([],[])};
g.h.Vg=function(){try{var a=this.j.buffered}catch(b){}return a||qA([],[])};
g.h.Tx=function(){return this.j.seekable||qA([],[])};
g.h.iA=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.h.getCurrentTime=function(){return this.j.currentTime};
g.h.kA=function(a){this.j.currentTime=a};
g.h.getDuration=function(){return this.j.duration};
g.h.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.h.pause=function(){this.j.pause()};
g.h.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.h.Hi=function(){return this.j.readyState};
g.h.uB=function(){return this.j.networkState};
g.h.qk=function(){return this.j.error?this.j.error.code:null};
g.h.jf=function(){return this.j.error?this.j.error.message:""};
g.h.jA=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.h.eg=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.h.iq=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){var a=this.j,b=window.document;nA()?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():oA()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.wp=function(){var a=this.j;return new g.wh(a.offsetLeft,a.offsetTop)};
g.h.getSize=function(){return g.Vm(this.j)};
g.h.setSize=function(a){g.Um(this.j,a)};
g.h.getVolume=function(){return this.j.volume};
g.h.setVolume=function(a){pA();this.j.volume=a};
g.h.PF=function(a){this.D[a]||(this.j.addEventListener(a,this.listener),this.D[a]=this.listener)};
g.h.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.j.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.h.Yw=ba(23);g.h.Gz=ba(25);g.h.Hz=ba(27);g.h.au=ba(29);g.h.zx=function(){return dv(this.j)};
g.h.Mo=function(a){g.M(this.j,a)};
g.h.getStyle=function(a){return g.Mm(this.j,a)};
g.h.YG=function(){return g.ii(document.body,this.j)};
g.h.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.h.qa=function(){for(var a=g.r(Object.keys(this.D)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.D[b]);XF.prototype.qa.call(this)};g.w(yK,g.iv);g.h=yK.prototype;g.h.iX=function(a){a=uu(a);if(!xh(a,this.C)){var b=2;this.J&&(b|=8);this.C=a;xK(this,b,!0)}};
g.h.jX=function(){this.J&&xK(this,8,!0);xK(this,2,!1)};
g.h.kC=function(a){var b=uu(a);xh(b,this.C)||(this.C=b,(a=g.qu(a))&&this.KA(a)&&(xK(this,4,!0),this.j.xc(this.B),this.B=this.j.T(this.target,"mouseover",this.DH),this.K=this.j.T(this.target,"mouseout",this.DH)))};
g.h.DH=function(a){a=tu(a);a&&this.KA(a)||(this.C=new g.wh(NaN,NaN),HBa(this))};
g.h.LW=function(){xK(this,1,!0)};
g.h.GV=function(a){a=g.qu(a);a instanceof Element&&!(0<a.tabIndex)||xK(this,1,!0)};
g.h.WO=function(){this.J=!0;this.j.xc(this.D);this.D=this.j.T(document,"mouseup",this.kX)};
g.h.kX=function(){this.J=!1;xK(this,8,!1);this.j.xc(this.D);this.D=this.j.T(this.target,"mousedown",this.WO)};
g.h.uR=function(a){if(a=(a=a.changedTouches)&&a[0])this.va=a.identifier,this.j.xc(this.S),this.S=this.j.T(this.target,"touchend",this.y0,void 0,!0),xK(this,1024,!0)};
g.h.y0=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.va){var d=c;break}}d&&(this.j.xc(this.S),this.S=this.j.T(this.target,"touchstart",this.uR,void 0,!0),xK(this,1024,!1))};
g.h.Fm=function(){xK(this,2,!0)};
g.h.resize=function(){g.mA&&HBa(this)};
g.h.toString=function(){return g.iv.prototype.toString.call(this)};g.w(g.zK,g.V);
g.zK.prototype.Ha=function(){var a=this.api.getVideoData(),b=this.api.V();if(a.D&&(a.gb||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.Ka("largePlayButtonChildren",c);a.D&&(a.gb||b.pfpChazalUi)&&(a=a.gb?a.gb:"#1f1f1f",this.Ca("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.w(g.AK,g.V);g.h=g.AK.prototype;g.h.show=function(){var a=this;this.sb||(this.B.T(this.api,"videodatachange",function(){g.zp(a.j)}),this.B.T(this.api,"videoplayerreset",function(){g.zp(a.j)}));
g.V.prototype.show.call(this)};
g.h.hide=function(){this.B&&g.hv(this.B);g.V.prototype.hide.call(this)};
g.h.xb=function(){g.zp(this.j)};
g.h.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&PC(b)&&(a=a.state.isCued()&&!a.Rp.isCued()||g.BJ(this.api)&&g.U(a.state,2),g.Km(this.element,"transition-delay",a?"2s":""));g.zp(this.j)};
g.h.p_=function(){g.zp(this.j)};
g.h.dT=function(){this.u.stop();this.hide();g.zp(this.j)};
g.h.Ha=function(){var a=this.api.yb();if(3===this.api.getPresentingPlayerType()&&(a.Nc()||g.U(a,4)))var b=!0;else(b=this.api.ob().Zd.get("ypc"))&&b.DC?b=!0:(b=this.api.V(),b=g.U(a,2)&&g.yJ(this.api)&&b.Pe?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().N("disable_new_pause_state3"),b=!(!g.U(a,2)||g.yJ(this.api)||b&&this.api.Fx())||g.U(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.N0(this.api.getPlaylist(),a)):
(this.u.hide(),g.U(a,1)||this.u.stop())};
g.h.N0=function(){for(var a,b=g.r(g.Ba.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.TD&&!c.videoId)){a=this.api.Ya().getPlayerSize();var d=g.QC(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.zf("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.zf("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.zf("sddefault.jpg")||c.zf("hqdefault.jpg")||c.zf("mqdefault.jpg"))break;if(a=c.zf("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.w(g.GK,g.V);g.GK.prototype.resize=function(){};
g.GK.prototype.u=function(a){var b=this;MBa(this);var c=a.RF,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Od(JK(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Zl(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.Od(g.HK(a.errorMessage)):this.Od(JK(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20220414023957/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20220414023957/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.sj(c,{hl:a})),this.Od(JK(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Vb&&!d.j&&LBa(this,function(e){if(g.BK(e,b.api,!PC(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 KBa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(KK,g.iA);KK.prototype.dh=function(){QBa(this)};
KK.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.V(),d=[],e="";if(!c.S){var f=OBa(this);c.N("enable_web_media_session_metadata_fix")&&g.AC(c)&&f?(d=PBa(f.thumbnailDetails),f.album&&(e=g.Qw(f.album))):d=[{src:b.zf("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}QBa(this);NBa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.BJ(this.I)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()});
LK(this,"nexttrack",b);LK(this,"previoustrack",c)}};
KK.prototype.qa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())LK(this,b.value,null);g.iA.prototype.qa.call(this)};g.w(MK,g.V);g.h=MK.prototype;g.h.onClick=function(a){g.BK(a,this.I,!0);this.I.ub(this.element)};
g.h.onVideoDataChange=function(a,b){SBa(this,b);this.Yd&&TBa(this,this.Yd)};
g.h.Yc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&SBa(this,b);this.j&&TBa(this,a.state);this.Yd=a.state};
g.h.yd=function(){this.C.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.Wa(this.element,!0)};
g.h.Gb=function(){this.C.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.Wa(this.element,!1)};g.w(NK,g.V);NK.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
NK.prototype.onStateChange=function(a){UBa(a.state)?this.j.start():this.hide()};
NK.prototype.u=function(){this.message.style.display="block"};g.w(g.OK,g.ZG);g.h=g.OK.prototype;g.h.show=function(){var a=this.Xg();g.ZG.prototype.show.call(this);this.Aa&&(this.K.T(window,"blur",this.Gb),this.K.T(document,"click",this.eT));a||this.ea("show",!0)};
g.h.hide=function(){var a=this.Xg();g.ZG.prototype.hide.call(this);VBa(this);a&&this.ea("show",!1)};
g.h.yd=function(a,b){this.u=a;this.Y.show();b?(this.S||(this.S=this.K.T(this.I,"appresize",this.jM)),this.jM()):this.S&&(this.K.xc(this.S),this.S=void 0)};
g.h.jM=function(){var a=g.uJ(this.I);this.u&&a.ws(this.element,this.u)};
g.h.Gb=function(){var a=this.Xg();VBa(this);this.Y.hide();a&&this.ea("show",!1)};
g.h.eT=function(a){var b=ru(a);b&&(g.ii(this.element,b)||this.u&&g.ii(this.u,b)||!g.YH(a))||this.Gb()};
g.h.Xg=function(){return this.sb&&4!==this.Y.state};g.w(QK,g.OK);QK.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(WBa(this),this.yd()):(this.j&&this.ub(),this.Gb()))};
QK.prototype.dh=function(a){this.api.isMutedByMutedAutoplay()&&g.yF(a,2)&&this.Gb()};
QK.prototype.onClick=function(){this.api.unMute();this.ub()};
QK.prototype.ub=function(){this.clicked||(this.clicked=!0,this.api.ub(this.element))};g.w(g.SK,g.iA);g.h=g.SK.prototype;g.h.init=function(){var a=this.api.yb();this.Ub(a);this.Ao();this.xb()};
g.h.onVideoDataChange=function(a,b){this.iH!==b.videoId&&(this.iH=b.videoId,a=this.Xd,a.ra=b&&0<b.pe.length?5E3:3E3,xK(a,512,!0),this.Ao())};
g.h.XY=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.h.hq=function(){var a=this.api.Oh()&&this.api.Ml();return this.SA||a||this.KG};
g.h.Yj=function(){var a=!this.hq();g.O(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.KA=function(a){try{if(!g.ii(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!li(a);)a=a===this.api.getRootNode()?null:g.hi(a);return!!a};
g.h.Rk=function(a){var b=this.api.getRootNode();g.O(b,"ytp-autohide",a);g.O(b,"ytp-autohide-active",!0);this.nM.start(a?250:100);a&&(this.sD=!1,g.Hp(b,"ytp-touch-mode"));this.CF=!a;this.api.vz(!a)};
g.h.JH=function(){var a=this.api.getRootNode();g.O(a,"ytp-autohide-active",!1)};
g.h.zZ=function(){this.BJ=!0};
g.h.yZ=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_web_enable_mobile_touch_fix")&&this.api.V().J)this.BJ=!1,this.CJ&&this.xc(this.CJ),0===this.Gy&&VK(this,a)?(this.GB(),this.VA.start(),this.CJ=this.T(this.api.Ya(),"touchmove",this.zZ,void 0,!0)):this.VA.stop();!YBa(this)||!VK(this,a)||this.api.V().J&&this.api.V().N("embeds_web_enable_mobile_touch_fix")||RK(this);var b=this.wD.Xg();if(nC&&ZBa(this,a))b&&g.vu(a);else if(this.Xd.u||TK(this,ru(a))||this.wD.Xg()||
(this.api.yb().isCued(),g.vu(a)),this.sD=!0,g.M(this.api.getRootNode(),"ytp-touch-mode"),this.Xd.Fm(),this.api.V().N("player_doubletap_to_seek")&&(b=this.api.yb(),!(!this.api.Rf()||g.U(b,2)&&g.yJ(this.api)||g.U(b,64)))){b=Date.now()-this.zO;this.Gy+=1;if(350>=b){this.tx=!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.Gy-1);0<d&&d<b?(this.zv(-1,d,c,e),this.api.seekBy(-10*
this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.zv(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.vu(a)}this.zO=Date.now();this.GQ.start()}};
g.h.uZ=function(a){if(!ZBa(this,a)){if(!YBa(this)&&VK(this,a)&&!this.VA.isActive()){if(g.UC(this.api.V())&&this.api.yb().isCued()){var b=void 0===b?{}:b;lx();ex();kx();Xw(!1);b.cttAuthInfo&&(Yw().cttAuthInfo=b.cttAuthInfo);ar("TIMING_AFT_KEYS",[]);b.Mia?nx({loadType:"hot"}):nx({loadType:"warm"});ar("TIMING_ACTION","");delete g.P("TIMING_INFO",{}).yt_lt;mx("_start",b.startTime,void 0);b=["pbs","pbu"];dx("").info.actionType="watch";b&&ar("TIMING_AFT_KEYS",b);ar("TIMING_ACTION","watch");Jqa();b=Zw();
var c=ax();if("cold"===b.yt_lt||"cold"===c.loadType){var d=Tw(),e=$w();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)f in e||mx(f,d[f]);f={};d=!1;e=g.r(Object.keys(b));for(var k=e.next();!k.done;k=e.next())k=k.value,(k=Bqa(k,b[k]))&&!tqa(ax(),k)&&(nw(c,k),nw(f,k),d=!0);d&&nx(f)}Xw(!0);b=g.P("TIMING_ACTION");g.Ia("ytglobal.timingready_")&&b&&Bx("_start")&&mqa()&&sqa()}RK(this);g.vu(a)}this.tx&&(this.tx=!1)}};
g.h.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Ds("embedsRequestStorageAccessResult",{resolved:!0});ota(!0);$u();window.location.reload()},function(){g.Ds("embedsRequestStorageAccessResult",{resolved:!1});
a.Pv()})};
g.h.GB=function(){};
g.h.Js=function(){};
g.h.zv=function(){};
g.h.CQ=function(){};
g.h.Pv=function(){var a=this.api.yb();g.U(a,2)&&g.yJ(this.api)||(g.gG(a)?this.api.pauseVideo():(this.api.qH(),this.api.playVideo(),this.hn&&document.activeElement===this.hn.C.element&&this.api.getRootNode().focus()))};
g.h.vZ=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!TK(this,ru(a)))if(a=this.api.V(),this.api.V().N("player_doubletap_to_seek")&&this.tx)this.tx=!1;else if(a.gb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Zx(d)})}catch(d){this.Zx(d)}};
g.h.Zx=function(a){String(a).includes("fullscreen error")?g.Jv(a):g.Iv(a)};
g.h.wZ=function(a){$Ba(this,.3,a.scale);g.vu(a)};
g.h.xZ=function(a){$Ba(this,.1,a.scale)};
g.h.xb=function(){var a=this.api.Ya().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Xd.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.gg());g.O(b,"ytp-tiny-mode",this.SB());g.O(b,"ytp-big-mode",this.If());this.sf&&this.sf.resize(a)};
g.h.dh=function(a){this.Ub(a.state);this.Ao()};
g.h.kG=function(){var a=!!this.iH&&!this.api.We(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(iRa&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=pK(this.api.ob());return a&&b.eJ()}return a&&(c.fk||this.api.isFullscreen()||c.Kb)};
g.h.Ao=function(){var a=this.kG();this.mm!==a&&(this.mm=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Ub=function(a){var b=a.isCued()||this.api.gm()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.EJ&&this.xc(this.EJ),this.EJ=this.T(this.api.Ya(),"touchstart",this.yZ,void 0,b));var c=a.Nc()&&!g.U(a,32)||this.api.py();xK(this.Xd,128,!c);c=3===this.api.getPresentingPlayerType();xK(this.Xd,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[u0.ENDED];else d=[],g.U(a,8)?d.push(u0.PLAYING):g.U(a,4)&&d.push(u0.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(u0.BUFFERING),g.U(a,32)&&
d.push(u0.SEEKING),g.U(a,64)&&d.push(u0.UNSTARTED);g.jc(this.UE,d)||(g.Ip(c,this.UE),this.UE=d,g.Gp(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||this.api.V().N("enable_post_ad_perception_survey_in_desktop")&&(2!==this.api.getPresentingPlayerType()?!1:k_(pK(this.api.ob()))));g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.KG);g.U(a,128)&&!g.rC(d)?(this.sf||(this.sf=new g.GK(this.api),g.H(this,this.sf),g.EJ(this.api,
this.sf.element,4)),this.sf.u(a.getData()),this.sf.show()):this.sf&&(this.sf.dispose(),this.sf=null)};
g.h.Tl=function(){return this.api.Oh()&&this.api.Ml()?(this.api.setCardsVisible(!1,!1),!0):this.api.We()?(g.zJ(this.api,!0),!0):!1};
g.h.onMutedAutoplayChange=function(a){this.KG=a;this.Yj()};
g.h.If=function(){return!1};
g.h.gg=function(){return!this.If()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.SB=function(){return this.gg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.h.yj=function(){return this.sD};
g.h.yp=function(){return null};
g.h.Sx=function(){return null};
g.h.Ek=function(){var a=this.api.Ya().getPlayerSize();return new g.Hm(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.ws=function(){};
g.h.showControls=function(a){void 0!==a&&this.api.Ya().vz(a)};
g.h.Fm=function(){};
g.h.EN=function(){return null};g.w(WK,g.iv);g.h=WK.prototype;g.h.Jx=function(){return 1E3*this.api.getDuration(this.jl,!1)};
g.h.stop=function(){this.j&&this.Qc.xc(this.j)};
g.h.Tb=function(){var a=this.api.getProgressState(this.jl);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.jl,!1)};this.ea("h")};
g.h.getProgressState=function(){return this.u};
g.h.Yc=function(a){g.yF(a,2)&&this.ea("g")};g.w(XK,g.V);XK.prototype.onClick=function(){this.I.Oa("BACK_CLICKED")};g.w(g.YK,g.V);g.YK.prototype.show=function(){g.V.prototype.show.call(this);g.zp(this.j)};
g.YK.prototype.hide=function(){this.u.stop();g.V.prototype.hide.call(this)};
g.YK.prototype.Js=function(a){a?g.U(this.I.yb(),64)||ZK(this,jH(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?ZK(this,qza(),"Stop live playback"):ZK(this,mza(),"Pause"))};g.w(bL,g.V);g.h=bL.prototype;g.h.yd=function(){this.I.V().N("player_new_info_card_format")&&g.Fp(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.rC(this.I.V())||(this.u.show(),g.Ku("iv-button-shown"))};
g.h.Gb=function(){g.Ku("iv-button-hidden");this.u.hide()};
g.h.Xg=function(){return this.sb&&4!==this.u.state};
g.h.qa=function(){this.j&&this.j();g.V.prototype.qa.call(this)};
g.h.uY=function(){g.Ku("iv-button-mouseover")};
g.h.onClicked=function(a){this.I.Oh();var b=g.Fp(this.I.getRootNode(),"ytp-cards-teaser-shown");g.Ku("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.Ml(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(dL,g.V);g.h=dL.prototype;g.h.GR=function(){this.I.Oh()&&this.I.Ml()&&this.Xg()&&this.Gb()};
g.h.rJ=function(){this.Gb();!this.I.Oh()&&this.I.V().N("enable_error_corrections_infocards_icon_web")&&this.kh.Gb();g.Ku("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.I.Oa("innertubeCommand",this.onClickCommand):this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.fT=function(){g.Ku("iv-teaser-mouseover");this.j&&this.j.stop()};
g.h.UZ=function(a){this.I.V().N("player_new_info_card_format")&&!g.rC(this.I.V())?this.kh.Gb():this.I.V().N("enable_error_corrections_infocards_icon_web")&&this.kh.yd();this.j||!a||this.I.Ml()||this.u&&this.u.isActive()||(this.yd(a),g.Ku("iv-teaser-shown"))};
g.h.yd=function(a){this.onClickCommand=a.onClickCommand;this.Ka("text",a.teaserText);this.element.setAttribute("dir",g.Up(a.teaserText));this.C.show();this.u=new g.L(function(){g.M(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.N("player_new_info_card_format")&&!g.rC(this.I.V())&&this.kh.Gb();this.QJ()},0,this);
this.u.start();aL(this.kh,!1);this.j=new g.L(this.Gb,580+a.durationMs,this);this.j.start();this.D.push(this.Ma("mouseover",this.LK,this));this.D.push(this.Ma("mouseout",this.KK,this))};
g.h.QJ=function(){if(!this.I.V().N("player_new_info_card_format")&&g.rC(this.I.V())&&this.sb){var a=this.kh.element.offsetLeft,b=g.Th("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.kh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.dV=function(){g.rC(this.I.V())&&this.Y.gg()&&this.sb&&this.S.start()};
g.h.LK=function(){this.J.stop();this.j&&this.j.isActive()&&this.K.start()};
g.h.KK=function(){this.K.stop();this.j&&!this.j.isActive()&&this.J.start()};
g.h.IY=function(){this.j&&this.j.stop()};
g.h.HY=function(){this.Gb()};
g.h.Dj=function(){this.Gb()};
g.h.Gb=function(){!this.j||this.B&&this.B.isActive()||(g.Ku("iv-teaser-hidden"),this.C.hide(),g.Hp(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.L(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.xc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);aL(this.kh,!0);!this.I.Oh()&&this.I.V().N("enable_error_corrections_infocards_icon_web")&&this.kh.Gb()},330,this),this.B.start())};
g.h.Xg=function(){return this.sb&&4!==this.C.state};
g.h.qa=function(){var a=this.I.getRootNode();a&&g.Hp(a,"ytp-cards-teaser-shown");g.of(this.u,this.B,this.j);g.V.prototype.qa.call(this)};var D0={},eL=(D0.BUTTON="ytp-button",D0.TITLE_NOTIFICATIONS="ytp-title-notifications",D0.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",D0.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",D0.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",D0);g.w(fL,g.V);fL.prototype.onClick=function(){this.api.ub(this.element);var a=!this.j;this.Ka("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Ka("pressed",a);cCa(this,a)};g.w(g.hL,g.V);g.hL.prototype.u=function(){g.M(this.element,"ytp-sb-subscribed")};
g.hL.prototype.B=function(){g.Hp(this.element,"ytp-sb-subscribed")};g.w(iL,g.V);g.h=iL.prototype;g.h.HI=function(){gCa(this);this.channel.classList.remove("ytp-title-expanded")};
g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.h.UF=function(){if(eCa(this)&&!this.isExpanded()){this.Ka("flyoutUnfocusable","false");this.Ka("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Wa(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Ui&&a.subscribed&&(this.u.show(),this.api.Wa(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.h.wF=function(){this.Ka("flyoutUnfocusable","true");this.Ka("channelTitleFocusable","-1");this.B&&this.B.start()};
g.h.Ha=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Oc&&!!a.profilePicture:g.rC(b)&&(c=!!a.videoId&&!!a.Oc&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.C&&!(b.J&&200>this.api.getPlayerSize().width));var d=g.bD(this.api.V())+a.Oc;g.rC(b)&&(d=hCa(this,d));var e=a.Oc,f=a.profilePicture;b=g.rC(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var k=this.api.V();e=
g.bD(k)+e;g.rC(k)&&(e=hCa(this,e));this.K!==f&&(this.j.style.backgroundImage="url("+f+")",this.K=f);this.Ka("channelLink",e);this.Ka("channelLogoLabel",g.KF("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.M(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.Hp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Wa(this.j,c&&this.ra);this.subscribeButton&&(this.subscribeButton.channelId=a.Zj);this.Ka("expandedTitle",a.expandedTitle);this.Ka("channelTitleLink",d);this.Ka("expandedSubtitle",
a.expandedSubtitle)};g.w(g.jL,g.ZG);g.jL.prototype.qg=function(a){this.Ka("label",a)};
g.jL.prototype.Ka=function(a,b){g.ZG.prototype.Ka.call(this,a,b);this.ea("size-change")};g.w(mL,g.ZG);mL.prototype.sP=function(){this.ea("size-change")};
mL.prototype.focus=function(){this.content.focus()};
mL.prototype.mP=function(){this.ea("back")};g.w(g.nL,mL);g.nL.prototype.Bc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.gc(this.items,a,jCa);if(0<=b)return;b=~b;g.dc(this.items,b,0,a);g.fi(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.aI,this);this.menuItems.ea("size-change")};
g.nL.prototype.Of=function(a){a.unsubscribe("size-change",this.aI,this);this.isDisposed()||(g.Xb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))};
g.nL.prototype.aI=function(){this.menuItems.ea("size-change")};
g.nL.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(pL,g.jL);pL.prototype.j=function(a){g.wu(a)||39!==g.xu(a)||(this.element.click(),g.vu(a))};g.w(rL,g.jL);rL.prototype.onClick=function(){this.setValue(!this.checked);this.ea("select",this.checked)};
rL.prototype.getValue=function(){return this.checked};
rL.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.w(sL,g.V);g.h=sL.prototype;g.h.show=function(){g.V.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.Ka("userInfoFocusable","0");this.Ka("userInfoFocusable2","0")};
g.h.hide=function(){g.V.prototype.hide.call(this);this.Ka("userInfoFocusable","-1");this.Ka("userInfoFocusable2","-1")};
g.h.gT=function(a){var b=ru(a),c=g.ii(this.element,b);a=this.j&&g.ii(this.j,b)&&g.YH(a);b&&(c||a)||this.hide()};
g.h.hT=function(){g.jI(function(){window.location.reload()},"user_info_panel",g.MC(this.Ra.V()))};
g.h.Ha=function(){var a=this.Ra.V();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.Ui};this.Ka("icon",nza());this.Ka("watchingAsUsername",g.KF("Watching as $USER_NAME",a));this.Ka("watchingAsEmail",g.KF("($USER_EMAIL)",a))};g.w(tL,g.nL);g.h=tL.prototype;g.h.dY=function(){EK(this.ju.element)};
g.h.pY=function(){vL(this,this.I.getDebugText(!0))&&ZK(this.Cc,bH())};
g.h.qY=function(){vL(this,this.I.getVideoEmbedCode())&&ZK(this.Cc,hza());this.I.ub(this.Bk.element);gI("EMBED",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.rY=function(){vL(this,this.I.getVideoUrl(!0,!0))&&ZK(this.Cc,gH());this.I.ub(this.getVideoUrl.element);gI("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.sY=function(){vL(this,this.I.getVideoUrl(!1,!0))&&ZK(this.Cc,gH());this.I.ub(this.Fk.element);gI("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.onLoopChange=function(a){var b;null==(b=this.Aj)||b.setValue(a)};
g.h.BY=function(){this.I.setLoopVideo(this.Aj.getValue());this.qb.Gb();this.I.ub(this.Aj.element)};
g.h.qZ=function(a){this.I.reportPlaybackIssue();if(g.BK(a,this.I,!PC(this.I.V()))){a=this.I;var b=a.app.getFeedbackProductData();a.Oa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.qb.Gb()};
g.h.IZ=function(){this.I.isVideoInfoVisible()?this.I.hideVideoInfo():this.I.showVideoInfo();this.qb.Gb()};
g.h.HZ=function(){this.Tj&&(this.Pz||(this.Pz=new sL(this.I,this.Tj.element),g.H(this,this.Pz),g.EJ(this.I,this.Pz.element,4)),this.Pz.show(),this.qb.Gb(),this.I.ub(this.Tj.element))};
g.h.onVideoDataChange=function(a,b){lCa(this,b)};
g.h.jc=function(a){g.nL.prototype.jc.call(this,a);this.I.Wa(this.Bk.element,a);this.I.Wa(this.getVideoUrl.element,a);this.I.Wa(this.Fk.element,a);this.Aj&&this.I.Wa(this.Aj.element,a);this.Tj&&this.I.Wa(this.Tj.element,a)};g.w(g.wL,g.OK);g.h=g.wL.prototype;g.h.show=function(){g.OK.prototype.show.call(this);this.Vv()};
g.h.hide=function(){g.OK.prototype.hide.call(this);1<this.j.length&&g.yL(this)};
g.h.Vv=function(){nCa(this);this.sb&&(mCa(this),g.Um(this.element,this.size))};
g.h.Ai=function(){var a=this.j.pop();xL(this,a,this.j[this.j.length-1],!0)};
g.h.iT=function(a){if(!g.wu(a))switch(g.xu(a)){case 27:this.Gb();g.vu(a);break;case 37:1<this.j.length&&this.Ai();g.vu(a);break;case 39:g.vu(a)}};
g.h.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.h.qa=function(){g.OK.prototype.qa.call(this);this.C&&this.C.dispose();this.J&&this.J.dispose()};g.w(g.zL,g.wL);g.h=g.zL.prototype;g.h.kT=function(a){var b=ru(a);if(!(b&&(ni(b,"a")||ni(b,null,"ytp-no-contextmenu"))||this.sb)){var c;this.ma=(a=null==(c=a.touches)?void 0:c.item(0))?new g.wh(a.clientX,a.clientY):new g.wh(0,0);this.Z.start()}};
g.h.UP=function(){this.Z.stop()};
g.h.ZZ=function(){this.open(this.ma)};
g.h.show=function(){this.D||(this.D=new tL(this.I,this.va,this,this.Cc),g.H(this,this.D),g.uL(this,this.D));this.D.onLoopChange(this.I.getLoopVideo());g.wL.prototype.show.call(this);this.I.Wa(this.element,!0);this.D.jc(!0);this.element.tabIndex=-1;this.element.focus()};
g.h.hide=function(){pCa(this);g.wL.prototype.hide.call(this);this.I.Wa(this.element,!1);this.D&&this.D.jc(!1)};
g.h.aY=function(a){var b=ru(a);this.sb||b&&(ni(b,"a")||ni(b,null,"ytp-no-contextmenu"))||(g.vu(a),this.open(uu(a)))};
g.h.open=function(a){qCa(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.yd();var c=document.body;b=new Am(0,Infinity,Infinity,0);var d=Mh(c);for(var e=d.j.body,f=d.j.documentElement,k=Xh(d.j);c=ifa(c);)if(!(g.Ec&&0==c.clientWidth||g.uf&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Om(c,"overflow")){var l=g.Sm(c),m=new g.wh(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,
l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=k.scrollLeft;k=k.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,k);d=d.j;d=Wh(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,k+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(k=a,e=b,f=5,65==(f&65)&&(k.x<d.left||k.x>=d.right)&&(f&=-2),132==(f&132)&&(k.y<d.top||k.y>=d.bottom)&&
(f&=-5),k.x<d.left&&f&1&&(k.x=d.left),f&16&&(c=k.x,k.x<d.left&&(k.x=d.left),k.x+e.width>d.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.y<d.top&&f&4&&(k.y=d.top),f&32&&(c=k.y,k.y<d.top&&(k.y=d.top),k.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.Hm(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Qm(this.element,new g.wh(d.left,d.top));g.hv(this.B);this.B.T(document,"contextmenu",this.jY);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.jT)};
g.h.jY=function(a){if(!g.wu(a)){var b=ru(a);g.ii(this.element,b)||this.Gb();this.I.V().disableNativeContextMenu&&g.vu(a)}};
g.h.onFullscreenToggled=function(){this.Gb();qCa(this)};
g.h.jT=function(){this.Gb()};g.w(g.AL,g.V);g.AL.prototype.onClick=function(){var a=this,b,c,d,e;return g.B(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.A(f,sCa(a,e),2);f.u&&rCa(a);a.api.ub(a.element);g.sa(f)})};
g.AL.prototype.Ha=function(){var a=this.api.V(),b=this.api.getVideoData();this.Ka("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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.Ka("title-attr","Copy link");var c=this.api.Ya().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.Dl&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.YG(this,this.visible);CL(this.tooltip);this.api.Wa(this.element,this.visible&&this.ra)};
g.AL.prototype.jc=function(a){g.V.prototype.jc.call(this,a);this.api.Wa(this.element,this.visible&&a)};
g.AL.prototype.qa=function(){g.V.prototype.qa.call(this);g.Hp(this.element,"ytp-copylink-button-visible")};g.w(DL,g.V);g.h=DL.prototype;g.h.show=function(){g.V.prototype.show.call(this);g.zp(this.j)};
g.h.hide=function(){this.u.stop();g.Hp(this.element,"ytp-chapter-seek");g.Hp(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
g.h.zv=function(a,b,c,d){this.Av(a,d)};
g.h.Av=function(a,b){g.Bp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Hp(this.element,"ytp-chapter-seek");this.Ka("chapterSeekText","");a=g.KF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Ka("seekTime",a)};
g.h.XC=function(a,b){g.Bp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-chapter-seek");this.Ka("chapterSeekText",b);this.Ka("seekTime","")};g.w(EL,g.V);g.h=EL.prototype;g.h.show=function(){g.V.prototype.show.call(this);g.zp(this.u)};
g.h.hide=function(){this.B.stop();g.Hp(this.element,"ytp-chapter-seek");g.Hp(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
g.h.zv=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.ub(e);g.Bp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.Ya().getPlayerSize().height;e=this.I.Ya().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var k=2.5*f;f=k/2;var l=this.Ca("ytp-doubletap-ripple");l.style.width=k+"px";l.style.height=
k+"px";1===a?(a=this.I.Ya().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ca("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");tCa(this,d)};
g.h.Av=function(a,b){var c=this.I.Ya().getPlayerSize();g.Bp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";1===a?(this.j.style.right="",this.j.style.left=.8*c.width-30+"px"):-1===a&&(this.j.style.right="",this.j.style.left=.1*c.width-15+"px");this.j.style.top=.5*c.height+15+"px";tCa(this,b)};
g.h.XC=function(a,b){g.Bp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.j.style.width="0";this.j.style.height="0";g.M(this.element,"ytp-chapter-seek");this.Ka("seekText",b);this.Ka("seekTime","")};var pTa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(pTa).reduce(function(a,b){a[pTa[b]]=b;return a},{});
var qTa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(qTa).reduce(function(a,b){a[qTa[b]]=b;return a},{});
var rTa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(rTa).reduce(function(a,b){a[rTa[b]]=b;return a},{});var E0,sTa;E0=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];sTa=[{option:0,text:FL(0)},{option:.25,text:FL(.25)},{option:.5,text:FL(.5)},{option:.75,text:FL(.75)},{option:1,text:FL(1)}];
g.JL=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:E0},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:FL(.5)},{option:-1,text:FL(.75)},{option:0,text:FL(1)},{option:1,text:FL(1.5)},{option:2,text:FL(2)},
{option:3,text:FL(3)},{option:4,text:FL(4)}]},{option:"background",text:"Background color",options:E0},{option:"backgroundOpacity",text:"Background opacity",options:sTa},{option:"windowColor",text:"Window color",options:E0},{option:"windowOpacity",text:"Window opacity",options:sTa},{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:FL(.25)},{option:.5,text:FL(.5)},{option:.75,text:FL(.75)},{option:1,text:FL(1)}]}];g.w(g.IL,g.iA);g.h=g.IL.prototype;
g.h.ON=function(a){var b=!1,c=g.xu(a),d=ru(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.api.V();g.wu(a)?(e=!1,k=!0):l.Qg&&(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);$K(this.Cc,f,!1);this.api.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);$K(this.Cc,f,!0);this.api.setVolume(f);k=f=!0;break;case 36:this.api.Rf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),k=f=!0);break;case 35:this.api.Rf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),k=f=!0)}}b&&HL(this,!0);(b||k)&&this.Xd.Fm();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.vu(a);l.B&&(a={keyCode:g.xu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.wu(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))};
g.h.PN=function(a){this.handleGlobalKeyUp(g.xu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.CJ(this.api.ob());c&&(c=c.jq)&&c.sb&&(c.KN(a),b=!0);9===a&&(HL(this,!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){var k=!1;e=this.api.V();if(e.Qg)return k;var l=g.CJ(this.api.ob());if(l&&(l=l.jq)&&l.sb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=l.JN(a)}e.D||k||(k=f||String.fromCharCode(a).toLowerCase(),this.u+=k,0==="awesome".indexOf(this.u)?(k=!0,7===this.u.length&&Yha(this.api.getRootNode(),"ytp-color-party")):(this.u=k,k=0==="awesome".indexOf(this.u)));if(!k){f=(f=this.api.getVideoData())?f.ul:[];l=xP?d:c;switch(a){case 80:b&&
!e.Aa&&(ZK(this.Cc,pza(),"Previous"),this.api.previousVideo(),k=!0);break;case 78:b&&!e.Aa&&(ZK(this.Cc,hH(),"Next"),this.api.nextVideo(),k=!0);break;case 74:this.api.Rf()&&(this.api.startSeekCsiAction(),this.j?this.j.Av(-1,10):ZK(this.Cc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),k=!0);break;case 76:this.api.Rf()&&(this.api.startSeekCsiAction(),this.j?this.j.Av(1,10):ZK(this.Cc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),k=!0);break;case 37:this.api.Rf()&&(this.api.startSeekCsiAction(),l?(l=wCa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.XC(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(this.j?this.j.Av(-1,5):ZK(this.Cc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),k=!0));break;case 39:this.api.Rf()&&(this.api.startSeekCsiAction(),l?(l=vCa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.XC(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(null!=this.j?this.j.Av(1,5):ZK(this.Cc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),$K(this.Cc,this.api.getVolume(),!1)):(this.api.mute(),$K(this.Cc,0,!0));k=!0;break;case 32:case 75:e.Aa||(k=!g.gG(this.api.yb()),this.Cc.Js(k),k?this.api.playVideo():this.api.pauseVideo(),k=!0);break;case 190:b?e.Pd&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),aCa(this.Cc,!1),k=!0):this.api.Rf()&&(zCa(this,1),k=!0);break;case 188:b?e.Pd&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k-
.25,!0),aCa(this.Cc,!0),k=!0):this.api.Rf()&&(zCa(this,-1),k=!0);break;case 70:IBa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0);
break;case 27:this.C()&&(k=!0)}if("3"!==e.controlsType)switch(a){case 67:g.kK(this.api.ob())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),bCa(this.Cc,!e||e&&!e.displayName),k=!0);break;case 79:KL(this,"textOpacity");break;case 87:KL(this,"windowOpacity");break;case 187:case 61:KL(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:KL(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.Rf()&&(this.api.startSeekCsiAction(),
a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),k=!0);k&&this.Xd.Fm()}return k};
g.h.qa=function(){g.Bp(this.B);g.iA.prototype.qa.call(this)};g.w(LL,g.V);LL.prototype.Ha=function(){var a=g.rC(this.I.V())&&g.BJ(this.I)&&g.U(this.I.yb(),128),b=this.I.getPlayerSize();this.visible=this.j.gg()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&CL(this.tooltip);this.I.Wa(this.element,this.visible&&this.ra)};
LL.prototype.jc=function(a){g.V.prototype.jc.call(this,a);this.I.Wa(this.element,this.visible&&a)};
LL.prototype.qa=function(){g.V.prototype.qa.call(this);g.Hp(this.element,"ytp-overflow-button-visible")};g.w(ML,g.OK);g.h=ML.prototype;g.h.lT=function(a){a=ru(a);g.ii(this.element,a)&&(g.ii(this.j,a)||g.ii(this.closeButton,a)||PK(this))};
g.h.Gb=function(){g.OK.prototype.Gb.call(this);this.tooltip.wk(this.element)};
g.h.show=function(){this.sb&&this.I.ea("OVERFLOW_PANEL_OPENED");g.OK.prototype.show.call(this);this.element.setAttribute("aria-modal","true");ACa(this,!0)};
g.h.hide=function(){g.OK.prototype.hide.call(this);this.element.removeAttribute("aria-modal");ACa(this,!1)};
g.h.onFullscreenToggled=function(a){!a&&this.Xg()&&PK(this)};
g.h.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.sb){b.focus();break}};g.w(OL,g.V);OL.prototype.onClick=function(a){g.BK(a,this.api)&&this.api.playVideoAt(this.index)};g.w(PL,g.OK);g.h=PL.prototype;g.h.show=function(){g.OK.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.kE);this.B.T(this.api,"onPlaylistUpdate",this.kE);this.kE()};
g.h.hide=function(){g.OK.prototype.hide.call(this);g.hv(this.B);this.updatePlaylist(null)};
g.h.kE=function(){this.updatePlaylist(this.api.getPlaylist())};
g.h.bD=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;d<c;d++){var e=new OL(this.api,a,d);this.j.push(e);e.Ba(this.items)}this.selected=this.j[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.h.YZ=function(a){var b=this.api.getVideoUrl(!0);g.CK(b,this.api,a)};
g.h.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.bD,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.bD,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.KF(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.bD()}else this.sb&&this.hide();
else this.playlist&&this.bD()};
g.h.focus=function(){this.selected.focus()};
g.h.qa=function(){this.hide();g.OK.prototype.qa.call(this)};g.w(QL,g.V);
QL.prototype.Ha=function(){var a=g.rC(this.api.V());g.O(this.element,"ytp-playlist-menu-button-tiny",400>this.api.Ya().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.KF("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.KF("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.sb||(this.show(),CL(this.tooltip)),this.visible=!0,this.jc(!0)):
this.sb&&(this.hide(),this.jc(!1),CL(this.tooltip))};
QL.prototype.jc=function(a){g.V.prototype.jc.call(this,a);this.api.Wa(this.element,this.visible&&a)};
QL.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ha,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ha,this);this.Ha()};g.w(RL,g.V);g.h=RL.prototype;
g.h.lE=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;a=this.tooltipRenderer.text;var c=!1,d;(null==a?0:null==(d=a.runs)?0:d.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),c=!0);g.Wm(this.title,c);a=this.tooltipRenderer.detailsText;d=!1;var e;if((null==a?0:null==(e=a.runs)?0:e.length)&&a.runs[0].text){c=a.runs[0].text.toString();e=c.indexOf("$TARGET_ICON");if(-1<e)if(this.tooltipRenderer.targetId){a=[];c=c.split("$TARGET_ICON");var f=new g.VG({G:"span",L:"ytp-promotooltip-details-icon",
U:[tTa[this.tooltipRenderer.targetId]]});g.H(this,f);for(var k=[],l=g.r(c),m=l.next();!m.done;m=l.next())m=new g.VG({G:"span",L:"ytp-promotooltip-details-component",oa:m.value}),g.H(this,m),k.push(m);2===c.length?(a.push(k[0].element),a.push(f.element),a.push(k[1].element)):1===c.length&&(0===e?(a.push(f.element),a.push(k[0].element)):(a.push(k[0].element),a.push(f.element)));e=a.length?a:null}else e=null;else e=c;if(e){if("string"!==typeof e)for(g.ei(this.details),d=g.r(e),e=d.next();!e.done;e=d.next())this.details.appendChild(e.value);
else this.update({details:e});d=!0}}g.Wm(this.details,d);d=this.tooltipRenderer.acceptButton;e=!1;var n,p,q;(null==d?0:null==(n=d.buttonRenderer)?0:null==(p=n.text)?0:null==(q=p.runs)?0:q.length)&&d.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:d.buttonRenderer.text.runs[0].text.toString()}),e=!0);g.Wm(this.acceptButton,e);n=this.tooltipRenderer.dismissButton;p=!1;var t,v,x;(null==n?0:null==(t=n.buttonRenderer)?0:null==(v=t.text)?0:null==(x=v.runs)?0:x.length)&&n.buttonRenderer.text.runs[0].text&&
(this.update({dismissButtonText:n.buttonRenderer.text.runs[0].text.toString()}),p=!0);g.Wm(this.dismissButton,p)}b&&(this.B=b);this.j=BCa(this);this.D=!1;this.I.V().N("web_player_hide_nitrate_promo_tooltip")||g.YG(this,!0);(b=!this.j)||(b=this.j,t=window.getComputedStyle(b),b="none"===t.display||"hidden"===t.visibility||"true"===b.getAttribute("aria-hidden"));b||this.I.Af()?g.YG(this,!1):(b=g.Vm(this.j),b.width&&b.height?(this.K.ws(this.element,this.j),t=this.I.Ya().getPlayerSize().height-g.Vm(this.element).height-
b.height-12,this.element.style.top=t+"px",t=this.Ca("ytp-promotooltip-pointer"),v=g.Tm(this.j,this.I.getRootNode()),x=Number(this.element.style.left.replace(/[^\d\.]/g,"")),n=this.I.isFullscreen()?18:12,t.style.left=v.x-x+b.width/2-n+"px"):g.YG(this,!1));this.J||(this.J=!0,TL(this,0));this.u&&this.I.Wa(this.element,this.sb)}};
g.h.cY=function(){SL(this);this.D=!0};
g.h.rX=function(){this.C=!0;TL(this,1);this.I.ea("promotooltipacceptbuttonclicked",this.acceptButton);SL(this);this.u&&this.I.ub(this.acceptButton)};
g.h.iY=function(){this.C=!0;TL(this,2);SL(this);this.u&&this.I.ub(this.dismissButton)};
g.h.mT=function(a){if(1===this.I.getPresentingPlayerType()){var b=!0,c=g.Th("ytp-ad-overlay-ad-info-dialog-container"),d=ru(a);if(this.B&&d&&g.ii(this.B,d))this.B=null;else{1===this.I.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=CCa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.ii(this.element,d));else{var k;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(k=this.tooltipRenderer.dismissStrategy)?void 0:k.type)&&(b=e?!1:b&&g.ii(this.element,d))}this.j&&this.sb&&!c&&(!d||b&&g.YH(a))&&(this.C=!0,SL(this))}}};
g.h.xb=function(){this.D||(this.j||(this.j=BCa(this)),this.lE())};
var tTa={"ytp-settings-button":g.lH()};g.w(UL,g.V);UL.prototype.onStateChange=function(a){g.YG(this,g.U(a.state,2))};
UL.prototype.onClick=function(){this.I.yb();this.I.playVideo()};g.w(g.VL,g.V);g.VL.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(DCa)}catch(e){e instanceof Error&&DCa(e)}else this.j.Tl(),PK(this.B,this.element,!1);this.api.ub(this.element)};
g.VL.prototype.Ha=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.rC(a)&&g.BJ(this.api)&&g.U(this.api.yb(),128);this.Ka("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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.Dl||c||b.D&&a.pfpChazalUi;c=this.api.Ya().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.YG(this,this.visible);CL(this.tooltip);this.api.Wa(this.element,this.visible&&this.ra)};
g.VL.prototype.jc=function(a){g.V.prototype.jc.call(this,a);this.api.Wa(this.element,this.visible&&a)};
g.VL.prototype.qa=function(){g.V.prototype.qa.call(this);g.Hp(this.element,"ytp-share-button-visible")};g.w(g.WL,g.OK);g.h=g.WL.prototype;g.h.nT=function(a){a=ru(a);g.ii(this.D,a)||g.ii(this.closeButton,a)||PK(this)};
g.h.Gb=function(){g.OK.prototype.Gb.call(this);this.tooltip.wk(this.element)};
g.h.show=function(){var a=this.sb;g.OK.prototype.show.call(this);this.Ha();a||this.api.Oa("onSharePanelOpened")};
g.h.SW=function(){this.sb&&this.Ha()};
g.h.Ha=function(){var a=this;g.M(this.element,"ytp-share-panel-loading");g.Hp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&wI(this.api.Wl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Hp(a.element,"ytp-share-panel-loading"),FCa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.CC(this.api.V())&&(b=g.sj(b,g.QI({},"emb_share")));this.Ka("link",b);this.Ka("linkText",b);this.Ka("shareLinkWithUrl",g.KF("Share link $URL",{URL:b}));EK(this.B)};
g.h.onFullscreenToggled=function(a){!a&&this.Xg()&&PK(this)};
g.h.focus=function(){this.B.focus()};
g.h.qa=function(){g.OK.prototype.qa.call(this);ECa(this)};g.w(ZL,g.V);g.h=ZL.prototype;g.h.KH=function(){};
g.h.LH=function(){};
g.h.Bz=function(){return!0};
g.h.f0=function(){if(this.expanded){this.va.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.va.hide();this.Xa=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Xa)+"px";this.ma.start()};
g.h.xV=function(){this.badge.element.style.width=(this.expanded?this.Xa:34)+"px";this.Ia.start()};
g.h.K0=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.h.hj=function(){this.Bz()?this.S.show():this.S.hide();GCa(this)};
g.h.oT=function(){this.enabled=!1;this.hj()};
g.h.J0=function(){this.hj()};
g.h.UX=function(a){this.Ta=1===a;this.hj();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.h.nY=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.hj()};g.w($L,ZL);g.h=$L.prototype;g.h.qa=function(){aM(this);ZL.prototype.qa.call(this)};
g.h.KH=function(a){a.target!==this.dismissButton.element&&(ICa(this,!1),this.I.Oa("innertubeCommand",this.onClickCommand))};
g.h.LH=function(){this.B=!0;ICa(this,!0);this.hj()};
g.h.ZY=function(a){this.Ga=a;this.hj()};
g.h.SY=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.Aa&&(this.Y=a,a||(a=3+this.I.getCurrentTime(),this.je(a)))};
g.h.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.Y=this.Aa=this.u=this.K=!1,aM(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ga=this.enabled=!1;if(a){this.enabled=!0;if(!this.C){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.C=!!d)&&this.I.al(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.I.al(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.Qw(a.text);var k;if(c=null==(k=a.dismissButton)?void 0:k.a11yLabel)this.Ua=g.Qw(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;lE(b)?this.Y=this.Aa=!0:this.je()}HCa(this);YL(this);this.hj()};
g.h.Bz=function(){return!this.Ga&&this.enabled&&!this.B&&!this.gb.gg()&&!this.Ta&&!this.Y&&(this.u||this.j)};
g.h.uf=function(a){(this.u=a)?(XL(this),YL(this,!1)):(aM(this),this.Z.start());this.hj()};
g.h.je=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Jw(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Jw(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.je(b)};g.w(bM,g.OK);bM.prototype.show=function(){g.OK.prototype.show.call(this);this.C.start()};
bM.prototype.hide=function(){g.OK.prototype.hide.call(this);this.C.stop()};
bM.prototype.Bp=function(a,b){"dataloaded"===a&&((this.B=b.SL,this.j=b.QL,isNaN(this.B)||isNaN(this.j))?this.D&&(this.I.Nf("intro"),this.I.removeEventListener(g.Lw("intro"),this.ma),this.I.removeEventListener(g.Mw("intro"),this.Z),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.Lw("intro"),this.ma),this.I.addEventListener(g.Mw("intro"),this.Z),this.I.addEventListener("onShowControls",this.J),a=new g.Jw(this.B,this.j,{priority:9,namespace:"intro"}),
this.I.je([a]),this.D=!0))};g.w(cM,g.V);cM.prototype.onClick=function(){this.I.iq()};
cM.prototype.Ha=function(){var a=!0;g.rC(this.I.V())&&(a=a&&480<=this.I.Ya().getPlayerSize().width);g.YG(this,a);this.Ka("icon",this.I.eg()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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",Mb:!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 xs("yt.autonav");g.w(dM,g.V);g.h=dM.prototype;
g.h.Aw=function(){var a;if(a=3!==this.I.getPresentingPlayerType()&&g.FJ(this.I)&&400<=this.I.Ya().getPlayerSize().width)a=this.jd(),a=this.I.V().N("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.dS;if(a)this.j||(this.j=!0,g.YG(this,this.j),this.I.V().N("web_player_autonav_toggle_always_listen")||JCa(this),a=this.jd(),this.MK(a.autonavState),this.I.Wa(this.element,this.j));else if(this.j=!1,g.YG(this,this.j),!this.I.V().N("web_player_autonav_toggle_always_listen")){this.I.V().N("web_player_autonav_toggle_always_listen");a=
g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.xc(b.value)}};
g.h.MK=function(a){LCa(this)?this.isChecked=1!==a:((a=1!==a)||(g.qs.getInstance(),a=g.Q("web_autonav_allow_off_by_default")&&!g.rs(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.rs(0,140)),this.isChecked=a);KCa(this)};
g.h.onClick=function(){this.isChecked=!this.isChecked;this.I.aD(this.isChecked?2:1);KCa(this);if(LCa(this)){var a=this.jd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.I.Oa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.I.Oa("innertubeCommand",a.onDisabledCommand)}this.I.ub(this.element)};
g.h.getValue=function(){return this.isChecked};
g.h.setValue=function(a){this.isChecked=a;this.Ca("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};
g.h.jd=function(){var a;this.I.V().N("web_player_autonav_toggle_app_video_data_killswitch")||(a=1);return this.I.getVideoData(a)};g.w(g.fM,g.V);g.fM.prototype.qa=function(){this.ctx=null;g.V.prototype.qa.call(this)};g.w(gM,g.V);gM.prototype.onClick=function(){this.I.Oa("innertubeCommand",this.j)};
gM.prototype.K=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
gM.prototype.J=function(){this.C.disabled=null==this.j;g.O(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Tb()};g.w(hM,gM);hM.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Tb()};
hM.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.lS)?void 0:c.command;gM.prototype.J.call(this)};
hM.prototype.Tb=function(){var a="",b=this.u.j,c=this.I.getLoopRange();c=!this.I.N("web_repeating_chapters")&&c||"clips"===(null==c?void 0:c.type);if(1<b.length&&!c){a=1E3*this.I.getProgressState().current;c=GL(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.B)this.I.Oa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.B=!1}else this.B=!0;gM.prototype.K.call(this,a)};g.w(g.jM,g.V);g.jM.prototype.Yc=function(a){g.U(a.state,32)?kM(this,this.api.Yh()):this.sb&&(g.U(a.state,16)||g.U(a.state,1))||this.j.hide()};
g.jM.prototype.Vd=function(){var a=this.api.yb();(g.U(a,32)||g.U(a,16))&&lM(this)};
g.jM.prototype.D=function(){this.B=NaN;lM(this)};
g.jM.prototype.hide=function(){this.u&&kM(this,null);g.V.prototype.hide.call(this)};g.w(mM,g.V);mM.prototype.onClick=function(){this.Ra.ub(this.element);this.Ra.Oa("onFullerscreenEduClicked")};
mM.prototype.Ha=function(){this.Ra.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Ra.Wa(this.element,this.Ra.isFullscreen()&&!this.u)};g.w(g.nM,g.V);g.h=g.nM.prototype;g.h.onClick=function(){var a=this;if(this.I.V().gb||this.I.V().J){this.I.ub(this.element);try{this.I.toggleFullscreen().catch(function(b){a.Zx(b)})}catch(b){this.Zx(b)}}else PK(this.message,this.element,!0)};
g.h.Zx=function(a){String(a).includes("fullscreen error")?g.Jv(a):g.Iv(a);this.TH()};
g.h.TH=function(){this.disable();this.message.yd(this.element,!0)};
g.h.Tn=function(){cv()===this.I.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.h.YU=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.TH()}};
g.h.disable=function(){var a=this;if(!this.message){var b=(null!=lu(["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.OK(this.I,{G:"div",Ea:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://web.archive.org/web/20220414023957/https://support.google.com/youtube/answer/6276924",
target:this.I.V().K},oa:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.uu(a.message,c)});
g.EJ(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.h.Ha=function(){var a=IBa(this.I),b=this.I.V().J&&250>this.I.getPlayerSize().width;g.YG(this,a&&!b);this.I.Wa(this.element,this.sb)};
g.h.Rj=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",Mb:!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",Mb:!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",Mb:!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",Mb:!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=FK(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",Mb:!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",
Mb:!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",Mb:!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",Mb:!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=FK(this.I,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});CL(this.u.pc())};
g.h.qa=function(){this.message||((0,this.j)(),this.j=null);g.V.prototype.qa.call(this)};g.w(oM,gM);oM.prototype.onClickCommand=function(a){(null==a?0:a.changeMarkersVisibilityCommand)&&this.Tb()};
oM.prototype.updateVideoData=function(){var a,b;this.j=null==(a=this.u.Kc)?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;gM.prototype.J.call(this)};
oM.prototype.Tb=function(){var a="",b=this.u.Y,c,d=null==(c=this.u.Kc)?void 0:c.headerTitle;c=d?g.Qw(d):"";d=this.I.getLoopRange();d=!this.I.N("web_repeating_chapters")&&d||"clips"===(null==d?void 0:d.type);1<b.length&&!d&&(a=1E3*this.I.getProgressState().current,d=uCa(b,a),a=null!=d?b[d].title:c,null!=d&&d!==this.currentIndex&&(this.I.Oa("innertubeCommand",b[d].onActiveCommand),this.currentIndex=d));gM.prototype.K.call(this,a)};g.w(pM,g.V);pM.prototype.onClick=function(){this.I.Oa("onCollapseMiniplayer");this.I.ub(this.element)};
pM.prototype.Ha=function(){this.visible=!this.I.isFullscreen();g.YG(this,this.visible);this.I.Wa(this.element,this.visible&&this.ra)};
pM.prototype.jc=function(a){g.V.prototype.jc.call(this,a);this.I.Wa(this.element,this.visible&&a)};g.w(qM,g.V);qM.prototype.onVideoDataChange=function(a){this.Ha("newdata"===a)};
qM.prototype.Ha=function(a){var b=this.I.getVideoData(),c=b.pe,d=this.I.yb();d=(g.gG(d)||g.U(d,4))&&0<c.length;g.YG(this,d);a&&(this.j=!0);if(d){this.j&&g.zp(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.KF("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.zf("default.jpg")});CL(this.tooltip)}else this.u.stop()};
qM.prototype.B=function(){BL(this.tooltip,this.element,"More cameras available");this.j=!1};g.w(rM,g.OK);g.h=rM.prototype;g.h.show=function(){var a=this.sb;g.OK.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Ha),this.B.T(this.api,"videodatachange",this.Ha),this.Ha())};
g.h.hide=function(){this.B&&(g.hv(this.B),g.OK.prototype.hide.call(this))};
g.h.Ha=function(){var a=this,b=this.api.getVideoData(),c=b.pe,d,e={};for(d=0;d<c.length;e={ED:e.ED},d++){var f=this.j[d];f||(f=new g.V({G:"button",Ea:["ytp-multicam-menu-item","ytp-button"],W:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},U:[{G:"div",L:"ytp-multicam-menu-item-title",oa:"{{cameraName}}"}]}),e.ED=d,f.Ma("click",function(n){return function(){var p=n.ED,q=a.api.getVideoData(),t=a.api,v=q.pe[p];p=g.GJ(t.app,1).getVideoData();q=t.getCurrentTime();v.id===p.videoId?(v=g.GJ(t.app,
1),g.GJ(t.app)!==v&&(t.app.Xn(),p.isLivePlayback||t.seekTo(q))):t.app.loadVideoByPlayerVars({videoId:v.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.yL}}}},4)}}(e)),f.Ba(this.items),this.j[d]=f);
var k=c[d],l=k.id;if(l!==f.element.getAttribute("data-id")){var m=k.thumbnail_url;!m&&l&&(m=OC(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:k.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.yb();b=c.length||!b.isLoaded();g.gG(d)||g.U(d,4)||b||!this.Xg()||PK(this)};
g.h.focus=function(){for(var a=this.api.getVideoData(),b=a.pe,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.h.qa=function(){g.of(this.j);g.OK.prototype.qa.call(this)};g.w(sM,g.G);sM.prototype.j=function(){var a=(0,g.R)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.Wp(uTa,a));1>a&&this.delay.start()};
var uTa=new g.Vp(0,0,.4,0,.2,1,1,1),QCa=/[0-9.-]+|[^0-9.-]+/g;g.w(g.uM,g.V);g.h=g.uM.prototype;g.h.NK=function(a){this.visible=300<=a.width;g.YG(this,this.visible);this.I.Wa(this.element,this.visible&&this.ra)};
g.h.JY=function(){this.I.V().va?this.I.isMuted()?this.I.unMute():this.I.mute():PK(this.message,this.element,!0);this.I.ub(this.element)};
g.h.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.Y;isNaN(f)?TCa(this,a):tM(this.ma,function(l){TCa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var k=this.K;isNaN(k)?UCa(this,d):tM(this.S,function(l){UCa(c,k+(c.C-k)*l)},250);
this.C=d}e.va&&(e=FK(this.I,"Mute","m"),d=FK(this.I,"Unmute","m"),this.Ka("title",b?d:e),CL(this.tooltip))};
g.h.jc=function(a){g.V.prototype.jc.call(this,a);this.I.Wa(this.element,this.visible&&a)};
var RCa=["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"],SCa=["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(vM,g.V);vM.prototype.onClick=function(){this.I.togglePictureInPicture()};g.w(g.wM,g.V);g.wM.prototype.onStateChange=function(a){VCa(this,a.state);a=g.U(a.state,2);WC(this.I.V())&&(!this.j&&!a||this.j&&a?(this.hide(),this.I.Wa(this.element,!1)):(this.show(),this.I.Wa(this.element,!0)))};
g.wM.prototype.onVideoDataChange=function(){g.O(this.element,"ytp-play-button-playlist",g.BJ(this.I))};
g.wM.prototype.Pv=function(a){this.I.ub(this.element);if(g.gG(this.I.yb()))this.I.pauseVideo();else{if(this.I.Af()&&this.I.yb().isCued()){var b={},c;!this.I.N("web_player_csi_ctt_killswitch")&&(null==(c=this.I.getVideoData())?0:c.K)&&(b.cttAuthInfo={token:this.I.getVideoData().K,videoId:this.I.getVideoData().videoId});ox("direct_playback",b)}this.I.vj().timerName="direct_playback";this.I.playVideo()}!this.I.V().N("miniplayer_disable_play_button_click_focus_killswitch")&&this.I.Af()&&a&&"click"===
a.type&&this.element.blur()};g.w(g.yM,g.V);g.h=g.yM.prototype;g.h.onVideoDataChange=function(){XCa(this);this.C&&(this.xc(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.pT);this.B=YCa(this);xM(this);this.mE(this.I.Ya().getPlayerSize())};
g.h.mE=function(a){a=void 0===a?this.I.Ya().getPlayerSize():a;a=(g.BJ(this.I)||this.j&&g.FJ(this.I)||ZCa(this))&&(this.j||400<=a.width);g.YG(this,a);this.I.Wa(this.element,a)};
g.h.onClick=function(a){this.I.ub(this.element);var b=!0;this.isLinkable?b=g.BK(a,this.I):g.vu(a);b&&(this.j&&5===this.I.getPresentingPlayerType()?this.I.ea("ytoprerollinternstitialnext"):this.j?this.I.nextVideo(!0):this.B?this.I.seekTo(0):this.I.previousVideo(!0))};
g.h.pT=function(){var a=YCa(this);a!==this.B&&(this.B=a,xM(this))};
g.h.qa=function(){this.u&&(this.u(),this.u=null);XCa(this);g.V.prototype.qa.call(this)};g.w(zM,g.V);g.h=zM.prototype;g.h.qT=function(a){this.QK(a.pageX);this.PK(a.pageX+a.deltaX);this.OK()};
g.h.QK=function(a){this.ma=a};
g.h.PK=function(a){!isNaN(this.ma)&&0<this.thumbnails.length&&(this.Z=a-this.ma,0<this.thumbnails.length&&0!==this.Z&&(this.C=this.D+this.Z,a=-(this.C-this.K/2)/this.B.offsetWidth*this.api.getDuration(),0<=a&&a<=this.api.getDuration()?(this.api.seekTo(a,!1),g.Km(this.B,"transform","translateX("+this.C+"px)"),this.update({seekTime:g.XH(a)})):this.C=this.D))};
g.h.OK=function(){this.ma=NaN;this.Z=0;this.D=this.C};
g.h.play=function(){var a=-(this.C-this.K/2)/this.B.offsetWidth*this.api.getDuration();this.api.seekTo(a);this.api.playVideo()};
g.h.enable=function(){this.Aa=this.api.getCurrentTime();this.isEnabled=!0;this.va=this.T(this.element,"wheel",this.qT)};
g.h.disable=function(){this.hide();this.isEnabled=!1;this.va&&this.xc(this.va)};
g.h.reset=function(){this.disable();this.u=[];this.Y=!1};
g.h.qa=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.V.prototype.qa.call(this)};
g.w($Ca,g.V);g.w(BM,g.V);g.w(bDa,g.V);g.w(CM,g.V);eDa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.j=b-c-d;this.position=g.sh(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(GM,g.V);g.w(g.IM,g.ZG);g.h=g.IM.prototype;g.h.xb=function(){g.LM(this);OM(this);KM(this,this.Y);var a;null==(a=this.u)||AM(a,this.api.getCurrentTime())};
g.h.onClickCommand=function(a){if(a=null==a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&MM(this,b)}};
g.h.XZ=function(a){this.api.Oa("innertubeCommand",this.Pe[a.id])};
g.h.Tb=function(){OM(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.UC()};
g.h.mY=function(a){if(!g.wu(a)){var b=!1;switch(g.xu(a)){case 32:var c;(null==(c=this.u)?0:c.isEnabled)&&this.ZF();b=!0;break;case 27:var d;(null==(d=this.u)?0:d.isEnabled)&&this.iN();b=!0}b&&g.vu(a)}};
g.h.sT=function(a){if(!g.wu(a)){var b=!1;switch(g.xu(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.vu(a)}};
g.h.Bp=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.h.ZV=function(){this.Bp("newdata",this.api.getVideoData())};
g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(GE(a)||RM(this)?this.qd=!1:this.qd=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!GE(a))));vDa(this,this.api.Rf());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;UM(this);for(PM(this,this.ma,this.rb);0<this.J.length;)this.J.pop().dispose();this.heatMarkersDecorations=[];this.Kb={};var d;null==(d=this.u)||d.reset();ZM(this)}else this.UC();g.bO(this.tooltip)}if(a){d=a.watchNextResponse;
if(d=!a.isLivePlayback&&d)d=this.api.getVideoData(),b=d.SE,d=null!=d.multiMarkersPlayerBarRenderer||null!=b&&0<b.length||0<d.As.length;if(!d||this.Lb||this.Lb)fDa(this),JM(this);else{d=this.api.getVideoData();b=d.multiMarkersPlayerBarRenderer;if(null==b?0:b.markersMap){d=this.api.getVideoData();var e;d.jr=(null==(e=b.visibleOnLoad)?void 0:e.key)||d.jr;e=g.r(b.markersMap);for(b=e.next();!b.done;b=e.next())b=b.value,b.key&&b.value&&(this.Kb[b.key]=b.value);null!=d.jr&&MM(this,d.jr)}else{if(e=this.api.V().N("web_key_moments_markers")&&
0<d.As.length){e=g.A0.getState().entities;b=g.r(d.As);for(var f=b.next();!f.done;f=b.next()){c=f.value;var k=void 0;f=null==(k=e.macroMarkersListEntity?e.macroMarkersListEntity[c]||null:null)?void 0:k.markersList;k=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(k=f)?void 0:k.markerType)&&(this.Ee[c]=f)}c=!1;b=g.lJ("visibility_override","markersVisibilityOverrideEntity");e=e.markersVisibilityOverrideEntity?e.markersVisibilityOverrideEntity[b]||null:null;e=g.r((null==e?void 0:e.videoId)===d.videoId&&(null==
e?0:e.visibilityOverrideMarkersKey)?e.visibilityOverrideMarkersKey:d.visibleOnLoadKeys);for(f=e.next();!f.done;f=e.next())if(b=f.value,f=void 0,k=null==(f=this.Ee[b])?void 0:f.markers){JM(this);c=g.r(k);for(f=c.next();!f.done;f=c.next()){k=f.value;f=new GM;var l=void 0;f.title=(null==(l=k.title)?void 0:l.simpleText)||"";f.timeRangeStartMillis=Number(k.startMillis);f.j=Number(k.durationMillis);var m=l=void 0;f.onActiveCommand=null!=(m=null==(l=k.onActive)?void 0:l.innertubeCommand)?m:void 0;iDa(this,
f)}KM(this,this.Y);c=this.Y;f=this.Pe;k=[];l=null;for(m=0;m<c.length;m++){var n=c[m].timeRangeStartMillis;if(!isNaN(n)&&c[m].onActiveCommand){var p=void 0,q=null!=(p=c[m].j)?p:1E4;l&&l.end>n&&(l.end=n);n=xCa(n,n+q);k.push(n);l=n;f[n.id]=c[m].onActiveCommand}}this.api.je(k);this.Kc=this.Ee[b];c=!0}e=c}if(e)d.uO=this.Y;else if(e=d.SE)hDa(this,e),d.ul=this.j,gDa(this)}a.xL&&0===this.J.length&&(a=a.xL,d=a.key,a.isVisible&&d&&MM(this,d))}}OM(this)};
g.h.rT=function(a){this.Z&&!g.U(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.Z.cancel()};
g.h.RK=function(a){var b=!!this.Lb!==!!a,c=this.Lb;this.Lb=a;"repeatChapter"!==(null==a?void 0:a.type)&&"repeatChapter"!==(null==c?void 0:c.type)||nDa(this,c);this.api.N("web_repeating_chapters")&&"clips"!==(null==a?void 0:a.type)&&a||(a?(this.Ka("clipstarticon",lza()),this.Ka("clipendicon",lza()),this.Ka("clipstarttitle",null),this.Ka("clipendtitle",null)):(this.Ka("clipstarticon",gza()),this.Ka("clipendicon",fza()),this.Ka("clipstarttitle","Watch full video"),this.Ka("clipendtitle","Watch full video")),
b&&(this.updateVideoData(this.api.getVideoData(),!0),g.LM(this)),UM(this));PM(this,this.ma,this.rb)};
g.h.cZ=function(a,b,c){var d=g.Sm(this.element),e=NM(this).j,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;k&&(a=dI(this.B,Number(c.getAttribute("data-position")),0)*e+g.Sm(this.Mc).x);this.Oc.x=a-d.x;this.Oc.y=b-d.y;a=NM(this);c=TM(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:GE(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.Aa,m=dI(this.B,m)*NM(this).j+b,a.position=m),
b=this.B.u;RM(this)&&(b=this.B.u);m=f||g.XH(this.qd?c-this.B.j:c-b);b=a.position+this.Ag;c-=this.api.Fd();if(this.api.Yh()){if(1<this.j.length){d=SM(this,this.Oc.x,!0);if(!this.Lb)for(e=0;e<this.j.length;)g.O(this.j[e].j,"ytp-exp-chapter-hover-effect",e===d),e++;e=this.j[d].startTime;k=d===this.j.length-1?Infinity:this.j[d+1].startTime;for(var n=g.r(this.Y),p=n.next();!p.done;p=n.next())p=p.value,g.O(p.element,"ytp-timed-marker-hover",p.timeRangeStartMillis>=e&&p.timeRangeStartMillis<k);if(1<this.J.length)for(e=
0;e<this.j.length;e++)g.O(this.J[e].element,"ytp-heatmap-hover",e===d)}e=this.tooltip.scale;l=(isNaN(l)?0:l)-45*e;this.api.N("web_key_moments_markers")?this.Kc?(d=uCa(this.Y,1E3*c),d=null!=d?this.Y[d].title:""):(d=GL(this.j,1E3*c),d=this.j[d].title):(d=GL(this.j,1E3*c),d=this.j[d].title);d||(l+=16*e);.6===this.tooltip.scale&&(l=d?110:126);e=GL(this.j,1E3*c);this.ib=oDa(this,c,e)?e:oDa(this,c,e+1)?e+1:-1;g.O(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.ib&&1<this.j.length);e=!1;k=g.r(this.heatMarkersDecorations);
for(n=k.next();!n.done;n=k.next())n=n.value,p=1E3*c,p>=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&&(d=n.label,m=g.XH(n.decorationTimeMillis/1E3),e=!0);this.De!==e&&(this.De=e,this.api.Wa(this.pe,this.De));g.O(this.api.getRootNode(),"ytp-progress-bar-decoration",e);e=320*this.tooltip.scale;k=d.length*(this.C?8.55:5.7);e=k<=e?k:e;k=e<160*this.tooltip.scale;n=3;!k&&e/2>a.position&&(n=1);!k&&e/2>this.D-a.position&&(n=2);this.api.V().J&&(l-=10);this.J.length&&this.J[0].isValid&&(l-=
14*(this.C?2:1),this.La||(this.La=!0,this.api.Wa(this.va,this.La)));var q;if(HM(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.S)){var t;l-=(null==(t=this.u)?0:t.isEnabled)?VM(this):this.S}PDa(this.tooltip,b,c,m,!!f,l,d,n)}else PDa(this.tooltip,b,c,m,!!f,l);g.M(this.api.getRootNode(),"ytp-progress-bar-hover");mDa(this)};
g.h.bZ=function(){g.bO(this.tooltip);g.Hp(this.api.getRootNode(),"ytp-progress-bar-hover");this.La&&(this.La=!1,this.api.Wa(this.va,this.La))};
g.h.aZ=function(a,b){HM(this)&&this.u&&(this.u.Y?AM(this.u,this.api.getCurrentTime()):aDa(this.u),this.u.show(),g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.K&&(this.K.dispose(),this.K=null);this.Me=b;1<this.j.length&&-1!==this.ib?this.api.seekTo(this.j[this.ib].startTime/1E3,!1):this.api.seekTo(TM(this,NM(this)),!1);g.M(this.element,"ytp-drag");(this.Qe=g.gG(this.api.yb()))&&this.api.pauseVideo()};
g.h.dZ=function(){var a=this;if(HM(this)&&this.u){var b=VM(this);this.S>=.5*b?(this.u.enable(),AM(this.u,this.api.getCurrentTime()),uDa(this,b)):ZM(this);g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled)}else if(this.fd=0,g.Hp(this.element,"ytp-pull-ui"),g.Hp(this.element,"ytp-pulling"),this.K&&(this.K.dispose(),this.K=null),0<this.S){var c=(0,g.R)();this.K=new g.xp(function(){var f=a.S,k=NM(a).position,l=1-Math.pow(1-((0,g.R)()-c)/200,3);k+=l*(a.ma*a.D-k);if(0>l||1<l)l=1;pDa(a,
(1-l)*f,k,a.ma);1>l&&a.K.start();a.Ta&&(a.Ta=!1,a.api.Wa(a.kb,a.Ta))});
this.K.start()}if(g.U(this.api.yb(),32)||3===this.api.getPresentingPlayerType()){this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.ib)this.api.seekTo(this.j[this.ib].startTime/1E3);else{b=TM(this,NM(this));this.api.seekTo(b);for(var d=g.r(this.heatMarkersDecorations),e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.ub(this.pe)}g.Hp(this.element,"ytp-drag");this.Qe&&!g.U(this.api.yb(),2)&&this.api.playVideo()}};
g.h.eZ=function(a,b){var c=this,d=!1,e=!1;a=NM(this);1===this.j.length&&!HM(this)&&3600<=bI(this.B)&&(pDa(this,this.Me-b-10,a.position,a.B),e=!0,d=this.S>.1*(this.C?60:40),a=NM(this));g.O(this.element,"ytp-pull-ui",e);d&&g.M(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.fd!==d&&(this.fd=d,this.K&&(this.K.dispose(),this.K=null),d)){var f=(0,g.R)();this.K=new g.xp(function(){var l=c.D*(c.gb-1);c.Aa=g.sh(c.Aa+c.fd*((0,g.R)()-f)*.3,0,l);QM(c);c.api.seekTo(TM(c,
NM(c)),!1);0<c.Aa&&c.Aa<l&&c.K.start()});
this.K.start()}a=TM(this,a);this.api.seekTo(a,!1);var k;HM(this)&&(null==(k=this.u)?0:k.Y)&&(k=VM(this),b=this.Me-b-10,this.u.isEnabled&&(b=k+b,AM(this.u,a)),this.S=g.sh(b,0,k),uDa(this,this.S))};
g.h.pP=function(){this.Lb||(this.Ka("clipstarticon",eza()),this.Ka("clipendicon",eza()),g.M(this.element,"ytp-clip-hover"))};
g.h.oP=function(){this.Lb||(this.Ka("clipstarticon",gza()),this.Ka("clipendicon",fza()),g.Hp(this.element,"ytp-clip-hover"))};
g.h.UC=function(){this.clipStart=0;this.clipEnd=Infinity;UM(this);PM(this,this.ma,this.rb)};
g.h.JR=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.Ua[c]){var d=g.ci("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ua[c]=b;this.bd[c]=d;g.Ep(d,b.style);qDa(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else tDa(this,b)};
g.h.H_=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())tDa(this,b.value)};
g.h.iN=function(){this.u&&(this.api.seekTo(this.u.Aa),this.u.play(),ZM(this))};
g.h.ZF=function(){this.u&&(this.u.play(),ZM(this))};
g.h.qa=function(){vDa(this,!1);g.ZG.prototype.qa.call(this)};g.w($M,g.V);$M.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
$M.prototype.Ha=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.YG(this,a&&400<=this.I.Ya().getPlayerSize().width);this.I.Wa(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.currentIcon!==b){this.currentIcon=b;switch(b){case 1:this.Ka("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Mb:!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.Ka("icon",g.dza())}g.O(this.element,"ytp-remote-button-active",this.isActive())}};
$M.prototype.j=function(){this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.qb.pD(this.element);this.I.ub(this.element)};g.w(aN,g.V);aN.prototype.j=function(a){g.YG(this,this.u&&400<=a.width)};
aN.prototype.B=function(){var a=this.qb;a.sb?a.Gb():a.yd(this.element)};g.w(bN,g.jL);bN.prototype.onClick=function(){this.qb.Gb()};g.w(dN,bN);dN.prototype.onClick=function(){bN.prototype.onClick.call(this);this.I.Oa("onCollapseMiniplayer");this.I.ub(this.element)};
dN.prototype.Ha=function(){var a=!this.I.isFullscreen();cN(this,a);this.I.Wa(this.element,this.j)};g.w(eN,bN);eN.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
eN.prototype.Ha=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);cN(this,a&&!this.I.isFullscreen());this.I.Wa(this.element,this.j);var b=1;a&&this.isActive()&&(b=2);if(this.currentIcon!==b)switch(this.currentIcon=b,b){case 1:this.Ka("icon",{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Mb:!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.Ka("icon",{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Mb:!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"}}]})}};
eN.prototype.onClick=function(){bN.prototype.onClick.call(this);this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.B.pD(this.element);this.I.ub(this.element)};g.w(fN,bN);fN.prototype.onClick=function(){bN.prototype.onClick.call(this);dU(this.I.app);this.I.ub(this.element)};
fN.prototype.Ha=function(){var a=this.I.qy()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType();cN(this,a);this.j&&(a=this.I.isWidescreen(),this.isWidescreen!==a&&(lL(this,a?{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Mb:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Mb:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]}),this.isWidescreen=a,this.u.Ka("title",a?"Default view":"Theater mode")));this.I.Wa(this.element,this.j)};g.w(gN,g.wL);gN.prototype.yd=function(a){0<this.hd.items.length&&g.wL.prototype.yd.call(this,a)};
gN.prototype.Bc=function(a){this.hd.Bc(a);a=this.ao;a.u=0<this.hd.items.length;a.j(a.I.Ya().getPlayerSize())};
gN.prototype.Of=function(a){this.sb&&1>=this.hd.items.length&&this.hide();this.hd.Of(a);a=this.ao;a.u=0<this.hd.items.length;a.j(a.I.Ya().getPlayerSize())};
gN.prototype.pD=function(){};g.w(hN,g.V);hN.prototype.j=function(a){var b=400;this.I.V().J&&(b=200);a=this.u&&a.width>=b;g.YG(this,a);this.I.Wa(this.element,a)};
hN.prototype.B=function(){if(this.qb.sb)this.qb.Gb();else{var a=g.kK(this.I.ob());a&&!a.loaded&&(a.Zf("tracklist",{includeAsr:!0}).length||a.load());this.I.ub(this.element);this.qb.yd(this.element)}};
hN.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.DJ(this.I),e=c&&!!g.CJ(this.I.ob());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(jN,rL);jN.prototype.isLoaded=function(){var a=g.tK(this.I.ob());return void 0!==a&&a.loaded};
jN.prototype.Ha=function(){void 0!==g.tK(this.I.ob())&&3!==this.I.getPresentingPlayerType()?this.j||(this.qb.Bc(this),this.j=!0):this.j&&(this.qb.Of(this),this.j=!1);this.setValue(this.isLoaded())};
jN.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)};
jN.prototype.qa=function(){this.j&&this.qb.Of(this);rL.prototype.qa.call(this)};g.w(g.kN,g.jL);g.h=g.kN.prototype;g.h.open=function(){g.uL(this.qb,this.B)};
g.h.lj=function(a){xDa(this);this.options[a].element.setAttribute("aria-checked","true");this.Od(this.rk(a));this.u=a};
g.h.nF=function(a,b,c){var d=this;b=new g.jL({G:"div",Ea:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ea:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.rk(a,!0));b.Ma("click",function(){d.zg(a)});
return b};
g.h.enable=function(a){this.C?a||(this.C=!1,this.Et(!1)):a&&(this.C=!0,this.Et(!0))};
g.h.Et=function(a){a?this.qb.Bc(this):this.qb.Of(this)};
g.h.zg=function(a){this.ea("select",a)};
g.h.rk=function(a){return a.toString()};
g.h.tT=function(a){g.wu(a)||39!==g.xu(a)||(this.open(),g.vu(a))};
g.h.qa=function(){this.C&&this.qb.Of(this);g.jL.prototype.qa.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(mN,g.kN);mN.prototype.Ha=function(){var a=this.I.getAvailableAudioTracks();1<a.length?(g.lN(this,g.Wl(a,this.D)),this.tracks=g.mc(a,this.D,this),this.j.Od(a.length?" ("+a.length+")":""),this.ea("size-change"),this.lj(this.D(this.I.getAudioTrack())),this.enable(!0)):this.enable(!1)};
mN.prototype.zg=function(a){g.kN.prototype.zg.call(this,a);this.I.setAudioTrack(this.tracks[a]);this.qb.Ai()};
mN.prototype.D=function(a){return a.toString()};g.w(nN,rL);
nN.prototype.u=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&g.FJ(this.I))this.j||(this.qb.Bc(this),this.j=!0,this.B.push(this.T(this.I,"videodatachange",this.u)),this.B.push(this.T(this.I,"videoplayerreset",this.u)),this.B.push(this.T(this.I,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.I,"autonavchange",this.C)),a=this.I.getVideoData(),this.C(a.autonavState),this.I.Wa(this.element,this.j));else if(this.j){this.qb.Of(this);this.j=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.xc(b.value)}};
nN.prototype.C=function(a){this.setValue(1!==a)};
nN.prototype.D=function(a){this.I.aD(a?2:1);this.j&&(this.I.Wa(this.element,this.j),this.I.ub(this.element))};
nN.prototype.qa=function(){this.j&&this.qb.Of(this);rL.prototype.qa.call(this)};g.w(oN,g.OK);oN.prototype.yd=function(){g.OK.prototype.yd.call(this);this.dialog.focus()};g.w(pN,g.jL);pN.prototype.jc=function(a){this.u&&this.I.Wa(this.element,this.j&&a)};
pN.prototype.C=function(){var a,b,c=null==(a=this.I.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.I.getVideoData())?void 0:d.accountLinkingConfig;var e;this.qg(qN(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,k,l;this.B=new oN(this.I,qN(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),qN(null==a?void 0:null==(k=a.menuData)?void 0:k.connectedDialogMessage),qN(null==a?void 0:null==(l=a.menuData)?
void 0:l.confirmButtonText));g.H(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;if(this.u=!!d)this.I.Qh(this.element,this,!0),this.I.al(this.element,d);this.qb.Bc(this);this.j=!0}else!c&&this.j&&(this.qb.Of(this),this.j=!1)};
pN.prototype.onClick=function(){this.u&&this.I.ub(this.element);this.qb.Gb();this.B&&this.B.yd()};g.w(rN,g.V);rN.prototype.onClick=function(){this.qb.Gb()};
rN.prototype.qg=function(a){this.Ka("label",a);this.ao.Ka("title",a)};g.w(sN,rN);sN.prototype.onClick=function(){rN.prototype.onClick.call(this);this.I.Oa("onCollapseMiniplayer");this.I.ub(this.element)};
sN.prototype.Ha=function(){var a=!this.I.isFullscreen();g.YG(this,a);this.I.Wa(this.element,a)};g.w(tN,g.kN);g.h=tN.prototype;g.h.Bw=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.I.jp(),a=this.I.getAvailableQualityLevels(),g.fBa(this.I)&&g.gBa(this.I)&&a.unshift("missing-qualities"),hBa(this.I)&&a.unshift("inline-survey"),g.lN(this,a),a.length)){this.SK();this.enable(!0);return}this.enable(!1)};
g.h.SK=function(){var a=this.I.getPreferredQuality();this.options[a]&&(this.j=this.I.getPlaybackQuality(),this.lj(a),"auto"===a&&this.Od(this.rk(a)))};
g.h.zg=function(a){"missing-qualities"!==a&&(g.kN.prototype.zg.call(this,a),this.I.setPlaybackQuality(a),this.qb.Gb(),this.Bw())};
g.h.open=function(){g.kN.prototype.open.call(this);this.I.ub(this.element)};
g.h.nF=function(a,b,c){var d=this;if("inline-survey"!==a)return g.kN.prototype.nF.call(this,a,b,c);a=[{G:"span",oa:"Looks good?"}];c={};for(var e=g.r([!0,!1]),f=e.next();!f.done;c={aA:c.aA},f=e.next())c.aA=f.value,f=new g.V({G:"span",L:"ytp-menuitem-inline-survey-response",U:[c.aA?g.fH():iza()],W:{tabindex:"0",role:"button"}}),f.Ma("click",function(k){return function(){var l=k.aA,m=g.GJ(d.I.app);m&&(m.xa("iqsr",{tu:l}),m.getVideoData().cK=!0);d.qb.Gb();d.Bw()}}(c)),a.push(f);
return new g.jL({G:"div",L:"ytp-menuitem",W:{"aria-disabled":"true"},U:[{G:"div",Ea:["ytp-menuitem-label"],U:a}]},b)};
g.h.rk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",W:{href:"https://web.archive.org/web/20220414023957/https://support.google.com/youtube/?p=missing_quality",target:this.I.V().K},oa:"Missing options?"};if("inline-survey"===a)return"";var c=[yDa(this,a)],d=this.I.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(yDa(this,this.j,["ytp-menu-label-secondary"])));return{G:"div",U:c}};g.w(uN,rN);uN.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
uN.prototype.Ha=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.YG(this,a);this.I.Wa(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.currentIcon!==b)switch(this.currentIcon=b,b){case 1:this.Ka("icon",cza());break;case 2:this.Ka("icon",{G:"svg",W:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},U:[{G:"path",W:{d:"M22,20l-8-0.04L14,19l7,.04V5H3L2.99,8L2,8l0.02-4H22V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79 c2.51,0,4.55,2,4.55,4.46h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12 C12,14.57,7.52,10.18,2,10.18z M5,7v1.39c4.21,1.09,7.52,4.39,8.61,8.61H19V7H5z",
fill:"white"}}]})}};
uN.prototype.onClick=function(){rN.prototype.onClick.call(this);this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.qb.pD(this.element);this.I.ub(this.element)};g.w(vN,g.ZG);vN.prototype.addButton=function(a){this.element.appendChild(a.element)};
vN.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.w(wN,rN);wN.prototype.onClick=function(){rN.prototype.onClick.call(this);dU(this.I.app);this.I.ub(this.element)};
wN.prototype.Ha=function(){g.YG(this,this.I.qy()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.sb){var a=this.I.isWidescreen();this.isWidescreen!==a&&(this.ao.Ka("icon",a?{G:"svg",W:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},U:[{G:"path",W:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v18h30V12H5z M10.21,26.71l-1.41-1.41L13.09,21l-4.29-4.29l1.41-1.41  L15.91,21L10.21,26.71z M31.21,25.29l-1.41,1.41L24.09,21l5.71-5.71l1.41,1.41L26.91,21L31.21,25.29z",
fill:"white"}}]}:rza()),this.qg(FK(this.I,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.I.Wa(this.element,this.sb)};g.w(xN,g.V);g.h=xN.prototype;g.h.init=function(){this.Hs(this.j);this.Ka("minvalue",this.minimumValue);this.Ka("maxvalue",this.maximumValue)};
g.h.wT=function(a){if(!g.wu(a)){switch(g.xu(a)){case 37:case 40:var b=-this.J;break;case 39:case 38:b=this.J;break;default:return}this.Hs(this.j+b);g.vu(a)}};
g.h.uT=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Hs(b);g.vu(a)};
g.h.vT=function(a){a=(a-g.Sm(this.u).x)/this.K*this.range+this.minimumValue;this.Hs(a)};
g.h.Hs=function(a,b){b=void 0===b?"":b;a=g.sh(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ka("valuenow",a);this.Ka("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.K-this.Z)+"px";this.j=a};
g.h.focus=function(){this.ma.focus()};g.w(zN,xN);zN.prototype.Y=function(){this.I.setPlaybackRate(this.j,!0)};
zN.prototype.Hs=function(a){xN.prototype.Hs.call(this,a,AN(this,a).toString());this.B&&(yN(this),this.va())};
zN.prototype.Aa=function(){var a=this.I.getPlaybackRate();AN(this,this.j)!==a&&(this.Hs(a),yN(this))};g.w(BN,g.ZG);BN.prototype.focus=function(){this.j.focus()};g.w(zDa,mL);g.w(CN,g.kN);g.h=CN.prototype;g.h.rk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.h.Ha=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);CDa(this)};
g.h.Et=function(a){g.kN.prototype.Et.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),CDa(this),ADa(this,this.I.getPlaybackRate())):(this.xc(this.K),this.K=null)};
g.h.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||BDa(this,b);ADa(this,a)};
g.h.zg=function(a){g.kN.prototype.zg.call(this,a);a===this.j?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.qb.Ai()};g.w(EN,g.kN);g.h=EN.prototype;g.h.lj=function(a){g.kN.prototype.lj.call(this,a)};
g.h.getKey=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.settings[a]};
g.h.rk=function(a){return this.getOption(a).text||""};
g.h.zg=function(a){g.kN.prototype.zg.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.w(FN,g.nL);FN.prototype.vg=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.Op[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.lj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
FN.prototype.wi=function(a,b){this.ea("settingChange",a,b)};g.w(GN,g.kN);GN.prototype.getKey=function(a){return a.languageCode};
GN.prototype.rk=function(a){return this.languages[a].languageName||""};
GN.prototype.zg=function(a){this.ea("select",a);this.I.ub(this.element);g.yL(this.qb)};g.w(HN,g.kN);g.h=HN.prototype;g.h.getKey=function(a){return g.Pf(a)?"__off__":a.displayName};
g.h.rk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.h.zg=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.PI(this.I.V(),this.I.getVideoData()),g.iI(a)):(this.I.ub(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.kN.prototype.zg.call(this,a),this.qb.Ai())};
g.h.Ha=function(){var a=this.I.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.I.getVideoData();b=b&&b.Xm;var c,d=!(null==(c=this.I.getVideoData())||!g.DE(c));c={};if(a||b){if(a){var e=this.I.getOption("captions","track");c=this.I.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.mc(c,this.getKey,this);d=g.Wl(c,this.getKey);if(f.length&&!g.Pf(e)){var k=e.translationLanguage;if(k&&k.languageName){var l=k.languageName;
k=f.findIndex(function(m){return m.languageName===l});
Aaa(f,k)}EDa(this.j,f);d.push("__translate__")}f=this.getKey(e)}else this.tracks={},d=[],f="__off__";d.unshift("__off__");this.tracks.__off__={};b&&d.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=e,d.push(f));g.lN(this,d);this.lj(f);e&&e.translationLanguage?this.j.lj(this.j.getKey(e.translationLanguage)):xDa(this.j);a&&this.D.vg(this.I.getSubtitlesUserSettings());this.K.Od(c&&c.length?" ("+c.length+")":"");this.ea("size-change");this.I.Wa(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.h.xT=function(a){var b=this.I.getOption("captions","track");b=g.Uf(b);b.translationLanguage=this.j.languages[a];this.I.setOption("captions","track",b)};
g.h.wi=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}FDa(this,!0);this.J.start();this.D.vg(this.I.getSubtitlesUserSettings())};
g.h.GZ=function(a){a||g.Bp(this.J)};
g.h.qa=function(){g.Bp(this.J);g.kN.prototype.qa.call(this)};g.w(IN,g.wL);g.h=IN.prototype;g.h.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.mH=new pN(this.I,this);g.H(this,this.mH);var a=new tN(this.I,this);g.H(this,a);a=new HN(this.I,this);g.H(this,a);this.I.V().C||(a=new jN(this.I,this),g.H(this,a));this.I.V().Pd&&(a=new CN(this.I,this),g.H(this,a));this.I.V().fd&&!this.I.V().N("web_player_move_autonav_toggle")&&(a=new nN(this.I,this),g.H(this,a));a=new mN(this.I,this);g.H(this,a);iN(this.settingsButton,this.hd.items.length)}};
g.h.Bc=function(a){this.initialize();this.hd.Bc(a);iN(this.settingsButton,this.hd.items.length)};
g.h.Of=function(a){this.sb&&1>=this.hd.items.length&&this.hide();this.hd.Of(a);iN(this.settingsButton,this.hd.items.length)};
g.h.yd=function(a){this.initialize();0<this.hd.items.length&&g.wL.prototype.yd.call(this,a)};
g.h.show=function(){g.wL.prototype.show.call(this);g.M(this.I.getRootNode(),"ytp-settings-shown")};
g.h.hide=function(){g.wL.prototype.hide.call(this);g.Hp(this.I.getRootNode(),"ytp-settings-shown")};
g.h.uf=function(a){this.I.Wa(this.element,a);var b;null==(b=this.mH)||b.jc(a)};
g.h.pD=function(a){if(this.Xg())this.Gb();else{this.initialize();a:{var b=g.r(this.hd.items);for(var c=b.next();!c.done;c=b.next())if(c=c.value,0===c.priority){b=c;break a}b=null}b&&(b.open(),this.yd(a));this.yd(a)}};g.w(JN,g.V);JN.prototype.onClick=function(){dU(this.I.app);this.I.ub(this.element)};
JN.prototype.Ha=function(){g.YG(this,this.I.qy()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.sb){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",Mb:!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",Mb:!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.Ka("icon",b):PCa(this.transition,this.element,b);this.isWidescreen=a;b=FK(this.I,"Default view","t");var c=FK(this.I,"Theater mode","t");this.Ka("title",a?b:c);CL(this.tooltip)}}this.I.Wa(this.element,this.sb)};g.w(g.KN,g.V);g.KN.prototype.onClick=function(){if(null!=g.kK(this.I.ob())&&(this.I.toggleSubtitles(),this.I.ub(this.element),!this.isEnabled())){var a=!1,b=g.rs(g.qs.getInstance(),65);g.VC(this.I.V())&&null!=b&&(a=!b);a&&this.I.V().N("web_player_nitrate_promo_tooltip")&&this.I.ea("showpromotooltip",this.element)}};
g.KN.prototype.j=function(a){var b,c;null==(b=g.uJ(this.I))||null==(c=b.yp())||c.yd(a)};
g.KN.prototype.isEnabled=function(){return!!this.I.getOption("captions","track").displayName};
g.KN.prototype.Ha=function(){var a=null!=g.kK(this.I.ob()),b=300;this.I.V().J&&(b=480);var c=this.I.V();if(c.N("web_player_unavailable_subtitles_button_killswitch")||c.D)this.Ka("title",FK(this.I,"Subtitles/closed captions","c")),c=a;else{if(a){var d;null==(d=this.Ca("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","1");this.Ka("title",FK(this.I,"Subtitles/closed captions","c"))}else{var e;null==(e=this.Ca("ytp-subtitles-button-icon"))||e.setAttribute("fill-opacity","0.3");this.Ka("title",
"Subtitles/closed captions unavailable")}c=!0}CL(this.tooltip);c=c&&this.I.Ya().getPlayerSize().width>=b;g.YG(this,c);this.I.Wa(this.element,c);a&&this.Ka("pressed",this.isEnabled())};g.w(g.MN,g.V);g.h=g.MN.prototype;
g.h.Tb=function(){var a=this.api.Ya().getPlayerSize().width,b=this.K;this.api.V().J&&(b=400);b=a>=b&&(!ON(this)||!g.U(this.api.yb(),64));g.YG(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);NN(this)&&(c-=this.Lb.startTimeMs/1E3);c=g.XH(c);this.B!==c&&(this.Ka("currenttime",c),this.B=c);b=NN(this)?
g.XH((this.Lb.endTimeMs-this.Lb.startTimeMs)/1E3):g.XH(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Ka("duration",b),this.C=b)}a=a.isAtLiveHead;!ON(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Tb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Od(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.cL(this.tooltip,
this.liveBadge.element)));a=this.api.getLoopRange();b=this.Lb!==a;this.Lb=a;b&&LN(this)};
g.h.onLoopRangeChange=function(a){var b=this.Lb!==a;this.Lb=a;b&&(this.Tb(),LN(this))};
g.h.l_=function(){this.api.setLoopRange(null)};
g.h.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.Tb();LN(this)};
g.h.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Ib;this.u=GE(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",ON(this))};
g.h.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.h.qa=function(){this.j&&this.j();g.V.prototype.qa.call(this)};g.w(RN,g.V);g.h=RN.prototype;g.h.Tn=function(){var a=this.j.If();this.C!==a&&(this.C=a,QN(this,this.api.getVolume(),this.api.isMuted()))};
g.h.TK=function(a){g.YG(this,350<=a.width)};
g.h.AT=function(a){if(!g.wu(a)){var b=g.xu(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.sh(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.vu(a))}};
g.h.yT=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.sh(b/10,-10,10));g.vu(a)};
g.h.LZ=function(){PN(this,this.u,!0,this.B,this.j.yj());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.h.zT=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Sm(this.S).x;this.api.setVolume(100*g.sh((a-c/2)/(b-c),0,1))};
g.h.KZ=function(){PN(this,this.u,!1,this.B,this.j.yj());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
g.h.onVolumeChange=function(a){QN(this,a.volume,a.muted)};
g.h.FM=function(){PN(this,this.u,this.isDragging,this.B,this.j.yj())};
g.h.qa=function(){g.V.prototype.qa.call(this);g.Hp(this.K,"ytp-volume-slider-active")};g.w(g.SN,g.V);g.SN.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.YG(this,this.visible);this.api.Wa(this.element,this.visible&&this.ra);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ka("url",a))};
g.SN.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.YH(a),!1,!0,!0);if(g.rC(b)||g.CC(b)){var d={};b.ra&&g.rC(b)&&g.RI(d,b.loaderUrl);c=g.sj(c,g.QI(d,"emb_logo"))}g.CK(c,this.api,a);this.api.ub(this.element)};
g.SN.prototype.xb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Mb:!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.CC(this.api.V())){var b=this.Ca("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.Ka("logoSvg",a)};
g.SN.prototype.jc=function(a){g.V.prototype.jc.call(this,a);this.api.Wa(this.element,this.visible&&a)};g.w(TN,g.iA);g.h=TN.prototype;g.h.Vd=function(){this.Mc.Tb();this.Ih.Tb()};
g.h.Rk=function(){this.nE();if(this.Xd.u){this.Vd();var a;null==(a=this.S)||a.show()}else{g.bO(this.Mc.tooltip);var b;null==(b=this.S)||b.hide()}};
g.h.Zr=function(){this.Vd();this.ye.start()};
g.h.nE=function(){var a=!this.I.V().isMobile&&300>g.wDa(this.Mc)&&this.I.yb().Nc()&&!!window.requestAnimationFrame,b=!a;this.Xd.u||(a=b=!1);b?this.K||(this.K=this.T(this.I,"progresssync",this.Vd)):this.K&&(this.xc(this.K),this.K=null);a?this.ye.isActive()||this.ye.start():this.ye.stop()};
g.h.xb=function(){var a=this.B.If(),b=this.I.Ya().getPlayerSize(),c=UN(this),d=Math.max(b.width-2*c,100);if(this.Ta!==b.width||this.La!==a){this.Ta=b.width;this.La=a;var e=KDa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.YM(this.Mc,c,e,a);this.B.pc().oE=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-VN(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.mA=e;c.Vv();this.nE();!this.I.V().N("html5_player_bottom_linear_gradient")&&this.I.V().N("html5_player_dynamic_bottom_gradient")&&
g.eM(this.Ua,b.height)};
g.h.onVideoDataChange=function(){var a=this.I.getVideoData();this.va.style.background=a.D?a.gb:"";g.YG(this.Z,a.DE)};g.w(WN,ZL);g.h=WN.prototype;g.h.KH=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())};
g.h.LH=function(){this.B=!0;this.S.hide()};
g.h.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,XN(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.K=this.enabled=!0;this.text=(b=a.title)?g.Qw(b):"View Chapters";var c;if(b=null==(c=a.trigger)?void 0:c.suggestedActionTimeRangeTrigger){c=[];var d=b.timeRangeStartMillis;b=b.timeRangeEndMillis;null!=d&&null!=b&&c.push(new g.Jw(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.I.je(c)}this.onClickCommand=a.tapCommand;HCa(this);YL(this);
this.hj()}};
g.h.Bz=function(){return!this.B&&this.enabled&&(this.u||this.j)};
g.h.uf=function(a){this.B||((this.u=a)?XL(this):(XN(this),this.Z.start()),this.hj())};
g.h.qa=function(){XN(this);ZL.prototype.qa.call(this)};var F0={},YN=(F0.CHANNEL_NAME="ytp-title-channel-name",F0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",F0.LINK="ytp-title-link",F0.SESSIONLINK="yt-uix-sessionlink",F0.SUBTEXT="ytp-title-subtext",F0.TEXT="ytp-title-text",F0.TITLE="ytp-title",F0);g.w(ZN,g.V);ZN.prototype.onClick=function(a){this.api.ub(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.YH(a),!1,!0);if(g.rC(b)){var d={};b.ra&&g.RI(d,b.loaderUrl);c=g.sj(c,g.QI(d,"emb_title"))}g.CK(c,this.api,a)};
ZN.prototype.Ha=function(){var a=this.api.getVideoData(),b=this.api.V();this.Ka("title",a.title);LDa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Oc&&c.profilePicture?(this.Ka("channelLink",c.Oc),this.Ka("channelName",c.author),this.Ka("channelTitleFocusable","0")):LDa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Kb;g.O(this.link,YN.FULLERSCREEN_LINK,c);b.S||!a.videoId||c||a.D&&b.pfpChazalUi||b.C?this.j&&(this.Ka("url",
null),this.xc(this.j),this.j=null):(this.Ka("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&this.Ka("channelName",g.rC(b)?a.expandedTitle:a.author)};g.w(g.$N,g.V);g.h=g.$N.prototype;g.h.yP=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,NDa(this,a))};
g.h.OW=function(){yva(this.j,this.B,160*this.scale)};
g.h.xl=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);QDa(this);break;case 3:QDa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.yP,this),this.j=null),this.api.removeEventListener("videoready",this.Z),this.ma.stop()}this.type=null;this.K&&this.D.hide()};
g.h.wk=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.ii(arguments[a],this.u)&&this.xl()};
g.h.qa=function(){null!=this.type&&this.xl();this.j&&this.j.dispose();g.V.prototype.qa.call(this)};g.w(g.cO,g.V);g.h=g.cO.prototype;g.h.nA=function(){var a=this.I.getPlayerSize(),b=this.I.V(),c=this.I.getVideoData(),d=g.rC(b)&&g.BJ(this.I)&&g.U(this.I.yb(),128);this.visible=b.wl&&240<=a.width&&!c.isAd()&&c.Ag&&!d&&!(c.D&&b.pfpChazalUi);g.YG(this,this.visible);this.icon&&UDa(this,this.icon);this.I.Wa(this.element,this.visible&&this.ra)};
g.h.wh=function(){return this.I.getVideoData().videoId};
g.h.onClick=function(){var a=this;this.I.ub(this.element);var b=this.I.V(),c=this.wh();b.authUser?RDa(this):this.I.hD()?this.I.requestStorageAccess(function(){g.Ds("embedsItpWatchLaterResult",{accepted:!0});$u();SDa(a,c)},function(){g.Ds("embedsItpWatchLaterResult",{accepted:!1});
TDa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):SDa(this,c)};
g.h.BT=function(){this.isRequestPending=this.j=!1;this.Ha(2)};
g.h.Ha=function(a,b){var c=this.I.V();UDa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.KF("Added as $USER_NAME",a):g.KF("Watch later as $USER_NAME",a),image:aD(c)})):this.update({title:"Watch later",image:null});CL(this.tooltip)};
g.h.jc=function(a){g.V.prototype.jc.call(this,a);this.I.Wa(this.element,this.visible&&a)};g.w(dO,g.SK);g.h=dO.prototype;g.h.pc=function(){return this.tooltip};
g.h.EN=function(){return this.wg};
g.h.Zo=function(a,b){b?this.Ql=a:this.Ql=null;this.Yj()};
g.h.uu=function(a,b){if(b)this.Qp.push(a);else for(b=this.Qp.length;0<=b;b--)if(this.Qp[b]===a){this.Qp.splice(b,1);break}xK(this.Xd,64,0<this.Qp.length)};
g.h.hq=function(){this.api.Oh()&&this.api.Ml();return!!this.Ql||VDa(this)||g.SK.prototype.hq.call(this)};
g.h.Yj=function(){var a=!this.hq(),b=a&&this.api.Oh()&&!g.U(this.api.yb(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi)&&!this.api.V().C,c=this.Gr&&g.BJ(this.api)&&g.U(this.api.yb(),128);a||c?(this.zJ.show(),this.AJ.show()):(this.zJ.hide(),this.AJ.hide(),this.tooltip.wk(this.dj.element));b?this.kh.yd():this.kh.Gb();this.wg&&JDa(this.wg,!a);g.SK.prototype.Yj.call(this)};
g.h.ws=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Vm(a),k=d||this.wg&&g.ii(this.wg.u.element,b),l=d=null;null!=c&&k||(d=g.Vm(b),l=g.Tm(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;k?(b=this.wg,d=UN(b),l=KDa(b),k=this.api.Ya().getPlayerSize().height,c=g.sh(c,d,d+l-f.width),f=k-VN(b)-f.height):g.ii(this.dj.element,b)?(b=this.api.Ya().getPlayerSize().width,c=g.sh(c,12,b-f.width-12),f=this.If()?this.vF:this.uF,"gvn"===this.api.V().playerStyle&&(f+=
20),this.Gr&&(f-=this.If()?26:18)):(b=this.api.Ya().getPlayerSize(),c=g.sh(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.h.Rk=function(a){a&&(this.tooltip.wk(this.dj.element),this.wg&&this.tooltip.wk(this.wg.u.element));this.NB&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.SK.prototype.Rk.call(this,a)};
g.h.JH=function(){g.SK.prototype.JH.call(this);this.NB&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.NB&&(this.contextMenu.hide(),this.eh&&this.eh.hide()))};
g.h.Ek=function(a,b){var c=this.api.Ya().getPlayerSize();c=new g.Hm(0,0,c.width,c.height);if(a||this.Xd.u&&!this.hq()){if(this.api.V().fk||b)a=this.If()?this.vF:this.uF,c.top+=a,c.height-=a;this.wg&&(c.height-=VN(this.wg))}return c};
g.h.Tn=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.hB.element,b),b.parentElement.insertBefore(this.gB.element,b.nextSibling))):g.hr(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.hB.detach(),this.gB.detach());this.xb();this.Ao()};
g.h.If=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.J||!1};
g.h.showControls=function(a){this.SA=!a;this.Yj()};
g.h.xb=function(){var a=this.If();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.Yj();if(this.gg()&&this.eh)this.Fi&&NL(this.eh,this.Fi),this.shareButton&&NL(this.eh,this.shareButton),this.lh&&NL(this.eh,this.lh);else{if(this.eh){a=this.eh;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Fi&&!g.ii(this.Jh.element,this.Fi.element)&&this.Fi.Ba(this.Jh.element);this.shareButton&&!g.ii(this.Jh.element,
this.shareButton.element)&&this.shareButton.Ba(this.Jh.element);this.lh&&!g.ii(this.Jh.element,this.lh.element)&&this.lh.Ba(this.Jh.element)}this.Ao();g.SK.prototype.xb.call(this)};
g.h.kG=function(){if(VDa(this)&&!g.BJ(this.api))return!1;var a=this.api.getVideoData();return!g.rC(this.api.V())||2===this.api.getPresentingPlayerType()||!this.oh||((a=this.oh||a.oh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.SK.prototype.kG.call(this):!1};
g.h.Ao=function(){g.SK.prototype.Ao.call(this);this.api.Wa(this.title.element,!!this.mm);this.uv&&this.uv.jc(!!this.mm);this.channelAvatar.jc(!!this.mm);this.overflowButton&&this.overflowButton.jc(this.gg()&&!!this.mm);this.shareButton&&this.shareButton.jc(!this.gg()&&!!this.mm);this.Fi&&this.Fi.jc(!this.gg()&&!!this.mm);this.lh&&this.lh.jc(!this.gg()&&!!this.mm);if(!this.mm){this.tooltip.wk(this.dj.element);for(var a=0;a<this.Mz.length;a++){var b=this.Mz[a];b.Xg()&&b.Gb()}}};
g.h.Ub=function(a){this.wg&&JDa(this.wg,this.hq());this.Yj();g.SK.prototype.Ub.call(this,a)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){return this.Mn?this.Mn.handleGlobalKeyDown(a,b,c,d,e,f,k):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){return this.Mn?this.Mn.handleGlobalKeyUp(a,b,c,d,e,f,k):!1};
g.h.Tl=function(){return this.contextMenu.sb?(this.contextMenu.Gb(),!0):this.Qp.length?(this.Qp[this.Qp.length-1].Gb(),!0):this.Ql?(this.Ql.Gb(),!0):g.SK.prototype.Tl.call(this)};
g.h.wz=function(a,b){this.wH=b;this.uu(a,b);this.NR()};
g.h.NR=function(){var a=this.wH||this.contextMenu.Xg();this.kF!==a&&(this.kF=a,this.api.Oa("onAutonavPauseRequest",this.kF))};
g.h.HV=function(){eO(this,this.api.getRootNode(),!0).focus()};
g.h.IV=function(){eO(this,this.api.getRootNode(),!1).focus()};
g.h.yp=function(){return this.wg&&this.wg.settingsMenu};
g.h.Sx=function(){return this.wg&&this.wg.j};
g.h.Fm=function(){this.Xd.Fm()};
g.h.GB=function(){this.Cc.hide()};
g.h.Js=function(a){this.Cc.Js(!g.gG(a))};
g.h.zv=function(a,b,c,d){this.vx.zv(a,b,c,d)};
g.h.CQ=function(a,b){this.vx.XC(a,b)};
g.h.bY=function(){WDa(this,!0)};
g.h.DY=function(a){WDa(this,!1,a)};g.w(g.fO,g.cK);g.fO.prototype.aj=function(){return!1};
g.fO.prototype.create=function(){var a=this.player.V();g.AC(a)&&a.isMobile?this.chrome=new g.SK(this.player):this.chrome=new dO(this.player);g.H(this,this.chrome);this.chrome.init();this.player.mf("ux")};
g.fO.prototype.Gx=function(){return this.chrome};g.w(hO,g.G);hO.prototype.u=function(a,b){if(b){b=b instanceof g.$x?b:iO(this,b);var c;(null==(c=this.j.get(a))?void 0:cy(c.location))!==cy(b)&&this.j.set(a,new mO(b,a))}else this.j.delete(a)};
hO.prototype.load=function(){var a=this,b,c,d,e,f,k,l,m,n,p;return g.B(function(q){switch(q.j){case 1:b=a.j.get(0);g.ta(q,2);var t;if(t=b&&!a.B)t=cy(b.location),t=a.B===kO(t);if(t){q.Va(4);break}return g.A(q,lO(a,a.B?2:0),5);case 5:if(c=q.u)a.u(0,c),ey(c)&&a.u(1,fy(c));case 4:g.ua(q,3);break;case 2:d=g.va(q);g.Jv(d);if(!a.B){q.Va(3);break}a.B=!1;return g.A(q,a.load(),7);case 7:return q.return();case 3:if(!a.X.experiments.jb("html5_onesie_probe_ec_hosts")){q.Va(0);break}g.ta(q,9);e=a;f=e.u;k=3;return g.A(q,
lO(a,1),11);case 11:return f.call(e,k,q.u),l=a,m=l.u,n=4,g.A(q,lO(a,2),12);case 12:m.call(l,n,q.u);g.ua(q,0);break;case 9:p=g.va(q),g.Jv(p),g.sa(q)}})};
hO.prototype.K=function(){g.zp(this.S);var a=g.sB(this.X.experiments,"html5_onesie_prewarm_max_lact_ms");if(!(Du()>=a)){var b=this.j.values();a={};b=g.r(b);for(var c=b.next();!c.done;a={uq:a.uq},c=b.next()){a.uq=c.value;c="https://"+cy(a.uq.location)+"/initplayback?c="+GC(this.X)+"&owc=1";var d=function(e){return function(f){e.uq.end();f.ht=e.uq.ZN;e.uq.NW=f}}(a);
a.uq.start();gO(c,"pw",d)}}};
mO.prototype.start=function(){this.startTimestamp=(0,g.R)()};
mO.prototype.end=function(){this.endTimestamp=(0,g.R)()};var oO=[],SLa=!1;g.UR=xg(function(){var a="";try{var b=g.ci("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.pO,XF);g.h=g.pO.prototype;g.h.isView=function(){return!0};
g.h.GI=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Vg(),c=uA(b,a);return!(this.start<c)}catch(d){}return!1};
g.h.yr=function(){return wA(this.mediaElement.yr(),this.start,this.end)};
g.h.Vg=function(){return wA(this.mediaElement.Vg(),this.start,this.end)};
g.h.Tx=function(){return wA(this.mediaElement.Tx(),this.start,this.end)};
g.h.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.h.kA=function(a){this.mediaElement.kA(a+this.start)};
g.h.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.h.play=function(){if(this.GI()){this.mediaElement.getCurrentTime();try{this.mediaElement.kA(this.start)}catch(a){}}return this.mediaElement.play()};
g.h.Pb=function(){var a=XF.prototype.Pb.call(this);a.view=this.start+"-"+this.end;return a};
g.h.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.h.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.h.hA=function(){return this.mediaElement.hA()};
g.h.St=function(a){this.mediaElement.St(a)};
g.h.xr=function(){return this.mediaElement.xr()};
g.h.playVideo=function(){return this.mediaElement.playVideo()};
g.h.NF=function(){this.mediaElement.NF()};
g.h.LF=function(){this.mediaElement.LF()};
g.h.Cq=function(){return this.mediaElement.Cq()};
g.h.nf=function(){return this.mediaElement.nf()};
g.h.dg=function(){return this.mediaElement.dg()};
g.h.lA=function(a){this.mediaElement.lA(a)};
g.h.WC=function(){this.mediaElement.WC()};
g.h.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.h.wr=function(){return this.mediaElement.wr()};
g.h.setLoop=function(a){this.mediaElement.setLoop(a)};
g.h.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.h.Mm=function(){return this.mediaElement.Mm()};
g.h.yw=function(){return this.mediaElement.yw()};
g.h.Gg=function(){return this.mediaElement.Gg()};
g.h.tB=function(){return this.mediaElement.tB()};
g.h.Gv=function(a){this.mediaElement.Gv(a)};
g.h.iA=function(){return this.mediaElement.iA()};
g.h.load=function(){this.mediaElement.load()};
g.h.pause=function(){this.mediaElement.pause()};
g.h.Hi=function(){return this.mediaElement.Hi()};
g.h.uB=function(){return this.mediaElement.uB()};
g.h.qk=function(){return this.mediaElement.qk()};
g.h.jf=function(){return this.mediaElement.jf()};
g.h.jA=function(){return this.mediaElement.jA()};
g.h.eg=function(){return this.mediaElement.eg()};
g.h.iq=function(){return this.mediaElement.iq()};
g.h.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.h.wp=function(){return this.mediaElement.wp()};
g.h.getSize=function(){return this.mediaElement.getSize()};
g.h.setSize=function(a){this.mediaElement.setSize(a)};
g.h.getVolume=function(){return this.mediaElement.getVolume()};
g.h.setVolume=function(a){this.mediaElement.setVolume(a)};
g.h.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.h.Yw=ba(22);g.h.Gz=ba(24);g.h.Hz=ba(26);g.h.au=ba(28);g.h.zx=function(){return this.mediaElement.zx()};
g.h.Mo=function(a){this.mediaElement.Mo(a)};
g.h.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.h.YG=function(){return this.mediaElement.YG()};
g.h.stopVideo=function(){this.mediaElement.stopVideo()};
g.h.PF=function(a){this.mediaElement.PF(a)};
g.h.audioTracks=function(){return this.mediaElement.audioTracks()};qO.prototype.then=function(a,b){return this.promise.then(a,b)};
qO.prototype.resolve=function(a){this.u(a)};
qO.prototype.reject=function(a){this.j(a)};g.w(rO,g.G);g.h=rO.prototype;g.h.isFinished=function(){return 6===this.status.status};
g.h.getStatus=function(){return this.status};
g.h.Oq=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.r(Object.values(c.j)),k=f.next();!k.done;k=f.next())k=k.value,k.info.audio&&k.index.isLoaded()&&(d=!0),k.info.video&&k.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Ld()){f=gEa(this.policy,this.j,this.u,this.fl);k=hEa(this);c=k.mV;e=k.dP;d=k.TM;k=k.cP;if(!this.J){var l=1E3*this.u.Li(),m=this.j.Li();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.kz(l,
m,a);this.J=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Ff(b,f)):2===this.status.status?oEa(this):(a=this.j.xr())&&(a.j||a.u)&&(!CA(a)&&g.$r()?this.Ff("mse_closed"):b.j&&Wx(b.j)&&a.u&&!a.u.qB()?this.Ff("encr_upgrade"):(b=this.j.Ld(),b.Gg()?this.Ff("elem_ended"):0>e?this.Ff("next_player_future"):(this.D=d,this.B=Gsa(a,c,d,!0),this.C=Gsa(a,e,k,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.xa("gaplessPrep",{cpn:a}),uO(this.j,this.B),this.j.setMediaElement(iEa(b,c,d,!this.j.getVideoData().isAd())),
tO(this,2),oEa(this))))}else this.Ff("no-elem")};
g.h.Ft=function(a){var b=a===nEa(this).WQ,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;tA(a.ag(),d-.01)&&(tO(this,4),c.isActive=!1,c.Tz=c.Tz||c.isActive,this.u.xa("sbh",{}),b.isActive=!0,b.Tz=b.Tz||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&tO(this,5)}};
g.h.DP=function(){4<=this.status.status&&6>this.status.status&&this.Ff("player-reload-after-handoff")};
g.h.Ff=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.zd(new fD("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.fl,msg:a})));a=this.j;a.videoData.Ia=!1;c&&ER(a);a.Sa&&nHa(a.Sa)}this.Em.reject(void 0);this.dispose()}};
g.h.qa=function(){mEa(this);this.j.unsubscribe("newelementrequired",this.DP,this);if(this.B){var a=this.B.u;this.B.j.Wd.unsubscribe("updateend",this.Ft,this);a.Wd.unsubscribe("updateend",this.Ft,this)}g.G.prototype.qa.call(this)};
g.h.Yc=function(a){g.yF(a,128)&&this.Ff("player-error-event")};g.w(wO,g.G);wO.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");xO(this)};
wO.prototype.Su=function(){return!this.j};
wO.prototype.qa=function(){xO(this);g.G.prototype.qa.call(this)};g.w(CO,g.iv);g.h=CO.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:sEa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.h.Rj=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.uf())};
g.h.setMinimized=function(a){this.B!==a&&(this.B=a,this.uf())};
g.h.setInline=function(a){this.inline!==a&&(this.inline=a,this.uf())};
g.h.Hv=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.uf())};
g.h.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.uf())};
g.h.eg=function(){return this.j};
g.h.isFullscreen=function(){return 0!==this.fullscreen};
g.h.Bu=function(){return this.fullscreen};
g.h.Af=function(){return this.B};
g.h.isInline=function(){return this.inline};
g.h.isBackground=function(){return sEa()};
g.h.Qu=function(){return this.pictureInPicture};
g.h.Nu=function(){return this.u};
g.h.uf=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.eg(),this.isFullscreen(),this.Af(),this.isInline(),this.Qu(),this.Nu());a!==this.D&&this.ea("visibilitystatechange");this.D=a};
g.h.qa=function(){vEa(this.C);g.iv.prototype.qa.call(this)};g.w(g.GO,g.G);g.h=g.GO.prototype;
g.h.onCueRangeEnter=function(a){this.Xa.push(a);var b=a.getId(),c=""===b;this.gb.add(a.u);c||this.ya.xa("sdai",{enterAdCueRange:1});if(this.ib){this.ib=!1;if(!c){var d=this.u.get(b);d&&(this.X.N("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.ya.getCurrentTime(),NO(this,{Qd:a,isAd:!0,Hn:!0,Wf:c,adCpn:b},{isAd:!1,Hn:!1,Wf:c})),this.api.ea("serverstitchedvideochange",d.Ac,d.Lo),this.ya.xa("sdai",KO(this,"midab",d)),this.tj=1)}this.C=!1}else if(this.j){if(this.j.Hn)this.ya.xa("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.Wf,cpn:b,currentTime:this.ya.getCurrentTime()}),this.X.N("web_player_same_transition_fallback_killswitch")||(d=this.ya.getCurrentTime(),a={Qd:a,isAd:!c,Hn:!0,Wf:d,adCpn:b},b={Qd:this.j.Qd,isAd:this.j.isAd,Hn:!1,Wf:d,adCpn:this.j.adCpn},this.j.Qd&&this.gb.delete(this.j.Qd.u),NO(this,a,b));else{if(this.j.Qd===a){this.ya.xa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Wf,cpn:b,currentTime:this.ya.getCurrentTime()});this.j=void 0;
return}if(this.j.adCpn===b){b&&this.ya.xa("sdai",{dchtsc:b});this.j=void 0;return}a={Qd:a,isAd:!c,Hn:!0,Wf:this.ya.getCurrentTime(),adCpn:b};NO(this,a,this.j)}this.j=void 0;this.C=!1}else this.j={Qd:a,isAd:!c,Hn:!0,Wf:this.ya.getCurrentTime(),adCpn:b}};
g.h.onCueRangeExit=function(a){if(this.X.N("web_player_same_transition_fallback_killswitch")||this.gb.has(a.u)){this.gb.delete(a.u);this.Xa=this.Xa.filter(function(d){return d!==a});
this.ib&&(this.C=this.ib=!1,this.ya.xa("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Hn){if(this.j.Qd===a){this.ya.xa("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.Wf,cpn:b,currentTime:this.ya.getCurrentTime()});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ya.xa("sdai",{dchtsc:b});this.j=void 0;return}c={Qd:a,isAd:!c,Hn:!1,Wf:this.ya.getCurrentTime(),adCpn:b};NO(this,this.j,c)}else this.ya.xa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,
transitionTime:this.j.Wf,upcomingCpn:b,contentCpn:this.ya.getVideoData().clientPlaybackNonce,currentTime:this.ya.getCurrentTime()});this.j=void 0;this.C=!1}else this.j={Qd:a,isAd:!c,Hn:!1,Wf:this.ya.getCurrentTime(),adCpn:b};this.X.N("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.ya.getCurrentTime()<this.ya.Ck()&&DO(this,Infinity))}else this.ya.xa("sdai",{ignore_single_exit:1})};
g.h.isAdPlaying=function(a){return this.Xo?!1:FO(this)?!!this.S:!!PO(this,1E3*a)};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.C=!0;if(void 0===b?0:b)DO(this,a);else{b=this.api.Pc();var d=b===this.Ua?this.rb:null;QO(this,!1);this.Kb=a;null!=c&&this.Ib.start(c);b&&(this.rb=d||b.getPlayerState(),vT(b),this.Ua=b)}};
g.h.qa=function(){QO(this,!1);SO(this);EEa(this);g.G.prototype.qa.call(this)};
g.h.aJ=function(a){this.Gc=a;this.ya.xa("sdai",{swebm:a})};
g.h.Hk=function(a,b,c){if(c&&b){var d=this.Ia.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.$x(c);this.ra&&this.ya.xa("sdai",{hdlredir:1,itag:b,seg:a,hostport:cy(c)});d.locations.set(e,c)}}};
g.h.Ak=function(a,b,c,d){if(this.Xo)return null;var e=Number(c.split(";")[0]),f=3===d;if(g.GEa(this,b))return this.ra&&this.ya.xa("sdai",{gdu:"undec",seg:b,itag:e}),null;a=TO(this,a,b);this.ra&&this.ya.xa("sdai",{gdu:1,seg:b,itag:e,pb:""+!!a});if(!a)return VO(this,b,f),null;a.locations||(a.locations=new Map);if(!a.locations.has(e)){var k,l,m=null==(k=a.videoData.getPlayerResponse())?void 0:null==(l=k.streamingData)?void 0:l.adaptiveFormats;if(!m)return this.ya.xa("sdai",{gdu:"noadpfmts",seg:b,itag:e}),
VO(this,b,f),null;k=m.find(function(p){return p.itag===e});
if(!k||!k.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:e,fullitag:c,itags:""};if(!this.X.N("html5_ssdai_log_missing_itags_killswitch")){a=[];d=g.r(m);for(var n=d.next();!n.done;n=d.next())a.push(n.value.itag);c.itags=a.join(",")}this.ya.xa("sdai",c);VO(this,b,f);return null}m=!this.X.N("html5_ssdai_decipher_killswitch");a.locations.set(e,new g.$x(k.url,m))}m=a.locations.get(e);if(!m)return this.ya.xa("sdai",{gdu:"nourl",seg:b,itag:e}),VO(this,b,f),null;k=new gz(m);this.Gc&&k.set("dvc","webm");
this.X.experiments.jb("ssdai_return_original_content")&&k.set("dairoc","1");(m=this.pB(b-1,d))&&k.set("daistate",m);a.hJ&&b>=a.hJ&&k.set("skipsq",""+a.hJ);(l=this.ya.getVideoData().clientPlaybackNonce)&&k.set("cpn",l);m=[];a.Jl&&(m=HEa(this,a.Jl),0<m.length&&k.set("acpns",m.join(",")));f||this.Ia.set(b,a);this.X.N("web_player_ssdai_acpns_aids_logging_killswitch")||(f=k.get("aids"),((null==f?void 0:null==(n=f.split(","))?void 0:n.length)||0)!==m.length&&(a.Jl?this.ya.xa("sdai",{acpns_aids_nm:1,ids:JEa(this,
a.Jl).join("_"),aids:null==f?void 0:f.replace(/,/g,"_"),cpn:l,trackType:d}):this.ya.xa("sdai",{acpns_aids_nm:"noAdBreakId",cpn:l})));f=g.hz(k);2048<(null==f?void 0:f.length)&&this.ya.xa("sdai",{urltoolong:1,sq:b,itag:e,len:f.length});this.ra&&(f&&(n=a.cpn,d=a.Jl,LEa(this,n,d),d&&!this.qd.has(d)&&(n=IEa(this,n,d),k=KEa(this,d),this.ya.xa("sdai",{iofa:n}),this.ya.xa("sdai",{noawnzd:k-n}),this.ya.xa("sdai",{acpns:m.join(".")}),this.qd.add(d))),this.ya.xa("sdai",{gdu:"v",seg:b,itag:c,ast:a.yc.toFixed(3),
alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));return f};
g.h.gJ=function(a,b){if(a=TO(this,a,b))if(a=a.Jl)if(this.ya.xa("sdai",{skip_adbreakid:a}),a=this.K.get(a)){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c.value.hJ=b}};
g.h.pB=function(a,b){return 1===b&&this.Aa.has(a)?this.Aa.get(a)||"":2===b&&this.Ta.has(a)?this.Ta.get(a)||"":3===b&&this.Ga.has(a)?this.Ga.get(a)||"":""};
g.h.Oz=ba(31);
g.h.gI=function(a,b,c,d,e,f,k,l){l&&(k?this.Ta.set(a,l):this.Aa.set(a,l));if(k){if(d.length&&e.length)for(a=b+this.Cn(),k=g.r(d.entries()),l=k.next();!l.done;l=k.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.u.get(n))l=m-f[l],n.Lo=null!=n.Lo?Math.min(n.Lo,l):l}if(!FO(this))if(d.length&&e.length)for(b=1E3*(b+this.Cn()),d=g.r(d.entries()),c=d.next();!c.done;c=d.next())if(c=g.r(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.ya.getVideoData().clientPlaybackNonce)UO(this,b,
b+f,!1),b+=f;else if(this.bd.has(c)||(this.ya.xa("sdai",{adCpnFromEmsg:1}),this.bd.add(c)),(a=this.D.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(k=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=BEa(b,b+f,c),this.D.set(c,a),this.ya.xa("sdai",{newAdCR:1}),k=!0),b=a.end,UO(this,a.start,a.end,!0),k)for(this.ya.addCueRange(a),c=this.ya.Ax("serverstitchedcuerange",36E5),c=g.r(c),f=c.next();!f.done;f=c.next())this.D.delete(f.value.getId())}else 5!==c&&4!==c||UO(this,1E3*(b+this.Cn()),1E3*(b+this.Cn())+
5E3,!1)}};
g.h.Ix=ba(33);g.h.Cn=function(){return this.ya.Cn()};
g.h.yy=function(a){this.ya.xa("timelineerror",{e:a})};
g.h.Yx=function(a){this.Z&&this.Y&&this.va.push(this.Y);!this.X.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.Y&&this.kc.push(this.Y);this.Y=null;this.ya.Yx(a)};
g.h.yG=function(a){if(this.Xo||a.identifier&&this.Id.has(a.identifier))this.ra&&this.ya.xa("sdai",{startnoad:a.identifier}),JO(this);else if(Zm(this.va,function(c){return c.identifier===a.identifier}))this.ya.xa("sdai",{timedoutcp:1}),this.ma.start(0);
else if(!this.X.N("web_player_skip_fetched_cuepoint_killswitch")&&Zm(this.kc,function(c){return c.identifier===a.identifier}))this.ya.xa("sdai",{fetchedcp:1}),JO(this);
else if(this.ma.isActive()){var b;this.ya.xa("sdai",{racingcp:(null==(b=this.Y)?void 0:b.identifier)+"_"+a.identifier})}else this.Kc=(new Date).getTime()/1E3,this.ra&&this.ya.xa("sdai",{adf:1}),this.Z=!1,this.ma.start(),this.Y=a,this.Aa.clear(),this.Ta.clear(),this.Ga.clear(),this.X.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.Ia.clear(),this.kb=[]};
g.h.Ar=function(a,b){a=TO(this,a,b);if(!this.X.experiments.jb("disable_ssdai_on_errors")||!a||this.Xo)return!1;this.Xo=!0;0<this.tj&&(this.tj=0,this.S=null,this.api.ea("serverstitchedvideochange"));a=this.ya;b={reason:"disablessdai",sq:b};"disablessdai"===b.reason&&(a.videoData.iK=!0);a.zd(new fD("qoe.restart",b));ER(a,!0);return!0};
g.h.Br=function(){this.ya.xa("sdai",{rstdaist:1});this.Aa.clear();this.Ta.clear();this.Ga.clear()};
g.h.Yp=function(a){this.Id.add(a);var b;(null==(b=this.Y)?void 0:b.identifier)===a&&JO(this)};
g.h.fI=function(a,b,c,d){if(FO(this)){var e=this.ya.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?LO(this):this.u.get(a),k=b===e?LO(this):this.u.get(b);f&&k?(c=this.C?c:d,MO(this.ya,f,k,c,d,this.C),b===e?(this.La=1E3*c,this.tj=0,this.S=null,this.ya.xa("sdai",{adchg:this.tj}),this.api.ea("serverstitchedvideochange")):(this.La=0,this.tj++,this.S=k,this.ya.xa("sdai",{adchg:this.tj,apid:this.S.Ac,acpn:this.S.cpn}),this.api.ea("serverstitchedvideochange",k.Ac,k.Lo))):this.ya.xa("sdai",
{unknowntrans:"1",old:a,"new":b});this.C=!1}}};
g.h.Up=function(a){var b=pK(this.api.ob());return b?b.Up(a):!1};
var zEa=0;g.w(WO,g.G);g.h=WO.prototype;g.h.onCueRangeEnter=function(a){if(this.j===this.api.Pc()){var b=this.J.get(a);b?SEa(this,b.target,b.fl,a):this.zd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.bp.Qd===a})){var c=b.bp,d=c.target;
c=c.fl;d?SEa(this,d,c,a):REa(this,b.Sc,c,a)}};
g.h.onQueuedVideoLoaded=function(){var a=this.K;$O(this);if(a){if(!ZO(this,a)){var b=this.api.Pc();this.zd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Pc().addCueRange(a.bp.Qd)}};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)MEa(this,a);else{b=this.api.Pc();var d=b===this.C?this.D:null;bP(this,!1);this.Y=a;null!=c&&this.S.start(c);b&&(this.D=d||b.getPlayerState(),vT(b),this.C=b)}};
g.h.dh=function(a){g.yF(a,128)&&VEa(this)};
g.h.isManifestless=function(){return $D(this.j.getVideoData())};
g.h.qa=function(){bP(this,!1);dP(this);g.G.prototype.qa.call(this)};
g.h.zd=function(a,b){this.j.zd(new fD(a,b))};
var NEa=0;var XEa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(gP,g.G);gP.prototype.get=function(a){eP(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
gP.prototype.set=function(a,b,c){this.remove(a,!0);eP(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.R)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&hP(this,c,!0);fP(this)};
gP.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(hP(this,c,b),g.Yb(this.data,function(d){return d.key===a}),fP(this))};
gP.prototype.qa=function(){var a=this;g.G.prototype.qa.call(this);this.data.forEach(function(b){hP(a,b,!0)});
this.data=[]};g.iP.prototype.info=function(){};g.w(jP,g.G);jP.prototype.qa=function(){ZEa(this.j);g.G.prototype.qa.call(this)};g.w(kP,g.$p);kP.prototype.ea=function(a){var b=g.Ba.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.$p.prototype.ea.call.apply(g.$p.prototype.ea,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};lP.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
lP.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
lP.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.w(mP,g.G);mP.prototype.start=function(){this.u.start()};
mP.prototype.stop=function(){this.u.stop()};
mP.prototype.clear=function(){for(var a=g.r(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
mP.prototype.sample=function(){for(var a=g.r(this.B),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new pP(vTa.has(b)));this.j.get(b).update(c())}this.u.start()};
var vTa=new Set(["networkactivity"]);pP.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
pP.prototype.clear=function(){this.buffer.clear();this.j=0};g.w(qP,g.G);qP.prototype.qa=function(){g.G.prototype.qa.call(this);this.j=null;this.u&&this.u.disconnect()};g.wTa=xg(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var G0;G0={};g.rP=(G0.STOP_EVENT_PROPAGATION="html5-stop-propagation",G0.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",G0.IV_DRAWER_OPEN="ytp-iv-drawer-open",G0.MAIN_VIDEO="html5-main-video",G0.VIDEO_CONTAINER="html5-video-container",G0.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",G0.HOUSE_BRAND="house-brand",G0);g.w(sP,g.V);g.h=sP.prototype;g.h.Mo=function(){g.Gp(this.element,g.Ba.apply(0,arguments))};
g.h.Eh=function(){this.Jb&&(this.Jb.removeEventListener("focus",this.SH),g.gi(this.Jb),this.Jb=null)};
g.h.JF=function(){this.isDisposed();var a=this.app.V();a.jk||this.Mo("tag-pool-enabled");a.D&&this.Mo(g.rP.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Mo("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Vb&&(this.zF=g.Iu("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.h.vz=function(a){this.FB=!a;tP(this)};
g.h.resize=function(){if(this.Jb){var a=this.Zh();if(!a.isEmpty()){var b=!g.zh(a,this.wv.getSize()),c=hFa(this);b&&(this.wv.width=a.width,this.wv.height=a.height);a=this.app.V();(c||b||a.Vb)&&this.app.Ra.ea("resize",this.getPlayerSize())}}};
g.h.Bp=function(a,b){this.updateVideoData(b)};
g.h.updateVideoData=function(a){if(this.Jb){var b=this.app.V();fs&&(this.Jb.setAttribute("x-webkit-airplay","allow"),a.title?this.Jb.setAttribute("title",a.title):this.Jb.removeAttribute("title"));Xva(a)?this.Jb.setAttribute("disableremoteplayback",""):this.Jb.removeAttribute("disableremoteplayback");this.Jb.setAttribute("controlslist","nodownload");b.Ym&&a.videoId&&(this.Jb.poster=a.zf("default.jpg"))}b=g.nE(a,"yt:bgcolor");this.kx.style.backgroundColor=b?b:"";this.yH=kC(g.nE(a,"yt:stretch"));this.zH=
kC(g.nE(a,"yt:crop"),!0);g.O(this.element,"ytp-dni",a.D);this.resize()};
g.h.setGlobalCrop=function(a){this.wG=kC(a,!0);this.resize()};
g.h.setCenterCrop=function(a){this.CM=a;this.resize()};
g.h.Rj=function(){};
g.h.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ra.isFullscreen();if(b&&Zr())return new g.yh(window.outerWidth,window.outerHeight);if(b||a.Fl){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.zy&&this.zy.media===a||(this.zy=window.matchMedia(a));var c=this.zy&&this.zy.matches}if(c)return new g.yh(window.innerWidth,window.innerHeight)}else if(!isNaN(this.Dx.width)&&!isNaN(this.Dx.height))return this.Dx.clone();return new g.yh(this.element.clientWidth,
this.element.clientHeight)};
g.h.Zh=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.sB(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.rI&&b.width>c?new g.yh(b.width*g.sB(this.app.V().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.h.getVideoAspectRatio=function(){return isNaN(this.yH)?fFa(this):this.yH};
g.h.getVideoContentRect=function(a){var b=this.Zh();a=gFa(this,b,this.getVideoAspectRatio(),a);return new g.Hm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.Jv=function(a){this.rI=a;this.resize()};
g.h.RB=function(){return this.KC};
g.h.onMutedAutoplayChange=function(){tP(this)};
g.h.setInternalSize=function(a){g.zh(this.Dx,a)||(this.Dx=a,this.resize())};
g.h.qa=function(){this.zF&&g.Ju(this.zF);this.Eh();g.V.prototype.qa.call(this)};g.h=iFa.prototype;g.h.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Tv();c&&a.visualElement&&g.cw(c,a.visualElement,b)};
g.h.Ab=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=qpa(c);a.visualElement=c;var f=g.Tv(),k=g.Sv();f&&k&&g.Xv(void 0,f,k,[c]);g.pf(b,function(){jFa(e,a)});
d&&this.u.add(a)};
g.h.Qh=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.pf(b,function(){jFa(d,a)});
c&&this.u.add(a)};
g.h.al=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Mv(b))};
g.h.Dp=function(a){return this.elements.has(a)};g.w(yP,g.V);
yP.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.j,0,this.j,this.heightPx),this.ctx.fillStyle=this.C[c+1],this.ctx.fillRect(a*this.j,this.heightPx*(1-b),this.j,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.C[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.w(AP,g.V);g.h=AP.prototype;g.h.show=function(){g.V.prototype.show.call(this);this.Ha()};
g.h.hide=function(){g.V.prototype.hide.call(this);this.delay.stop()};
g.h.stop=function(){this.delay.stop()};
g.h.start=function(){this.delay.isActive()||this.Ha()};
g.h.Ha=function(){var a=(0,g.R)(),b=this.Ra.getStatsForNerds();zP(this.j,b.bandwidth_samples);zP(this.C,b.network_activity_samples);zP(this.B,b.live_latency_samples);zP(this.u,b.buffer_health_samples);var c={};b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;this.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.R)()-a?5E3:500;this.delay.start(a)};BP.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
BP.prototype.getPlaybackRate=function(){return this.playbackRate};qFa.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.hc,e=tFa(this,this.videoTrack,a,this.videoTrack.hc);d=tFa(this,this.audioTrack,this.policy.va?a:e,d);a=Math.max(a,e,d);this.u=!0;this.j.isManifestless&&(rFa(this.videoTrack,b),rFa(this.audioTrack,c));return a};
var sFa=2/24;yFa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.R)()};g.w(KP,g.iv);g.h=KP.prototype;
g.h.ZH=function(a,b,c){if(this.C){var d=[],e=[],f=[],k=void 0;b&&(d=b.j,e=b.u,f=b.C,k=b.B);this.C.gI(a.Ja,a.startTime,this.u,d,e,f,c,k)}if(c){if(b&&!this.ra.has(a.Ja)){c=a.startTime;d=[];e=g.r(b.j.entries());for(f=e.next();!f.done;f=e.next()){k=g.r(f.value);f=k.next().value;k=k.next().value;var l=c;c=l+b.u[f];d.push({startTime:l,endTime:c,adCpn:k})}this.ra.set(a.Ja,d)}this.policy.pe&&(c=this.ma&&a.Ja===this.ma.Ja+1,this.ma=a,d=this.j&&a.Ja===this.j.Ja+1,d=this.j&&c&&d&&"stop"!==this.j.Rd.event&&"predictStart"!==
this.j.Rd.event,e=a.Rd||null,f=this.J.j.index.getLastSegmentNumber()<=a.Ja,k=this.S.isManifestless&&this.policy.Um,e?(this.j&&this.j.Rd.identifier===e.identifier&&this.j.Rd.startSecs!==e.startSecs&&(l=this.policy.Pt&&this.Sa.Bo,this.xa("cuepointStartSecsDrift",{id:e.identifier,firstSegNum:this.j.Ja,secondSegNum:a.Ja,firstStartSecs:this.j.Rd.startSecs,secondStartSecs:e.startSecs,sync:l}),l&&(e.startSecs=this.j.Rd.startSecs,e.durationSecs=this.j.Rd.durationSecs)),this.j={Rd:e,Ja:a.Ja,ey:!!b},f?LP(this,
e,a.Ja):k&&(c?d?LP(this,e,a.Ja):"continue"===e.event||"stop"===e.event?DFa(this,a):LP(this,e,a.Ja):LP(this,e,a.Ja))):d&&DFa(this,a))}};
g.h.YH=function(a,b,c){var d=this.J.j.index.getLastSegmentNumber()<=b;this.j={Rd:a,Ja:b,ey:c};d&&LP(this,a,b)};
g.h.Br=function(){this.C&&this.C.Br()};
g.h.xa=function(a,b){this.Sa.xa(a,b)};
g.h.Dz=function(a,b){var c=this.J.j.index.getSegmentNumberForTime(a);if(0<=c){var d;if(null==(d=this.C)?0:d.pB(c,2))return this.xa("sdai",{skipad_on:c,t:a.toFixed(3)}),b.gJ(a,c),CFa(this,a,a,c),!0}return!1};
g.h.Hu=function(a){var b="",c=this.J.j.index.getSegmentNumberForTime(a);if(c=this.ra.get(c)){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};FFa.prototype.Sv=function(a){var b=this.policy.S;this.policy.S=UA(a,{},this.J);if(b!==this.policy.S){OP(this,this.j);QP(this);var c,d;b>this.policy.S&&(null==(c=this.u)?0:eA(c.info))&&(null==(d=this.nextVideo)||!eA(d.info))&&(this.S=!0)}};VP.prototype.dispose=function(){this.ma=!0};
VP.prototype.isDisposed=function(){return this.ma};cQ.prototype.skip=function(a){this.offset+=a};
cQ.prototype.getOffset=function(){return this.offset};fQ.prototype.Zi=function(a){this.La=this.u.shift().info;a.info.equals(this.La)};
fQ.prototype.Gn=function(){return!!this.D.info.audio};
fQ.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};g.h=oQ.prototype;g.h.fG=function(){return 0};
g.h.UK=function(){return null};
g.h.wN=function(){return null};
g.h.isComplete=function(){return 3<=this.state};
g.h.isFailed=function(){return 5===this.state};
g.h.onStateChange=function(){};
g.h.isDisposed=function(){return-1===this.state};
g.h.dispose=function(){this.info.j[0].j.J=!1;pQ(this,-1)};
g.h.rG=function(){return 0};g.w(FP,oQ);g.h=FP.prototype;g.h.onStateChange=function(){this.isDisposed()&&(HS(this.me,this.u),this.B.dispose())};
g.h.rr=function(){var a=jHa(this.me,this.u),b;var c=(null==(b=this.me.ge.get(this.u))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.me.ge.get(this.u))?void 0:d.EA)||0;var e;d=(null==(e=this.me.ge.get(this.u))?void 0:e.Je.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.me.Gg(this.u)}};
g.h.tN=function(){return 0};
g.h.Cw=function(){return!0};
g.h.pE=function(){this.Ap();this.S=!0;return uGa(this.j)};
g.h.VK=function(){this.Ap();return this.j.Je};
g.h.vv=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.Je)?0:b.length)||this.me.Yg(this.u)};
g.h.Ap=function(){for(;this.me.Yg(this.u);){var a=this.j,b=this.me.Zi(this.u),c=this.me.ge.get(this.u);tGa(a,b,c.Jf&&!c.Je.totalLength&&wGa(this.me,this.u))}};sQ.prototype.og=function(){return fGa(this.C)};
sQ.prototype.Zi=function(a){this.C.Zi(a);a=a.info;var b=a.j.info.Qb;this.policy.Sw&&a.le&&a.duration&&(b=Math.max(b,(a.zb+a.u)/a.duration));this.Qb=Math.max(this.Qb,b||0)};
sQ.prototype.getDuration=function(){return this.j.index.getMaxKnownEndTime()};
sQ.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ja:!1};g.h=FQ.prototype;g.h.fv=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.hv()};
g.h.onError=function(){this.C=!0;this.onDone()};
g.h.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.Zp())};
g.h.Cr=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.h.Hx=function(){return+this.getResponseHeader("content-length")};
g.h.Dk=function(){return this.B};
g.h.iz=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.h.Yg=function(){return 0<this.j.totalLength};
g.h.Zi=function(){var a=this.j;this.j=new iy;return a};
g.h.og=function(){return this.j};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.Nv=function(){return!0};
g.h.SC=function(){return this.C};
g.h.jf=function(){return""};g.h=KGa.prototype;g.h.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.h.abort=function(){};
g.h.Cr=function(){return!0};
g.h.Hx=function(){return this.range.length};
g.h.Dk=function(){return this.loaded};
g.h.iz=function(){return!!this.loaded};
g.h.Yg=function(){return!!this.u.totalLength};
g.h.Zi=function(){var a=this.u;this.u=new iy;return a};
g.h.og=function(){return this.u};
g.h.Nv=function(){return!0};
g.h.SC=function(){return!!this.error};
g.h.jf=function(){return this.error};var LGa=0;g.h=GQ.prototype;g.h.kp=function(){this.ma||(this.ma=this.callbacks.kp?this.callbacks.kp():1);return this.ma};
g.h.hv=function(){this.La=this.now();this.callbacks.hv()};
g.h.hs=function(a,b){IQ(this,a,b);50>a-this.C&&KQ(this)||PGa(this,a,b);this.callbacks.hs(a,b)};
g.h.Zp=function(){this.callbacks.Zp()};
g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.h.now=function(){return(0,g.R)()};g.h=OQ.prototype;g.h.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Y);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.ma,this.onError).then(void 0,Cs)};
g.h.onDone=function(){this.isDisposed()||this.callbacks.Zp()};
g.h.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.h.Cr=function(){return!!this.D};
g.h.Dk=function(){return this.u};
g.h.Hx=function(){return+this.getResponseHeader("content-length")};
g.h.iz=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.h.Yg=function(){return!!this.j.totalLength};
g.h.Zi=function(){this.Yg();var a=this.j;this.j=new iy;return a};
g.h.og=function(){this.Yg();return this.j};
g.h.isDisposed=function(){return this.J};
g.h.abort=function(){this.zm&&this.zm.cancel().catch(function(){});
this.B&&this.B.abort();this.J=!0};
g.h.Nv=function(){return!0};
g.h.SC=function(){return this.K};
g.h.jf=function(){return this.errorMessage};g.h=PQ.prototype;g.h.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.Zp()}};
g.h.fv=function(){2===this.xhr.readyState&&this.callbacks.hv()};
g.h.Vd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.hs((0,g.R)(),a.loaded))};
g.h.Cr=function(){return 2<=this.xhr.readyState};
g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return jr(Error("Could not read XHR header "+a)),""}};
g.h.Hx=function(){return+this.getResponseHeader("content-length")};
g.h.Dk=function(){return this.u};
g.h.iz=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.h.Yg=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.h.Zi=function(){this.Yg();var a=this.response;this.response=void 0;return new iy([new Uint8Array(a)])};
g.h.og=function(){this.Yg();return new iy([new Uint8Array(this.response)])};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.Nv=function(){return!1};
g.h.SC=function(){return!1};
g.h.jf=function(){return""};g.w(SQ,oQ);g.h=SQ.prototype;g.h.rr=function(){var a=HQ(this.timing);a.shost=cy(this.u.Ki);this.B&&(a.rc=this.B.toString());a.itag=this.info.j[0].j.info.Yb();a.ml=""+ +this.info.j[0].j.Kf();a.sq=""+this.info.j[0].Ja;this.u&&(a.ifi=""+ +ey(this.info.u.C));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.jf()&&(a.msg=this.xhr.jf());this.Fz&&(a.smb="1");if(this.j){var b=this.j.Je;b.length&&msa(b[0],a)}this.info.Ak()&&(a.sdai="1");return a};
g.h.tN=function(){return TGa(this.timing)};
g.h.jf=function(){return this.xhr.jf()||""};
g.h.Cw=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.CC&&LQ(a,a.u));return a};
g.h.hs=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.vv()?qQ(this,2):!this.va&&this.Cw()&&(qQ(this),this.va=!0))};
g.h.hv=function(){if(!this.isDisposed()&&this.xhr){if(!this.Z&&this.xhr.Cr()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z=((0,g.R)()-a)/1E3}this.xhr.Cr()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.us&&!nta()&&g.gw("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.J=a||this.J;this.K=b||this.K}};
g.h.Zp=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.Y.stop(),this.B=a.status,a=YGa(this,a),5===a?RQ(this):pQ(this,a))};
g.h.canRetry=function(){this.isDisposed();var a=QQ(this),b=this.info.Ak()?this.policy.Pr:this.policy.ul;return a.timedOut<this.policy.Xs&&a.j<b};
g.h.onStateChange=function(){this.isComplete()&&(this.policy.Oe?TQ(this):this.timing.deactivate())};
g.h.K_=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.R)(),b=!1;KQ(this.timing)?(a=this.timing.Y,NGa(this.timing),this.timing.Y-a>=.8*this.ra?(this.C++,b=5<=this.C):this.C=0):(b=this.timing,b.oi&&NQ(b,b.now()),a-=b.S,this.policy.Oc&&0<a&&(this.C+=1),b=Kra(QQ(this),this.policy,!1)*this.policy.pk,b=a>1E3*b);this.C&&this.callback&&this.callback(this,this.state);b?ZGa(this,!1):this.Y.start()}};
g.h.dispose=function(){oQ.prototype.dispose.call(this);this.Y.dispose();this.policy.Oe||TQ(this)};
g.h.pE=function(){if(!this.VK().length)return[];this.S=!0;return uGa(this.j)};
g.h.vv=function(){if(1>this.state)return!1;if(this.j&&this.j.Je.length)return!0;var a;return(null==(a=this.xhr)?0:a.Yg())?!0:!1};
g.h.VK=function(){this.Ap(!1);return this.j?this.j.Je:[]};
g.h.Ap=function(a){if(a||this.xhr.Cr()&&this.xhr.Yg()&&!XGa(this)&&!this.D){if(!this.j){var b;this.xhr.Nv()?b=Bz(this.info):b=this.xhr.Dk();this.j=new sGa(this.info.j,b)}for(;this.xhr.Yg();)tGa(this.j,this.xhr.Zi(),a&&!this.xhr.Yg())}};
g.h.Dk=function(){return this.xhr.Dk()};
g.h.fG=function(){return this.Z};
g.h.kp=function(){return $Ga(this)?2:1};
g.h.rG=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.h.UK=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J};
g.h.wN=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};aHa.prototype.clear=function(){this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1};g.w(g.VQ,g.G);g.h=g.VQ.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.ya.rC(NFa(this.u));if(this.j.isManifestless){if(this.policy.Ri){b=Zqa(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.C=b)}lHa(this)}this.D&&cHa(this.D,this.videoTrack.j);this.policy.ra&&Gx()&&this.xa("streaming",{ac:!!window.AbortController||Hx()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.Y&&(kHa(this,this.videoTrack),kHa(this,this.audioTrack),bKa(this.Y),delete this.Y);
c?(this.policy.Pg?(this.Ib=c,$Q(this,c)):$Q(this,!1),g.zp(this.Ua)):(a=0===this.currentTime,WQ(this,this.videoTrack,this.videoTrack.j,a),WQ(this,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Di(function(){}),this.timing.tick("gv"));
(this.j.Ye||this.j.yh||this.j.D||this.j.C||this.j.J)&&this.xa("minMaxSq",{minSq:this.j.Ye,maxSq:this.j.yh,minDvrTime:this.j.D,maxDvrTime:this.j.C,startWalltime:this.j.J})};
g.h.resume=function(){if(this.isSuspended||this.va){this.gb=this.va=this.isSuspended=!1;try{this.Ii()}catch(a){g.Iv(a)}}};
g.h.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.B=b.C.j[a.id];b.K=b.B;a=new NP(b.K,b.u,"m");iR(this.ya,a.reason,a.audio.info);jR(this.ya)}};
g.h.setPlaybackRate=function(a){a!==this.S.getPlaybackRate()&&this.S.setPlaybackRate(a)};
g.h.Ar=function(a){var b=a.info.j[0].j,c=a.lastError;if(dy(b.u.j)){var d=g.xc(a.jf());this.xa("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ja;var e=AFa(this.B,a.info.j[0].B,d);if(a.canRetry()){if(!(a.info.u.u>=this.policy.Pr&&this.C&&a.info.Ak()&&"net.badstatus"===a.lastError&&this.C.Ar(e,d))){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!TP(this.u)&&!dy(b.u.j);e=a.rr();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(c,e);this.isDisposed()||(d&&SP(this.u,
b),DQ(f,a),this.Ii())}}else this.policy.ol?(b=1,this.C&&a.info.Ak()&&"net.badstatus"===a.lastError&&this.C.Ar(e,d)&&(b=0),this.handleError(c,a.rr(),b)):(this.handleError(c,a.rr()),this.policy.Dl||!a.info.Pl()||this.policy.u||dy(b.u.j)?this.C&&a.info.Ak()&&"net.badstatus"===a.lastError&&this.C.Ar(e,d)||this.handleError("net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()},1):(b.C=c,this.Ii()))};
g.h.Ii=function(){cR(this);if(this.mediaSource&&CA(this.mediaSource)&&!this.mediaSource.di()){var a=uQ(this.videoTrack);a=this.policy.jk&&a&&sz(a);this.j.isManifestless&&this.j.K&&MA(this.j)?(this.K=MA(this.j),this.mediaSource.Zk(this.K)):this.j.isLive&&!a?isNaN(this.K)?(this.K=this.currentTime+3600,this.mediaSource.Zk(this.K)):this.K<=this.currentTime+1800&&(this.K=Math.max(this.K+1800,this.currentTime+3600),this.mediaSource.Zk(this.K)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.K)||this.K!==a)&&0<a&&(this.mediaSource.Zk(a),this.K=a))}if(!this.isDisposed())if(LA(this.j)&&this.j.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.j.ma.toString()},1);else if(!this.j.u||!GGa(this.videoTrack)&&!GGa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Ua?a=!1:(YQ(this),this.ya.seekTo(Infinity,{Ie:"checkLoaderTracksSync",Pq:!0}),a=!0),!a){cR(this);try{wQ(this.videoTrack);if(this.isDisposed())return;
wQ(this.audioTrack);if(this.isDisposed())return}catch(e){sHa(this,e,{origin:"pollSlice"})}this.j.isManifestless&&(HGa(this.videoTrack),HGa(this.audioTrack),wFa(this.J),(a=this.videoTrack.og())&&a.u&&(a=a.u.D&&!this.policy.pn,this.xa(a===this.policy.D.Ei?"strm":"strmbug",{strm:a,sfmp4:this.policy.D.Ei,dfs:this.policy.pn},!0)));if(this.mediaSource)mHa(this);else if(this.policy.u){(a=this.videoTrack.og())&&this.videoTrack.Zi(a);var b=this.audioTrack.og();b&&this.audioTrack.Zi(b);yQ(this.videoTrack)&&
yQ(this.audioTrack)||(a||b)&&g.zp(this.ma)}ZQ(this);WQ(this,this.videoTrack,this.videoTrack.j,!1);WQ(this,this.audioTrack,this.audioTrack.j,!1);a=this.audioTrack.j.C;b=this.videoTrack.j.C;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";this.handleError(c,{metadata:"1",video:this.videoTrack.j.C||"",audio:this.audioTrack.j.C||""},1)}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||CA(this.mediaSource)&&!this.policy.Xa)&&!this.J.u&&
EQ(a)&&a.j.Kf()&&this.u.S)a:{if(b=this.currentTime,c=this.S,d=DP(c,a.j.info.Qb,d.j.info.Qb,0),c=aC(c.schedule)+d/cC(c.schedule),b+=Math.max(c,c+10-d/a.j.info.Qb),a.B.length){if(a.B[0].info.j[0].startTime<=b)break a;GP(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.Nb(g.Nb(a.B).info.j):a.C.u.length?a.u=gQ(a.C).info:a.u=uQ(a);a.u&&b<a.u.startTime&&(a.Z=0,a.j.Kf()?a.u=a.j.Bn(b,!0).j[0]:a.u=null)}qHa(this,this.videoTrack,this.audioTrack);qHa(this,this.audioTrack,
this.videoTrack);this.policy.Fl&&this.La&&!this.isSuspended&&fua(this.schedule)&&(yHa(this,this.La),this.La="");this.D&&(a=this.D,a.C?(b=a.J+a.policy.Wh,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.Pd)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.zp(this.Vb,a));g.zp(this.Kb)}}};
g.h.CT=function(a){if(this.policy.Ib&&this.mediaSource){var b=a===this.mediaSource.j,c=a.rB();if(c&&(c.zb&&!c.le||this.xa("sbu",a.Pb({a:b})),c.le)){a=a.ag();b=sA(a,c.startTime-fR);var d=sA(a,this.currentTime);(0>b||b!==d)&&this.xa("sbu_mismatch",{b:rA(a),c:this.currentTime,s:yz(c)})}}this.Ii()};
g.h.KX=function(a){if(this.mediaSource){var b=uQ(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.pG())for(var c=0;c<a.length;c++)this.xa("appendedbuffer",{i:c,b:g.wc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=xz(b));this.handleError("fmt.unplayable",a,1)}};
g.h.ev=function(a){this.ya.ev(a)};
g.h.ZH=function(a,b,c){this.j.isManifestless&&oGa(this,b,c,!!a.info.video)};
g.h.YH=function(a,b,c,d){a.info.video&&this.B.YH(b,c,d)};
g.h.Ux=ba(8);g.h.seek=function(a){if(this.isDisposed())return Ai();if(this.videoTrack.K||this.audioTrack.K)return Ai("seeking to head");cR(this);this.kb=(0,g.R)();ZQ(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&jR(this.ya,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.J.seek(a);EFa(this.B,a,b);g.zp(this.ma);return zi(this.currentTime)};
g.h.getCurrentTime=function(){return this.currentTime};
g.h.gG=function(){return this.audioTrack.j.info.j};
g.h.hG=function(){return this.videoTrack.j.info.j};
g.h.qa=function(){try{bR(this),GP(this.audioTrack),GP(this.videoTrack),this.Z=null,this.Ta="",g.G.prototype.qa.call(this)}catch(a){g.Iv(a)}};
g.h.handleError=function(a,b,c){c=void 0===c?0:c;var d=gD(c);if(this.policy.ol||!this.isDisposed())"fmt.unplayable"===a&&this.j.isLive&&this.policy.Ys&&(this.policy.ra=!1),b=new fD(a,b,c),g.Oa(this),eD(b.details),this.ya.handleError(b),"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.h.Pb=function(){var a=uQ(this.audioTrack),b=uQ(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.J.u,lmf:this.u.j.isLocked(),lbw:bC(this.schedule).toFixed(3),lhd:aC(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.rh()||0)).toFixed(3),laa:a?yz(a):"",lva:b?yz(b):"",lar:this.audioTrack.u?yz(this.audioTrack.u):"",lvr:this.videoTrack.u?yz(this.videoTrack.u):"",laq:""+zQ(this.audioTrack),lvq:""+zQ(this.videoTrack)};this.mediaSource&&!this.mediaSource.Jf()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=rA(this.mediaSource.j.ag()),a.lvb=rA(this.mediaSource.u.ag()));this.ra&&(a.lapt=((0,g.R)()-this.ra).toFixed(0),a.lapr=tHa(this));return a};
g.h.dG=function(){return CP(this.S)};
g.h.xa=function(a,b,c){this.ya.xa(a,b,void 0===c?!1:c)};
g.h.wh=function(){return this.ya.wh()};
g.h.Pq=function(a,b){a/=b;isNaN(this.timestampOffset)&&CHa(this,a-Math.min(a,this.policy.nj));return(a-this.timestampOffset)*b};
g.h.Br=function(){this.B.Br()};
g.h.Sv=function(a){this.u.Sv(a)};
g.h.Dz=function(a,b){return this.C&&this.B.Dz(a,this.C)?(CHa(this,this.timestampOffset-b),!0):!1};
g.h.Hu=function(a){return this.B.Hu(a)};
var fR=2/24;g.h=g.mR.prototype;g.h.Ak=function(a,b,c,d){return this.td.Ak(a,b,c,d)};
g.h.yG=function(a){this.td.yG(a)};
g.h.Ar=function(a,b){return this.td.Ar(a,b)};
g.h.Br=function(){this.td.Br()};
g.h.gJ=function(a,b){this.td.gJ(a,b)};
g.h.Ix=ba(32);g.h.Hk=function(a,b,c){this.td.Hk(a,b,c)};
g.h.Oz=ba(30);g.h.gI=function(a,b,c,d,e,f,k,l){this.td.gI(a,b,c,d,e,f,k,l)};
g.h.aJ=function(a){this.td.aJ(a)};
g.h.pB=function(a,b){return this.td.pB(a,b)};
g.h.fI=function(a,b,c,d){this.td.fI(a,b,c,d)};
g.h.Up=function(a){return this.td.Up(a)};g.w(nR,g.iv);g.w(oR,nR);oR.prototype.J=function(a,b){if(a&&b){var c=1*Number(uj(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.Pf(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.zp(this.u))}};
oR.prototype.D=function(){for(var a=g.r(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.j[c].match(kj),f=[],k=g.r(e[6].split("&")),l=k.next();!l.done;l=k.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Bh(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 $P(d,"fairplay",!0))}this.j={}};
oR.prototype.qa=function(){this.j={};nR.prototype.qa.call(this)};var H0={},LHa=(H0.DRM_TRACK_TYPE_AUDIO="AUDIO",H0.DRM_TRACK_TYPE_SD="SD",H0.DRM_TRACK_TYPE_HD="HD",H0.DRM_TRACK_TYPE_UHD1="UHD1",H0);g.w(HHa,g.G);g.w(qR,g.iv);g.h=qR.prototype;g.h.Xp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=ZA(b.u)?d:c;d=new Uint8Array(ZA(b.u)?c:d);ZA(b.u)&&ZHa(d);c=g.wc(d,4);ZHa(d);d=g.wc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),XHa(this,","),pR(this,{onkeystatuschange:1}),this.status="kc",this.ea("keystatuseschange",this))};
g.h.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.ea("ctmp","provf",{et:a.toFixed(3)})));gD(b)&&this.dispose()};
g.h.shouldRetry=function(a,b){return this.Aa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.h.qa=function(){this.j={};g.iv.prototype.qa.call(this)};
g.h.Pb=function(){var a={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.va,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.h.cg=function(){var a=this.D.join();if(rR(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};g.w(uR,g.G);g.h=uR.prototype;g.h.DT=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.h.Xp=function(){this.K&&this.K(this.j.keyStatuses)};
g.h.LP=function(a){this.D&&this.D(a.message,"license-request")};
g.h.KP=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.h.JP=function(){this.J&&this.J()};
g.h.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,ir(function(c){cIa(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 Mr()};
g.h.qa=function(){this.j&&this.j.close();this.element=null;g.G.prototype.qa.call(this)};g.w(vR,g.G);g.h=vR.prototype;g.h.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
YA(this.j)?this.B=new (XA())(this.j.keySystem):$A(this.j)?(this.B=new (XA())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(gv(this.D,this.element,["keymessage","webkitkeymessage"],this.GT),gv(this.D,this.element,["keyerror","webkitkeyerror"],this.FT),gv(this.D,this.element,["keyadded","webkitkeyadded"],this.ET));return null};
g.h.setServerCertificate=function(){return"widevine"===this.j.flavor&&this.j.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.j.B):null};
g.h.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();aB(this.j)&&(c=dIa(c,this.j.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new uR(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},ir(function(f){cIa(e,"t.generateRequest",f)}));
return e}if(YA(this.j))return fIa(this,c);if($A(this.j))return eIa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new uR(this.element,this.j,c,null,null)};
g.h.GT=function(a){var b=wR(this,a);b&&b.LP(a)};
g.h.FT=function(a){var b=wR(this,a);b&&b.KP(a)};
g.h.ET=function(a){var b=wR(this,a);b&&b.JP(a)};
g.h.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.h.qa=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.J));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.J={};g.G.prototype.qa.call(this);delete this.element};g.w(xR,g.G);
xR.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.j)return g.Km(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.D,document.body.appendChild(a.j),a.C.T(a.j,"encrypted",a.J),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new vR(a.j,
a.B);g.H(a,a.u);a.u.attach();g.sa(d)})};
xR.prototype.J=function(a){if(!this.isDisposed()){var b=new Uint8Array(a.initData);a=new $P(b,a.initDataType);var c=DHa(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){});
e&&(g.H(this,e),this.D.push(e),OHa(e,function(f){aIa(f,e.j,c,d)},function(){},function(){},function(){}))}};
xR.prototype.qa=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.G.prototype.qa.call(this)};g.w(yR,nR);
yR.prototype.J=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}b=!b}if(b){b=(0,g.R)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.r(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?gIa(this,a):(this.j.push({time:b+c,info:a}),g.zp(this.u,c))}};
yR.prototype.qa=function(){this.j=[];nR.prototype.qa.call(this)};zR.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
zR.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
zR.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
zR.prototype.findIndex=function(a){return g.Qb(this.keys,function(b){return g.jc(a,b)})};g.w(BR,g.iv);g.h=BR.prototype;g.h.HT=function(a){this.Lh({onecpt:1});a.initData&&lIa(this,new Uint8Array(a.initData),a.initDataType)};
g.h.LY=function(a){this.Lh({onndky:1});lIa(this,a.initData,a.contentType)};
g.h.ev=function(a){this.Lh({onneedkeyinfo:1});this.X.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));kIa(this,a)};
g.h.hM=function(a){this.B.push(a);CR(this)};
g.h.createSession=function(a){var b=mIa(this)?bGa(a):g.wc(a.initData);this.u.get(b);this.ra=!0;a=new qR(this.videoData,this.X,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.nP,this);a.subscribe("keystatuseschange",this.Xp,this);a.subscribe("licenseerror",this.qC,this);a.subscribe("newlicense",this.FP,this);a.subscribe("newsession",this.GP,this);a.subscribe("sessionready",this.SP,this);a.subscribe("fairplay_next_need_key_info",this.xP,this);QHa(a,this.C)};
g.h.FP=function(a){this.isDisposed()||(this.Lh({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))};
g.h.GP=function(){this.isDisposed()||(this.Lh({newlcssn:1}),this.B.shift(),this.ra=!1,CR(this))};
g.h.SP=function(){if(YA(this.j)&&(this.Lh({onsnrdy:1}),this.Ga--,0===this.Ga)){var a=this.Z;a.element.msSetMediaKeys(a.B)}};
g.h.Xp=function(a){if(!this.isDisposed()){!this.Aa&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(nIa(this),this.Aa=!0);this.Lh({onksch:1});if(!rR(a)&&g.ot&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(rR(a))for(var d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!rR(a)||c)b=a.D;b=g.Sb(b,"UHD2")||g.Sb(b,"UHD2HDR")?
"highres":g.Sb(b,"UHD1")||g.Sb(b,"UHD1HDR")?"hd2160":g.Sb(b,"HD")||g.Sb(b,"HDHDR")?"hd1080":g.Sb(b,"HD720")||g.Sb(b,"HD720HDR")?"hd720":"large"}a:{c=g.Lx("auto",b,!1,"l");if(this.videoData.Tg){if(this.S.equals(c))break a}else if(Lqa(this.S,b))break a;this.S=c;this.ea("qualitychange");this.Lh({updtlq:b})}this.ea("keystatuseschange",a)}};
g.h.nP=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)};
g.h.xP=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)};
g.h.qC=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&nIa(this),this.ea("licenseerror",a,b,c,d))};
g.h.Du=function(){return this.S};
g.h.qa=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.nP,this),b.unsubscribe("keystatuseschange",this.Xp,this),b.unsubscribe("licenseerror",this.qC,this),b.unsubscribe("newlicense",this.FP,this),b.unsubscribe("newsession",this.GP,this),b.unsubscribe("sessionready",this.SP,this),b.unsubscribe("fairplay_next_need_key_info",this.xP,this),b.dispose();
this.u.clear();AR(this.J);AR(this.K);this.heartbeatParams=null;g.iv.prototype.qa.call(this)};
g.h.Pb=function(){for(var a={systemInfo:this.j.Pb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Pb());return a};
g.h.cg=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.cg()+(this.D?"/KR":"")};
g.h.Lh=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(eD(a),(dD(this.X)||b)&&this.ea("ctmp","drmlog",a))};g.w(FR,g.G);FR.prototype.TB=function(){return this.B};
FR.prototype.handleError=function(a){var b=this;sIa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!HR(this,a.errorCode,a.details))&&!vIa(this,a))if(gD(a.severity)){var c,d=null==(c=this.ya.Sa)?void 0:c.u.j;if(tIa(this,a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.ya.rg(a.errorCode,a.severity,e,eD(a.details),f)}else this.ya.ea("nonfatalerror",
a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.zd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20220414023957/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),gO(a,"manifest",function(k){b.J=!0;b.xa("pathprobe",k)},function(k){b.zd(k.errorCode,k.details)}))};
FR.prototype.xa=function(a,b){this.ya.Zb.xa(a,b)};
FR.prototype.zd=function(a,b){b=eD(b);this.ya.Zb.zd(a,b)};IR.prototype.setPlaybackRate=function(a){this.playbackRate=a};
IR.prototype.N=function(a){return this.X.N(a)};g.w(JR,g.G);JR.prototype.Yc=function(a){NIa(this);this.playerState=a.state;0<=this.B&&g.yF(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
JR.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(xTa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
JR.prototype.send=function(){if(!(this.C||0>this.u)){NIa(this);var a=g.zO(this.j)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.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");c=KLa[mE(this.j.videoData)];a:switch(this.j.X.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B-this.u;a=this.j.X.Ne+
36E5<(0,g.R)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.j.videoData.isAd(),liveMode:c,hasDrm:!!g.kE(this.j.videoData),isGapless:this.j.videoData.Ia,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.Ds("html5PlayerHealthEvent",b);this.j.N("html5_health_to_qoe")&&
(b.muted=a,this.K(b));this.C=!0;this.dispose()}};
JR.prototype.qa=function(){this.C||this.send();g.G.prototype.qa.call(this)};
var xTa=/\bnet\b/;var PIa=window;var OIa=/[?&]cpn=/;g.w(g.PR,g.G);g.h=g.PR.prototype;g.h.bW=function(){var a=g.zO(this.j);QR(this,a)};
g.h.Mx=function(){return this.Aa};
g.h.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.zO(this.j),-1<["PL","B","S"].indexOf(this.Yd)&&(!g.Pf(this.u)||a>=this.C+30)&&(g.OR(this,a,"vps",[this.Yd]),this.C=a),!g.Pf(this.u))){7E3===this.sequenceNumber&&g.Jv(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){RR(this,a);var b=a,c=this.j.ya.Vx(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.ib,k=e&&!this.Ib;d>c.totalVideoFrames||5E3<f?WIa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||k)&&g.OR(this,b,"df",[f]);this.ib=d;this.Ib=e;!this.j.X.N("disable_webgl_reporting")&&0<this.S&&(g.OR(this,a,"glf",[this.S]),this.S=0);a={};this.j.videoData.u&&(a.fmt=this.j.videoData.u.Yb(),(b=this.j.videoData.J)&&b.Yb()!==a.fmt&&(a.afmt=b.Yb()));a.cpn=this.j.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.j.videoData.cotn&&(a.cotn=this.j.videoData.cotn);a.el=xE(this.j.videoData);a.content_v=yE(this.j.videoData);a.ns=this.j.X.Ga;
a.fexp=this.j.X.experiments.experimentIds.toString();a.cl=(441272844).toString();(b=this.j.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=mE(this.j.videoData))&&(a.live=b);dE(this.j.videoData)&&(a.drm=1,this.j.videoData.Y&&(a.drm_system=QSa[this.j.videoData.Y.flavor]||0),this.j.videoData.lF&&(a.drm_product=this.j.videoData.lF));sr()&&this.j.videoData.K&&(a.ctt=this.j.videoData.K,a.cttype=this.j.videoData.ij,this.j.videoData.mdxEnvironment&&(a.mdx_environment=this.j.videoData.mdxEnvironment));
this.j.videoData.isDaiEnabled()?(a.dai=this.j.videoData.enableServerStitchedDai?"ss":"cs",this.j.videoData.iK&&(a.dai_fallback="1")):this.j.videoData.Ac?a.dai="cs":this.j.videoData.jK&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.j.N("html5_log_server_url_param")&&this.j.videoData.uQ){if(b=this.j.videoData.uQ,a&&b)for(c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Kc.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.j.videoData.videoId,a.ei=this.j.videoData.eventId;
g.Xf(a,this.j.X.deviceParams);a=g.sj("//"+this.j.X.nk+"/api/stats/qoe",a);c=b="";d=g.r(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.Jv(new g.Is("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?c+=e:b+=e);TIa(this,a+b,c.replace(/ /g,"%20"))}this.u={}}};
g.h.jz=function(a){0<a&&(this.u.aft=[a.toString()])};
g.h.TQ=function(){if(this.j.videoData.Y){var a=this.j.videoData.Y;TR(this,"eme-"+(a.keySystemAccess?"final":YA(a)?"ms":aB(a)?"ytfp":$A(a)?"safarifp":"nonfinal"))}};
g.h.Yc=function(a){var b=a.state,c=g.zO(this.j);a=this.getPlayerState(a.state);a!==this.Yd&&(c<this.C||("PL"===this.Yd?this.playTimeSecs+=c-this.C:"B"===this.Yd&&this.ra&&(this.ra=!1,this.rebufferTimeSecs+=c-(g.sB(this.j.X.experiments,"html5_disable_last_state_change")?this.C:this.Ua),!this.Ta&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.j.ya.Oy(),this.u.qoealert=["1"],this.Ta=!0)),"B"!==a||"PL"!==this.Yd&&"PB"!==this.Yd||(this.ra=!0),this.C=c),"PL"===this.Yd&&("B"===a||"S"===a)||dD(this.j.X)?
RR(this,c):QR(this,c),"PL"===a&&g.zp(this.kc),g.OR(this,c,"vps",[a]),this.Yd=a,this.C=this.Ua=c,this.D=!0);a=b.getData();g.U(b,128)&&a&&VIa(this,c,a.errorCode,a.aB,a.xI);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.Nc()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);SR(this)};
g.h.Uy=function(a){var b=g.zO(this.j);g.OR(this,b,"vfs",[a.j.id,a.u,this.Kb,a.reason]);this.Kb=a.j.id;var c=this.j.ya.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.QC();1<d&&c.push(d);g.OR(this,b,"view",c)}this.La||(dD(this.j.X)&&TR(this,"rqs"),this.j.videoData.j&&Qx(this.j.videoData.j)&&(this.u.preload=["1"]));this.D=this.La=!0;"m"===a.reason&&100===++this.Oc&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.OR(this,b,"vps",[this.Yd]);this.reportStats(b)};
g.h.My=function(a){var b=g.zO(this.j);a.j.id!==this.Ga&&(g.OR(this,b,"afs",[a.j.id,this.Ga,a.reason]),this.Ga=a.j.id)};
g.h.Wp=ba(36);g.h.Vp=ba(39);g.h.onPlaybackRateChange=function(a){var b=g.zO(this.j);a&&a!==this.rb&&(g.OR(this,b,"rate",[a]),this.rb=a);this.reportStats(b)};
g.h.Tk=ba(15);g.h.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,2048))return"B";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";if(g.gG(a)&&g.U(a,64))return"B";var b=yTa[jG(a)];g.IC(this.j.X)&&"B"===b&&3===this.j.ya.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b};
g.h.qa=function(){g.G.prototype.qa.call(this);window.clearInterval(this.Xa)};
g.h.xa=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Gc.indexOf(a);e||this.Gc.push(a);if(!c||!e){b="string"!==typeof b?eD(b):b;b=XIa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.zO(this.j);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.u.ctmp=d;SR(this);return f}};
g.h.kz=function(a,b,c){this.K={Q_:Number(this.xa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),eP:a,F_:b,isAd:c}};
g.h.yv=function(a,b,c){g.OR(this,g.zO(this.j),"ad_playback",[a,b,c])};
var I0={},yTa=(I0[5]="N",I0[-1]="N",I0[3]="B",I0[0]="EN",I0[2]="PA",I0[1]="PL",I0);ZIa.prototype.update=function(){if(this.S){var a=this.j.ya.getCurrentTime()||0;this.j.X.N("html5_vss_media_time_killswitch")||(a=this.j.ya.Li()||0);var b=g.zO(this.j);if(a!==this.u||cJa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||cJa(this,a,b))){var d=this.j.Mi();c=d.volume;var e=c!==this.Z;d=d.muted;d!==this.Y?(this.Y=d,c=!0):(!e||0<=this.D||(this.Z=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(YR(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};ZR.prototype.send=function(a){var b=this;if(!this.Xa){var c=aS(this),d=g.sj(this.uri,c);this.Z&&!this.X.N("html5_simplify_pings")?hJa(this,d):$R(this,a).then(function(e){b.Z&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});NR(d,e,{token:b.S,xJ:b.Ib,mdxEnvironment:b.mdxEnvironment},b.X,a,b.ra,b.isFinal&&b.Qe||b.va||b.C&&b.cf)});
this.Xa=!0}};
ZR.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var J0={},fJa=(J0.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,J0.LIVING_ROOM_APP_MODE_MAIN=1,J0.LIVING_ROOM_APP_MODE_KIDS=2,J0.LIVING_ROOM_APP_MODE_MUSIC=3,J0.LIVING_ROOM_APP_MODE_UNPLUGGED=4,J0.LIVING_ROOM_APP_MODE_GAMING=5,J0),K0={},eJa=(K0.EMBEDDED_PLAYER_MODE_UNKNOWN=0,K0.EMBEDDED_PLAYER_MODE_DEFAULT=1,K0.EMBEDDED_PLAYER_MODE_PFP=2,K0.EMBEDDED_PLAYER_MODE_PFL=3,K0);g.w(cS,g.G);g.h=cS.prototype;g.h.Vd=function(){this.u.update();var a;if(a=this.j.videoData.isLoaded()&&this.j.videoData.Gc&&this.C&&!this.Z)a=this.u,a=(a.j.X.N("html5_vss_media_time_killswitch")?a.J+a.j.ya.getCurrentTime()-a.B:a.J+a.j.ya.Li()-a.B)>=this.j.videoData.Gc;a&&(this.C&&this.j.videoData.Gc&&(a=dS(this,"delayplay"),a.Ne=!0,a.send(),this.Z=!0),iJa(this))};
g.h.Yc=function(a){this.isDisposed()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.yF(a,2)&&this.C&&gS(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&eS(this,!1)):this.currentPlayerState="paused")};
g.h.qa=function(){g.G.prototype.qa.call(this);g.Dr(this.B);this.B=NaN;aJa(this.u)};
g.h.Pb=function(){return aS(dS(this,"playback"))};
g.h.Uv=function(){this.j.videoData.S.eventLabel=xE(this.j.videoData);this.j.videoData.S.playerStyle=this.j.X.playerStyle;this.j.videoData.Me&&(this.j.videoData.S.feature="pyv");this.j.videoData.S.vid=this.j.videoData.videoId;var a=this.j.videoData.S;var b=this.j.videoData;b=b.isAd()||!!b.Me;a.isAd=b};
g.h.Xh=function(a){var b=dS(this,"engage");b.Y=a;return dJa(b,nJa(this.j))};mJa.prototype.isEmpty=function(){return this.endTime===this.startTime};iS.prototype.N=function(a){return this.X.N(a)};
var oJa={other:1,none:2,wifi:3,cellular:7};g.w(g.jS,g.G);g.h=g.jS.prototype;g.h.Yc=function(a){if(g.yF(a,1024)||g.yF(a,512)||g.yF(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.J||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.Ug){var c;null==(c=this.B.get(this.Ug))||c.Yc(a)}else this.j&&this.j.Yc(a);this.qoe&&this.qoe.Yc(a);this.C.Yc(a)};
g.h.Vd=function(){if(this.u.videoData.enableServerStitchedDai&&this.Ug){var a;null==(a=this.B.get(this.Ug))||a.Vd()}else this.j&&this.j.Vd()};
g.h.zd=function(a,b){this.qoe&&WIa(this.qoe,a,b);this.C.onError(a)};
g.h.Uy=function(a){this.qoe&&this.qoe.Uy(a)};
g.h.My=function(a){this.qoe&&this.qoe.My(a)};
g.h.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.h.Wp=ba(35);g.h.xa=function(a,b,c){this.qoe&&this.qoe.xa(a,b,c)};
g.h.kz=function(a,b,c){this.qoe&&this.qoe.kz(a,b,c)};
g.h.jz=function(a){this.qoe&&this.qoe.jz(a)};
g.h.yv=function(a,b,c){this.qoe&&this.qoe.yv(a,b,c)};
g.h.Vp=ba(38);g.h.Tk=ba(14);g.h.Mx=function(){if(this.qoe)return this.qoe.Mx()};
g.h.Pb=function(){if(this.u.videoData.enableServerStitchedDai&&this.Ug){var a;null==(a=this.B.get(this.Ug))||a.Pb()}else if(this.j)return this.j.Pb();return{}};
g.h.Xh=function(a){return this.j?this.j.Xh(a):function(){}};
g.h.Uv=function(){this.j&&this.j.Uv()};g.w(kS,g.G);g.h=kS.prototype;g.h.je=function(a,b){this.yl();b&&2E3<=this.j.j.length&&this.Ax("captions",1E4);b=this.j;if(1<a.length&&a.length>b.j.length)b.j=b.j.concat(a),b.j.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.j.length||0<b.u(c,b.j[b.j.length-1])?b.j.push(c):g.kc(b.j,c,b.u)}this.u=NaN;this.yl()};
g.h.Mg=function(a){1E4<a.length&&g.Jv(new g.Is("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)});
BJa(this.j,b);this.yl()}};
g.h.Ax=function(a,b){var c=(isNaN(this.u)?g.U(this.D(),2)?0x8000000000000:1E3*this.S():this.u)-b;b=this.yn().filter(function(d){return d.namespace===a&&d.end<c});
this.Mg(b);return b};
g.h.yn=function(){return this.isDisposed()?[]:this.j.j};
g.h.reset=function(){this.started=!1;this.C.stop();this.j.j=[];this.B=[];this.yl()};
g.h.Nf=function(a){var b=this.yn().filter(function(c){return c.namespace===a});
this.Mg(b);return b};
g.h.Yc=function(a){this.started&&(this.yl(),g.U(a.Rp,16)&&(a=AJa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.h.QF=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.h.TF=function(a){var b=[];if(!a.length)return b;a.sort(g.Kw);a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.h.yl=function(){this.J=!0;if(!this.K){for(var a=3;this.J&&a;)this.J=!1,this.K=!0,this.iO(),this.K=!1,a--;this.D().Nc()&&(a=AJa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.ma(),this.C.start(a)))}};
g.h.iO=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.U(a,32)&&this.Z.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),k=f.next();!k.done;k=f.next())k=k.value,k.active&&(c?0x8000000000000>k.end:!k.contains(b))&&e.push(k);d=d.concat(this.TF(e));f=e=null;c?(a=yJa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=zJa(this.j)):a=this.u<=b&&hG(a)?xJa(this.j,this.u,b):yJa(this.j,b);
d=d.concat(this.QF(a));e&&(d=d.concat(this.TF(e)));f&&(d=d.concat(this.QF(f)));this.u=b;CJa(this,d)}};
g.h.qa=function(){this.B=[];this.j.j=[];g.G.prototype.qa.call(this)};
g.sO.LB(kS,{je:"crmacr",QF:"crmncr",TF:"crmxcr",iO:"crmis",Mg:"crmrcr"});g.w(oS,g.iv);oS.prototype.Jn=function(){return this.K};
oS.prototype.Ck=function(){return Math.max(this.S()-IJa(this,!0),this.videoData.getMinSeekableTime())};g.w(tS,g.G);tS.prototype.Yc=function(){g.zp(this.B)};
tS.prototype.D=function(){var a=this,b=this.ya.Ld(),c=this.ya.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.U(c,8)&&g.U(c,16),k=this.ya.zp().isBackground()||c.isSuspended();uS(this,this.Aa,f&&!k,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.j)&&0<this.j&&qxa(b,this.j);var l=!d||10<Math.abs(d-this.j);uS(this,this.Ga,f&&l&&!k,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var m=f&&tA(b.Vg(),this.j);f=this.ya.Sa;l=!f||!f.policy.qd;var n=function(){b.seekTo(a.j+.001)};
uS(this,this.ma,m&&l&&!k,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return ER(a.ya)};
uS(this,this.ra,m&&!k,e,"qoe.slowseek",l,"new_elem");var p=hG(c);m=g.iG(c);var q=b.Vg(),t=sA(q,d);LJa(this,b,q,d,k,p,m);q=0<=t&&q.end(t)>d+5;q=p&&m&&q;uS(this,this.K,q&&!k,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");uS(this,this.S,q&&!k,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var v=f.getCurrentTime();n=b.yr();n=Bsa(n,v);n=!f.J.u&&d===n;uS(this,this.Ua,p&&m&&n&&!k,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(v)},"seek_to_loader")}uS(this,this.Y,p&&m&&!k,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.Sb(this.ya.Jj,"ad")&&!n;uS(this,this.J,n,!n,"qoe.start15s",function(){a.ya.mf("ad")},"ads_preroll_timeout");
n=this.ya.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.ya,y=x.jh.Pc();(!y||!x.videoData.isAd()||y.getVideoData().Ac!==x.getVideoData().Ac)&&x.videoData.Ge||x.rg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)};
uS(this,this.Ia,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&tA(b.Vg(),d+5)&&q;uS(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");uS(this,this.Ta,g.gG(c)&&g.U(c,64)&&!k,e,"qoe.start15s",function(){},"timeout");
uS(this,this.Z,!!f&&!f.mediaSource&&g.gG(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
tS.prototype.zd=function(a,b,c){b=this.Pb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.ya.zd(new fD(a,b));this.u[a]=!0};
tS.prototype.Pb=function(a){a=Object.assign(this.ya.Pb(!0),a.Pb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
rS.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
rS.prototype.Pb=function(){var a={},b=(0,g.R)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(wS,g.G);g.h=wS.prototype;g.h.setMediaElement=function(a){g.hv(this.Ia);(this.mediaElement=a)?(XJa(this),vS(this)):yS(this)};
g.h.Yc=function(a){this.Z.Yc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Nc()?g.zp(this.ma):this.ma.stop());if(this.mediaElement)if(8===a.Rp.state&&hG(a.state)&&g.iG(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Vg();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?sA(b,Math.max(a-3.5,0)):sA(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.Ta-c)||(this.ya.xa("seekover",{b:rA(b,
"_"),cmt:a}),this.Ta=c,this.seekTo(c,{Er:!0,Ie:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.kb&&0<this.videoData.limitedPlaybackDurationInSeconds&&eT(this.ya,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.h.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&WJa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.h.Li=function(){return this.getCurrentTime()-this.Fd()};
g.h.Ck=function(){return this.u?this.u.Ck():Infinity};
g.h.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return qS(this.u,a)};
g.h.Jn=function(){return!!this.u&&this.u.Jn()};
g.h.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.AR?!1:c.AR;var d=void 0===c.BR?0:c.BR,e=void 0===c.Er?!1:c.Er,f=void 0===c.yJ?0:c.yJ,k=void 0===c.Ie?"":c.Ie;if(void 0===c.Pq?0:c.Pq)a+=this.Fd();c=a;var l=!isFinite(c)||(this.u?qS(this.u,c):c>=this.Kd())||!g.pE(this.videoData);l||this.ya.xa("seeknotallowed",{st:c,mst:this.Kd()});if(!l)return this.B&&(this.B=null,BS(this)),zi(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.S)return this.D;k&&(c=a,(2<=this.X.Y||this.N("html5_log_seek_reasons"))&&
this.ya.xa("seekreason",{reason:k,tgt:c}));this.S&&yS(this);this.D||(this.D=new qO);a&&!isFinite(a)&&xS(this,!1);k=a;(AS(this)&&!(this.mediaElement&&0<this.mediaElement.Hi()&&0<YF(this.mediaElement))||$D(this.videoData)&&this.getMinSeekableTime()===this.Kd(!1)?0:isFinite(k)||!$D(this.videoData))&&(a=VJa(this,a,e));a&&!isFinite(a)&&xS(this,!1);this.C=a;this.Aa=f;this.j=a;this.u&&(e=this.u,f=a,JJa(e,f,!1),KJa(e,f));e=this.ya;f=a;e.Zc.C=f;k=e.ex;k.mediaTime=f;k.j=!0;b&&vT(e);e.un&&f>e.videoData.endSeconds&&
isFinite(f)&&pT(e);f<e.Kd()-.01&&(k=dG(e.playerState,2),g.U(k,8)&&(k=dG(k,4)),e.Ub(k));e.ea("SEEK_TO",e,f);this.D&&(b?d&&this.Ga.start(d):(this.S=!0,PJa(this)));(b=this.ya.un)&&a>b.start&&pT(this.ya);return this.D};
g.h.Kd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Kd();var b;if(!this.N("html5_linear_live_max_seekable_killswitch")&&GE(this.videoData)&&(null==(b=this.mediaElement)?0:b.Mm())&&this.videoData.j)return a=this.getCurrentTime(),jwa(1E3*this.getIngestionTime(a))+a;if($D(this.videoData)&&this.videoData.Wh&&this.videoData.j)return this.videoData.j.Kd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Ck();a=this.videoData.Kd();this.policy.j&&
this.mediaElement&&(a=Math.max(a,rxa(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?as()?jwa(this.mediaElement.iA().getTime()):YF(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.h.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(GE(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.getIngestionTime(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.h.qa=function(){zS(this,null);this.Z.dispose();g.G.prototype.qa.call(this)};
g.h.Pb=function(){var a={};this.Sa&&Object.assign(a,this.Sa.Pb());this.mediaElement&&Object.assign(a,this.mediaElement.Pb());return a};
g.h.hI=function(a){this.timestampOffset=a};
g.h.getStreamTimeOffset=function(){return $D(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.h.Fd=function(){return this.timestampOffset};
g.h.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)};
g.h.vr=function(){if(!this.mediaElement)return 0;if(qE(this.videoData)){var a=rxa(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.Kd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.vr()};
g.h.rC=function(a){this.J&&(this.J.j=a.audio.index)};
g.h.N=function(a){return this.X&&this.X.N(a)};CS.prototype.isFinished=function(){return this.finished};
CS.prototype.start=function(){this.started=!0};
CS.prototype.reset=function(){this.finished=this.started=!1};DS.prototype.encrypt=function(a){return(new VB(this.j.j)).encrypt(a,this.iv)};
DS.prototype.decrypt=function(a,b){return(new VB(this.j.j)).decrypt(a,b)};g.w(ES,g.G);g.h=ES.prototype;g.h.Yg=function(a){var b;return!(null==(b=this.ge.get(a))||!b.Je.totalLength)};
g.h.Zi=function(a){a=this.ge.get(a);var b=a.Je;a.EA+=b.totalLength;a.Je=new iy;return b};
g.h.Jf=function(a){return this.ge.get(a).Jf};
g.h.Gg=function(a){return this.ge.get(a).Gg};
g.h.Ry=function(a){(a=this.ge.get(a))&&!a.Gg&&(a.Gg=!0)};
g.h.qa=function(){g.G.prototype.qa.call(this);for(var a=g.r(this.ge.keys()),b=a.next();!b.done;b=a.next())GS(this,b.value);this.ge.clear()};JS.prototype.decrypt=function(a){var b=this,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Nk.Hd("omd_s");c=new Uint8Array(16);LB()?d=new UB(a):e=new VB(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Va(3);break}f=b.j.shift();if(!d){k=e.decrypt(ny(f.buffer),c);m.Va(4);break}return g.A(m,d.decrypt(ny(f.buffer),c),5);case 5:k=m.u;case 4:l=k;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new iy([l]);rKa(b.Nk.Cd,
f.nJ,n);m.Va(2);break;case 3:b.Nk.Hd("omdf"),LS(b),b.u=!1,b.Nk.XH(),g.sa(m)}})};
JS.prototype.enqueue=function(a,b,c){this.j.push({nJ:a,buffer:b,isEncrypted:c});this.u||LS(this)};var yKa=!!Uint8Array.prototype.copyWithin,MS=[],NS=[],uKa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],PS=[],OS=[],RS=[],QS=[];var VS,zTa=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),L0={},RKa=(L0.a=1,L0.o=3,L0.meac3=5,L0.mac3=7,L0),M0={},QKa=(M0["1h"]=8,M0["9h"]=4,M0["1"]=8,M0["9"]=4,M0.h=2,M0),FKa=[["337","336","335"],["701","700"],["315","308","303","302"],["299","298"],["401","400","399","398"],["313","271","248","247","244"],["137","136"]],HKa=[["140"],["251"]],N0={},DKa=(N0["247"]=["317","273","318","280","279"],N0["136"]=["144","222","223","143","142"],N0["140"]=["149"],N0),O0={},CKa=(O0["398"]=
["397","396","395","394"],O0["247"]=["244","243","242"],O0["136"]=["135","134","133","160"],O0["251"]=["250"],O0),P0={},MKa=(P0["140"]={numChannels:2},P0["251"]={audioSampleRate:48E3,numChannels:2},P0),Q0={},LKa=(Q0["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Q0["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Q0["335"]={width:1920,height:1080,bitrate:75E5,fps:30},Q0["701"]={width:3840,height:2160,bitrate:2E7,fps:30},Q0["700"]={width:2560,height:1440,bitrate:1E7,fps:30},Q0["315"]={width:3840,
height:2160,bitrate:2E7,fps:60},Q0["308"]={width:2560,height:1440,bitrate:1E7,fps:60},Q0["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Q0["302"]={width:1280,height:720,bitrate:25E5,fps:60},Q0["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Q0["298"]={width:1280,height:720,bitrate:35E5,fps:60},Q0["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Q0["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Q0["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Q0["398"]={width:1280,height:720,bitrate:1E6,
fps:60},Q0["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Q0["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Q0["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Q0["247"]={width:1280,height:720,bitrate:15E5,fps:30},Q0["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Q0["136"]={width:1280,height:720,bitrate:3E6,fps:30},Q0),R0={},AKa=(R0["133"]=240,R0["134"]=360,R0["135"]=480,R0["136"]=720,R0["137"]=1080,R0["242"]=240,R0["243"]=360,R0["244"]=480,R0["247"]=720,R0["248"]=1080,R0["298"]=720,
R0["299"]=1080,R0["302"]=720,R0["303"]=1080,R0["395"]=240,R0["396"]=360,R0["397"]=480,R0["398"]=720,R0["399"]=1080,R0),S0={},KKa=(S0["1"]='video/mp4; codecs="av01.0.08M.08"',S0["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',S0["9"]='video/webm; codecs="vp9"',S0["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',S0.h='video/mp4; codecs="avc1.64001e"',S0.o='audio/webm; codecs="opus"',S0.a='audio/mp4; codecs="mp4a.40.2"',S0);g.h=NKa.prototype;g.h.XH=function(){this.Cd.XH()};
g.h.feed=function(a,b){var c=b.totalLength;switch(a){case 10:a=bJ(b,lKa);var d=a.s_,e=!1;switch(d){case 0:this.C=!a.hQ.FW;this.iv=a.hQ.iv;break;case 2:break;case 23:var f=this.Cd;a=a.bX;f.Hd("omp_r");a.videoId&&(f.zs=a.videoId);f.zs!==f.videoData.videoId&&(f.videoData.nS=f.zs,f.xa("ompp","vid."+f.zs));f.vH=!0;break;case 24:a=this.Cd;a.Hd("omp_c");a.vH=!1;a.Bv=!1;null!=(c=a.me||(null==(f=a.Df)?void 0:f.get(a.zs)))&&(c.j=!0);XS(a);break;default:e=!0}this.Cd.Pi&&this.Cd.xa("ombup","id.10;pt."+d+";len."+
b.totalLength+(e?";ignored.1":""));this.u=d;break;case 11:OKa(this,b);break;case 20:f=new WI(b);var k={sW:ZI(f,1),videoId:aJ(f,2),itag:ZI(f,3),lmt:ZI(f,4),xtags:aJ(f,5),DA:ZI(f,6),Pu:PAa(f,8),eD:ZI(f,9),mia:ZI(f,10),startTimeMs:ZI(f,11),durationMs:ZI(f,12),YB:ZI(f,14)};var l=k.sW,m=k.itag,n=k.Pu;a=k.DA;c=k.eD;var p=k.startTimeMs,q=k.durationMs;f=this.Cd.N("html5_onesie_ads");var t=k.videoId;f=((void 0===f?0:f)?(t||"")+";":"")+k.itag+";"+(k.lmt||0)+";"+(k.xtags||"");m=zTa.has(aA[""+m]);n&&this.Hd(m?
"oais_r":"ovis_r");n=void 0!==this.j[f];this.Cd.Pi&&this.Cd.xa("ombup","id.20;len."+b.totalLength+";hid."+l+";fid"+f);this.B[l]=f;n?(d=this.j[f].headers,d.push(k),k.YB&&2===d.length&&(b=this.Cd,d=d[0].YB+d[1].YB,e={DA:null!=a?a:-1,eD:null!=c?c:-1,startTimeMs:null!=p?p:-1,durationMs:null!=q?q:-1},null!=(a=KS(b,f))&&(c=a.ge.get(f),c.zk=d,e&&(0>=e.DA||0>=e.eD||0>=e.durationMs||0>e.startTimeMs?HS(a,f):c.PO.push(e))),XS(b))):(this.j[f]={UN:!1,Gn:m,headers:[k]},b=this.Cd,b.Df?(e=f.split(";")[0],b.Df.has(e)||
(a=new ES(b),b.Df.set(e,a),g.H(b,a)),null==(d=b.Df.get(e))||cKa(d,f,m)):null==(e=b.me)||cKa(e,f,m));break;case 21:PKa(this,b,!1);break;case 12:PKa(this,b,!0);break;case 22:this.Ry(b);break;case 37:b=bJ(b,gKa);if(b.jF||b.TJ)this.Cd.xu=b;break;default:this.Cd.Pi&&this.Cd.xa("ombup","id."+a+";len."+c+";ignored.1")}};
g.h.Ry=function(a){var b=oy(a,0);this.Cd.Pi&&this.Cd.xa("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.Cd.Ry(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].YB||sKa(this.queue,a))};
g.h.dI=function(a,b){var c=this,d,e,f,k,l,m,n,p,q,t,v;return g.B(function(x){switch(x.j){case 1:c.Cd.dI();d=ny(a);if(!b){f=d;x.Va(2);break}return g.A(x,ZKa(c.Cd,d,c.iv),3);case 3:f=x.u;case 2:e=f;if(!c.Cd.enableCompression){x.Va(4);break}return g.A(x,zKa(e),5);case 5:e=x.u,c.Cd.xa("decompression",{ds:"DecompressionStream"in window});case 4:try{k=bJ(e,qKa)}catch(y){return l=y instanceof Error?{name:y.name,message:y.message}:{},l.webcrypto=""+ +!!LB(),l.enc=""+ +c.C,m=new fD("onesie.response.parse",
l),x.return(Promise.reject(m))}if(1!==k.onesieProxyStatus)return n={st:k.onesieProxyStatus,webcrypto:""+ +!!LB(),textencoder:""+ +!!g.C.TextEncoder},p=new fD("onesie.response.badproxystatus",n),x.return(Promise.reject(p));if(200!==k.httpStatus)return q={st:k.httpStatus},t=new fD("onesie.response.badstatus",q),x.return(Promise.reject(t));v=g.uy(k.body);return x.return(v)}})};
g.h.Hd=function(a){this.Cd.Hd(a)};
g.h.Os=function(a){return this.Cd.Os(a)};YS.prototype.feed=function(a){for(jy(this.j,a);;){var b=0;b=g.r(WKa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(WKa(this.j,b));var c=b.next().value;b=b.next().value;if(0>a||0>c||!(b+c<=this.j.totalLength))break;b=this.j.split(b).Ns.split(c);c=b.Ns;this.callbacks.Nk.feed(a,b.JG);this.j=c}};
YS.prototype.dispose=function(){this.j=new iy};g.w(ZS,g.G);g.h=ZS.prototype;g.h.Hd=function(a){this.ya.Hd(a)};
g.h.Os=function(a){return this.ya.Os(a)};
g.h.RH=function(){this.Hd("orfb");this.PB=!0;if($Ka(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Dk(),rt:(1E3*TGa(this.Bm)).toFixed(),shost:g.mj(this.ov),trigger:"o1"};this.xa("pathprobe",eD(a))}};
g.h.dI=function(){this.Hd("orpr");this.WN=!0};
g.h.XH=function(){if(this.Df)for(var a=g.r(this.Df.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Df.get(b.value))||IS(c)}else null==(a=this.me)||IS(a)};
g.h.xa=function(a,b,c){this.ya.xa(a,b,void 0===c?!1:c)};
g.h.Ry=function(a){var b;null==(b=KS(this,a))||b.Ry(a)};
g.h.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,q,t,v,x;return g.B(function(y){switch(y.j){case 1:a.AC.start();a.Hd("ogpd");if(b=XKa(a.videoData,a.Ep)){y.Va(2);break}return g.A(y,YKa(a.videoData,a.Ep),3);case 3:b=y.u;case 2:if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new fD("onesie.unavailable.hotconfig",c),a.fail(d),y.return(a.Em);a.QQ=cy(b);var z=a.playerRequest,E=a.X,J=a.videoData,I=kO(a.QQ);I=void 0===I?!1:I;var N=E.Uh,Z="https://web.archive.org/web/20220414023957/https://youtubei.googleapis.com/youtubei/"+
N.innertubeApiVersion+"/player",K=g.BE(J);N.VG&&K||(Z=Z+"?key="+N.innertubeApiKey);N=[{name:"Content-Type",value:"application/json"}];K&&N.push({name:"Authorization",value:"Bearer "+K});N.push({name:"User-Agent",value:g.qb()});E.N("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?N.push({name:"X-Goog-EOM-Visitor-Id",value:g.P("EOM_VISITOR_DATA")}):(J=J.visitorData||g.P("VISITOR_DATA"))&&N.push({name:"X-Goog-Visitor-Id",value:J});(J=g.VA(E.experiments,"debug_sherlog_username"))&&N.push({name:"X-Youtube-Sherlog-Username",
value:J});z=JSON.stringify(z);vy?z=vy.encode(z):(J=new Uint8Array(Math.ceil(1.2*z.length)),K=wy(z,J),J.length<K&&(J=new Uint8Array(K),K=wy(z,J)),J.length>K&&(J=J.subarray(0,K)),z=J);E=E.N("html5_onesie_prefer_trusted_host");f={url:Z,httpHeaders:N,postBody:z,proxiedByTrustedBandaid:E&&I,skipResponseEncryption:E&&I};g.ta(y,4);if(!LB()||!a.N("html5_use_native_crypto_for_request")){E=a.X;N=a.videoData;z=a.ya.getPlayerSize();J=a.ya.getVisibilityState();I=a.IF.onesieUstreamerConfig;Z=null==(k=a.videoData.DL)?
void 0:k.Uz;K=a.zC;var ra=jJ(f,pKa);ra=K.encrypt(ra);K={encryptedOnesieInnertubeRequest:ra,encryptedClientKey:K.j.encryptedClientKey,iv:K.iv,hmac:Sta(new Rta(K.j.B),ra,K.iv),serializeResponseAsJson:!0,enableAdPlacementsPreroll:E.N("html5_onesie_ads"),enableCompressionResponseOnly:TKa(E,!!f.skipResponseEncryption)};E=SKa(E,N,z,J);e={WG:K,HM:E,onesieUstreamerConfig:I,Uz:Z};y.Va(6);break}return g.A(y,VKa(f,a.zC,a.X,a.videoData,a.ya.getPlayerSize(),a.ya.getVisibilityState(),a.IF.onesieUstreamerConfig,
null==(l=a.videoData.DL)?void 0:l.Uz),7);case 7:e=y.u;case 6:g.ua(y,5);break;case 4:return m=g.va(y),a.logger.info("Failed to create OnesieRequestProto."),a.fail(m),y.return(a.Em);case 5:return a.enableCompression=e.WG.enableCompressionResponseOnly,a.Hd("osor"),n=sBa(a.X),p=jJ(e,nKa),q={method:"POST",body:p,headers:{"Content-Type":"text/plain",Referer:location.origin}},t=a.N("html5_onesie_media_capabilities"),I=b,E=a.videoData,Z=bLa(a),N=t,N=void 0===N?!1:N,I.set("ack","1"),I.set("cpn",E.clientPlaybackNonce),
I.set("opr","1"),z=E.V(),z.N("html5_onesie_ads")||(I.set("oaad","0"),I.set("oavd","0")),I.set("por","1"),LB()||I.set("onem","1"),0<E.startSeconds&&z.N("html5_onesie_nonzero_playback_start")&&(I.set("osts",""+E.startSeconds),I.set("osbr","1"),I.set("osnz","1")),N||(Z?(E=Z.audio,I.set("pvi",Z.video.join(",")),I.set("pai",E.join(",")),Gx()||I.set("osh","1")):(I.set("oad","0"),I.set("ovd","0"),I.set("oaad","0"),I.set("oavd","0"))),a.Pi&&a.xa("ombrs","1"),v=a.ya.V().schedule,a.Bm=new GQ(a,{Ph:v,OF:a.Pi}),
b.set("rn",""+a.Bm.requestNumber),a.ov=ay(b),OGa(a.Bm,a.ov),a.Hd("ocs"),Gx()?Hx()?a.xhr=new FQ(a.ov,n,a.Bm,q):a.xhr=new OQ(a.ov,n,a.Bm,q):a.xhr=new PQ(a.ov,a.Bm,q),a.YP.start(),a.Pi&&(null==(x=a.Ep)?0:x.D)&&a.xa("ombhr",a.Ep.D),y.return(a.Em)}})};
g.h.hv=function(){};
g.h.hs=function(){!this.PB&&this.xhr.Dk()&&this.RH();this.Ap()};
g.h.Zp=function(){this.Ap();if(!this.isDisposed()){var a=cLa(this),b=this.xhr;a.rc=b.status;if(b.jf()){var c="onesie.net";a.msg=b.jf()}else 400<=b.status?c="onesie.net.badstatus":b.iz()?this.WN||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new fD(c,a)):(this.Hd("orf"),QGa(this.Bm,(0,g.R)(),b.Dk(),0),this.Pi&&this.xa("rqs",a));this.Pi&&this.xa("ombre","ok."+ +!c);this.Bv=!1;XS(this);WS(this.Nk);var d;if(c=null==(d=this.Ep)?void 0:aEa(d))for(d=
0;d<c.length;d++)this.xa("pathprobe",c[d])}};
g.h.N=function(a){return this.X.N(a)};
g.h.YW=function(){if($Ka(this)&&this.Ep&&(!this.PB||this.N("html5_onesie_probe_ec_hosts"))){var a=this.Ep;if(a.X.experiments.jb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:cy(b.location);c&&jO(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:cy(d.location))&&jO(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:cy(e.location))&&jO(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:cy(c.location))&&jO(a,d,"o3",this)}}};
g.h.RN=function(){this.logger.info("Onesie request timed out");this.Bv=!1;if(!XS(this)){var a=cLa(this);a.timeout="1";this.fail(new fD("onesie.request",a))}};
g.h.fail=function(a){var b=this;a=hD(a);this.OB?this.ya.zd(a):(this.Em.reject(a),this.OB=!0);WS(this.Nk);this.AC.stop();this.Hd("ore");var c,d;null==(c=this.Ep)||null==(d=aEa(c))||d.forEach(function(e){b.xa("pathprobe",e)});
this.dispose()};
g.h.qa=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();WS(this.Nk);this.CR.dispose();g.G.prototype.qa.call(this)};
g.h.Ap=function(){try{var a=this.xhr;102400<a.Dk()&&!this.jO&&(this.Hd("or100k"),this.jO=!0);for(var b={};a.Yg();){var c=a.Zi();b.HD=c.totalLength;this.Pi&&this.xa("ombrss","len."+b.HD);this.CR.feed(c);b={HD:b.HD}}if(this.Df)for(var d=g.r(this.Df.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Df.get(e.value))||IS(a);else{var f;null==(f=this.me)||IS(f)}}catch(k){this.fail(k)}};var hLa=!1;g.w(g.dT,g.iv);g.h=g.dT.prototype;g.h.qa=function(){this.EQ();this.OC.stop();window.clearInterval(this.HC);vEa(this.uf);this.visibility.unsubscribe("visibilitystatechange",this.uf);qJa(this.Zb);g.nf(this.Zb);jT(this);g.vp.sj(this.ys);this.Eh();this.vf=null;g.nf(this.videoData);g.nf(this.xk);g.of(this.pX);this.un=null;g.iv.prototype.qa.call(this)};
g.h.jz=function(a){this.Zb.jz(a)};
g.h.yv=function(a,b,c,d){this.Zb.yv(a,b,c);this.N("html5_log_media_perf_info")&&this.xa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.h.gG=function(){var a;return null==(a=this.Sa)?void 0:a.gG()};
g.h.hG=function(){var a;return null==(a=this.Sa)?void 0:a.hG()};
g.h.getVideoData=function(){return this.videoData};
g.h.V=function(){return this.X};
g.h.zp=function(){return this.visibility};
g.h.Ld=function(){return this.mediaElement};
g.h.tF=function(){if(this.videoData.isLoaded()){var a=this.xk;0<g.sB(a.j.experiments,"html5_player_min_build_cl")&&441272844<g.sB(a.j.experiments,"html5_player_min_build_cl")&&uIa(a,"oldplayer");xLa(this)}else this.videoData.De||this.videoData.pk?this.Ru&&g.IC(this.X)&&this.videoData.isLivePlayback||(this.videoData.De?Wva(this.videoData):(a=this.Zb,a.qoe&&(a=a.qoe,TR(a,"protected"),a.j.videoData.Y?a.TQ():a.j.videoData.subscribe("dataloaded",a.TQ,a)),Sva(this.videoData))):!this.videoData.La&&this.VU&&
wLa(this)};
g.h.Fu=ba(5);g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.isBackground=function(){return this.visibility.isBackground()};
g.h.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.ea("internalAbandon"),this.RI(!0),qJa(this.Zb),g.nf(this.Zb),g.vp.sj(this.ys));var a;null==(a=this.X.ai)||a.flush()};
g.h.Us=function(){pJa(this.Zb)};
g.h.rg=function(a,b,c,d,e,f){var k,l;g.Kf(ZSa,c)?k=c:c?l=c:k="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+mAa());a={errorCode:a,errorDetail:e,errorMessage:l||g.IK[k]||"",RF:k,yk:f||"",xI:d,aB:b};hT(this,"dataloaderror");this.Ub(bG(this.playerState,128,a));g.vp.sj(this.ys);jT(this);this.Yn()};
g.h.mf=function(a){this.Jj=this.Jj.filter(function(b){return a!==b});
this.Vn.started&&iT(this)};
g.h.gm=function(){var a;(a=!!this.Jj.length)||(a=this.nh.j.j[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.h.Jn=function(){return this.Zc.Jn()};
g.h.Nc=function(){return this.playerState.Nc()};
g.h.getPlayerState=function(){return this.playerState};
g.h.getPlayerType=function(){return this.playerType};
g.h.getPreferredQuality=function(){if(this.vf){var a=this.vf;a=a.videoData.vt.compose(a.videoData.AQ);a=Ox(a)}else a="auto";return a};
g.h.Px=ba(9);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.h.setMediaElement=function(a){if(this.mediaElement&&a.nf()===this.mediaElement.nf()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.hv(this.Xv),this.mediaElement=a,HLa(this),this.Zc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Eh();if(!this.playerState.isError()){var b=dG(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=cG(b,1));a.isView()&&(b=dG(b,64));this.Ub(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);
HLa(this);this.Zc.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.xk.uy&&(a=this.mediaElement,a.B||a.dg()||!Esa()||(a.B=a.xr()))}};
g.h.Eh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.Zc.C=c);this.Zc.setMediaElement(null);tT(this);this.Sa&&(g.zp(this.Sa.ma),uT(this,b));this.Tr.stop();if(this.mediaElement&&(!this.Vn.started||this.playerState.isError()||g.U(this.playerState,2)||this.Ub(cG(this.playerState,512)),this.mediaElement)){g.hv(this.Xv);if(a||!this.mediaElement.isView())this.mediaElement.stopVideo(),yT(this);this.mediaElement=null}}};
g.h.playVideo=function(){var a=this,b,c,d,e,f;return g.B(function(k){if(1==k.j){if(!a.N("html5_clear_globalcache_killswitch")){var l=window.google_image_requests;l&&10<l.length&&(window.google_image_requests=l.slice(-10))}if(g.U(a.playerState,128))return k.return();if(a.xk.TB())return a.ea("signatureexpired"),k.return();a.mediaElement&&(l=a.Zb,KR(l.C),l.qoe&&VR(l.qoe));oT(a);g.U(a.playerState,64)&&a.Ub(cG(a.playerState,8));return a.Vn.isFinished()&&a.mediaElement?a.vf||!a.Wy?k.Va(2):g.A(k,a.Wy,2):
k.return()}if(!a.videoData.C)return a.videoData.isLivePlayback&&!g.zB(a.X.u,!0)?(b="html5.unsupportedlive",c=2):(b=dE(a.videoData)?"fmt.unplayable":"fmt.noneavailable",c=1),g.Jv(Error("selectableFormats")),a.rg(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),k.return();if(a.eg()&&a.videoData.C.j)return k.return(gT(a));if(a.videoData.isLivePlayback){d=a.getCurrentTime()<a.getMinSeekableTime()-15;e=g.pE(a.videoData)&&g.U(a.playerState,4);(f=!a.N("html5_dompaused_unpause_killswitch")&&
g.U(a.playerState,1024))||!d&&!e||(e?a.seekTo(Infinity,{Ie:"videoplayer_unpauseLiveOnly"}):a.seekTo(a.getMinSeekableTime(),{Ie:"videoplayer_outOfWindow"}));!a.isAtLiveHead(void 0,!0)&&a.Jn()&&a.seekTo(Infinity,{Ie:"videoplayer_peggedToLive"});if(l=g.U(a.playerState,256)&&a.videoData.kb)l=a.Zc,l=l.S&&!isFinite(l.j);if(l)return a.Ub(eG(a.playerState,8,4)),k.return()}g.U(a.playerState,4)&&g.U(a.playerState,16)&&a.Ub(eG(a.playerState,9,4));if(bT(a))return MLa(a),k.return();xT(a);g.sa(k)})};
g.h.jp=function(){if(!this.vf)return[];var a=zIa(this.Bh,this.vf,this.Du());return this.vf.j.jp(a)};
g.h.Du=function(){var a=this.xe?this.xe.Du():bE(this.videoData)&&this.videoData.j&&Wx(this.videoData.j)?this.videoData.Tg?SD:hIa:SD;this.JI&&(a=a.compose(NSa));return a};
g.h.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?Ox(this.videoData.vt):Nx[RA()]};
g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.h.setUserAudio51Preference=function(a){this.videoData.Pe!==a&&(this.videoData.Pe=a,g.gw("yt-player-audio51",a,2592E3),GR(this))};
g.h.getUserAudio51Preference=function(){var a;return null!=(a=g.hw("yt-player-audio51"))?a:1};
g.h.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){if(this.N("html5_native_audio_track_switching")){var a=DLa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.h.xr=function(){return this.mediaSource};
g.h.ev=function(a){this.qv.set(a.initData,a);this.xe&&(this.xe.ev(a),this.N("html5_eme_loader_sync")||this.qv.remove(a.initData))};
g.h.rC=function(a){rT(this,a.reason,a.video.info,a.audio.info);this.Zc.rC(a)};
g.h.sC=function(a){this.ea("localmediachange",a)};
g.h.Sv=function(){var a;null==(a=this.Sa)||a.Sv(this.X)};
g.h.TB=function(){return this.xk.TB()};
g.h.handleError=function(a){this.xk.handleError(a)};
g.h.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(eG(this.playerState,4,8));else return;this.N("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.Dz()||(g.U(this.playerState,128)||(a?this.Ub(cG(this.playerState,256)):this.Ub(eG(this.playerState,4,8))),this.mediaElement&&this.mediaElement.pause(),g.pE(this.videoData)&&this.Sa&&uT(this,!1))};
g.h.stopVideo=function(){this.pauseVideo();this.Sa&&(uT(this,!1),YQ(this.Sa))};
g.h.Yn=function(a){a=void 0===a?!1:a;var b;null==(b=this.mediaElement)||b.stopVideo();yT(this);jT(this);g.U(this.playerState,128)||(a?this.Ub(dG(dG(cG(this.playerState,4),8),16)):this.Ub(bG(this.playerState)));this.videoData.videoId&&this.X.Z.remove(this.videoData.videoId)};
g.h.seekTo=function(a,b){b=void 0===b?{}:b;g.U(this.playerState,2)&&bT(this);if(this.td){var c=this.td;isFinite(a)&&a<c.ya.Ck()?c.isLiveNow=!1:c.isLiveNow=!0}this.Zc.seekTo(a,b);this.N("html5_cuerange_synconseek_killswitch")||this.nh.yl()};
g.h.getCurrentTime=function(){return this.Zc.getCurrentTime()};
g.h.Li=function(){return this.Zc.Li()};
g.h.Ck=function(){return this.Zc.Ck()};
g.h.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Fd())};
g.h.Eu=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Eu());return 0<=a?a:this.getCurrentTime()};
g.h.getIngestionTime=function(){var a;return(null==(a=this.videoData.j)?0:a.getIngestionTime)?this.videoData.j.getIngestionTime(this.getCurrentTime()-this.Fd()):this.N("html5_disable_limit_ingestion_tvos")&&!as()||!this.mediaElement||!(a=this.mediaElement.iA())||(a=a.getTime(),isNaN(a))?NaN:a/1E3+this.getCurrentTime()};
g.h.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Fd():this.Kd()?this.Kd():0};
g.h.zB=function(){var a=new uJa;if(this.Sa){var b=this.X.schedule;a.j=b.Y;a.C=b.ma;a.bandwidthEstimate=cC(b);a.u={d:aC(b).toFixed(2),st:(1E9*(b.j.rh()||0)).toFixed(2),bw:b.B.rh().toFixed(0),abw:b.J.rh().toFixed(0),v50:ZB(b.u,.5).toFixed(2),v92:ZB(b.u,.92).toFixed(2),v96:ZB(b.u,.96).toFixed(2),v98:ZB(b.u,.98).toFixed(2)};b=this.Sa;if(b.mediaSource&&!b.mediaSource.Jf()&&(a.Tq=AQ(b.videoTrack,b.currentTime),a.B=AQ(b.audioTrack,b.currentTime),b.policy.rb)){var c=zQ(b.videoTrack),d=zQ(b.audioTrack),e=
rA(b.mediaSource.u.ag(),"_",5),f=rA(b.mediaSource.j.ag(),"_",5);Object.assign(a.u,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=CP(b.S)}else this.mediaElement&&(a.Tq=ZF(this.mediaElement));a.D=this.isAtLiveHead()&&this.Nc()?aT(this):NaN;return a};
g.h.vr=function(){return this.mediaElement?g.pE(this.videoData)?1:qE(this.videoData)?this.isAtLiveHead()||this.Jn()?1:this.Zc.vr():this.mediaElement.vr():0};
g.h.Pb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Zb.Pb());this.mediaElement&&(Object.assign(b,this.mediaElement.Pb()),Object.assign(b,this.Vx()));this.Sa&&Object.assign(b,this.Sa.Pb());this.xe&&(b.drm=JSON.stringify(this.xe.Pb()));b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.gm()&&(b.prerolls=this.Jj.join(","));this.videoData.ql&&(b.ismb=this.videoData.ql);"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.jh.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&OA(this.videoData.j)&&(b.segduration=OA(this.videoData.j)),a=this.Zc,b.lat=a.J?aFa(a.J.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Oe.toFixed(3);if(a=g.qT(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=RA();b.release_version="youtube.player.web_20220412_01_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.h.addCueRange=function(a){this.Xw([a])};
g.h.removeCueRange=function(a){this.nh.Mg([a])};
g.h.Ax=function(a,b){return this.nh.Ax(a,b)};
g.h.Xw=function(a,b){this.nh.je(a,b)};
g.h.VC=function(a){this.nh.Mg(a)};
g.h.yn=function(){return this.nh.yn()||[]};
g.h.eg=function(){return this.visibility.eg()};
g.h.iq=function(){this.mediaElement&&this.mediaElement.iq()};
g.h.i_=function(){hT(this)};
g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.h.iI=function(a){var b=a.target.dg();if(this.mediaElement&&this.mediaElement.dg()&&this.mediaElement.dg()===b){PLa(this,a.type);switch(a.type){case "error":var c=$F(this.mediaElement)||"";if("capability.changed"===c){gT(this);return}if(0<this.mediaElement.qk()&&HR(this.xk,c,{msg:this.mediaElement.jf()}))return;if(this.isBackground()&&4===this.mediaElement.qk()){this.Yn();kT(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.mediaSource||0<
c)&&1!==c&&this.Zk(c);break;case "ratechange":this.Sa&&this.Sa.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.nh;c.started=!0;c.yl();this.Zb.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":RLa(this);this.ea("onLoadedMetadata");ILa(this);break;case "loadstart":ILa(this);break;case "progress":case "suspend":this.Tb();this.ea("onLoadProgress",this,this.vr());break;case "playing":VJ(this.Hb,"plev");this.NI&&(this.NI=!1,this.isAtLiveHead()||this.seekTo(Infinity,{Ie:"videoplayer_onPlaying"}));
break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.Hi();if(c&&(!this.mC||d))return;this.mC=this.mC||!!this.mediaElement.getCurrentTime();wT(this);this.Tb();if(!this.mediaElement||this.mediaElement.dg()!==b)return;this.ea("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.yr().length&&0===this.mediaElement.Vg().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&
this.Sa)return;break;case "resize":RLa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.pM&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.Qs){kT(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.dg()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.ex;var e=this.mediaElement;d=b.state;e=e?e:a.target;var f=
e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var k=e.Gg()||1<f&&1.1>Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Gg();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!lS(c,f);if(l||k&&f)0<e.uB()&&e.dg()&&(d=14);else switch(a.type){case "error":$F(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)&-1093;lS(c,e.getCurrentTime())&&(d&=-2);g.U(b,
1)&&mS(c,e.getCurrentTime(),(0,g.R)(),ZF(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);mS(c,e.getCurrentTime(),(0,g.R)(),ZF(e));break;case "timeupdate":k=g.U(b,16),l=g.U(b,4),(g.U(b,8)||k)&&!l&&lS(c,e.getCurrentTime())&&(d=8),mS(c,e.getCurrentTime(),(0,g.R)(),ZF(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,e=$F(d),k=1,e?("capability.changed"===e&&(k=2),l="GENERIC_WITHOUT_LINK",f=d.Pb(),f.mediaElem="1",/AUDIO_RENDERER/.test(d.jf())&&
(l="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.IK[l]||"",RF:l,xI:eD(f),aB:k}):d=null);b=bG(b,c,d)}!g.U(this.playerState,1)&&g.U(b,1)&&zT(this,"evt"+a.type);this.Ub(b)}}};
g.h.FX=function(a){a="available"===a.j.availability;a!==this.jy&&(this.jy=a,this.ea("airplayavailabilitychange"))};
g.h.GX=function(){var a=(0,g.R)(),b=this.mediaElement.eg();this.xa("airplay",{ia:b});if(!this.N("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.VB)||!(2E3>a-this.VB))this.VB=a,b!==this.eg()&&(a=this.visibility,a.j!==b&&(a.j=b,a.uf()),this.xa("airplay",{rbld:b}),GR(this)),this.ea("airplayactivechange")};
g.h.Yx=function(a){if(this.Sa){var b=this.Sa,c=b.B,d=b.currentTime,e=Date.now()-c.Y;c.Y=NaN;c.xa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&CFa(c,d,c.D,c.B);MP(c,4,"adf");g.zp(b.ma)}};
g.h.Tb=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){RJa(this.Zc,this.Nc());var c=this.getCurrentTime();this.Sa&&(g.U(this.playerState,4)&&g.pE(this.videoData)||AHa(this.Sa,c));5<c&&(this.Zc.C=c);var d=g.Wr();d?g.vp.sj(this.ys):g.Dr(this.ys);var e=this.mediaElement.Mm();if((g.iG(this.playerState)||!e||GE(this.videoData))&&!g.U(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.U(b.playerState,128)){dD(b.X)&&g.sB(b.X.experiments,"html5_log_rebuffer_events")&&
PLa(b,"pfx");var k=b.getCurrentTime(),l=ZF(b.mediaElement),m=g.U(b.playerState,8),n=lS(b.ex,k),p=mS(b.ex,k,(0,g.R)(),l);m&&n?b.Ub(dG(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-k)?(b.xa("setended",{ct:k,bh:l,dur:m,live:n}),n&&b.N("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.wr()?b.seekTo(0,{Ie:"videoplayer_loop"}):AO(b))):(g.iG(b.playerState)||zT(b,"progress_fix"),b.Ub(cG(b.playerState,1)))):(m&&!n&&!p&&
0<k&&(m=(Date.now()-b.uy)/1E3,n=b.getDuration(),k>n-1&&b.xa("misspg",{t:k.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.U(b.playerState,4)&&g.iG(b.playerState)&&5<ZF(b.mediaElement)&&b.Ub(dG(b.playerState,1)));b.Tb()}};
0===this.mediaElement.yr().length?this.ys=d?g.vp.Sg(f,100):g.Br(f,100):this.ys=d?g.vp.Sg(f,500):g.Br(f,500)}this.videoData.Kw=c;!a&&this.Nc()&&LLa(this);GIa(this.Bh,this.vf,this.Ld(),this.isBackground())&&hR(this);HIa(this.Bh,this.videoData.u)&&(this.Zb.zd("qoe.restart","droprate."+this.Bh.K),Dta(this.X.u),GR(this));this.ea("progresssync",this,a);!this.N("html5_progress_event_linear_paused_killswitch")&&e&&GE(this.videoData)&&this.ea("onVideoProgress",this,this.getCurrentTime())}};
g.h.RV=function(){this.rg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.h.Mx=function(){return this.Zb.Mx()};
g.h.dG=function(){return this.Sa?this.Sa.dG():cC(this.X.schedule,!0)};
g.h.ZU=function(){g.iG(this.playerState)&&EIa(this.Bh,this.vf)&&hR(this)};
g.h.Ub=function(a){if(!g.fG(this.playerState,a)){var b=new g.wF(a,this.playerState);this.playerState=a;QLa(this);var c=!this.JC.length;this.JC.push(b);var d=this.mediaElement&&this.mediaElement.yw();if(g.yF(b,1)&&!g.U(b.Rp,16)&&!d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.Sa){d=this.Sa;d.va=!0;if(d.policy.Qe&&d.C){var e={rebuf:d.va,ct:d.currentTime.toFixed(3)};if(d.Z){e.sq=d.Z.info.j[0].Ja;e.itag=d.Z.info.j[0].j.info.id;e.mt=d.Z.info.j[0].B.toFixed(3);e.st=d.Z.state;var f=d.Z.lastError;
f&&(e.err=f)}d.Ta&&(e.ccr=d.Ta);d.xa("sdai",e)}this.mediaElement&&5<=ZF(this.mediaElement)&&((d=g.sB(this.X.experiments,"html5_non_network_rebuffer_duration_ms"))?this.gP.start(d):EIa(this.Bh,this.vf)&&hR(this))}(d=g.sB(this.X.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.VE.start(d):this.VE.stop();(0>xF(b,8)||g.yF(b,1024))&&this.Tr.stop();!g.yF(b,8)||this.videoData.kb||g.U(b.state,1024)||this.Tr.start();g.U(b.state,8)&&0>xF(b,16)&&!g.U(b.state,32)&&
!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&qE(this.videoData)&&(this.Zk(this.getCurrentTime()),this.Tb(!0));g.yF(b,2)&&this.RI(!0);g.yF(b,128)&&this.Yn();this.videoData.j&&this.videoData.isLivePlayback&&!this.IR&&(0>xF(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.yF(b,8)&&this.videoData.j.resume());this.Zc.Yc(b);this.Zb.Yc(b);if(c&&!this.isDisposed())try{for(var k=g.r(this.JC),l=k.next();!l.done;l=k.next()){var m=l.value;this.nh.Yc(m);this.ea("statechange",m)}}finally{this.JC.length=0}}};
g.h.Oy=function(){this.videoData.isLivePlayback||this.ea("connectionissue")};
g.h.eI=function(){this.Hb.tick("qoes")};
g.h.qC=function(a,b,c,d){a:{var e=this.xk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=gD(b);"drm.keyerror"===a&&this.xe&&1<this.xe.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())wIa(e,a);else{if(e.ya.rg(a,b,d,c),oIa(e,{detail:c}))break a}else e.zd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.xa("retrydrm",{sessionLimitExhausted:1}),e.D++,OLa(e.ya))}};
g.h.wY=function(){var a=this,b=g.sB(this.X.experiments,"html5_license_constraint_delay"),c=js();b&&c?(b=new g.L(function(){mT(a);hT(a)},b),g.H(this,b),b.start()):(mT(this),hT(this))};
g.h.Qy=function(a){this.ea("heartbeatparams",a)};
g.h.Xp=function(a){this.xa("keystatuses",sR(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=YHa(b,c);d=rR(a)?tR(a,d):a.D.includes(d)}else{a:{b=YHa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.ma&&d;c&&!b?wIa(this.xk):d||tR(a,"AUDIO")&&tR(a,"SD")||(a=sR(a),this.JI?(this.ea("drmoutputrestricted"),
this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.rg("drm.keyerror",2,void 0,"info."+a)):(this.JI=!0,this.zd(new fD("qoe.restart",Object.assign({},{retrydrm:1},a))),nT(this),OLa(this)))};
g.h.zY=function(){if(!this.videoData.kb&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Hi()&&5<=ZF(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Ub(cG(this.playerState,1)),zT(this,"load_soft_timeout"),this.ea("playbackstalledatstart"),a="1");QLa(this);if(this.N("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},this.gm()&&(a.prerolls=this.Jj.join(",")),this.Sa&&Object.assign(a,this.Sa.Pb()),this.mediaElement&&Object.assign(a,this.mediaElement.Pb());
else{var b=this.videoData.C;a={restartmsg:a,mfmt:bE(this.videoData)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].ke&&!this.xe?"1":"0",mfmtinfo:this.videoData.u?"0":"1",prerolls:this.gm()?this.Jj.join(","):"0"};if(this.xe){b=a;var c=this.xe;if(0>=c.u.size){var d="ns;";c.Y||(d+="nr;");c=d+="ql."+c.B.length}else c=sR(c.u.values().next().value),c=eD(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Sa)?void 0:e.Pb())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0:
f.Pb())||{})}this.Zb.zd("qoe.start15s",eD(a));this.ea("loadsofttimeout")}};
g.h.Zk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,hT(this))};
g.h.RI=function(a){var b=this;a=void 0===a?!1:a;if(!this.CA){Bx("att_s","player_att")||Cx("att_s",void 0,"player_att");var c=new g.AAa(this.videoData);if("c1a"in c.j&&!g.KI.isInitialized()&&(Cx("att_wb",void 0,"player_att"),2===this.gF&&.01>Math.random()&&g.Jv(Error("Botguard not available after 2 attempts")),!a&&5>this.gF)){g.zp(this.hF);this.gF++;return}if("c1b"in c.j){var d=sJa(this.Zb);d&&DAa(c).then(function(e){e&&!b.CA&&d?(Cx("att_f",void 0,"player_att"),d(e),b.CA=!0):Cx("att_e",void 0,"player_att")},
function(){Cx("att_e",void 0,"player_att")})}else(a=g.BAa(c))?(Cx("att_f",void 0,"player_att"),rJa(this.Zb,a),this.CA=!0):Cx("att_e",void 0,"player_att")}};
g.h.Kd=function(a){return this.Zc.Kd(void 0===a?!1:a)};
g.h.getMinSeekableTime=function(){return this.Zc.getMinSeekableTime()};
g.h.Fd=function(){return this.Zc?this.Zc.Fd():0};
g.h.getStreamTimeOffset=function(){return this.Zc?this.Zc.getStreamTimeOffset():0};
g.h.Cn=function(){var a=0;this.X.N("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Fd():this.getStreamTimeOffset());return a};
g.h.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32<this.videoData.C.videoInfos[0].video.fps&&g.IC(this.X);this.playbackRate!==a&&b&&(this.Bh.setPlaybackRate(a),nT(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.playbackRate};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.videoData.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.mediaElement)){var b=tF(this);b&&0<b.videoHeight&&(a=Xz(b.videoWidth,b.videoHeight))}return a};
g.h.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.h.Uv=function(){this.Zb.Uv()};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.Zb;c.j?(c=dS(c.j,"engage"),c.Y=a,c.send(b)):b&&b()};
g.h.Xh=function(a){return this.Zb.Xh(a)};
g.h.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.TN||(void 0===b?0:b))?this.Zc.isAtLiveHead(a):!1};
g.h.rp=function(){var a=this.Kd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Zc,c=!(c.u&&c.u.B));return c||this.Jn()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.h.Tk=ba(13);g.h.Wp=ba(34);g.h.Vp=ba(37);g.h.Vx=function(){return this.mediaElement?this.mediaElement.jA():{}};
g.h.setLoop=function(a){this.loop=a;this.mediaElement&&this.mediaElement.setLoop(a)};
g.h.wr=function(){return this.mediaElement?this.mediaElement.wr():this.loop};
g.h.hI=function(a){this.xa("timestamp",{t:a.toString()});this.Zc.hI(a)};
g.h.Hd=function(a){this.Hb.tick(a)};
g.h.Os=function(a){return this.Hb.Os(a)};
g.h.xa=function(a,b,c){this.Zb.xa(a,b,void 0===c?!1:c)};
g.h.BI=function(a,b,c){this.Zb.xa(a,b,void 0===c?!1:c)};
g.h.zd=function(a){this.Zb.zd(a.errorCode,eD(a.details))};
g.h.kz=function(a,b,c){this.Zb.kz(a,b,c)};
g.h.getPlayerSize=function(){return this.Cz.getPlayerSize()};
g.h.Zh=function(){return this.Cz.Zh()};
g.h.vj=function(){return this.Hb};
g.h.N=function(a){return this.X.N(a)};
g.h.fF=function(){if(gE(this.videoData,"html5_set_debugging_opt_in")){var a=g.qs.getInstance();if(!g.rs(0,183)){var b="f"+(Math.floor(183/31)+1),c=oma(b)||0;c|=268435456;0==c?delete ps[b]:(c=c.toString(16),ps[b]=c.toString());a.save()}}};
g.h.EQ=function(){if(g.gG(this.playerState)){var a=cT.lN();0!==Object.keys(a).length&&this.Zb.xa("profile",a)}this.OC.start()};
g.h.Dz=function(){var a=this.getCurrentTime(),b;return(null==(b=this.Sa)?0:b.Dz(a,100))?(YJa(this.Zc,a+100+5),!0):!1};
g.h.wh=function(){return this.videoData.videoId};
g.h.Hu=function(a){return this.Sa?this.Sa.Hu(a):""};g.w(g.CT,g.G);g.CT.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Oa(a),e=T0[d];if(e){try{e.dispose()}catch(k){g.Iv(k)}T0[d]=null}var f=new g.CT(a,b,c);g.pf(f,function(){T0[d]=null;f.DR&&f.DR()});
return T0[d]=f}catch(k){throw g.Iv(k),k.stack;}};
g.h=g.CT.prototype;g.h.zp=function(){return this.visibility};
g.h.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.h.Wl=function(){this.XG||(this.XG=g.GI(yG(),jAa()));return this.XG};
g.h.isVideoInfoVisible=function(){return!(!this.dk||!this.dk.sb)};
g.h.Eh=function(){if(this.mediaElement){this.cw&&(this.events.xc(this.cw),this.cw=null);g.hv(this.Np);this.Cb&&this.Cb.Eh(!0);this.template.Eh();if(!this.N("html5_unset_src_on_remove_killswitch"))try{this.mediaElement.WC()}catch(a){}this.mediaElement=null}};
g.h.Pc=function(){return this.Cb};
g.h.Xn=function(){this.Cb!==this.tb&&BO(this,this.tb)};
g.h.Uo=function(a,b,c){var d=this,e=this.Hb;2===a&&(e=new JJ(this.X));return new g.dT(this.X,a,e,this.template,function(f){return d.Wn.ea.apply(d.Wn,[f].concat(g.u(g.Ba.apply(1,arguments))))},function(){return d.Ra.getVisibilityState()},this.visibility,this,b,c)};
g.h.setIsExternalPlaylist=function(a){this.qh=gC(!1,a)};
g.h.LX=function(){DT(this)||this.Dm(5)};
g.h.WY=function(a){DT(this)||(wMa(this),g.gG(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return kA(a)};
g.h.V=function(){return this.X};
g.h.getVideoData=function(){return this.Cb.getVideoData()};
g.h.Ux=ba(7);g.h.jd=function(){return this.tb.getVideoData()};
g.h.getVideoLoadedFraction=function(a){a=g.GJ(this,a);return a?g.DE(a.getVideoData())?1:(a=a.Ld())?a.vr():0:0};
g.h.Ya=function(){return this.template};
g.h.ob=function(){return this.Ec};
g.h.vj=function(){return this.Hb};
g.h.Iv=function(a){var b=g.GJ(this,1);b&&AO(b,a)};
g.h.Mi=function(){var a=this.Ec.uG();a.fs=this.Ra.isFullscreen();a.volume=Math.round(this.Ra.getVolume());a.muted=this.Ra.isMuted()?1:0;a.mos=a.muted;if(this.X.N("html5_enable_embedded_player_visibility_signals")&&g.rC(this.X)){if(this.UJ){var b=this.UJ;b=null==b.j?null:Math.round(100*b.j)/100;null!=b&&(a.inview=b)}b=this.template.getPlayerSize();if(0<b.height&&0<b.width){b=[Math.round(b.width),Math.round(b.height)];var c=g.QC();1<c&&b.push(c);a.size=b.join(":")}}this.Cb===this.tb&&this.Lb&&(a.clipid=
this.Lb.postId);return a};
g.h.E_=function(){NAa(this.getVideoData(),this.X,this.Wl())};
g.h.addBgVersionChangeCallback=function(a){NI.push(a)};
g.h.Lj=function(a){1===a&&(this.Hb.tick("vr"),this.oq||(this.oq=Ft(BSa,this.tP,this)),JLa(this.Cb),iBa(this.Hb,this.Cb.getVideoData(),vMa(this)));var b=this.X;($C(b)&&b.B||g.zC(b))&&(this.Ge()||this.Ra.Oa("onAdStateChange",a))};
g.h.setLoopVideo=function(a){this.Cb===this.tb&&this.Cb.wr()!==a&&(this.Cb.setLoop(a),this.Ra.Oa("onLoopChange",a))};
g.h.getLoopVideo=function(){return this.Cb.wr()};
g.h.setLoopRange=function(a){var b=!1;!!this.Lb!==!!a?b=!0:this.Lb&&a&&(b=this.Lb.startTimeMs!==a.startTimeMs||this.Lb.endTimeMs!==a.endTimeMs||this.Lb.postId!==a.postId);b&&(this.tb.nh.Nf("applooprange"),a?(b=new g.Jw(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.tb.addCueRange(b)):this.jd().clipConfig=void 0,this.Lb=a,this.Ra.Oa("onLoopRangeChange",a||void 0),this.Cb===this.tb&&(this.dD(),this.Cb.Us()))};
g.h.getLoopRange=function(){return this.Lb};
g.h.dD=function(){this.Lb&&this.Cb===this.tb&&(kMa(this,this.tb.getCurrentTime())||lMa(this))};
g.h.setPlaybackRate=function(a,b){isNaN(a)||(a=aMa(this,a),this.tb.getPlaybackRate()!==a&&(this.tb.setPlaybackRate(a),b&&!this.X.j&&g.gw("yt-player-playback-rate",a),this.Ra.Oa("onPlaybackRateChange",a)))};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return AJ(this.Ec).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.GJ(this):g.GJ(this,a);if(!a)return 0;if(b){if(c&&this.Nd&&(b=this.Nd.La/1E3,0!==b))return b;a=JT(this,a);return UT(this,a.getCurrentTime(),a)}c&&this.Nd?(b=this.Nd,a=a.getCurrentTime(),FO(b)?(b=PO(b,1E3*a))&&b.Lo&&(a-=b.Lo):(b=CEa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.h.Eu=function(){var a=g.GJ(this);if(!a)return 0;a=JT(this,a);return UT(this,a.Eu(),a)};
g.h.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.GJ(this):g.GJ(this,a);if(!a)return 0;if(this.N("enable_linear_player_handling")&&c.hasProgressBarBoundaries()){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),k;c=Number(null==(k=c.progressBarEndPosition)?void 0:k.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=IT(this,a),UT(this,b.getDuration(),b);d&&this.Nd?(b=this.Nd,d=a.getCurrentTime(),
b=FO(b)?b.S?b.S.durationMs/1E3:0:(b=PO(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.h.getMinSeekableTime=function(a){a=g.GJ(this,a);if(!a)return 0;a=IT(this,a);return UT(this,a.getMinSeekableTime(),a)};
g.h.getIngestionTime=function(a){var b=g.GJ(this,a);return b?this.Ge(b)?(b=IT(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.h.JF=function(){this.template.JF();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=ev(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.sZ)};
g.h.getDebugText=function(a){var b=this.tb.Pb(a);if(this.Cb&&this.Cb!==this.tb){for(var c=this.Cb.Pb(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=Nh("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Th("video-ads");f?(BMa(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.Th("videoAdUiSkipContainer"),l=g.Th("ytp-ad-skip-button-container"),m=k||l;m?(BMa(m,f),f.ima=k?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+Ah(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.wp().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.UR)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ra.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.h.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.yb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.h.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(DT(this))return 3;var b;return a&&(null==(b=this.Nd)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.GJ(this).getPlayerType()};
g.h.yb=function(a){return 3===this.getPresentingPlayerType()?AJ(this.Ec).Yd:g.GJ(this,a).getPlayerState()};
g.h.getAppState=function(){return this.appState};
g.h.iI=function(a){switch(a.type){case "loadedmetadata":VJ(this.Hb,"fvb");this.cD.start();a=g.r(this.Ev);for(var b=a.next();!b.done;b=a.next())b=b.value,tMa(this,b.id,b.T0,b.S0,!1);this.Ev=[];break;case "loadstart":VJ(this.Hb,"gv");break;case "progress":case "timeupdate":2<=vA(a.target.Vg())&&VJ(this.Hb,"l2s");break;case "playing":g.YC&&this.cD.start();if(g.IC(this.X))a=!1;else{b=g.CJ(this.ob());a="none"===this.mediaElement.getStyle("display")||0===Ah(this.mediaElement.getSize());var c=uP(this.template),
d=this.Cb.getVideoData(),e=g.AC(this.X)||g.CC(this.X);d=cE(d);b=!c||b||e||d||this.X.bd;a=a&&!b}a&&(this.Cb.xa("hidden",{},!0),this.getVideoData().Vb||(this.N("html5_new_elem_on_hidden")?(this.getVideoData().Vb=1,this.EP(null),this.Cb.playVideo()):GT(this,"hidden",!0)))}};
g.h.onLoadProgress=function(a,b){this.Ra.Oa("onLoadProgress",b)};
g.h.OZ=function(){this.Ra.ea("playbackstalledatstart")};
g.h.onVideoProgress=function(a,b){a=JT(this,a);b=UT(this,a.getCurrentTime(),a);this.Ra.Oa("onVideoProgress",b)};
g.h.onAutoplayBlocked=function(){this.Ra.Oa("onAutoplayBlocked")};
g.h.gZ=function(){this.Ra.ea("progresssync")};
g.h.OX=function(a){if(1===this.getPresentingPlayerType()){g.yF(a,1)&&!g.U(a.state,64)&&this.jd().isLivePlayback&&this.tb.isAtLiveHead()&&1<this.Ra.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.yF(a,2)){if(this.Lb&&this.Lb.endTimeMs>=1E3*(this.getDuration()-1)){lMa(this);return}eMa(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.Ra.Oa("onError",nTa[b.errorCode]||5);this.Ra.Oa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.RF});6048E5<(0,g.R)()-this.X.Ne&&this.Ra.Oa("onReloadRequired")}b={};if(a.state.Nc()&&!g.iG(a.state)&&!Bx("pbresume","ad_to_video")&&Bx("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);nx(b,"ad_to_video");if(this.N("html5_csi_delay_pbresume")){if(Bx("plev","ad_to_video")&&!isNaN(this.Hb.u))if(b=1E3*(this.getCurrentTime()-this.Hb.u),0>b){var d;null==(d=g.GJ(this))||
d.xa("csir",{ossms:b})}else if(1E5<b){var e;null==(e=g.GJ(this))||e.xa("csir",{oslms:b})}else d=(0,g.R)()-b,mx("pbresume",d,"ad_to_video"),this.Hb.u=NaN}else mx("pbresume",void 0,"ad_to_video")}this.Ra.ea("applicationplayerstatechange",a)}};
g.h.XP=function(a){3!==this.getPresentingPlayerType()&&this.Ra.ea("presentingplayerstatechange",a)};
g.h.dh=function(a){HT(this,jG(a.state));g.U(a.state,1024)&&this.Ra.isMutedByMutedAutoplay()&&(sJ(this,{muted:!1,volume:this.gh.volume},!1),RT(this,!1))};
g.h.JX=function(a,b,c){"newdata"===a&&AT(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId})};
g.h.My=function(){this.Ra.Oa("onPlaybackAudioChange",this.Ra.getAudioTrack().Ic.name)};
g.h.Uy=function(a){var b=this.Cb.getVideoData();a===b&&this.Ra.Oa("onPlaybackQualityChange",a.u.video.quality)};
g.h.onVideoDataChange=function(a,b,c){b===this.tb&&(this.X.qd=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Nd?this.Nd=new g.GO(this.Ra,this.X,this.tb):!this.getVideoData().enableServerStitchedDai&&this.Nd&&(this.Nd.dispose(),this.Nd=null);if("newdata"===a)oK(this.Ec,2),this.Ra.ea("videoplayerreset",b);else{if(!this.mediaElement)return;if("dataloaded"===a)if(this.Cb===this.tb){if(FC(c.B,c.HL),!this.tb.getPlayerState().isError()){var d=DT(this);this.jd().isLoaded();d&&this.Dm(6);
gMa(this);nK(this.Ec)||KT(this)}}else gMa(this);if(1===b.getPlayerType()&&(this.X.va&&AMa(this),this.getVideoData().isLivePlayback&&!this.X.Wm&&this.Ff("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(c.Me||c.SD||c.Ys||c.XR||c.S.focEnabled||c.S.rmktEnabled||this.getVideoData().Vm)d=this.getVideoData(),XT(this,"part2viewed",1,0x8000000000000),XT(this,"engagedview",Math.max(1,1E3*d.Gc),0x8000000000000),d.isLivePlayback||(d=1E3*d.lengthSeconds,XT(this,"videoplaytime25",.25*d,d),XT(this,
"videoplaytime50",.5*d,d),XT(this,"videoplaytime75",.75*d,d),XT(this,"videoplaytime100",d,0x8000000000000),XT(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null==(e=this.getVideoData().progressBarEndPosition)?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.PC.progressEndBoundary,(null==d?void 0:d.start)!==e&&(d&&this.VC([d]),e=new g.Jw(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),
this.tb.addCueRange(e),this.PC.progressEndBoundary=e))}}this.Ra.ea("videodatachange",a,c,b.getPlayerType())}this.Ra.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.dD();if(b=c.rz){if(a=this.Hp,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=qG();var f=void 0===f?{}:f;Object.values(xSa).includes(c)||(g.Jv(new g.Is("createClientScreen() called with a non-page VE",c)),c=83769);f.isHistoryNavigation||b.j.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];
f.VM?Cxa(b,c,f):Bxa(b,c,f);kFa(a)}}else kFa(this.Hp)};
g.h.Zt=function(){LT(this,null);this.Ra.Oa("onPlaylistUpdate")};
g.h.kP=function(a){var b=a.getId(),c=this.jd();if("part2viewed"===b){if(c.VL&&g.Nt(c.VL),c.SD&&eU(this,c.SD),c.Ys)for(var d={CPN:this.getVideoData().clientPlaybackNonce},e=g.r(c.Ys),f=e.next();!f.done;f=e.next())eU(this,g.rp(f.value,d))}else"conversionview"===b?this.tb.Uv():"engagedview"===b&&c.Me&&(d={CPN:this.getVideoData().clientPlaybackNonce},g.Nt(g.rp(c.Me,d)));c.XL&&(d=a.getId(),d=pr(c.XL,{label:d}),g.Nt(d));switch(b){case "videoplaytime25":c.PL&&eU(this,c.PL);c.VD&&fU(this,c.VD);c.qM&&g.Nt(c.qM);
break;case "videoplaytime50":c.RL&&eU(this,c.RL);c.WD&&fU(this,c.WD);c.DM&&g.Nt(c.DM);break;case "videoplaytime75":c.TL&&eU(this,c.TL);c.XD&&fU(this,c.XD);c.WM&&g.Nt(c.WM);break;case "videoplaytime100":c.NL&&eU(this,c.NL),c.TD&&fU(this,c.TD),c.ZL&&g.Nt(c.ZL)}(b=this.getVideoData().Vm)&&rMa(this,b,a.getId())&&rMa(this,b,a.getId()+"gaia");this.tb.removeCueRange(a)};
g.h.fZ=function(a){delete this.PC[a.getId()];this.tb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,k,l,m,n,p,q=(null==(b=a.watchNextResponse)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(k=a.watchNextResponse)?void 0:null==(l=k.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.r(q),c=b.next();!c.done;c=
b.next())if(c=c.value,e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),k=f=e=d=void 0,(null==(d=c)?void 0:null==(e=d.watchEndpoint)?void 0:e.videoId)===a.videoId&&(null==(f=c)?0:null==(k=f.watchEndpoint)?0:k.continuePlayback)){a=c;break a}a=null}b=null==a?void 0:a.watchEndpoint;this.N("enable_linear_player_handling")&&b&&this.Ra.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,
watchEndpoint:b})};
g.h.Dm=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(HT(this,-1),HT(this,5)),this.appState=a,this.Ra.ea("appstatechange",a))};
g.h.Ff=function(a,b,c,d,e){this.tb.rg(a,b,c,d,e)};
g.h.qo=function(a,b){this.tb.handleError(new fD(a,b))};
g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.GJ(this,a);if(!c)return!1;a=IT(this,c);c=JT(this,c);return a!==c?a.isAtLiveHead(UT(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.h.rp=function(){var a=g.GJ(this);return a?IT(this,a).rp():0};
g.h.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.GJ(this,d))2===this.appState&&PT(this),this.Ge(d)?TT(this)?this.Nd.seekTo(a,b,c):this.td.seekTo(a,b,c):d.seekTo(a,{AR:!b,BR:c,Ie:"application"})};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.vC=function(){this.Ra.Oa("SEEK_COMPLETE")};
g.h.DZ=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)||PT(this):this.Ra.Oa("SEEK_TO",b)};
g.h.onAirPlayActiveChange=function(){this.Ra.ea("airplayactivechange");this.X.N("html5_external_airplay_events")&&this.Ra.Oa("onAirPlayActiveChange",this.Ra.eg())};
g.h.onAirPlayAvailabilityChange=function(){this.Ra.ea("airplayavailabilitychange");this.X.N("html5_external_airplay_events")&&this.Ra.Oa("onAirPlayAvailabilityChange",this.Ra.jy())};
g.h.showAirplayPicker=function(){var a;null==(a=this.Cb)||a.iq()};
g.h.MH=function(){this.Ra.ea("beginseeking")};
g.h.QH=function(){this.Ra.ea("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.GJ(this,a))?IT(this,a).getVideoData().getStoryboardFormat():null};
g.h.Yh=function(a){return(a=g.GJ(this,a))?IT(this,a).getVideoData().Yh():null};
g.h.Ge=function(a){a=a||this.Cb;var b=!1;if(a){a=a.getVideoData();if(TT(this))a=a===this.Nd.ya.getVideoData();else a:if(b=this.td,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.r(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Ac===c.value.Ac){a=!0;break a}a=!1}b=a}return b};
g.h.Ut=function(a,b,c,d,e,f){var k=TT(this),l;null==(l=g.GJ(this))||l.xa("appattl",{sstm:this.Nd?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:k});return k?AEa(this.Nd,a,b,c,d,e,f):QEa(this.td,a,b,c,d,e)};
g.h.gy=function(a,b,c,d,e,f){TT(this)&&AEa(this.Nd,a,b,c,d,e,f);return""};
g.h.Yp=function(a){var b;null==(b=this.Nd)||b.Yp(a)};
g.h.Wq=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;TT(this)?this.X.N("web_player_ssdai_prevent_clearing_timeline_killswitch")&&SO(this.Nd,a,b):dP(this.td,a,b)};
g.h.Tv=function(a,b,c){if(TT(this)){var d=this.Nd,e=d.Vb.get(a);e?(void 0===c&&(c=e.Sc),e.durationMs=b,e.Sc=c,d.X.N("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&DEa(d,e)):d.yy("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.td;e=null;for(var f=g.r(d.u),k=f.next();!k.done;k=f.next())if(k=k.value,k.Ac===a){e=k;break}e?(void 0===c&&(c=e.Sc),WEa(d,e,b,c)):XO(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Ge();a=new g.TD(this.X,a);d&&(a.Ac=d);c=void 0===c?Infinity:c;b=b||this.Cb.getPlayerType();var e;this.X.N("html5_gapless_preloading")&&(e=ST(this,b,a,!0));e||(e=this.Uo(b,a));2===b&&this.tb&&(b=e.getVideoData(),this.tb.yv(b.clientPlaybackNonce,b.qd||"",b.breakType||0,b.Oe));this.YA(e,c)};
g.h.YA=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.GJ(this);e&&(IT(this,e).IR=!0);qEa(this.Yv,a,b,c).then(function(){d.Ra.Oa("onQueuedVideoLoaded")},function(){})};
g.h.Su=function(){return this.Yv.Su()};
g.h.clearQueue=function(){this.Yv.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,k=new g.TD(this.X,a),l,m=null!=(l=k.Aa)?l:"";this.Hb.timerName=m;this.N("web_player_early_cpn")&&k.clientPlaybackNonce&&this.Hb.info("cpn",k.clientPlaybackNonce);if(!this.N("web_player_load_video_context_killswitch")&&e){for(;k.zj.length&&k.zj[0].isExpired();)k.zj.shift();f=k.zj.length-1;f=0<f&&e.u(k.zj[f])&&e.u(k.zj[f-1]);k.zj.push(e)}c||(a&&XJ(a)?(PC(this.X)&&!this.qh&&(a.fetch=0),LT(this,a)):this.playlist&&LT(this,null),a&&
this.setIsExternalPlaylist(a.external_list),PC(this.X)&&!this.qh&&MT(this));a=this.Lp(k,b,d);f&&this.Ff("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+k.zj.join()).replace(/[;:,]/g,"_"));return a};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=lC(a);if(!this.Zy.get(b+"_"+d+"_"+e)){a=new g.TD(this.X,a);e&&(a.Ac=e);e=b+"_"+a.videoId+"_"+a.Ac;if(d=this.Cb){d=this.Cb.getPlayerType();var f=this.Cb.getVideoData().videoId,k=this.Cb.getVideoData().Ac;d=e===d+"_"+f+"_"+k}d?(g.yO(this.Cb,!0),a.dispose()):(a.Ee=!0,a=this.Uo(b,a),1===b&&SC(this.X)||g.yO(a,!0),this.Zy.set(e,a,c||3600))}};
g.h.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Ec;a=a.I.V().showMiniplayerUiWhenMinimized?a.Zd.get("miniplayer"):void 0;a&&(this.Af()?a.load():a.unload());this.Ra.ea("minimized")};
g.h.setInline=function(a){this.visibility.setInline(a)};
g.h.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Ec;a=a.I.V().showInlinePreviewUi?a.Zd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ra.Oa("onInlinePreviewModeChange"))};
g.h.Hv=function(a){var b=this.X.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.X.Pj&&this.X.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.aG&&b?this.aG.start():this.wM():this.visibility.Hv(a)};
g.h.wM=function(){var a,b=null==(a=this.mediaElement)?void 0:a.nf();b&&dv(b).catch(function(c){return g.Jv(c)})};
g.h.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.h.AZ=function(){"picture-in-picture"===this.mediaElement.nf().webkitPresentationMode?this.Hv(!0):this.Hv(!1)};
g.h.togglePictureInPicture=function(){var a=g.GJ(this);a&&a.togglePictureInPicture()};
g.h.Lp=function(a,b,c){b=void 0===b?1:b;Bx("_start",this.Hb.timerName)||(mx("_start",void 0,this.Hb.timerName),this.Hb.info("srt",0));var d=ST(this,b,a,!1);d?a.dispose():(d=this.Uo(b,a,c),this.N("html5_onesie")&&fT(d)&&g.yO(d),this.cD.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),BO(this,d));d===this.tb&&(this.X.qd=a.oauthToken);if(!fT(d))return!1;if(d===this.tb)return this.Dm(1),PT(this);oT(d);return!0};
g.h.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&XJ(a))if(this.Lr=!0,LT(this,a),(a=g.YJ(this.playlist))&&a.isValid())$T(this,a,b);else this.playlist.onReady(function(){OT(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Zt();var d=new g.TD(this.X,a);!g.rC(this.X)||this.X.S||1!==b||d.isAd()||d.qd||!this.X.N("embeds_enable_iframe_apis_through_oneplatform")?$T(this,d,b):(oBa(d,a?a:{}).then(function(e){$T(c,e,b)}),d.dispose())}};
g.h.ll=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(tC(this.X)||g.TC(this.X))return b=b||{},b.lact=Du(),b.vis=this.Ra.getVisibilityState(),this.Ra.Oa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;jBa(this.Hb);this.Hb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.h.cuePlaylist=function(a,b,c,d){this.Lr=!0;sMa(this,a,b,c,d)};
g.h.loadPlaylist=function(a,b,c,d){this.Lr=!1;sMa(this,a,b,c,d)};
g.h.Fx=function(){if(this.Ra.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;PC(this.X)&&!this.qh&&MT(this);return!(!this.playlist||!this.playlist.hasNext())};
g.h.qr=ba(3);
g.h.nextVideo=function(a,b){var c=this.tb.getVideoData().suggestions;g.FJ(this.Ra)&&c&&0<c.length?(a=c[0],this.ll(a.videoId,b?a.xx:a.sessionData,a.playlistId,b,void 0,a.oM||void 0)):this.qh?this.Ra.Oa("onPlaylistNext"):3===this.getPresentingPlayerType()?AJ(this.Ec).nextVideo():this.playlist&&(PC(this.X)&&!this.Ra.isFullscreen()?WT(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&ZJ(this.playlist,kBa(this.playlist)),this.playlist.loaded?(a=b&&this.X.N("html5_player_autonav_logging"),this.Lp(g.YJ(this.playlist,
void 0,b,a),1)):this.Lr=!1))};
g.h.previousVideo=function(a){this.qh?this.Ra.Oa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?AJ(this.Ec).MC():this.playlist&&(PC(this.X)&&!this.Ra.isFullscreen()?WT(this,"yt.www.watch.lists.prev"):(this.playlist.hm(a)&&ZJ(this.playlist,lBa(this.playlist)),this.playlist.loaded?this.Lp(g.YJ(this.playlist),1):this.Lr=!1))};
g.h.playVideoAt=function(a){this.qh?this.Ra.Oa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Lp(g.YJ(this.playlist,a),1):this.Lr=!1,ZJ(this.playlist,a))};
g.h.getPlaylist=function(){return this.playlist};
g.h.Qx=ba(11);g.h.HX=function(a){this.Ra.Oa("onCueRangeEnter",a.getId())};
g.h.IX=function(a){this.Ra.Oa("onCueRangeExit",a.getId())};
g.h.Xw=function(a,b,c){var d=g.GJ(this,b);d&&(d.Xw(a,c),b&&this.getPresentingPlayerType()!==b||FT(this,"cuerangesadded",a))};
g.h.VC=function(a,b){var c=g.GJ(this,b);c&&(c.VC(a),b&&this.getPresentingPlayerType()!==b||FT(this,"cuerangesremoved",a))};
g.h.MX=function(){var a=this;this.getPresentingPlayerType();this.oq||(this.oq=Ft(BSa,this.tP,this));iBa(this.Hb,this.Cb.getVideoData(),vMa(this));BT(this)&&this.X.j&&"embedded"===xE(this.jd())&&this.HO&&.01>Math.random()&&g.Ds("autoplayTriggered",{intentional:this.hO});this.HO=!1;ABa(this.Ec);this.N("web_player_defer_ad")&&KT(this);this.Ra.Oa("onPlaybackStartExternal");this.X.N("mweb_client_log_screen_associated");(function(){var c=g.Tv(a.OQ||(a.Af()?3:0));if(c&&"UNDEFINED_CSN"!==c)if(a.X.N("il_via_jspb")){var d=
new Hq,e=a.getVideoData().clientPlaybackNonce;g.D(d,1,e).Ci(c);a.X.N("web_playback_associated_ve")&&a.getVideoData().va&&(e=g.Mv(a.getVideoData().va),g.Yv(c,e),c=e.getAsJspb(),re(d,2,c));if(a.X.N("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new Uia;if(null==c?0:c.enqueueingVe)if(null==c?0:c.enqueueingVe.trackingParams){var f=g.Mv(c.enqueueingVe.trackingParams);f=f.getAsJspb();re(e,1,f)}else g.Jv(new g.Is("Cannot map enqueueingVe from a client VE "));
(null==c?0:c.enqueueingCsn)&&g.D(e,2,c.enqueueingCsn);(null==c?0:c.clientEnqueueingTimeMs)&&g.D(e,3,Number(c.clientEnqueueingTimeMs));re(d,4,e)}c={};a.N("web_playback_associated_log_ctt")&&a.getVideoData().K&&(c.cttAuthInfo={token:a.getVideoData().K,videoId:a.getVideoData().videoId});e=new Tq;se(e,202,Gv,d);Fv(e,c)}else d={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.X.N("web_playback_associated_ve")&&a.getVideoData().va&&(e=g.Mv(a.getVideoData().va),g.Yv(c,e),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().K&&(c.cttAuthInfo={token:a.getVideoData().K,videoId:a.getVideoData().videoId}),g.Ds("playbackAssociated",d,c);else g.Jv(new g.Is("CSN Missing or undefined during playback association"))})();
var b={};!this.N("web_player_csi_ctt_killswitch")&&this.getVideoData().K&&(b.cttAuthInfo={token:this.getVideoData().K,videoId:this.getVideoData().videoId});ox("player_att",b);this.getVideoData().botguardData&&(g.RC(this.X)||"MWEB"===GC(this.X)?g.Tr(g.Vr(),function(){QT(a)}):QT(this));
this.dD()};
g.h.VH=function(){this.Ra.ea("internalAbandon");this.N("html5_ad_module_cleanup_killswitch")||VT(this)};
g.h.tP=function(a){a=a.j;!isNaN(a)&&0<a&&this.tb&&this.tb.jz(a)};
g.h.onApiChange=function(){this.X.B&&this.Cb?this.Ra.Oa("onApiChange",this.Cb.getPlayerType()):this.Ra.Oa("onApiChange")};
g.h.GY=function(){var a=this.mediaElement;a={volume:g.sh(Math.floor(100*a.getVolume()),0,100),muted:a.tB()};a.muted||RT(this,!1);this.gh=g.Uf(a);this.Ra.Oa("onVolumeChange",a)};
g.h.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ra.Oa("onMutedAutoplayStarts"))};
g.h.onFullscreenChange=function(){var a=bU(this);this.Rj(a?1:0);yMa(this,!!a)};
g.h.Rj=function(a){var b=!!a,c=!!this.Bu()!==b;this.visibility.Rj(a);this.template.Rj(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&bU(this)===this.mediaElement.nf()&&this.mediaElement.zx();this.template.resize();c&&this.Hb.tick("fsc");c&&(this.Ra.ea("fullscreentoggled",b),a=this.jd(),b={fullscreen:b,videoId:a.PE||a.videoId,time:this.getCurrentTime()},this.Ra.getPlaylistId()&&(b.listId=this.Ra.getPlaylistId()),this.Ra.Oa("onFullscreenChange",b))};
g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.Bu=function(){return this.visibility.Bu()};
g.h.sZ=function(){this.Cb&&(0!==this.Bu()&&1!==this.Bu()||this.Rj(bU(this)?1:0),this.X.Pj&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.zx())};
g.h.yY=function(a){3!==this.getPresentingPlayerType()&&this.Ra.ea("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.GJ(this,a))2===this.appState?PT(this):(null!=this.dk&&this.dk.sb&&this.dk.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.GJ(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.tb.getVideoData(),b=new g.TD(this.X,{video_id:a.PE||a.videoId,oauth_token:a.oauthToken});b.Z=g.Uf(a.Z);this.cancelPlayback(6);$T(this,b,1);null!=this.dk&&this.dk.stop()};
g.h.cancelPlayback=function(a,b){Et(this.oq);this.oq=0;var c=g.GJ(this,b);c&&(2===b&&1===c.getPlayerType()&&kwa(this.jd())?c.xa("canclpb",{r:"no_adpb_ssdai"}):(this.X.N("html5_high_res_logging")&&c.xa("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Cb&&oK(this.Ec,a),1===b&&(c.stopVideo(),VT(this)),c.Yn(),FT(this,"cuerangesremoved",c.yn()),c.nh.reset(),this.Yv&&c.isGapless()&&(c.Eh(!0),c.setMediaElement(this.mediaElement)))))};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.GJ(this,b))&&this.X.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.Xh=function(a){var b=g.GJ(this);return b&&this.X.enabledEngageTypes.has(a.toString())?b.Xh(a):null};
g.h.updatePlaylist=function(){PC(this.X)?MT(this):g.rC(this.X)&&NT(this);this.Ra.Oa("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.aR=a;this.dH=b;this.Ra.ea("sizestylechange",a,b);this.template.resize()};
g.h.isWidescreen=function(){return this.dH};
g.h.Af=function(){return this.visibility.Af()};
g.h.isInline=function(){return this.visibility.isInline()};
g.h.Qu=function(){return this.visibility.Qu()};
g.h.Nu=function(){return this.visibility.Nu()};
g.h.qy=function(){return this.aR};
g.h.getAdState=function(){if(3===this.getPresentingPlayerType())return AJ(this.Ec).getAdState();if(!this.Ge()){var a=pK(this.ob());if(a)return a.getAdState()}return-1};
g.h.rZ=function(a){var b=this.template.getVideoContentRect();Im(this.AO,b)||(this.AO=b,this.Cb&&mT(this.Cb),this.tb&&this.tb!==this.Cb&&mT(this.tb),1===this.Bu()&&this.Vy&&yMa(this,!0));this.jH&&g.zh(this.jH,a)||(this.Ra.ea("appresize",a),this.jH=a)};
g.h.Rf=function(){return this.Ra.Rf()};
g.h.JZ=function(){2===this.getPresentingPlayerType()&&this.td.isManifestless()&&!this.N("web_player_manifestless_ad_signature_expiration_killswitch")?VEa(this.td):(this.Nd&&(SO(this.Nd),VT(this)),GT(this,"signature",void 0,!0))};
g.h.EP=function(){this.Eh();ET(this)};
g.h.MY=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ra.Oa("onPlayerRequestAuthFailed")};
g.h.Oy=function(){this.Ra.Oa("CONNECTION_ISSUE")};
g.h.Qy=function(a){this.Ra.ea("heartbeatparams",a)};
g.h.aD=function(a){this.Ra.Oa("onAutonavChangeRequest",1!==a)};
g.h.Ld=function(){return this.mediaElement};
g.h.setBlackout=function(a){this.X.bd=a;this.Cb&&(this.Cb.Us(),this.X.va&&AMa(this))};
g.h.setAccountLinkState=function(a){var b=g.GJ(this);b&&(b.getVideoData().ML=a,b.Us())};
g.h.updateAccountLinkingConfig=function(a){var b=g.GJ(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ra.ea("videodatachange","dataupdated",c,b.getPlayerType())}};
g.h.PY=function(){var a=g.GJ(this);if(a){var b=!this.Ra.py();(a.TN=b)||a.Tr.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.X.N("html5_suspend_loader")&&a.Sa&&(b?a.Sa.resume():uT(a,!0));a.X.N("html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Ub(dG(a.playerState,512)):a.Ub(cG(a.playerState,512)));a=a.Zb;a.qoe&&(a=a.qoe,g.OR(a,g.zO(a.j),"stream",[b?"A":"I"]))}};
g.h.onLoadedMetadata=function(){this.Ra.Oa("onLoadedMetadata")};
g.h.onDrmOutputRestricted=function(){this.Ra.Oa("onDrmOutputRestricted")};
g.h.fF=function(){this.N("html5_skip_empty_load")&&($Sa=!0);cTa=this.N("html5_ios_force_seek_to_zero_on_stop");aTa=this.N("html5_ios7_force_play_on_stall");bTa=this.N("html5_ios4_seek_above_zero");Dsa=this.N("html5_retain_source_buffer_appends_for_debugging");this.N("html5_mediastream_applies_timestamp_offset")&&(mQ=!0);this.N("html5_dont_override_default_sample_desc_index")&&(yra=!0);var a=g.sB(this.X.experiments,"html5_cobalt_override_quic");a&&bEa(0<a);Error.stackTraceLimit=25;var b=g.sB(this.X.experiments,
"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
PSa=this.N("html5_live_partial_response_resumable");Xra=this.N("html5_onesie_nonzero_playback_start")};
g.h.qH=function(){this.hO=!0};
g.h.qa=function(){this.Ec.dispose();this.td.dispose();this.Nd&&this.Nd.dispose();this.tb.dispose();this.Eh();g.of(Hf(this.Ts),this.playlist);Et(this.oq);this.oq=0;this.VI&&(window.clearInterval(this.VI),this.VI=void 0);g.G.prototype.qa.call(this)};
g.h.N=function(a){return this.X.N(a)};
g.h.hD=function(){return this.Az};
g.h.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.h.setScreenLayer=function(a){this.OQ=a};
g.h.seekToChapterWithAnimation=function(a){var b=this,c,d=null==(c=tJ(this.ob()))?void 0:c.Gx();if(d instanceof g.SK&&!(0>a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.ul)&&a<c.length)for(e=g.r(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.index===a){EMa(this,d,c.startTime,c.title);return}if(this.N("web_key_moments_markers")){var f;(e=null==(f=this.getVideoData())?void 0:f.uO)&&a<e.length&&e.forEach(function(k,l){l===a&&EMa(b,d,k.timeRangeStartMillis,k.title)})}}};
g.h.downloadVideo=function(a,b){var c=this,d,e,f;return g.B(function(k){if(1==k.j){d=sK(c.Ec);if(!d)return k.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.A(k,d.yI([a],"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=k.u;return k.return(f[0])})};
g.h.pauseVideoDownload=function(a){var b=sK(this.Ec);b&&b.lI(a)};
g.h.resumeVideoDownload=function(a){var b=this,c;return g.B(function(d){return(c=sK(b.Ec))?d.return(c.pz(a)):d.return(Promise.reject())})};
g.h.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=sK(this.Ec);return b?b.lz(a):Promise.reject()};
g.h.deleteVideos=function(a){var b=sK(this.Ec);return b?b.yI(a,"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.h.deleteAllVideos=function(){var a=sK(this.Ec);return a?a.deleteAll():Promise.reject()};
g.h.isOrchestrationLeader=function(){var a=sK(this.Ec);return a?a.isOrchestrationLeader():!1};
g.h.getStatsForNerds=function(){var a=this.Ra,b=g.GJ(this),c=a.getVideoData(),d=a.Ld(),e=d.nf(),f=b.Vx(),k=b.lJ,l=8*oP(k,"bandwidth")/1024,m=oP(k,"networkactivity")/1024,n=oP(k,"bufferhealth");if(b.xe){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.xe.j.cg()+"/"+Ox(b.Du());p+="/"+b.xe.cg()}else p="";var q=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),v=rA(d.Vg(),",",3),x="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(x+="SS");x+="DAI, ";a:{if(b.td){if(b.td.Xo){var y=
"D,";break a}y=b.td.tj;if(0<y){y="AD"+y+", ";break a}}y=""}y&&(x+=y)}if(c.fetchType){switch(c.fetchType){case "onesie":y="o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}x+="s:"+q+" t:"+t+" b:"+v+" ";d.yw()&&(x+="S");d.Mm()&&(x+="P");d.Gg()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.Mx())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.Qw;d&&d>q.start&&d<q.end&&(x+=" as");d=x;x=g.QC();q=g.DJ(a).xW;t=c.C&&!c.C.j?"display:none":"";if((v=c.clientPlaybackNonce)&&16==v.length){y=
0;for(var z="",E=0;10>E;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(v.charAt(E)),4==E%5){for(var J="",I=0;6>I;I++)J="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+J,y>>=5;z+=J}v=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else v="";l={video_id_and_cpn:c.videoId+" / "+v,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:d,
bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<x?"*"+x.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=iwa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Oe.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.qT(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=bFa(a),!c.J||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+bFa(c.J),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style=
"display:none";e=c.isLivePlayback;a=c.Lf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+($D(c)?" Manifestless":"");else if(e){a=oP(k,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=$D(c)?"Manifestless, ":"";c.Wh&&(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=nP(k,"bandwidth");l.network_activity_samples=nP(k,"networkactivity");l.live_latency_samples=nP(k,
"livelatency");l.buffer_health_samples=nP(k,"bufferhealth");b=g.DE(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";gE(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220412_01_RC00",l.release_style=""):l.release_style="display:none";return l};
g.h.getVideoUrl=function(a,b,c,d,e){return this.Lb&&this.Lb.postId?(a=this.X.getVideoUrl(a),a=vj(a,"v"),a.replace("/watch","/clip/"+this.Lb.postId)):this.X.getVideoUrl(a,b,c,d,e)};
var T0={};g.Ha("yt.player.Application.create",g.CT.create);g.Ha("yt.player.Application.createAlternate",g.CT.create);Voa(Av(),{Qn:[{Cy:/Unable to load player module/,weight:20},{Cy:/Failed to fetch/,weight:500},{Cy:/XHR API fetch failed/,weight:10},{Cy:/JSON parsing failed after XHR fetch/,weight:10},{Cy:/Retrying OnePlatform request/,weight:10}]});var ATa=g.Ia("ytcsi.tick");ATa&&ATa("pe");var HMa=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"]]),FMa=new Map([["normal",{Cs:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Ms:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Cs:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Ms:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Cs:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Ms:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Cs:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Ms:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Cs:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Ms:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Cs:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Ms:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Cs:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Ms:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var BTa={Pda:"replaceUrlMacros",uca:"onAboutThisAdPopupClosed",m7:"executeCommand"};oU.prototype.Vl=function(){return"adLifecycleCommand"};
oU.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.vi(function(){b.controller.ap()});
break;case "END_LINEAR_AD_PLACEMENT":g.vi(function(){b.controller.Sl()});
break;case "FILL_ABOVE_FEED_SLOT":g.vi(function(){a.elementId&&b.controller.eB(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.vi(function(){b.controller.NA()})}};
oU.prototype.Fn=function(a){this.handle(a)};pU.prototype.Vl=function(){return"clearCueRangesCommand"};
pU.prototype.handle=function(){var a=this.BF();g.vi(function(){a.Mg(Array.from(a.Lq))})};
pU.prototype.Fn=function(a){this.handle(a)};qU.prototype.Vl=function(){return"muteAdEndpoint"};
qU.prototype.handle=function(a){LMa(this,a)};
qU.prototype.Fn=function(a,b){LMa(this,a,b)};rU.prototype.Vl=function(){return"openPopupAction"};
rU.prototype.handle=function(){};
rU.prototype.Fn=function(a){this.handle(a)};sU.prototype.Vl=function(){return"pingingEndpoint"};
sU.prototype.handle=function(){};
sU.prototype.Fn=function(a){this.handle(a)};tU.prototype.Vl=function(){return"urlEndpoint"};
tU.prototype.handle=function(a,b){b=Object.assign({},b);if(this.w_.I.V().N("h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")){var c=rw(this.Wk,2);c&&(b.AD_CPN=c.clientPlaybackNonce)}b=g.rp(a.url,b);var d,e;if((null==(d=a.browserConversionApiData)?0:d.impressiondata)&&(null==(e=a.browserConversionApiData)?0:e.conversiondestination)){var f;if(null==(f=a.browserConversionApiData)?0:f.originTrialToken)d=document.createElement("meta"),d.setAttribute("http-equiv","origin-trial"),d.setAttribute("content",
a.browserConversionApiData.originTrialToken),document.head.appendChild(d);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.iI(b,void 0,void 0,a)};
tU.prototype.Fn=function(a){this.handle(a,{})};uU.prototype.Vl=function(){return"adPingingEndpoint"};
uU.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Mq.send(a,b,c)};
uU.prototype.Fn=function(a,b){LOa(this.Pa.get(),a,b)};vU.prototype.Vl=function(){return"changeEngagementPanelVisibilityAction"};
vU.prototype.handle=function(a){this.I.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
vU.prototype.Fn=function(a){this.handle(a)};wU.prototype.Vl=function(){return"loggingUrls"};
wU.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.Kj.send(d.baseUrl,b,c,d.headers)};
wU.prototype.Fn=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,LOa(this.Pa.get(),c.baseUrl,b,c.headers)};g.w(NMa,g.G);xU.prototype.get=function(){return this.value};
g.w(yU,xU);yU.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(zU,xU);zU.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(AU,xU);AU.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(BU,xU);BU.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(CU,xU);CU.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(DU,xU);DU.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(EU,xU);EU.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(FU,xU);FU.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(GU,xU);GU.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(HU,xU);HU.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(IU,xU);IU.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(JU,xU);JU.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(KU,xU);KU.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.w(LU,xU);LU.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(MU,xU);MU.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(NU,xU);NU.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(OU,xU);OU.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(PU,xU);PU.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(QU,xU);QU.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(RU,xU);RU.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(SU,xU);SU.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(TU,xU);TU.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(UU,xU);UU.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(VU,xU);VU.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(WU,xU);WU.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(XU,xU);XU.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(YU,xU);YU.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(ZU,xU);ZU.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w($U,xU);$U.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(aV,xU);aV.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(bV,xU);bV.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(cV,xU);cV.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(dV,xU);dV.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(eV,xU);eV.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(fV,xU);fV.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(gV,xU);gV.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(hV,xU);hV.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(iV,xU);iV.prototype.getType=function(){return"metadata_type_dai"};
g.w(jV,xU);jV.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(kV,xU);kV.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(lV,xU);lV.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(mV,xU);mV.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(nV,xU);nV.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(oV,xU);oV.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(pV,xU);pV.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(qV,xU);qV.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(rV,xU);rV.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(sV,xU);sV.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(tV,xU);tV.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(uV,xU);uV.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.w(vV,xU);vV.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(wV,xU);wV.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(xV,xU);xV.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};var bNa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.w(yV,g.G);g.h=yV.prototype;g.h.qG=function(a,b){return this.j.qG(a,b)};
g.h.Xi=function(a,b){vW(this.Wb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.r(this.qe),d=c.next();!d.done;d=c.next())d.value.Xi(a,b)};
g.h.Tf=function(a){if(CV(this.j,a)){NF(this.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Tf(a);for(var b=g.r(this.qe),c=b.next();!c.done;c=b.next())c.value.Tf(a);PMa(this,a)}};
g.h.Uf=function(a){if(CV(this.j,a)){NF(this.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Uf(a);for(var b=g.r(this.qe),c=b.next();!c.done;c=b.next())c.value.Uf(a);CV(this.j,a)&&DV(this.j,a).D&&AV(this,a,!1)}};
g.h.wC=function(a){NF(this.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);CV(this.j,a)&&(this.j.wC(a),AV(this,a,!1))};
g.h.Rc=function(a,b){if(CV(this.j,a)){EV(this.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.qe),d=c.next();!d.done;d=c.next())d.value.Rc(a,b)}};
g.h.od=function(a,b,c){if(CV(this.j,a)){EV(this.Wb,GMa(c),a,b);this.j.od(a,b);for(var d=g.r(this.qe),e=d.next();!e.done;e=d.next())e.value.od(a,b,c);(c=RV(this.j,a))&&b.layoutId===c.layoutId&&ZMa(this,a,!1)}};
g.h.jg=function(a,b,c){S(c,a,b,void 0,c.Nq);AV(this,a,!0)};
g.h.qa=function(){var a=aNa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())AV(this,b.value,!1);g.G.prototype.qa.call(this)};$Ma.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(FV,Za);g.w(OV,Za);g.w(UV,g.G);g.h=UV.prototype;g.h.qG=function(a,b){b=QV(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.h.xi=function(a){a=DV(this,a);"not_scheduled"!==a.j&&SV(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.h.Cx=function(a){a=DV(this,a);a.C="fill_requested";a.K.Cx()};
g.h.Tf=function(a){a=DV(this,a);"enter_requested"!==a.j&&SV(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.h.wC=function(a){DV(this,a).C="fill_canceled"};
g.h.Uf=function(a){a=DV(this,a);"exit_requested"!==a.j&&SV(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.h.od=function(a,b){a=DV(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&SV(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(XV,g.G);XV.prototype.B=function(){return this.u};g.w(YV,g.G);YV.prototype.get=function(){this.isDisposed()&&S("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};ZV.prototype.executeCommand=function(a,b){OG(this.j(),a,b)};
ZV.prototype.yf=function(a,b){rya(this.j(),a,b)};g.w(uW,g.G);g.w(xW,g.G);xW.prototype.onCueRangeEnter=function(){};
xW.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.lc.get().removeCueRange(a),qw(this.Sb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Db.get();d=yw(d.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Rb:c.Rb?wOa(c.slotId,d,c.Rb):void 0,qc:xOa(c.slotId,d,c.qc),wc:xOa(c.slotId,d,c.wc)})]},c.slotId))};
xW.prototype.ri=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.lc.get().removeCueRange(b);this.j.clear()};
xW.prototype.Sk=function(){};g.w(yW,g.G);g.h=yW.prototype;g.h.xi=function(){};
g.h.Ij=function(a){var b=this;g.Tr(g.Vr(),function(){var c=b.j.get(a);c&&S("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)};
g.h.Tf=function(){};
g.h.Hj=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.h.Fj=function(a,b){this.bj.has(a)&&this.bj.get(a)===b&&S("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):S("Trying to unscheduled a Layout that was not scheduled.",a,b)}else S("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.h.Rc=function(a,b){this.bj.set(a,b)};
g.h.od=function(a){this.bj.delete(a)};
g.h.Xi=function(){};IW.prototype.clone=function(a){var b=this;return new IW(function(){return b.triggerId},a)};JW.prototype.clone=function(a){var b=this;return new JW(function(){return b.triggerId},a)};KW.prototype.clone=function(a){var b=this;return new KW(function(){return b.triggerId},a)};LW.prototype.clone=function(a){var b=this;return new LW(function(){return b.triggerId},a)};MW.prototype.clone=function(a){var b=this;return new MW(function(){return b.triggerId},a)};g.w(PW,g.G);PW.prototype.logEvent=function(a){vW(this,a)};g.w(QW,PW);RW.prototype.clear=function(){this.j.clear()};g.w(SW,g.G);g.h=SW.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.ri=function(a,b,c,d,e,f,k){if(""===a)S("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Fa.get().ri(a,b,c,d,e,f,k);this.Qa.get().ri(a,b,c,d,e,f,k);var l;null==(l=this.Fe)||l.get().ri(a,b,c,d,e,f,k);this.u.ri(a,b,c,d,e,f,k);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.ri(a,b,c,d,e,f,k)}};
g.h.VH=function(){this.j&&this.Sk(this.j)};
g.h.Sk=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Sk(a)};g.w(TW,g.G);TW.prototype.addCueRange=function(a,b,c,d,e,f,k){f=void 0===f?3:f;k=void 0===k?1:k;this.j.has(a)?S("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new GOa(a,b,c,d,f),this.j.set(a.id,{Qd:a,listener:e,jl:k}),this.I.je([a],k))};
TW.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.I.Mg([b.Qd],b.jl),this.j.delete(a)):S("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
TW.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
TW.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(GOa,g.Jw);UW.prototype.Lj=function(a){this.I.Lj(a)};
UW.prototype.Oa=function(a){this.I.Oa.apply(this.I,[a].concat(g.u(g.Ba.apply(1,arguments))))};g.h=YW.prototype;g.h.xg=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.I.V().N("html5_dai_enable_active_view_creating_completed_adblock"),Lha(a,b),{};b=Lwa(b);if(null===b||this.I.V().N("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.Pc();c=c&&(this.I.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&tF(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Fa.get().isFullscreen()};return qp(b,a,c)};
g.h.Ky=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ky()};
g.h.Jy=function(a){var b;null==(b=this.j.get(a.queryId))||b.Jy()};
g.h.Ly=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ly()};
g.h.Hy=function(a){var b;null==(b=this.j.get(a.queryId))||b.Hy()};
g.h.Iy=function(a){var b;null==(b=this.j.get(a.queryId))||b.Iy()};g.w(bX,gF);bX.prototype.j=function(){return this.C()};
bX.prototype.u=function(){return this.D()};
bX.prototype.N=function(a){return this.B(a)};cX.prototype.Xh=function(){var a=this.I.Pc();return a&&(a=a.Xh(1))?a:null};
cX.prototype.Ti=function(a,b){"string"===typeof b?this.I.getVideoData(1).BI(a,b):this.I.getVideoData(1).xa(a,b)};g.w(hX,g.G);g.h=hX.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.ri=function(){this.ZE.clear();this.lH=null;this.I.V().N("html5_clear_timeline_storage_killswitch")||this.Ad.get().clear()};
g.h.Sk=function(){};
g.h.h_=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Ti("ads_ssm_vdc_s",{pt:c,dvt:a});(WW(this.Na.get())||this.Na.get().I.V().N("html5_debug_client_stitched"))&&"dataloaded"!==a||SOa(this,b,c)};
g.h.EZ=function(a,b){void 0!==a&&(this.lH=a,void 0===b?S("Expected ad video start time on SS video changed"):this.ZE.set(a,b));b=this.I.getPresentingPlayerType(!0);var c=this.I.getVideoData(b);this.I.getVideoData(1).xa("ads_ssvc",{pt:b,cpn:""+(null==c?void 0:c.clientPlaybackNonce)});c?SOa(this,c,b):S("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.h.qa=function(){this.listeners.length=0;this.ir=null;g.G.prototype.qa.call(this)};
g.h.Ti=function(a,b){this.I.getVideoData(1).xa(a,b)};g.w(iX,g.G);g.h=iX.prototype;g.h.ri=function(){var a=this;this.lr=yg(function(){a.I.isDisposed()||a.I.mf("ad",1)})};
g.h.Sk=function(){};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.playVideo=function(){this.I.playVideo()};
g.h.pauseVideo=function(){this.I.pauseVideo()};
g.h.resumeVideo=function(a){this.Kn(a)&&this.I.playVideo()};
g.h.Kn=function(a){return 2===this.I.getPlayerState(a)};
g.h.getCurrentTimeSec=function(a,b){var c=this.Qa.get().lH;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):jX(this,c)};
g.h.getVolume=function(){return this.I.getVolume()};
g.h.isMuted=function(){return this.I.isMuted()};
g.h.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)};
g.h.getPlayerState=function(a){return this.I.getPlayerState(a)};
g.h.isFullscreen=function(){return this.I.isFullscreen()};
g.h.isAtLiveHead=function(){return this.I.isAtLiveHead()};
g.h.Jv=function(a){this.I.Jv(a)};
g.h.hZ=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.Vi(a)};
g.h.YY=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Gj(a,this.getPresentingPlayerType())};
g.h.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.h.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.h.ah=function(){for(var a=this.I.Af(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.ah(a)};
g.h.xb=function(){for(var a=this.I.Ya().Zh(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Cj(a)};
g.h.Qk=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Qk(a)};g.w(WOa,g.G);mX.prototype.addListener=function(a){this.listeners.add(a)};
mX.prototype.removeListener=function(a){this.listeners.delete(a)};oX.prototype.Cx=function(){var a=this;ZOa(this.j,function(){var b=W(a.slot.Da,"metadata_type_ad_break_request_data");return a.Re.get().fetch({OR:b.getAdBreakUrl,SM:new g.Jw(b.yQ,b.xQ),mx:W(a.slot.Da,"metadata_type_cue_point")})},function(){aPa(a)},function(b){b=b.Zm;
2<=b.length&&S("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,k;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(k=c.renderer)||!k.instreamVideoAdRenderer)})||aPa(a)})};
oX.prototype.pF=function(){$Oa(this.j)};pX.prototype.Cx=function(){var a=this;ZOa(this.j,function(){var b=W(a.slot.Da,"metadata_type_ad_break_request_data");return a.Re.get().fetch({OR:b.getAdBreakUrl,SM:new g.Jw(b.yQ,b.xQ)})})};
pX.prototype.pF=function(){$Oa(this.j)};qX.prototype.Cx=function(){RMa(this.callback,this.slot,W(this.slot.Da,"metadata_type_fulfilled_layout"))};
qX.prototype.pF=function(){BV(this.callback,this.slot,new OV("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};sX.prototype.Te=function(a,b){return rX(b,{re:["metadata_type_fulfilled_layout"]})?new qX(a,b):this.j(a,b)};g.w(tX,sX);tX.prototype.j=function(a,b){if(rX(b,{re:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new oX(a,b,this.Re,this.vb,this.Fb,this.He);if(rX(b,{re:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new pX(a,b,this.Re,this.vb,this.Fb);throw new OV("Unsupported slot with type: "+b.slotType+" and client metadata: "+hU(b.Da)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(uX,sX);uX.prototype.j=function(a,b){throw new OV("Unsupported slot with type: "+b.slotType+" and client metadata: "+hU(b.Da)+" in DefaultFulfillmentAdapterFactory.");};g.h=bPa.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.jg(this.slot,a,new FV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=W(a.Da,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Rc(this.slot,a),Ppa(this.j,this.slot,b)):S("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.h.Pf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.jg(this.slot,a,new FV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.od(this.slot,a,b)};wX.prototype.Te=function(a,b,c,d){if(vX(d,{re:["metadata_type_ad_break_response_data"],Cf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new bPa(a,c,d,this.j);throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};xX.prototype.xg=function(a){var b=this.D.get(a)||[];cPa(this,a,b);this.C.add(a)};g.h=dPa.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.jg(this.slot,a,new FV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Rc(this.slot,a),AX(this.u,"impression"),tY(this.j,a.layoutId))};
g.h.Pf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.jg(this.slot,a,new FV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.od(this.slot,a,b)};XX.prototype.Te=function(a,b,c,d){if(vX(d,ePa()))return new dPa(a,c,d,this.Pa,this.j);throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(gY,g.iv);g.h=gY.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.init=function(){this.u.get().addListener(this)};
g.h.release=function(){this.u.get().removeListener(this);this.dispose()};
g.h.DG=function(){};
g.h.BG=function(){};
g.h.AG=function(){};
g.h.DB=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.jg(this.slot,a,new FV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),FPa(a,this.j,1))};
g.h.Pf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.jg(this.slot,a,new FV("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();FPa(c,this.j,3);this.j=[];this.callback.od(this.slot,a,b)}};
g.h.qa=function(){this.u.get().removeListener(this);g.iv.prototype.qa.call(this)};g.w(fPa,ME);g.w(kY,gY);g.h=kY.prototype;g.h.Fg=function(a,b){jY("action-companion",a,this.J.get().bj,this.Pa.get(),this.B,this.C,this.Td(),this.Nb(),b)};
g.h.startRendering=function(a){iY(this.D,this.Td(),this.Nb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new fPa(b,c,d,e,f)},this.j);
gY.prototype.startRendering.call(this,a)};
g.h.Rc=function(a,b){b.layoutId===this.layout.layoutId?AX(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Pa.get().Xh():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.od=function(){};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.qa=function(){this.gf().qe.delete(this);gY.prototype.qa.call(this)};g.w(lY,gY);lY.prototype.init=function(){gY.prototype.init.call(this);var a=W(this.layout.Da,"metadata_type_ad_action_interstitial_renderer"),b=zX(this.B);this.j.push(new BF(a,b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0))};
lY.prototype.startRendering=function(a){gY.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
lY.prototype.Fg=function(){};
lY.prototype.qa=function(){gY.prototype.qa.call(this)};g.w(mY,gY);g.h=mY.prototype;g.h.init=function(){gY.prototype.init.call(this);var a=W(this.layout.Da,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Dc},c=!W(this.layout.Da,"metadata_type_player_bytes_callback").QB;this.j.push(new UH(a,this.layout.layoutId,W(this.layout.Da,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.h.Sp=function(){this.B||this.Fa.get().resumeVideo(2)};
g.h.startRendering=function(a){gY.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.C.Rt=this};
g.h.Pf=function(a,b){gY.prototype.Pf.call(this,a,b);j_(this.C,this)};
g.h.Fg=function(a){if(oOa(this.D.get(),this.J))switch(a){case "visit-advertiser":this.Pa.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.Fa.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Fa.get().Kn(2))||this.Fa.get().pauseVideo();break;case "visit-advertiser":this.Fa.get().pauseVideo();W(this.layout.Da,"metadata_type_player_bytes_callback").YC();
break;case "skip-button":a=W(this.layout.Da,"metadata_type_player_bytes_callback"),a.QB&&a.Ty(this.Td(),this.layout)}};
g.h.qa=function(){gY.prototype.qa.call(this)};oY.prototype.Te=function(a,b,c,d){if(a=nY(a,c,d,this.Xb,this.Fa,this.Pa,this.u,this.j))return a;throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(pY,g.G);g.h=pY.prototype;g.h.init=function(){var a=W(this.Nb().Da,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Gp()};
g.h.release=function(){var a=W(this.Nb().Da,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.fq()};
g.h.startRendering=function(a){a.layoutId!==this.Nb().layoutId?this.callback.jg(this.Td(),a,new FV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Nb().layoutId+("and LayoutType: "+this.Nb().layoutType))):(this.Fa.get().addListener(this),zV(this.gf(),this),UOa(this.Fa.get()),this.Jd.get().iJ(),this.lq(a))};
g.h.Pf=function(a,b){this.MG=!0;this.mq(a,b);this.Fa.get().I.Xn();this.ue.get().I.cueVideoByPlayerVars({},2);a=ZW(this.Fa.get(),1);g.U(a,4)&&!g.U(a,2)&&this.Fa.get().playVideo();this.Fa.get().removeListener(this);this.MG&&this.NO()};
g.h.od=function(a,b){b.layoutId===this.Nb().layoutId&&(this.MG=!1,this.gf().qe.delete(this))};
g.h.Gj=function(a,b){if(a.state.isError()){var c,d;this.jg(null==(c=a.state.getData())?void 0:c.errorCode,new FV("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.MP(a)};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.Qk=function(){};g.w(qY,pY);g.h=qY.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.Gp=function(){if(1>=this.u.length)throw new OV("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(),JV(this.B,this.slot,b.Nb()),KV(this.B,this.slot,b.Nb())};
g.h.fq=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,OF(this.B,this.slot,b.Nb()),b.release()};
g.h.rs=function(a,b){var c=this.u[this.j];b.layoutId!==rY(c,a,b)?S("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.rs()};
g.h.Fs=function(a,b){var c=this.u[this.j];b.layoutId!==rY(c,a,b)?S("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Fs()};
g.h.Ty=function(a,b){var c=this.u[this.j];b.layoutId!==rY(c,a,b)?S("onSkipRequested for a PlayerBytes layout that is not currently active",c.Td(),c.Nb(),{requestingSlot:a,requestingLayout:b}):sY(this,c.Td(),c.Nb(),"skipped")};
g.h.lq=function(){-1===this.j&&jPa(this)};
g.h.QZ=function(a,b){LV(this.B,a,b)};
g.h.mq=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.Pf(a.Nb(),b),this.D=function(){c.callback.od(c.slot,c.layout,b)}):this.callback.od(this.slot,this.layout,b)};
g.h.Rc=function(a,b){var c=this.u[this.j];c&&c.Rc(a,b)};
g.h.od=function(a,b,c){pY.prototype.od.call(this,a,b,c);var d=this.u[this.j];d&&d.od(a,b,c)};
g.h.NO=function(){var a=this.u[this.j];a&&a.CB()};
g.h.Vi=function(a){var b=this.u[this.j];b&&b.Vi(a)};
g.h.MP=function(a){var b=this.u[this.j];b&&b.Gj(a)};
g.h.jg=function(a,b){-1===this.j&&(this.callback.Rc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.Fy(a,b):S("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Nb().layoutId})};
g.h.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.h.ah=function(a){var b=this.u[this.j];b&&b.ah(a)};
g.h.Cj=function(a){var b=this.u[this.j];b&&b.Cj(a)};
g.h.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.h.SZ=function(a,b,c){sY(this,a,b,c)};
g.h.RZ=function(a,b){sY(this,a,b,"error")};g.w(xY,g.G);g.h=xY.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.init=function(){var a=W(this.layout.Da,"metadata_type_video_length_seconds"),b=W(this.layout.Da,"metadata_type_active_view_traffic_type");$W(this.Bb.get(),this.layout.layoutId,b,a,this);fX(this.Pa.get(),this);this.Gp()};
g.h.release=function(){aX(this.Bb.get(),this.layout.layoutId);gX(this.Pa.get(),this);this.fq()};
g.h.rs=function(){};
g.h.Fs=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.jg(this.slot,a,new FV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",pwa(this.df.get(),1)?(this.D(-1),this.lq(a),this.Xt(!1)):this.Fy("ui_unstable",new FV("Failed to render media layout because ad ui unstable.")))};
g.h.Rc=function(a,b){if(b.layoutId===this.layout.layoutId){this.u="rendering";AX(this.j,"impression");AX(this.j,"start");if(this.Fa.get().isMuted()){AX(this.j,"mute");var c;a=(null==(c=wY(this))?void 0:c.muteCommands)||[];this.Eb.get().yf(a,this.layout.layoutId)}if(this.Fa.get().isFullscreen()){this.j.xg("fullscreen");var d;c=(null==(d=wY(this))?void 0:d.fullscreenCommands)||[];this.Eb.get().yf(c,this.layout.layoutId)}this.K=this.Fa.get().isMuted()||0===this.Fa.get().getVolume();yY(this,"unmuted_impression");
yY(this,"unmuted_start");this.Fa.get().isFullscreen()&&AY(this,"unmuted_fullscreen");this.Jd.get().SI();this.D(1);this.AP();var e;d=(null==(e=wY(this))?void 0:e.impressionCommands)||[];this.Eb.get().yf(d,this.layout.layoutId)}};
g.h.Fy=function(a,b,c){this.va={DD:3,Qz:"load_timeout"===a?402:400,errorMessage:b.message};W(this.layout.Da,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&S("There is a player error in this survey ads",this.Td(),this.Nb(),{playerType:String(c)});AX(this.j,"error");yY(this,"unmuted_error");var d;a=(null==(d=wY(this))?void 0:d.errorCommands)||[];this.Eb.get().yf(a,this.layout.layoutId);this.callback.jg(this.slot,this.layout,b)};
g.h.CB=function(){this.J()};
g.h.LN=function(){if("rendering"===this.u){AX(this.j,"pause");AY(this,"unmuted_pause");var a,b=(null==(a=wY(this))?void 0:a.pauseCommands)||[];this.Eb.get().yf(b,this.layout.layoutId);this.D(2)}};
g.h.MN=function(){if("rendering"===this.u){AX(this.j,"resume");AY(this,"unmuted_resume");var a,b=(null==(a=wY(this))?void 0:a.resumeCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.h.Pf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.jg(this.slot,a,new FV("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.S=b,this.mq(a,b))};
g.h.od=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.S=void 0,(a="normal"!==c||this.position+1===this.ra)&&this.Xt(a),this.BP(c),this.D(0),c){case "abandoned":if(CX(this.j,"impression")){AX(this.j,"abandon");yY(this,"unmuted_abandon");var d,e=(null==(d=wY(this))?void 0:d.abandonCommands)||[];this.Eb.get().yf(e,this.layout.layoutId)}break;case "normal":AX(this.j,"complete");yY(this,"unmuted_complete");d=(null==(e=wY(this))?void 0:e.completeCommands)||[];this.Eb.get().yf(d,
this.layout.layoutId);break;case "skipped":AX(this.j,"skip");var f;d=(null==(f=wY(this))?void 0:f.skipCommands)||[];this.Eb.get().yf(d,this.layout.layoutId)}};
g.h.Nx=function(){return this.layout.layoutId};
g.h.bG=function(){return this.va};
g.h.Gj=function(a){if("not_rendering"!==this.u){this.ma||(a=new g.wF(a.state,new g.aG),this.ma=!0);var b=2===this.Fa.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&uY(a)&&this.Z():b?g.yF(a,2)?this.WK():(uY(a)?this.D(1):g.yF(a,4)&&!g.yF(a,2)&&this.LN(),0>xF(a,4)&&!(0>xF(a,2))&&this.MN()):this.CB()}};
g.h.Ky=function(){if("rendering"===this.u){AX(this.j,"active_view_measurable");var a,b=(null==(a=wY(this))?void 0:a.activeViewMeasurableCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.h.Jy=function(){if("rendering"===this.u){AX(this.j,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=wY(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.h.Ly=function(){if("rendering"===this.u){AX(this.j,"active_view_viewable");var a,b=(null==(a=wY(this))?void 0:a.activeViewViewableCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.h.Hy=function(){if("rendering"===this.u){AX(this.j,"audio_audible");var a,b=(null==(a=wY(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.h.Iy=function(){if("rendering"===this.u){AX(this.j,"audio_measurable");var a,b=(null==(a=wY(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}};
g.h.Xt=function(a){this.Jd.get().Xt(W(this.layout.Da,"metadata_type_ad_placement_config").kind,a,this.position,this.ra,!1)};
g.h.onFullscreenToggled=function(a){if("rendering"===this.u)if(a){this.j.xg("fullscreen");AY(this,"unmuted_fullscreen");var b,c=(null==(b=wY(this))?void 0:b.fullscreenCommands)||[];this.Eb.get().yf(c,this.layout.layoutId)}else this.j.xg("end_fullscreen"),AY(this,"unmuted_end_fullscreen"),b=(null==(c=wY(this))?void 0:c.endFullscreenCommands)||[],this.Eb.get().yf(b,this.layout.layoutId)};
g.h.onVolumeChange=function(){if("rendering"===this.u)if(this.Fa.get().isMuted()){AX(this.j,"mute");yY(this,"unmuted_mute");var a,b=(null==(a=wY(this))?void 0:a.muteCommands)||[];this.Eb.get().yf(b,this.layout.layoutId)}else AX(this.j,"unmute"),yY(this,"unmuted_unmute"),a=(null==(b=wY(this))?void 0:b.unmuteCommands)||[],this.Eb.get().yf(a,this.layout.layoutId)};
g.h.ah=function(){};
g.h.Cj=function(){};
g.h.Qk=function(){};g.w(BY,g.iv);BY.prototype.start=function(){this.u||(this.u=!0,this.timer.start(),this.B=Date.now())};
BY.prototype.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
BY.prototype.Tb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.j+=b;this.j>=this.durationMs?(this.j=this.durationMs,this.timer.stop(),this.C(this.j),this.D()):this.C(this.j)};g.w(DY,xY);g.h=DY.prototype;g.h.Gp=function(){};
g.h.fq=function(){var a=this.Pa.get();a.mD===this&&(a.mD=null);XW(this.Na.get())?this.C.stop():this.timer.stop()};
g.h.lq=function(){this.Na.get().I.V().N("enable_post_ad_perception_survey_in_desktop")&&UOa(this.Fa.get());this.Pa.get().mD=this;Bx("pbp")||Bx("pbs")||Cx("pbp");Bx("pbp","watch")||Bx("pbs","watch")||Cx("pbp",void 0,"watch");this.Z()};
g.h.AP=function(){oPa(this)};
g.h.WK=function(){};
g.h.rs=function(){XW(this.Na.get())?this.C.stop():this.timer.stop();xY.prototype.LN.call(this)};
g.h.Fs=function(){oPa(this);xY.prototype.MN.call(this)};
g.h.An=function(){return W(this.Nb().Da,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.h.mq=function(){XW(this.Na.get())?this.C.stop():this.timer.stop()};
g.h.Tb=function(){var a=Date.now(),b=a-this.Y;this.Y=a;this.B+=b;this.B>=this.An()?(this.B=this.An(),zY(this,this.B/1E3,!0),CY(this,this.B),this.J()):(zY(this,this.B/1E3),CY(this,this.B))};
g.h.BP=function(){};
g.h.Vi=function(){};g.w(EY,xY);g.h=EY.prototype;g.h.Gp=function(){W(this.Nb().Da,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=W(this.Nb().Da,"metadata_type_shrunken_player_bytes_config")};
g.h.fq=function(){W(this.Nb().Da,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.lc.get().removeCueRange(this.B);this.B=void 0;this.C.dispose()};
g.h.lq=function(a){var b=W(a.Da,"metadata_type_ad_video_id"),c=W(a.Da,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.lf.get().I.V().Z.add(b,{ix:c});(b=W(a.Da,"metadata_type_sodar_extension_data"))&&XOa(this.oe.get(),b);VOa(this.Fa.get(),!1);b=this.ue.get();a=W(a.Da,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.C.start();this.ue.get().I.playVideo(2)};
g.h.AP=function(){this.C.stop();this.B="adcompletioncuerange:"+this.Nb().layoutId;this.lc.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=rw(this.Qa.get(),2))?void 0:a.clientPlaybackNonce)||"")||S("Media layout confirmed started, but ad CPN not set.");this.Vc.get().Oa("onAdStart",this.adCpn)};
g.h.WK=function(){this.J()};
g.h.An=function(){var a;return null==(a=rw(this.Qa.get(),2))?void 0:a.playbackDurationMs};
g.h.YC=function(){this.j.xg("clickthrough")};
g.h.mq=function(){this.C.stop();VOa(this.Fa.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Fa.get().Jv(!1)};
g.h.onCueRangeEnter=function(a){a!==this.B?S("Received CueRangeEnter signal for unknown layout.",this.Td(),this.Nb(),{cueRangeId:a}):(this.lc.get().removeCueRange(this.B),this.B=void 0,a=W(this.Nb().Da,"metadata_type_video_length_seconds"),zY(this,a,!0),AX(this.j,"complete"))};
g.h.BP=function(a){"abandoned"!==a&&this.Vc.get().Oa("onAdComplete");this.Vc.get().Oa("onAdEnd",this.adCpn)};
g.h.onCueRangeExit=function(){};
g.h.Vi=function(a){"rendering"===this.u&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Fa.get().Jv(!0),zY(this,a))};g.w(FY,pY);g.h=FY.prototype;g.h.Td=function(){return this.j.Td()};
g.h.Nb=function(){return this.j.Nb()};
g.h.Gp=function(){this.j.init()};
g.h.fq=function(){this.j.release()};
g.h.rs=function(){this.j.rs()};
g.h.Fs=function(){this.j.Fs()};
g.h.Ty=function(a,b){S("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Td(),this.Nb(),{requestingSlot:a,requestingLayout:b})};
g.h.lq=function(a){this.j.startRendering(a)};
g.h.mq=function(a,b){this.j.Pf(a,b)};
g.h.Rc=function(a,b){this.j.Rc(a,b)};
g.h.od=function(a,b,c){pY.prototype.od.call(this,a,b,c);this.j.od(a,b,c);b.layoutId===this.Nb().layoutId&&this.Jd.get().Lv()};
g.h.NO=function(){this.j.CB()};
g.h.Vi=function(a){this.j.Vi(a)};
g.h.MP=function(a){this.j.Gj(a)};
g.h.jg=function(a,b,c){this.j.Fy(a,b,c)};
g.h.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.h.ah=function(a){this.j.ah(a)};
g.h.Cj=function(a){this.j.Cj(a)};
g.h.onVolumeChange=function(){this.j.onVolumeChange()};GY.prototype.Te=function(a,b,c,d){if(a=rPa(a,b,c,d,this.gf,this.j,this.Pa,this.Bb,this.oe,this.ue,this.Qa,this.Fa,this.lc,this.Jd,this.Vc,this.df,this.Eb,this.lf,this.Na))return a;throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(HY,g.G);g.h=HY.prototype;g.h.CP=function(a){if(!this.j){var b;null==(b=this.He)||b.get().Yp(a.identifier);return!1}sPa(this,this.j,a);return!0};
g.h.uP=function(){};
g.h.ri=function(a){this.j&&this.j.contentCpn!==a&&(S("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.h.Sk=function(a){this.j&&this.j.contentCpn!==a&&S("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.h.qa=function(){g.G.prototype.qa.call(this);this.j=null};g.w(IY,g.G);g.h=IY.prototype;g.h.Rc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&GF(b,this.B)){var d=rw(this.Qa.get(),2),e=this.j(b,d);e?qw(this.Sb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[zOa(c.Db.get(),e.contentCpn,e.Qv,function(k){return c.u(k.slotId,"core",e,mU(c.Fb.get(),k))},e.bO)];
e.instreamAdPlayerUnderlayRenderer&&IOa(c.Na.get())&&f.push(tPa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):S("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Tf=function(){};
g.h.Hj=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.od=function(){};var IZ=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.h=xPa.prototype;g.h.init=function(){};
g.h.Td=function(){return this.slot};
g.h.ZA=function(){this.callback.Tf(this.slot)};
g.h.bB=function(){this.callback.Uf(this.slot)};
g.h.release=function(){};KY.prototype.Te=function(a,b){return new xPa(a,b)};g.h=yPa.prototype;g.h.init=function(){};
g.h.Td=function(){return this.slot};
g.h.ZA=function(){kX(this.Fa.get(),"ad-showing");this.callback.Tf(this.slot)};
g.h.bB=function(){this.callback.Uf(this.slot);lX(this.Fa.get(),"ad-showing")};
g.h.release=function(){};g.h=zPa.prototype;g.h.init=function(){};
g.h.Td=function(){return this.slot};
g.h.ZA=function(){kX(this.Fa.get(),"ad-showing");kX(this.Fa.get(),"ad-interrupting");this.u=this.Fa.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Tf(this.slot)};
g.h.bB=function(){lX(this.Fa.get(),"ad-showing");lX(this.Fa.get(),"ad-interrupting");var a=this.u?Infinity:this.Fa.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Fa.get().I.seekTo(a,void 0,void 0,1);this.callback.Uf(this.slot)};
g.h.release=function(){};g.h=APa.prototype;g.h.init=function(){};
g.h.Td=function(){return this.slot};
g.h.ZA=function(){kX(this.Fa.get(),"ad-showing");kX(this.Fa.get(),"ad-interrupting");this.callback.Tf(this.slot)};
g.h.bB=function(){this.Fa.get().lr();lX(this.Fa.get(),"ad-showing");lX(this.Fa.get(),"ad-interrupting");this.callback.Uf(this.slot)};
g.h.release=function(){this.Fa.get().lr()};LY.prototype.Te=function(a,b){if(uw(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new yPa(a,b,this.Fa);if(b.Rb instanceof wW&&uw(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new zPa(a,b,this.Fa);if(uw(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new APa(a,b,this.Fa);throw new OV("Unsupported slot with type "+b.slotType+" and client metadata: "+(hU(b.Da)+" in PlayerBytesSlotAdapterFactory."));};g.w(NY,g.G);NY.prototype.j=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof gW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.wf===a&&b.push(d)}b.length?MV(this.qE(),b):S("Mute requested but no registered triggers can be activated.")};g.w(OY,NY);g.h=OY.prototype;g.h.Fg=function(a,b){if(b)if("survey-submit"===a)BPa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof gW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.wf===b&&a.push(d)}a.length&&MV(this.qE(),a)}else"survey-single-select-answer-button"===a&&BPa(this,b)};
g.h.DG=function(a){NY.prototype.j.call(this,a)};
g.h.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");if(!(b instanceof hW||b instanceof gW))throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ob.set(b.triggerId,new MY(a,b,c,d))};
g.h.Xj=function(a){this.Ob.delete(a.triggerId)};
g.h.BG=function(){};
g.h.AG=function(){};
g.h.DB=function(){};g.w(PY,g.G);g.h=PY.prototype;
g.h.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");if(!(b instanceof IW||b instanceof JW||b instanceof KW||b instanceof LW||b instanceof MW||b instanceof AW||b instanceof FW||b instanceof fW||b instanceof oW||b instanceof zW||b instanceof EW))throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new MY(a,b,c,d);this.Ob.set(b.triggerId,a);b instanceof MW&&this.D.has(b.Kh)&&
MV(this.j(),[a]);b instanceof IW&&this.B.has(b.Kh)&&MV(this.j(),[a]);b instanceof FW&&this.u.has(b.wf)&&MV(this.j(),[a])};
g.h.Xj=function(a){this.Ob.delete(a.triggerId)};
g.h.xi=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof MW&&a.slotId===d.trigger.Kh&&b.push(d);0<b.length&&MV(this.j(),b)};
g.h.Ij=function(a){this.D.delete(a.slotId);a=[];for(var b=g.r(this.Ob.values()),c=b.next();!c.done;c=b.next());0<a.length&&MV(this.j(),a)};
g.h.Hj=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof AW&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&MV(this.j(),b)};
g.h.Tf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof IW&&a.slotId===d.trigger.Kh&&b.push(d);0<b.length&&MV(this.j(),b)};
g.h.Uf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof JW)a.slotId===d.trigger.Kh&&b.push(d);else if(d.trigger instanceof EW){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.wf)&&b.push(d)}0<b.length&&MV(this.j(),b)};
g.h.Uk=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof KW&&a.slotId===d.trigger.Kh&&b.push(d);0<b.length&&MV(this.j(),b)};
g.h.Vk=function(a){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof LW&&a.slotId===d.trigger.Kh&&b.push(d);0<b.length&&MV(this.j(),b)};
g.h.Ej=function(a,b){this.J.add(b.layoutId)};
g.h.Fj=function(a,b){this.J.delete(b.layoutId)};
g.h.Rc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof FW)b.layoutId===e.trigger.wf&&c.push(e);else if(e.trigger instanceof zW){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof EW&&(f=e.trigger,b.layoutId===f.wf&&this.C.has(f.slotId)&&c.push(e));0<c.length&&MV(this.j(),c)};
g.h.od=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof fW&&b.layoutId===e.trigger.wf&&a.push(e),e.trigger instanceof oW){var f=e.trigger;b.layoutId===f.wf&&c===f.j&&a.push(e)}0<a.length&&MV(this.j(),a)};
g.h.Xi=function(){};
g.h.ri=function(){this.C.clear()};
g.h.Sk=function(){};g.w(QY,g.G);QY.prototype.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");if(!(b instanceof vw||b instanceof jW))throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ob.set(b.triggerId,new MY(a,b,c,d))};
QY.prototype.Xj=function(a){this.Ob.delete(a.triggerId)};
QY.prototype.ri=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],k=g.r(this.Ob.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof vw&&l.trigger.qq===a&&f.push(l);e.call(d,b,g.u(f));b.push.apply(b,g.u(CPa(this.Ob,a,!1,c)));b.length&&MV(this.j(),b)};
QY.prototype.Sk=function(a){var b=[];b.push.apply(b,g.u(CPa(this.Ob,a,!0,!1)));b.length&&MV(this.j(),b)};g.w(RY,g.G);g.h=RY.prototype;
g.h.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof wW)SY(this,a,b,c,d,e,b.j.start,b.j.end,b.qq,b.visible);else if(b instanceof GW)SY(this,a,b,c,d,e,b.j.start,b.j.end,b.qq,!1);else if(b instanceof DW)SY(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.qq,b.visible);else throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.h.Xj=function(a){var b=this.Ob.get(a.triggerId);b&&this.lc.get().removeCueRange(b.UA);this.Ob.delete(a.triggerId)};
g.h.onCueRangeEnter=function(a){if(a=DPa(this,a))if(a=this.Ob.get(a))if(g.U(ZW(this.Fa.get()),32))this.j.add(a.UA);else{var b=null==a?void 0:a.bundle.trigger;(b instanceof wW||b instanceof DW)&&MV(this.u(),[a.bundle])}};
g.h.onCueRangeExit=function(a){if(a=DPa(this,a))if(a=this.Ob.get(a))this.j.delete(a.UA),a.bundle.trigger instanceof GW&&MV(this.u(),[a.bundle])};
g.h.Gj=function(a){if(0>xF(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.j.clear()}};
g.h.Vi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.ah=function(){};
g.h.Cj=function(){};
g.h.onVolumeChange=function(){};
g.h.Qk=function(){};g.w(TY,g.G);g.h=TY.prototype;g.h.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");if(!(b instanceof kW||b instanceof HW))throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ob.set(b.triggerId,new MY(a,b,c,d))};
g.h.Xj=function(a){this.Ob.delete(a.triggerId)};
g.h.ap=function(){};
g.h.Sl=function(){};
g.h.Rc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?S("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)};
g.h.od=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?S("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.h.Uf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?S("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.NA=function(){null!=this.j&&tY(this,this.j)};
g.h.eB=function(a){if(null===this.u){for(var b=[],c=g.r(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof HW&&d.trigger.slotId===a&&b.push(d);b.length&&MV(this.B(),b)}};g.w(UY,g.G);g.h=UY.prototype;g.h.Xi=function(a,b){for(var c=[],d=g.r(this.Ob.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&&MV(this.j(),c)};
g.h.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");if(!(b instanceof qOa))throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ob.set(b.triggerId,new MY(a,b,c,d))};
g.h.Xj=function(a){this.Ob.delete(a.triggerId)};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Rc=function(){};
g.h.od=function(){};g.w(VY,g.G);VY.prototype.qa=function(){this.qm.get().removeListener(this);g.G.prototype.qa.call(this)};g.w(WY,g.G);WY.prototype.qa=function(){this.ze.get().removeListener(this);g.G.prototype.qa.call(this)};XY.prototype.fetch=function(a){var b=a.SM;return this.Jq.fetch(a.OR,{mx:void 0===a.mx?void 0:a.mx,Qd:b}).then(function(c){return EPa(c,b)})};g.w(YY,g.G);g.h=YY.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.onAdUxClicked=function(a,b){ZY(this,function(c){c.Fg(a,b)})};
g.h.IH=function(a){ZY(this,function(b){b.BG(a)})};
g.h.HH=function(a){ZY(this,function(b){b.AG(a)})};
g.h.DX=function(a){ZY(this,function(b){b.DB(a)})};g.w($Y,g.G);g.h=$Y.prototype;
g.h.ri=function(){this.C=new RF(this,HOa(this.Na.get()));this.u=new SF;if(!this.I.V().N("html5_ssdai_use_oncuepoint_api")){var a=this.I.getVideoData(1),b;(null==(b=this.j)?void 0:b.clientPlaybackNonce)!==a.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.pC,this),a.subscribe("cuepointupdated",this.pC,this),this.j=a)}this.tD.length=0;a=this.I.getVideoData(1);var c;b=(null==(c=a.j)?void 0:Usa(c,0))||[];if(this.I.V().N("html5_ssdai_use_oncuepoint_api"))for(c=g.r(b),b=c.next();!b.done;b=
c.next())b=b.value,this.Up(b)&&S("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce});else this.pC(b)};
g.h.Sk=function(){};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.cI=function(a){this.tD.push(a);for(var b=!1,c=g.r(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.CP(a)||b;this.B=b};
g.h.vP=function(a){g.kc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.uP(a)};
g.h.Up=function(a){HPa(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a};
g.h.pC=function(a){var b=this.I.getVideoData(1).isDaiEnabled();if(b||!g.TC(this.I.V())){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,HPa(this,c),b?this.C.reduce(c):0!==this.I.getCurrentTime(1)&&"start"===c.event&&this.cI(c)}};
g.h.qa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.pC,this),this.j=null);this.listeners.length=0;this.tD.length=0;g.G.prototype.qa.call(this)};cZ.prototype.addListener=function(a){this.listeners.push(a)};
cZ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.h=JPa.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.init=function(){this.Fa.get().addListener(this)};
g.h.release=function(){this.Fa.get().removeListener(this)};
g.h.startRendering=function(a){this.callback.Rc(this.slot,a)};
g.h.Pf=function(a,b){this.callback.od(this.slot,a,b)};
g.h.Qk=function(a){switch(a.id){case "part2viewed":AX(this.j,"start");break;case "videoplaytime25":AX(this.j,"first_quartile");break;case "videoplaytime50":AX(this.j,"midpoint");break;case "videoplaytime75":AX(this.j,"third_quartile");break;case "videoplaytime100":AX(this.j,"complete");break;case "engagedview":AX(this.j,"progress");break;default:S("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.h.onVolumeChange=function(){};
g.h.Cj=function(){};
g.h.ah=function(){};
g.h.onFullscreenToggled=function(){};
g.h.Gj=function(){};
g.h.Vi=function(){};KPa.prototype.Te=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.r(yX()),f=e.next();!f.done;f=e.next())b.push(f.value);if(vX(d,{re:b,Cf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new JPa(a,c,d,this.Fa,this.Pa);throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.h=dZ.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.init=function(){this.Fe.get().addListener(this);this.Fa.get().addListener(this);this.Gp();var a=W(this.layout.Da,"metadata_type_layout_enter_ms"),b=W(this.layout.Da,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Qa.get().ir)?void 0:c.clientPlaybackNonce;c=this.layout.Dc.adClientDataEntry;eX(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Fe.get();e=TF(e.u,a,b);null!==e&&(eX(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.He.get().Wq(e,b))};
g.h.release=function(){this.fq();this.Fe.get().removeListener(this);this.Fa.get().removeListener(this)};
g.h.startRendering=function(){this.lq();this.callback.Rc(this.slot,this.layout)};
g.h.Pf=function(a,b){this.mq(b);null!==this.driftRecoveryMs&&(eZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(LPa(this)-W(this.layout.Da,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Fa.get().I.rp()).toString()}),this.driftRecoveryMs=null);this.callback.od(this.slot,this.layout,b)};
g.h.CP=function(){return!1};
g.h.uP=function(a){var b=W(this.layout.Da,"metadata_type_layout_enter_ms"),c=W(this.layout.Da,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;eX(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Qa.get().ir)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Dc.adClientDataEntry}});this.He.get().Wq(a,c)}};
g.h.Vi=function(a){this.jP(a);a=this.Fa.get().getCurrentTimeSec(2,!0);if(oOa(this.D.get(),this.layout.layoutId)){var b=W(this.layout.Da,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=LPa(this),e=this.Fa.get().I.rp(),f=Math.min(a+e,d/1E3);f<=a?eZ(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(eZ(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Fa.get().I.seekTo(f,void 0,void 0,1))}}};
g.h.ah=function(){};
g.h.Cj=function(){};
g.h.onVolumeChange=function(){};
g.h.Qk=function(){};g.w(fZ,dZ);g.h=fZ.prototype;g.h.Gp=function(){this.Qa.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Pa.get().Ti("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.h.fq=function(){this.Qa.get().removeListener(this);this.u=null;this.C.forEach(function(a){a.release()})};
g.h.lq=function(){if(this.u)S("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Qa.get().ir)?void 0:a.layoutId;NPa(this,b)}};
g.h.mq=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.pj)||e.Pf(null==(b=this.u)?void 0:null==(c=b.pj)?void 0:c.Nb(),a);this.u=null};
g.h.IP=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Pa.get().Ti("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.pj)?void 0:d.Nb().layoutId))}var e;if(this.u&&(null==(e=this.u.pj)?void 0:e.Nb().layoutId)!==a){var f,k;null==(k=this.u.pj)||k.Pf(null==(f=this.u.pj)?void 0:f.Nb(),"normal");NPa(this,a)}};
g.h.jP=function(){};
g.h.Gj=function(){};
g.h.onFullscreenToggled=function(){};g.h=YPa.prototype;g.h.Td=function(){return this.slot};
g.h.Nb=function(){return this.layout};
g.h.init=function(){var a=this;W(this.layout.Da,"metadata_type_player_bytes_callback_ref").current=this;this.Ac=OPa(this.slot,this.layout,W(this.layout.Da,"metadata_type_player_vars"),W(this.layout.Da,"metadata_type_layout_enter_ms"),W(this.layout.Da,"metadata_type_layout_exit_ms"),1E3*W(this.layout.Da,"metadata_type_video_length_seconds"),this.He.get(),this.Ad.get(),function(){var d=Object,e=d.assign,f=jZ(a.layout);var k=W(a.slot.Da,"metadata_type_fulfilled_layout");k=Object.assign({},jZ(k),{adPlacementConfig:W(k.Da,
"metadata_type_ad_placement_config"),subLayouts:W(k.Da,"metadata_type_sub_layouts").map(jZ)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:k,hasSurveyOverlay:tw(a.layout.Da,"metadata_type_survey_overlay"),surveyOverlay:W(a.layout.Da,"metadata_type_survey_overlay")})},this.Pa.get());
this.Fa.get().addListener(this);var b=W(this.layout.Da,"metadata_type_video_length_seconds"),c=W(this.layout.Da,"metadata_type_active_view_traffic_type");JOa(this.Na.get())||$W(this.Bb.get(),this.layout.layoutId,c,b,this);JV(this.callback,this.slot,this.layout);KV(this.callback,this.slot,this.layout)};
g.h.release=function(){this.Fa.get().removeListener(this);JOa(this.Na.get())||aX(this.Bb.get(),this.layout.layoutId);this.Na.get().I.V().N("html5_unschedule_dai_media_sublayout_killswitch")||OF(this.callback,this.slot,this.layout)};
g.h.startRendering=function(){var a=this;tw(this.layout.Da,"metadata_type_survey_overlay")&&this.Pa.get().Ti("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)S("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:tw(this.layout.Da,"metadata_type_survey_overlay"),surveyOverlay:W(this.layout.Da,"metadata_type_survey_overlay")});else{this.u={Mk:null,sz:!1};this.Na.get().I.V().experiments.jb("html5_disable_sodar_for_tvhtml5")||PPa(this.slot,this.layout,
this.oe.get());AX(this.j,"start");if(WW(this.Na.get())){var b=ZW(this.Fa.get()),c=W(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);QPa(this.j,this.u.Mk,b,c,d,function(){return void $Pa(a,"teois")})}LV(this.callback,this.slot,this.layout);
tw(this.layout.Da,"metadata_type_survey_overlay")&&this.Pa.get().Ti("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.h.Pf=function(a,b){var c=this;if(this.u){if(WW(this.Na.get()))if(null===this.Ac)S("Unexpected media sub layout exited without a timeline playback ID");else{a=W(this.layout.Da,"metadata_type_video_length_seconds");var d=jX(this.Fa.get(),this.Ac);this.j.B=d;hZ(this.j,null,this.u.Mk,a,d,function(e){return void ZPa(c,e,"fue")})}this.u=null;
JF(this.callback,this.slot,this.layout,b)}else S("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.Fy=function(){};
g.h.CB=function(){};
g.h.Vi=function(a){var b=this;if(this.u){if(CX(this.j,"impression")){var c=ZW(this.Fa.get()),d=W(this.layout.Da,"metadata_type_video_length_seconds");iZ(this.j,c,a,this.u.Mk,d,function(e){return void ZPa(b,e,"tpaqe")})}this.u.Mk=a}};
g.h.Gj=function(a){var b=this;if(this.u){WW(this.Na.get())||this.u.sz||(this.u.sz=!0,a=new g.wF(a.state,new g.aG));var c=W(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);gZ(this.j,this.u.Mk,a,c,d,!WW(this.Na.get()),function(){return void $Pa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){RPa(this.j,a)};
g.h.ah=function(){};
g.h.Cj=function(){};
g.h.Ty=function(){};
g.h.onVolumeChange=function(){};
g.h.Rc=function(){};
g.h.od=function(){};
g.h.rs=function(){};
g.h.Fs=function(){};
g.h.YC=function(){SPa(this.j)};
g.h.Ky=function(){TPa(this.j)};
g.h.Jy=function(){UPa(this.j)};
g.h.Ly=function(){VPa(this.j)};
g.h.Hy=function(){WPa(this.j)};
g.h.Iy=function(){XPa(this.j)};
g.h.Qk=function(){};g.w(kZ,dZ);g.h=kZ.prototype;
g.h.Gp=function(){var a=this;W(this.layout.Da,"metadata_type_player_bytes_callback_ref").current=this;var b=W(this.layout.Da,"metadata_type_layout_enter_ms"),c=W(this.layout.Da,"metadata_type_layout_exit_ms");this.Ac=OPa(this.slot,this.layout,W(this.layout.Da,"metadata_type_player_vars"),b,c,1E3*W(this.layout.Da,"metadata_type_video_length_seconds"),this.He.get(),this.Ad.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:W(a.layout.Da,"metadata_type_ad_placement_config")}},
this.Pa.get());
var d=W(this.layout.Da,"metadata_type_video_length_seconds"),e=W(this.layout.Da,"metadata_type_active_view_traffic_type");$W(this.Bb.get(),this.layout.layoutId,e,d,this)};
g.h.fq=function(){aX(this.Bb.get(),this.layout.layoutId)};
g.h.lq=function(){var a=this;if(this.u)S("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={Mk:null,sz:!1},PPa(this.slot,this.layout,this.oe.get()),AX(this.j,"start"),WW(this.Na.get())){var b=ZW(this.Fa.get()),c=W(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);QPa(this.j,this.u.Mk,b,c,d,function(){return void aQa(a,"teois")})}};
g.h.mq=function(){var a=this;if(this.u){if(WW(this.Na.get()))if(null===this.Ac)S("Unexpected single media layout exited without a timeline playback ID");else{var b=W(this.layout.Da,"metadata_type_video_length_seconds"),c=jX(this.Fa.get(),this.Ac);this.j.B=c;hZ(this.j,null,this.u.Mk,b,c,function(d){return void bQa(a,d,"fue")})}this.u=null}else S("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.jP=function(a){var b=this;if(this.u){if(CX(this.j,"impression")){var c=ZW(this.Fa.get()),d=W(this.layout.Da,"metadata_type_video_length_seconds");iZ(this.j,c,a,this.u.Mk,d,function(e){return void bQa(b,e,"tpaqe")})}this.u.Mk=a}};
g.h.Gj=function(a){var b=this;if(this.u){WW(this.Na.get())||this.u.sz||(this.u.sz=!0,a=new g.wF(a.state,new g.aG));var c=W(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);gZ(this.j,this.u.Mk,a,c,d,!WW(this.Na.get()),function(){return void aQa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){RPa(this.j,a)};
g.h.YC=function(){SPa(this.j)};
g.h.Ky=function(){TPa(this.j)};
g.h.Jy=function(){UPa(this.j)};
g.h.Ly=function(){VPa(this.j)};
g.h.Hy=function(){WPa(this.j)};
g.h.Iy=function(){XPa(this.j)};lZ.prototype.Te=function(a,b,c,d){if(tw(c.Da,"metadata_type_dai")){var e=W(d.Da,"metadata_type_ad_placement_config");vX(d,{re:"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 xX(d.vc,this.Pa,e,d.layoutId,null),e=new kZ(a,c,d,this.Qa,this.He,this.Ad,this.Fe,this.Fa,e,this.Pa,this.oe,this.j,this.Bb,this.Na)):
e=null;if(e)return e;a:{var f=W(d.Da,"metadata_type_sub_layouts"),k=W(d.Da,"metadata_type_ad_placement_config");if(vX(d,{re:["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!==k){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=W(l.Da,"metadata_type_media_sub_layout_index");if(!vX(l,{re:"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 xX(l.vc,this.Pa,k,l.layoutId,m);e.push(new YPa(b,c,l,this.He,m,this.Fa,this.Ad,this.Bb,this.oe,this.Na,this.Pa,this.Qa))}b=new xX(d.vc,this.Pa,k,d.layoutId);a=new fZ(a,c,d,this.Qa,this.He,this.Fe,this.Fa,b,this.Pa,this.j,e)}else a=null}if(a)return a}else if(a=rPa(a,b,c,d,this.gf,this.u,this.Pa,this.Bb,this.oe,this.ue,this.Qa,this.Fa,this.lc,this.Jd,this.Vc,this.df,this.Eb,this.lf,this.Na))return a;throw new FV("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+hU(d.Da)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(mZ,g.G);mZ.prototype.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");if(!(b instanceof rW))throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ob.set(b.triggerId,new MY(a,b,c,d))};
mZ.prototype.Xj=function(a){this.Ob.delete(a.triggerId)};g.w(oZ,g.G);
oZ.prototype.Oj=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new OV("Tried to re-register the trigger.");a=new MY(a,b,c,d);if(a.trigger instanceof vOa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof iW)this.B.set(a.trigger.triggerId,a);else throw new OV("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&MV(this.C(),[a])};
oZ.prototype.Xj=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
oZ.prototype.IP=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.u(cQa(this.B,this.j)));null!=a&&b.push.apply(b,g.u(cQa(this.u,a)));this.j=a;b.length&&MV(this.C(),b)}};g.h=pZ.prototype;g.h.Ut=function(a,b,c,d,e,f){return this.I.Ut(a,b,c,d,e,f)};
g.h.Wq=function(a,b){this.I.Wq(a,b)};
g.h.Tv=function(a,b,c){this.I.Tv(a,b,c)};
g.h.Yp=function(a){this.I.Yp(a)};
g.h.gy=function(a,b,c,d,e,f){this.I.gy(a,b,c,d,e,f)};g.w(dQa,ME);g.w(qZ,gY);g.h=qZ.prototype;g.h.Fg=function(a,b){jY("image-companion",a,this.J.get().bj,this.Pa.get(),this.B,this.C,this.Td(),this.Nb(),b)};
g.h.startRendering=function(a){iY(this.D,this.Td(),this.Nb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new dQa(b,c,d,e,f)},this.j);
gY.prototype.startRendering.call(this,a)};
g.h.Rc=function(a,b){b.layoutId===this.layout.layoutId?AX(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Pa.get().Xh():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.od=function(){};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.qa=function(){this.gf().qe.delete(this);gY.prototype.qa.call(this)};g.w(fQa,ME);g.w(rZ,gY);g.h=rZ.prototype;g.h.Fg=function(a,b){jY("shopping-companion",a,this.J.get().bj,this.Pa.get(),this.B,this.C,this.Td(),this.Nb(),b)};
g.h.startRendering=function(a){iY(this.D,this.Td(),this.Nb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new fQa(b,c,d,e,f)},this.j);
gY.prototype.startRendering.call(this,a)};
g.h.Rc=function(a,b){b.layoutId===this.layout.layoutId?AX(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Pa.get().Xh():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.od=function(){};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.qa=function(){this.gf().qe.delete(this);gY.prototype.qa.call(this)};g.w(hQa,ME);g.w(sZ,gY);g.h=sZ.prototype;g.h.Fg=function(a,b){jY("ads-engagement-panel",a,this.J.get().bj,this.Pa.get(),this.B,this.C,this.Td(),this.Nb(),b)};
g.h.startRendering=function(a){iY(this.D,this.Td(),this.Nb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new hQa(b,c,d,e,f)},this.j);
gY.prototype.startRendering.call(this,a)};
g.h.Rc=function(a,b){b.layoutId===this.layout.layoutId?AX(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Pa.get().Xh():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.od=function(){};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.qa=function(){this.gf().qe.delete(this);gY.prototype.qa.call(this)};jQa.prototype.Te=function(a,b,c,d){if(vX(d,iQa()))return new sZ(a,c,d,this.Xb,this.Pa,this.gf,this.Bb,this.j);if(vX(d,gPa()))return new kY(a,c,d,this.Xb,this.Pa,this.gf,this.Bb,this.j);if(vX(d,eQa()))return new qZ(a,c,d,this.Xb,this.Pa,this.gf,this.Bb,this.j);if(vX(d,gQa()))return new rZ(a,c,d,this.Xb,this.Pa,this.gf,this.Bb,this.j);throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(tZ,ME);g.w(uZ,gY);uZ.prototype.init=function(){gY.prototype.init.call(this);var a=W(this.layout.Da,"metadata_type_player_underlay_renderer");this.j.push(new tZ(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Dc}))};
uZ.prototype.Fg=function(){};
uZ.prototype.startRendering=function(a){gY.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
uZ.prototype.qa=function(){gY.prototype.qa.call(this)};kQa.prototype.Te=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(yX()),f=e.next();!f.done;f=e.next())b.push(f.value);if(vX(d,{re:b,Cf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new uZ(a,c,d,this.Xb);throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.w(vZ,ME);g.w(wZ,gY);wZ.prototype.startRendering=function(a){var b=zX(this.B),c={adsClientData:this.layout.Dc};this.j.push(new vZ(W(this.layout.Da,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Nb().layoutId,c,!0,!0));gY.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
wZ.prototype.Fg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=W(this.layout.Da,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Ty(this.slot,this.layout):S("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
wZ.prototype.qa=function(){gY.prototype.qa.call(this)};var yZ=new g.yh(320,63);g.w(BZ,ME);g.w(CZ,gY);g.h=CZ.prototype;g.h.Vi=function(){};
g.h.Gj=function(){};
g.h.onFullscreenToggled=function(){};
g.h.ah=function(a){a&&nZ(this.B,this.layout)};
g.h.Cj=function(a){var b=AZ(this.layout);if(this.J=zZ(a,TOa(this.Fa.get())))b.onErrorCommand&&this.Eb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),nZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Nx=function(){return this.Nb().layoutId};
g.h.bG=function(){return this.J};
g.h.Fg=function(a){this.C.Fg(a);"in_video_overlay_close_button"===a&&nZ(this.B,this.layout)};
g.h.DB=function(a){"invideo-overlay"===a&&nZ(this.B,this.layout)};
g.h.Sp=function(){this.C.Sp()};
g.h.startRendering=function(a){gY.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.D.Rt=this};
g.h.Pf=function(a,b){gY.prototype.Pf.call(this,a,b);j_(this.D,this)};
g.h.init=function(){gY.prototype.init.call(this);fX(this.Pa.get(),this);this.Fa.get().addListener(this);this.j.push(new BZ(AZ(this.layout),zX(this.K),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.h.release=function(){gY.prototype.release.call(this);this.Fa.get().removeListener(this);gX(this.Pa.get(),this)};
g.h.Qk=function(){};g.w(DZ,gY);g.h=DZ.prototype;g.h.init=function(){gY.prototype.init.call(this);fX(this.Pa.get(),this);this.Fa.get().addListener(this);this.j.push(new BZ(AZ(this.layout),zX(this.S),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.h.Sp=function(){this.C.Sp()};
g.h.startRendering=function(a){gY.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.D.Rt=this};
g.h.Pf=function(a,b){gY.prototype.Pf.call(this,a,b);j_(this.D,this)};
g.h.Fg=function(a){this.C.Fg(a);"in_video_overlay_close_button"===a&&nZ(this.B,this.layout)};
g.h.BG=function(a){if("invideo-overlay"===a){a=pQa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.h.DB=function(a){"invideo-overlay"===a&&nZ(this.B,this.layout)};
g.h.AG=function(a){if("invideo-overlay"===a){a=pQa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.h.Vi=function(){};
g.h.Gj=function(){};
g.h.onFullscreenToggled=function(){};
g.h.ah=function(a){a&&nZ(this.B,this.layout)};
g.h.Cj=function(a){var b=AZ(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=TOa(this.Fa.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Tb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.yh(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.yh(0,0)}if(this.J=zZ(a,d,c))b.onErrorCommand&&this.Eb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),nZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Nx=function(){return this.Nb().layoutId};
g.h.bG=function(){return this.J};
g.h.release=function(){gY.prototype.release.call(this);this.Fa.get().removeListener(this);gX(this.Pa.get(),this)};
g.h.Qk=function(){};EZ.prototype.Fg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Fa.get().Kn(1))||this.Fa.get().pauseVideo())};
EZ.prototype.Sp=function(){this.j||this.Fa.get().resumeVideo(1)};g.w(FZ,ME);g.w(GZ,gY);g.h=GZ.prototype;g.h.init=function(){gY.prototype.init.call(this);this.Fa.get().addListener(this)};
g.h.startRendering=function(a){var b=W(this.layout.Da,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new FZ(b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0));gY.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
g.h.Rc=function(){};
g.h.Fg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=W(this.layout.Da,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.rs(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Fs(this.slot,this.layout):S("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.h.Cj=function(a){450>a.width&&nZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Vi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.ah=function(){};
g.h.Gj=function(){};
g.h.Qk=function(){};
g.h.qa=function(){gY.prototype.qa.call(this)};
g.h.release=function(){gY.prototype.release.call(this);this.Fa.get().removeListener(this)};oQa.prototype.Te=function(a,b,c,d){if(b=nY(a,c,d,this.Xb,this.Fa,this.Pa,this.C,this.j))return b;if(vX(d,nQa()))return new DZ(c,d,this.Pa,this.Bb,this.Xb,a,this.u,this.B,this.Fa,this.Eb,this.Na,this.j,new EZ(this.Fa));if(vX(d,mQa()))return new CZ(c,d,this.Pa,this.Bb,this.Xb,a,this.u,this.Fa,this.Eb,this.Na,this.j,new EZ(this.Fa));if(vX(d,{re:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Cf:["LAYOUT_TYPE_SURVEY"]}))return new GZ(c,d,a,this.Xb,this.u,this.Fa,this.Na);if(vX(d,{re:["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 wZ(c,d,a,this.Xb,this.Pa);throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(HZ,g.G);g.h=HZ.prototype;g.h.Oj=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new OV("Tried to register duplicate trigger for slot.");if(!(b instanceof nW))throw new OV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ob.set(b.triggerId,new MY(a,b,c,d));a=this.j.has(b.wf)?this.j.get(b.wf):new Set;a.add(b);this.j.set(b.wf,a)};
g.h.Xj=function(a){this.Ob.delete(a.triggerId);if(!(a instanceof nW))throw new OV("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.wf))b.delete(a),0===b.size&&this.j.delete(a.wf)};
g.h.xi=function(){};
g.h.Ij=function(){};
g.h.Hj=function(){};
g.h.Tf=function(){};
g.h.Uf=function(){};
g.h.Uk=function(){};
g.h.Vk=function(){};
g.h.Ej=function(){};
g.h.Fj=function(){};
g.h.Xi=function(){};
g.h.Rc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={gw:a.gw},d=b.next())a.gw=d.value,d=new g.L(function(e){return function(){var f=c.Ob.get(e.gw.triggerId);MV(c.B(),[f])}}(a),a.gw.durationMs),d.start(),this.u.set(a.gw.triggerId,d)}};
g.h.od=function(){};g.w(qQa,g.G);rQa.prototype.Te=function(a,b,c,d){if(b=nY(a,c,d,this.Xb,this.Fa,this.Pa,this.C,this.j))return b;if(vX(d,nQa()))return new DZ(c,d,this.Pa,this.Bb,this.Xb,a,this.u,this.B,this.Fa,this.Eb,this.Na,this.j,new EZ(this.Fa));if(vX(d,mQa()))return new CZ(c,d,this.Pa,this.Bb,this.Xb,a,this.u,this.Fa,this.Eb,this.Na,this.j,new EZ(this.Fa));throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(sQa,g.G);g.w(tQa,g.G);g.w(uQa,g.G);g.w(JZ,mY);JZ.prototype.startRendering=function(a){mY.prototype.startRendering.call(this,a);W(this.layout.Da,"metadata_ad_video_is_listed")&&(a=W(this.layout.Da,"metadata_type_ad_info_ad_metadata"),this.vk.get().I.Oa("onAdMetadataAvailable",a))};wQa.prototype.Te=function(a,b,c,d){if(vX(d,vQa()))return new JZ(a,c,d,this.Xb,this.Fa,this.Pa,this.u,this.vk,this.j);throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(xQa,g.G);yQa.prototype.Te=function(a,b,c,d){if(vX(d,vQa()))return new JZ(a,c,d,this.Xb,this.Fa,this.Pa,this.u,this.vk,this.j);if(a=nY(a,c,d,this.Xb,this.Fa,this.Pa,this.u,this.j))return a;throw new FV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hU(d.Da)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(zQa,g.G);g.w(KZ,g.G);KZ.prototype.B=function(){return this.u};MZ.prototype.eB=function(a){this.Kl.eB(a)};
MZ.prototype.NA=function(){try{this.Kl.NA()}catch(a){}};
MZ.prototype.ap=function(){this.j().ap()};
MZ.prototype.Sl=function(){this.j().Sl()};g.w(NZ,yH);
NZ.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:this.j.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Oa("updateEngagementPanelAction",b.addAction);this.j.Oa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Oa("changeEngagementPanelVisibility",b.hideAction),this.j.Oa("updateEngagementPanelAction",b.removeAction)}};g.w(OZ,GH);g.h=OZ.prototype;g.h.init=function(a,b,c){GH.prototype.init.call(this,a,b,c);g.Km(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){IH(this);GH.prototype.hide.call(this)};
g.h.show=function(){HH(this);GH.prototype.show.call(this)};
g.h.xs=function(){this.hide()};
g.h.cq=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Km(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(PZ,$G);g.h=PZ.prototype;
g.h.init=function(a,b,c){$G.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.Iv(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.ib(g.Eh(e[0].url))&&(e[0].url=d.profilePicture);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.ib(g.Eh(e[0].url))&&(e[0].url=d.zf());e=b.headline;null!=e&&g.ib(g.Eh(e.text))&&(e.text=d.author)}this.D.init(LE("ad-image"),b.image,c);this.S.init(LE("ad-text"),b.headline,c);this.J.init(LE("ad-text"),b.description,c);this.Z.init(LE("ad-image"),b.backgroundImage,c);this.actionButton=new oH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-action-interstitial-action-button"]);
g.H(this,this.actionButton);this.actionButton.Ba(this.La);this.actionButton.init(LE("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().isMobile||(this.C.T(this.Ia,"click",this.SF,this),this.C.T(this.Ga,"click",this.SF,this),this.C.T(this.Aa,"click",this.SF,this));this.u=this.Gh?new VH(this.api,a):new WH(a);g.H(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new QH(this.api,this.bb,this.layoutId,this.j,this.eb,
this.u,this.Sj),g.H(this,this.skipButton),this.skipButton.Ba(this.element),this.skipButton.init(LE("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new LH(this.api,this.bb,this.layoutId,this.j,this.eb,this.u,!1),g.H(this,this.B),this.B.Ba(this.element),this.B.init(LE("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new OZ(this.api,this.bb,this.layoutId,this.j,this.eb,this.u),
g.H(this,c),c.Ba(this.element),c.init(LE("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.Iv(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Iv(Error("AdActionInterstitialRenderer has no button."));else g.Iv(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Iv(Error("AdActionInterstitialRenderer has no description AdText."));else g.Iv(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.Iv(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.hv(this.C);this.hide()};
g.h.show=function(){BQa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();$G.prototype.show.call(this)};
g.h.hide=function(){BQa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();$G.prototype.hide.call(this)};
g.h.SF=function(){this.navigationEndpoint&&AH(this.eb,this.navigationEndpoint,this.macros)};var RZ={iconType:"CLOSE"},VZ=new g.yh(320,63);g.w(QZ,$G);g.h=QZ.prototype;
g.h.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);this.D=b;this.S=g.$b(this.D.onClickCommands||[]);this.Ia=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.J=g.Th("ytp-ad-overlay-ad-info-button-container",this.C.element),TZ(this,b),a=FQa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.J=g.Th("ytp-ad-overlay-ad-info-button-container",this.B.element),
TZ(this,b),a=GQa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.J=g.Th("ytp-ad-overlay-ad-info-button-container",this.u.element),TZ(this,b),a=HQa(this,a.imageOverlayAdContentRenderer)):(g.Iv(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),IQa(this,!0))};
g.h.clear=function(){IQa(this,!1);this.Ga.reset();this.Z=0;this.C.hide();this.Wa(this.C.element,!1);this.B.hide();this.Wa(this.B.element,!1);this.u.hide();this.Wa(this.u.element,!1);this.hide();this.dispose()};
g.h.VZ=function(){this.Ua&&AH(this.eb,this.Ua,this.macros);this.api.pauseVideo()};
g.h.Dj=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.r(a);for(var b=a.next();!b.done;b=a.next())AH(this.eb,b.value,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.h.wX=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.h.bI=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.bI("invideo-overlay")};
g.h.xX=function(a){a.target===this.J&&g.Th("ytp-ad-button",this.gb.element).click()};g.w(WZ,GH);g.h=WZ.prototype;g.h.init=function(a,b,c){GH.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(LE("ad-text"),d,c);this.messageText.Ba(this.B.element);this.J.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){JQa(this,!1);GH.prototype.hide.call(this);this.B.hide();this.messageText.hide();IH(this)};
g.h.show=function(){JQa(this,!0);GH.prototype.show.call(this);HH(this);this.B.show();this.messageText.show()};
g.h.xs=function(){this.hide()};
g.h.cq=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.S&&a>=this.C?(this.J.hide(),this.S=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.Z&&(FH(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.w(XZ,$G);g.h=XZ.prototype;
g.h.init=function(a,b,c){$G.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.C.init(LE("ad-image"),b.image,c),this.u.init(LE("ad-text"),b.headline,c),this.D.init(LE("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().N("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new oH(this.api,this.bb,this.layoutId,this.j,this.eb,a),g.H(this,
this.actionButton),this.actionButton.Ba(this.J),this.actionButton.init(LE("button"),b.actionButton.buttonRenderer,c),b=g.sB(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().N("place_shrunken_video_on_left_of_player")?(c=this.B,g.Hp(c,"ytp-ad-underlay-left-container"),g.M(c,"ytp-ad-underlay-right-container"),g.Km(this.B,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.B,g.Hp(c,"ytp-ad-underlay-right-container"),g.M(c,"ytp-ad-underlay-left-container")),g.Km(this.B,"width",
Math.round(100*(1-b-.04))+"%"),this.api.RB()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.XK.bind(this)),this.api.addEventListener("resize",this.QN.bind(this))):g.Iv(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Iv(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Iv(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Iv(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.h.show=function(){KQa(!0);this.actionButton&&this.actionButton.show();$G.prototype.show.call(this)};
g.h.hide=function(){KQa(!1);this.actionButton&&this.actionButton.hide();$G.prototype.hide.call(this)};
g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.XK.bind(this));this.api.removeEventListener("resize",this.QN.bind(this));this.hide()};
g.h.onClick=function(a){$G.prototype.onClick.call(this,a);this.actionButton&&g.ii(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.h.XK=function(a){"transitioning"===a?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-transition"),this.show()):"visible"===a?this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"):"hidden"===a&&(this.hide(),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"))};
g.h.QN=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
g.Km(this.u.element,"font-size",a.width/40+"px")};g.w(YZ,$G);
YZ.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new oH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ba(this.answer),a.init(LE("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new wH(this.api,this.bb,this.layoutId,this.j,this.eb,
["ytp-ad-survey-answer-toggle-button"]),this.u.Ba(this.answer),g.H(this,this.u),this.u.init(LE("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
YZ.prototype.clear=function(){this.hide()};g.w(ZZ,$G);ZZ.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new wH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ba(this.u),this.button.init(LE("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w($Z,oH);$Z.prototype.init=function(a,b,c){oH.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Qw(b.text),a=!g.ib(b));a||g.Jv(Error("No submit text was present in the renderer."))};
$Z.prototype.onClick=function(a){this.ea("l");oH.prototype.onClick.call(this,a)};g.w(a_,$G);
a_.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new RH(this.api,this.bb,this.layoutId,this.j,this.eb,this.C,this.Sj),c.Ba(this.J),c.init(LE("skip-button"),a,this.macros),g.H(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new LH(this.api,this.bb,this.layoutId,this.j,this.eb,this.C,!1),c.Ba(this.J),c.init(LE("ad-preview"),a,this.macros),MH(c),g.H(this,c),this.u=c);null==this.u&&g.Iv(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new $Z(this.api,this.bb,this.layoutId,this.j,this.eb),c.Ba(this.submitButton),c.init(LE("survey-submit"),a,this.macros),g.H(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new TH(this.api,this.bb,this.layoutId,this.j,this.eb,!0),c.Ba(this.D),c.init(LE("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new ZH(this.api,this.bb,this.layoutId,this.j,this.eb,
this.C,void 0),c.Ba(this.D),c.init(LE("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new DH(this.api,this.bb,this.layoutId,this.j,this.eb,this.element),g.H(this,a),a.Ba(this.D),a.init(LE("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
a_.prototype.clear=function(){this.hide()};g.w(b_,$G);b_.prototype.init=function(a,b,c){$G.prototype.init.call(this,a,b,c);OQa(this)};
b_.prototype.show=function(){this.C=g.Ta();$G.prototype.show.call(this)};
b_.prototype.BQ=function(){};g.w(c_,b_);g.h=c_.prototype;g.h.init=function(a,b,c){var d=this;b_.prototype.init.call(this,a,b,c);b.questionText&&g.ji(this.questionText,g.Qw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&LQa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.J=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&PQa(this,a,c);b.surveyAdQuestionCommon&&NQa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.h.BQ=function(){d_(this,!1);this.D.B.subscribe("l",this.TZ,this)};
g.h.onChange=function(a){a.target===this.noneOfTheAbove.button.u?QQa(this):this.J.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),d_(this,!0))};
g.h.TZ=function(){var a=this.B.reduce(function(d,e){var f=e.toggledLoggingParams;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),b=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Vf(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=tj(e.baseUrl,a));return e});
return d});
if(b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())AH(this.eb,c.value,this.macros)}};
g.h.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(e_,b_);e_.prototype.init=function(a,b,c){var d=this;b_.prototype.init.call(this,a,b,c);b.questionText&&g.ji(this.questionText,g.Qw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&LQa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?NQa(this,b.surveyAdQuestionCommon):g.Iv(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
e_.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(f_,$G);
f_.prototype.init=function(a,b,c){var d=this;$G.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new e_(d.api,d.bb,d.layoutId,d.j,d.eb,d.Gh,d.Sj);f.Ba(d.u);f.init(LE("survey-question-single-select"),e,c);d.questions.push(f);g.H(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new c_(d.api,d.bb,d.layoutId,d.j,d.eb,
d.Gh,d.Sj),f.Ba(d.u),f.init(LE("survey-question-multi-select"),e,c),d.questions.push(f),g.H(d,f))});
this.show()};
f_.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(g_,$G);
g_.prototype.init=function(a,b,c){var d=this;$G.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.Iv(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){SQa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
SQa(this.logoImage,b.brandImage);g.ji(this.text,g.Qw(b.text));this.actionButton=new oH(this.api,this.bb,this.layoutId,this.j,this.eb,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.Ba(this.B);this.actionButton.init(LE("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.u=this.Gh?new VH(this.api,1E3*a):new WH(1E3*a,void 0);this.u.subscribe("g",function(){d.transition.hide();if(!d.Gh){for(var k=g.r(e),l=k.next();!l.done;l=
k.next())AH(d.eb,l.value,c);AH(d.eb,{adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
g.H(this,this.u);this.T(this.element,"click",function(k){var l=b.dismissCommands,m=k.target===d.interstitial;k=d.actionButton.element.contains(k.target);if(m||k)if(d.transition.hide(),m)if(d.dJ)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())AH(d.eb,m.value,d.macros)});
this.transition.show(100);if(!this.Gh&&b.impressionCommands){a=g.r(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())AH(this.eb,f.value,c)}}else g.Iv(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Iv(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Iv(Error("SurveyTextInterstitialRenderer has no button."));else g.Iv(Error("SurveyTextInterstitialRenderer has no text."));else g.Iv(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
g_.prototype.clear=function(){this.hide()};
g_.prototype.show=function(){TQa(!0);$G.prototype.show.call(this)};
g_.prototype.hide=function(){TQa(!1);$G.prototype.hide.call(this)};var CTa="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(h_,yH);
h_.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!CTa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.api,f=this.eb,k=c.layoutId,l=c.j,m=c instanceof BF||c instanceof FZ||c instanceof vZ?c.Gh:!1,n=c instanceof BF||c instanceof UH||c instanceof FZ?c.Sj:!1,p=c instanceof vZ?c.dJ:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;p=void 0===p?!1:p;switch(d){case "invideo-overlay":a=new QZ(e,a,k,l,f);break;case "player-overlay":a=new fI(e,a,k,l,f,new WK(e),n);
break;case "survey":a=new f_(e,a,k,l,f,m,n);break;case "ad-action-interstitial":a=new PZ(e,a,k,l,f,m,n);break;case "survey-interstitial":a=new g_(e,a,k,l,f,m,p);break;case "ad-message":a=new WZ(e,a,k,l,f,new WK(e,1));break;case "player-underlay":a=new XZ(e,a,k,l,f);break;default:a=null}if(!a){g.Jv(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Jf(this.u,b)?g.Jv(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof tZ?this.B?this.B.append(a.KI):
g.Iv(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.KI);break;case 2:b=UQa(this,a);if(null==b)break;b.bind(c);break;case 3:c=UQa(this,a),null!=c&&(g.nf(c),g.Jf(this.u,b)?g.Rf(this.u,b):g.Jv(Error("Ad UI component does not exist: "+b)))}};
h_.prototype.qa=function(){g.of(Object.values(this.u));this.u={};yH.prototype.qa.call(this)};g.w(i_,g.cK);g.h=i_.prototype;g.h.create=function(){try{VQa(this),this.load(),this.created=!0,VQa(this)}catch(a){S(a instanceof Error?a:String(a))}};
g.h.load=function(){g.cK.prototype.load.call(this);var a=LZ(this.j).ph;Tpa(a.I.V().N("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){S(l instanceof Error?l:String(l))}var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var k=c&&c.fg()||!1;a=YQa(f,a,e,k,LZ(this.j).Ik);f=c&&c.clientPlaybackNonce||"";c=c&&c.Uq||!1;k=1E3*this.player.getDuration(1);this.bb=new QG(this,this.player,this.Jq,b,LZ(this.j));Lya(this.bb,a.gx);this.j.j.Tp.ri(f,k,c,a.EC,a.EC.concat(a.gx),e,d);RG(this.bb)};
g.h.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Tp.Sk(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.h.unload=function(){g.cK.prototype.unload.call(this);Tpa(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){S(b instanceof Error?b:String(b))}if(null!==this.bb){var a=this.bb;this.bb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Jq.reset()};
g.h.aj=function(){return!1};
g.h.eJ=function(){return null===this.bb?!1:this.bb.eJ()};
g.h.wm=function(a){null!==this.bb&&this.bb.wm(a)};
g.h.getAdState=function(){return this.bb?this.bb.JB:-1};
g.h.getOptions=function(){return Object.values(BTa)};
g.h.Zf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=dF(this.player),Object.assign(b,a.dia),this.bb&&!b.AD_CPN&&(b.AD_CPN=this.bb.Ex()),a=g.rp(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Sp(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.h.Up=function(a){var b;return!(null==(b=this.j.j.Fe)||!b.get().Up(a))};
g.h.Sp=function(a){a.isMuted&&Aya(this.bb,LZ(this.j).gi,LZ(this.j).Bj,a.layoutId);this.Rt&&this.Rt.Sp()};
g.h.executeCommand=function(a){LZ(this.j).eb.executeCommand(a.command,a.layoutId)};g.bK("ad",i_);var $Qa=g.Ec&&ZQa();g.w(g.m_,g.V);g.m_.prototype.onClick=function(){this.I.Oa("onExpandMiniplayer")};})(_yt_player);

}

/*
     FILE ARCHIVED ON 02:39:57 Apr 14, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:31:12 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 0.618
  load_resource: 340.087 (2)
  PetaboxLoader3.resolve: 84.659 (2)
  PetaboxLoader3.datanode: 73.867 (2)
*/